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 001/309] 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 46252709..5fab5c4f 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 e8b821f8..d601dc74 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 7e83f2ad..9ee68521 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 6f8aff53..09646b79 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 1da3469e..0cd35aca 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 599a9525..a9767818 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 5d729c2f..76af8b1c 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 a61cc3b3..771de937 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 d9224e62..3a6ac2cd 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 a13402e7..70659533 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 f96c64b6..26978bcd 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 1e3be330..21fceee9 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 a62f86a9..4ce87da5 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 229de463..c17a81d6 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 32dab22b..5185477a 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 0195dda8..6ed14db3 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 7b042946..70f616cd 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 bf709685..7dc0f06f 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 ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 5f67b788..67705df4 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 801e916b..b536b60b 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 86025987..2ff3abe8 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 3ad1eccd..f9280c4a 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 e273b87d..d1708a14 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 c1e9d27d..2110b186 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 002/309] 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 5fab5c4f..4d7ed964 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 d601dc74..9d0ee721 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 9ee68521..7b03ce19 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 09646b79..934c6c3b 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 0cd35aca..05489a52 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 a9767818..e20f70d1 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 2b04cbb2..41feb4c0 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 76af8b1c..b38e5b2b 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 771de937..c4aa0882 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 3a6ac2cd..ac14242f 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 70659533..b37765ef 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 26978bcd..b7ada8ac 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 21fceee9..37a21a65 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 4ce87da5..eb274e6c 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 5185477a..086a44ab 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 6ed14db3..9cf5279e 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 70f616cd..7b042946 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 7dc0f06f..933738e9 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 9bf5999b..ad49ad2e 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 4ec8acc7..fd74b68f 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 96d399de..c1510622 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 67705df4..71eec1cf 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 b536b60b..ec1c16bc 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 2ff3abe8..bdf3e67c 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 f9280c4a..1c250568 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 d1708a14..a4805919 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 2110b186..3de8d2f4 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 003/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4d7ed964..ad4b95d8 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 004/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad4b95d8..ad09e23d 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 005/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad09e23d..6127ab43 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 006/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6127ab43..ad09e23d 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 007/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad09e23d..6127ab43 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 008/309] 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 6127ab43..451539e4 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 9d0ee721..681759cd 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 7b03ce19..7e83f2ad 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 934c6c3b..7ebe5ada 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 e20f70d1..09d6973d 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 41feb4c0..c9a094cf 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 b38e5b2b..4738968c 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 c4aa0882..d635fdcc 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 ac14242f..3050211c 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 b37765ef..e6749c1b 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 b7ada8ac..eedbb718 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 37a21a65..065535d9 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 eb274e6c..056ac2eb 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 086a44ab..32dab22b 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 9cf5279e..80e35cb1 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 7b042946..42643a65 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 fd74b68f..e2edc676 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 c1510622..b643af69 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 71eec1cf..c71cfdac 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 ec1c16bc..2e16edf7 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 bdf3e67c..8b0babb4 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 1c250568..d61cbaf3 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 a4805919..36961ab6 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 3de8d2f4..df6572bd 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 009/309] 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 451539e4..83653c09 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 681759cd..bc01c978 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 7e83f2ad..ce0d8c0c 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 7ebe5ada..7d857069 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 05489a52..5d345632 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 09d6973d..a9767818 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 c9a094cf..a84ff073 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 4738968c..d8a81a30 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 d635fdcc..a9c614a7 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 3050211c..b33cfaf7 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 e6749c1b..4b6d2c85 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 eedbb718..1ae1ec68 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 065535d9..2ac108c1 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 056ac2eb..d32d44de 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 c17a81d6..229de463 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 32dab22b..956a8a32 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 80e35cb1..9e76f3b9 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 933738e9..c47f77e4 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 ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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 c71cfdac..43bfb32a 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 2e16edf7..2a11444d 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 8b0babb4..fca45b0b 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 d61cbaf3..dfae196f 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 36961ab6..77cc31d4 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 df6572bd..60d91296 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 010/309] 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 83653c09..8dfea494 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 bc01c978..ab94d0d8 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 ce0d8c0c..2009929f 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 7d857069..04c550e9 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 5d345632..6b557a8f 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 a9767818..e20f70d1 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 a84ff073..2b04cbb2 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 d8a81a30..b0ec1fda 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 a9c614a7..e9eae13b 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 b33cfaf7..d6862abf 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 4b6d2c85..ea533721 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 1ae1ec68..80006d8e 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 2ac108c1..da0a05cf 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 d32d44de..4b91d5e0 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 956a8a32..b8ae3e8e 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 9e76f3b9..8d959ad5 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 42643a65..7b042946 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 c47f77e4..427da94a 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 4ec8acc7..fd74b68f 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 02883e18..96d399de 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 6b1dc2fd..d13ad1ce 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 43bfb32a..d35490db 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 2a11444d..524c4715 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 fca45b0b..b1a18626 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 dfae196f..86640d58 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 77cc31d4..7f73f25f 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 60d91296..5c90dd61 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 011/309] 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 8dfea494..8b97f93d 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 ab94d0d8..e1791181 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 2009929f..0fd1f5dc 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 04c550e9..685b16a6 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 6b557a8f..59dc36ac 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 2b04cbb2..c9a094cf 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 b0ec1fda..d29a398d 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 e9eae13b..952fd383 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 d6862abf..83a6d73a 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 ea533721..51155696 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 80006d8e..d420d703 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 da0a05cf..c1cb7513 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 4b91d5e0..3dab799d 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 229de463..c17a81d6 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 b8ae3e8e..9b363f6f 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 8d959ad5..1697eb4a 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 7b042946..694c42e4 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 427da94a..ea577e06 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 9bf5999b..ad49ad2e 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 96d399de..b643af69 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 d35490db..34f068c8 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 524c4715..c79d33c3 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 b1a18626..3d6602a2 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 86640d58..d0afae0d 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 7f73f25f..8bb27fad 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 5c90dd61..71b10c5e 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 012/309] 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 8b97f93d..e403fe03 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 3164dc40..6fa68cff 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 249b1c38..035a4991 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 e1791181..c9346c8f 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 0fd1f5dc..6048bce1 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 05009760..4e7239bb 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 da4dede6..a471989a 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 08cee5e2..6debd803 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 685b16a6..daa37b53 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 59dc36ac..4e608a45 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 e20f70d1..599a9525 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 c9a094cf..a84ff073 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 d29a398d..31a1c8f8 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 952fd383..3e1c7461 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 83a6d73a..afec8a8c 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 51155696..f00781e9 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 d420d703..e1483596 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 c1cb7513..7f7f9364 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 3dab799d..1e081561 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 9b363f6f..261763a8 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 1697eb4a..6989253d 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 694c42e4..e769f5c8 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 ea577e06..4643686f 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 fd74b68f..8e5b0566 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 b643af69..02883e18 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 34f068c8..9f78698e 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 c79d33c3..a33944bf 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 3d6602a2..c8688ed6 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 d0afae0d..fda4f3cd 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 8bb27fad..aea046c4 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 71b10c5e..ef4f5d0d 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 013/309] 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 e403fe03..1ab2730e 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 c9346c8f..0218bfbb 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 6048bce1..050a2af8 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 daa37b53..af9ad358 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 4e608a45..b0f843b4 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 599a9525..a9767818 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 a84ff073..2b04cbb2 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 31a1c8f8..0dcc7ddf 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 3e1c7461..c7cb2544 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 afec8a8c..24d30163 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 f00781e9..3a23ef0c 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 e1483596..e86957b0 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 7f7f9364..eca4ab49 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 1e081561..3f786f67 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 261763a8..afbb8ebf 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 6989253d..e6c1db3e 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 e769f5c8..25333899 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 4643686f..e17361c6 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 ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 02883e18..96d399de 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 9f78698e..fd046878 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 a33944bf..bfe94b59 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 c8688ed6..a95e5a5a 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 fda4f3cd..327b0cde 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 aea046c4..8bc7bcc6 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 ef4f5d0d..2fb02866 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 014/309] 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 1ab2730e..0cc982eb 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 0218bfbb..67f73932 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 050a2af8..a7ba1088 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 af9ad358..77850abf 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 b0f843b4..b7182b66 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 2b04cbb2..a84ff073 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 0dcc7ddf..2f91a360 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 c7cb2544..3e3e1c83 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 24d30163..cd5dc397 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 3a23ef0c..ac5c7b2e 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 e86957b0..87d86cef 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 eca4ab49..33d4dda5 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 3f786f67..13b302c7 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 afbb8ebf..fbbfdb0f 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 e6c1db3e..e74ef6cc 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 25333899..7b042946 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 e17361c6..225529d6 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 fd046878..0d9804a5 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 bfe94b59..bea5c595 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 a95e5a5a..d2929fa3 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 327b0cde..2f1304cf 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 8bc7bcc6..300c4efe 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 2fb02866..68c6e8c1 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 015/309] 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 0cc982eb..74e305f0 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 67f73932..ca6cda03 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 a7ba1088..64266b19 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 77850abf..2f38ae64 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 b7182b66..1e5e4ad5 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 a9767818..09d6973d 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 a84ff073..2b04cbb2 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 2f91a360..42d1188f 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 3e3e1c83..391f277e 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 cd5dc397..b00b11d0 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 ac5c7b2e..76032fd8 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 87d86cef..4ca22c69 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 33d4dda5..8da98ca8 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 13b302c7..b09e33b2 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 c17a81d6..229de463 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 fbbfdb0f..94248f81 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 e74ef6cc..19155ed9 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 7b042946..42643a65 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 225529d6..8aee5efa 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 9bf5999b..ad49ad2e 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 4ec8acc7..e2edc676 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 02883e18..96d399de 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 6b1dc2fd..d13ad1ce 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 0d9804a5..940e135e 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 bea5c595..74a79a12 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 d2929fa3..7167a162 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 2f1304cf..eacb9e77 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 300c4efe..682a35ba 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 68c6e8c1..c6503623 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 016/309] 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 74e305f0..f02fa897 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 ca6cda03..5366ae94 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 64266b19..07bc7103 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 1e5e4ad5..1d67b61b 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 09d6973d..e20f70d1 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 42d1188f..dc6a5146 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 391f277e..fdc3bd61 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 b00b11d0..fd2edbf2 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 76032fd8..fadf6e3c 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 4ca22c69..ec3af096 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 8da98ca8..f2530543 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 b09e33b2..f119b2a7 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 229de463..c17a81d6 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 94248f81..b018e79a 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 42643a65..25333899 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 8aee5efa..715b94db 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 ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 940e135e..43744a72 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 74a79a12..af57c3e4 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 7167a162..7f74ac59 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 eacb9e77..730cc307 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 682a35ba..20d8a90d 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 c6503623..3c4df774 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 017/309] 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 f02fa897..de968c88 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 5366ae94..ee756aa2 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 07bc7103..a5c5e92f 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 2f38ae64..a9b53c10 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 1d67b61b..0b5fb77e 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 e20f70d1..09d6973d 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 2b04cbb2..a84ff073 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 dc6a5146..e0156ed5 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 fdc3bd61..a9c614a7 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 fd2edbf2..01621fc6 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 fadf6e3c..693cc876 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 ec3af096..a3e613dc 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 f2530543..44c2278f 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 f119b2a7..a51fb526 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 b018e79a..5d39f0e7 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 19155ed9..130dc742 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 25333899..7b042946 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 715b94db..1f347b43 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 9bf5999b..ad49ad2e 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 fd74b68f..e2edc676 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 43744a72..dc4044dd 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 af57c3e4..d6a59819 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 7f74ac59..fca45b0b 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 730cc307..b207a9a6 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 20d8a90d..ab5e4fcc 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 3c4df774..e983f5fb 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 018/309] 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 de968c88..62663e5a 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 ee756aa2..192bbb1f 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 a5c5e92f..a9b996e1 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 a9b53c10..415b53fb 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 0b5fb77e..f36b1c5a 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 09d6973d..a9767818 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 e0156ed5..d3f42735 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 a9c614a7..adfdc4b5 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 01621fc6..9c2caf42 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 693cc876..9d01625e 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 a3e613dc..52dfdc1e 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 44c2278f..bf5bd2cc 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 a51fb526..893d17e2 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 5d39f0e7..9a005f97 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 130dc742..777722d7 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 7b042946..42643a65 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 1f347b43..eadcb6b7 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 ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 dc4044dd..963d82d8 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 d6a59819..41698240 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 fca45b0b..d94ddb86 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 b207a9a6..19abc866 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 ab5e4fcc..4bc904f7 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 e983f5fb..d7702022 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 019/309] 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 62663e5a..d04999b0 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 192bbb1f..f41cce05 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 a9b996e1..731f9076 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 415b53fb..13a58c4c 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 f36b1c5a..ca82093e 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 a9767818..599a9525 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 a84ff073..2b04cbb2 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 d3f42735..ad813bd0 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 adfdc4b5..67f64ceb 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 9c2caf42..d5c6a347 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 9d01625e..30040856 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 52dfdc1e..470b9124 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 bf5bd2cc..3b4e8eca 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 893d17e2..703de71d 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 777722d7..123e9814 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 eadcb6b7..548a48cb 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 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 02883e18..96d399de 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 6b1dc2fd..d13ad1ce 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 963d82d8..50559bc8 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 41698240..607ecdcf 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 d94ddb86..58129b14 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 19abc866..988f8f6d 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 4bc904f7..38bd14c7 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 d7702022..e90ec0db 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 020/309] 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 d04999b0..3e2f5425 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 f41cce05..e8b821f8 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 731f9076..b9f4d3d4 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 13a58c4c..27b521df 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 ca82093e..1e5e4ad5 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 599a9525..a9767818 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 ad813bd0..e815333d 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 67f64ceb..7b762fce 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 d5c6a347..00d4e2b1 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 30040856..9e0da5db 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 470b9124..04856eda 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 3b4e8eca..1e3be330 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 703de71d..12c4bc14 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 e9488683..b799b8d3 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 123e9814..0cf478e6 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 42643a65..70f616cd 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 548a48cb..8aee5efa 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 ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 d13ad1ce..6b1dc2fd 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 50559bc8..81fafd00 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 607ecdcf..0afde69b 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 58129b14..72601d9b 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 988f8f6d..ae89ae47 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 38bd14c7..d82aa7b3 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 e90ec0db..15d83a05 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 021/309] 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 3e2f5425..57535973 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 e8b821f8..26d0afeb 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 b9f4d3d4..a5c5e92f 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 27b521df..0f98a3ca 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 a9767818..e20f70d1 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 2b04cbb2..c9a094cf 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 e815333d..3f4ff318 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 7b762fce..78c9b0c5 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 00d4e2b1..0420718d 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 9e0da5db..a31020c0 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 04856eda..8dd147fc 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 1e3be330..328f1caf 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 12c4bc14..fd690266 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 b799b8d3..5d39f0e7 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 0cf478e6..9c53e9e5 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 9bf5999b..ad49ad2e 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 4ec8acc7..fd74b68f 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 96d399de..b643af69 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 6b1dc2fd..d13ad1ce 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 81fafd00..d2fc9f3f 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 0afde69b..24f24c26 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 72601d9b..dfeaef0e 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 ae89ae47..cbf377f9 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 d82aa7b3..0195c684 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 15d83a05..2b1d2cbc 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 022/309] 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 57535973..7c8bcbcf 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 26d0afeb..204a2ddb 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 0f98a3ca..4c51748d 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 1e5e4ad5..7d1b2d65 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 e20f70d1..09d6973d 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 c9a094cf..2b04cbb2 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 3f4ff318..c3541678 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 78c9b0c5..b20c9f18 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 0420718d..4a35dc9d 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 a31020c0..e889be31 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 8dd147fc..64e1c28a 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 328f1caf..0d21ee9d 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 fd690266..f53a3c73 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 c17a81d6..229de463 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 9c53e9e5..1d002d6e 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 70f616cd..b0d96512 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 8aee5efa..03ab8700 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 ad49ad2e..9bf5999b 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 fd74b68f..e2edc676 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 b643af69..96d399de 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 d2fc9f3f..07ee7824 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 24f24c26..8f7d2c8f 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 dfeaef0e..e41cf252 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 cbf377f9..ba767a99 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 0195c684..28da32e1 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 2b1d2cbc..fccb61fb 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 023/309] 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 7c8bcbcf..af709734 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 204a2ddb..e61493a1 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 a5c5e92f..17e9af7c 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 4c51748d..8d8813e6 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 7d1b2d65..cfda94dd 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 09d6973d..599a9525 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 2b04cbb2..a84ff073 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 c3541678..11918036 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 b20c9f18..7b825c39 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 4a35dc9d..e7d02f96 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 e889be31..6c2648d2 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 64e1c28a..81f8de28 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 0d21ee9d..9ae9b59b 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 f53a3c73..b88b677a 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 5d39f0e7..d25f07dd 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 1d002d6e..6eea7db8 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 b0d96512..7b042946 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 03ab8700..094780bd 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 9bf5999b..ad49ad2e 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 e2edc676..8e5b0566 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 07ee7824..4cbb82d7 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 8f7d2c8f..93ebf8f0 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 e41cf252..1b904852 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 ba767a99..e69d3adf 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 28da32e1..623ee15d 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 fccb61fb..c3307767 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 024/309] 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 af709734..7b5b2f24 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 e61493a1..245fc5fb 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 17e9af7c..d727dd1f 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 8d8813e6..7c9ead4a 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 cfda94dd..12edd193 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 599a9525..e20f70d1 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 a84ff073..c9a094cf 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 11918036..cfa85522 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 7b825c39..0889b583 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 e7d02f96..f12ab4c9 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 6c2648d2..d9cabff3 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 81f8de28..1f0b2538 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 9ae9b59b..13e5c0c0 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 b88b677a..4f78f60a 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 229de463..c17a81d6 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 d25f07dd..24eafa3e 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 6eea7db8..391a66de 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 7b042946..42643a65 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 094780bd..3c27d9ed 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 ad49ad2e..9bf5999b 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 8e5b0566..fd74b68f 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 02883e18..b643af69 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 4cbb82d7..4044c95b 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 93ebf8f0..bb60bf0b 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 1b904852..1859713c 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 e69d3adf..1ee36a3e 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 623ee15d..37945f9e 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 c3307767..3e212507 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 025/309] 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 7b5b2f24..78dfd388 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 245fc5fb..3aaab29e 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 d727dd1f..81f3d2e2 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 7c9ead4a..3f64bd1f 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 12edd193..21410b8d 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 e20f70d1..a9767818 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 c9a094cf..41feb4c0 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 cfa85522..036047ed 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 0889b583..3db3f904 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 f12ab4c9..bfbf4db5 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 d9cabff3..40f602f8 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 1f0b2538..6daf3e72 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 13e5c0c0..d67282b8 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 4f78f60a..1e7bb4d2 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 c17a81d6..229de463 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 24eafa3e..77125615 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 391a66de..30bf79e1 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 42643a65..70f616cd 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 3c27d9ed..29c06021 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 fd74b68f..4ec8acc7 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 b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 4044c95b..9d5fbe81 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 bb60bf0b..a8c1b14b 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 1859713c..e4a2589b 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 1ee36a3e..220cc33a 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 37945f9e..d1f374cf 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 3e212507..4cef3ab7 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 026/309] 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 78dfd388..add21bf4 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 3aaab29e..2d703f78 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 81f3d2e2..d7f98f22 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 3f64bd1f..82ed43b8 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 21410b8d..e7ef846f 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 a9767818..e20f70d1 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 41feb4c0..2b04cbb2 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 036047ed..99641e0c 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 3db3f904..ba155719 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 bfbf4db5..a8ae696a 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 40f602f8..f4558f7c 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 6daf3e72..3859e1db 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 d67282b8..e5ed4ee6 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 1e7bb4d2..7334e5c5 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 77125615..529744a9 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 30bf79e1..02779d6e 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 70f616cd..7b042946 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 29c06021..a704bc15 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 4ec8acc7..fd74b68f 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 c1510622..96d399de 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 9d5fbe81..10b82cc9 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 a8c1b14b..c2e9106b 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 e4a2589b..cc1a6a93 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 220cc33a..9f42dcd4 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 d1f374cf..2a255ce3 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 4cef3ab7..7df36e97 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 027/309] 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 add21bf4..1940ec08 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 2d703f78..925565da 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 d7f98f22..e7d1ba84 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 82ed43b8..8ef9d599 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 e7ef846f..c40469c2 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 e20f70d1..599a9525 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 2b04cbb2..a84ff073 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 82dbf90d..cdcf5bf4 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 99641e0c..1aae5c99 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 ba155719..f7d28e78 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 a8ae696a..82aee79b 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 f4558f7c..8a796354 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 3859e1db..a444a87a 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 e5ed4ee6..139b3a7c 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 7334e5c5..3a9bb12c 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 529744a9..784164d2 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 02779d6e..a65d65ec 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 7b042946..42643a65 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 a704bc15..81fedb6a 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 9bf5999b..ad49ad2e 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 fd74b68f..8e5b0566 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 9aec6406..5b7e4c70 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 10b82cc9..09fb6c17 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 c2e9106b..82ee8b68 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 cc1a6a93..672b9492 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 9f42dcd4..983cc90e 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 2a255ce3..7cc86e7e 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 7df36e97..4c2a8a8c 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 028/309] 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 1940ec08..c13af489 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 925565da..49933e52 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 e7d1ba84..1e680fb2 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 8ef9d599..febcb2b4 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 c40469c2..fd5fc9e9 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 599a9525..09d6973d 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 1aae5c99..beceeb71 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 f7d28e78..65baca3f 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 82aee79b..285afba7 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 8a796354..c5dbf70b 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 a444a87a..2a9bde03 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 139b3a7c..ae12b8c6 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 3a9bb12c..da3100ee 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 784164d2..afd3743d 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 a65d65ec..2e9728e9 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 42643a65..25333899 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 81fedb6a..234fa018 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 ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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 6b1dc2fd..d13ad1ce 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 09fb6c17..c7725c83 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 82ee8b68..5f8f20e2 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 672b9492..9c718253 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 983cc90e..f03ca91d 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 7cc86e7e..1b57d3d0 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 4c2a8a8c..7283e995 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 029/309] 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 c13af489..920904a9 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 49933e52..3c5ed4a9 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 1e680fb2..400f4002 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 febcb2b4..e1713e4e 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 fd5fc9e9..6a3f46e0 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 09d6973d..599a9525 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 a84ff073..2b04cbb2 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 beceeb71..6aa78b1e 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 65baca3f..96d12b7b 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 285afba7..64980824 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 c5dbf70b..cb3b035a 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 2a9bde03..967b85be 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 ae12b8c6..3c3098d8 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 da3100ee..d07db4a6 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 229de463..c17a81d6 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 afd3743d..c720a7ab 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 2e9728e9..aee2c981 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 25333899..694c42e4 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 234fa018..6519eb07 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 e2edc676..8e5b0566 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 02883e18..96d399de 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 d13ad1ce..6b1dc2fd 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 c7725c83..11b6c2cf 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 5f8f20e2..d11afc92 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 9c718253..a4fd83d6 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 f03ca91d..8e13cf42 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 1b57d3d0..f7435a13 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 7283e995..2a32777e 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 030/309] 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 920904a9..e4e8ffa8 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 3c5ed4a9..c012ec59 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 400f4002..af87f269 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 2161d5cb..57026c25 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 e1713e4e..4e8e694d 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 6a3f46e0..33a94ac9 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 2b04cbb2..c9a094cf 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 6aa78b1e..07575945 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 96d12b7b..209a377c 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 64980824..1785ac0d 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 cb3b035a..9728a570 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 967b85be..499041b5 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 3c3098d8..b930587d 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 d07db4a6..c7795478 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 c17a81d6..229de463 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 c720a7ab..ed46626b 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 e3f6929f..5731d552 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 aee2c981..7562fa51 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 694c42e4..42643a65 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 6519eb07..b5e2ece3 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 9bf5999b..ad49ad2e 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 96d399de..b643af69 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 11b6c2cf..9ee6e10f 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 d11afc92..58c60e01 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 a4fd83d6..f95a25b0 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 8e13cf42..e8aaa7dd 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 f7435a13..95c0cc55 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 2a32777e..70dfc180 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 031/309] 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 e4e8ffa8..e8458a5b 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 c012ec59..6bb6558e 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 af87f269..17e9af7c 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 4e8e694d..6f8aff53 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 33a94ac9..cc4b4d50 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 599a9525..09d6973d 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 07575945..ffc15876 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 1785ac0d..f4babb5e 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 9728a570..5a9ea722 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 499041b5..189e87f3 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 b930587d..5756d5ab 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 c7795478..dc9d9d63 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 ed46626b..d25f07dd 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 7562fa51..0195dda8 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 42643a65..b0d96512 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 b5e2ece3..406a6637 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 ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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 6b1dc2fd..d13ad1ce 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 9ee6e10f..d3e7cf35 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 58c60e01..cb364960 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 e8aaa7dd..f79687a7 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 95c0cc55..c8ac37fe 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 70dfc180..8a91249e 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 032/309] 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 e8458a5b..252a0b61 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 6bb6558e..e8b821f8 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 17e9af7c..8ab752c9 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 6f8aff53..febcb2b4 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 cc4b4d50..bff08deb 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 09d6973d..599a9525 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 c9a094cf..41feb4c0 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 ffc15876..e4c9fb4d 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 209a377c..a9c614a7 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 f4babb5e..04ca6b29 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 5a9ea722..74b4b4b0 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 189e87f3..aa86b9e7 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 5756d5ab..1e3be330 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 dc9d9d63..a70e6da1 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 d25f07dd..022977e9 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 0195dda8..2e9728e9 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 b0d96512..7b042946 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 406a6637..8874da2c 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 e2edc676..8e5b0566 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 b643af69..c1510622 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 d3e7cf35..c1bb2fd0 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 cb364960..8bf7d21d 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 f95a25b0..fca45b0b 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 f79687a7..772c1832 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 c8ac37fe..90137812 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 8a91249e..d4a31ee3 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 033/309] 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 252a0b61..e3aaaadd 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 e8b821f8..07f89424 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 8ab752c9..7da23a1f 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 febcb2b4..09646b79 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 bff08deb..0b5fb77e 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 599a9525..a9767818 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 41feb4c0..2b04cbb2 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 e4c9fb4d..36d7178f 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 a9c614a7..27cd4271 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 04ca6b29..a4d72600 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 74b4b4b0..b6603ae5 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 aa86b9e7..d528aa77 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 1e3be330..5c96d4ff 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 a70e6da1..54409f0e 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 022977e9..4fc49eca 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 2e9728e9..6ed14db3 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 7b042946..70f616cd 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 8874da2c..1f347b43 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 8e5b0566..4ec8acc7 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 c1510622..96d399de 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 d13ad1ce..6b1dc2fd 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 c1bb2fd0..5c38bfde 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 8bf7d21d..d6cccc88 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 fca45b0b..875fdcfa 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 772c1832..7d2c350b 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 90137812..15a02376 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 d4a31ee3..4aeb999b 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 034/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaadd..9dc41654 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 035/309] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9dc41654..e3aaaadd 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 036/309] 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 e3aaaadd..113d8fa7 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 07f89424..a11b192c 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 7da23a1f..07bc7103 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 09646b79..0338921d 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 0b5fb77e..d9ba020a 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 2b04cbb2..a84ff073 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 36d7178f..3e7d2f07 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 27cd4271..49b5faa2 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 a4d72600..1b3a0ec0 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 b6603ae5..1f333302 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 d528aa77..02f0557e 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 5c96d4ff..bb7123c8 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 54409f0e..ded0e815 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 229de463..c17a81d6 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 4fc49eca..b018e79a 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 6ed14db3..c9be7945 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 70f616cd..69b39e44 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 1f347b43..7d3edc2f 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 96d399de..02883e18 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 5c38bfde..4293939c 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 d6cccc88..2f4a81da 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 875fdcfa..2a708798 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 7d2c350b..81959be9 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 15a02376..abff62aa 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 4aeb999b..ce95368f 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 037/309] 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 113d8fa7..273003d5 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 a11b192c..d25bbb22 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 07bc7103..d3dd7cae 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 0338921d..e1713e4e 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 d9ba020a..3b983da3 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 a9767818..e20f70d1 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 3e7d2f07..cae6ad5c 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 49b5faa2..160c8933 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 1b3a0ec0..88544c1e 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 1f333302..9c66d8ac 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 02f0557e..2eb5f743 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 bb7123c8..6877d23c 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 ded0e815..4f77584f 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 b018e79a..51602476 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 c9be7945..aee2c981 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 69b39e44..694c42e4 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 7d3edc2f..4dff22a8 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 9bf5999b..ad49ad2e 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 4ec8acc7..fd74b68f 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 4293939c..413d0e17 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 2f4a81da..90a633be 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 2a708798..60c02409 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 81959be9..8e699fc1 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 abff62aa..69ceba5a 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 ce95368f..29afc4ff 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 038/309] 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 273003d5..4ed12a07 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 d25bbb22..e8b821f8 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 d3dd7cae..aedd3ecf 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 e1713e4e..08ef9907 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 3b983da3..e33ad593 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 a84ff073..c9a094cf 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 cae6ad5c..d7bd1b02 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 160c8933..95642239 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 88544c1e..86c53ef4 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 9c66d8ac..84b9f43b 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 2eb5f743..8469b14f 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 6877d23c..1e3be330 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 4f77584f..51279a01 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 51602476..937a9aaf 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 aee2c981..4683978a 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 694c42e4..7b042946 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 4dff22a8..3569d387 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 02883e18..b643af69 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 6b1dc2fd..d13ad1ce 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 413d0e17..91de9c79 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 90a633be..fe1c40dc 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 60c02409..c748c17f 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 8e699fc1..24d496e0 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 69ceba5a..b3183265 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 29afc4ff..22a82f69 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 039/309] 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 4ed12a07..e444cca6 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 e8b821f8..4838accc 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 aedd3ecf..7e83f2ad 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 08ef9907..a90c1627 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 e33ad593..5c7b2c90 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 e20f70d1..a9767818 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 c9a094cf..2b04cbb2 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 d7bd1b02..39994cc5 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 95642239..8782f52d 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 86c53ef4..cf1131ce 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 84b9f43b..0134318d 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 8469b14f..2325aa6f 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 1e3be330..ee79bf41 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 51279a01..fc8c7cdc 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 937a9aaf..32dab22b 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 4683978a..9271adb3 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 7b042946..e769f5c8 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 3569d387..2eea0022 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 ad49ad2e..9bf5999b 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 fd74b68f..4ec8acc7 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 b643af69..96d399de 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 91de9c79..eeb4e849 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 fe1c40dc..f703f824 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 c748c17f..74026888 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 24d496e0..43e246b8 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 b3183265..2c9201f9 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 22a82f69..37ae0b42 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 040/309] 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 e444cca6..48d3a1c9 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 4838accc..98150914 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 7e83f2ad..d65076b4 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 a90c1627..2f38ae64 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 5c7b2c90..a0f5e087 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 39994cc5..72803c6b 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 8782f52d..0889b583 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 cf1131ce..e2831d43 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 0134318d..824e3897 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 2325aa6f..9215da00 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 ee79bf41..04ac84e8 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 fc8c7cdc..bc7c2e45 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 32dab22b..16f3d965 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 9271adb3..19155ed9 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 2eea0022..f9ab1f14 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 9bf5999b..ad49ad2e 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 eeb4e849..11354b76 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 f703f824..6bf35d8f 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 74026888..1859713c 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 43e246b8..01716776 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 2c9201f9..e5538e94 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 37ae0b42..d5858a77 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 041/309] 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 48d3a1c9..dcf3b555 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 98150914..71ca3de2 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 d65076b4..5b26103c 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 2f38ae64..ae616ee2 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 a0f5e087..bca70eaa 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 a9767818..599a9525 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 72803c6b..db2db1b4 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 0889b583..b4c6a0a0 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 e2831d43..c3c469e9 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 824e3897..bc675178 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 9215da00..feb538a6 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 04ac84e8..5b4fff42 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 bc7c2e45..d6408b30 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 19155ed9..afbf4c8c 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 f9ab1f14..ec0bb295 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 4ec8acc7..8e5b0566 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 11354b76..ed2fea93 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 6bf35d8f..e346192a 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 1859713c..c2c26e08 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 01716776..33f73c4f 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 e5538e94..a483fbf8 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 d5858a77..31feb22e 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 042/309] 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 dcf3b555..a074d121 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 71ca3de2..1d544e44 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 7655bbef..299281d1 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 5b26103c..02db5a67 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 ae616ee2..bbd381db 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 bca70eaa..9f6dd5a4 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 599a9525..a9767818 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 2b04cbb2..41feb4c0 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 db2db1b4..6fe0cada 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 b4c6a0a0..cd409b55 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 c3c469e9..1c01fabf 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 bc675178..254aa3ae 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 feb538a6..e6ced059 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 5b4fff42..d25c2c89 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 d6408b30..dff9f513 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 9699c17b..1856b815 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 afbf4c8c..bb0d086f 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 ec0bb295..f27e4722 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 8e5b0566..4ec8acc7 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 96d399de..c1510622 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 ed2fea93..0b530605 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 e346192a..0001423b 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 c2c26e08..2327f11e 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 33f73c4f..9f5aab2f 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 a483fbf8..6d1b933a 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 31feb22e..ba29427b 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 043/309] 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 a074d121..eb3560bd 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 1d544e44..9d0ee721 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 02db5a67..18e58a9e 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 bbd381db..ae616ee2 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 9f6dd5a4..dee0ca84 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 41feb4c0..a84ff073 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 6fe0cada..ac757515 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 cd409b55..42e6ed5f 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 1c01fabf..87860ad8 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 254aa3ae..a88df39d 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 e6ced059..9d222b04 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 d25c2c89..37a21a65 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 dff9f513..55516d4b 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 229de463..c17a81d6 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 1856b815..82baddae 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 bb0d086f..afbf4c8c 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 e769f5c8..42643a65 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 f27e4722..3ae8a5fe 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 c1510622..02883e18 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 d13ad1ce..6b1dc2fd 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 0b530605..b4c4a9f4 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 0001423b..8e8e5590 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 2327f11e..876e3106 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 9f5aab2f..c8cfff7d 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 6d1b933a..9f4e2df0 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 ba29427b..e8f734f1 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 044/309] 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 eb3560bd..1ab5398d 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 9d0ee721..06d37c8b 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 18e58a9e..a5c5e92f 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 ae616ee2..2551fff4 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 dee0ca84..f48a8f61 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 a9767818..09d6973d 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 a84ff073..c9a094cf 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 ac757515..9757d869 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 42e6ed5f..dd3bc7c4 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 87860ad8..a3e1bc64 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 a88df39d..958891b0 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 9d222b04..a9e8d1ff 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 37a21a65..44b93157 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 55516d4b..85e64d26 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 afbf4c8c..f38bb5cc 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 42643a65..25333899 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 3ae8a5fe..258eb32c 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 ad49ad2e..9bf5999b 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 4ec8acc7..e2edc676 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 02883e18..b643af69 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 b4c4a9f4..01f8567f 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 8e8e5590..9adf2198 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 876e3106..e0c384fa 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 c8cfff7d..f7a63153 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 9f4e2df0..3d995746 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 e8f734f1..5a4aea1f 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 045/309] 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 1ab5398d..4f56253f 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 06d37c8b..7e6e59b2 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 a5c5e92f..7d81cd62 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 2551fff4..d62bfa6c 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 f48a8f61..5a6f0e89 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 9757d869..3226d2c5 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 dd3bc7c4..fff814c7 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 a3e1bc64..821e9eb7 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 958891b0..f9d73622 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 a9e8d1ff..e63088e5 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 44b93157..b588d266 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 85e64d26..19ad2893 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 f38bb5cc..b67c2a66 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 25333899..e769f5c8 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 258eb32c..c495db3f 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 9bf5999b..ad49ad2e 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 01f8567f..2839b59b 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 9adf2198..f23546fa 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 e0c384fa..f29759ed 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 f7a63153..c47837e6 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 3d995746..bb178240 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 5a4aea1f..d942aefa 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 046/309] 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 4f56253f..a60308bc 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 7e6e59b2..fe860f56 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 7d81cd62..02db5a67 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 d62bfa6c..aa4e8de9 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 5a6f0e89..66201046 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 09d6973d..599a9525 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 3226d2c5..dee0513d 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 fff814c7..67f64ceb 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 821e9eb7..75924369 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 f9d73622..34058eb7 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 e63088e5..aaf2de3e 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 b588d266..01afe1eb 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 19ad2893..c41a6a43 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 c17a81d6..229de463 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 9bb8cbf3..1856b815 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 b67c2a66..1cb0c754 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 e769f5c8..e56040c2 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 c495db3f..cbf88c15 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 e2edc676..8e5b0566 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 2839b59b..5446dcdd 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 f23546fa..3cddc995 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 f29759ed..58129b14 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 c47837e6..b2e1db3a 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 bb178240..e93f2835 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 d942aefa..bccd959c 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 047/309] 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 a60308bc..1b10c3a2 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 fe860f56..97372da9 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 02db5a67..d65076b4 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 aa4e8de9..7ebe5ada 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 66201046..0d4e6687 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 c9a094cf..a84ff073 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 dee0513d..29770b7a 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 67f64ceb..9a22ea28 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 75924369..d9f091b5 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 34058eb7..6b386cfd 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 aaf2de3e..98239749 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 01afe1eb..0bcd04f7 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 c41a6a43..aa57bcf5 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 229de463..c17a81d6 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 1856b815..16f3d965 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 1cb0c754..80e35cb1 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 e56040c2..42643a65 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 cbf88c15..1142580f 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 b643af69..02883e18 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 5446dcdd..7cfef852 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 3cddc995..431f6ec7 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 58129b14..06f2e1a2 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 b2e1db3a..f12a4083 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 e93f2835..1b9392be 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 bccd959c..be87f308 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 048/309] 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 1b10c3a2..99bc67bc 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 97372da9..4838accc 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 d65076b4..a5c5e92f 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 7ebe5ada..498021bb 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 0d4e6687..9ec020c7 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 a84ff073..c9a094cf 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 cdcf5bf4..255e9d2d 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 29770b7a..8694513f 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 9a22ea28..160c8933 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 d9f091b5..32b23743 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 6b386cfd..eb25b96a 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 98239749..cafc10aa 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 0bcd04f7..ee79bf41 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 aa57bcf5..e397b0e8 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 16f3d965..5d39f0e7 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 80e35cb1..7b876bd9 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 42643a65..69b39e44 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 1142580f..a296a8f2 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 02883e18..b643af69 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 5b7e4c70..09984bfe 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 7cfef852..a768ce39 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 431f6ec7..6fb9fa90 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 06f2e1a2..60c02409 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 f12a4083..c81b46b9 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 1b9392be..0ac04873 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 be87f308..6608d8b3 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 049/309] 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 99bc67bc..fc6efd61 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 a5c5e92f..a7ba1088 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 498021bb..a0a01378 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 9ec020c7..0cd35aca 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 599a9525..e20f70d1 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 c9a094cf..41feb4c0 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 8694513f..1f97014f 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 160c8933..9edbda20 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 32b23743..89f0a59a 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 eb25b96a..3f9d4f6d 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 cafc10aa..e94415cf 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 e397b0e8..ed71e6e0 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 5d39f0e7..fbbfdb0f 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 7b876bd9..2eafe6c0 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 a296a8f2..7dc0f06f 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 8e5b0566..fd74b68f 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 b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 a768ce39..436a202d 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 6fb9fa90..2cd66606 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 60c02409..f9f263e2 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 c81b46b9..39021c54 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 0ac04873..a690027b 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 6608d8b3..547e7721 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 050/309] 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 fc6efd61..ae9cb11e 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 4838accc..ab94d0d8 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 a7ba1088..fc1e3b49 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 a0a01378..a9b5c262 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 0cd35aca..e04dc919 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 e20f70d1..a9767818 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 41feb4c0..2b04cbb2 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 1f97014f..2aaa33f1 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 9edbda20..209a377c 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 89f0a59a..d1dc8534 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 3f9d4f6d..c6973790 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 e94415cf..289dd44e 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 ee79bf41..da0a05cf 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 ed71e6e0..a84a6e93 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 c17a81d6..229de463 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 fbbfdb0f..9777e696 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 2eafe6c0..d51681f5 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 69b39e44..14dcb2e9 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 7dc0f06f..d7ebd33b 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 fd74b68f..4ec8acc7 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 c1510622..96d399de 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 436a202d..a316af64 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 2cd66606..368adc06 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 f9f263e2..f95a25b0 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 39021c54..9fabb895 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 a690027b..989bd763 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 547e7721..2656be87 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 051/309] 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 ae9cb11e..4e60eca4 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 035a4991..8e001610 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 ab94d0d8..50028621 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 fc1e3b49..04671820 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 5489cf2d..104cf494 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 a9b5c262..f66025c5 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 e04dc919..33a40fdf 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 2b04cbb2..41feb4c0 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 2aaa33f1..0e540909 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 209a377c..a268750c 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 d1dc8534..29772eec 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 c6973790..a1cb6b95 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 289dd44e..cb9015b6 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 da0a05cf..b5ead1c6 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 a84a6e93..1abeaa80 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 9777e696..a007aad8 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 d51681f5..34e739dd 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 d7ebd33b..e56adcd7 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 96d399de..c1510622 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 d13ad1ce..6b1dc2fd 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 a316af64..b87e32ac 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 368adc06..82a21730 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 f95a25b0..32b96b7e 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 9fabb895..3adc0286 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 989bd763..16d5ebff 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 2656be87..269d5b4f 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 052/309] 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 4e60eca4..5930ed91 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 50028621..0859fc30 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 04671820..bed11f99 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 f66025c5..685b16a6 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 33a40fdf..9f94b654 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 a9767818..599a9525 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 41feb4c0..c9a094cf 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 0e540909..105f0823 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 a268750c..3e57276a 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 29772eec..e39ebde3 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 a1cb6b95..67f5cdfd 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 cb9015b6..687523b7 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 b5ead1c6..a2da2466 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 1abeaa80..959825f5 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 229de463..c17a81d6 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 a007aad8..1bf6241e 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 34e739dd..1697eb4a 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 14dcb2e9..25333899 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 e56adcd7..08ce1092 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 ad49ad2e..9bf5999b 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 4ec8acc7..8e5b0566 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 c1510622..b643af69 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 b87e32ac..fb1db993 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 82a21730..554d0e94 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 32b96b7e..3b4f631b 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 3adc0286..01e5fef5 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 16d5ebff..4a203b66 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 269d5b4f..1f214937 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 053/309] 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 5930ed91..c0182bd6 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 0859fc30..fea649df 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 bed11f99..fd93dd36 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 685b16a6..aa4e8de9 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 9f94b654..185f935b 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 599a9525..e20f70d1 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 105f0823..03395920 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 3e57276a..209a377c 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 e39ebde3..86847977 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 67f5cdfd..d18b64d9 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 687523b7..04819b64 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 a2da2466..11e9246d 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 959825f5..95c07212 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 1bf6241e..84d654c4 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 1697eb4a..1cb0c754 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 25333899..14dcb2e9 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 08ce1092..a5ecaaf6 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 8e5b0566..fd74b68f 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 6b1dc2fd..d13ad1ce 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 fb1db993..27ccce51 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 554d0e94..f8d414d5 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 3b4f631b..f95a25b0 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 01e5fef5..a9d2dd03 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 4a203b66..60287bcf 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 1f214937..b2dc29fa 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 054/309] 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 c0182bd6..7ad8da57 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 fea649df..0a7a15b9 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 fd93dd36..a5c5e92f 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 aa4e8de9..eb4aa47d 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 e20f70d1..09d6973d 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 03395920..398f7610 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 209a377c..2bf80440 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 86847977..8acf3596 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 d18b64d9..778a98bb 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 04819b64..fb10bef6 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 11e9246d..958468a3 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 95c07212..4395eaab 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 84d654c4..5d39f0e7 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 1cb0c754..3f725718 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 14dcb2e9..e769f5c8 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 9bf5999b..ad49ad2e 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 fd74b68f..e2edc676 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 27ccce51..9ef38d44 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 f8d414d5..785405b3 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 f95a25b0..5938058a 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 a9d2dd03..6bc26b35 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 60287bcf..4bacb3c5 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 b2dc29fa..60b1b80e 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 055/309] 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 7ad8da57..957fd850 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 0a7a15b9..d646b3bc 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 a5c5e92f..8473f883 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 eb4aa47d..1a710b38 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 185f935b..a28581af 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 09d6973d..e20f70d1 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 c9a094cf..2b04cbb2 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 398f7610..668ff93b 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 2bf80440..651e8fba 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 8acf3596..e96b72f5 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 778a98bb..ba895178 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 fb10bef6..7311a1f1 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 958468a3..e63adb9e 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 4395eaab..a50939db 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 5d39f0e7..4ef64e8c 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 3f725718..dc22aa44 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 e769f5c8..14dcb2e9 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 a5ecaaf6..bb28a8f3 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 ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 b643af69..96d399de 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 d13ad1ce..6b1dc2fd 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 9ef38d44..d5beddd8 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 785405b3..1b1d157a 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 5938058a..46e853d9 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 6bc26b35..c4451fd8 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 4bacb3c5..0398bc8e 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 60b1b80e..b78004be 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 056/309] 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 957fd850..5daaca59 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 d646b3bc..0859fc30 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 8473f883..1b1447a7 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 1a710b38..aa4e8de9 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 a28581af..b63ecbcc 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 2b04cbb2..a84ff073 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 668ff93b..62da420d 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 651e8fba..a9c614a7 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 e96b72f5..298b3c23 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 ba895178..7cf24a15 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 7311a1f1..d7230345 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 e63adb9e..a2da2466 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 a50939db..cb999b01 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 c17a81d6..229de463 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 4ef64e8c..12dd668a 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 dc22aa44..1cb0c754 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 14dcb2e9..b0d96512 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 bb28a8f3..c5136422 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 9bf5999b..ad49ad2e 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 96d399de..02883e18 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 6b1dc2fd..d13ad1ce 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 d5beddd8..16e95443 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 1b1d157a..25fc832d 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 46e853d9..fca45b0b 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 c4451fd8..938d955d 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 0398bc8e..f8f3a3b0 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 b78004be..f4125266 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 057/309] 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 5daaca59..6423fd49 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 0859fc30..97372da9 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 1b1447a7..f8001da8 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 aa4e8de9..cdae0082 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 b63ecbcc..185f935b 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 e20f70d1..09d6973d 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 a84ff073..2b04cbb2 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 62da420d..9e4ec645 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 a9c614a7..96d12b7b 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 298b3c23..3a8aa4a8 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 7cf24a15..81a4c909 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 d7230345..d8720595 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 a2da2466..0bcd04f7 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 cb999b01..c9e0be75 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 12dd668a..01499889 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 1cb0c754..8cac4fb7 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 c5136422..a5ecaaf6 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 ad49ad2e..9bf5999b 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 fd74b68f..e2edc676 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 02883e18..96d399de 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 16e95443..339e7540 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 25fc832d..adea911c 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 fca45b0b..a4fd83d6 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 938d955d..1d3d23c3 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 f8f3a3b0..ee7785e1 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 f4125266..8c401b96 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 058/309] 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 6423fd49..085ef93d 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 97372da9..6bb6558e 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 f8001da8..7e83f2ad 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 cdae0082..498021bb 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 185f935b..ca82093e 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 09d6973d..a9767818 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 2b04cbb2..c9a094cf 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 9e4ec645..30708900 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 96d12b7b..c556977f 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 3a8aa4a8..ade52188 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 81a4c909..03fd466c 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 d8720595..907b2e92 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 0bcd04f7..5756d5ab 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 c9e0be75..d85a4548 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 01499889..32dab22b 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 8cac4fb7..7b876bd9 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 b0d96512..e56040c2 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 a5ecaaf6..548a48cb 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 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 96d399de..b643af69 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 d13ad1ce..6b1dc2fd 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 339e7540..c65bf7b2 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 adea911c..663ca805 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 a4fd83d6..990b3fc7 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 1d3d23c3..e0b1a8be 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 ee7785e1..84ec524e 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 8c401b96..432e27a7 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 891a20154858e332f6965a897a11c1e3eb60d46d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 19:12:33 +0000 Subject: [PATCH 059/309] 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 | 13 ++++++---- .../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 | 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 | 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 26 files changed, 121 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 085ef93d..26bd6329 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-74609107d9bbe47ca001712873c4449f6657c5539e4e83c398f672b7d4439749.yml -openapi_spec_hash: 0ced1a38864fe0442a4089920de41e5f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-364a23106dadf67821b6acf8a8abe8062295c58f5fc2b7520ba782d74b8ee65e.yml +openapi_spec_hash: 47d6274198f1bb53d3e30b19ad2812d0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..09b0b1a0 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('aut'); + * const response = await client.accounts.disconnect( + * 'repudiandae', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2ad..90167a87 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( + * 'velit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..2f38ae64 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', + * '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( - * 'aut', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..845578d3 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( + * 'harum', + * { + * 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('ut', { + * const comments = await client.posts.comments.list('harum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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/smart-links.ts b/src/resources/smart-links.ts index 30708900..6476e562 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( - * 'praesentium', - * ); + * const response = await client.smartLinks.listClicks('sint'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quidem', + * 'occaecati', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans( + * 'sapiente', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'assumenda', + * 'rerum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('autem'); + * await client.smartLinks.retrieveCohortArps('tenetur'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ullam', + * 'vel', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..3f9bae82 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( - * 'sed', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequatur', + * { + * 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 ade52188..84c63f8d 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( - * 'dignissimos', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dignissimos', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('optio', { + * await client.trackingLinks.getCohortArps('repudiandae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'nesciunt', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 03fd466c..29d7b361 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( - * 'exercitationem', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'exercitationem', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'deleniti', + * 'esse', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nisi', { + * await client.trialLinks.retrieveCohortArps('quae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsam', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 907b2e92..46fae508 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: 'xoefjwuukvndqnoilzrytz' }, + * { name: 'sgoxqyiqgqehak' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..cbd1f796 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('repudiandae'); 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 d85a4548..9df92307 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: 'debitis', - auth_type: 'raw_data', - cookies: 'ut', + auth_id: 'dolore', + auth_type: 'email_password', + cookies: 'soluta', customProxy: { host: 'proxy.example.com', - password: 'X\\WZaQOf`eZj-', + password: 'v937U]FPK', port: 8080, - username: 'ut', + username: 'et', }, - email: 'ned.muller@example.org', - force_connect: false, - name: 'rem', - password: '>>0 { // 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('velit', { 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('velit', { 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 7b876bd9..19155ed9 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('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('aut', { + 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('aut', { + 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('aut', { + 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 e56040c2..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..2ccfea41 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('harum', { 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('harum', { 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('harum', { 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('harum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..e2edc676 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 c65bf7b2..69e9fd59 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: ['lyxqcmnxobiryxfen'] }, + filter: { tags: ['qsiixogtqjqbsgojsrmu'] }, 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('praesentium'); + const responsePromise = client.smartLinks.listClicks('sint'); 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( - 'praesentium', + 'sint', { 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('quidem'); + const responsePromise = client.smartLinks.listConversions('occaecati'); 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( - 'quidem', + 'occaecati', { 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('et'); + const responsePromise = client.smartLinks.listFans('sapiente'); 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( - 'et', + 'sapiente', { 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('assumenda'); + const responsePromise = client.smartLinks.listSpenders('rerum'); 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( - 'assumenda', + 'rerum', { 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('autem'); + const responsePromise = client.smartLinks.retrieveCohortArps('tenetur'); 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( - 'autem', + 'tenetur', { 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('ullam'); + const responsePromise = client.smartLinks.retrieveStats('vel'); 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( - 'ullam', + '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 663ca805..014f8dfc 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: 'wmpjnvsokrtmm', tags: ['db'] }, + filter: { search: 'euwwukorhwovaqva', tags: ['gfyo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qjvowkkefosyvpazi', tags: ['ysa'] }, + filter: { search: 'a', tags: ['qnbcwlflb'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lzamwfuhxgsqjmaarx', - tags: ['xnxlnbqdcuqpdbwkf'], + include_smart_links: true, + search: 'ebeeg', + tags: ['tyrcjugqhatbsfgebuzif'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'tfcfixxskknngoiy', - tags: ['sdvhdjxxzhevudlaginokmjpe'], + include_smart_links: false, + search: 'szhacuydhngnvhmxt', + tags: ['ffvphyitjjnwmjop'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..b692edc7 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('sed', { + const responsePromise = client.stories.highlights.addStory('consequatur', { 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('sed', { + const response = await client.stories.highlights.addStory('consequatur', { 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('sed', { + const responsePromise = client.stories.highlights.removeStory('consequatur', { 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('sed', { + const response = await client.stories.highlights.removeStory('consequatur', { 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 e0b1a8be..c57f278e 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('at', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('at', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('at', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('repudiandae', { + 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('optio', { + const response = await client.trackingLinks.getCohortArps('repudiandae', { 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('nesciunt', { 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('nesciunt', { + 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 84ec524e..ce7a79c2 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('officia', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('officia', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('officia', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('officia', { 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('deleniti', { + const responsePromise = client.trialLinks.listSubscribers('esse', { 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('deleniti', { + const response = await client.trialLinks.listSubscribers('esse', { 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('nisi', { 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('nisi', { + 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('similique', { 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('ipsam', { + const response = await client.trialLinks.retrieveStats('similique', { 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 432e27a7..45704a6a 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: 'xoefjwuukvndqnoilzrytz', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sgoxqyiqgqehak' }); 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: 'xoefjwuukvndqnoilzrytz', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sgoxqyiqgqehak' }); }); // Mock server tests are disabled From 14b9f56d6162a62e5555d6727b9bac9a75aab24a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 02:12:32 +0000 Subject: [PATCH 060/309] 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 | 13 ++++------ .../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 | 6 ++--- 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 | 12 ++++----- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 105 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 26bd6329..3b83ff88 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-364a23106dadf67821b6acf8a8abe8062295c58f5fc2b7520ba782d74b8ee65e.yml -openapi_spec_hash: 47d6274198f1bb53d3e30b19ad2812d0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da33ae98e5bcc526235f1ebcdf334a63c9f874195e6f4c89a8ebc13c2b686bd4.yml +openapi_spec_hash: 250d19d239bfbb6c908131c18e33d8cd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 09b0b1a0..3c5ed4a9 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( - * 'repudiandae', - * ); + * 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 90167a87..c626d243 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( - * 'velit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..9a03aa26 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', + * 'nostrum', * { 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', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 845578d3..308ae596 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( - * 'harum', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('vel', { + * 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('harum', { + * const comments = await client.posts.comments.list('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 c9a094cf..a84ff073 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 6476e562..bf61b34d 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('sint'); + * const response = await client.smartLinks.listClicks( + * 'repudiandae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'occaecati', + * 'et', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'sapiente', - * ); + * const response = await client.smartLinks.listFans('in'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rerum', + * 'suscipit', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tenetur'); + * await client.smartLinks.retrieveCohortArps('corrupti'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'vel', + * 'repellendus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3f9bae82..88991aed 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( - * 'consequatur', + * 'assumenda', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequatur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('assumenda', { + * 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 84c63f8d..f9bf45e4 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( - * 'at', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'at', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repudiandae', { + * await client.trackingLinks.getCohortArps('dolorem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'molestias', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 29d7b361..a509a2f1 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'esse', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quae', { + * await client.trialLinks.retrieveCohortArps('quam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'similique', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 46fae508..7621c3ab 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: 'sgoxqyiqgqehak' }, + * { name: 'yjkjvfzjxodob' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index cbd1f796..3c3098d8 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('repudiandae'); + 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 9df92307..a6dcff75 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: 'dolore', - auth_type: 'email_password', - cookies: 'soluta', + auth_id: 'ut', + auth_type: 'raw_data', + cookies: 'quis', customProxy: { host: 'proxy.example.com', - password: 'v937U]FPK', + password: 'q|_}$Qz', port: 8080, - username: 'et', + username: 'odit', }, - email: 'qlakin@example.com', - force_connect: true, - name: 'aut', - password: 'L)+E]x', + email: 'lonie02@example.net', + force_connect: false, + name: 'quia', + password: ')kaQB>&qj^[', proxyCountry: 'uk', - user_agent: 'beatae', - xbc: 'hic', + user_agent: 'earum', + xbc: 'dolor', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 e5d04d9a..8fed0617 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('velit', { + const responsePromise = client.engagement.messages.getMessageBuyers('ea', { 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('velit', { + const response = await client.engagement.messages.getMessageBuyers('ea', { 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 19155ed9..b4b720c0 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('nostrum', { 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('nostrum', { 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('nostrum', { 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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..b0d96512 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 2ccfea41..9b7aaa77 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('harum', { + const responsePromise = client.posts.comments.create('vel', { 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('harum', { + const response = await client.posts.comments.create('vel', { 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('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('vel', { 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('harum', { + const response = await client.posts.comments.list('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..8e5b0566 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 b643af69..02883e18 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 69e9fd59..d852539f 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: ['qsiixogtqjqbsgojsrmu'] }, + filter: { tags: ['oz'] }, 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('sint'); + const responsePromise = client.smartLinks.listClicks('repudiandae'); 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( - 'sint', + 'repudiandae', { 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('occaecati'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'occaecati', + 'et', { 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('sapiente'); + const responsePromise = client.smartLinks.listFans('in'); 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( - 'sapiente', + 'in', { 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('rerum'); + const responsePromise = client.smartLinks.listSpenders('suscipit'); 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( - 'rerum', + 'suscipit', { 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('corrupti'); 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', + 'corrupti', { 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('vel'); + const responsePromise = client.smartLinks.retrieveStats('repellendus'); 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( - 'vel', + 'repellendus', { 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 014f8dfc..e87a8017 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: 'euwwukorhwovaqva', tags: ['gfyo'] }, + filter: { search: 'qdqkngicrdxlastebmwrvz', tags: ['yrp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'a', tags: ['qnbcwlflb'] }, + filter: { search: 'xybgivrdqmxqdorwtcso', tags: ['zjkajkrdwdejzf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ebeeg', - tags: ['tyrcjugqhatbsfgebuzif'], + include_smart_links: false, + search: 'zjkz', + tags: ['xjwjlwvbqhsl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'szhacuydhngnvhmxt', - tags: ['ffvphyitjjnwmjop'], + search: 'uxoqidqzjbbdndjs', + tags: ['tlxxjnajyxnkarbxvzesx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b692edc7..671f3446 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('consequatur', { + const responsePromise = client.stories.highlights.addStory('assumenda', { 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('consequatur', { + const response = await client.stories.highlights.addStory('assumenda', { 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('consequatur', { + const responsePromise = client.stories.highlights.removeStory('assumenda', { 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('consequatur', { + const response = await client.stories.highlights.removeStory('assumenda', { 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 c57f278e..da17da86 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('at', { 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('at', { 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('at', { 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,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('at', { 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('repudiandae', { + const responsePromise = client.trackingLinks.getCohortArps('dolorem', { 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('repudiandae', { + const response = await client.trackingLinks.getCohortArps('dolorem', { 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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('saepe', { 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('molestias', { + const response = await client.trackingLinks.getStats('saepe', { 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 ce7a79c2..20b1bb49 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('esse', { + 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('esse', { + const response = await client.trialLinks.listSubscribers('est', { 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('quae', { 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; @@ -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('quae', { + const response = await client.trialLinks.retrieveCohortArps('quam', { 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('non', { 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('similique', { + const response = await client.trialLinks.retrieveStats('non', { 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 45704a6a..19ce35a3 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: 'sgoxqyiqgqehak' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yjkjvfzjxodob' }); 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: 'sgoxqyiqgqehak' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yjkjvfzjxodob' }); }); // Mock server tests are disabled From 07e7142105072534c10d8a6f293ddb1540200039 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 03:12:29 +0000 Subject: [PATCH 061/309] 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 | 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 | 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 | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 103 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3b83ff88..4139d218 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-da33ae98e5bcc526235f1ebcdf334a63c9f874195e6f4c89a8ebc13c2b686bd4.yml -openapi_spec_hash: 250d19d239bfbb6c908131c18e33d8cd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b5fdc0939aabdb8948aba920990db4255e7c50a1b38b7246df7f2739f4f8d77.yml +openapi_spec_hash: 591e244acffc27181a13a569298c1f53 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a9..6bb6558e 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('quia'); + * 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 c626d243..4c8bee51 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'consequatur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9a03aa26..66286110 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( - * 'nostrum', + * 'voluptatem', * { 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( - * 'nostrum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 308ae596..0b5fb77e 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('vel', { + * const comment = await client.posts.comments.create('est', { * 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('vel', { + * const comments = await client.posts.comments.list('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 a84ff073..2b04cbb2 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 bf61b34d..0837fe8d 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( - * 'repudiandae', - * ); + * 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( - * 'et', + * 'consequatur', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('in'); + * const response = await client.smartLinks.listFans('quasi'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'suscipit', + * 'ducimus', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('corrupti'); + * await client.smartLinks.retrieveCohortArps('consequatur'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'repellendus', + * 'quidem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 88991aed..27cd4271 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( - * 'assumenda', + * '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('assumenda', { + * 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 f9bf45e4..3ba00705 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', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolorem', { + * await client.trackingLinks.getCohortArps('placeat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'saepe', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a509a2f1..6991256f 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( - * 'officia', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'officia', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'ea', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quam', { + * await client.trialLinks.retrieveCohortArps('natus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'non', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7621c3ab..7fc82815 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: 'yjkjvfzjxodob' }, + * { name: 'sxkyuoqfspwq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d8..5756d5ab 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('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 a6dcff75..2dfc9f27 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_id: 'dolorum', auth_type: 'raw_data', - cookies: 'quis', + cookies: 'at', customProxy: { host: 'proxy.example.com', - password: 'q|_}$Qz', + password: 'kQa")ly-4y', port: 8080, - username: 'odit', + username: 'nam', }, - email: 'lonie02@example.net', - force_connect: false, - name: 'quia', - password: ')kaQB>&qj^[', + email: 'orn.yvette@example.net', + force_connect: true, + name: 'eius', + password: 'a&:t=8tFYho$;u.2', proxyCountry: 'uk', - user_agent: 'earum', - xbc: 'dolor', + user_agent: 'nostrum', + xbc: 'non', }, { 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 8fed0617..7b080c81 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('ea', { + const responsePromise = client.engagement.messages.getMessageBuyers('consequatur', { 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('ea', { + const response = await client.engagement.messages.getMessageBuyers('consequatur', { 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 b4b720c0..157f995e 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('nostrum', { + const responsePromise = client.media.vault.lists.media.add('voluptatem', { 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('nostrum', { + const response = await client.media.vault.lists.media.add('voluptatem', { 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('nostrum', { + const responsePromise = client.media.vault.lists.media.remove('voluptatem', { 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('nostrum', { + const response = await client.media.vault.lists.media.remove('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9b7aaa77..1f347b43 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('vel', { + 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('vel', { + 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('vel', { 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('vel', { + 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 8e5b0566..fd74b68f 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 02883e18..96d399de 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 d852539f..205c4af2 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: ['oz'] }, + filter: { tags: ['hmdxyokoztzxdi'] }, 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('repudiandae'); + 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( - 'repudiandae', + '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('et'); + const responsePromise = client.smartLinks.listConversions('consequatur'); 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( - 'et', + 'consequatur', { 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('in'); + const responsePromise = client.smartLinks.listFans('quasi'); 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( - 'in', + 'quasi', { 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('suscipit'); + const responsePromise = client.smartLinks.listSpenders('ducimus'); 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( - 'suscipit', + 'ducimus', { 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('corrupti'); + 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( - 'corrupti', + '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('repellendus'); + const responsePromise = client.smartLinks.retrieveStats('quidem'); 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( - 'repellendus', + 'quidem', { 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 e87a8017..35f948f6 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: 'qdqkngicrdxlastebmwrvz', tags: ['yrp'] }, + filter: { search: 'vdvrydwozfcnjncqirit', tags: ['hotgijkvtcwwqhucl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xybgivrdqmxqdorwtcso', tags: ['zjkajkrdwdejzf'] }, + filter: { search: 'qbayfsfxmuceevhvvuvxrirc', tags: ['goprahflbosrjrt'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zjkz', - tags: ['xjwjlwvbqhsl'], + include_smart_links: true, + search: 'petshdzztomtjilsfraok', + tags: ['anwrcukgjmptdnhe'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'uxoqidqzjbbdndjs', - tags: ['tlxxjnajyxnkarbxvzesx'], + search: 'pa', + tags: ['rmcqgymdzvocoinlk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 671f3446..875fdcfa 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('assumenda', { + 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('assumenda', { + 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('assumenda', { + 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('assumenda', { + 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 da17da86..b1f97e91 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('repudiandae', { 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('repudiandae', { 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('repudiandae', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolorem', { + const responsePromise = client.trackingLinks.getCohortArps('placeat', { 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('dolorem', { + const response = await client.trackingLinks.getCohortArps('placeat', { 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('natus', { 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('saepe', { + const response = await client.trackingLinks.getStats('natus', { 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 20b1bb49..4f9edc05 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('inventore', { 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('inventore', { 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('inventore', { 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('inventore', { 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('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('est', { + const response = await client.trialLinks.listSubscribers('ea', { 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('natus', { + 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('natus', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quis', { 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('non', { + const response = await client.trialLinks.retrieveStats('quis', { 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 19ce35a3..e55855b1 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: 'yjkjvfzjxodob' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sxkyuoqfspwq' }); 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: 'yjkjvfzjxodob' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sxkyuoqfspwq' }); }); // Mock server tests are disabled From c4048c43712afebfbf52d6afa8ff0d9f61fa65eb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 14:12:31 +0000 Subject: [PATCH 062/309] 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 | 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 +-- .../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 | 4 +-- 29 files changed, 114 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4139d218..cb037ceb 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-8b5fdc0939aabdb8948aba920990db4255e7c50a1b38b7246df7f2739f4f8d77.yml -openapi_spec_hash: 591e244acffc27181a13a569298c1f53 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-263cac3e045d4befba748e9a0a69a6fedb3a5c5bc544b1264a5c67bb421bd2d6.yml +openapi_spec_hash: be3d9e1e44ef8e34ae6147f0c4cf970e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..465af8e7 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('aut'); + * const response = await client.accounts.disconnect( + * 'voluptate', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4c8bee51..b84a7bab 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( - * 'consequatur', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66286110..88ae4fb6 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( - * 'voluptatem', + * 'enim', * { 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( - * 'voluptatem', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0b5fb77e..434244b7 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( + * 'optio', + * { + * 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('optio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 2b04cbb2..c9a094cf 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 0837fe8d..ecb29e58 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( + * 'dolores', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'consequatur', + * 'qui', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quasi'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ducimus', + * 'quibusdam', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consequatur'); + * await client.smartLinks.retrieveCohortArps('laborum'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quidem', + * 'consectetur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..74eaf4fe 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', + * 'culpa', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { + * await client.stories.highlights.removeStory('culpa', { * 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 3ba00705..88d49181 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( - * 'repudiandae', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'repudiandae', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('placeat', { + * await client.trackingLinks.getCohortArps('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'natus', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6991256f..ca7bef80 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( - * 'inventore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'inventore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ea', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('natus', { + * await client.trialLinks.retrieveCohortArps('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quis', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7fc82815..db340dc4 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: 'sxkyuoqfspwq' }, + * { name: 'x' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..9aa50b20 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('voluptate'); 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 2dfc9f27..2fecffeb 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: 'dolorum', + auth_id: 'autem', auth_type: 'raw_data', - cookies: 'at', + cookies: 'in', customProxy: { host: 'proxy.example.com', - password: 'kQa")ly-4y', + password: 'GFt6s.!G0', port: 8080, - username: 'nam', + username: 'provident', }, - email: 'orn.yvette@example.net', - force_connect: true, - name: 'eius', - password: 'a&:t=8tFYho$;u.2', + email: 'mann.tamara@example.net', + force_connect: false, + name: 'nihil', + password: "0!cN`/'2fE]&[K", proxyCountry: 'uk', - user_agent: 'nostrum', - xbc: 'non', + user_agent: 'asperiores', + 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 c17a81d6..229de463 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 7b080c81..02beb46b 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('consequatur', { + const responsePromise = client.engagement.messages.getMessageBuyers('magnam', { 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('consequatur', { + const response = await client.engagement.messages.getMessageBuyers('magnam', { 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 157f995e..56699230 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('voluptatem', { + const responsePromise = client.media.vault.lists.media.add('enim', { 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('voluptatem', { + const response = await client.media.vault.lists.media.add('enim', { 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('voluptatem', { + const responsePromise = client.media.vault.lists.media.remove('enim', { 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('voluptatem', { + const response = await client.media.vault.lists.media.remove('enim', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..b0d96512 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 1f347b43..ff2812ed 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('optio', { 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('optio', { 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('optio', { 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('optio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..4ec8acc7 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 96d399de..b643af69 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 d13ad1ce..6b1dc2fd 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 205c4af2..5c6a542f 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: ['hmdxyokoztzxdi'] }, + filter: { tags: ['opgvgl'] }, 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('dolores'); 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', + 'dolores', { 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('consequatur'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'consequatur', + 'qui', { 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('quasi'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'quasi', + 'qui', { 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('ducimus'); + const responsePromise = client.smartLinks.listSpenders('quibusdam'); 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( - 'ducimus', + 'quibusdam', { 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('laborum'); 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', + 'laborum', { 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('quidem'); + const responsePromise = client.smartLinks.retrieveStats('consectetur'); 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( - 'quidem', + 'consectetur', { 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 35f948f6..123053c3 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: 'vdvrydwozfcnjncqirit', tags: ['hotgijkvtcwwqhucl'] }, + filter: { search: 'mmmropkqp', tags: ['fsfpecppblkfjaqxygweqcgw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qbayfsfxmuceevhvvuvxrirc', tags: ['goprahflbosrjrt'] }, + filter: { search: 'stazscocjokc', tags: ['frurmpvebche'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'petshdzztomtjilsfraok', - tags: ['anwrcukgjmptdnhe'], + search: 'zbztowhsnbflmkeepjuvm', + tags: ['wspznaptbmdzgmnz'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'pa', - tags: ['rmcqgymdzvocoinlk'], + search: 'zgddltgmtfwxjy', + tags: ['anwnfynnyrdjmllv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..14df1b81 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('culpa', { 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('culpa', { 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('culpa', { 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('culpa', { 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 b1f97e91..2ca64d82 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('suscipit', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('suscipit', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('suscipit', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('placeat', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('iste', { 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('placeat', { + const response = await client.trackingLinks.getCohortArps('iste', { 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('natus', { 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; @@ -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('natus', { + 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 4f9edc05..ce198471 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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('id', { 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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('id', { 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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('id', { 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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('id', { 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('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('ea', { + 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('natus', { + 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('natus', { + 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('placeat', { 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('quis', { + const response = await client.trialLinks.retrieveStats('placeat', { 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 e55855b1..ce474494 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: 'sxkyuoqfspwq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'x' }); 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: 'sxkyuoqfspwq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'x' }); }); // Mock server tests are disabled From 93b27d8d781b405d7bed40880c4552423dd2de9a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 16:12:37 +0000 Subject: [PATCH 063/309] 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 | 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 | 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 +++---- 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 | 22 +++++++++---------- 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, 104 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb037ceb..c9fc6007 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-263cac3e045d4befba748e9a0a69a6fedb3a5c5bc544b1264a5c67bb421bd2d6.yml -openapi_spec_hash: be3d9e1e44ef8e34ae6147f0c4cf970e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f6e36c82e08f5fad5bb9f5d6916e883732f66f2944110437a2b3202ccd8b48db.yml +openapi_spec_hash: 795fb6f49f43da3bfba49f26a2285d23 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 465af8e7..7181e851 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( - * 'voluptate', + * 'inventore', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b84a7bab..a3e8d944 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( - * 'magnam', + * 'deserunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 88ae4fb6..b01e4fef 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( - * 'enim', + * 'esse', * { 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( - * 'enim', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 434244b7..36ae6c40 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( - * 'optio', + * 'repellat', * { * 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('optio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'repellat', + * { 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 a9767818..09d6973d 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 c9a094cf..a84ff073 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 ecb29e58..901b4e4d 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( - * 'dolores', - * ); + * const response = await client.smartLinks.listClicks('id'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'sequi', * ); * ``` */ @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quibusdam', + * 'eveniet', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('laborum'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consectetur', + * 'velit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 74eaf4fe..07b058a4 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( - * 'culpa', + * 'vel', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('culpa', { + * await client.stories.highlights.removeStory('vel', { * 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 88d49181..7de97cf6 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( - * 'suscipit', + * 'incidunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'suscipit', + * 'incidunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iste', { + * await client.trackingLinks.getCohortArps('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'placeat', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ca7bef80..b71e7d9d 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('id', { + * const trialLink = await client.trialLinks.retrieve('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('id', { + * const trialLink = await client.trialLinks.delete('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consequatur', + * 'doloribus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('minus', { + * await client.trialLinks.retrieveCohortArps('nesciunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'placeat', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index db340dc4..771b11c9 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: 'x' }, + * { name: 'rnyfqwprhezulkobwbstmgk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 9aa50b20..11935ec1 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('voluptate'); + const responsePromise = client.accounts.disconnect('inventore'); 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 2fecffeb..2c7cd8be 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: 'autem', + auth_id: 'sed', auth_type: 'raw_data', - cookies: 'in', + cookies: 'asperiores', customProxy: { host: 'proxy.example.com', - password: 'GFt6s.!G0', + password: "^_;b'4a)", port: 8080, - username: 'provident', + username: 'sit', }, - email: 'mann.tamara@example.net', - force_connect: false, - name: 'nihil', - password: "0!cN`/'2fE]&[K", - proxyCountry: 'uk', - user_agent: 'asperiores', - xbc: 'consequuntur', + email: 'stoltenberg.candida@example.net', + force_connect: true, + name: 'sint', + password: '6\\5i5,./Q$G6?Z', + proxyCountry: 'us', + user_agent: 'cum', + xbc: 'odit', }, { 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 02beb46b..59b10e5b 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('magnam', { + const responsePromise = client.engagement.messages.getMessageBuyers('deserunt', { 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('magnam', { + const response = await client.engagement.messages.getMessageBuyers('deserunt', { 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 56699230..603fde04 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('enim', { + const responsePromise = client.media.vault.lists.media.add('esse', { 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('enim', { + const response = await client.media.vault.lists.media.add('esse', { 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('enim', { + const responsePromise = client.media.vault.lists.media.remove('esse', { 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('enim', { + const response = await client.media.vault.lists.media.remove('esse', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ff2812ed..0144bc2d 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('optio', { + const responsePromise = client.posts.comments.create('repellat', { 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('optio', { + const response = await client.posts.comments.create('repellat', { 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('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('repellat', { 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('optio', { + const response = await client.posts.comments.list('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..e2edc676 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 b643af69..02883e18 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 5c6a542f..f0c04fda 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: ['opgvgl'] }, + filter: { tags: ['kxfqggtktemrxekosin'] }, 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('dolores'); + const responsePromise = client.smartLinks.listClicks('id'); 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( - 'dolores', + 'id', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('sequi'); 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( - 'qui', + 'sequi', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quibusdam'); + const responsePromise = client.smartLinks.listSpenders('eveniet'); 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( - 'quibusdam', + 'eveniet', { 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('laborum'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); 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( - 'laborum', + 'est', { 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('consectetur'); + const responsePromise = client.smartLinks.retrieveStats('velit'); 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( - 'consectetur', + 'velit', { 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 123053c3..e599e567 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: 'mmmropkqp', tags: ['fsfpecppblkfjaqxygweqcgw'] }, + filter: { search: 'zwtbzmtki', tags: ['e'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'stazscocjokc', tags: ['frurmpvebche'] }, + filter: { search: 'tybkmvcpsnm', tags: ['mhifkwshyj'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zbztowhsnbflmkeepjuvm', - tags: ['wspznaptbmdzgmnz'], + include_smart_links: false, + search: 'zhxyckypbytvunxhnkvxks', + tags: ['flndzdonxidw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zgddltgmtfwxjy', - tags: ['anwnfynnyrdjmllv'], + search: 'tvizuwdbkyxjjouwfnhwb', + tags: ['btawczskwsunyhnlmxqxuthes'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 14df1b81..a347fadd 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('culpa', { + const responsePromise = client.stories.highlights.addStory('vel', { 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('culpa', { + const response = await client.stories.highlights.addStory('vel', { 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('culpa', { + const responsePromise = client.stories.highlights.removeStory('vel', { 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('culpa', { + const response = await client.stories.highlights.removeStory('vel', { 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 2ca64d82..c7fe88b7 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('incidunt', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('incidunt', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('incidunt', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('quo', { 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('iste', { + const response = await client.trackingLinks.getCohortArps('quo', { 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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolores', { 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('placeat', { + const response = await client.trackingLinks.getStats('dolores', { 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 ce198471..ca5b084b 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('doloribus', { 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('doloribus', { 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('minus', { + const responsePromise = client.trialLinks.retrieveCohortArps('nesciunt', { 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('minus', { + const response = await client.trialLinks.retrieveCohortArps('nesciunt', { 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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('rerum', { 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('placeat', { + const response = await client.trialLinks.retrieveStats('rerum', { 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 ce474494..5bc8ca4c 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: 'x' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'rnyfqwprhezulkobwbstmgk', + }); 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: 'x' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'rnyfqwprhezulkobwbstmgk', + }); }); // Mock server tests are disabled From 0073ccce57bb70a2a33ac9f25eaa3f02c5947143 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 17:12:43 +0000 Subject: [PATCH 064/309] 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 | 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 +++--- 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 | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 28 files changed, 113 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index c9fc6007..5ac1876c 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-f6e36c82e08f5fad5bb9f5d6916e883732f66f2944110437a2b3202ccd8b48db.yml -openapi_spec_hash: 795fb6f49f43da3bfba49f26a2285d23 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-af197df44b689a21ccf5f008777f13c589a7dfb01a642e62015947db05495407.yml +openapi_spec_hash: b895823b686aaa881c95d960872c97f2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7181e851..0a7a15b9 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( - * 'inventore', + * 'perspiciatis', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a3e8d944..d65076b4 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( - * 'deserunt', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b01e4fef..f5dc5f27 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( - * 'esse', + * 'excepturi', * { 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( - * 'esse', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 36ae6c40..6c3ea9cb 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( - * 'repellat', + * 'iusto', * { * 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( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('iusto', { + * 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 09d6973d..a9767818 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 901b4e4d..eaa5237f 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('et'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sequi', + * 'unde', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('itaque'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eveniet', + * 'quibusdam', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('nostrum'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'velit', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 07b058a4..3e57276a 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( - * 'vel', + * '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('vel', { + * 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 7de97cf6..4a7a5307 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( - * 'incidunt', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'incidunt', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quo', { + * await client.trackingLinks.getCohortArps('doloremque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolores', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b71e7d9d..4fc610d8 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'exercitationem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'exercitationem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'doloribus', + * 'atque', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nesciunt', { + * await client.trialLinks.retrieveCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'blanditiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 771b11c9..fb7d81c4 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: 'rnyfqwprhezulkobwbstmgk' }, + * { name: 'podfrfaciiirs' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 11935ec1..958468a3 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('inventore'); + 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 2c7cd8be..47885c1a 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: 'raw_data', - cookies: 'asperiores', + auth_id: 'optio', + auth_type: 'email_password', + cookies: 'fugiat', customProxy: { host: 'proxy.example.com', - password: "^_;b'4a)", + password: "Xk';DA", port: 8080, - username: 'sit', + username: 'dolorum', }, - email: 'stoltenberg.candida@example.net', - force_connect: true, - name: 'sint', - password: '6\\5i5,./Q$G6?Z', + email: 'murray.kaden@example.org', + force_connect: false, + name: 'esse', + password: 'R7S"60G3>bo{cg]otp>)', proxyCountry: 'us', - user_agent: 'cum', - xbc: 'odit', + user_agent: 'ipsam', + xbc: 'ut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 59b10e5b..16f3d965 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('deserunt', { + 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('deserunt', { + 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 603fde04..2d16307a 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('esse', { + const responsePromise = client.media.vault.lists.media.add('excepturi', { 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('esse', { + const response = await client.media.vault.lists.media.add('excepturi', { 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('esse', { + const responsePromise = client.media.vault.lists.media.remove('excepturi', { 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('esse', { + const response = await client.media.vault.lists.media.remove('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..25333899 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 0144bc2d..d1aa715e 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('repellat', { + const responsePromise = client.posts.comments.create('iusto', { 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('repellat', { + const response = await client.posts.comments.create('iusto', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iusto', { 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('repellat', { + const response = await client.posts.comments.list('iusto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f0c04fda..94cd2f27 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: ['kxfqggtktemrxekosin'] }, + filter: { tags: ['yiqsfktdygatfqg'] }, 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('id'); + 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( - 'id', + '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('sequi'); + const responsePromise = client.smartLinks.listConversions('unde'); 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( - 'sequi', + 'unde', { 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('qui'); + const responsePromise = client.smartLinks.listFans('itaque'); 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( - 'qui', + 'itaque', { 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('eveniet'); + const responsePromise = client.smartLinks.listSpenders('quibusdam'); 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( - 'eveniet', + 'quibusdam', { 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('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('nostrum'); 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( - 'est', + 'nostrum', { 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('velit'); + const responsePromise = client.smartLinks.retrieveStats('consequatur'); 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( - 'velit', + '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 e599e567..9edaf3f9 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: 'zwtbzmtki', tags: ['e'] }, + filter: { search: 'wemwnhsplieawitpuwqio', tags: ['shvenrzfgh'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tybkmvcpsnm', tags: ['mhifkwshyj'] }, + filter: { search: 'hpqnrfxthkbh', tags: ['qv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zhxyckypbytvunxhnkvxks', - tags: ['flndzdonxidw'], + search: 'vsaphzzimyucwldsdaugrdxk', + tags: ['xtsaehfjjxtlwxiltubkwfuau'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'tvizuwdbkyxjjouwfnhwb', - tags: ['btawczskwsunyhnlmxqxuthes'], + include_smart_links: true, + search: 'q', + tags: ['sbvvciklfvrsvyyav'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a347fadd..3b4f631b 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('vel', { + 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('vel', { + 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('vel', { + 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('vel', { + 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 c7fe88b7..b60e3f28 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('incidunt', { 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('incidunt', { 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('incidunt', { 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,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('incidunt', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('doloremque', { + 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('quo', { + const response = await client.trackingLinks.getCohortArps('doloremque', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eveniet', { 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('dolores', { + const response = await client.trackingLinks.getStats('eveniet', { 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 ca5b084b..38c316dc 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('qui', { 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('qui', { 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('qui', { 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('qui', { 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('doloribus', { + const responsePromise = client.trialLinks.listSubscribers('atque', { 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('doloribus', { + const response = await client.trialLinks.listSubscribers('atque', { 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('nesciunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolore', { 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('nesciunt', { + const response = await client.trialLinks.retrieveCohortArps('dolore', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('blanditiis', { + 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('rerum', { + const response = await client.trialLinks.retrieveStats('blanditiis', { 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 5bc8ca4c..b519f185 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: 'rnyfqwprhezulkobwbstmgk', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'podfrfaciiirs' }); 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: 'rnyfqwprhezulkobwbstmgk', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'podfrfaciiirs' }); }); // Mock server tests are disabled From e4dd2ddb74ae17f1abdf3baea48da5ff680f3d40 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 19:12:34 +0000 Subject: [PATCH 065/309] 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 | 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 | 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 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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 ++-- 29 files changed, 109 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ac1876c..f9bdd4fb 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-af197df44b689a21ccf5f008777f13c589a7dfb01a642e62015947db05495407.yml -openapi_spec_hash: b895823b686aaa881c95d960872c97f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-07eceb58ed5394ac333eca8dee0ccb964bdacafc7910ea4db581cdf02a39937a.yml +openapi_spec_hash: ff9f0de601fbc019970527a1a1c8c0b0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0a7a15b9..7affd434 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( - * 'perspiciatis', + * 'repellat', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d65076b4..a5c5e92f 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 f5dc5f27..d1105b18 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( - * 'excepturi', + * 'expedita', * { 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( - * 'excepturi', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6c3ea9cb..a28581af 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( - * 'iusto', + * 'itaque', * { * 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('iusto', { - * 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 a9767818..e20f70d1 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 41feb4c0..a84ff073 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 eaa5237f..6825650e 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('enim'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'unde', + * 'iure', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('itaque'); + * const response = await client.smartLinks.listFans( + * 'ducimus', + * ); * ``` */ listFans( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nostrum'); + * await client.smartLinks.retrieveCohortArps('debitis'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequatur', + * 'perspiciatis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e57276a..651e8fba 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', + * '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('est', { + * 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 4a7a5307..079027d2 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', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloremque', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('doloremque', { + * await client.trackingLinks.getCohortArps('quam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eveniet', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 4fc610d8..29e2dece 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( - * 'exercitationem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'exercitationem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'atque', + * 'in', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolore', { + * await client.trialLinks.retrieveCohortArps('labore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'blanditiis', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fb7d81c4..f8ecf3fa 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: 'podfrfaciiirs' }, + * { name: 'iilvllxz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 958468a3..1f78bba2 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('repellat'); 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 47885c1a..ad34243d 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: 'optio', - auth_type: 'email_password', - cookies: 'fugiat', + auth_id: 'alias', + auth_type: 'mobile_app', + cookies: 'iusto', customProxy: { host: 'proxy.example.com', - password: "Xk';DA", + password: ">|UNF]'AqQm@", port: 8080, - username: 'dolorum', + username: 'libero', }, - email: 'murray.kaden@example.org', + email: 'mac.rogahn@example.net', force_connect: false, - name: 'esse', - password: 'R7S"60G3>bo{cg]otp>)', + name: 'quae', + password: 'FNAyb|+4xmPUUxk8%K', proxyCountry: 'us', - user_agent: 'ipsam', - xbc: 'ut', + user_agent: 'incidunt', + 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 c17a81d6..229de463 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 16f3d965..5d39f0e7 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 2d16307a..7139bd4f 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('excepturi', { + const responsePromise = client.media.vault.lists.media.add('expedita', { 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('excepturi', { + const response = await client.media.vault.lists.media.add('expedita', { 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('excepturi', { + const responsePromise = client.media.vault.lists.media.remove('expedita', { 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('excepturi', { + const response = await client.media.vault.lists.media.remove('expedita', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d1aa715e..bb28a8f3 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('iusto', { + 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('iusto', { + 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('iusto', { 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('iusto', { + 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 9bf5999b..ad49ad2e 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 4ec8acc7..fd74b68f 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 c1510622..02883e18 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 6b1dc2fd..d13ad1ce 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 94cd2f27..36d4751c 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: ['yiqsfktdygatfqg'] }, + filter: { tags: ['ogreivuvxofkgxzpcorumba'] }, 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('enim'); 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', + 'enim', { 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('iure'); 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', + 'iure', { 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('itaque'); + const responsePromise = client.smartLinks.listFans('ducimus'); 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( - 'itaque', + 'ducimus', { has_messages: true, limit: 100, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nostrum'); + const responsePromise = client.smartLinks.retrieveCohortArps('debitis'); 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( - 'nostrum', + 'debitis', { 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('consequatur'); + const responsePromise = client.smartLinks.retrieveStats('perspiciatis'); 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( - 'consequatur', + 'perspiciatis', { 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 9edaf3f9..da35b6d6 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: 'wemwnhsplieawitpuwqio', tags: ['shvenrzfgh'] }, + filter: { search: 'uciw', tags: ['fgnggexqxxsjyanjutubx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hpqnrfxthkbh', tags: ['qv'] }, + filter: { search: 'oud', tags: ['itiethtzcoths'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'vsaphzzimyucwldsdaugrdxk', - tags: ['xtsaehfjjxtlwxiltubkwfuau'], + search: 'ykzqofkqcihmopvhxmzner', + tags: ['nxasfne'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'q', - tags: ['sbvvciklfvrsvyyav'], + include_smart_links: false, + search: 'hxekaccpxb', + tags: ['pdyxhazudduoullfhm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b4f631b..46e853d9 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('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('est', { + 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('est', { + 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('est', { + 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 b60e3f28..d64c0132 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('eaque', { 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('eaque', { 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('eaque', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('doloremque', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quam', { 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('doloremque', { + const response = await client.trackingLinks.getCohortArps('quam', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('culpa', { 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('eveniet', { + const response = await client.trackingLinks.getStats('culpa', { 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 38c316dc..01a6104b 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('atque', { + const responsePromise = client.trialLinks.listSubscribers('in', { 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('atque', { + const response = await client.trialLinks.listSubscribers('in', { 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('dolore', { + const responsePromise = client.trialLinks.retrieveCohortArps('labore', { 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('dolore', { + const response = await client.trialLinks.retrieveCohortArps('labore', { 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('blanditiis', { - 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('blanditiis', { + 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 b519f185..364f7328 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: 'podfrfaciiirs' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iilvllxz' }); 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: 'podfrfaciiirs' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iilvllxz' }); }); // Mock server tests are disabled From 2db03f51d66f3af287a0a20fae080b38474ac952 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 21:12:30 +0000 Subject: [PATCH 066/309] 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 | 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 +++---- 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 | 22 ++++++++--------- 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 ++-- 29 files changed, 116 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9bdd4fb..b5ab9331 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-07eceb58ed5394ac333eca8dee0ccb964bdacafc7910ea4db581cdf02a39937a.yml -openapi_spec_hash: ff9f0de601fbc019970527a1a1c8c0b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-60a31ab3f816257e17d983f69c76c823828284b70137e0ad9df8caa9c0a93572.yml +openapi_spec_hash: fd257565847fd80972c07d59aa4b57a3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7affd434..9d0ee721 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( - * 'repellat', - * ); + * 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 a5c5e92f..196af50a 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( + * 'quisquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d1105b18..2a29f7dc 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( - * 'expedita', + * 'eum', * { 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( - * 'expedita', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a28581af..1044e7ec 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( - * 'itaque', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('sed', { + * 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( - * 'itaque', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('sed', { + * 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 e20f70d1..a9767818 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 a84ff073..2b04cbb2 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 6825650e..dff45bf7 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('enim'); + * const response = await client.smartLinks.listClicks( + * 'ducimus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'iure', + * 'rerum', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'ducimus', + * 'quibusdam', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('debitis'); + * await client.smartLinks.retrieveCohortArps('in'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'perspiciatis', + * 'itaque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..bdf0e650 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', + * 'voluptas', * { * 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('voluptas', { * 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 079027d2..ac379e88 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( - * 'eaque', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eaque', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quam', { + * 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( - * 'culpa', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 29e2dece..d2018232 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'officiis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'officiis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'in', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('labore', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'facere', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f8ecf3fa..11e148ce 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: 'iilvllxz' }, + * { name: 'sjectxxfaiwh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1f78bba2..37a21a65 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('repellat'); + 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 ad34243d..8ddc3702 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: 'alias', - auth_type: 'mobile_app', - cookies: 'iusto', + auth_id: 'sit', + auth_type: 'email_password', + cookies: 'tempore', customProxy: { host: 'proxy.example.com', - password: ">|UNF]'AqQm@", + password: 'a0ij$whdKlhj#iKFL1', port: 8080, - username: 'libero', + username: 'nam', }, - email: 'mac.rogahn@example.net', + email: 'leland.streich@example.org', force_connect: false, - name: 'quae', - password: 'FNAyb|+4xmPUUxk8%K', - proxyCountry: 'us', - user_agent: 'incidunt', - xbc: 'omnis', + name: 'repellat', + password: '0jBb4rR#&ikX!', + proxyCountry: 'uk', + user_agent: 'eum', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 5d39f0e7..e7bee51e 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('quisquam', { 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('quisquam', { 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 7139bd4f..79f29d71 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('expedita', { + const responsePromise = client.media.vault.lists.media.add('eum', { 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('expedita', { + const response = await client.media.vault.lists.media.add('eum', { 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('expedita', { + const responsePromise = client.media.vault.lists.media.remove('eum', { 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('expedita', { + const response = await client.media.vault.lists.media.remove('eum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bb28a8f3..25a7cac1 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('sed', { 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('sed', { 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('sed', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..4ec8acc7 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 02883e18..96d399de 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 d13ad1ce..6b1dc2fd 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 36d4751c..2c3dbdd7 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: ['ogreivuvxofkgxzpcorumba'] }, + filter: { tags: ['hbduwtvlyov'] }, 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('enim'); + const responsePromise = client.smartLinks.listClicks('ducimus'); 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( - 'enim', + 'ducimus', { 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('iure'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'iure', + 'rerum', { 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('ducimus'); + const responsePromise = client.smartLinks.listFans('quibusdam'); 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( - 'ducimus', + 'quibusdam', { has_messages: true, limit: 100, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('debitis'); + const responsePromise = client.smartLinks.retrieveCohortArps('in'); 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( - 'debitis', + 'in', { 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('perspiciatis'); + const responsePromise = client.smartLinks.retrieveStats('itaque'); 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( - 'perspiciatis', + 'itaque', { 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 da35b6d6..4bb7be97 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: 'uciw', tags: ['fgnggexqxxsjyanjutubx'] }, + filter: { search: 'xrywizbibmckkkimtolf', tags: ['vntmidvdbotqypslbshhdkaun'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oud', tags: ['itiethtzcoths'] }, + filter: { search: 'cdzjzmgbmuqcdsktlh', tags: ['bmhzlqixytdiffqvhz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ykzqofkqcihmopvhxmzner', - tags: ['nxasfne'], + search: 'ofjhuhehjkmhs', + tags: ['oyygknwbrzqhdyeauun'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'hxekaccpxb', - tags: ['pdyxhazudduoullfhm'], + search: 'snnfxjqc', + tags: ['wpnd'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..54e23fba 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('voluptas', { 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('voluptas', { 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('voluptas', { 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('voluptas', { 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 d64c0132..c4bdaa48 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eligendi', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eligendi', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eligendi', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quam', { 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('quam', { + 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('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('esse', { 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('culpa', { + const response = await client.trackingLinks.getStats('esse', { 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 01a6104b..0cf34bed 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('officiis', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('officiis', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('officiis', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('officiis', { 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('in', { + const responsePromise = client.trialLinks.listSubscribers('sit', { 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('in', { + const response = await client.trialLinks.listSubscribers('sit', { 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('labore', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('eos', { 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('labore', { + const response = await client.trialLinks.retrieveCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,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('laboriosam', { + 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('facere', { + 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 364f7328..8ba3af2f 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: 'iilvllxz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sjectxxfaiwh' }); 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: 'iilvllxz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sjectxxfaiwh' }); }); // Mock server tests are disabled From 41b02efb70098a498ae0639a9b75e5f5450f81f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 01:12:30 +0000 Subject: [PATCH 067/309] 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 | 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 | 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 +-- .../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 | 8 ++++-- 27 files changed, 104 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index b5ab9331..b540622c 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-60a31ab3f816257e17d983f69c76c823828284b70137e0ad9df8caa9c0a93572.yml -openapi_spec_hash: fd257565847fd80972c07d59aa4b57a3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d8c33d527a4ed6bb056751fd0f2df9ca0a19118af13567f32ee83b56eaa9d9a4.yml +openapi_spec_hash: 0369d6acfb69033e5bde55268ef05098 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d0ee721..7e6e59b2 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('illum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 196af50a..60298692 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( - * 'quisquam', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2a29f7dc..cfee71f8 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( - * 'eum', + * 'ab', * { 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( - * 'eum', + * 'ab', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1044e7ec..c2aa86c1 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('sed', { + * const comment = await client.posts.comments.create('in', { * 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('sed', { + * const comments = await client.posts.comments.list('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 2b04cbb2..41feb4c0 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 dff45bf7..366e89ad 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( - * 'ducimus', + * 'accusantium', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'eum', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'quibusdam', + * 'doloribus', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quibusdam', + * 'repudiandae', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('in'); + * await client.smartLinks.retrieveCohortArps('facere'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'itaque', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bdf0e650..a61cc3b3 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( - * 'voluptas', + * 'maxime', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('voluptas', { + * await client.stories.highlights.removeStory('maxime', { * 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 ac379e88..4053f0e8 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( - * 'eligendi', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eligendi', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('in', { + * await client.trackingLinks.getCohortArps('aliquid', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'esse', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d2018232..8a84cca1 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( - * 'officiis', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'officiis', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'voluptatum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laboriosam', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 11e148ce..a34ea33a 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: 'sjectxxfaiwh' }, + * { name: 'qqeqmcudcpfbulvuhdpxndrsi' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 37a21a65..b588d266 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('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 8ddc3702..45e9b567 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: 'sit', + auth_id: 'tenetur', auth_type: 'email_password', - cookies: 'tempore', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: 'a0ij$whdKlhj#iKFL1', + password: 'vom)[<1XDw3C7#', port: 8080, - username: 'nam', + username: 'voluptates', }, - email: 'leland.streich@example.org', - force_connect: false, + email: 'judson85@example.com', + force_connect: true, name: 'repellat', - password: '0jBb4rR#&ikX!', + password: '0"uhsTc[U.tM', proxyCountry: 'uk', - user_agent: 'eum', - xbc: 'et', + user_agent: 'et', + xbc: 'voluptas', }, { 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 e7bee51e..b34ff1b6 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('quisquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('reprehenderit', { 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('quisquam', { + const response = await client.engagement.messages.getMessageBuyers('reprehenderit', { 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 79f29d71..fd54dee6 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('eum', { + const responsePromise = client.media.vault.lists.media.add('ab', { 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('eum', { + const response = await client.media.vault.lists.media.add('ab', { 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('eum', { + const responsePromise = client.media.vault.lists.media.remove('ab', { 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('eum', { + const response = await client.media.vault.lists.media.remove('ab', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..42643a65 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 25a7cac1..5ab44413 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('sed', { + const responsePromise = client.posts.comments.create('in', { 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('sed', { + const response = await client.posts.comments.create('in', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('in', { 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('sed', { + const response = await client.posts.comments.list('in', { 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 4ec8acc7..e2edc676 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 2c3dbdd7..a0c72267 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: ['hbduwtvlyov'] }, + filter: { tags: ['z'] }, 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('ducimus'); + const responsePromise = client.smartLinks.listClicks('accusantium'); 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( - 'ducimus', + 'accusantium', { 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('rerum'); + const responsePromise = client.smartLinks.listConversions('eum'); 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( - 'rerum', + 'eum', { 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('quibusdam'); + const responsePromise = client.smartLinks.listFans('doloribus'); 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( - 'quibusdam', + 'doloribus', { 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('quibusdam'); + const responsePromise = client.smartLinks.listSpenders('repudiandae'); 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( - 'quibusdam', + 'repudiandae', { 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('in'); + const responsePromise = client.smartLinks.retrieveCohortArps('facere'); 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( - 'in', + 'facere', { 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('itaque'); + const responsePromise = client.smartLinks.retrieveStats('et'); 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( - 'itaque', + '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 4bb7be97..6d1652a5 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: 'xrywizbibmckkkimtolf', tags: ['vntmidvdbotqypslbshhdkaun'] }, + filter: { search: 'jdjnly', tags: ['nddxerpaaxijcltahbspef'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cdzjzmgbmuqcdsktlh', tags: ['bmhzlqixytdiffqvhz'] }, + filter: { search: 'htqqwxprolzekmsr', tags: ['hzr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ofjhuhehjkmhs', - tags: ['oyygknwbrzqhdyeauun'], + include_smart_links: true, + search: 'xctudmltjiyqyk', + tags: ['rdjs'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'snnfxjqc', - tags: ['wpnd'], + search: 'selgwmewgk', + tags: ['arklrfwdug'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 54e23fba..86025987 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('voluptas', { + const responsePromise = client.stories.highlights.addStory('maxime', { 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('voluptas', { + const response = await client.stories.highlights.addStory('maxime', { 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('voluptas', { + const responsePromise = client.stories.highlights.removeStory('maxime', { 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('voluptas', { + const response = await client.stories.highlights.removeStory('maxime', { 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 c4bdaa48..efae5b36 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ipsam', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ipsam', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ipsam', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ipsam', { 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('aliquid', { + 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('aliquid', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('laborum', { 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('esse', { + const response = await client.trackingLinks.getStats('laborum', { 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 0cf34bed..fb2e88d9 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aliquid', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aliquid', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aliquid', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aliquid', { 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('sit', { + const responsePromise = client.trialLinks.listSubscribers('voluptatum', { 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('sit', { + const response = await client.trialLinks.listSubscribers('voluptatum', { 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('eos', { 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; @@ -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('eos', { + const response = await client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,9 +165,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('non', { 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('laboriosam', { + const response = await client.trialLinks.retrieveStats('non', { 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 8ba3af2f..24cde514 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: 'sjectxxfaiwh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'qqeqmcudcpfbulvuhdpxndrsi', + }); 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: 'sjectxxfaiwh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'qqeqmcudcpfbulvuhdpxndrsi', + }); }); // Mock server tests are disabled From 212f078a3fffc70ede17b3e4de23903d14178086 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 02:12:34 +0000 Subject: [PATCH 068/309] 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/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 +++--- .../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 | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 26 files changed, 106 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index b540622c..8bb21ded 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-d8c33d527a4ed6bb056751fd0f2df9ca0a19118af13567f32ee83b56eaa9d9a4.yml -openapi_spec_hash: 0369d6acfb69033e5bde55268ef05098 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e04323f1c37f9f4b63c999831a20a29492e6e9ecf589cddfd83d125f74035d46.yml +openapi_spec_hash: a37921ea226788dcc5b0cac6ded82fea config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7e6e59b2..43007427 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('quasi'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 60298692..bed11f99 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( - * 'reprehenderit', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index cfee71f8..228dd2be 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( - * 'ab', + * 'inventore', * { 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( - * 'ab', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c2aa86c1..95ce5d3d 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('in', { + * const comment = await client.posts.comments.create('quae', { * 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('in', { + * const comments = await client.posts.comments.list('quae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..a84ff073 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 366e89ad..731a90c5 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( - * 'accusantium', - * ); + * 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( - * 'eum', + * 'optio', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'doloribus', + * 'dolorum', * ); * ``` */ @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'repudiandae', + * 'debitis', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('facere'); + * await client.smartLinks.retrieveCohortArps('porro'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'quia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a61cc3b3..2030df95 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', + * 'ab', * { * 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('ab', { * 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 4053f0e8..409202ab 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( - * 'ipsam', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ipsam', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aliquid', { + * await client.trackingLinks.getCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'laborum', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8a84cca1..59246316 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( - * 'aliquid', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'aliquid', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatum', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('laboriosam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'non', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a34ea33a..77a37a02 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: 'qqeqmcudcpfbulvuhdpxndrsi' }, + * { name: 'hhciaophrjknjdzbk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b588d266..6650891a 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('quasi'); 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 45e9b567..d7a8fb1d 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: 'tenetur', - auth_type: 'email_password', - cookies: 'odit', + auth_id: 'a', + auth_type: 'raw_data', + cookies: 'inventore', customProxy: { host: 'proxy.example.com', - password: 'vom)[<1XDw3C7#', + password: '0C7W9lO', port: 8080, - username: 'voluptates', + username: 'omnis', }, - email: 'judson85@example.com', + email: 'cschuppe@example.net', force_connect: true, - name: 'repellat', - password: '0"uhsTc[U.tM', - proxyCountry: 'uk', - user_agent: 'et', - xbc: 'voluptas', + name: 'sed', + password: "@B>X=G~HNe { 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 b34ff1b6..1bf6241e 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('reprehenderit', { + 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('reprehenderit', { + 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 fd54dee6..52ac0d69 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('ab', { + const responsePromise = client.media.vault.lists.media.add('inventore', { 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('ab', { + const response = await client.media.vault.lists.media.add('inventore', { 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('ab', { + const responsePromise = client.media.vault.lists.media.remove('inventore', { 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('ab', { + const response = await client.media.vault.lists.media.remove('inventore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..b0d96512 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 5ab44413..e69abd1a 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('in', { + const responsePromise = client.posts.comments.create('quae', { 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('in', { + const response = await client.posts.comments.create('quae', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quae', { 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('in', { + const response = await client.posts.comments.list('quae', { 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 c1510622..02883e18 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 d13ad1ce..6b1dc2fd 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 a0c72267..5d3404ab 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: ['z'] }, + filter: { tags: ['axmrczqixtvszwrzsbzvkzmki'] }, 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('accusantium'); + const responsePromise = client.smartLinks.listClicks('sit'); 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( - 'accusantium', + 'sit', { 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('eum'); + const responsePromise = client.smartLinks.listConversions('optio'); 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( - 'eum', + 'optio', { 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('doloribus'); + const responsePromise = client.smartLinks.listFans('dolorum'); 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( - 'doloribus', + 'dolorum', { 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('repudiandae'); + const responsePromise = client.smartLinks.listSpenders('debitis'); 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( - 'repudiandae', + 'debitis', { 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('facere'); + const responsePromise = client.smartLinks.retrieveCohortArps('porro'); 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( - 'facere', + 'porro', { 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('et'); + const responsePromise = client.smartLinks.retrieveStats('quia'); 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( - 'et', + '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 6d1652a5..760755aa 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: 'jdjnly', tags: ['nddxerpaaxijcltahbspef'] }, + filter: { search: 'fyouylyvxsrkwlif', tags: ['amxdytimdamuzn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'htqqwxprolzekmsr', tags: ['hzr'] }, + filter: { search: 'yfhdcvbtqctmjvdjgna', tags: ['oqehayezyudlbtjmpzhvwtai'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'xctudmltjiyqyk', - tags: ['rdjs'], + search: 'jg', + tags: ['zjqltrgluesaavrbfni'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'selgwmewgk', - tags: ['arklrfwdug'], + include_smart_links: true, + search: 'funkkwkkkfkwjy', + tags: ['bsuigqrokbbkxagxqztdi'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 86025987..b2f41a50 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('ab', { 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('ab', { 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('ab', { 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('ab', { 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 efae5b36..e7002682 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('fuga', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('fuga', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('fuga', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aliquid', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('ea', { 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('aliquid', { + const response = await client.trackingLinks.getCohortArps('ea', { 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('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('deleniti', { 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('laborum', { + const response = await client.trackingLinks.getStats('deleniti', { 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 fb2e88d9..1128e8df 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('voluptatum', { + const responsePromise = client.trialLinks.listSubscribers('eos', { 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('voluptatum', { + const response = await client.trialLinks.listSubscribers('eos', { 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('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('ut', { + 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,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('distinctio', { + 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('non', { + const response = await client.trialLinks.retrieveStats('distinctio', { 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 24cde514..1541c7e6 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: 'qqeqmcudcpfbulvuhdpxndrsi', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hhciaophrjknjdzbk' }); 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: 'qqeqmcudcpfbulvuhdpxndrsi', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hhciaophrjknjdzbk' }); }); // Mock server tests are disabled From a2eea789ebbd99a4e4869d3abb5a227e4f8d6629 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:12:37 +0000 Subject: [PATCH 069/309] 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 | 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 +++++++------- .../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 +-- 27 files changed, 101 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8bb21ded..f665bcab 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-e04323f1c37f9f4b63c999831a20a29492e6e9ecf589cddfd83d125f74035d46.yml -openapi_spec_hash: a37921ea226788dcc5b0cac6ded82fea +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3fd6f411e4f3f885f124efd7caacf561a121d2997a4066d2799c36f51d6525c.yml +openapi_spec_hash: 33bf90f03286f640335dd06e36b907a5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 43007427..d62847e9 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('quasi'); + * const response = await client.accounts.disconnect('non'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index bed11f99..5b26103c 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( - * 'quis', + * 'odio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 228dd2be..a0610f5b 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( - * 'inventore', + * 'itaque', * { 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( - * 'inventore', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95ce5d3d..3405d10d 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('quae', { + * const comment = await client.posts.comments.create('quos', { * 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('quae', { + * const comments = await client.posts.comments.list('quos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 731a90c5..e234ca39 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( + * 'eveniet', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'optio', + * 'sit', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'dolorum', - * ); + * 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( - * 'debitis', + * 'reprehenderit', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('porro'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'sed', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2030df95..a9c614a7 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( - * 'ab', + * '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('ab', { + * 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 409202ab..0c948a2e 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( - * 'fuga', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'fuga', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ea', { + * 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( - * 'deleniti', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 59246316..11db2018 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('qui', { + * const trialLink = await client.trialLinks.retrieve('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { + * const trialLink = await client.trialLinks.delete('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eos', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laboriosam', { + * await client.trialLinks.retrieveCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'distinctio', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 77a37a02..adaf4621 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: 'hhciaophrjknjdzbk' }, + * { name: 'f' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6650891a..f8c6d986 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('quasi'); + const responsePromise = client.accounts.disconnect('non'); 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 d7a8fb1d..82b2e40c 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: 'a', - auth_type: 'raw_data', - cookies: 'inventore', + auth_id: 'temporibus', + auth_type: 'mobile_app', + cookies: 'sint', customProxy: { host: 'proxy.example.com', - password: '0C7W9lO', + password: "6nz'KG4~9igw", port: 8080, - username: 'omnis', + username: 'voluptate', }, - email: 'cschuppe@example.net', + email: 'wayne62@example.net', force_connect: true, - name: 'sed', - password: "@B>X=G~HNe { // 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('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('quis', { + 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 52ac0d69..ea2359d0 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('inventore', { + const responsePromise = client.media.vault.lists.media.add('itaque', { 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('inventore', { + const response = await client.media.vault.lists.media.add('itaque', { 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('inventore', { + const responsePromise = client.media.vault.lists.media.remove('itaque', { 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('inventore', { + const response = await client.media.vault.lists.media.remove('itaque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e69abd1a..0d89e389 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('quae', { + const responsePromise = client.posts.comments.create('quos', { 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('quae', { + const response = await client.posts.comments.create('quos', { 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('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quos', { 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('quae', { + const response = await client.posts.comments.list('quos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..8e5b0566 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5d3404ab..2fda48b0 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: ['axmrczqixtvszwrzsbzvkzmki'] }, + filter: { tags: ['rbiqikvsrsmgzborawz'] }, 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('sit'); + const responsePromise = client.smartLinks.listClicks('eveniet'); 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( - 'sit', + 'eveniet', { 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('optio'); + const responsePromise = client.smartLinks.listConversions('sit'); 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( - 'optio', + 'sit', { 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('dolorum'); + const responsePromise = client.smartLinks.listFans('natus'); 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( - 'dolorum', + 'natus', { 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('debitis'); + const responsePromise = client.smartLinks.listSpenders('reprehenderit'); 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( - 'debitis', + 'reprehenderit', { 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('porro'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); 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( - 'porro', + 'voluptatem', { 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('quia'); + const responsePromise = client.smartLinks.retrieveStats('sed'); 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( - 'quia', + 'sed', { 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 760755aa..f5fbef64 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: 'fyouylyvxsrkwlif', tags: ['amxdytimdamuzn'] }, + filter: { search: 'ppahbkqgh', tags: ['jpa'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yfhdcvbtqctmjvdjgna', tags: ['oqehayezyudlbtjmpzhvwtai'] }, + filter: { search: 'rolzf', tags: ['ilycaikjlmcrsqnjbvwxts'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jg', - tags: ['zjqltrgluesaavrbfni'], + include_smart_links: false, + search: 'ekflqkjnsfvd', + tags: ['ekvhbzlxjdnvdamnnx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'funkkwkkkfkwjy', - tags: ['bsuigqrokbbkxagxqztdi'], + search: 'upfbbzko', + tags: ['qsje'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b2f41a50..fca45b0b 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('ab', { + 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('ab', { + 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('ab', { + 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('ab', { + 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 e7002682..d75dd45e 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('fuga', { 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('fuga', { 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('fuga', { 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,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('fuga', { 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('ea', { 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('ea', { + 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('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { 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('deleniti', { + const response = await client.trackingLinks.getStats('aut', { 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 1128e8df..78ba30da 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('enim', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('enim', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('enim', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('enim', { 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('eos', { + const responsePromise = client.trialLinks.listSubscribers('cum', { 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('eos', { + const response = await client.trialLinks.listSubscribers('cum', { 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('laboriosam', { - 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('laboriosam', { + 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,9 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('distinctio', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('nemo', { 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('distinctio', { + const response = await client.trialLinks.retrieveStats('nemo', { 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 1541c7e6..a293ac37 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: 'hhciaophrjknjdzbk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'f' }); 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: 'hhciaophrjknjdzbk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'f' }); }); // Mock server tests are disabled From 5f32ddcd443c1de9485003e8a1e9661781903bee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 18:12:34 +0000 Subject: [PATCH 070/309] 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 | 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 +++--- 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 | 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 +-- 26 files changed, 102 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index f665bcab..c6fec53d 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-b3fd6f411e4f3f885f124efd7caacf561a121d2997a4066d2799c36f51d6525c.yml -openapi_spec_hash: 33bf90f03286f640335dd06e36b907a5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-569e512554419f9520769f2d037582cc61213045556a79c9c2fb75f5fe0968e6.yml +openapi_spec_hash: 40fc4027b8a5f9228d5891e1daafddf7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d62847e9..d157f00e 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('non'); + * const response = await client.accounts.disconnect( + * 'veritatis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5b26103c..9ee68521 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( - * 'odio', + * 'iusto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0610f5b..e7233b51 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( - * 'itaque', + * 'nesciunt', * { 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( - * 'itaque', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3405d10d..c7b0c026 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('quos', { + * const comment = await client.posts.comments.create('iste', { * 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('quos', { + * const comments = await client.posts.comments.list('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..c9a094cf 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 e234ca39..fbbb6857 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( - * 'eveniet', - * ); + * 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( - * 'sit', + * 'aperiam', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('natus'); + * const response = await client.smartLinks.listFans('iste'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'reprehenderit', + * 'quos', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sed', + * 'necessitatibus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..e8661886 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', + * 'aut', * { * 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('aut', { * 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 0c948a2e..18f791d3 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', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('est', { + * await client.trackingLinks.getCohortArps('reiciendis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aut', + * 'corrupti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 11db2018..cccec1ff 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('enim', { + * const trialLink = await client.trialLinks.retrieve('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('enim', { + * const trialLink = await client.trialLinks.delete('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'cum', + * 'laborum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('quas', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nemo', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index adaf4621..a3cac531 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: 'f' }, + * { name: 'piwnvjnz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f8c6d986..e6737a4b 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('non'); + const responsePromise = client.accounts.disconnect('veritatis'); 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 82b2e40c..246ab3ad 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: 'temporibus', - auth_type: 'mobile_app', - cookies: 'sint', + auth_id: 'consequatur', + auth_type: 'email_password', + cookies: 'ratione', customProxy: { host: 'proxy.example.com', - password: "6nz'KG4~9igw", + password: '8*tRBEk{EVj{~f!', port: 8080, - username: 'voluptate', + username: 'incidunt', }, - email: 'wayne62@example.net', - force_connect: true, - name: 'impedit', - password: '^Sz`#vcm]V', + email: 'faye.lynch@example.org', + force_connect: false, + name: 'incidunt', + password: 'Ze^Q@2-', proxyCountry: 'us', - user_agent: 'possimus', - xbc: 'laudantium', + user_agent: 'quisquam', + xbc: 'voluptatem', }, { 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 9699c17b..5185477a 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('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('odio', { + 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 ea2359d0..5345e43b 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('itaque', { + const responsePromise = client.media.vault.lists.media.add('nesciunt', { 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('itaque', { + const response = await client.media.vault.lists.media.add('nesciunt', { 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('itaque', { + const responsePromise = client.media.vault.lists.media.remove('nesciunt', { 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('itaque', { + const response = await client.media.vault.lists.media.remove('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..42643a65 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 0d89e389..00ba9c94 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('quos', { + const responsePromise = client.posts.comments.create('iste', { 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('quos', { + const response = await client.posts.comments.create('iste', { 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('quos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iste', { 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('quos', { + const response = await client.posts.comments.list('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 2fda48b0..19a80050 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: ['rbiqikvsrsmgzborawz'] }, + filter: { tags: ['phvquwdbberbhomvkawzbno'] }, 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('eveniet'); + const responsePromise = client.smartLinks.listClicks('enim'); 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( - 'eveniet', + 'enim', { 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('sit'); + const responsePromise = client.smartLinks.listConversions('aperiam'); 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( - 'sit', + 'aperiam', { 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('natus'); + const responsePromise = client.smartLinks.listFans('iste'); 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( - 'natus', + 'iste', { 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('reprehenderit'); + const responsePromise = client.smartLinks.listSpenders('quos'); 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( - 'reprehenderit', + 'quos', { 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('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); 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( - 'voluptatem', + 'est', { 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('sed'); + const responsePromise = client.smartLinks.retrieveStats('necessitatibus'); 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( - 'sed', + 'necessitatibus', { 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 f5fbef64..aa58a04f 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: 'ppahbkqgh', tags: ['jpa'] }, + filter: { search: 'cdacy', tags: ['nkfzlkgow'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rolzf', tags: ['ilycaikjlmcrsqnjbvwxts'] }, + filter: { search: 'urlrvqoqsnwsyvmkek', tags: ['oydofneiskv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ekflqkjnsfvd', - tags: ['ekvhbzlxjdnvdamnnx'], + search: 'srjwyshnttyrn', + tags: ['hswlvtybpflqjbmz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'upfbbzko', - tags: ['qsje'], + include_smart_links: false, + search: 'fs', + tags: ['tuu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..013f5fda 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('aut', { 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('aut', { 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('aut', { 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('aut', { 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 d75dd45e..25660e2b 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('est', { 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('est', { 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('est', { 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('est', { 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('reiciendis', { + 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('est', { + const response = await client.trackingLinks.getCohortArps('reiciendis', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('corrupti', { 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('aut', { + const response = await client.trackingLinks.getStats('corrupti', { 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 78ba30da..8ea1e3d0 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quo', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quo', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quo', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quo', { 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('cum', { + const responsePromise = client.trialLinks.listSubscribers('laborum', { 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('cum', { + const response = await client.trialLinks.listSubscribers('laborum', { 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('quas', { 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('quas', { 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('nemo', { 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; @@ -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('nemo', { + 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 a293ac37..73dde3cf 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: 'f' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'piwnvjnz' }); 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: 'f' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'piwnvjnz' }); }); // Mock server tests are disabled From 0e64ad9145eab434d84cda92853ad4812e94f661 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 19:12:33 +0000 Subject: [PATCH 071/309] 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 | 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 | 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 107 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index c6fec53d..2488d92c 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-569e512554419f9520769f2d037582cc61213045556a79c9c2fb75f5fe0968e6.yml -openapi_spec_hash: 40fc4027b8a5f9228d5891e1daafddf7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a8b4a89615c2d4024622d6bde7d1a3f177025e5df49bfed60c50ba0465647c01.yml +openapi_spec_hash: 1d15562f53aed866aea86adaa0e24c3c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d157f00e..6bb6558e 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( - * 'veritatis', - * ); + * 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 9ee68521..bc82c1d8 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', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e7233b51..685b16a6 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( - * 'nesciunt', + * '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( - * 'nesciunt', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7b0c026..4993e5f8 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('iste', { + * const comment = await client.posts.comments.create('id', { * 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('iste', { + * const comments = await client.posts.comments.list('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..2b04cbb2 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 fbbb6857..89ce11ba 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('enim'); + * const response = await client.smartLinks.listClicks( + * 'eaque', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aperiam', + * 'omnis', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('iste'); + * const response = await client.smartLinks.listFans('nihil'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quos', + * 'suscipit', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('minima'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'necessitatibus', + * 'aspernatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..8b0f3c3f 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( - * 'aut', + * 'omnis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('omnis', { * 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 18f791d3..d5c7b792 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( - * 'est', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'est', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('reiciendis', { + * 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( - * 'corrupti', + * 'quos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cccec1ff..e3dd52a1 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('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'corporis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'corporis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'laborum', + * 'iusto', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quas', { + * await client.trialLinks.retrieveCohortArps('odio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a3cac531..c80cb3b8 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: 'piwnvjnz' }, + * { name: 'nwhw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e6737a4b..5756d5ab 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('veritatis'); + 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 246ab3ad..7c0f377f 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: 'consequatur', - auth_type: 'email_password', - cookies: 'ratione', + auth_id: 'inventore', + auth_type: 'mobile_app', + cookies: 'dolorem', customProxy: { host: 'proxy.example.com', - password: '8*tRBEk{EVj{~f!', + password: "'[cnS]~r", port: 8080, - username: 'incidunt', + username: 'et', }, - email: 'faye.lynch@example.org', - force_connect: false, - name: 'incidunt', - password: 'Ze^Q@2-', - proxyCountry: 'us', - user_agent: 'quisquam', - xbc: 'voluptatem', + email: 'stehr.harmony@example.com', + force_connect: true, + name: 'quibusdam', + password: 'WsZL$vuxO', + proxyCountry: 'uk', + user_agent: 'laborum', + xbc: 'reiciendis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 5185477a..624744b1 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('illum', { 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('illum', { 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 5345e43b..1697eb4a 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('nesciunt', { + 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('nesciunt', { + 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('nesciunt', { + 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('nesciunt', { + 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 42643a65..70f616cd 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 00ba9c94..a5a6ca4a 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('iste', { + const responsePromise = client.posts.comments.create('id', { 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('iste', { + const response = await client.posts.comments.create('id', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('id', { 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('iste', { + const response = await client.posts.comments.list('id', { 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 b643af69..96d399de 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 d13ad1ce..6b1dc2fd 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 19a80050..c0d52159 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: ['phvquwdbberbhomvkawzbno'] }, + filter: { tags: ['whpvoffpnxqegnfro'] }, 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('enim'); + const responsePromise = client.smartLinks.listClicks('eaque'); 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( - 'enim', + 'eaque', { 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('aperiam'); + const responsePromise = client.smartLinks.listConversions('omnis'); 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( - 'aperiam', + 'omnis', { 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('iste'); + const responsePromise = client.smartLinks.listFans('nihil'); 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( - 'iste', + 'nihil', { 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('quos'); + const responsePromise = client.smartLinks.listSpenders('suscipit'); 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( - 'quos', + 'suscipit', { 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('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('minima'); 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( - 'est', + 'minima', { 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('necessitatibus'); + const responsePromise = client.smartLinks.retrieveStats('aspernatur'); 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( - 'necessitatibus', + 'aspernatur', { 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 aa58a04f..352f5e3a 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: 'cdacy', tags: ['nkfzlkgow'] }, + filter: { search: 'ebgytbhjzsybsqltubqqpk', tags: ['bjsphbo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'urlrvqoqsnwsyvmkek', tags: ['oydofneiskv'] }, + filter: { search: 'hzjhtwnxcnovsi', tags: ['tjnhqbhlwmdkmoodyqwwsalen'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'srjwyshnttyrn', - tags: ['hswlvtybpflqjbmz'], + include_smart_links: true, + search: 'pdhfeudswlvkdydhwuvhwfulv', + tags: ['sopagjevccfmv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'fs', - tags: ['tuu'], + search: 'd', + tags: ['vxutyiodpbqaewc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..105df195 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('aut', { + const responsePromise = client.stories.highlights.addStory('omnis', { 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('aut', { + const response = await client.stories.highlights.addStory('omnis', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('omnis', { 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('aut', { + const response = await client.stories.highlights.removeStory('omnis', { 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 25660e2b..37c789f6 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('aut', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('aut', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('aut', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('reiciendis', { + 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('reiciendis', { + 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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quos', { 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('corrupti', { + const response = await client.trackingLinks.getStats('quos', { 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 8ea1e3d0..7d9ad0f4 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('corporis', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('corporis', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('corporis', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('corporis', { 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('laborum', { + 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('laborum', { + 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('odio', { 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('quas', { + const response = await client.trialLinks.retrieveCohortArps('odio', { 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('sed', { 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('sed', { 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 73dde3cf..1fa7dc58 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: 'piwnvjnz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nwhw' }); 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: 'piwnvjnz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nwhw' }); }); // Mock server tests are disabled From b1d6f198688ba2d1b5aef8d12b65376ea431178f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:12:37 +0000 Subject: [PATCH 072/309] 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 | 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 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 +-- 23 files changed, 103 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2488d92c..178f3ba2 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-a8b4a89615c2d4024622d6bde7d1a3f177025e5df49bfed60c50ba0465647c01.yml -openapi_spec_hash: 1d15562f53aed866aea86adaa0e24c3c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccd70f4c3f998c337a1838bbae26248928e6a83553de2a42822d59d9719d787b.yml +openapi_spec_hash: 23a53f5349b4af49e5f882235b886142 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..4b8061a4 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('saepe'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index bc82c1d8..8b295b6e 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( - * 'illum', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 685b16a6..963e3a62 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', + * 'harum', * { 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', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 4993e5f8..ad8402d9 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('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'totam', + * { + * 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('id', { + * const comments = await client.posts.comments.list('totam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..c9a094cf 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 89ce11ba..ee19805b 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( - * 'eaque', - * ); + * 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( - * 'omnis', + * 'ipsa', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nihil'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'suscipit', + * 'nesciunt', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('minima'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aspernatur', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 8b0f3c3f..ad598b9d 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( - * 'omnis', + * 'ducimus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('omnis', { + * await client.stories.highlights.removeStory('ducimus', { * 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 d5c7b792..31ee1ffc 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( - * 'aut', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptate', { + * await client.trackingLinks.getCohortArps('fugit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quos', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e3dd52a1..6cb8ec11 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( - * 'corporis', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'corporis', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'iusto', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('odio', { + * await client.trialLinks.retrieveCohortArps('laboriosam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sed', + * 'animi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c80cb3b8..9a1c8c99 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: 'nwhw' }, + * { name: 'nmecijgyyql' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..87d50162 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('saepe'); 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 7c0f377f..85ce9233 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: 'inventore', + auth_id: 'voluptatibus', auth_type: 'mobile_app', - cookies: 'dolorem', + cookies: 'aliquid', customProxy: { host: 'proxy.example.com', - password: "'[cnS]~r", + password: 'LD8,"nAX&t', port: 8080, - username: 'et', + username: 'magnam', }, - email: 'stehr.harmony@example.com', + email: 'xziemann@example.org', force_connect: true, - name: 'quibusdam', - password: 'WsZL$vuxO', - proxyCountry: 'uk', - user_agent: 'laborum', - xbc: 'reiciendis', + name: 'consequatur', + password: '3y<~%Pwjmir%!@pvZ|"', + proxyCountry: 'us', + user_agent: 'consequatur', + xbc: 'enim', }, { 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 624744b1..798f38c1 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('illum', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolorum', { 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('illum', { + const response = await client.engagement.messages.getMessageBuyers('dolorum', { 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 1697eb4a..04c402d6 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('harum', { 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('harum', { 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('harum', { 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('harum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a5a6ca4a..9041ba03 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('id', { + const responsePromise = client.posts.comments.create('totam', { 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('id', { + const response = await client.posts.comments.create('totam', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('totam', { 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('id', { + const response = await client.posts.comments.list('totam', { 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 96d399de..b643af69 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 c0d52159..bcfbcf77 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: ['whpvoffpnxqegnfro'] }, + filter: { tags: ['cpvidjjh'] }, 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('eaque'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'eaque', + 'qui', { 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('omnis'); + const responsePromise = client.smartLinks.listConversions('ipsa'); 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( - 'omnis', + 'ipsa', { 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('nihil'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'nihil', + 'qui', { 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('suscipit'); + const responsePromise = client.smartLinks.listSpenders('nesciunt'); 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( - 'suscipit', + 'nesciunt', { 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('minima'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); 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( - 'minima', + 'voluptatem', { 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('aspernatur'); + 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( - 'aspernatur', + '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 352f5e3a..5e111aa3 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: 'ebgytbhjzsybsqltubqqpk', tags: ['bjsphbo'] }, + filter: { search: 'ayerenjia', tags: ['puxtgtbppkoybwbkm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hzjhtwnxcnovsi', tags: ['tjnhqbhlwmdkmoodyqwwsalen'] }, + filter: { search: 'cwwocjiibcrrnn', tags: ['camaqxcwn'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'pdhfeudswlvkdydhwuvhwfulv', - tags: ['sopagjevccfmv'], + include_smart_links: false, + search: 'vhwxahrctnmxrqjx', + tags: ['xip'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'd', - tags: ['vxutyiodpbqaewc'], + include_smart_links: true, + search: 'ysuwiutlieyoeuxkzxxpyxf', + tags: ['kbbzcuzsmpirzhteqes'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 105df195..d27cb4df 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('omnis', { + const responsePromise = client.stories.highlights.addStory('ducimus', { 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('omnis', { + const response = await client.stories.highlights.addStory('ducimus', { 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('omnis', { + const responsePromise = client.stories.highlights.removeStory('ducimus', { 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('omnis', { + const response = await client.stories.highlights.removeStory('ducimus', { 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 37c789f6..9951e9b6 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nesciunt', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nesciunt', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nesciunt', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nesciunt', { 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('fugit', { 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('fugit', { 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('quos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('repellat', { 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('quos', { + const response = await client.trackingLinks.getStats('repellat', { 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 7d9ad0f4..f028e4f3 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('facilis', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('facilis', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('facilis', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('facilis', { 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('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('iusto', { + const response = await client.trialLinks.listSubscribers('et', { 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('odio', { 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('odio', { + 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('animi', { 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('sed', { + const response = await client.trialLinks.retrieveStats('animi', { 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 1fa7dc58..67b60aea 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: 'nwhw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nmecijgyyql' }); 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: 'nwhw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nmecijgyyql' }); }); // Mock server tests are disabled From 4f2d93e20ba3469807891876d90405abac984b85 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 02:00:32 +0000 Subject: [PATCH 073/309] fix(client): send content-type header for requests with an omitted optional body --- src/client.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 8e001610..c4ff7f21 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1044,11 +1044,19 @@ export class OnlyFansAPI { return () => controller.abort(); } - private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): { + private buildBody({ options }: { options: FinalRequestOptions }): { bodyHeaders: HeadersLike; body: BodyInit | undefined; } { + const { body, headers: rawHeaders } = options; if (!body) { + // A resource method always passes a `body` key when its operation defines a + // request body, even if the caller omitted an optional body param. Keep the + // content-type for those, and only elide it for operations with no body at + // all (e.g. GET/DELETE). + if (body == null && 'body' in options) { + return this.#encoder({ body, headers: buildHeaders([rawHeaders]) }); + } return { bodyHeaders: undefined, body: undefined }; } const headers = buildHeaders([rawHeaders]); From e8f55e499778343f80fc11b423598ea1148f0881 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:12:33 +0000 Subject: [PATCH 074/309] 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 | 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 +-- .../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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++++-- 27 files changed, 113 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 178f3ba2..5cb98e7f 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-ccd70f4c3f998c337a1838bbae26248928e6a83553de2a42822d59d9719d787b.yml -openapi_spec_hash: 23a53f5349b4af49e5f882235b886142 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7912c719a0b0a1baa8fa755329074f71a0590b3656dd32b85e7278044faa27df.yml +openapi_spec_hash: 118d0f0f2396283957913bffbf3057aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4b8061a4..c0b1f550 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('saepe'); + * const response = await client.accounts.disconnect( + * 'accusamus', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8b295b6e..c3019920 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( - * 'dolorum', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 963e3a62..a0e5582a 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( - * 'harum', + * 'omnis', * { 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( - * 'harum', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ad8402d9..185f935b 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( - * 'totam', - * { - * 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,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('totam', { + * const comments = await client.posts.comments.list('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..a9767818 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 c9a094cf..a84ff073 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 ee19805b..0dee42f1 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('qui'); + * const response = await client.smartLinks.listClicks('quas'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ipsa', + * 'beatae', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('porro'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nesciunt', + * 'beatae', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('enim'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'autem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ad598b9d..62984c5e 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( - * 'ducimus', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ducimus', { + * await client.stories.highlights.removeStory('eos', { * 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 31ee1ffc..54fc0512 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( - * 'nesciunt', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nesciunt', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('fugit', { + * await client.trackingLinks.getCohortArps('ipsum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'repellat', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6cb8ec11..c95524d3 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( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laboriosam', { + * await client.trialLinks.retrieveCohortArps('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'animi', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9a1c8c99..62d5e8b3 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: 'nmecijgyyql' }, + * { name: 'oembzyfjpgadwxeelekmwjrmy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 87d50162..cba64f6d 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('saepe'); + const responsePromise = client.accounts.disconnect('accusamus'); 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 85ce9233..f8b11bf0 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: 'voluptatibus', + auth_id: 'illum', auth_type: 'mobile_app', - cookies: 'aliquid', + cookies: 'sit', customProxy: { host: 'proxy.example.com', - password: 'LD8,"nAX&t', + password: 'qQ})OJ~10', port: 8080, - username: 'magnam', + username: 'et', }, - email: 'xziemann@example.org', - force_connect: true, - name: 'consequatur', - password: '3y<~%Pwjmir%!@pvZ|"', - proxyCountry: 'us', - user_agent: 'consequatur', - xbc: 'enim', + email: 'maverick.wyman@example.com', + force_connect: false, + name: 'et', + password: 'V6E-7NCd_p"J&I', + proxyCountry: 'uk', + user_agent: 'praesentium', + 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 c17a81d6..229de463 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 798f38c1..0f9a3ab3 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('dolorum', { + const responsePromise = client.engagement.messages.getMessageBuyers('nemo', { 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('dolorum', { + const response = await client.engagement.messages.getMessageBuyers('nemo', { 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 04c402d6..68cadb73 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('harum', { + const responsePromise = client.media.vault.lists.media.add('omnis', { 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('harum', { + const response = await client.media.vault.lists.media.add('omnis', { 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('harum', { + const responsePromise = client.media.vault.lists.media.remove('omnis', { 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('harum', { + const response = await client.media.vault.lists.media.remove('omnis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9041ba03..a5ecaaf6 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('totam', { + 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('totam', { + 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('totam', { 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('totam', { + 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 8e5b0566..4ec8acc7 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 b643af69..02883e18 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 bcfbcf77..9b378e1a 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: ['cpvidjjh'] }, + filter: { tags: ['bxcydejqizkewcfhp'] }, 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('qui'); + const responsePromise = client.smartLinks.listClicks('quas'); 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( - 'qui', + 'quas', { 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('ipsa'); + const responsePromise = client.smartLinks.listConversions('beatae'); 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( - 'ipsa', + 'beatae', { 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('qui'); + const responsePromise = client.smartLinks.listFans('porro'); 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( - 'qui', + 'porro', { 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('nesciunt'); + const responsePromise = client.smartLinks.listSpenders('beatae'); 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( - 'nesciunt', + 'beatae', { 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('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('enim'); 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( - 'voluptatem', + 'enim', { 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('autem'); 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', + 'autem', { 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 5e111aa3..43129b95 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: 'ayerenjia', tags: ['puxtgtbppkoybwbkm'] }, + filter: { search: 'hvherctxzkh', tags: ['swwmkvhsjbgpuizyrkshamlu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cwwocjiibcrrnn', tags: ['camaqxcwn'] }, + filter: { search: 'zspzjhvh', tags: ['lvrsvwnqfslgevmaivhrqpvu'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vhwxahrctnmxrqjx', - tags: ['xip'], + include_smart_links: true, + search: 'momdnhnynuqnt', + tags: ['vfzpcgewviimv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ysuwiutlieyoeuxkzxxpyxf', - tags: ['kbbzcuzsmpirzhteqes'], + search: 'bwrzgpwfndfvleezdpkvxqgqn', + tags: ['wourumekerjqhylgwxgnqwn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d27cb4df..303341f0 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('ducimus', { + const responsePromise = client.stories.highlights.addStory('eos', { 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('ducimus', { + const response = await client.stories.highlights.addStory('eos', { 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('ducimus', { + const responsePromise = client.stories.highlights.removeStory('eos', { 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('ducimus', { + const response = await client.stories.highlights.removeStory('eos', { 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 9951e9b6..81763d35 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ipsum', { 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('fugit', { + const response = await client.trackingLinks.getCohortArps('ipsum', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nostrum', { 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('repellat', { + const response = await client.trackingLinks.getStats('nostrum', { 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 f028e4f3..4a0269e9 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('facilis', { 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('facilis', { 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('facilis', { 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('facilis', { 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('et', { + 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('et', { + const response = await client.trialLinks.listSubscribers('id', { 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('laboriosam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quis', { 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('laboriosam', { + const response = await client.trialLinks.retrieveCohortArps('quis', { 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('animi', { 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; @@ -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('animi', { + 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 67b60aea..93bc34c5 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: 'nmecijgyyql' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'oembzyfjpgadwxeelekmwjrmy', + }); 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: 'nmecijgyyql' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'oembzyfjpgadwxeelekmwjrmy', + }); }); // Mock server tests are disabled From e9288199b8a3ea07445850bfb8ab109a5611f2ff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:12:34 +0000 Subject: [PATCH 075/309] feat(api): api update --- .stats.yml | 6 +- api.md | 8 -- src/client.ts | 8 +- src/resources/accounts.ts | 4 +- src/resources/engagement/messages/messages.ts | 7 +- src/resources/index.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 +- src/resources/messages.ts | 102 +----------------- src/resources/posts/comments.ts | 4 +- .../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 | 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/messages.test.ts | 32 ------ .../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 | 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 +- 31 files changed, 112 insertions(+), 255 deletions(-) delete mode 100644 tests/api-resources/messages.test.ts diff --git a/.stats.yml b/.stats.yml index 5cb98e7f..793df376 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-7912c719a0b0a1baa8fa755329074f71a0590b3656dd32b85e7278044faa27df.yml -openapi_spec_hash: 118d0f0f2396283957913bffbf3057aa +configured_endpoints: 265 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9c336e3e172973bccca6d3a512807040e2e8f4c26daa3f2238e1ab9883e0472a.yml +openapi_spec_hash: 8828ab31a133fadb496a5bcc1af6c9dc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/api.md b/api.md index 6fa68cff..43412799 100644 --- a/api.md +++ b/api.md @@ -192,14 +192,6 @@ Methods: # Messages -Types: - -- MessageAttachTagsResponse - -Methods: - -- client.messages.attachTags(messageID, { ...params }) -> MessageAttachTagsResponse - # ClientSessions Types: diff --git a/src/client.ts b/src/client.ts index c4ff7f21..5223d108 100644 --- a/src/client.ts +++ b/src/client.ts @@ -104,7 +104,7 @@ import { MeGetTopPercentageResponse, MeRetrieveResponse, } from './resources/me'; -import { MessageAttachTagsParams, MessageAttachTagsResponse, Messages } from './resources/messages'; +import { Messages } from './resources/messages'; import { PayoutListRequestsParams, PayoutListRequestsResponse, @@ -1321,11 +1321,7 @@ export declare namespace OnlyFansAPI { type ChatUnmuteParams as ChatUnmuteParams, }; - export { - Messages as Messages, - type MessageAttachTagsResponse as MessageAttachTagsResponse, - type MessageAttachTagsParams as MessageAttachTagsParams, - }; + export { Messages as Messages }; export { ClientSessions as ClientSessions, diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c0b1f550..5ea9ae45 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( - * 'accusamus', - * ); + * const response = await client.accounts.disconnect('magnam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c3019920..02db5a67 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( - * 'nemo', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/index.ts b/src/resources/index.ts index 4e7239bb..cf7a6854 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -140,7 +140,7 @@ export { type MediaScrapeParams, type MediaUploadParams, } from './media/media'; -export { Messages, type MessageAttachTagsResponse, type MessageAttachTagsParams } from './messages'; +export { Messages } from './messages'; export { Notifications, type NotificationListResponse, diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0e5582a..da440c10 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( - * 'omnis', + * 'cupiditate', * { 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( - * 'omnis', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/messages.ts b/src/resources/messages.ts index 7793d393..458bbdfc 100644 --- a/src/resources/messages.ts +++ b/src/resources/messages.ts @@ -1,105 +1,5 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; -import { APIPromise } from '../core/api-promise'; -import { RequestOptions } from '../internal/request-options'; -import { path } from '../internal/utils/path'; -export class Messages extends APIResource { - /** - * Attach Tags (Release Forms) to a message that has already been sent. Please - * note, that this is a "sync" operation - for example, if you provide empty - * `rfTag` it will remove all existing tags already attached to the message. - * - * @example - * ```ts - * const response = await client.messages.attachTags( - * '123456789', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); - * ``` - */ - attachTags( - messageID: string, - params: MessageAttachTagsParams, - options?: RequestOptions, - ): APIPromise { - const { account, ...body } = params; - return this._client.post(path`/api/${account}/messages/${messageID}/attach-tags`, { body, ...options }); - } -} - -export interface MessageAttachTagsResponse { - _meta?: MessageAttachTagsResponse._Meta; - - data?: MessageAttachTagsResponse.Data; -} - -export namespace MessageAttachTagsResponse { - export interface _Meta { - _cache?: _Meta._Cache; - - _credits?: _Meta._Credits; - - _rate_limits?: _Meta._RateLimits; - } - - export namespace _Meta { - export interface _Cache { - is_cached?: boolean; - - note?: string; - } - - export interface _Credits { - balance?: number; - - note?: string; - - used?: number; - } - - export interface _RateLimits { - limit_day?: number; - - limit_minute?: number; - - remaining_day?: number; - - remaining_minute?: number; - } - } - - export interface Data { - success?: boolean; - } -} - -export interface MessageAttachTagsParams { - /** - * Path param: The Account ID - */ - account: string; - - /** - * Body param: Array of OnlyFans Release Form Guest IDs to tag in your message - */ - rfGuest?: string; - - /** - * Body param: Array of OnlyFans Release Form Partners IDs to tag in your message - */ - rfPartner?: string; - - /** - * Body param: Array of OnlyFans Creator User IDs to tag in your message - */ - rfTag?: string; -} - -export declare namespace Messages { - export { - type MessageAttachTagsResponse as MessageAttachTagsResponse, - type MessageAttachTagsParams as MessageAttachTagsParams, - }; -} +export class Messages extends APIResource {} diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935b..bd3a9869 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('nemo', { * 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('nemo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 0dee42f1..0104e25b 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('quas'); + * const response = await client.smartLinks.listClicks('eos'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'beatae', + * 'maiores', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('porro'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'beatae', + * 'itaque', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('enim'); + * await client.smartLinks.retrieveCohortArps('delectus'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'autem', + * 'animi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 62984c5e..e8661886 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( - * 'eos', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eos', { + * await client.stories.highlights.removeStory('aut', { * 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 54fc0512..c04f7677 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', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'magnam', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ipsum', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'nostrum', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c95524d3..49a7059d 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('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'aliquid', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'aliquid', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'id', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quis', { + * 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( - * 'dolorem', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 62d5e8b3..8640efd8 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: 'oembzyfjpgadwxeelekmwjrmy' }, + * { name: 'otjzqrapzyixbwirkxbspk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index cba64f6d..36b08578 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('accusamus'); + const responsePromise = client.accounts.disconnect('magnam'); 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 f8b11bf0..9ddb01c0 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: 'illum', + auth_id: 'commodi', auth_type: 'mobile_app', - cookies: 'sit', + cookies: 'sunt', customProxy: { host: 'proxy.example.com', - password: 'qQ})OJ~10', + password: 'Ct3dI&oY%Y_', port: 8080, - username: 'et', + username: 'necessitatibus', }, - email: 'maverick.wyman@example.com', + email: 'feeney.lavon@example.org', force_connect: false, - name: 'et', - password: 'V6E-7NCd_p"J&I', - proxyCountry: 'uk', - user_agent: 'praesentium', - xbc: 'vel', + name: 'asperiores', + password: '[Yd[`."`', + proxyCountry: 'us', + user_agent: 'voluptas', + xbc: 'dolore', }, { 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 0f9a3ab3..1856b815 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('nemo', { + 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('nemo', { + 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 68cadb73..c5d0db26 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('omnis', { + const responsePromise = client.media.vault.lists.media.add('cupiditate', { 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('omnis', { + const response = await client.media.vault.lists.media.add('cupiditate', { 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('omnis', { + const responsePromise = client.media.vault.lists.media.remove('cupiditate', { 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('omnis', { + const response = await client.media.vault.lists.media.remove('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/messages.test.ts b/tests/api-resources/messages.test.ts deleted file mode 100644 index 448c31ad..00000000 --- a/tests/api-resources/messages.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import OnlyFansAPI from '@onlyfansapi/onlyfans-sdk'; - -const client = new OnlyFansAPI({ - apiKey: 'My API Key', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource messages', () => { - // Mock server tests are disabled - test.skip('attachTags: only required params', async () => { - const responsePromise = client.messages.attachTags('123456789', { account: 'acct_XXXXXXXXXXXXXXX' }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - // Mock server tests are disabled - test.skip('attachTags: required and optional params', async () => { - const response = await client.messages.attachTags('123456789', { - account: 'acct_XXXXXXXXXXXXXXX', - rfGuest: 'rfGuest', - rfPartner: 'rfPartner', - rfTag: 'rfTag', - }); - }); -}); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e769f5c8 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 a5ecaaf6..0126401f 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('nemo', { 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('nemo', { 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('nemo', { 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('nemo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 9b378e1a..78fe5d5e 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: ['bxcydejqizkewcfhp'] }, + filter: { tags: ['ew'] }, 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('quas'); + const responsePromise = client.smartLinks.listClicks('eos'); 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( - 'quas', + 'eos', { 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('beatae'); + const responsePromise = client.smartLinks.listConversions('maiores'); 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( - 'beatae', + 'maiores', { 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('porro'); + const responsePromise = client.smartLinks.listFans('aut'); 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( - 'porro', + 'aut', { 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('beatae'); + const responsePromise = client.smartLinks.listSpenders('itaque'); 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( - 'beatae', + 'itaque', { 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('enim'); + 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( - 'enim', + '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('autem'); + const responsePromise = client.smartLinks.retrieveStats('animi'); 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( - 'autem', + 'animi', { 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 43129b95..8baf9847 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: 'hvherctxzkh', tags: ['swwmkvhsjbgpuizyrkshamlu'] }, + filter: { search: 'awnsseotiuk', tags: ['jsdopahhoktvntyngzvgiqkn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zspzjhvh', tags: ['lvrsvwnqfslgevmaivhrqpvu'] }, + filter: { search: 'bykyxeederrsfgbdqhhk', tags: ['dpzlbuctrz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'momdnhnynuqnt', - tags: ['vfzpcgewviimv'], + search: 'utwbekfzizcdsm', + tags: ['qrcdrwzhowzjpmtndojlqvk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bwrzgpwfndfvleezdpkvxqgqn', - tags: ['wourumekerjqhylgwxgnqwn'], + include_smart_links: false, + search: 'vrucghnpmirtfzbdffep', + tags: ['r'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 303341f0..013f5fda 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('eos', { + const responsePromise = client.stories.highlights.addStory('aut', { 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('eos', { + const response = await client.stories.highlights.addStory('aut', { 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('eos', { + const responsePromise = client.stories.highlights.removeStory('aut', { 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('eos', { + const response = await client.stories.highlights.removeStory('aut', { 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 81763d35..2c29be2b 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('provident', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('provident', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('provident', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('aut', { 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('ipsum', { + const response = await client.trackingLinks.getCohortArps('aut', { 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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eaque', { 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('nostrum', { + const response = await client.trackingLinks.getStats('eaque', { 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 4a0269e9..3b389f3c 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('aliquid', { 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('aliquid', { 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('aliquid', { 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('aliquid', { 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('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('id', { + 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('quis', { 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('quis', { + 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,9 @@ 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('accusantium', { + 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('dolorem', { + 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 93bc34c5..0af06850 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: 'oembzyfjpgadwxeelekmwjrmy', + name: 'otjzqrapzyixbwirkxbspk', }); 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: 'oembzyfjpgadwxeelekmwjrmy', + name: 'otjzqrapzyixbwirkxbspk', }); }); From 8bed78da3c4bd1f286aa441b65576dafbd985ae6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 18:12:34 +0000 Subject: [PATCH 076/309] 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 | 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 | 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 +++--- 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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 117 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 793df376..c2f6bb95 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9c336e3e172973bccca6d3a512807040e2e8f4c26daa3f2238e1ab9883e0472a.yml -openapi_spec_hash: 8828ab31a133fadb496a5bcc1af6c9dc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-de8aa535e63789de8ad141e804a0319ba9927eab1c28ebf4d28637edb7e4ff1c.yml +openapi_spec_hash: bf553646975aa11a289972d266dfa1cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5ea9ae45..fb5b36c0 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('magnam'); + * const response = await client.accounts.disconnect('alias'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 02db5a67..e0161605 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( + * 'nihil', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index da440c10..0f98a3ca 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( - * 'cupiditate', + * '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( - * 'cupiditate', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bd3a9869..537255f7 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('nemo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'sapiente', + * { + * 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('nemo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'sapiente', + * { 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 a9767818..09d6973d 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 41feb4c0..2b04cbb2 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 0104e25b..9279ce57 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( + * 'dolorem', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'maiores', + * 'et', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans( + * 'molestias', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'itaque', + * 'vitae', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('delectus'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'animi', + * 'sunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..e5655b14 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( - * 'aut', + * 'quam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('quam', { * 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 c04f7677..6c325bde 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( - * 'provident', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'provident', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * await client.trackingLinks.getCohortArps('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eaque', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 49a7059d..f949f60e 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( - * 'aliquid', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'aliquid', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'officiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ab', { + * await client.trialLinks.retrieveCohortArps('assumenda', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'accusantium', + * 'fugiat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8640efd8..8b3273ea 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: 'otjzqrapzyixbwirkxbspk' }, + * { name: 'fg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 36b08578..42fe7a50 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('magnam'); + const responsePromise = client.accounts.disconnect('alias'); 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 9ddb01c0..bb78131a 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: 'commodi', - auth_type: 'mobile_app', - cookies: 'sunt', + auth_id: 'id', + auth_type: 'raw_data', + cookies: 'corrupti', customProxy: { host: 'proxy.example.com', - password: 'Ct3dI&oY%Y_', + password: 'Td>|07y>)9RR?T$8', port: 8080, - username: 'necessitatibus', + username: 'ea', }, - email: 'feeney.lavon@example.org', - force_connect: false, - name: 'asperiores', - password: '[Yd[`."`', + email: 'mitchell.viola@example.org', + force_connect: true, + name: 'amet', + password: '{Vv@~%O.|', proxyCountry: 'us', - user_agent: 'voluptas', - xbc: 'dolore', + user_agent: 'iusto', + xbc: 'dolorum', }, { 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 1856b815..020cd7ce 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('nihil', { 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('nihil', { 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 c5d0db26..9c53e9e5 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('cupiditate', { + 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('cupiditate', { + 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('cupiditate', { + 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('cupiditate', { + const response = await client.media.vault.lists.media.remove('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 0126401f..9c69c358 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('nemo', { + const responsePromise = client.posts.comments.create('sapiente', { 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('nemo', { + const response = await client.posts.comments.create('sapiente', { 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('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sapiente', { 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('nemo', { + const response = await client.posts.comments.list('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..e2edc676 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 c1510622..96d399de 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 78fe5d5e..a9dbc7b9 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: ['ew'] }, + filter: { tags: ['odgueodiyj'] }, 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('eos'); + const responsePromise = client.smartLinks.listClicks('dolorem'); 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( - 'eos', + 'dolorem', { 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('maiores'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'maiores', + 'et', { 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('aut'); + const responsePromise = client.smartLinks.listFans('molestias'); 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( - 'aut', + 'molestias', { 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('itaque'); + const responsePromise = client.smartLinks.listSpenders('vitae'); 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( - 'itaque', + 'vitae', { 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('et'); 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', + 'et', { 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('animi'); + const responsePromise = client.smartLinks.retrieveStats('sunt'); 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( - 'animi', + 'sunt', { 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 8baf9847..c4ddbe2d 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: 'awnsseotiuk', tags: ['jsdopahhoktvntyngzvgiqkn'] }, + filter: { search: 'pirejwmsjk', tags: ['sqejpnxdpswd'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bykyxeederrsfgbdqhhk', tags: ['dpzlbuctrz'] }, + filter: { search: 'sgyggnuwumoz', tags: ['gcxfwhzestws'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'utwbekfzizcdsm', - tags: ['qrcdrwzhowzjpmtndojlqvk'], + search: 'pblczwqiglnizoqbh', + tags: ['ry'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'vrucghnpmirtfzbdffep', - tags: ['r'], + search: 'va', + tags: ['ardpijwtdlbyl'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..762c57bf 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('aut', { + const responsePromise = client.stories.highlights.addStory('quam', { 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('aut', { + const response = await client.stories.highlights.addStory('quam', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('quam', { 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('aut', { + const response = await client.stories.highlights.removeStory('quam', { 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 2c29be2b..8435c727 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('provident', { 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('provident', { 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('provident', { 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,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('provident', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('autem', { 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('aut', { + const response = await client.trackingLinks.getCohortArps('autem', { 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('eaque', { 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('eaque', { + 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 3b389f3c..f979d162 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('recusandae', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('recusandae', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('recusandae', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('recusandae', { 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('officiis', { 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('officiis', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('assumenda', { + 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('ab', { + const response = await client.trialLinks.retrieveCohortArps('assumenda', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,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('fugiat', { 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('accusantium', { + const response = await client.trialLinks.retrieveStats('fugiat', { 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 0af06850..544fa640 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: 'otjzqrapzyixbwirkxbspk', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fg' }); 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: 'otjzqrapzyixbwirkxbspk', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fg' }); }); // Mock server tests are disabled From 85c1517138e5dc37a56f405d31363d9b2a9dee89 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 05:12:32 +0000 Subject: [PATCH 077/309] 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 | 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 +++++++++---------- .../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 | 22 +++++++++---------- 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 ++-- 28 files changed, 107 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2f6bb95..8f7a621d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-de8aa535e63789de8ad141e804a0319ba9927eab1c28ebf4d28637edb7e4ff1c.yml -openapi_spec_hash: bf553646975aa11a289972d266dfa1cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6248482297627a7484fa7a27c049cd2dcbc311465c243e4509b22f9fa11a8e5e.yml +openapi_spec_hash: 7e330e112b99ae68c7e1e483f8fbc557 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fb5b36c0..245fc5fb 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('alias'); + * 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 e0161605..79194811 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( - * 'nihil', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0f98a3ca..a90c1627 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', + * '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( - * 'voluptas', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 537255f7..f36b1c5a 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( - * 'sapiente', + * 'sequi', * { * 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( - * 'sapiente', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('sequi', { + * 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 09d6973d..a9767818 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 2b04cbb2..c9a094cf 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 9279ce57..b00d4356 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( - * 'dolorem', + * 'nihil', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'molestias', - * ); + * const response = await client.smartLinks.listFans('odit'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'vitae', + * 'doloremque', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('labore'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sunt', + * 'porro', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e5655b14..a268750c 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( - * 'quam', + * '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('quam', { + * 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 6c325bde..3cbdd290 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', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('autem', { + * await client.trackingLinks.getCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f949f60e..edf12a16 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( - * 'recusandae', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'recusandae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('ipsum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'officiis', + * 'magnam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('assumenda', { + * await client.trialLinks.retrieveCohortArps('dolorum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'fugiat', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8b3273ea..3d0e73c3 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: 'fg' }, + * { name: 'nxkd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 42fe7a50..13e5c0c0 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('alias'); + 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 bb78131a..3da302dc 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: 'id', - auth_type: 'raw_data', - cookies: 'corrupti', + auth_id: 'aliquid', + auth_type: 'email_password', + cookies: 'dolor', customProxy: { host: 'proxy.example.com', - password: 'Td>|07y>)9RR?T$8', + password: 'Q`B:dl2[', port: 8080, - username: 'ea', + username: 'accusantium', }, - email: 'mitchell.viola@example.org', - force_connect: true, - name: 'amet', - password: '{Vv@~%O.|', + email: 'qzemlak@example.com', + force_connect: false, + name: 'sunt', + password: 'F(BxSf6', proxyCountry: 'us', - user_agent: 'iusto', - xbc: 'dolorum', + user_agent: 'incidunt', + xbc: 'esse', }, { 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 020cd7ce..41ed5ddc 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('nihil', { + const responsePromise = client.engagement.messages.getMessageBuyers('fuga', { 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('nihil', { + const response = await client.engagement.messages.getMessageBuyers('fuga', { 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 9c53e9e5..9271adb3 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('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('voluptas', { + 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('voluptas', { + 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('voluptas', { + 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 694c42e4..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9c69c358..eadcb6b7 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('sapiente', { + 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('sapiente', { + 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('sapiente', { 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('sapiente', { + 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 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 96d399de..b643af69 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 d13ad1ce..6b1dc2fd 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 a9dbc7b9..7f06680a 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: ['odgueodiyj'] }, + filter: { tags: ['ivqlkrmigiwnfyozkfowazrp'] }, 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('dolorem'); + const responsePromise = client.smartLinks.listClicks('nihil'); 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( - 'dolorem', + 'nihil', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('molestias'); + const responsePromise = client.smartLinks.listFans('odit'); 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( - 'molestias', + 'odit', { 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('vitae'); + const responsePromise = client.smartLinks.listSpenders('doloremque'); 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( - 'vitae', + 'doloremque', { 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('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('labore'); 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( - 'et', + 'labore', { 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('sunt'); + const responsePromise = client.smartLinks.retrieveStats('porro'); 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( - 'sunt', + 'porro', { 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 c4ddbe2d..3d49cf5a 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: 'pirejwmsjk', tags: ['sqejpnxdpswd'] }, + filter: { search: 'fundef', tags: ['mvylvveiw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'sgyggnuwumoz', tags: ['gcxfwhzestws'] }, + filter: { search: 'csilaqmxblp', tags: ['bupfpeq'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'pblczwqiglnizoqbh', - tags: ['ry'], + include_smart_links: false, + search: 'wbe', + tags: ['pzbvqs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'va', - tags: ['ardpijwtdlbyl'], + include_smart_links: true, + search: 'worcxzfnkbg', + tags: ['mxvuozlyqhdkpw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 762c57bf..32b96b7e 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('quam', { + 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('quam', { + 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('quam', { + 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('quam', { + 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 8435c727..1c5265e6 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('ea', { 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('ea', { 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('ea', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('velit', { 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('autem', { + const response = await client.trackingLinks.getCohortArps('velit', { 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('id', { 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('id', { 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 f979d162..5ee4b333 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('ipsum', { 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('ipsum', { 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('ipsum', { 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('ipsum', { 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('officiis', { + const responsePromise = client.trialLinks.listSubscribers('magnam', { 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('officiis', { + const response = await client.trialLinks.listSubscribers('magnam', { 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('assumenda', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolorum', { 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('assumenda', { + const response = await client.trialLinks.retrieveCohortArps('dolorum', { 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('fugiat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('officia', { 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('fugiat', { + const response = await client.trialLinks.retrieveStats('officia', { 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 544fa640..4a44425b 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: 'fg' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nxkd' }); 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: 'fg' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nxkd' }); }); // Mock server tests are disabled From d5a171e03d462137a5b217891711ff938e5f1700 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 06:12:34 +0000 Subject: [PATCH 078/309] 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 | 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 | 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 +-- 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 114 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8f7a621d..2c8db812 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6248482297627a7484fa7a27c049cd2dcbc311465c243e4509b22f9fa11a8e5e.yml -openapi_spec_hash: 7e330e112b99ae68c7e1e483f8fbc557 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be5dbf6f642a36e76591e9ba9964a1c461bfcfd58cb75324ec00001c09742578.yml +openapi_spec_hash: 99d50a3cef2a53a10d8f1505133f2aae config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..d62847e9 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('non'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 79194811..276796ec 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( - * 'fuga', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a90c1627..fb726275 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', + * 'recusandae', * { 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', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f36b1c5a..95bf943a 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('quis', { + * 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('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 c9a094cf..2b04cbb2 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 b00d4356..e38cbfb5 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( - * 'nihil', + * 'dicta', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'suscipit', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('odit'); + * const response = await client.smartLinks.listFans('esse'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'doloremque', + * 'voluptas', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('labore'); + * await client.smartLinks.retrieveCohortArps('unde'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'porro', + * 'neque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a268750c..cb1f02d5 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', + * 'dignissimos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('unde', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'dignissimos', + * { + * 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 3cbdd290..b0e412a7 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( - * 'ea', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ea', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('velit', { + * 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('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'fugit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index edf12a16..23777c3f 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( - * 'ipsum', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ipsum', { + * const trialLink = await client.trialLinks.delete('natus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'magnam', + * 'necessitatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolorum', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'officia', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3d0e73c3..57d49bf4 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: 'nxkd' }, + * { name: 'rqwoliu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..f8c6d986 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('non'); 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 3da302dc..faed53b4 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: 'aliquid', - auth_type: 'email_password', - cookies: 'dolor', + auth_id: 'nobis', + auth_type: 'mobile_app', + cookies: 'labore', customProxy: { host: 'proxy.example.com', - password: 'Q`B:dl2[', + password: '&?`4BLPcaV4Uu*', port: 8080, - username: 'accusantium', + username: 'architecto', }, - email: 'qzemlak@example.com', + email: 'sim93@example.org', force_connect: false, - name: 'sunt', - password: 'F(BxSf6', - proxyCountry: 'us', - user_agent: 'incidunt', - xbc: 'esse', + name: 'numquam', + password: '1{LLS+0g(.D@87o^P1W', + proxyCountry: 'uk', + user_agent: 'inventore', + xbc: 'ipsum', }, { 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 41ed5ddc..d1109a7c 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('fuga', { + const responsePromise = client.engagement.messages.getMessageBuyers('atque', { 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('fuga', { + const response = await client.engagement.messages.getMessageBuyers('atque', { 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 9271adb3..95d1dbd4 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('recusandae', { 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('recusandae', { 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('recusandae', { 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index eadcb6b7..86baf48c 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('quis', { 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('quis', { 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('quis', { 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('quis', { 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 4ec8acc7..8e5b0566 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 b643af69..96d399de 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 7f06680a..3c37c902 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: ['ivqlkrmigiwnfyozkfowazrp'] }, + filter: { tags: ['anslvubulexwzl'] }, 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('nihil'); + const responsePromise = client.smartLinks.listClicks('dicta'); 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( - 'nihil', + 'dicta', { 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('et'); + const responsePromise = client.smartLinks.listConversions('suscipit'); 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( - 'et', + 'suscipit', { 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('odit'); + const responsePromise = client.smartLinks.listFans('esse'); 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( - 'odit', + 'esse', { 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('doloremque'); + const responsePromise = client.smartLinks.listSpenders('voluptas'); 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( - 'doloremque', + 'voluptas', { 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('labore'); + const responsePromise = client.smartLinks.retrieveCohortArps('unde'); 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( - 'labore', + 'unde', { 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('porro'); + const responsePromise = client.smartLinks.retrieveStats('neque'); 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( - 'porro', + 'neque', { 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 3d49cf5a..bf3d702a 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: 'fundef', tags: ['mvylvveiw'] }, + filter: { search: 'yuhqcqrnobzyqxllsbwvfl', tags: ['sf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'csilaqmxblp', tags: ['bupfpeq'] }, + filter: { search: 'melxhuoynuaglpr', tags: ['witjgdqwbwcxdjc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wbe', - tags: ['pzbvqs'], + include_smart_links: true, + search: 'iqwtveqzxhscbh', + tags: ['ditvgcfwgvzs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'worcxzfnkbg', - tags: ['mxvuozlyqhdkpw'], + include_smart_links: false, + search: 'nixstdoapvnmu', + tags: ['kuphxpobkwub'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 32b96b7e..42270a3e 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('dignissimos', { 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('dignissimos', { 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('dignissimos', { 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('dignissimos', { 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 1c5265e6..1a6bc20e 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('ea', { 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('ea', { 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('ea', { 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('ea', { 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('velit', { 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('velit', { + 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('fugit', { 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('id', { + const response = await client.trackingLinks.getStats('fugit', { 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 5ee4b333..4ddc39b4 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('ipsum', { 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('ipsum', { 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('ipsum', { 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('ipsum', { 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('magnam', { + const responsePromise = client.trialLinks.listSubscribers('necessitatibus', { 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('magnam', { + const response = await client.trialLinks.listSubscribers('necessitatibus', { 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('dolorum', { + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { 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('dolorum', { + const response = await client.trialLinks.retrieveCohortArps('voluptatem', { 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('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptas', { 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('officia', { + const response = await client.trialLinks.retrieveStats('voluptas', { 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 4a44425b..a2373c36 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: 'nxkd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rqwoliu' }); 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: 'nxkd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rqwoliu' }); }); // Mock server tests are disabled From f3b60cf920fcdb2779315eaa49a94b3030b8bbb4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:12:50 +0000 Subject: [PATCH 079/309] 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/messages/settings.ts | 2 +- .../saved-for-later/posts/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 +++--- .../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 | 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 | 8 ++++-- 27 files changed, 113 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c8db812..0848b8f8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be5dbf6f642a36e76591e9ba9964a1c461bfcfd58cb75324ec00001c09742578.yml -openapi_spec_hash: 99d50a3cef2a53a10d8f1505133f2aae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-08ae21057f7088b09eb4630525311d819cfd0eab65c356d46c48929e5c14ee61.yml +openapi_spec_hash: c72ef933e7bf20f7b453c28c441b8da3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d62847e9..05570d4f 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('non'); + * const response = await client.accounts.disconnect('animi'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 276796ec..5a314335 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( - * 'atque', + * 'soluta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index fb726275..aa4e8de9 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( - * 'recusandae', + * '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( - * 'recusandae', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95bf943a..7d1b2d65 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('quis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'autem', + * { + * 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('quis', { + * const comments = await client.posts.comments.list('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 2b04cbb2..41feb4c0 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 e38cbfb5..8d8d530b 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( - * 'dicta', - * ); + * const response = await client.smartLinks.listClicks('esse'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'suscipit', + * 'ut', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('esse'); + * const response = await client.smartLinks.listFans('fugit'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptas', + * 'omnis', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('unde'); + * await client.smartLinks.retrieveCohortArps('temporibus'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'neque', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cb1f02d5..e75e4e97 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( - * 'dignissimos', + * 'deserunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'dignissimos', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('deserunt', { + * 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 b0e412a7..2d89e030 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', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fugit', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 23777c3f..d1bfbf9b 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', + * 'minima', * { 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('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'necessitatibus', + * 'consectetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptas', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 57d49bf4..34eeff61 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: 'rqwoliu' }, + * { name: 'ywcohycsqqneiyrhnnmdmfnhi' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f8c6d986..bd53a20c 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('non'); + const responsePromise = client.accounts.disconnect('animi'); 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 faed53b4..7b4f53e1 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: 'mobile_app', - cookies: 'labore', + auth_id: 'consequatur', + auth_type: 'email_password', + cookies: 'ratione', customProxy: { host: 'proxy.example.com', - password: '&?`4BLPcaV4Uu*', + password: '8:GZ%8"q\\;X6y', port: 8080, - username: 'architecto', + username: 'adipisci', }, - email: 'sim93@example.org', - force_connect: false, - name: 'numquam', - password: '1{LLS+0g(.D@87o^P1W', + email: 'hintz.yvette@example.org', + force_connect: true, + name: 'error', + password: 'EI:hMe#!XT?Eg0>k7D6', proxyCountry: 'uk', - user_agent: 'inventore', - xbc: 'ipsum', + user_agent: 'ea', + 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 d1109a7c..1a37c80b 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('atque', { + const responsePromise = client.engagement.messages.getMessageBuyers('soluta', { 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('atque', { + const response = await client.engagement.messages.getMessageBuyers('soluta', { 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 95d1dbd4..1cb0c754 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('recusandae', { + 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('recusandae', { + 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('recusandae', { + 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('recusandae', { + 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 e769f5c8..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 86baf48c..03ab8700 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('quis', { + 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('quis', { + 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('quis', { 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('quis', { + const response = await client.posts.comments.list('autem', { 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 8e5b0566..fd74b68f 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 3c37c902..9b1c4726 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: ['anslvubulexwzl'] }, + filter: { tags: ['mmcsxjwtxw'] }, 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('dicta'); + const responsePromise = client.smartLinks.listClicks('esse'); 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( - 'dicta', + 'esse', { 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('suscipit'); + 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( - 'suscipit', + '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('esse'); + const responsePromise = client.smartLinks.listFans('fugit'); 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( - 'esse', + 'fugit', { 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('voluptas'); + const responsePromise = client.smartLinks.listSpenders('omnis'); 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( - 'voluptas', + 'omnis', { 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('unde'); + const responsePromise = client.smartLinks.retrieveCohortArps('temporibus'); 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( - 'unde', + 'temporibus', { 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('neque'); + const responsePromise = client.smartLinks.retrieveStats('et'); 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( - 'neque', + '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 bf3d702a..aa1e13fa 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: 'yuhqcqrnobzyqxllsbwvfl', tags: ['sf'] }, + filter: { search: 'prvslxnjxupgutg', tags: ['kdrjhvvovufawtb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'melxhuoynuaglpr', tags: ['witjgdqwbwcxdjc'] }, + filter: { search: 'aaceqehxppmglrhvzvlg', tags: ['qfzmgpz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'iqwtveqzxhscbh', - tags: ['ditvgcfwgvzs'], + search: 'ciycanzqryagobkhjlglsfz', + tags: ['jiphrlecckuowsaevdb'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nixstdoapvnmu', - tags: ['kuphxpobkwub'], + include_smart_links: true, + search: 'cwn', + tags: ['idebpndluqnaehmjuv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 42270a3e..93556107 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('dignissimos', { + const responsePromise = client.stories.highlights.addStory('deserunt', { 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('dignissimos', { + const response = await client.stories.highlights.addStory('deserunt', { 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('dignissimos', { + const responsePromise = client.stories.highlights.removeStory('deserunt', { 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('dignissimos', { + const response = await client.stories.highlights.removeStory('deserunt', { 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 1a6bc20e..bd6b7e0c 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('id', { 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('id', { 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('id', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('id', { 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('aut', { 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('aut', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nam', { 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('fugit', { + const response = await client.trackingLinks.getStats('nam', { 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 4ddc39b4..6ba0059d 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('minima', { 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('minima', { 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('minima', { 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('minima', { 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('necessitatibus', { + const responsePromise = client.trialLinks.listSubscribers('consectetur', { 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('necessitatibus', { + const response = await client.trialLinks.listSubscribers('consectetur', { 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('voluptatem', { - 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('voluptatem', { + 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('non', { 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('voluptas', { + const response = await client.trialLinks.retrieveStats('non', { 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 a2373c36..655fd353 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: 'rqwoliu' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'ywcohycsqqneiyrhnnmdmfnhi', + }); 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: 'rqwoliu' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'ywcohycsqqneiyrhnnmdmfnhi', + }); }); // Mock server tests are disabled From 9aae0b0ce7271c4d0f37d9e42457cbed86552a17 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 18:12:39 +0000 Subject: [PATCH 080/309] 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 | 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 | 26 +++++++++---------- 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 | 8 ++---- 28 files changed, 114 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0848b8f8..d2ce6316 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-08ae21057f7088b09eb4630525311d819cfd0eab65c356d46c48929e5c14ee61.yml -openapi_spec_hash: c72ef933e7bf20f7b453c28c441b8da3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7363f33ed392201f7dad8b501a46128a80b38171819e4869d3708c56bc415853.yml +openapi_spec_hash: 4a36a8515b0ef66a8dc07c2ec533fc2b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 05570d4f..23d9535f 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('animi'); + * const response = await client.accounts.disconnect( + * 'dolorem', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5a314335..7e83f2ad 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( - * 'soluta', - * { 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 aa4e8de9..5a539cd3 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', + * 'sit', * { 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', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d1b2d65..c0302435 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', + * 'occaecati', * { * 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( + * 'occaecati', + * { 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 e20f70d1..a9767818 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 41feb4c0..a84ff073 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 8d8d530b..dfc53752 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('esse'); + * const response = await client.smartLinks.listClicks( + * 'molestiae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'laudantium', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugit'); + * const response = await client.smartLinks.listFans('enim'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'omnis', + * 'necessitatibus', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('temporibus'); + * await client.smartLinks.retrieveCohortArps('veritatis'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'ut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e75e4e97..3e57276a 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( - * 'deserunt', + * '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('deserunt', { + * 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 2d89e030..e402227b 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( - * 'id', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'id', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * await client.trackingLinks.getCohortArps('nobis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'nam', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d1bfbf9b..81cbcf25 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( - * 'minima', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('minima', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'numquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consectetur', + * 'ratione', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'non', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 34eeff61..4c4637ec 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: 'ywcohycsqqneiyrhnnmdmfnhi' }, + * { name: 'ooruwisntktrpzcryua' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index bd53a20c..b229d922 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('animi'); + const responsePromise = client.accounts.disconnect('dolorem'); 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 7b4f53e1..3d915e65 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: 'consequatur', - auth_type: 'email_password', - cookies: 'ratione', + auth_id: 'architecto', + auth_type: 'raw_data', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: '8:GZ%8"q\\;X6y', + password: '<-6x{yk"=', port: 8080, - username: 'adipisci', + username: 'hic', }, - email: 'hintz.yvette@example.org', + email: 'murazik.saul@example.com', force_connect: true, - name: 'error', - password: 'EI:hMe#!XT?Eg0>k7D6', - proxyCountry: 'uk', - user_agent: 'ea', - xbc: 'qui', + name: 'velit', + password: 'q"NQqKX@uJ,#', + proxyCountry: 'us', + user_agent: 'neque', + xbc: 'officiis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 1a37c80b..32dab22b 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('soluta', { + 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('soluta', { + 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 1cb0c754..5c545e30 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('sit', { 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('sit', { 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('sit', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 03ab8700..fb5350c3 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('occaecati', { 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('occaecati', { 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('occaecati', { 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('occaecati', { 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 fd74b68f..4ec8acc7 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 c1510622..02883e18 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 d13ad1ce..6b1dc2fd 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 9b1c4726..d366fd44 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: ['mmcsxjwtxw'] }, + filter: { tags: ['vbphjrbpprduvbzqlkvpoqk'] }, 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('esse'); + const responsePromise = client.smartLinks.listClicks('molestiae'); 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( - 'esse', + 'molestiae', { 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('laudantium'); 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', + 'laudantium', { 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('fugit'); + 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( - 'fugit', + '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('omnis'); + const responsePromise = client.smartLinks.listSpenders('necessitatibus'); 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( - 'omnis', + 'necessitatibus', { 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('temporibus'); + const responsePromise = client.smartLinks.retrieveCohortArps('veritatis'); 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( - 'temporibus', + 'veritatis', { 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('et'); + const responsePromise = client.smartLinks.retrieveStats('ut'); 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( - 'et', + '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 aa1e13fa..51deecb7 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: 'prvslxnjxupgutg', tags: ['kdrjhvvovufawtb'] }, + filter: { search: 'qmnebjydejzngcjedmryzuxbu', tags: ['xrvcbldtkhrokdsomgqcqlg'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'aaceqehxppmglrhvzvlg', tags: ['qfzmgpz'] }, + filter: { search: 'skak', tags: ['zxoituaxm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ciycanzqryagobkhjlglsfz', - tags: ['jiphrlecckuowsaevdb'], + include_smart_links: false, + search: 'vndpgwpsaswfebh', + tags: ['ingorzewwjlg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cwn', - tags: ['idebpndluqnaehmjuv'], + include_smart_links: false, + search: 'terpdleostwsqkhzcu', + tags: ['ahzhvvvpgljmzfe'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 93556107..3b4f631b 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('deserunt', { + 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('deserunt', { + 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('deserunt', { + 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('deserunt', { + 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 bd6b7e0c..dca796b9 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('id', { 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('id', { 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('id', { 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('id', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('nobis', { 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('aut', { + const response = await client.trackingLinks.getCohortArps('nobis', { 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('nam', { 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 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('nam', { + 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 6ba0059d..6404673f 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('minima', { 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('minima', { 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('minima', { 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('minima', { 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('consectetur', { + const responsePromise = client.trialLinks.listSubscribers('ratione', { 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('consectetur', { + const response = await client.trialLinks.listSubscribers('ratione', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('eum', { 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('ut', { + const response = await client.trialLinks.retrieveCohortArps('eum', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('numquam', { 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('non', { + const response = await client.trialLinks.retrieveStats('numquam', { 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 655fd353..fb4ddf37 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: 'ywcohycsqqneiyrhnnmdmfnhi', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ooruwisntktrpzcryua' }); 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: 'ywcohycsqqneiyrhnnmdmfnhi', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ooruwisntktrpzcryua' }); }); // Mock server tests are disabled From dc7480e8cef2e141df3f6bbc1aae1d3da10d7b8c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 07:12:35 +0000 Subject: [PATCH 081/309] 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/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 ++++++++-------- .../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 | 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 +-- 25 files changed, 106 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index d2ce6316..403d37a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7363f33ed392201f7dad8b501a46128a80b38171819e4869d3708c56bc415853.yml -openapi_spec_hash: 4a36a8515b0ef66a8dc07c2ec533fc2b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d6afd749f452a52233927ab89d781ac615a8adec4e13565e94a65a7d4305b7e0.yml +openapi_spec_hash: ae2972b7464c440e830a1cb1f39839ab config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 23d9535f..c9346c8f 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( - * 'dolorem', - * ); + * 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 7e83f2ad..88c84c46 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('et', { + * await client.engagement.messages.getMessageBuyers('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5a539cd3..f2f1837f 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( - * 'sit', + * 'rerum', * { 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( - * 'sit', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c0302435..ad8402d9 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( - * 'occaecati', + * 'totam', * { * 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( - * 'occaecati', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('totam', { + * 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 a84ff073..2b04cbb2 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 dfc53752..422844c1 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( - * 'molestiae', - * ); + * const response = await client.smartLinks.listClicks('quis'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'laudantium', + * 'recusandae', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('enim'); + * const response = await client.smartLinks.listFans('iste'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'necessitatibus', + * 'cumque', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('veritatis'); + * await client.smartLinks.retrieveCohortArps('beatae'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ut', + * 'occaecati', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e57276a..8782f52d 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', + * '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('est', { + * 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 e402227b..3c6a2bba 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', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quod', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nobis', { + * await client.trackingLinks.getCohortArps('consequatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'velit', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 81cbcf25..70cd3b28 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( - * 'numquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'numquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ratione', + * 'dolores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eum', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'numquam', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4c4637ec..afeadd33 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: 'ooruwisntktrpzcryua' }, + * { name: 'bn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b229d922..7f7f9364 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('dolorem'); + 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 3d915e65..f542e657 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: 'architecto', - auth_type: 'raw_data', - cookies: 'est', + auth_id: 'rerum', + auth_type: 'email_password', + cookies: 'aperiam', customProxy: { host: 'proxy.example.com', - password: '<-6x{yk"=', + password: 'DQ7ej)A@n\\^G2.?01', port: 8080, - username: 'hic', + username: 'esse', }, - email: 'murazik.saul@example.com', + email: 'gus.gulgowski@example.org', force_connect: true, - name: 'velit', - password: 'q"NQqKX@uJ,#', - proxyCountry: 'us', - user_agent: 'neque', - xbc: 'officiis', + name: 'et', + password: '[qq*jWLi3/gE', + proxyCountry: 'uk', + user_agent: 'pariatur', + xbc: 'possimus', }, { 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 32dab22b..54e6569b 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('ab', { 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('ab', { 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 5c545e30..89b269df 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('sit', { + const responsePromise = client.media.vault.lists.media.add('rerum', { 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('sit', { + const response = await client.media.vault.lists.media.add('rerum', { 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('sit', { + const responsePromise = client.media.vault.lists.media.remove('rerum', { 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('sit', { + const response = await client.media.vault.lists.media.remove('rerum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..7b042946 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 fb5350c3..9041ba03 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('occaecati', { + const responsePromise = client.posts.comments.create('totam', { 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('occaecati', { + const response = await client.posts.comments.create('totam', { 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('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('totam', { 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('occaecati', { + const response = await client.posts.comments.list('totam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..96d399de 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 d366fd44..37bbfbcb 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: ['vbphjrbpprduvbzqlkvpoqk'] }, + filter: { tags: ['extyhezgnhfkdglchnuxxdnz'] }, 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('molestiae'); + const responsePromise = client.smartLinks.listClicks('quis'); 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( - 'molestiae', + 'quis', { 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('laudantium'); + const responsePromise = client.smartLinks.listConversions('recusandae'); 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( - 'laudantium', + 'recusandae', { 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('iste'); 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', + 'iste', { 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('necessitatibus'); + const responsePromise = client.smartLinks.listSpenders('cumque'); 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( - 'necessitatibus', + 'cumque', { 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('veritatis'); + const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); 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( - 'veritatis', + 'beatae', { 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('ut'); + const responsePromise = client.smartLinks.retrieveStats('occaecati'); 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( - 'ut', + 'occaecati', { 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 51deecb7..176a80af 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: 'qmnebjydejzngcjedmryzuxbu', tags: ['xrvcbldtkhrokdsomgqcqlg'] }, + filter: { search: 'hznvijgbmuxrnzgxqpmhs', tags: ['ezaawi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'skak', tags: ['zxoituaxm'] }, + filter: { search: 'dolvvsyrnjyls', tags: ['qzfnziiuaauxrkftazzvjggl'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'vndpgwpsaswfebh', - tags: ['ingorzewwjlg'], + search: 'ztspwupmwabnfhewrtqnlj', + tags: ['qvwjqqotdpezmaeqnxq'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'terpdleostwsqkhzcu', - tags: ['ahzhvvvpgljmzfe'], + search: 'rdowohpxoqpaap', + tags: ['c'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b4f631b..74026888 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('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('est', { + 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('est', { + 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('est', { + 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 dca796b9..59afb569 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('architecto', { 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('architecto', { 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('architecto', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('architecto', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('consequatur', { + 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('nobis', { + const response = await client.trackingLinks.getCohortArps('consequatur', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('natus', { 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('velit', { + const response = await client.trackingLinks.getStats('natus', { 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 6404673f..14f817ed 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('eos', { 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('eos', { 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('eos', { 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('eos', { 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('ratione', { + const responsePromise = client.trialLinks.listSubscribers('dolores', { 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('ratione', { + const response = await client.trialLinks.listSubscribers('dolores', { 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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { + 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('eum', { + const response = await client.trialLinks.retrieveCohortArps('rerum', { 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('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('beatae', { 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('numquam', { + const response = await client.trialLinks.retrieveStats('beatae', { 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 fb4ddf37..06be7832 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: 'ooruwisntktrpzcryua' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bn' }); 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: 'ooruwisntktrpzcryua' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bn' }); }); // Mock server tests are disabled From 37abea676a67e8b07ecdee2ae967bbbc57e328ec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 11:12:31 +0000 Subject: [PATCH 082/309] 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 ++++--- 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 | 20 +++++++------- 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/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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 22 files changed, 104 insertions(+), 99 deletions(-) diff --git a/.stats.yml b/.stats.yml index 403d37a0..85f0a6fb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d6afd749f452a52233927ab89d781ac615a8adec4e13565e94a65a7d4305b7e0.yml -openapi_spec_hash: ae2972b7464c440e830a1cb1f39839ab +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ce4416717af0f5aea53b5c3b89ed160d6e40f1bf0cccb02364cf16bdcd4bdda.yml +openapi_spec_hash: 2c6c59f5e9d634035d9baf192c2fd4aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8f..3803959b 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( + * 'exercitationem', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 88c84c46..02db5a67 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('ab', { + * await client.engagement.messages.getMessageBuyers('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f2f1837f..a90c1627 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( - * 'rerum', + * '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( - * 'rerum', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ad8402d9..c0302435 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( - * 'totam', + * 'occaecati', * { * 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('totam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'occaecati', + * { 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 422844c1..cf142326 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('quis'); + * 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( - * 'recusandae', + * 'sunt', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('iste'); + * const response = await client.smartLinks.listFans('amet'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'cumque', + * 'beatae', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('beatae'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'occaecati', + * 'perferendis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 8782f52d..a9c614a7 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', + * '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('minima', { + * 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 3c6a2bba..59549078 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( - * 'architecto', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'architecto', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('consequatur', { + * await client.trackingLinks.getCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'natus', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 70cd3b28..8137614d 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('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'adipisci', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'adipisci', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolores', + * 'quibusdam', * { * 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('delectus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'beatae', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index afeadd33..86db7383 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: 'bn' }, + * { name: 'vqzlsxpnbuonreuu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f9364..953f1f68 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('exercitationem'); 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 f542e657..cf790682 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: 'rerum', - auth_type: 'email_password', - cookies: 'aperiam', + auth_id: 'cumque', + auth_type: 'raw_data', + cookies: 'occaecati', customProxy: { host: 'proxy.example.com', - password: 'DQ7ej)A@n\\^G2.?01', + password: "aQ'z2m|AA?U]qb:MK", port: 8080, - username: 'esse', + username: 'eligendi', }, - email: 'gus.gulgowski@example.org', + email: 'barrows.joannie@example.org', force_connect: true, - name: 'et', - password: '[qq*jWLi3/gE', + name: 'ducimus', + password: 'vs"GwjUvG_t', proxyCountry: 'uk', - user_agent: 'pariatur', - xbc: 'possimus', + user_agent: 'earum', + xbc: 'laborum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 54e6569b..1856b815 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('ab', { + 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('ab', { + 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 89b269df..9271adb3 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('rerum', { + 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('rerum', { + 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('rerum', { + 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('rerum', { + const response = await client.media.vault.lists.media.remove('quisquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9041ba03..fb5350c3 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('totam', { + const responsePromise = client.posts.comments.create('occaecati', { 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('totam', { + const response = await client.posts.comments.create('occaecati', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('occaecati', { 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('totam', { + const response = await client.posts.comments.list('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 37bbfbcb..a7eac2a0 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: ['extyhezgnhfkdglchnuxxdnz'] }, + filter: { tags: ['xlhevpkgewecbyhlhnvk'] }, 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('quis'); + 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( - 'quis', + '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('recusandae'); + const responsePromise = client.smartLinks.listConversions('sunt'); 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( - 'recusandae', + 'sunt', { 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('iste'); + const responsePromise = client.smartLinks.listFans('amet'); 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( - 'iste', + 'amet', { 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('cumque'); + const responsePromise = client.smartLinks.listSpenders('beatae'); 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( - 'cumque', + 'beatae', { 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('beatae'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); 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( - 'beatae', + 'voluptatem', { 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('occaecati'); + const responsePromise = client.smartLinks.retrieveStats('perferendis'); 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( - 'occaecati', + '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 176a80af..9e79aae0 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: 'hznvijgbmuxrnzgxqpmhs', tags: ['ezaawi'] }, + filter: { search: 'fldvrmbkkzplsj', tags: ['dmbaxzpwfxiaevtn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dolvvsyrnjyls', tags: ['qzfnziiuaauxrkftazzvjggl'] }, + filter: { search: 'uiqyxxemxbxlzpmargdr', tags: ['xplosnbaaulxpcn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ztspwupmwabnfhewrtqnlj', - tags: ['qvwjqqotdpezmaeqnxq'], + search: 'rjboxitatlttrgumgayt', + tags: ['octossofmns'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rdowohpxoqpaap', - tags: ['c'], + search: 'wxiln', + tags: ['zftreakawczhrimdydzwdauc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 74026888..fca45b0b 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('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('minima', { + 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('minima', { + 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('minima', { + 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 59afb569..b6727e52 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('architecto', { 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('architecto', { 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('architecto', { 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,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('architecto', { 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('consequatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('velit', { 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('consequatur', { + const response = await client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptatibus', { + 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('natus', { + const response = await client.trackingLinks.getStats('voluptatibus', { 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 14f817ed..6e657708 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('eos', { 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('eos', { 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('eos', { 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('eos', { 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('dolores', { + const responsePromise = client.trialLinks.listSubscribers('quibusdam', { 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('dolores', { + const response = await client.trialLinks.listSubscribers('quibusdam', { 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('delectus', { 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('delectus', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('magni', { 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('beatae', { + const response = await client.trialLinks.retrieveStats('magni', { 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 06be7832..604eec7c 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: 'bn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vqzlsxpnbuonreuu' }); 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: 'bn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vqzlsxpnbuonreuu' }); }); // Mock server tests are disabled From c85defafcf6fcb645823f6af12b1df6dc3231f51 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 17:12:39 +0000 Subject: [PATCH 083/309] 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 | 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 | 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 +- .../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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 112 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index 85f0a6fb..738aa2ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ce4416717af0f5aea53b5c3b89ed160d6e40f1bf0cccb02364cf16bdcd4bdda.yml -openapi_spec_hash: 2c6c59f5e9d634035d9baf192c2fd4aa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-51bc9675aa42197aebfbc3ba8919f85769c0817f2ed08178663d7b803da91eeb.yml +openapi_spec_hash: 1fd8bd900e5a78f17531b363d466691f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3803959b..af08fbef 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( - * 'exercitationem', - * ); + * const response = await client.accounts.disconnect('velit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 02db5a67..ce0d8c0c 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( + * 'neque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a90c1627..e1bcfb5c 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', + * 'non', * { 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', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c0302435..33a40fdf 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( - * 'occaecati', - * { - * 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( - * 'occaecati', - * { 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/smart-links.ts b/src/resources/smart-links.ts index cf142326..b0b42f1b 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('est'); + * 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( - * 'sunt', + * 'cupiditate', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('amet'); + * const response = await client.smartLinks.listFans( + * 'temporibus', + * ); * ``` */ listFans( @@ -127,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'beatae', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('facere'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'perferendis', + * 'iusto', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..56d6fde3 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', + * 'beatae', * { * 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('beatae', { * 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 59549078..302972fc 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', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'molestiae', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('velit', { + * await client.trackingLinks.getCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatibus', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8137614d..8766b7f9 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('ea', { + * 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('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quibusdam', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('delectus', { + * await client.trialLinks.retrieveCohortArps('incidunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'magni', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 86db7383..beac7d0d 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: 'vqzlsxpnbuonreuu' }, + * { name: 'bwnnfoano' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 953f1f68..c1971d62 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('exercitationem'); + const responsePromise = client.accounts.disconnect('velit'); 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 cf790682..f35fedba 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: 'raw_data', - cookies: 'occaecati', + auth_id: 'rem', + auth_type: 'mobile_app', + cookies: 'consequuntur', customProxy: { host: 'proxy.example.com', - password: "aQ'z2m|AA?U]qb:MK", + password: 'T\\a:pzo=Hjq_yb= { 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 1856b815..956a8a32 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('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('est', { + 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 9271adb3..109a9c1f 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('non', { 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('non', { 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('non', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index fb5350c3..e56adcd7 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('occaecati', { + 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('occaecati', { + 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('occaecati', { 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('occaecati', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 a7eac2a0..1e08fc7e 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: ['xlhevpkgewecbyhlhnvk'] }, + filter: { tags: ['zkdpbvszhsakqgbgdjduloq'] }, 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('dolor'); 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', + 'dolor', { 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('sunt'); + const responsePromise = client.smartLinks.listConversions('cupiditate'); 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( - 'sunt', + 'cupiditate', { 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('amet'); + const responsePromise = client.smartLinks.listFans('temporibus'); 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( - 'amet', + 'temporibus', { 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('beatae'); + const responsePromise = client.smartLinks.listSpenders('et'); 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( - 'beatae', + 'et', { 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('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('facere'); 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( - 'voluptatem', + 'facere', { 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('perferendis'); + const responsePromise = client.smartLinks.retrieveStats('iusto'); 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( - 'perferendis', + 'iusto', { 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 9e79aae0..82d7363d 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: 'fldvrmbkkzplsj', tags: ['dmbaxzpwfxiaevtn'] }, + filter: { search: 'npy', tags: ['kxldxg'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uiqyxxemxbxlzpmargdr', tags: ['xplosnbaaulxpcn'] }, + filter: { search: 'qnnukenyrqvpgxjydunhp', tags: ['nudalntdlmlwbzzrh'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rjboxitatlttrgumgayt', - tags: ['octossofmns'], + search: 'j', + tags: ['ywltdjacsh'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wxiln', - tags: ['zftreakawczhrimdydzwdauc'], + include_smart_links: true, + search: 'yhhlmhlxxbohfkteywj', + tags: ['tdckwgghfknodzcgxylftz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..8fbdecb6 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('beatae', { 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('beatae', { 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('beatae', { 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('beatae', { 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 b6727e52..857efa0a 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('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('molestiae', { 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('molestiae', { 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('molestiae', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('dolore', { 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('velit', { + const response = await client.trackingLinks.getCohortArps('dolore', { 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('voluptatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getStats('voluptatem', { 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('voluptatibus', { + const response = await client.trackingLinks.getStats('voluptatem', { 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 6e657708..a914da35 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('ea', { 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('ea', { 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('ea', { 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('ea', { 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('quibusdam', { + 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('quibusdam', { + const response = await client.trialLinks.listSubscribers('id', { 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('delectus', { + const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { 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('delectus', { + const response = await client.trialLinks.retrieveCohortArps('incidunt', { 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('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('magnam', { 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('magni', { + const response = await client.trialLinks.retrieveStats('magnam', { 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 604eec7c..74a63433 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: 'vqzlsxpnbuonreuu' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bwnnfoano' }); 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: 'vqzlsxpnbuonreuu' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bwnnfoano' }); }); // Mock server tests are disabled From 203522d703c42cdb8c03e1e2e134b1fb0b36790e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:12:39 +0000 Subject: [PATCH 084/309] 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 +-- src/resources/release-forms.ts | 7 ++--- .../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 | 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 | 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 26 files changed, 110 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 738aa2ee..b368ad3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-51bc9675aa42197aebfbc3ba8919f85769c0817f2ed08178663d7b803da91eeb.yml -openapi_spec_hash: 1fd8bd900e5a78f17531b363d466691f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3726266cd2833aa149edb440069058b093b32d3fe1079822f62e677e026bdf21.yml +openapi_spec_hash: 8a32adf2deae6904b098951bebdaf2d2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index af08fbef..0d924e6e 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('velit'); + * const response = await client.accounts.disconnect('iure'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index ce0d8c0c..5a8eca54 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', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e1bcfb5c..aa4e8de9 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( - * 'non', + * '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( - * 'non', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..4993e5f8 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('aut', { + * const comment = await client.posts.comments.create('id', { * 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('aut', { + * const comments = await client.posts.comments.list('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/release-forms.ts b/src/resources/release-forms.ts index 13463acf..ca0b3863 100644 --- a/src/resources/release-forms.ts +++ b/src/resources/release-forms.ts @@ -55,7 +55,8 @@ export class ReleaseForms extends APIResource { /** * Get a paginated list of users that can be tagged in release forms. These are * verified creators who have signed release forms to appear in your content. Use - * `offset` and `limit` for pagination. + * `offset` and `limit` for pagination, following `_pagination.next_page` until it + * is `null`. * * @example * ```ts @@ -331,11 +332,11 @@ export namespace ReleaseFormListTaggableUsersResponse { export interface _Pagination { next_page?: string; + + notice?: string; } export interface Data { - hasMore?: boolean; - items?: Array; } diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..a84ff073 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 b0b42f1b..d815c690 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', + * 'nulla', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'cupiditate', + * 'accusantium', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'temporibus', - * ); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -131,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'sunt', + * ); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('facere'); + * await client.smartLinks.retrieveCohortArps('beatae'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'iusto', + * 'perferendis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56d6fde3..ad3cdb60 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( - * 'beatae', + * 'veniam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('beatae', { + * await client.stories.highlights.removeStory('veniam', { * 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 302972fc..03b411e4 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', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'enim', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolore', { + * await client.trackingLinks.getCohortArps('numquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatem', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8766b7f9..3bf5ddf9 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('ea', { + * const trialLink = await client.trialLinks.retrieve('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ea', { + * const trialLink = await client.trialLinks.delete('quod', { * 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('incidunt', { + * await client.trialLinks.retrieveCohortArps('corrupti', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'magnam', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index beac7d0d..11ae7b9f 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: 'bwnnfoano' }, + * { name: 'aiwxqnucmhyncsfwlyrniw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1971d62..3f5a0db6 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('velit'); + const responsePromise = client.accounts.disconnect('iure'); 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 f35fedba..4e3dd432 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: 'rem', - auth_type: 'mobile_app', - cookies: 'consequuntur', + auth_id: 'ex', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'T\\a:pzo=Hjq_yb= { // 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('dolores', { 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('dolores', { 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 109a9c1f..1cb0c754 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('non', { + 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('non', { + 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('non', { + 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('non', { + 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 25333899..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..a5a6ca4a 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('id', { 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('id', { 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('id', { 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('id', { 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 1e08fc7e..22b24a1b 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: ['zkdpbvszhsakqgbgdjduloq'] }, + filter: { tags: ['crwxz'] }, 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('nulla'); 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', + 'nulla', { 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('cupiditate'); + const responsePromise = client.smartLinks.listConversions('accusantium'); 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( - 'cupiditate', + 'accusantium', { 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('temporibus'); + const responsePromise = client.smartLinks.listFans('quia'); 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( - 'temporibus', + 'quia', { 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('et'); + 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( - 'et', + '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('facere'); + const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); 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( - 'facere', + 'beatae', { 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('iusto'); + const responsePromise = client.smartLinks.retrieveStats('perferendis'); 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( - 'iusto', + '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 82d7363d..02c6ea15 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: 'npy', tags: ['kxldxg'] }, + filter: { search: 'xz', tags: ['ylssxtxb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qnnukenyrqvpgxjydunhp', tags: ['nudalntdlmlwbzzrh'] }, + filter: { search: 'dttvclazycncu', tags: ['bwarhlzjdvvidzjlpvottsp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'j', - tags: ['ywltdjacsh'], + include_smart_links: true, + search: 'nndgjukxx', + tags: ['wvbwokxkmmfayoiewdsmmcrk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yhhlmhlxxbohfkteywj', - tags: ['tdckwgghfknodzcgxylftz'], + include_smart_links: false, + search: 'ybyywadvabwuwyfk', + tags: ['gznfyikpdaifdulvyb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 8fbdecb6..aa7ae307 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('beatae', { + const responsePromise = client.stories.highlights.addStory('veniam', { 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('beatae', { + const response = await client.stories.highlights.addStory('veniam', { 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('beatae', { + const responsePromise = client.stories.highlights.removeStory('veniam', { 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('beatae', { + const response = await client.stories.highlights.removeStory('veniam', { 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 857efa0a..9c0ef5d0 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('est', { 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('est', { 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('est', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('numquam', { + 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('dolore', { + const response = await client.trackingLinks.getCohortArps('numquam', { 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('debitis', { 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('debitis', { 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 a914da35..ea44a411 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quod', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quod', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quod', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quod', { 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,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('corrupti', { 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('incidunt', { + const response = await client.trialLinks.retrieveCohortArps('corrupti', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('illo', { 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('magnam', { + const response = await client.trialLinks.retrieveStats('illo', { 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 74a63433..e0af4e31 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: 'bwnnfoano' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'aiwxqnucmhyncsfwlyrniw', + }); 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: 'bwnnfoano' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'aiwxqnucmhyncsfwlyrniw', + }); }); // Mock server tests are disabled From 9897ca1b62bc83e7275c43f960682253265cfd21 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 19:12:34 +0000 Subject: [PATCH 085/309] 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/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 | 10 +++---- 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 +-- .../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 | 8 ++---- 28 files changed, 107 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index b368ad3e..0ed327de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3726266cd2833aa149edb440069058b093b32d3fe1079822f62e677e026bdf21.yml -openapi_spec_hash: 8a32adf2deae6904b098951bebdaf2d2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3350133f4eada468b1ba45afef946e33624d744e42781c8aa329a6aa9c89c37.yml +openapi_spec_hash: 1e7d909509c28b609766c155c653b196 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0d924e6e..fea649df 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('iure'); + * 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 5a8eca54..90167a87 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( - * 'dolores', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4e8de9..b4f8cba9 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', + * 'vel', * { 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', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 4993e5f8..04d9a909 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('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'magni', + * { + * 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('id', { + * const comments = await client.posts.comments.list('magni', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d815c690..b6a7f991 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( - * 'nulla', - * ); + * 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( - * 'accusantium', + * 'labore', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * 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( - * 'sunt', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('beatae'); + * await client.smartLinks.retrieveCohortArps('ducimus'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'perferendis', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ad3cdb60..aba6e59b 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( - * 'veniam', + * 'labore', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('veniam', { + * await client.stories.highlights.removeStory('labore', { * 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 03b411e4..c88461db 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( - * 'est', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'est', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('numquam', { + * await client.trackingLinks.getCohortArps('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'debitis', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3bf5ddf9..0c84fd9c 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('quod', { + * const trialLink = await client.trialLinks.retrieve('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quod', { + * const trialLink = await client.trialLinks.delete('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'distinctio', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('corrupti', { + * await client.trialLinks.retrieveCohortArps('officia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'illo', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 11ae7b9f..73a8e9fc 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: 'aiwxqnucmhyncsfwlyrniw' }, + * { name: 'dxix' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3f5a0db6..11e9246d 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('iure'); + 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 4e3dd432..f4048e1c 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: 'ex', - auth_type: 'email_password', + auth_id: 'odit', + auth_type: 'mobile_app', cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '8JF*ge', + password: 'tgX;Y"Pred*_q]/qi', port: 8080, - username: 'voluptatem', + username: 'perspiciatis', }, - email: 'qkonopelski@example.org', + email: 'uabbott@example.org', force_connect: true, - name: 'qui', - password: 'F,ulMz', + name: 'non', + password: 'tNArgnzTcx', proxyCountry: 'uk', - user_agent: 'earum', - xbc: 'perspiciatis', + user_agent: 'nihil', + xbc: 'quis', }, { 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 50105978..e5d04d9a 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('dolores', { + const responsePromise = client.engagement.messages.getMessageBuyers('velit', { 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('dolores', { + const response = await client.engagement.messages.getMessageBuyers('velit', { 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 1cb0c754..b27b7737 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('vel', { 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('vel', { 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..7b042946 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 a5a6ca4a..6a33cdac 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('id', { + const responsePromise = client.posts.comments.create('magni', { 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('id', { + const response = await client.posts.comments.create('magni', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('magni', { 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('id', { + const response = await client.posts.comments.list('magni', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 22b24a1b..8aa0b070 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: ['crwxz'] }, + filter: { tags: ['oouompjgciimyndwjomf'] }, 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('nulla'); + const responsePromise = client.smartLinks.listClicks('eos'); 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( - 'nulla', + 'eos', { 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('accusantium'); + 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( - 'accusantium', + '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('quia'); + 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( - 'quia', + '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('sunt'); + const responsePromise = client.smartLinks.listSpenders('et'); 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', + 'et', { 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('beatae'); + const responsePromise = client.smartLinks.retrieveCohortArps('ducimus'); 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( - 'beatae', + 'ducimus', { 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('perferendis'); + const responsePromise = client.smartLinks.retrieveStats('est'); 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( - 'perferendis', + '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 02c6ea15..e2a1003f 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: 'xz', tags: ['ylssxtxb'] }, + filter: { search: 'izjpgs', tags: ['vbcpk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dttvclazycncu', tags: ['bwarhlzjdvvidzjlpvottsp'] }, + filter: { search: 'hxytqpdzrsbwtlcx', tags: ['hmzotabokawhybk'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'nndgjukxx', - tags: ['wvbwokxkmmfayoiewdsmmcrk'], + search: 'bjhihtyepjzoqrogrvbmmxds', + tags: ['jbudxwiwschzwr'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ybyywadvabwuwyfk', - tags: ['gznfyikpdaifdulvyb'], + include_smart_links: true, + search: 'ydoisoanfctdvooitpzyu', + tags: ['dzxemo'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index aa7ae307..bcb1651f 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('veniam', { + const responsePromise = client.stories.highlights.addStory('labore', { 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('veniam', { + const response = await client.stories.highlights.addStory('labore', { 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('veniam', { + const responsePromise = client.stories.highlights.removeStory('labore', { 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('veniam', { + const response = await client.stories.highlights.removeStory('labore', { 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 9c0ef5d0..fad91702 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('est', { 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('est', { 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('est', { 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,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('est', { 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('numquam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('sunt', { 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('numquam', { + const response = await client.trackingLinks.getCohortArps('sunt', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('totam', { 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('debitis', { + const response = await client.trackingLinks.getStats('totam', { 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 ea44a411..dbdfe62b 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('nisi', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('nisi', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('nisi', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('nisi', { 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('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('distinctio', { + 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('corrupti', { + const responsePromise = client.trialLinks.retrieveCohortArps('officia', { 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('corrupti', { + const response = await client.trialLinks.retrieveCohortArps('officia', { 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('perspiciatis', { + 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('illo', { + const response = await client.trialLinks.retrieveStats('perspiciatis', { 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 e0af4e31..500d82f8 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: 'aiwxqnucmhyncsfwlyrniw', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxix' }); 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: 'aiwxqnucmhyncsfwlyrniw', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxix' }); }); // Mock server tests are disabled From 880fdc106d2ffecd7d9167d24279707fbe4b141e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 20:12:28 +0000 Subject: [PATCH 086/309] 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 | 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 +++++++++---------- .../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 | 22 +++++++++---------- 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, 117 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0ed327de..b1ad7e65 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b3350133f4eada468b1ba45afef946e33624d744e42781c8aa329a6aa9c89c37.yml -openapi_spec_hash: 1e7d909509c28b609766c155c653b196 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fb9f5c8a5e2431761a5c8768ce2f865fd544b659a7c864b31e309ff530a9243.yml +openapi_spec_hash: 4043672fd06ed68e2b38f06ecddbfcc4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fea649df..ed42f8da 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( + * 'impedit', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 90167a87..c626d243 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( - * 'velit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b4f8cba9..febcb2b4 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( - * 'vel', + * '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( - * 'vel', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 04d9a909..33a94ac9 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( - * 'magni', + * 'aspernatur', * { * 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('magni', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'aspernatur', + * { 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 e20f70d1..599a9525 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 41feb4c0..c9a094cf 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 b6a7f991..9625625a 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( + * 'illum', + * ); * ``` */ listClicks( @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans( + * 'dignissimos', + * ); * ``` */ listFans( @@ -127,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'consequuntur', + * ); * ``` */ listSpenders( @@ -143,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ducimus'); + * await client.smartLinks.retrieveCohortArps('reiciendis'); * ``` */ retrieveCohortArps( @@ -165,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'maxime', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index aba6e59b..ec71f593 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( - * 'labore', + * 'delectus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('labore', { + * await client.stories.highlights.removeStory('delectus', { * 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 c88461db..bf765714 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', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eius', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sunt', { + * await client.trackingLinks.getCohortArps('accusamus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'totam', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0c84fd9c..3858bdfc 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('nisi', { - * 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('nisi', { - * 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( - * 'et', + * 'animi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('officia', { + * await client.trialLinks.retrieveCohortArps('ratione', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'perspiciatis', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 73a8e9fc..e493f3d6 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: 'dxix' }, + * { name: 'oplcluzjqwohoykefoxj' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 11e9246d..4f7b1602 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('impedit'); 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 f4048e1c..e7e39e64 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: 'odit', - auth_type: 'mobile_app', - cookies: 'et', + auth_id: 'ipsa', + auth_type: 'email_password', + cookies: 'ullam', customProxy: { host: 'proxy.example.com', - password: 'tgX;Y"Pred*_q]/qi', + password: "0yM?Z_$?'2Oo=z", port: 8080, - username: 'perspiciatis', + username: 'repudiandae', }, - email: 'uabbott@example.org', - force_connect: true, - name: 'non', - password: 'tNArgnzTcx', + email: 'adrian38@example.com', + force_connect: false, + name: 'accusamus', + password: 'V-a>G|_OB7^:.x\\F`0T`', proxyCountry: 'uk', - user_agent: 'nihil', - xbc: 'quis', + user_agent: 'ad', + xbc: 'possimus', }, { 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 e5d04d9a..8fed0617 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('velit', { + const responsePromise = client.engagement.messages.getMessageBuyers('ea', { 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('velit', { + const response = await client.engagement.messages.getMessageBuyers('ea', { 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 b27b7737..2e9728e9 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('vel', { + 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('vel', { + 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('vel', { + 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('vel', { + 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 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 6a33cdac..b5e2ece3 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('magni', { + 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('magni', { + 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('magni', { 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('magni', { + const response = await client.posts.comments.list('aspernatur', { 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 fd74b68f..8e5b0566 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 8aa0b070..ceff1e39 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: ['oouompjgciimyndwjomf'] }, + filter: { tags: ['jlpcrcqpfixup'] }, 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('eos'); + const responsePromise = client.smartLinks.listClicks('illum'); 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( - 'eos', + 'illum', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -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('dignissimos'); 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', + 'dignissimos', { 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('et'); + const responsePromise = client.smartLinks.listSpenders('consequuntur'); 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( - 'et', + 'consequuntur', { 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('ducimus'); + const responsePromise = client.smartLinks.retrieveCohortArps('reiciendis'); 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( - 'ducimus', + 'reiciendis', { 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('est'); + const responsePromise = client.smartLinks.retrieveStats('maxime'); 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( - 'est', + 'maxime', { 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 e2a1003f..bfb19f53 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: 'izjpgs', tags: ['vbcpk'] }, + filter: { search: 'qofofhzuelrfavqzyktaid', tags: ['qzobkrdxytumxlpphb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hxytqpdzrsbwtlcx', tags: ['hmzotabokawhybk'] }, + filter: { search: 'tqkshps', tags: ['ckdnizf'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bjhihtyepjzoqrogrvbmmxds', - tags: ['jbudxwiwschzwr'], + search: 'wnhbowiqqlpaufbxntbzdfza', + tags: ['dbfovkvzwzsrnvinh'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ydoisoanfctdvooitpzyu', - tags: ['dzxemo'], + search: 'tssyfabwavwbbzjgjmahx', + tags: ['lxxg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bcb1651f..7513a5c1 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('labore', { + const responsePromise = client.stories.highlights.addStory('delectus', { 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('labore', { + const response = await client.stories.highlights.addStory('delectus', { 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('labore', { + const responsePromise = client.stories.highlights.removeStory('delectus', { 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('labore', { + const response = await client.stories.highlights.removeStory('delectus', { 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 fad91702..02a3bf03 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('libero', { 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('libero', { 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('libero', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('accusamus', { + 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('sunt', { + const response = await client.trackingLinks.getCohortArps('accusamus', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { 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('totam', { + const response = await client.trackingLinks.getStats('est', { 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 dbdfe62b..65fc4215 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('nisi', { 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('nisi', { 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('nisi', { 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('nisi', { 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('et', { + const responsePromise = client.trialLinks.listSubscribers('animi', { 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('animi', { 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('officia', { + const responsePromise = client.trialLinks.retrieveCohortArps('ratione', { 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('officia', { + const response = await client.trialLinks.retrieveCohortArps('ratione', { 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('perspiciatis', { - 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; @@ -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('perspiciatis', { + 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 500d82f8..4f4b7310 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: 'dxix' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oplcluzjqwohoykefoxj' }); 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: 'dxix' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oplcluzjqwohoykefoxj' }); }); // Mock server tests are disabled From bf50100ec625d9b035aa16871e9281b13cc2e037 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 00:12:35 +0000 Subject: [PATCH 087/309] 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 | 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 +-- 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 | 4 +-- 24 files changed, 105 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index b1ad7e65..e0fd5d35 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fb9f5c8a5e2431761a5c8768ce2f865fd544b659a7c864b31e309ff530a9243.yml -openapi_spec_hash: 4043672fd06ed68e2b38f06ecddbfcc4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7eeb3f3a16ed67c42c1dd6c6cf49e4e8b9b73ecf119c9b639220f60e68f5bc2e.yml +openapi_spec_hash: d249c309a792407bd531a85061e1f1cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ed42f8da..6bfc0cef 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( - * 'impedit', - * ); + * const response = await client.accounts.disconnect('quae'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c626d243..deb97ccb 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'cumque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b4..66286110 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', + * 'voluptatem', * { 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', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a94ac9..9ddb3928 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( - * 'aspernatur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('odio', { + * 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( - * 'aspernatur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('odio', { + * 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 c9a094cf..a84ff073 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 9625625a..a3a006dd 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', + * 'occaecati', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'labore', + * 'inventore', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'dignissimos', - * ); + * const response = await client.smartLinks.listFans('eaque'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'consequuntur', + * 'voluptas', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('reiciendis'); + * await client.smartLinks.retrieveCohortArps('corporis'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'maxime', + * 'voluptas', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ec71f593..3e57276a 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( - * 'delectus', + * '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('delectus', { + * 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 bf765714..da521fa3 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( - * 'libero', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'libero', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('accusamus', { + * 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( - * 'est', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3858bdfc..9edca458 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( - * 'quisquam', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'quisquam', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'animi', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ratione', { + * await client.trialLinks.retrieveCohortArps('veritatis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e493f3d6..3587d18f 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: 'oplcluzjqwohoykefoxj' }, + * { name: 'wxvjmgfa' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 4f7b1602..65342ac8 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('impedit'); + const responsePromise = client.accounts.disconnect('quae'); 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 e7e39e64..2d6da211 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: 'email_password', - cookies: 'ullam', + auth_id: 'culpa', + auth_type: 'raw_data', + cookies: 'assumenda', customProxy: { host: 'proxy.example.com', - password: "0yM?Z_$?'2Oo=z", + password: 'DDbNX:-bmdRQ_L6gU', port: 8080, - username: 'repudiandae', + username: 'et', }, - email: 'adrian38@example.com', - force_connect: false, - name: 'accusamus', - password: 'V-a>G|_OB7^:.x\\F`0T`', - proxyCountry: 'uk', - user_agent: 'ad', - xbc: 'possimus', + email: 'lang.jamey@example.org', + force_connect: true, + name: 'eaque', + password: 'LtyI { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ea', { + const responsePromise = client.engagement.messages.getMessageBuyers('cumque', { 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('ea', { + const response = await client.engagement.messages.getMessageBuyers('cumque', { 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 2e9728e9..157f995e 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('voluptatem', { 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('voluptatem', { 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('voluptatem', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b5e2ece3..d34fc3c9 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('odio', { 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('odio', { 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('odio', { 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('odio', { 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 b643af69..02883e18 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 ceff1e39..c68a195d 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: ['jlpcrcqpfixup'] }, + filter: { tags: ['vaqypawzgtazkhreippxszjav'] }, 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('illum'); + const responsePromise = client.smartLinks.listClicks('occaecati'); 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( - 'illum', + 'occaecati', { 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('inventore'); 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', + 'inventore', { 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('dignissimos'); + const responsePromise = client.smartLinks.listFans('eaque'); 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( - 'dignissimos', + 'eaque', { 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('consequuntur'); + const responsePromise = client.smartLinks.listSpenders('voluptas'); 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( - 'consequuntur', + 'voluptas', { 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('reiciendis'); + const responsePromise = client.smartLinks.retrieveCohortArps('corporis'); 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( - 'reiciendis', + 'corporis', { 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('maxime'); + 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( - 'maxime', + '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 bfb19f53..7fa1bf9e 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: 'qofofhzuelrfavqzyktaid', tags: ['qzobkrdxytumxlpphb'] }, + filter: { search: 'jwjooadqlkeliwaehrqiupbnl', tags: ['ylveqmqtlbdovqzvarpsfwv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tqkshps', tags: ['ckdnizf'] }, + filter: { search: 'xvezrfmffczfa', tags: ['oqwmy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'wnhbowiqqlpaufbxntbzdfza', - tags: ['dbfovkvzwzsrnvinh'], + include_smart_links: false, + search: 'irczsinakyzmpimzqvuqaqtfv', + tags: ['sddajvkbbhptbblswy'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tssyfabwavwbbzjgjmahx', - tags: ['lxxg'], + search: 'onbyrielxmqvvbjd', + tags: ['yfpredlktsrkayabmzfxh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7513a5c1..3b4f631b 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('delectus', { + 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('delectus', { + 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('delectus', { + 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('delectus', { + 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 02a3bf03..3f41ad36 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('atque', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('atque', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('atque', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('accusamus', { - 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; @@ -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('accusamus', { + const response = await client.trackingLinks.getCohortArps('ullam', { 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('est', { 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 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('est', { + 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 65fc4215..80b8c960 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('tenetur', { 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('tenetur', { 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('tenetur', { 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('tenetur', { 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('animi', { + const responsePromise = client.trialLinks.listSubscribers('voluptatem', { 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('animi', { + const response = await client.trialLinks.listSubscribers('voluptatem', { 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('ratione', { + const responsePromise = client.trialLinks.retrieveCohortArps('veritatis', { 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('ratione', { + const response = await client.trialLinks.retrieveCohortArps('veritatis', { 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('vitae', { 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('vitae', { 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 4f4b7310..cf8e7ed8 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: 'oplcluzjqwohoykefoxj' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wxvjmgfa' }); 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: 'oplcluzjqwohoykefoxj' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wxvjmgfa' }); }); // Mock server tests are disabled From 7e379ae329d208fb7dec30a45a90575e8b2556bb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 07:12:36 +0000 Subject: [PATCH 088/309] 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/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 | 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 107 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index e0fd5d35..8d11d16a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7eeb3f3a16ed67c42c1dd6c6cf49e4e8b9b73ecf119c9b639220f60e68f5bc2e.yml -openapi_spec_hash: d249c309a792407bd531a85061e1f1cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-920054175a18aef316492a157e29dcde0a0f00b251f28eba922c220c8024c1ee.yml +openapi_spec_hash: ae1d12a66790e4528e446d3a0326c5df config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bfc0cef..d9ebe1eb 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('quae'); + * const response = await client.accounts.disconnect('in'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index deb97ccb..21687f03 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( - * 'cumque', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66286110..a85c6b6e 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( - * 'voluptatem', + * 'sint', * { 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( - * 'voluptatem', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9ddb3928..e7603a07 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('odio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'quasi', + * { + * 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('odio', { + * const comments = await client.posts.comments.list('quasi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..a9767818 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 a84ff073..2b04cbb2 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 a3a006dd..faef5f9e 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( - * 'occaecati', + * 'aliquam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'inventore', + * 'iste', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('eaque'); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptas', + * 'amet', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('corporis'); + * await client.smartLinks.retrieveCohortArps('sed'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptas', + * 'corporis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e57276a..6db533a0 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', + * 'dolore', * { * 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('dolore', { * 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 da521fa3..81ade967 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( - * 'atque', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'atque', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ullam', { + * 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', + * 'commodi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9edca458..f04f9c53 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( - * 'tenetur', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'tenetur', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatem', + * 'enim', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('veritatis', { + * await client.trialLinks.retrieveCohortArps('consequatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'vitae', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3587d18f..d302f13c 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: 'wxvjmgfa' }, + * { name: 'dipcnmqccvzyukkmo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 65342ac8..a7a3b9d2 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('quae'); + const responsePromise = client.accounts.disconnect('in'); 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 2d6da211..4349e5e9 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: 'culpa', - auth_type: 'raw_data', - cookies: 'assumenda', + auth_id: 'voluptates', + auth_type: 'mobile_app', + cookies: 'totam', customProxy: { host: 'proxy.example.com', - password: 'DDbNX:-bmdRQ_L6gU', + password: 'A7nwgW"CZT2ZkiL>wv', port: 8080, - username: 'et', + username: 'est', }, - email: 'lang.jamey@example.org', + email: 'maxime.brekke@example.org', force_connect: true, - name: 'eaque', - password: 'LtyI { 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 ee14fac1..32e9581c 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('cumque', { + const responsePromise = client.engagement.messages.getMessageBuyers('amet', { 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('cumque', { + const response = await client.engagement.messages.getMessageBuyers('amet', { 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 157f995e..c9fd281d 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('voluptatem', { + const responsePromise = client.media.vault.lists.media.add('sint', { 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('voluptatem', { + const response = await client.media.vault.lists.media.add('sint', { 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('voluptatem', { + const responsePromise = client.media.vault.lists.media.remove('sint', { 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('voluptatem', { + const response = await client.media.vault.lists.media.remove('sint', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d34fc3c9..f2e9d313 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('odio', { + const responsePromise = client.posts.comments.create('quasi', { 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('odio', { + const response = await client.posts.comments.create('quasi', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quasi', { 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('odio', { + const response = await client.posts.comments.list('quasi', { 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 8e5b0566..4ec8acc7 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 02883e18..96d399de 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 6b1dc2fd..d13ad1ce 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 c68a195d..55caae66 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: ['vaqypawzgtazkhreippxszjav'] }, + filter: { tags: ['tjrlavwa'] }, 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('occaecati'); + 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( - 'occaecati', + '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('inventore'); + const responsePromise = client.smartLinks.listConversions('iste'); 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( - 'inventore', + 'iste', { 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('eaque'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'eaque', + 'ut', { 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('voluptas'); + const responsePromise = client.smartLinks.listSpenders('amet'); 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( - 'voluptas', + 'amet', { 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('corporis'); + const responsePromise = client.smartLinks.retrieveCohortArps('sed'); 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( - 'corporis', + 'sed', { 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('corporis'); 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', + 'corporis', { 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 7fa1bf9e..410d241b 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: 'jwjooadqlkeliwaehrqiupbnl', tags: ['ylveqmqtlbdovqzvarpsfwv'] }, + filter: { search: 'jnosluzxpzrbaekwvqhuysxqu', tags: ['vqntjkjjalaeoiiwuxtcy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xvezrfmffczfa', tags: ['oqwmy'] }, + filter: { search: 'e', tags: ['esjxgkdkwuzawjclrk'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'irczsinakyzmpimzqvuqaqtfv', - tags: ['sddajvkbbhptbblswy'], + search: 'vtrtjqpjsqxyjjefpxjurru', + tags: ['nbefnctiix'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'onbyrielxmqvvbjd', - tags: ['yfpredlktsrkayabmzfxh'], + include_smart_links: false, + search: 'kqmwajdwf', + tags: ['yjzxyyngvacqdbc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b4f631b..d579ae0b 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('dolore', { 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('dolore', { 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('dolore', { 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('dolore', { 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 3f41ad36..50b9f0b8 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('atque', { 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('atque', { 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('atque', { 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('atque', { 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('ullam', { 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; @@ -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('quod', { 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('optio', { 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; @@ -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('optio', { + 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 80b8c960..c5881fe5 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('tenetur', { 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('tenetur', { 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('tenetur', { 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('tenetur', { 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('voluptatem', { + const responsePromise = client.trialLinks.listSubscribers('enim', { 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('voluptatem', { + const response = await client.trialLinks.listSubscribers('enim', { 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('veritatis', { + const responsePromise = client.trialLinks.retrieveCohortArps('consequatur', { 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('veritatis', { + const response = await client.trialLinks.retrieveCohortArps('consequatur', { 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('vitae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('maxime', { 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('vitae', { + const response = await client.trialLinks.retrieveStats('maxime', { 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 cf8e7ed8..2a90794c 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: 'wxvjmgfa' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dipcnmqccvzyukkmo' }); 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: 'wxvjmgfa' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dipcnmqccvzyukkmo' }); }); // Mock server tests are disabled From 16bb72544eedd4aea207360fbafaef6b2a022984 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 16:12:36 +0000 Subject: [PATCH 089/309] 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/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 | 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 | 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 +-- 28 files changed, 107 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d11d16a..a6f8dea5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-920054175a18aef316492a157e29dcde0a0f00b251f28eba922c220c8024c1ee.yml -openapi_spec_hash: ae1d12a66790e4528e446d3a0326c5df +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed5dc8c2f880550be887c5e65c9c14e91ab68384ee1d2ca9184d30cacea74b70.yml +openapi_spec_hash: c7208a565cf56a80d1473b3e61700096 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d9ebe1eb..dd0fab39 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('in'); + * const response = await client.accounts.disconnect('nemo'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 21687f03..196af50a 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( - * 'amet', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a85c6b6e..4c51748d 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( - * 'sint', + * '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( - * 'sint', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e7603a07..c7b0c026 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( - * 'quasi', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('iste', { + * 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('quasi', { + * const comments = await client.posts.comments.list('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 2b04cbb2..c9a094cf 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 faef5f9e..46b74634 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', + * 'blanditiis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'iste', + * 'itaque', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans( + * 'quibusdam', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'amet', + * 'animi', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sed'); + * await client.smartLinks.retrieveCohortArps('odio'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'corporis', + * 'molestias', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 6db533a0..c795ca95 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( - * 'dolore', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolore', { + * await client.stories.highlights.removeStory('id', { * 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 81ade967..2dbc3d45 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', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quod', { + * 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( - * 'commodi', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f04f9c53..aa0b8407 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', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'debitis', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'enim', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('consequatur', { + * await client.trialLinks.retrieveCohortArps('officia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'maxime', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d302f13c..73ae4128 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: 'dipcnmqccvzyukkmo' }, + * { name: 'zvvvbbhb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a7a3b9d2..e8f37268 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('in'); + const responsePromise = client.accounts.disconnect('nemo'); 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 4349e5e9..6bc11888 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: 'voluptates', - auth_type: 'mobile_app', - cookies: 'totam', + auth_id: 'et', + auth_type: 'email_password', + cookies: 'sequi', customProxy: { host: 'proxy.example.com', - password: 'A7nwgW"CZT2ZkiL>wv', + password: '@.W,T"0&>', port: 8080, - username: 'est', + username: 'quidem', }, - email: 'maxime.brekke@example.org', - force_connect: true, - name: 'quia', - password: '$XC&#ab,X~1;', - proxyCountry: 'uk', + email: 'charlotte.aufderhar@example.org', + force_connect: false, + name: 'fugit', + password: 'JshEgeU=t=W}S*.nW1', + proxyCountry: 'us', user_agent: 'a', - xbc: 'at', + 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 229de463..c17a81d6 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 32e9581c..e7bee51e 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('amet', { + const responsePromise = client.engagement.messages.getMessageBuyers('quisquam', { 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('amet', { + const response = await client.engagement.messages.getMessageBuyers('quisquam', { 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 c9fd281d..1d002d6e 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('sint', { + 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('sint', { + 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('sint', { + 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('sint', { + 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 694c42e4..7b042946 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 f2e9d313..00ba9c94 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('quasi', { + const responsePromise = client.posts.comments.create('iste', { 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('quasi', { + const response = await client.posts.comments.create('iste', { 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iste', { 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('quasi', { + const response = await client.posts.comments.list('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..e2edc676 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 96d399de..b643af69 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 55caae66..e562e666 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: ['tjrlavwa'] }, + filter: { tags: ['ymkuwmokh'] }, 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('blanditiis'); 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', + 'blanditiis', { 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('iste'); + const responsePromise = client.smartLinks.listConversions('itaque'); 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( - 'iste', + 'itaque', { 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('ut'); + const responsePromise = client.smartLinks.listFans('quibusdam'); 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( - 'ut', + 'quibusdam', { 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('amet'); + const responsePromise = client.smartLinks.listSpenders('animi'); 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( - 'amet', + 'animi', { 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('sed'); + const responsePromise = client.smartLinks.retrieveCohortArps('odio'); 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( - 'sed', + 'odio', { 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('corporis'); + const responsePromise = client.smartLinks.retrieveStats('molestias'); 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( - 'corporis', + '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 410d241b..c6297542 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: 'jnosluzxpzrbaekwvqhuysxqu', tags: ['vqntjkjjalaeoiiwuxtcy'] }, + filter: { search: 'thbqowvpcwkjtduvuea', tags: ['wigqtalvtkgd'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'e', tags: ['esjxgkdkwuzawjclrk'] }, + filter: { search: 'wnalxxzibwdszgknonzujpc', tags: ['vbyk'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'vtrtjqpjsqxyjjefpxjurru', - tags: ['nbefnctiix'], + search: 'z', + tags: ['xhoxoypndcp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'kqmwajdwf', - tags: ['yjzxyyngvacqdbc'], + search: 'jsochidvuyxofabqfe', + tags: ['kujeyvmjznxaefunsuuvhtb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d579ae0b..7b006e42 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('dolore', { + const responsePromise = client.stories.highlights.addStory('id', { 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('dolore', { + const response = await client.stories.highlights.addStory('id', { 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('dolore', { + const responsePromise = client.stories.highlights.removeStory('id', { 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('dolore', { + const response = await client.stories.highlights.removeStory('id', { 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 50b9f0b8..5530bc9c 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('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('rerum', { 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('rerum', { 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('rerum', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('voluptate', { + 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('quod', { + const response = await client.trackingLinks.getCohortArps('voluptate', { 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('commodi', { 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('commodi', { + 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 c5881fe5..0984f439 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('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('debitis', { 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('debitis', { 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('debitis', { 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('enim', { + const responsePromise = client.trialLinks.listSubscribers('voluptatem', { 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('enim', { + const response = await client.trialLinks.listSubscribers('voluptatem', { 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('consequatur', { + const responsePromise = client.trialLinks.retrieveCohortArps('officia', { 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('consequatur', { + const response = await client.trialLinks.retrieveCohortArps('officia', { 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('maxime', { 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; @@ -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('maxime', { + 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 2a90794c..972310d2 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: 'dipcnmqccvzyukkmo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zvvvbbhb' }); 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: 'dipcnmqccvzyukkmo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zvvvbbhb' }); }); // Mock server tests are disabled From 8e3cd6f63633c2099203013eab8adfd00993b510 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 19:12:31 +0000 Subject: [PATCH 090/309] 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 | 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 | 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 +-- .../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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 124 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index a6f8dea5..ba92e487 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed5dc8c2f880550be887c5e65c9c14e91ab68384ee1d2ca9184d30cacea74b70.yml -openapi_spec_hash: c7208a565cf56a80d1473b3e61700096 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-96ef5a72effa5109d24e858e34e4c27e80c6da0fdfdd18d55455bd8970c0d081.yml +openapi_spec_hash: e10f2c391fdfadf1b52c942ec22c67c6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index dd0fab39..5b2993bb 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('nemo'); + * const response = await client.accounts.disconnect( + * 'debitis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 196af50a..c6cc81ce 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( - * 'quisquam', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4c51748d..e7233b51 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', + * 'nesciunt', * { 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', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7b0c026..2f91bb2f 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('iste', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'pariatur', + * { + * 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('iste', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'pariatur', + * { 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 09d6973d..a9767818 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 c9a094cf..41feb4c0 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 46b74634..dc021353 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( - * 'blanditiis', + * 'ducimus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'itaque', + * 'eaque', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'quibusdam', - * ); + * const response = await client.smartLinks.listFans('quod'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'animi', + * 'qui', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('odio'); + * await client.smartLinks.retrieveCohortArps('animi'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'molestias', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c795ca95..2c1b8292 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( - * 'id', + * 'voluptatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'voluptatibus', + * { + * 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 2dbc3d45..eced71b1 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', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quis', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptate', { + * await client.trackingLinks.getCohortArps('quam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'velit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ad', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index aa0b8407..010c7567 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('odio', { + * 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('odio', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatem', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('officia', { + * await client.trialLinks.retrieveCohortArps('earum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorem', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 73ae4128..7dbea085 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: 'zvvvbbhb' }, + * { name: 'l' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e8f37268..96347757 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('nemo'); + const responsePromise = client.accounts.disconnect('debitis'); 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 6bc11888..42c79af1 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: 'eius', auth_type: 'email_password', - cookies: 'sequi', + cookies: 'ratione', customProxy: { host: 'proxy.example.com', - password: '@.W,T"0&>', + password: "l'Rq=Ny)l}=`dYXse7#o", port: 8080, - username: 'quidem', + username: 'eveniet', }, - email: 'charlotte.aufderhar@example.org', + email: 'schroeder.imogene@example.org', force_connect: false, - name: 'fugit', - password: 'JshEgeU=t=W}S*.nW1', - proxyCountry: 'us', - user_agent: 'a', - xbc: 'vel', + name: 'aut', + password: '%q}..R20pV21j`|B\\C', + proxyCountry: 'uk', + user_agent: 'corporis', + xbc: 'facilis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 e7bee51e..58d348d7 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('quisquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('delectus', { 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('quisquam', { + const response = await client.engagement.messages.getMessageBuyers('delectus', { 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 1d002d6e..5345e43b 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 00ba9c94..795e540a 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('iste', { + const responsePromise = client.posts.comments.create('pariatur', { 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('iste', { + const response = await client.posts.comments.create('pariatur', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('pariatur', { 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('iste', { + const response = await client.posts.comments.list('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 b643af69..c1510622 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 d13ad1ce..6b1dc2fd 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 e562e666..1cb8f8e9 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: ['ymkuwmokh'] }, + filter: { tags: ['eptbovswxzaekxjzyqhwktqzx'] }, 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('blanditiis'); + const responsePromise = client.smartLinks.listClicks('ducimus'); 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( - 'blanditiis', + 'ducimus', { 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('itaque'); + const responsePromise = client.smartLinks.listConversions('eaque'); 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( - 'itaque', + 'eaque', { 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('quibusdam'); + const responsePromise = client.smartLinks.listFans('quod'); 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( - 'quibusdam', + 'quod', { 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('animi'); + const responsePromise = client.smartLinks.listSpenders('qui'); 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( - 'animi', + 'qui', { 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('odio'); + const responsePromise = client.smartLinks.retrieveCohortArps('animi'); 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( - 'odio', + 'animi', { 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('molestias'); + 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( - 'molestias', + '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 c6297542..6033df1e 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: 'thbqowvpcwkjtduvuea', tags: ['wigqtalvtkgd'] }, + filter: { search: 'evqveicpexe', tags: ['kdfwzlhmgjcyvy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wnalxxzibwdszgknonzujpc', tags: ['vbyk'] }, + filter: { search: 'utbmzoqksxoawhgaktbuncu', tags: ['nbdptjit'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'z', - tags: ['xhoxoypndcp'], + include_smart_links: true, + search: 'bdwkbcfskhyeh', + tags: ['ozuudeidlncxnnphtttvrpl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jsochidvuyxofabqfe', - tags: ['kujeyvmjznxaefunsuuvhtb'], + search: 'pehjadcaknoccsxbnqqtxcx', + tags: ['hlxqpwyrzwe'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7b006e42..eeaf1b05 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('id', { + const responsePromise = client.stories.highlights.addStory('voluptatibus', { 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('id', { + const response = await client.stories.highlights.addStory('voluptatibus', { 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('id', { + const responsePromise = client.stories.highlights.removeStory('voluptatibus', { 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('id', { + const response = await client.stories.highlights.removeStory('voluptatibus', { 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 5530bc9c..cbcd5097 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('architecto', { 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('architecto', { 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('architecto', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('architecto', { 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('quam', { 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('quam', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ad', { 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('velit', { + const response = await client.trackingLinks.getStats('ad', { 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 0984f439..c449aefa 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('odio', { 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('odio', { 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('odio', { 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('odio', { 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('voluptatem', { + 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('voluptatem', { + 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('officia', { + const responsePromise = client.trialLinks.retrieveCohortArps('earum', { 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('officia', { + const response = await client.trialLinks.retrieveCohortArps('earum', { 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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ex', { 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('dolorem', { + const response = await client.trialLinks.retrieveStats('ex', { 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 972310d2..b5079af6 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: 'zvvvbbhb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'l' }); 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: 'zvvvbbhb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'l' }); }); // Mock server tests are disabled From 20e3d06c1ace9398301ba5453afe10f7304f524e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 05:12:35 +0000 Subject: [PATCH 091/309] 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 | 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 | 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 +-- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 106 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index ba92e487..178f603b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-96ef5a72effa5109d24e858e34e4c27e80c6da0fdfdd18d55455bd8970c0d081.yml -openapi_spec_hash: e10f2c391fdfadf1b52c942ec22c67c6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-18ea139e992cfeac2558a0ac650efd96b78fc536ac88d62f3639c84537e01156.yml +openapi_spec_hash: 0113ba037170124cfe907c495e45696f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5b2993bb..5ea9ae45 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( - * 'debitis', - * ); + * const response = await client.accounts.disconnect('magnam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c6cc81ce..4c8bee51 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( - * 'delectus', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e7233b51..899e7eb9 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( - * 'nesciunt', + * 'asperiores', * { 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( - * 'nesciunt', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 2f91bb2f..e921299a 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( - * 'pariatur', + * 'recusandae', * { * 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( - * 'pariatur', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..a84ff073 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 dc021353..317b07f8 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( - * 'ducimus', + * 'provident', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eaque', + * 'rem', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quod'); + * const response = await client.smartLinks.listFans( + * 'consectetur', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'doloremque', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('animi'); + * await client.smartLinks.retrieveCohortArps('ipsa'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'iste', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2c1b8292..e9eae13b 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( - * 'voluptatibus', + * 'totam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'voluptatibus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('totam', { + * 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 eced71b1..e6703955 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( - * 'architecto', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'architecto', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quam', { + * await client.trackingLinks.getCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ad', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'incidunt', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 010c7567..0b0fbdc8 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('odio', { + * 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('odio', { + * 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( - * 'ut', + * 'sed', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('earum', { + * await client.trialLinks.retrieveCohortArps('repellat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ex', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7dbea085..47171fcc 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: 'l' }, + * { name: 'upwidopmnwsvueo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 96347757..36b08578 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('debitis'); + const responsePromise = client.accounts.disconnect('magnam'); 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 42c79af1..eb542b12 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: 'eius', - auth_type: 'email_password', - cookies: 'ratione', + auth_id: 'velit', + auth_type: 'raw_data', + cookies: 'laboriosam', customProxy: { host: 'proxy.example.com', - password: "l'Rq=Ny)l}=`dYXse7#o", + password: '),%afY#B8o', port: 8080, - username: 'eveniet', + username: 'quam', }, - email: 'schroeder.imogene@example.org', + email: 'predovic.phyllis@example.com', force_connect: false, - name: 'aut', - password: '%q}..R20pV21j`|B\\C', - proxyCountry: 'uk', - user_agent: 'corporis', - xbc: 'facilis', + name: 'illo', + password: '70W/x%\\Y/%)O(*?M', + proxyCountry: 'us', + user_agent: 'eos', + xbc: 'unde', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 58d348d7..7b080c81 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('delectus', { + const responsePromise = client.engagement.messages.getMessageBuyers('consequatur', { 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('delectus', { + const response = await client.engagement.messages.getMessageBuyers('consequatur', { 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 5345e43b..5895226a 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('nesciunt', { + const responsePromise = client.media.vault.lists.media.add('asperiores', { 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('nesciunt', { + const response = await client.media.vault.lists.media.add('asperiores', { 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('nesciunt', { + const responsePromise = client.media.vault.lists.media.remove('asperiores', { 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('nesciunt', { + const response = await client.media.vault.lists.media.remove('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 795e540a..53b2ea59 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('pariatur', { + const responsePromise = client.posts.comments.create('recusandae', { 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('pariatur', { + const response = await client.posts.comments.create('recusandae', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('recusandae', { 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('pariatur', { + const response = await client.posts.comments.list('recusandae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 c1510622..02883e18 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 6b1dc2fd..d13ad1ce 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 1cb8f8e9..71418f1c 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: ['eptbovswxzaekxjzyqhwktqzx'] }, + filter: { tags: ['rfpe'] }, 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('ducimus'); + const responsePromise = client.smartLinks.listClicks('provident'); 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( - 'ducimus', + 'provident', { 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('eaque'); + const responsePromise = client.smartLinks.listConversions('rem'); 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( - 'eaque', + 'rem', { 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('quod'); + const responsePromise = client.smartLinks.listFans('consectetur'); 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( - 'quod', + 'consectetur', { 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('qui'); + const responsePromise = client.smartLinks.listSpenders('doloremque'); 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( - 'qui', + 'doloremque', { 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('animi'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); 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( - 'animi', + 'ipsa', { 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('iste'); 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', + 'iste', { 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 6033df1e..92053d0b 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: 'evqveicpexe', tags: ['kdfwzlhmgjcyvy'] }, + filter: { search: 'fncatzdnheyzwmvlmikn', tags: ['uxcgkkfymgsgppj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'utbmzoqksxoawhgaktbuncu', tags: ['nbdptjit'] }, + filter: { search: 'yytvisjpskuybcqgrrwdqvbos', tags: ['vldfqqtppjrwfswnpekxzqc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bdwkbcfskhyeh', - tags: ['ozuudeidlncxnnphtttvrpl'], + search: 'bkzhwvyyowmus', + tags: ['onadxqmdpcdudibgilgngyumt'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'pehjadcaknoccsxbnqqtxcx', - tags: ['hlxqpwyrzwe'], + search: 'mzpcomyplhhljzmb', + tags: ['c'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index eeaf1b05..b1a18626 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('voluptatibus', { + 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('voluptatibus', { + 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('voluptatibus', { + 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('voluptatibus', { + 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 cbcd5097..2b4640c8 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('architecto', { 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('architecto', { 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('architecto', { 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('architecto', { 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('quam', { 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('quam', { + 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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('incidunt', { 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('ad', { + const response = await client.trackingLinks.getStats('incidunt', { 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 c449aefa..f2fc141c 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('odio', { 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('odio', { 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('odio', { 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('odio', { 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('ut', { + const responsePromise = client.trialLinks.listSubscribers('sed', { 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('sed', { 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('earum', { + const responsePromise = client.trialLinks.retrieveCohortArps('repellat', { 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('earum', { + const response = await client.trialLinks.retrieveCohortArps('repellat', { 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('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('totam', { 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('ex', { + const response = await client.trialLinks.retrieveStats('totam', { 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 b5079af6..d4405c54 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: 'l' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'upwidopmnwsvueo' }); 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: 'l' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'upwidopmnwsvueo' }); }); // Mock server tests are disabled From f7ee2880456193addd601b5c5688cdba838bc66e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:12:34 +0000 Subject: [PATCH 092/309] 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 +++---- 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 | 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 +- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 98 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index 178f603b..bee7ee31 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-18ea139e992cfeac2558a0ac650efd96b78fc536ac88d62f3639c84537e01156.yml -openapi_spec_hash: 0113ba037170124cfe907c495e45696f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5be9606b6648f96d96fbfd1ce827e917d866d67e0c6c86efec0189271b6b6280.yml +openapi_spec_hash: cb334b7d2013e3c87a26cc4215126ce9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5ea9ae45..ee756aa2 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('magnam'); + * const response = await client.accounts.disconnect( + * 'voluptas', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4c8bee51..73bd8638 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( - * 'consequatur', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 899e7eb9..b09ae6d9 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( - * 'asperiores', + * 'impedit', * { 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( - * 'asperiores', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e921299a..63b73b0a 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( - * 'recusandae', + * 'earum', * { * 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( - * 'recusandae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('earum', { + * 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 317b07f8..b0ba114a 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( - * 'provident', - * ); + * const response = await client.smartLinks.listClicks('quo'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rem', + * 'et', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consectetur', - * ); + * const response = await client.smartLinks.listFans('porro'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'doloremque', + * 'sed', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ipsa'); + * await client.smartLinks.retrieveCohortArps('omnis'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'iste', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e9eae13b..650cc443 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', + * 'iure', * { * 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('iure', { * 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 e6703955..2510ab5c 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', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consectetur', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('est', { + * 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( - * 'incidunt', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0b0fbdc8..35cf4572 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('quia', { + * const trialLink = await client.trialLinks.retrieve('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quia', { + * const trialLink = await client.trialLinks.delete('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sed', + * 'rem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('repellat', { + * await client.trialLinks.retrieveCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'totam', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 47171fcc..c70ead0a 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: 'upwidopmnwsvueo' }, + * { name: 'srnltqrwxbifcd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 36b08578..44c2278f 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('magnam'); + 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 eb542b12..70cae334 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: 'velit', + auth_id: 'vitae', auth_type: 'raw_data', - cookies: 'laboriosam', + cookies: 'iure', customProxy: { host: 'proxy.example.com', - password: '),%afY#B8o', + password: 'W# { 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 7b080c81..40edf323 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('consequatur', { + const responsePromise = client.engagement.messages.getMessageBuyers('quam', { 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('consequatur', { + const response = await client.engagement.messages.getMessageBuyers('quam', { 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 5895226a..15c22175 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('asperiores', { + const responsePromise = client.media.vault.lists.media.add('impedit', { 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('asperiores', { + const response = await client.media.vault.lists.media.add('impedit', { 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('asperiores', { + const responsePromise = client.media.vault.lists.media.remove('impedit', { 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('asperiores', { + const response = await client.media.vault.lists.media.remove('impedit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 53b2ea59..fb2da354 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('recusandae', { + const responsePromise = client.posts.comments.create('earum', { 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('recusandae', { + const response = await client.posts.comments.create('earum', { 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('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('earum', { 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('recusandae', { + const response = await client.posts.comments.list('earum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 71418f1c..8d585e76 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: ['rfpe'] }, + filter: { tags: ['jastfxiyrqyjne'] }, 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('provident'); + const responsePromise = client.smartLinks.listClicks('quo'); 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( - 'provident', + 'quo', { 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('rem'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'rem', + 'et', { 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('consectetur'); + const responsePromise = client.smartLinks.listFans('porro'); 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( - 'consectetur', + 'porro', { 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('doloremque'); + const responsePromise = client.smartLinks.listSpenders('sed'); 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( - 'doloremque', + 'sed', { 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('ipsa'); + const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); 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( - 'ipsa', + 'omnis', { 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('iste'); + const responsePromise = client.smartLinks.retrieveStats('deserunt'); 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( - 'iste', + 'deserunt', { 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 92053d0b..18d0db07 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: 'fncatzdnheyzwmvlmikn', tags: ['uxcgkkfymgsgppj'] }, + filter: { search: 'qtckeenfdhivohu', tags: ['wrzfaseqsjnutwgmjjudhwoyt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yytvisjpskuybcqgrrwdqvbos', tags: ['vldfqqtppjrwfswnpekxzqc'] }, + filter: { search: 'uutlfzmcylvif', tags: ['zylbgbieioeqarjoqd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bkzhwvyyowmus', - tags: ['onadxqmdpcdudibgilgngyumt'], + search: 'iyrscbmvlpmhmmgfqjsapwar', + tags: ['dzuqripwrrxxyjow'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'mzpcomyplhhljzmb', - tags: ['c'], + include_smart_links: true, + search: 'ydixgdxzsmstujb', + tags: ['dwlissbubw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b1a18626..9e8c2e98 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('iure', { 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('iure', { 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('iure', { 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('iure', { 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 2b4640c8..b4f1b701 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('impedit', { 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('impedit', { 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('impedit', { 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('impedit', { 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('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('est', { + 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('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ipsum', { 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('incidunt', { + const response = await client.trackingLinks.getStats('ipsum', { 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 f2fc141c..9f09e236 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('enim', { 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('enim', { 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('enim', { 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('enim', { 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('sed', { + const responsePromise = client.trialLinks.listSubscribers('rem', { 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('sed', { + const response = await client.trialLinks.listSubscribers('rem', { 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('omnis', { 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('omnis', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('itaque', { 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('totam', { + const response = await client.trialLinks.retrieveStats('itaque', { 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 d4405c54..0793bef6 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: 'upwidopmnwsvueo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'srnltqrwxbifcd' }); 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: 'upwidopmnwsvueo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'srnltqrwxbifcd' }); }); // Mock server tests are disabled From 38a56478411ff2974e676c6d1ca82d16eff698a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:12:37 +0000 Subject: [PATCH 093/309] 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 +- 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/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 | 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 100 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index bee7ee31..89d96d03 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5be9606b6648f96d96fbfd1ce827e917d866d67e0c6c86efec0189271b6b6280.yml -openapi_spec_hash: cb334b7d2013e3c87a26cc4215126ce9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4936b32be2f2af07d0a7f6db433e3697cc33e786fc6a160ba03469396e400619.yml +openapi_spec_hash: 70ddc04518b8814735b0f9226f1a9545 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ee756aa2..ab94d0d8 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( - * 'voluptas', - * ); + * 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 73bd8638..6a57abc0 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( - * 'quam', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b09ae6d9..59b57ebb 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( - * 'impedit', + * 'dicta', * { 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( - * 'impedit', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 63b73b0a..7ddb0649 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( - * 'earum', + * 'error', * { * 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('earum', { + * const comments = await client.posts.comments.list('error', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 b0ba114a..5fd23de9 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('quo'); + * const response = await client.smartLinks.listClicks( + * 'molestiae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'deleniti', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('porro'); + * const response = await client.smartLinks.listFans('velit'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sed', + * 'aut', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('omnis'); + * await client.smartLinks.retrieveCohortArps('at'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'deserunt', + * 'mollitia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 650cc443..0285d744 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( - * 'iure', + * 'facilis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('iure', { + * await client.stories.highlights.removeStory('facilis', { * 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 2510ab5c..a77119db 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( - * 'impedit', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'impedit', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'ipsum', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 35cf4572..363e55f1 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('enim', { + * const trialLink = await client.trialLinks.retrieve('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('enim', { + * const trialLink = await client.trialLinks.delete('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'rem', + * 'consectetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('omnis', { + * await client.trialLinks.retrieveCohortArps('voluptatibus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'itaque', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c70ead0a..1eb13ff2 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: 'srnltqrwxbifcd' }, + * { name: 'fiedgasexepliwyqlwnn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44c2278f..da0a05cf 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('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 70cae334..4c6a0459 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: 'vitae', - auth_type: 'raw_data', - cookies: 'iure', + auth_id: 'minus', + auth_type: 'email_password', + cookies: 'culpa', customProxy: { host: 'proxy.example.com', - password: 'W# { 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 40edf323..9cc643a8 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('quam', { + const responsePromise = client.engagement.messages.getMessageBuyers('autem', { 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('quam', { + const response = await client.engagement.messages.getMessageBuyers('autem', { 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 15c22175..fb54c736 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('impedit', { + const responsePromise = client.media.vault.lists.media.add('dicta', { 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('impedit', { + const response = await client.media.vault.lists.media.add('dicta', { 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('impedit', { + const responsePromise = client.media.vault.lists.media.remove('dicta', { 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('impedit', { + const response = await client.media.vault.lists.media.remove('dicta', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index fb2da354..b00cc334 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('earum', { + const responsePromise = client.posts.comments.create('error', { 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('earum', { + const response = await client.posts.comments.create('error', { 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('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('error', { 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('earum', { + const response = await client.posts.comments.list('error', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..fd74b68f 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 8d585e76..bd8bb0fe 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: ['jastfxiyrqyjne'] }, + filter: { tags: ['djblp'] }, 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('quo'); + const responsePromise = client.smartLinks.listClicks('molestiae'); 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( - 'quo', + 'molestiae', { 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('et'); + const responsePromise = client.smartLinks.listConversions('deleniti'); 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( - 'et', + 'deleniti', { 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('porro'); + const responsePromise = client.smartLinks.listFans('velit'); 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( - 'porro', + 'velit', { 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('sed'); + const responsePromise = client.smartLinks.listSpenders('aut'); 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( - 'sed', + 'aut', { 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('omnis'); + const responsePromise = client.smartLinks.retrieveCohortArps('at'); 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( - 'omnis', + 'at', { 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('deserunt'); + const responsePromise = client.smartLinks.retrieveStats('mollitia'); 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( - 'deserunt', + 'mollitia', { 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 18d0db07..3d03658a 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: 'qtckeenfdhivohu', tags: ['wrzfaseqsjnutwgmjjudhwoyt'] }, + filter: { search: 'xgfvrctvtczjyj', tags: ['ptdxwsdomcculouolgfrocef'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uutlfzmcylvif', tags: ['zylbgbieioeqarjoqd'] }, + filter: { search: 'iyjcjqbtalufqroowywx', tags: ['jmaziyfivg'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'iyrscbmvlpmhmmgfqjsapwar', - tags: ['dzuqripwrrxxyjow'], + search: 'tyfp', + tags: ['yfpakykukocjamga'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ydixgdxzsmstujb', - tags: ['dwlissbubw'], + include_smart_links: false, + search: 'anzhawiuimrzawsvphnnfyen', + tags: ['kjemox'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9e8c2e98..56d33dd6 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('iure', { + const responsePromise = client.stories.highlights.addStory('facilis', { 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('iure', { + const response = await client.stories.highlights.addStory('facilis', { 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('iure', { + const responsePromise = client.stories.highlights.removeStory('facilis', { 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('iure', { + const response = await client.stories.highlights.removeStory('facilis', { 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 b4f1b701..4d70520a 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('totam', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('totam', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('totam', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('totam', { 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('dolor', { 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('dolor', { 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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('laborum', { 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('ipsum', { + const response = await client.trackingLinks.getStats('laborum', { 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 9f09e236..4fe0b957 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('enim', { 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('enim', { 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('enim', { 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('enim', { 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('rem', { + const responsePromise = client.trialLinks.listSubscribers('consectetur', { 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('rem', { + const response = await client.trialLinks.listSubscribers('consectetur', { 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('omnis', { + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatibus', { 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('omnis', { + const response = await client.trialLinks.retrieveCohortArps('voluptatibus', { 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('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('eligendi', { 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('itaque', { + const response = await client.trialLinks.retrieveStats('eligendi', { 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 0793bef6..deaec5e0 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: 'srnltqrwxbifcd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fiedgasexepliwyqlwnn' }); 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: 'srnltqrwxbifcd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fiedgasexepliwyqlwnn' }); }); // Mock server tests are disabled From ea37ee11911649f40b998d54dd4a8b7ac584eef5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:12:38 +0000 Subject: [PATCH 094/309] 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/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 ++++++++-------- .../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 | 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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 107 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 89d96d03..8a02e0e2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4936b32be2f2af07d0a7f6db433e3697cc33e786fc6a160ba03469396e400619.yml -openapi_spec_hash: 70ddc04518b8814735b0f9226f1a9545 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0a38bc63e4392fdcb21b8976786bbadccddc6b5f5c7206cd2bbcd2a6d4d974a2.yml +openapi_spec_hash: 17f7d8002fc1bf0440eed04981b7288c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ab94d0d8..2d703f78 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('est'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6a57abc0..5c86b23d 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( - * 'autem', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 59b57ebb..bd4f605f 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( - * 'dicta', + * 'maiores', * { 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( - * 'dicta', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7ddb0649..95bf943a 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( - * 'error', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('quis', { + * 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('error', { + * const comments = await client.posts.comments.list('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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/smart-links.ts b/src/resources/smart-links.ts index 5fd23de9..ec91cc68 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( - * 'molestiae', + * 'fugiat', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'deleniti', + * 'mollitia', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('velit'); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'est', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('at'); + * await client.smartLinks.retrieveCohortArps('nihil'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'mollitia', + * 'distinctio', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 0285d744..a9c614a7 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( - * 'facilis', + * '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('facilis', { + * 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 a77119db..c93b094d 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( - * 'totam', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'totam', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolor', { + * 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( - * 'laborum', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 363e55f1..1965f55d 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( + * 'expedita', + * { 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( + * 'expedita', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consectetur', + * 'minus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatibus', { + * await client.trialLinks.retrieveCohortArps('odio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eligendi', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1eb13ff2..876d121c 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: 'fiedgasexepliwyqlwnn' }, + * { name: 'zstjthkqorjq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index da0a05cf..e5ed4ee6 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('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 4c6a0459..d02c953c 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: 'minus', - auth_type: 'email_password', - cookies: 'culpa', + auth_id: 'sapiente', + auth_type: 'mobile_app', + cookies: 'dolor', customProxy: { host: 'proxy.example.com', - password: ',d!V^MX4WI7$i6K5[i', + password: '?{$9<="}aNYE(]o043.', port: 8080, - username: 'eius', + username: 'dolores', }, - email: 'balistreri.wendell@example.com', + email: 'nicolas.philip@example.com', force_connect: false, - name: 'maxime', - password: '&*RN< { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('autem', { + const responsePromise = client.engagement.messages.getMessageBuyers('fugit', { 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('autem', { + const response = await client.engagement.messages.getMessageBuyers('fugit', { 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 fb54c736..2b1ccfd9 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('dicta', { + const responsePromise = client.media.vault.lists.media.add('maiores', { 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('dicta', { + const response = await client.media.vault.lists.media.add('maiores', { 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('dicta', { + const responsePromise = client.media.vault.lists.media.remove('maiores', { 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('dicta', { + const response = await client.media.vault.lists.media.remove('maiores', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b00cc334..86baf48c 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('error', { + const responsePromise = client.posts.comments.create('quis', { 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('error', { + const response = await client.posts.comments.create('quis', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quis', { 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('error', { + const response = await client.posts.comments.list('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 bd8bb0fe..a35e8a3d 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: ['djblp'] }, + filter: { tags: ['qvfhyyhtcefjdlfslyd'] }, 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('molestiae'); + const responsePromise = client.smartLinks.listClicks('fugiat'); 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( - 'molestiae', + 'fugiat', { 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('deleniti'); + const responsePromise = client.smartLinks.listConversions('mollitia'); 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( - 'deleniti', + 'mollitia', { 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('velit'); + const responsePromise = client.smartLinks.listFans('sed'); 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( - 'velit', + 'sed', { 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('aut'); + const responsePromise = client.smartLinks.listSpenders('est'); 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( - 'aut', + 'est', { 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('at'); + const responsePromise = client.smartLinks.retrieveCohortArps('nihil'); 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( - 'at', + 'nihil', { 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('mollitia'); + const responsePromise = client.smartLinks.retrieveStats('distinctio'); 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( - 'mollitia', + 'distinctio', { 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 3d03658a..0961bf26 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: 'xgfvrctvtczjyj', tags: ['ptdxwsdomcculouolgfrocef'] }, + filter: { search: 'cddgzwdvwjr', tags: ['hpqvkboomokvkrvgobddvphlh'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'iyjcjqbtalufqroowywx', tags: ['jmaziyfivg'] }, + filter: { search: 'nhm', tags: ['esjhuoyxhgel'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tyfp', - tags: ['yfpakykukocjamga'], + search: 'oepownldutqrnnljdbcnthspp', + tags: ['tu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'anzhawiuimrzawsvphnnfyen', - tags: ['kjemox'], + include_smart_links: true, + search: 'zitequngauxtcqziwz', + tags: ['zhgqfkuvjargtqmavwwqkyh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 56d33dd6..fca45b0b 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('facilis', { + 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('facilis', { + 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('facilis', { + 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('facilis', { + 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 4d70520a..60f0a969 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dolores', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dolores', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dolores', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolor', { 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('dolor', { + 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('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nobis', { 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('laborum', { + const response = await client.trackingLinks.getStats('nobis', { 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 4fe0b957..2ffe8d04 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('expedita', { 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('expedita', { 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('expedita', { 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('expedita', { 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('consectetur', { + const responsePromise = client.trialLinks.listSubscribers('minus', { 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('consectetur', { + const response = await client.trialLinks.listSubscribers('minus', { 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('voluptatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('odio', { 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('voluptatibus', { + const response = await client.trialLinks.retrieveCohortArps('odio', { 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('eligendi', { 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 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eligendi', { + 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 deaec5e0..2a7d75b5 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: 'fiedgasexepliwyqlwnn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zstjthkqorjq' }); 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: 'fiedgasexepliwyqlwnn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zstjthkqorjq' }); }); // Mock server tests are disabled From d40bc248e2007524825da5e11411937106e84ae5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 20:12:32 +0000 Subject: [PATCH 095/309] 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 | 6 ++--- 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 +-- 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 | 12 ++++----- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 109 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8a02e0e2..6832043f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0a38bc63e4392fdcb21b8976786bbadccddc6b5f5c7206cd2bbcd2a6d4d974a2.yml -openapi_spec_hash: 17f7d8002fc1bf0440eed04981b7288c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-17c8346ae2310da283cdf2555a0ec1ac2e47fea935518c95aeaa472cb8d00099.yml +openapi_spec_hash: 4c717bf5d92a82280ba7f629f3d29128 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2d703f78..79c0b56e 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('est'); + * const response = await client.accounts.disconnect( + * 'deleniti', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5c86b23d..81764427 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( - * 'fugit', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index bd4f605f..f2f1837f 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( - * 'maiores', + * 'rerum', * { 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( - * 'maiores', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95bf943a..7ba24347 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('quis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'omnis', + * { + * 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('quis', { + * const comments = await client.posts.comments.list('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 a84ff073..c9a094cf 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 ec91cc68..36da8b47 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( - * 'fugiat', + * 'aliquam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'mollitia', + * 'nesciunt', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'est', + * 'corrupti', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nihil'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'distinctio', + * 'ea', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..9e605c1a 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', + * 'dolorem', * { * 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('dolorem', { * 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 c93b094d..77f88f9e 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( - * 'dolores', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolores', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'nobis', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 1965f55d..16026a41 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( - * 'expedita', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'expedita', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('nobis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'minus', + * 'suscipit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('odio', { + * await client.trialLinks.retrieveCohortArps('veniam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 876d121c..76fce750 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: 'zstjthkqorjq' }, + * { name: 'pisifwqmavftdrmjlq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e5ed4ee6..d9c5fee6 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('deleniti'); 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 d02c953c..b12bb6ce 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: 'sapiente', - auth_type: 'mobile_app', - cookies: 'dolor', + auth_id: 'sint', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '?{$9<="}aNYE(]o043.', + password: "II?02_puKcrJz<'MdAV", port: 8080, - username: 'dolores', + username: 'odio', }, - email: 'nicolas.philip@example.com', - force_connect: false, - name: 'officia', - password: 'J}g;)Kon\\q { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('fugit', { + const responsePromise = client.engagement.messages.getMessageBuyers('maiores', { 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('fugit', { + const response = await client.engagement.messages.getMessageBuyers('maiores', { 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 2b1ccfd9..89b269df 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('maiores', { + const responsePromise = client.media.vault.lists.media.add('rerum', { 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('maiores', { + const response = await client.media.vault.lists.media.add('rerum', { 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('maiores', { + const responsePromise = client.media.vault.lists.media.remove('rerum', { 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('maiores', { + const response = await client.media.vault.lists.media.remove('rerum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 86baf48c..94652680 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('quis', { + const responsePromise = client.posts.comments.create('omnis', { 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('quis', { + const response = await client.posts.comments.create('omnis', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('omnis', { 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('quis', { + const response = await client.posts.comments.list('omnis', { 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 8e5b0566..fd74b68f 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 02883e18..b643af69 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 a35e8a3d..4391a5f2 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: ['qvfhyyhtcefjdlfslyd'] }, + filter: { tags: ['xyy'] }, 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('fugiat'); + 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( - 'fugiat', + '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('mollitia'); + const responsePromise = client.smartLinks.listConversions('nesciunt'); 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( - 'mollitia', + 'nesciunt', { 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('sed'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'sed', + 'ut', { 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('est'); + const responsePromise = client.smartLinks.listSpenders('corrupti'); 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( - 'est', + 'corrupti', { 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('nihil'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); 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( - 'nihil', + 'et', { 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('distinctio'); + const responsePromise = client.smartLinks.retrieveStats('ea'); 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( - 'distinctio', + '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 0961bf26..76f531a8 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: 'cddgzwdvwjr', tags: ['hpqvkboomokvkrvgobddvphlh'] }, + filter: { search: 'hvjfxiabhgfxiwkfidfsqago', tags: ['ekcdgycaikbtlpzixshnvljpl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nhm', tags: ['esjhuoyxhgel'] }, + filter: { search: 'cvlenqnmrowyce', tags: ['azdppxjh'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'oepownldutqrnnljdbcnthspp', - tags: ['tu'], + include_smart_links: false, + search: 'wynvlnpf', + tags: ['avlkzdjegzjylcenclu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zitequngauxtcqziwz', - tags: ['zhgqfkuvjargtqmavwwqkyh'], + include_smart_links: false, + search: 'eoowmusipttsddhm', + tags: ['pvgjw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..5c3f89bf 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('dolorem', { 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('dolorem', { 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('dolorem', { 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('dolorem', { 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 60f0a969..be5a8432 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('veniam', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('veniam', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,7 +92,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sequi', { 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('nobis', { + const response = await client.trackingLinks.getStats('sequi', { 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 2ffe8d04..b8507d61 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('nobis', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('nobis', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('nobis', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('nobis', { 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('minus', { + 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('minus', { + 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('veniam', { + 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('odio', { + const response = await client.trialLinks.retrieveCohortArps('veniam', { 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('ut', { 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; @@ -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('ut', { + 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 2a7d75b5..b4e60e89 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: 'zstjthkqorjq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pisifwqmavftdrmjlq' }); 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: 'zstjthkqorjq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pisifwqmavftdrmjlq' }); }); // Mock server tests are disabled From e99b7a5e42bf4401462d1857df9c7dd2818259c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 03:12:35 +0000 Subject: [PATCH 096/309] 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 | 10 ++++----- 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 +++---- 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 | 22 +++++++++---------- 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, 105 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6832043f..59a380cd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-17c8346ae2310da283cdf2555a0ec1ac2e47fea935518c95aeaa472cb8d00099.yml -openapi_spec_hash: 4c717bf5d92a82280ba7f629f3d29128 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b71f8cb6cb43ee90116fde1dcca89ec5030f9dbb879f437f0338a7754aff2ef1.yml +openapi_spec_hash: 0a4f68981383ff47b1f2a022953ec8c6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 79c0b56e..007c7078 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( - * 'deleniti', - * ); + * const response = await client.accounts.disconnect('error'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 81764427..dedba755 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( - * 'maiores', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f2f1837f..6bc50831 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( - * 'rerum', + * 'explicabo', * { 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( - * 'rerum', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7ba24347..1db600f1 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( - * 'omnis', + * 'perspiciatis', * { * 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('omnis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'perspiciatis', + * { 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 e20f70d1..a9767818 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 c9a094cf..41feb4c0 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 36da8b47..f63c91b9 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', + * 'voluptatem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nesciunt', + * 'omnis', * ); * ``` */ @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'corrupti', + * 'error', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('aut'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ea', + * 'doloribus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9e605c1a..ef563fea 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( - * 'dolorem', + * 'corporis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolorem', { + * await client.stories.highlights.removeStory('corporis', { * 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 77f88f9e..00d5c717 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( - * 'veniam', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'veniam', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('assumenda', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sequi', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 16026a41..c7291265 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( - * 'nobis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nobis', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'suscipit', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('veniam', { + * await client.trialLinks.retrieveCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'omnis', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 76fce750..ad379ee6 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: 'pisifwqmavftdrmjlq' }, + * { name: 'rvsik' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d9c5fee6..09f159a0 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('deleniti'); + const responsePromise = client.accounts.disconnect('error'); 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 b12bb6ce..951cd719 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: 'sint', - auth_type: 'raw_data', - cookies: 'et', + auth_id: 'consequatur', + auth_type: 'email_password', + cookies: 'tempora', customProxy: { host: 'proxy.example.com', - password: "II?02_puKcrJz<'MdAV", + password: 'V/_*3qq', port: 8080, - username: 'odio', + username: 'quia', }, - email: 'barrows.wilton@example.com', - force_connect: true, - name: 'enim', - password: "?zjsHl*QA)19o,-@Q+'^", + email: 'akeebler@example.org', + force_connect: false, + name: 'doloremque', + password: '#@qTS_*#u]9(9s}B*n*^', proxyCountry: 'uk', - user_agent: 'laudantium', - xbc: 'ad', + user_agent: 'earum', + xbc: 'sunt', }, { 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 02eef5b7..1eb95aa7 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('maiores', { + const responsePromise = client.engagement.messages.getMessageBuyers('harum', { 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('maiores', { + const response = await client.engagement.messages.getMessageBuyers('harum', { 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 89b269df..4a8c93d9 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('rerum', { + const responsePromise = client.media.vault.lists.media.add('explicabo', { 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('rerum', { + const response = await client.media.vault.lists.media.add('explicabo', { 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('rerum', { + const responsePromise = client.media.vault.lists.media.remove('explicabo', { 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('rerum', { + const response = await client.media.vault.lists.media.remove('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 94652680..bef68d36 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('omnis', { + const responsePromise = client.posts.comments.create('perspiciatis', { 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('omnis', { + const response = await client.posts.comments.create('perspiciatis', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('perspiciatis', { 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('omnis', { + const response = await client.posts.comments.list('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..4ec8acc7 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 b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 4391a5f2..e03a628c 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: ['xyy'] }, + filter: { tags: ['degcs'] }, 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('voluptatem'); 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', + 'voluptatem', { 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('nesciunt'); + const responsePromise = client.smartLinks.listConversions('omnis'); 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( - 'nesciunt', + 'omnis', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('corrupti'); + const responsePromise = client.smartLinks.listSpenders('error'); 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( - 'corrupti', + 'error', { 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('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('aut'); 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( - 'et', + 'aut', { 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('ea'); + const responsePromise = client.smartLinks.retrieveStats('doloribus'); 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( - 'ea', + 'doloribus', { 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 76f531a8..e0632702 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: 'hvjfxiabhgfxiwkfidfsqago', tags: ['ekcdgycaikbtlpzixshnvljpl'] }, + filter: { search: 'uuicoxxmmfjly', tags: ['kwhbstwthwc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cvlenqnmrowyce', tags: ['azdppxjh'] }, + filter: { search: 'pnbibqlxnbarrlqgonnbq', tags: ['amiurac'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wynvlnpf', - tags: ['avlkzdjegzjylcenclu'], + include_smart_links: true, + search: 'skkpdwzzpwotxa', + tags: ['eag'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'eoowmusipttsddhm', - tags: ['pvgjw'], + search: 'wfudjgwtkfonemyxoqaown', + tags: ['bhfjsyzkdkz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5c3f89bf..fff848f2 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('dolorem', { + const responsePromise = client.stories.highlights.addStory('corporis', { 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('dolorem', { + const response = await client.stories.highlights.addStory('corporis', { 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('dolorem', { + const responsePromise = client.stories.highlights.removeStory('corporis', { 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('dolorem', { + const response = await client.stories.highlights.removeStory('corporis', { 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 be5a8432..afd082b9 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('saepe', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('saepe', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('saepe', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('saepe', { 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('assumenda', { + 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('assumenda', { 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('sequi', { 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; @@ -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('sequi', { + 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 b8507d61..4fffa3e6 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('nobis', { 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('nobis', { 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('nobis', { 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('nobis', { 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('suscipit', { + const responsePromise = client.trialLinks.listSubscribers('sit', { 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('sit', { 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('veniam', { - 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; @@ -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('veniam', { + const response = await client.trialLinks.retrieveCohortArps('est', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('vel', { 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('omnis', { + const response = await client.trialLinks.retrieveStats('vel', { 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 b4e60e89..62c31551 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: 'pisifwqmavftdrmjlq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rvsik' }); 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: 'pisifwqmavftdrmjlq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rvsik' }); }); // Mock server tests are disabled From c2716dd0d249e110eda8fceacb15ecf62226c6a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 06:12:35 +0000 Subject: [PATCH 097/309] 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 | 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 ++++++++-------- 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 | 26 +++++++++---------- 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, 108 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 59a380cd..5f7b3443 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b71f8cb6cb43ee90116fde1dcca89ec5030f9dbb879f437f0338a7754aff2ef1.yml -openapi_spec_hash: 0a4f68981383ff47b1f2a022953ec8c6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a907e754426fe187ceb85344916e070498a0c810938f1ad23555322651de017b.yml +openapi_spec_hash: 3fa5aa5cc7a3422378364fb7b0876b2c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 007c7078..0905a78a 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('error'); + * const response = await client.accounts.disconnect('nihil'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index dedba755..2d92c452 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( - * 'harum', + * 'incidunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6bc50831..498021bb 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( - * 'explicabo', + * '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( - * 'explicabo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1db600f1..c3a5c806 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( - * 'perspiciatis', + * 'culpa', * { * 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( - * 'perspiciatis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('culpa', { + * 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 a9767818..e20f70d1 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 41feb4c0..c9a094cf 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 f63c91b9..2e654cd6 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', + * 'repudiandae', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'omnis', + * 'odio', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * 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( - * 'error', + * 'minus', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aut'); + * await client.smartLinks.retrieveCohortArps('eveniet'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'doloribus', + * 'porro', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ef563fea..a9c614a7 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( - * 'corporis', + * '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('corporis', { + * 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 00d5c717..5eacf8b0 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( - * 'saepe', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'saepe', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('assumenda', { + * 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( - * 'eligendi', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c7291265..5a383672 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('et', { + * const trialLink = await client.trialLinks.retrieve('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'voluptatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('est', { + * 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( - * 'vel', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ad379ee6..7d61e47b 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: 'rvsik' }, + * { name: 'hrcy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 09f159a0..fe634fcf 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('error'); + const responsePromise = client.accounts.disconnect('nihil'); 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 951cd719..81786de4 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: 'consequatur', - auth_type: 'email_password', - cookies: 'tempora', + auth_id: 'dignissimos', + auth_type: 'raw_data', + cookies: 'rerum', customProxy: { host: 'proxy.example.com', - password: 'V/_*3qq', + password: '_!kbcXtI', port: 8080, - username: 'quia', + username: 'ut', }, - email: 'akeebler@example.org', - force_connect: false, - name: 'doloremque', - password: '#@qTS_*#u]9(9s}B*n*^', + email: 'lincoln.stark@example.org', + force_connect: true, + name: 'quod', + password: 'pK[8lAY)$(??uF', proxyCountry: 'uk', - user_agent: 'earum', - xbc: 'sunt', + user_agent: 'modi', + 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 c17a81d6..229de463 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 1eb95aa7..439a4c13 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('harum', { + const responsePromise = client.engagement.messages.getMessageBuyers('incidunt', { 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('harum', { + const response = await client.engagement.messages.getMessageBuyers('incidunt', { 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 4a8c93d9..7b876bd9 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('explicabo', { + 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('explicabo', { + 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('explicabo', { + 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('explicabo', { + 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 b0d96512..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bef68d36..085c066c 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('perspiciatis', { + const responsePromise = client.posts.comments.create('culpa', { 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('perspiciatis', { + const response = await client.posts.comments.create('culpa', { 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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('culpa', { 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('perspiciatis', { + const response = await client.posts.comments.list('culpa', { 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 4ec8acc7..fd74b68f 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 e03a628c..c32b43c4 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: ['degcs'] }, + filter: { tags: ['mvrfphrlxig'] }, 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('voluptatem'); + const responsePromise = client.smartLinks.listClicks('repudiandae'); 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( - 'voluptatem', + 'repudiandae', { 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('omnis'); + const responsePromise = client.smartLinks.listConversions('odio'); 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( - 'omnis', + 'odio', { 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('ut'); + 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( - 'ut', + '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('error'); + const responsePromise = client.smartLinks.listSpenders('minus'); 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( - 'error', + 'minus', { 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('aut'); + const responsePromise = client.smartLinks.retrieveCohortArps('eveniet'); 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( - 'aut', + 'eveniet', { 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('doloribus'); + const responsePromise = client.smartLinks.retrieveStats('porro'); 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( - 'doloribus', + 'porro', { 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 e0632702..e6cec60c 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: 'uuicoxxmmfjly', tags: ['kwhbstwthwc'] }, + filter: { search: 'xzgdnyyufjx', tags: ['ntsrrdncyigyfqsbo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pnbibqlxnbarrlqgonnbq', tags: ['amiurac'] }, + filter: { search: 'qyvskqll', tags: ['lzejxlhkznzjcdpfwzrgqxnr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'skkpdwzzpwotxa', - tags: ['eag'], + include_smart_links: false, + search: 'dreitv', + tags: ['pyjfkrm'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wfudjgwtkfonemyxoqaown', - tags: ['bhfjsyzkdkz'], + include_smart_links: true, + search: 'gaeqmxvo', + tags: ['bhidbkyzoiowtjrkx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fff848f2..fca45b0b 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('corporis', { + 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('corporis', { + 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('corporis', { + 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('corporis', { + 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 afd082b9..b50c7530 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('saepe', { 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('saepe', { 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('saepe', { 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('saepe', { 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('assumenda', { + const responsePromise = client.trackingLinks.getCohortArps('repellendus', { 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('assumenda', { + const response = await client.trackingLinks.getCohortArps('repellendus', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptas', { 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('eligendi', { + const response = await client.trackingLinks.getStats('voluptas', { 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 4fffa3e6..e22d2fac 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('hic', { 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('hic', { 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('hic', { 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('hic', { 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('sit', { + 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('sit', { + const response = await client.trialLinks.listSubscribers('voluptatibus', { 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('rerum', { + 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('rerum', { 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('vel', { 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 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('vel', { + 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 62c31551..ad4224c7 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: 'rvsik' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrcy' }); 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: 'rvsik' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrcy' }); }); // Mock server tests are disabled From 497717178c8f21ac5d53cd649935e386943c7001 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 09:12:37 +0000 Subject: [PATCH 098/309] 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 | 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 +-- .../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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 113 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5f7b3443..6e9c5a97 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a907e754426fe187ceb85344916e070498a0c810938f1ad23555322651de017b.yml -openapi_spec_hash: 3fa5aa5cc7a3422378364fb7b0876b2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c2f88e1934d9f443e45c12470acb6415baa953e79f2e7493e3680d67003c8a83.yml +openapi_spec_hash: 08fffce664e4f3dd0aaaaeb72f039989 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0905a78a..df8ece79 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('nihil'); + * const response = await client.accounts.disconnect( + * 'expedita', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2d92c452..81f3d2e2 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( - * 'incidunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..6eaac205 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', + * 'fugit', * { 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', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c3a5c806..d41a403f 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( - * 'culpa', + * 'labore', * { * 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('culpa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'labore', + * { 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 e20f70d1..a9767818 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 c9a094cf..2b04cbb2 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 2e654cd6..cef25261 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( - * 'repudiandae', + * 'velit', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'odio', + * 'in', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequatur', - * ); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -131,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'minus', - * ); + * const response = await client.smartLinks.listSpenders('ut'); * ``` */ listSpenders( @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eveniet'); + * await client.smartLinks.retrieveCohortArps('in'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'porro', + * 'possimus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..c1319d5d 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', + * 'excepturi', * { * 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('excepturi', { * 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 5eacf8b0..c091daf8 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', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'laborum', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repellendus', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptas', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5a383672..b3923eb0 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('hic', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'corporis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('hic', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'corporis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatibus', + * 'error', * { * 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('fugiat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsa', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7d61e47b..2552ae83 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: 'hrcy' }, + * { name: 'xkjvqdqhgxlntmfvga' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fe634fcf..50bb25fb 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('nihil'); + const responsePromise = client.accounts.disconnect('expedita'); 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 81786de4..c5c7c52f 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: 'dignissimos', + auth_id: 'facilis', auth_type: 'raw_data', - cookies: 'rerum', + cookies: 'dolorum', customProxy: { host: 'proxy.example.com', - password: '_!kbcXtI', + password: '%nv|d{yS7mQ+Y=){', port: 8080, - username: 'ut', + username: 'rerum', }, - email: 'lincoln.stark@example.org', + email: 'darwin27@example.com', force_connect: true, - name: 'quod', - password: 'pK[8lAY)$(??uF', - proxyCountry: 'uk', - user_agent: 'modi', - xbc: 'aut', + name: 'expedita', + password: ',o\\Pc2&B', + proxyCountry: 'us', + user_agent: 'ea', + xbc: 'velit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 439a4c13..77125615 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('incidunt', { + 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('incidunt', { + 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 7b876bd9..45d93cef 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('fugit', { 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('fugit', { 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('fugit', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..b0d96512 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 085c066c..382fcc0c 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('culpa', { + const responsePromise = client.posts.comments.create('labore', { 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('culpa', { + const response = await client.posts.comments.create('labore', { 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('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('labore', { 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('culpa', { + const response = await client.posts.comments.list('labore', { 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 fd74b68f..4ec8acc7 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 b643af69..96d399de 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 6b1dc2fd..d13ad1ce 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 c32b43c4..52a6ce4f 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: ['mvrfphrlxig'] }, + filter: { tags: ['any'] }, 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('repudiandae'); + const responsePromise = client.smartLinks.listClicks('velit'); 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( - 'repudiandae', + 'velit', { 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('odio'); + const responsePromise = client.smartLinks.listConversions('in'); 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( - 'odio', + 'in', { 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('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( - 'consequatur', + '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('minus'); + 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( - 'minus', + '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('eveniet'); + const responsePromise = client.smartLinks.retrieveCohortArps('in'); 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( - 'eveniet', + 'in', { 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('porro'); + const responsePromise = client.smartLinks.retrieveStats('possimus'); 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( - 'porro', + '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 e6cec60c..5712fd05 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: 'xzgdnyyufjx', tags: ['ntsrrdncyigyfqsbo'] }, + filter: { search: 'maovzhhylccyswgu', tags: ['xgiujyllrqupmkl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qyvskqll', tags: ['lzejxlhkznzjcdpfwzrgqxnr'] }, + filter: { search: 'ucfpxpanlqkkvjduxnul', tags: ['tjogxwvq'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'dreitv', - tags: ['pyjfkrm'], + include_smart_links: true, + search: 'kj', + tags: ['qdctjatpdjzetxni'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'gaeqmxvo', - tags: ['bhidbkyzoiowtjrkx'], + search: 'tezxbgoigzvqsslwfjtjpxmek', + tags: ['c'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..311190de 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('excepturi', { 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('excepturi', { 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('excepturi', { 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('excepturi', { 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 b50c7530..7e73dd81 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('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('laborum', { 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('laborum', { 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,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('laborum', { 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('repellendus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('aut', { 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('aut', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolorum', { 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('voluptas', { + const response = await client.trackingLinks.getStats('dolorum', { 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 e22d2fac..45c549e1 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('corporis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('corporis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('corporis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('corporis', { 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('error', { 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('error', { 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('fugiat', { 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('fugiat', { 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('ipsa', { 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; @@ -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('ipsa', { + 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 ad4224c7..b6d5ec26 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: 'hrcy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xkjvqdqhgxlntmfvga' }); 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: 'hrcy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xkjvqdqhgxlntmfvga' }); }); // Mock server tests are disabled From b7c10733fedd5451641f86bb5110b4e961fc0d72 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:12:37 +0000 Subject: [PATCH 099/309] 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 | 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 ++++++++-------- 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 | 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 +-- 29 files changed, 116 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6e9c5a97..2bf41a86 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c2f88e1934d9f443e45c12470acb6415baa953e79f2e7493e3680d67003c8a83.yml -openapi_spec_hash: 08fffce664e4f3dd0aaaaeb72f039989 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-466df7bcb4d8dc90c8ee79faa1c560b85ab1cffd97a56ed9ee2fd8172edb7bd7.yml +openapi_spec_hash: bf811c8223f39a7e477652afe8e7800f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index df8ece79..ca6cda03 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( - * 'expedita', - * ); + * 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 81f3d2e2..a7ba1088 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( + * 'repellat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6eaac205..a7994fcb 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( - * 'fugit', + * 'cum', * { 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( - * 'fugit', + * 'cum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index d41a403f..6b557a8f 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( - * 'labore', - * { - * 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( - * 'labore', - * { 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 a9767818..e20f70d1 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 2b04cbb2..c9a094cf 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 cef25261..4a76f730 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( - * 'velit', + * 'voluptatem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'in', + * 'officia', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('sunt'); * ``` */ listFans( @@ -129,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ut'); + * const response = await client.smartLinks.listSpenders( + * 'molestias', + * ); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('in'); + * await client.smartLinks.retrieveCohortArps('nisi'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'possimus', + * 'quisquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c1319d5d..0285d744 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( - * 'excepturi', + * 'facilis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('excepturi', { + * await client.stories.highlights.removeStory('facilis', { * 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 c091daf8..f1cfb5c6 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'enim', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * 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( - * 'dolorum', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b3923eb0..9779cf93 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( - * 'corporis', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'corporis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('dolor', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'error', + * 'sunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('fugiat', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsam', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2552ae83..c71b3e18 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: 'xkjvqdqhgxlntmfvga' }, + * { name: 'wybzwdztwa' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 50bb25fb..8da98ca8 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('expedita'); + 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 c5c7c52f..74a6f065 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: 'facilis', - auth_type: 'raw_data', - cookies: 'dolorum', + auth_id: 'eveniet', + auth_type: 'email_password', + cookies: 'qui', customProxy: { host: 'proxy.example.com', - password: '%nv|d{yS7mQ+Y=){', + password: 'gjUi~ua', port: 8080, - username: 'rerum', + username: 'commodi', }, - email: 'darwin27@example.com', + email: 'zulauf.brad@example.com', force_connect: true, - name: 'expedita', - password: ',o\\Pc2&B', - proxyCountry: 'us', - user_agent: 'ea', - xbc: 'velit', + name: 'quia', + password: "?Lmk$iyXW19'gSiDR", + proxyCountry: 'uk', + user_agent: 'animi', + xbc: 'nihil', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 77125615..fbbfdb0f 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('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('aut', { + 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 45d93cef..8020146d 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('fugit', { + const responsePromise = client.media.vault.lists.media.add('cum', { 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('fugit', { + const response = await client.media.vault.lists.media.add('cum', { 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('fugit', { + const responsePromise = client.media.vault.lists.media.remove('cum', { 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('fugit', { + const response = await client.media.vault.lists.media.remove('cum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 382fcc0c..427da94a 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('labore', { + 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('labore', { + 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('labore', { 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('labore', { + const response = await client.posts.comments.list('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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 96d399de..b643af69 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 d13ad1ce..6b1dc2fd 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 52a6ce4f..2c91be69 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: ['any'] }, + filter: { tags: ['nlcytpt'] }, 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('velit'); + const responsePromise = client.smartLinks.listClicks('voluptatem'); 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( - 'velit', + 'voluptatem', { 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('in'); + const responsePromise = client.smartLinks.listConversions('officia'); 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( - 'in', + 'officia', { 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('et'); + const responsePromise = client.smartLinks.listFans('sunt'); 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( - 'et', + 'sunt', { 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('molestias'); 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', + 'molestias', { 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('in'); + const responsePromise = client.smartLinks.retrieveCohortArps('nisi'); 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( - 'in', + 'nisi', { 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('possimus'); + const responsePromise = client.smartLinks.retrieveStats('quisquam'); 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( - 'possimus', + 'quisquam', { 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 5712fd05..97397d9e 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: 'maovzhhylccyswgu', tags: ['xgiujyllrqupmkl'] }, + filter: { search: 'ujkcvat', tags: ['wcnfjq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ucfpxpanlqkkvjduxnul', tags: ['tjogxwvq'] }, + filter: { search: 'capqqvgcwpwl', tags: ['yykcymmvdk'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kj', - tags: ['qdctjatpdjzetxni'], + include_smart_links: false, + search: 'gaoyvtlzki', + tags: ['zpk'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tezxbgoigzvqsslwfjtjpxmek', - tags: ['c'], + search: 'zgsbikhdctaqwwk', + tags: ['oknbetavreajkkrapigxzc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 311190de..56d33dd6 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('excepturi', { + const responsePromise = client.stories.highlights.addStory('facilis', { 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('excepturi', { + const response = await client.stories.highlights.addStory('facilis', { 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('excepturi', { + const responsePromise = client.stories.highlights.removeStory('facilis', { 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('excepturi', { + const response = await client.stories.highlights.removeStory('facilis', { 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 7e73dd81..684a8b06 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('voluptas', { 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('voluptas', { 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('voluptas', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aut', { 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('aut', { + 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('doloremque', { 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('dolorum', { + const response = await client.trackingLinks.getStats('doloremque', { 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 45c549e1..4cdebcbb 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolor', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolor', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolor', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolor', { 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('error', { + const responsePromise = client.trialLinks.listSubscribers('sunt', { 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('error', { + const response = await client.trialLinks.listSubscribers('sunt', { 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('fugiat', { - 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('fugiat', { + 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,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('asperiores', { + 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('ipsam', { + const response = await client.trialLinks.retrieveStats('asperiores', { 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 b6d5ec26..8d33193e 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: 'xkjvqdqhgxlntmfvga' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wybzwdztwa' }); 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: 'xkjvqdqhgxlntmfvga' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wybzwdztwa' }); }); // Mock server tests are disabled From c4bd5b1fb739e27c9f3fc9fb56c023961f203598 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:12:37 +0000 Subject: [PATCH 100/309] 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/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 | 13 +++++----- 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 | 26 +++++++++---------- 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 | 18 ++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 105 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2bf41a86..249cf110 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-466df7bcb4d8dc90c8ee79faa1c560b85ab1cffd97a56ed9ee2fd8172edb7bd7.yml -openapi_spec_hash: bf811c8223f39a7e477652afe8e7800f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1889b56b61ae6215904ecc029bb2585aff87f44ee8eb0f4d095a012743f02466.yml +openapi_spec_hash: 947d943b18849afb6bb545c24098755b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda03..06d37c8b 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('id'); + * 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 a7ba1088..731f9076 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', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a7994fcb..d666ec2c 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( - * 'cum', + * 'repellat', * { 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( - * 'cum', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6b557a8f..e7603a07 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( + * 'quasi', + * { + * 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('quasi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 c9a094cf..a84ff073 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 4a76f730..5bc7edb9 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', + * 'doloribus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'officia', + * 'accusamus', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sunt'); + * const response = await client.smartLinks.listFans('saepe'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'molestias', + * 'atque', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nisi'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -168,9 +168,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats( - * 'quisquam', - * ); + * const response = await client.smartLinks.retrieveStats('a'); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 0285d744..861ebb8d 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( - * 'facilis', + * 'a', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('facilis', { + * await client.stories.highlights.removeStory('a', { * 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 f1cfb5c6..c45f9b26 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( - * 'voluptas', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iusto', { + * await client.trackingLinks.getCohortArps('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'doloremque', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9779cf93..30e25ca2 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( - * 'dolor', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolor', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sunt', + * 'nemo', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'asperiores', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c71b3e18..cf8af9ab 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: 'wybzwdztwa' }, + * { name: 'ibjnkgvgsxyomvo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca8..44b93157 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('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 74a6f065..d351a0de 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_type: 'email_password', - cookies: 'qui', + auth_id: 'expedita', + auth_type: 'raw_data', + cookies: 'at', customProxy: { host: 'proxy.example.com', - password: 'gjUi~ua', + password: '_;&Lq`:l,n09/Ow:7!', port: 8080, - username: 'commodi', + username: 'temporibus', }, - email: 'zulauf.brad@example.com', + email: 'sandra34@example.net', force_connect: true, - name: 'quia', - password: "?Lmk$iyXW19'gSiDR", + name: 'aut', + password: 'urriDNN#sCEr-ZXn5>', proxyCountry: 'uk', - user_agent: 'animi', - xbc: 'nihil', + user_agent: 'libero', + xbc: 'asperiores', }, { 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 fbbfdb0f..e9488683 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('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('repellat', { + 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 8020146d..c0ccccc4 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('cum', { + const responsePromise = client.media.vault.lists.media.add('repellat', { 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('cum', { + const response = await client.media.vault.lists.media.add('repellat', { 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('cum', { + const responsePromise = client.media.vault.lists.media.remove('repellat', { 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('cum', { + const response = await client.media.vault.lists.media.remove('repellat', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 427da94a..f2e9d313 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('quasi', { 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('quasi', { 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('quasi', { 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('quasi', { 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 fd74b68f..4ec8acc7 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 b643af69..02883e18 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 6b1dc2fd..d13ad1ce 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 2c91be69..d1bbbaf4 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: ['nlcytpt'] }, + filter: { tags: ['yxvzzmroagghxcoklcuiliyn'] }, 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('voluptatem'); + const responsePromise = client.smartLinks.listClicks('doloribus'); 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( - 'voluptatem', + 'doloribus', { 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('officia'); + const responsePromise = client.smartLinks.listConversions('accusamus'); 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( - 'officia', + 'accusamus', { 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('sunt'); + const responsePromise = client.smartLinks.listFans('saepe'); 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( - 'sunt', + 'saepe', { 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('molestias'); + const responsePromise = client.smartLinks.listSpenders('atque'); 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( - 'molestias', + 'atque', { 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('nisi'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); 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( - 'nisi', + 'voluptatem', { 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('quisquam'); + const responsePromise = client.smartLinks.retrieveStats('a'); 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( - 'quisquam', + '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 97397d9e..38172310 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: 'ujkcvat', tags: ['wcnfjq'] }, + filter: { search: 'foxoxplw', tags: ['syxcgvwpzsabdstrtrcxo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'capqqvgcwpwl', tags: ['yykcymmvdk'] }, + filter: { search: 'elxdlijvlmalwoiooknqtyojp', tags: ['jnlyidovfkwsujodr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gaoyvtlzki', - tags: ['zpk'], + include_smart_links: true, + search: 'bomwetpjsedsnvxfyjesiivm', + tags: ['dmfcpeoqgqlgllvkilebrju'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zgsbikhdctaqwwk', - tags: ['oknbetavreajkkrapigxzc'], + include_smart_links: false, + search: 'co', + tags: ['oguceev'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 56d33dd6..6056b2ac 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('facilis', { + const responsePromise = client.stories.highlights.addStory('a', { 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('facilis', { + const response = await client.stories.highlights.addStory('a', { 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('facilis', { + const responsePromise = client.stories.highlights.removeStory('a', { 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('facilis', { + const response = await client.stories.highlights.removeStory('a', { 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 684a8b06..a9e41da2 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('similique', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('similique', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('similique', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('similique', { 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('ab', { 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('ab', { 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('doloremque', { 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 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('doloremque', { + 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 4cdebcbb..f099ca79 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('dolor', { 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('dolor', { 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('dolor', { 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('dolor', { 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('sunt', { + const responsePromise = client.trialLinks.listSubscribers('nemo', { 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('sunt', { + const response = await client.trialLinks.listSubscribers('nemo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -165,9 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('asperiores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('tempora', { 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('asperiores', { + const response = await client.trialLinks.retrieveStats('tempora', { 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 8d33193e..e433ba67 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: 'wybzwdztwa' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ibjnkgvgsxyomvo' }); 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: 'wybzwdztwa' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ibjnkgvgsxyomvo' }); }); // Mock server tests are disabled From 37d10c068743a3535f8677cd0903ba3fb74f1d29 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 16:12:31 +0000 Subject: [PATCH 101/309] 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 +- 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 | 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 | 26 +++++++++---------- 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, 101 insertions(+), 97 deletions(-) diff --git a/.stats.yml b/.stats.yml index 249cf110..336b8150 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1889b56b61ae6215904ecc029bb2585aff87f44ee8eb0f4d095a012743f02466.yml -openapi_spec_hash: 947d943b18849afb6bb545c24098755b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59dac2df4c84a35fb1f1ce6be21d9c73bff5bfe5f7e8e116914ac2910125f28.yml +openapi_spec_hash: 2c07760d997c59c2b889c3b367b69d93 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8b..a42955ed 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('et'); + * const response = await client.accounts.disconnect( + * 'aliquid', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 731f9076..8f5ad5bc 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', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d666ec2c..66060118 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( - * 'repellat', + * 'dolores', * { 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( - * 'repellat', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e7603a07..e33ad593 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( - * 'quasi', + * 'ipsum', * { * 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('quasi', { + * const comments = await client.posts.comments.list('ipsum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 5bc7edb9..4bb2739f 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( - * 'doloribus', + * 'laboriosam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'accusamus', + * 'molestias', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('saepe'); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -129,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'atque', - * ); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('fuga'); * ``` */ retrieveCohortArps( @@ -168,7 +166,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats('a'); + * const response = await client.smartLinks.retrieveStats( + * 'dignissimos', + * ); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 861ebb8d..27cd4271 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( - * 'a', + * '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('a', { + * 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 c45f9b26..b402938a 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( - * 'similique', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'similique', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ab', { + * await client.trackingLinks.getCohortArps('modi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fuga', + * 'animi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 30e25ca2..c266229e 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('et', { + * const trialLink = await client.trialLinks.retrieve('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'nemo', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('magnam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'tempora', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index cf8af9ab..84e6ee21 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: 'ibjnkgvgsxyomvo' }, + * { name: 'wu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b93157..9084e56e 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('aliquid'); 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 d351a0de..acbec081 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: 'expedita', + auth_id: 'aut', auth_type: 'raw_data', - cookies: 'at', + cookies: 'ipsam', customProxy: { host: 'proxy.example.com', - password: '_;&Lq`:l,n09/Ow:7!', + password: 'KW)S]X', port: 8080, - username: 'temporibus', + username: 'ut', }, - email: 'sandra34@example.net', + email: 'kaylah00@example.net', force_connect: true, - name: 'aut', - password: 'urriDNN#sCEr-ZXn5>', + name: 'qui', + password: '3giC.cV]0[6v@N>U*v4', proxyCountry: 'uk', - user_agent: 'libero', - xbc: 'asperiores', + user_agent: 'consequatur', + xbc: 'esse', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 e9488683..de05d391 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('debitis', { 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('debitis', { 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 c0ccccc4..273bfa0a 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('repellat', { + const responsePromise = client.media.vault.lists.media.add('dolores', { 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('repellat', { + const response = await client.media.vault.lists.media.add('dolores', { 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('repellat', { + const responsePromise = client.media.vault.lists.media.remove('dolores', { 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('repellat', { + const response = await client.media.vault.lists.media.remove('dolores', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index f2e9d313..3569d387 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('quasi', { + 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('quasi', { + 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('quasi', { 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('quasi', { + const response = await client.posts.comments.list('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 d1bbbaf4..7a8cb2be 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: ['yxvzzmroagghxcoklcuiliyn'] }, + filter: { tags: ['pqqkzlpmtpykpppdt'] }, 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('doloribus'); + const responsePromise = client.smartLinks.listClicks('laboriosam'); 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( - 'doloribus', + 'laboriosam', { 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('accusamus'); + const responsePromise = client.smartLinks.listConversions('molestias'); 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( - 'accusamus', + 'molestias', { 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('saepe'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'saepe', + 'ut', { 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('atque'); + const responsePromise = client.smartLinks.listSpenders('ea'); 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( - 'atque', + 'ea', { 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('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('fuga'); 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( - 'voluptatem', + 'fuga', { 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('a'); + const responsePromise = client.smartLinks.retrieveStats('dignissimos'); 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( - 'a', + 'dignissimos', { 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 38172310..80e7a265 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: 'foxoxplw', tags: ['syxcgvwpzsabdstrtrcxo'] }, + filter: { search: 'fejhisumnudvzwdtrljjbf', tags: ['ukcftwc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'elxdlijvlmalwoiooknqtyojp', tags: ['jnlyidovfkwsujodr'] }, + filter: { search: 'mpxhjkrommmreawealcoxmv', tags: ['ddvcxmaqdovx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bomwetpjsedsnvxfyjesiivm', - tags: ['dmfcpeoqgqlgllvkilebrju'], + search: 'oksfualzkeswurjrrym', + tags: ['nmafzxvcedbhhkiwxvmfjasn'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'co', - tags: ['oguceev'], + search: 'gphfxzwctdobwagzj', + tags: ['trykdpgsroitznuyohcppeej'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 6056b2ac..875fdcfa 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('a', { + 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('a', { + 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('a', { + 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('a', { + 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 a9e41da2..d3c2543b 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('similique', { 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('similique', { 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('similique', { 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,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('similique', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('modi', { 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('ab', { + const response = await client.trackingLinks.getCohortArps('modi', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('animi', { 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('fuga', { + const response = await client.trackingLinks.getStats('animi', { 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 f099ca79..2830e910 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('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('et', { 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('et', { 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('et', { 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('nemo', { + 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('nemo', { + const response = await client.trialLinks.listSubscribers('et', { 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('magnam', { + 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('magnam', { 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('tempora', { 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('tempora', { + 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 e433ba67..5f7b5390 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: 'ibjnkgvgsxyomvo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wu' }); 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: 'ibjnkgvgsxyomvo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wu' }); }); // Mock server tests are disabled From 8829b3d3a3539a166c1cb62d1c350736121cf57c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 23:12:35 +0000 Subject: [PATCH 102/309] 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 | 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 ++++++++-------- .../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 | 26 +++++++++---------- 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, 115 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 336b8150..0b5d5e10 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59dac2df4c84a35fb1f1ce6be21d9c73bff5bfe5f7e8e116914ac2910125f28.yml -openapi_spec_hash: 2c07760d997c59c2b889c3b367b69d93 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-65eb15df13708c2eca935e5cac643af48813340782a8d992cbfaeddbf39a982e.yml +openapi_spec_hash: 768d57b20fb71d81f09a2c0b04c15222 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a42955ed..6bb6558e 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( - * 'aliquid', - * ); + * 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 8f5ad5bc..a998f040 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( - * 'debitis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('at', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66060118..91abe1d2 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( - * 'dolores', + * 'nemo', * { 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( - * 'dolores', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e33ad593..b5336b25 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( - * 'ipsum', + * 'dolorem', * { * 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('ipsum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'dolorem', + * { 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..2b04cbb2 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 4bb2739f..00590023 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( - * 'laboriosam', + * 'praesentium', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'molestias', + * 'et', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans( + * 'expedita', + * ); * ``` */ listFans( @@ -129,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders( + * 'perferendis', + * ); * ``` */ listSpenders( @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('fuga'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dignissimos', + * 'recusandae', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..726b57b4 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', + * 'tenetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { + * await client.stories.highlights.removeStory('tenetur', { * 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 b402938a..2083710d 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', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('modi', { + * await client.trackingLinks.getCohortArps('rem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'animi', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c266229e..14753910 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('eum', { - * 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('eum', { - * 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( - * 'et', + * 'asperiores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('magnam', { + * await client.trialLinks.retrieveCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quo', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 84e6ee21..d9c9364f 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: 'wu' }, + * { name: 'juot' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 9084e56e..5756d5ab 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('aliquid'); + 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 acbec081..19c5d0a4 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_type: 'raw_data', - cookies: 'ipsam', + auth_id: 'iure', + auth_type: 'email_password', + cookies: 'quia', customProxy: { host: 'proxy.example.com', - password: 'KW)S]X', + password: '2meT2v^s_;^7', port: 8080, - username: 'ut', + username: 'quia', }, - email: 'kaylah00@example.net', - force_connect: true, - name: 'qui', - password: '3giC.cV]0[6v@N>U*v4', + email: 'lockman.orland@example.org', + force_connect: false, + name: 'autem', + password: 'N|H+Od7/?(', proxyCountry: 'uk', - user_agent: 'consequatur', - xbc: 'esse', + user_agent: 'pariatur', + xbc: 'reprehenderit', }, { 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 de05d391..8bd1d715 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('debitis', { + const responsePromise = client.engagement.messages.getMessageBuyers('at', { 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('debitis', { + const response = await client.engagement.messages.getMessageBuyers('at', { 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 273bfa0a..fa571653 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('dolores', { + const responsePromise = client.media.vault.lists.media.add('nemo', { 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('dolores', { + const response = await client.media.vault.lists.media.add('nemo', { 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('dolores', { + const responsePromise = client.media.vault.lists.media.remove('nemo', { 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('dolores', { + const response = await client.media.vault.lists.media.remove('nemo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3569d387..7b3f804a 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('dolorem', { 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('dolorem', { 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('dolorem', { 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('dolorem', { 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..96d399de 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 7a8cb2be..e6cf5bd5 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: ['pqqkzlpmtpykpppdt'] }, + filter: { tags: ['wxibeenzhvikxnobitutpst'] }, 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('laboriosam'); + 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( - 'laboriosam', + '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('molestias'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'molestias', + 'et', { 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('ut'); + const responsePromise = client.smartLinks.listFans('expedita'); 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( - 'ut', + 'expedita', { 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('ea'); + const responsePromise = client.smartLinks.listSpenders('perferendis'); 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( - 'ea', + 'perferendis', { 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('fuga'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); 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( - 'fuga', + 'et', { 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('dignissimos'); + const responsePromise = client.smartLinks.retrieveStats('recusandae'); 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( - 'dignissimos', + 'recusandae', { 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 80e7a265..66bdf83e 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: 'fejhisumnudvzwdtrljjbf', tags: ['ukcftwc'] }, + filter: { search: 'kvtwnyaeqejternoaty', tags: ['duzwybuxufhakbaqdlkkmx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mpxhjkrommmreawealcoxmv', tags: ['ddvcxmaqdovx'] }, + filter: { search: 'fweg', tags: ['uflnqapvautiqkiuc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'oksfualzkeswurjrrym', - tags: ['nmafzxvcedbhhkiwxvmfjasn'], + include_smart_links: false, + search: 'dk', + tags: ['mpgmmyrtfyrg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gphfxzwctdobwagzj', - tags: ['trykdpgsroitznuyohcppeej'], + include_smart_links: true, + search: 'rg', + tags: ['yhtelkbpyu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..2c83162f 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('tenetur', { 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('tenetur', { 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('tenetur', { 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('tenetur', { 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 d3c2543b..58672ceb 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('nihil', { 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('nihil', { 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('nihil', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('rem', { 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('modi', { + const response = await client.trackingLinks.getCohortArps('rem', { 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('animi', { 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('animi', { + 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 2830e910..f1380abf 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('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('eum', { 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('eum', { 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('eum', { 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('et', { + const responsePromise = client.trialLinks.listSubscribers('asperiores', { 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('asperiores', { 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('magnam', { - 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('magnam', { + 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('at', { 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('at', { 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 5f7b5390..5d4803bf 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: 'wu' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juot' }); 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: 'wu' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juot' }); }); // Mock server tests are disabled From c55e2999f032401ef6cba186e6cfd05153b61e6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:12:30 +0000 Subject: [PATCH 103/309] 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 +++++-------- 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 +++++++------- .../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/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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 22 files changed, 105 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0b5d5e10..21631f9c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-65eb15df13708c2eca935e5cac643af48813340782a8d992cbfaeddbf39a982e.yml -openapi_spec_hash: 768d57b20fb71d81f09a2c0b04c15222 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-125d10acf9ea710900f124509e9fd30603e874637c63131812d43fb1ab5c58e1.yml +openapi_spec_hash: 5cb7d0f539881b8d1486f4aacaca06e2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..3c4bd801 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('natus'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a998f040..d65076b4 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('at', { - * 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 91abe1d2..27b521df 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( - * 'nemo', + * '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( - * 'nemo', + * 'dolore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b5336b25..29a2e385 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( - * 'dolorem', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ad', { + * 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( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ad', { + * 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 00590023..b113c86d 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( - * 'praesentium', - * ); + * const response = await client.smartLinks.listClicks('nam'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'repellendus', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'expedita', - * ); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'perferendis', + * 'sunt', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('saepe'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'recusandae', + * 'tempore', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 726b57b4..9edbda20 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( - * 'tenetur', + * '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('tenetur', { + * 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 2083710d..6576dc35 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( - * 'nihil', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nihil', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rem', { + * await client.trackingLinks.getCohortArps('magni', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'rem', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 14753910..33709dd2 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( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'asperiores', + * 'magnam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('non', { + * await client.trialLinks.retrieveCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'at', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d9c9364f..d597b1e0 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: 'juot' }, + * { name: 'vpzp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..7c39ae68 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('natus'); 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 19c5d0a4..ed89e542 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: 'est', auth_type: 'email_password', - cookies: 'quia', + cookies: 'sit', customProxy: { host: 'proxy.example.com', - password: '2meT2v^s_;^7', + password: 'TH"T@`Oc:j\\S(%HXG', port: 8080, - username: 'quia', + username: 'minus', }, - email: 'lockman.orland@example.org', + email: 'serena23@example.com', force_connect: false, - name: 'autem', - password: 'N|H+Od7/?(', - proxyCountry: 'uk', - user_agent: 'pariatur', - xbc: 'reprehenderit', + name: 'nemo', + password: ',K)[?yCtgC| { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('at', { + 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('at', { + 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 fa571653..0cf478e6 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('nemo', { + 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('nemo', { + 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('nemo', { + 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('nemo', { + 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 69b39e44..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7b3f804a..51be15ba 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('dolorem', { + const responsePromise = client.posts.comments.create('ad', { 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('dolorem', { + const response = await client.posts.comments.create('ad', { 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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ad', { 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('dolorem', { + const response = await client.posts.comments.list('ad', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index e6cf5bd5..95d9c0e0 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: ['wxibeenzhvikxnobitutpst'] }, + filter: { tags: ['miojefasranlujegsnor'] }, 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('praesentium'); + const responsePromise = client.smartLinks.listClicks('nam'); 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( - 'praesentium', + 'nam', { 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('et'); + const responsePromise = client.smartLinks.listConversions('repellendus'); 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( - 'et', + 'repellendus', { 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('expedita'); + 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( - 'expedita', + '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('perferendis'); + 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( - 'perferendis', + '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('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('saepe'); 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( - 'et', + 'saepe', { 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('recusandae'); + const responsePromise = client.smartLinks.retrieveStats('tempore'); 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( - 'recusandae', + 'tempore', { 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 66bdf83e..5d374e85 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: 'kvtwnyaeqejternoaty', tags: ['duzwybuxufhakbaqdlkkmx'] }, + filter: { search: 'lptsinzeudynfmyhcmlauev', tags: ['uvftnavknpipblxkb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fweg', tags: ['uflnqapvautiqkiuc'] }, + filter: { search: 'rqfibflvqd', tags: ['qzfkbeekwbh'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'dk', - tags: ['mpgmmyrtfyrg'], + search: 'zilqrcxczorggfngfmdyz', + tags: ['edwkwdqxawlxcojmmodfcfwwb'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'rg', - tags: ['yhtelkbpyu'], + search: 'byrqshjnbcjaydjj', + tags: ['rgzddqsy'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2c83162f..f9f263e2 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('tenetur', { + 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('tenetur', { + 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('tenetur', { + 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('tenetur', { + 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 58672ceb..53c2783e 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sint', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sint', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sint', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('magni', { 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('rem', { + const response = await client.trackingLinks.getCohortArps('magni', { 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('atque', { 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('atque', { 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 f1380abf..0a14dc53 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('quo', { 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('quo', { 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('quo', { 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('quo', { 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('asperiores', { + const responsePromise = client.trialLinks.listSubscribers('magnam', { 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('asperiores', { + const response = await client.trialLinks.listSubscribers('magnam', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('omnis', { + 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('non', { + const response = await client.trialLinks.retrieveCohortArps('omnis', { 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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('sapiente', { 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('at', { + const response = await client.trialLinks.retrieveStats('sapiente', { 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 5d4803bf..6f5de938 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: 'juot' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpzp' }); 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: 'juot' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpzp' }); }); // Mock server tests are disabled From 58d1f67f10575b1d9bc3fa50ae9dbb03c38ed255 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 13:12:39 +0000 Subject: [PATCH 104/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/authenticate.ts | 2 ++ src/resources/data-exports.ts | 11 ++++---- 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 | 6 ++--- 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 | 21 ++++++++------- .../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 | 12 ++++----- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 107 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index 21631f9c..75c4dc48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-125d10acf9ea710900f124509e9fd30603e874637c63131812d43fb1ab5c58e1.yml -openapi_spec_hash: 5cb7d0f539881b8d1486f4aacaca06e2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4b6927860931b57f8ed17190991d139a662da5fe147cc7d872baf163da31edf3.yml +openapi_spec_hash: 156f8c8acdf021ea023d1db57db8f73f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c4bd801..2765336c 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('natus'); + * const response = await client.accounts.disconnect('totam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/authenticate.ts b/src/resources/authenticate.ts index d10eea6c..b0e45682 100644 --- a/src/resources/authenticate.ts +++ b/src/resources/authenticate.ts @@ -460,6 +460,8 @@ export interface AuthenticateSubmit2faResponse { } export interface AuthenticateStartParams { + _internal_automatic_syncs_disabled?: boolean; + /** * The auth_id from OnlyFans session cookies. Required when auth_type is * `raw_data`. diff --git a/src/resources/data-exports.ts b/src/resources/data-exports.ts index 299281d1..c1631a20 100644 --- a/src/resources/data-exports.ts +++ b/src/resources/data-exports.ts @@ -592,11 +592,12 @@ export interface DataExportCreateParams { * (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), * `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum * photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - * (optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date), - * `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 - * date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date, - * profile added to DB before), `instagram` (optional), `twitter` (optional), - * `tiktok` (optional), `maxResults` (optional, limit results). + * (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum + * subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` + * (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile + * added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB + * before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), + * `maxResults` (optional, limit results). */ options?: { [key: string]: unknown }; } diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d65076b4..64266b19 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', + * 'sunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 27b521df..2778b10f 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', + * 'fugiat', * { 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', + * 'fugiat', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 29a2e385..ca82093e 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('ad', { + * 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('ad', { + * 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 09d6973d..e20f70d1 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 2b04cbb2..41feb4c0 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 b113c86d..0aeb4a88 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('nam'); + * const response = await client.smartLinks.listClicks( + * 'necessitatibus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'repellendus', + * 'quo', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('omnis'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'distinctio', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('saepe'); + * await client.smartLinks.retrieveCohortArps('reiciendis'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'tempore', + * 'quia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9edbda20..3e468636 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', + * 'in', * { * 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('in', { * 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 6576dc35..043e19d7 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( - * 'sint', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sint', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'atque', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 33709dd2..54808e6d 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('quo', { + * const trialLink = await client.trialLinks.retrieve('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quo', { + * const trialLink = await client.trialLinks.delete('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'magnam', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('omnis', { + * await client.trialLinks.retrieveCohortArps('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sapiente', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d597b1e0..97bea0d1 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: 'vpzp' }, + * { name: 'sastftobgbhmqibh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7c39ae68..08217396 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('natus'); + const responsePromise = client.accounts.disconnect('totam'); 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 ed89e542..70801f13 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,23 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'est', - auth_type: 'email_password', - cookies: 'sit', + _internal_automatic_syncs_disabled: false, + auth_id: 'quidem', + auth_type: 'raw_data', + cookies: 'inventore', customProxy: { host: 'proxy.example.com', - password: 'TH"T@`Oc:j\\S(%HXG', + password: "p~}9w:4'FL(UKv`", port: 8080, - username: 'minus', + username: 'eaque', }, - email: 'serena23@example.com', + email: 'florine.smith@example.net', force_connect: false, - name: 'nemo', - password: ',K)[?yCtgC| { // 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('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('quia', { + 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 0cf478e6..332880b5 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('fugiat', { 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('fugiat', { 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('fugiat', { 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('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 51be15ba..548a48cb 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('ad', { + 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('ad', { + 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('ad', { 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('ad', { + 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 ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 96d399de..c1510622 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 d13ad1ce..6b1dc2fd 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 95d9c0e0..5a2c25dd 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: ['miojefasranlujegsnor'] }, + filter: { tags: ['fpimrktlfnyom'] }, 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('nam'); + const responsePromise = client.smartLinks.listClicks('necessitatibus'); 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( - 'nam', + 'necessitatibus', { 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('repellendus'); + const responsePromise = client.smartLinks.listConversions('quo'); 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( - 'repellendus', + 'quo', { 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('et'); + const responsePromise = client.smartLinks.listFans('omnis'); 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( - 'et', + 'omnis', { 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('distinctio'); 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', + 'distinctio', { 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('saepe'); + const responsePromise = client.smartLinks.retrieveCohortArps('reiciendis'); 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( - 'saepe', + 'reiciendis', { 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('tempore'); + const responsePromise = client.smartLinks.retrieveStats('quia'); 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( - 'tempore', + '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 5d374e85..1c37fbd7 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: 'lptsinzeudynfmyhcmlauev', tags: ['uvftnavknpipblxkb'] }, + filter: { search: 'lxhyk', tags: ['kxrufoyczdisscu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rqfibflvqd', tags: ['qzfkbeekwbh'] }, + filter: { search: 'vddytcrguagazrqokmqfhpf', tags: ['fdld'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zilqrcxczorggfngfmdyz', - tags: ['edwkwdqxawlxcojmmodfcfwwb'], + search: 'dzckulszumzzguh', + tags: ['qbkvx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'byrqshjnbcjaydjj', - tags: ['rgzddqsy'], + search: 'sodxncfkwlukxkxkfqsjqemb', + tags: ['kyfazhbvjpdg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f9f263e2..9bbc0c9f 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('in', { 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('in', { 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('in', { 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('in', { 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 53c2783e..0d92b270 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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nobis', { 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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nobis', { 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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,7 +92,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('doloribus', { 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('atque', { + const response = await client.trackingLinks.getStats('doloribus', { 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 0a14dc53..4fea098d 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('vel', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('vel', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('vel', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('vel', { 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('magnam', { + 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('magnam', { + 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('omnis', { + const responsePromise = client.trialLinks.retrieveCohortArps('nulla', { 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('omnis', { + const response = await client.trialLinks.retrieveCohortArps('nulla', { 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ea', { 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('sapiente', { + const response = await client.trialLinks.retrieveStats('ea', { 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 6f5de938..a1b358a0 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: 'vpzp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sastftobgbhmqibh' }); 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: 'vpzp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sastftobgbhmqibh' }); }); // Mock server tests are disabled From 316d82489708356f77ff704c63fd5130d9f8254e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:12:32 +0000 Subject: [PATCH 105/309] 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 | 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 ++++++++--------- 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 | 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 | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 111 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75c4dc48..121535df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4b6927860931b57f8ed17190991d139a662da5fe147cc7d872baf163da31edf3.yml -openapi_spec_hash: 156f8c8acdf021ea023d1db57db8f73f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c715f3e202d1d4b7398b9d9ba271169d4d4bcbd9c99a020a16753e21130fe223.yml +openapi_spec_hash: 2036b74457c0d27d7fa535980e29ab08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2765336c..ab94d0d8 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('totam'); + * 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 64266b19..85198dd7 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', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2778b10f..8ef9d599 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( - * 'fugiat', + * '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( - * 'fugiat', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..14943aa0 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( + * 'cupiditate', + * { + * 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( + * 'cupiditate', + * { 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 e20f70d1..599a9525 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/smart-links.ts b/src/resources/smart-links.ts index 0aeb4a88..17cb8d63 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( - * 'necessitatibus', - * ); + * const response = await client.smartLinks.listClicks('eum'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quo', + * 'itaque', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('omnis'); + * const response = await client.smartLinks.listFans('error'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'distinctio', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('reiciendis'); + * await client.smartLinks.retrieveCohortArps('doloribus'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e468636..46c335d7 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( - * 'in', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('in', { + * await client.stories.highlights.removeStory('sit', { * 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 043e19d7..d23b542b 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( - * 'nobis', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nobis', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('magni', { + * await client.trackingLinks.getCohortArps('consequatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'doloribus', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 54808e6d..0c732e51 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('vel', { + * const trialLink = await client.trialLinks.retrieve('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vel', { + * const trialLink = await client.trialLinks.delete('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nulla', { + * await client.trialLinks.retrieveCohortArps('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ea', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 97bea0d1..c409ad40 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: 'sastftobgbhmqibh' }, + * { name: 'nsavenchjsdkznkcy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 08217396..da0a05cf 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('totam'); + 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 70801f13..0e4c6cc0 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -63,22 +63,22 @@ describe('resource authenticate', () => { client.authenticate.start( { _internal_automatic_syncs_disabled: false, - auth_id: 'quidem', - auth_type: 'raw_data', - cookies: 'inventore', + auth_id: 'architecto', + auth_type: 'email_password', + cookies: 'molestiae', customProxy: { host: 'proxy.example.com', - password: "p~}9w:4'FL(UKv`", + password: '4LTo`WYrb.P', port: 8080, - username: 'eaque', + username: 'provident', }, - email: 'florine.smith@example.net', - force_connect: false, - name: 'sed', - password: 'uj!7M%g[|P6|', - proxyCountry: 'us', - user_agent: 'ut', - xbc: 'ut', + email: 'levi.wisozk@example.net', + force_connect: true, + name: 'ullam', + password: 'fqfGHi-Mn', + proxyCountry: 'uk', + user_agent: 'ratione', + 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 c17a81d6..229de463 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 94248f81..3a33d677 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('tempore', { 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('tempore', { 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 332880b5..a65d65ec 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('fugiat', { + 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('fugiat', { + 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('fugiat', { + 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('fugiat', { + 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 70f616cd..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..bf831d2c 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('cupiditate', { 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('cupiditate', { 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('cupiditate', { 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('cupiditate', { 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 fd74b68f..8e5b0566 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5a2c25dd..e743819a 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: ['fpimrktlfnyom'] }, + filter: { tags: ['zsreuxusjnrovbo'] }, 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('necessitatibus'); + const responsePromise = client.smartLinks.listClicks('eum'); 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( - 'necessitatibus', + 'eum', { 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('quo'); + const responsePromise = client.smartLinks.listConversions('itaque'); 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( - 'quo', + 'itaque', { 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('omnis'); + const responsePromise = client.smartLinks.listFans('error'); 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( - 'omnis', + 'error', { 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('distinctio'); + const responsePromise = client.smartLinks.listSpenders('et'); 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( - 'distinctio', + 'et', { 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('reiciendis'); + const responsePromise = client.smartLinks.retrieveCohortArps('doloribus'); 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( - 'reiciendis', + 'doloribus', { 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('quia'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); 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( - 'quia', + '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 1c37fbd7..51b24e79 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: 'lxhyk', tags: ['kxrufoyczdisscu'] }, + filter: { search: 'inpeefccybelehkble', tags: ['iihurhvgnf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'vddytcrguagazrqokmqfhpf', tags: ['fdld'] }, + filter: { search: 'sqpmu', tags: ['ervflrleustfcnzchgmoety'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'dzckulszumzzguh', - tags: ['qbkvx'], + include_smart_links: true, + search: 'ahontrcghzhvtlww', + tags: ['uholgkiqaubycpre'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'sodxncfkwlukxkxkfqsjqemb', - tags: ['kyfazhbvjpdg'], + search: 'jswflxttlxkuwcnuwlbjdpyw', + tags: ['edr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9bbc0c9f..7eb3d1f5 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('in', { + const responsePromise = client.stories.highlights.addStory('sit', { 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('in', { + const response = await client.stories.highlights.addStory('sit', { 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('in', { + const responsePromise = client.stories.highlights.removeStory('sit', { 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('in', { + const response = await client.stories.highlights.removeStory('sit', { 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 0d92b270..d34444dd 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('nobis', { 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('nobis', { 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('nobis', { 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('nobis', { 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('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('consequatur', { + 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('magni', { + const response = await client.trackingLinks.getCohortArps('consequatur', { 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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('deleniti', { 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('doloribus', { + const response = await client.trackingLinks.getStats('deleniti', { 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 4fea098d..7d52e185 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aut', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aut', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aut', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aut', { 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('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('et', { + const response = await client.trialLinks.listSubscribers('consequatur', { 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('nulla', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('in', { 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('nulla', { + const response = await client.trialLinks.retrieveCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('temporibus', { + 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('ea', { + const response = await client.trialLinks.retrieveStats('temporibus', { 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 a1b358a0..252da85f 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: 'sastftobgbhmqibh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nsavenchjsdkznkcy' }); 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: 'sastftobgbhmqibh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nsavenchjsdkznkcy' }); }); // Mock server tests are disabled From 3b4c759f314a0f6ca3dc79a0e7880db08bf0b02b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:12:29 +0000 Subject: [PATCH 106/309] 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/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 | 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 +++--- 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 | 14 +++++----- .../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 | 8 ++++-- 26 files changed, 114 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 121535df..8999d039 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c715f3e202d1d4b7398b9d9ba271169d4d4bcbd9c99a020a16753e21130fe223.yml -openapi_spec_hash: 2036b74457c0d27d7fa535980e29ab08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d0abf343b151483fef7b3f9336312ea10fe344678fcaef872aeb79208476d0.yml +openapi_spec_hash: 09419fb52bdc9eed8527dac1ac0f54ff config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ab94d0d8..f0d6d027 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('libero'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 85198dd7..4d7f8582 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( - * 'tempore', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ef9d599..59b57ebb 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', + * 'dicta', * { 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', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 14943aa0..3b983da3 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( - * 'cupiditate', + * '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( - * 'cupiditate', + * 'deserunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..c9a094cf 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 17cb8d63..6d1f48bb 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('eum'); + * const response = await client.smartLinks.listClicks( + * 'nostrum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'itaque', + * 'officiis', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('error'); + * const response = await client.smartLinks.listFans('et'); * ``` */ 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( + * 'rerum', + * ); * ``` */ listSpenders( @@ -143,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('doloribus'); + * await client.smartLinks.retrieveCohortArps('quia'); * ``` */ retrieveCohortArps( @@ -165,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'vitae', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 46c335d7..91024512 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( - * 'sit', + * 'consequuntur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequuntur', + * { + * 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 d23b542b..8920ea26 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', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quis', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('consequatur', { + * await client.trackingLinks.getCohortArps('quae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'deleniti', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0c732e51..d3228a43 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('aut', { + * const trialLink = await client.trialLinks.retrieve('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('aut', { + * const trialLink = await client.trialLinks.delete('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consequatur', + * 'expedita', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('in', { + * await client.trialLinks.retrieveCohortArps('cumque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'temporibus', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c409ad40..ef17dc6e 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: 'nsavenchjsdkznkcy' }, + * { name: 'sasjvijtuprqonjxtwnbmx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index da0a05cf..e725eedf 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('libero'); 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 0e4c6cc0..725b0801 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,23 +62,23 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - _internal_automatic_syncs_disabled: false, - auth_id: 'architecto', - auth_type: 'email_password', - cookies: 'molestiae', + _internal_automatic_syncs_disabled: true, + auth_id: 'voluptate', + auth_type: 'mobile_app', + cookies: 'quod', customProxy: { host: 'proxy.example.com', - password: '4LTo`WYrb.P', + password: 'Zfo!5c.^', port: 8080, - username: 'provident', + username: 'magnam', }, - email: 'levi.wisozk@example.net', + email: 'gislason.dolores@example.org', force_connect: true, - name: 'ullam', - password: 'fqfGHi-Mn', + name: 'voluptate', + password: '!o55+s', proxyCountry: 'uk', - user_agent: 'ratione', - xbc: 'molestiae', + user_agent: 'et', + xbc: 'sed', }, { 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 3a33d677..03c5bc56 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('tempore', { + const responsePromise = client.engagement.messages.getMessageBuyers('perferendis', { 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('tempore', { + const response = await client.engagement.messages.getMessageBuyers('perferendis', { 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 a65d65ec..fb54c736 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('dicta', { 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('dicta', { 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('dicta', { 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('dicta', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bf831d2c..4dff22a8 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('cupiditate', { + 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('cupiditate', { + 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('cupiditate', { 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('cupiditate', { + 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 9bf5999b..ad49ad2e 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 e743819a..2364880a 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: ['zsreuxusjnrovbo'] }, + filter: { tags: ['rtwhn'] }, 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('eum'); + const responsePromise = client.smartLinks.listClicks('nostrum'); 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( - 'eum', + 'nostrum', { 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('itaque'); + const responsePromise = client.smartLinks.listConversions('officiis'); 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( - 'itaque', + 'officiis', { 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('error'); + 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( - 'error', + '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('et'); + const responsePromise = client.smartLinks.listSpenders('rerum'); 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( - 'et', + 'rerum', { 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('doloribus'); + const responsePromise = client.smartLinks.retrieveCohortArps('quia'); 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( - 'doloribus', + 'quia', { 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('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('vitae'); 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( - 'voluptatem', + 'vitae', { 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 51b24e79..91282619 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: 'inpeefccybelehkble', tags: ['iihurhvgnf'] }, + filter: { search: 'to', tags: ['nfoejzqszqjczntk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'sqpmu', tags: ['ervflrleustfcnzchgmoety'] }, + filter: { search: 'r', tags: ['wkqwdnjyluis'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ahontrcghzhvtlww', - tags: ['uholgkiqaubycpre'], + search: 'ugrlipgdjwxjedc', + tags: ['yhjbdysqpjzlspihryoz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jswflxttlxkuwcnuwlbjdpyw', - tags: ['edr'], + include_smart_links: false, + search: 'ljpfbwedzhlojptvm', + tags: ['l'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7eb3d1f5..7432ade3 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('sit', { + const responsePromise = client.stories.highlights.addStory('consequuntur', { 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('sit', { + const response = await client.stories.highlights.addStory('consequuntur', { 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('sit', { + const responsePromise = client.stories.highlights.removeStory('consequuntur', { 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('sit', { + const response = await client.stories.highlights.removeStory('consequuntur', { 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 d34444dd..cd041995 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('officiis', { 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('officiis', { 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('officiis', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('consequatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quae', { 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('consequatur', { + const response = await client.trackingLinks.getCohortArps('quae', { 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('deleniti', { 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; @@ -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('deleniti', { + 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 7d52e185..1f8dd41d 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('hic', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('hic', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('hic', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('hic', { 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('expedita', { 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('expedita', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('cumque', { + 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('in', { + const response = await client.trialLinks.retrieveCohortArps('cumque', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('temporibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('velit', { 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('temporibus', { + const response = await client.trialLinks.retrieveStats('velit', { 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 252da85f..9c41d068 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: 'nsavenchjsdkznkcy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'sasjvijtuprqonjxtwnbmx', + }); 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: 'nsavenchjsdkznkcy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'sasjvijtuprqonjxtwnbmx', + }); }); // Mock server tests are disabled From 86f8ba812c11263ecd6c6e207ea255fcbc9d0ff0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 17:12:32 +0000 Subject: [PATCH 107/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/authenticate.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 | 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 | 25 +++++++++--------- .../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 | 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, 112 insertions(+), 126 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8999d039..ddb5b0c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d0abf343b151483fef7b3f9336312ea10fe344678fcaef872aeb79208476d0.yml -openapi_spec_hash: 09419fb52bdc9eed8527dac1ac0f54ff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ca8a87d0f54fdf9922c090c17f5ee283468321eec53f061132c4524c29cdf26.yml +openapi_spec_hash: e31a26532527e5408227d7eafb336f99 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f0d6d027..d62847e9 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('libero'); + * const response = await client.accounts.disconnect('non'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/authenticate.ts b/src/resources/authenticate.ts index b0e45682..d10eea6c 100644 --- a/src/resources/authenticate.ts +++ b/src/resources/authenticate.ts @@ -460,8 +460,6 @@ export interface AuthenticateSubmit2faResponse { } export interface AuthenticateStartParams { - _internal_automatic_syncs_disabled?: boolean; - /** * The auth_id from OnlyFans session cookies. Required when auth_type is * `raw_data`. diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4d7f8582..85efb683 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( - * 'perferendis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 59b57ebb..8ecd2f5d 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( - * 'dicta', + * 'modi', * { 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( - * 'dicta', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3b983da3..33a40fdf 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( - * 'deserunt', - * { - * 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( - * 'deserunt', - * { 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 c9a094cf..a84ff073 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 6d1f48bb..d029cd7e 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( - * 'nostrum', + * 'voluptas', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'officiis', + * 'voluptatem', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('labore'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rerum', + * 'sed', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quia'); + * await client.smartLinks.retrieveCohortArps('eveniet'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'vitae', + * 'doloribus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 91024512..201d4506 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( - * 'consequuntur', + * 'quisquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequuntur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('quisquam', { + * 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 8920ea26..24b42209 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( - * 'officiis', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'officiis', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quae', { + * await client.trackingLinks.getCohortArps('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'amet', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d3228a43..675fd56c 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('hic', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'nobis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('hic', { + * const trialLink = await client.trialLinks.delete('nobis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'expedita', + * 'exercitationem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('cumque', { + * await client.trialLinks.retrieveCohortArps('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'velit', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ef17dc6e..51c6f93c 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: 'sasjvijtuprqonjxtwnbmx' }, + * { name: 'hmrbsnivyh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e725eedf..f8c6d986 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('libero'); + const responsePromise = client.accounts.disconnect('non'); 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 725b0801..3283d2ed 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,23 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - _internal_automatic_syncs_disabled: true, - auth_id: 'voluptate', - auth_type: 'mobile_app', - cookies: 'quod', + auth_id: 'rerum', + auth_type: 'raw_data', + cookies: 'omnis', customProxy: { host: 'proxy.example.com', - password: 'Zfo!5c.^', + password: 'i"D#\'T22He3pI', port: 8080, - username: 'magnam', + username: 'veniam', }, - email: 'gislason.dolores@example.org', - force_connect: true, - name: 'voluptate', - password: '!o55+s', - proxyCountry: 'uk', - user_agent: 'et', - xbc: 'sed', + email: 'mason37@example.com', + force_connect: false, + name: 'officia', + password: '#SS&Pc', + proxyCountry: 'us', + user_agent: 'culpa', + xbc: 'voluptatem', }, { 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 03c5bc56..b2058d8d 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('perferendis', { + const responsePromise = client.engagement.messages.getMessageBuyers('non', { 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('perferendis', { + const response = await client.engagement.messages.getMessageBuyers('non', { 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 fb54c736..06456e9f 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('dicta', { + const responsePromise = client.media.vault.lists.media.add('modi', { 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('dicta', { + const response = await client.media.vault.lists.media.add('modi', { 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('dicta', { + const responsePromise = client.media.vault.lists.media.remove('modi', { 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('dicta', { + const response = await client.media.vault.lists.media.remove('modi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4dff22a8..e56adcd7 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('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('deserunt', { + 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('deserunt', { 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('deserunt', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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 2364880a..be4899d9 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: ['rtwhn'] }, + filter: { tags: ['e'] }, 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('nostrum'); + const responsePromise = client.smartLinks.listClicks('voluptas'); 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( - 'nostrum', + 'voluptas', { 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('officiis'); + const responsePromise = client.smartLinks.listConversions('voluptatem'); 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( - 'officiis', + 'voluptatem', { 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('et'); + const responsePromise = client.smartLinks.listFans('labore'); 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( - 'et', + 'labore', { 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('rerum'); + const responsePromise = client.smartLinks.listSpenders('sed'); 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( - 'rerum', + 'sed', { 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('quia'); + const responsePromise = client.smartLinks.retrieveCohortArps('eveniet'); 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( - 'quia', + 'eveniet', { 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('vitae'); + const responsePromise = client.smartLinks.retrieveStats('doloribus'); 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( - 'vitae', + 'doloribus', { 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 91282619..0d77088a 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: 'to', tags: ['nfoejzqszqjczntk'] }, + filter: { search: 'ezqajlha', tags: ['sbi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'r', tags: ['wkqwdnjyluis'] }, + filter: { search: 'aubntwtdvvfmufeegmn', tags: ['cz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ugrlipgdjwxjedc', - tags: ['yhjbdysqpjzlspihryoz'], + search: 'pppzw', + tags: ['wwavhqfvlzll'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ljpfbwedzhlojptvm', - tags: ['l'], + include_smart_links: true, + search: 'stlczf', + tags: ['wkonqzxhjpgvyoiaraxrznyoe'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7432ade3..61ba21c9 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('consequuntur', { + const responsePromise = client.stories.highlights.addStory('quisquam', { 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('consequuntur', { + const response = await client.stories.highlights.addStory('quisquam', { 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('consequuntur', { + const responsePromise = client.stories.highlights.removeStory('quisquam', { 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('consequuntur', { + const response = await client.stories.highlights.removeStory('quisquam', { 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 cd041995..1f6bfa39 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('temporibus', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('temporibus', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('temporibus', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('sint', { 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('quae', { + const response = await client.trackingLinks.getCohortArps('sint', { 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('quo', { 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('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 1f8dd41d..55fa38e3 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('nobis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('nobis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('nobis', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('nobis', { 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('expedita', { + const responsePromise = client.trialLinks.listSubscribers('exercitationem', { 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('expedita', { + const response = await client.trialLinks.listSubscribers('exercitationem', { 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('cumque', { + 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('cumque', { + 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('velit', { 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('velit', { + 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 9c41d068..d0625cb7 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: 'sasjvijtuprqonjxtwnbmx', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hmrbsnivyh' }); 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: 'sasjvijtuprqonjxtwnbmx', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hmrbsnivyh' }); }); // Mock server tests are disabled From 6b4c186dec4378e46c32c7f27948f5699c6a80fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 19:12:38 +0000 Subject: [PATCH 108/309] 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 | 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 | 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 | 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 | 4 +-- 27 files changed, 117 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index ddb5b0c4..0b022882 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ca8a87d0f54fdf9922c090c17f5ee283468321eec53f061132c4524c29cdf26.yml -openapi_spec_hash: e31a26532527e5408227d7eafb336f99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-389700aa8616bd4a08bfeea379ef64b22614ecd4e38f87777d569b3a5689c727.yml +openapi_spec_hash: 96b9e35a69e7b5385289875a017f3e7a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d62847e9..ee756aa2 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('non'); + * const response = await client.accounts.disconnect( + * 'voluptas', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 85efb683..7c2fd843 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('non', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'voluptatum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ecd2f5d..8f016670 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( - * 'modi', + * 'reiciendis', * { 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( - * 'modi', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..a0fb81c1 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( + * 'asperiores', + * { + * 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( + * 'asperiores', + * { 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..c9a094cf 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 d029cd7e..4e615c44 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( - * 'voluptas', + * 'aliquid', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptatem', + * 'qui', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('labore'); + * const response = await client.smartLinks.listFans('animi'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sed', + * 'quia', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eveniet'); + * await client.smartLinks.retrieveCohortArps('aspernatur'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'doloribus', + * 'atque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 201d4506..e61412d7 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( - * 'quisquam', + * 'quasi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quisquam', { + * await client.stories.highlights.removeStory('quasi', { * 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 24b42209..8052d246 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( - * 'temporibus', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'temporibus', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sint', { + * await client.trackingLinks.getCohortArps('mollitia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'quo', - * { 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 675fd56c..627afbc0 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( - * 'nobis', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nobis', { + * const trialLink = await client.trialLinks.delete('maxime', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'exercitationem', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ullam', { + * await client.trialLinks.retrieveCohortArps('aliquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 51c6f93c..f5c9b928 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: 'hmrbsnivyh' }, + * { name: 'muijqcrfy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f8c6d986..44c2278f 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('non'); + 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 3283d2ed..ca5c84c5 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: 'rerum', - auth_type: 'raw_data', - cookies: 'omnis', + auth_id: 'expedita', + auth_type: 'mobile_app', + cookies: 'voluptatibus', customProxy: { host: 'proxy.example.com', - password: 'i"D#\'T22He3pI', + password: ')b6uW($CD,3p<==*[', port: 8080, - username: 'veniam', + username: 'voluptas', }, - email: 'mason37@example.com', + email: 'hermiston.yasmine@example.com', force_connect: false, - name: 'officia', - password: '#SS&Pc', + name: 'fuga', + password: "'c~O}w:GY0T2ff", proxyCountry: 'us', - user_agent: 'culpa', - xbc: 'voluptatem', + user_agent: 'possimus', + xbc: 'natus', }, { 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 b2058d8d..5ec1650c 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('non', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptatum', { 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('non', { + const response = await client.engagement.messages.getMessageBuyers('voluptatum', { 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 06456e9f..94f55b99 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('modi', { + const responsePromise = client.media.vault.lists.media.add('reiciendis', { 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('modi', { + const response = await client.media.vault.lists.media.add('reiciendis', { 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('modi', { + const responsePromise = client.media.vault.lists.media.remove('reiciendis', { 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('modi', { + const response = await client.media.vault.lists.media.remove('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..4664aa80 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('asperiores', { 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('asperiores', { 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('asperiores', { 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('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..b643af69 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 be4899d9..9215becf 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: ['e'] }, + filter: { tags: ['ammnqrnzyeuinmaiamyk'] }, 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('voluptas'); + const responsePromise = client.smartLinks.listClicks('aliquid'); 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( - 'voluptas', + 'aliquid', { 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('voluptatem'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'voluptatem', + 'qui', { 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('labore'); + const responsePromise = client.smartLinks.listFans('animi'); 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( - 'labore', + 'animi', { 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('sed'); + const responsePromise = client.smartLinks.listSpenders('quia'); 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( - 'sed', + 'quia', { 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('eveniet'); + const responsePromise = client.smartLinks.retrieveCohortArps('aspernatur'); 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( - 'eveniet', + 'aspernatur', { 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('doloribus'); + const responsePromise = client.smartLinks.retrieveStats('atque'); 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( - 'doloribus', + 'atque', { 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 0d77088a..b97423c6 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: 'ezqajlha', tags: ['sbi'] }, + filter: { search: 'hvereuykb', tags: ['vptietgarfzx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'aubntwtdvvfmufeegmn', tags: ['cz'] }, + filter: { search: 'acbpdxbikgdvhcc', tags: ['mvi'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'pppzw', - tags: ['wwavhqfvlzll'], + include_smart_links: false, + search: 'aamuvdijpepmktjmjdbuqasl', + tags: ['kj'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'stlczf', - tags: ['wkonqzxhjpgvyoiaraxrznyoe'], + search: 't', + tags: ['rbcqzizzmcn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 61ba21c9..396ca635 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('quisquam', { + const responsePromise = client.stories.highlights.addStory('quasi', { 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('quisquam', { + const response = await client.stories.highlights.addStory('quasi', { 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('quisquam', { + const responsePromise = client.stories.highlights.removeStory('quasi', { 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('quisquam', { + const response = await client.stories.highlights.removeStory('quasi', { 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 1f6bfa39..c30dd8d3 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('error', { 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('error', { 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('error', { 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('error', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('mollitia', { + 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('sint', { + const response = await client.trackingLinks.getCohortArps('mollitia', { 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('in', { 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('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 55fa38e3..66a2665e 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('maxime', { 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('maxime', { 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('maxime', { 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('maxime', { 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('exercitationem', { + 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('exercitationem', { + 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('ullam', { + const responsePromise = client.trialLinks.retrieveCohortArps('aliquam', { 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('aliquam', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ipsum', { 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('aut', { + const response = await client.trialLinks.retrieveStats('ipsum', { 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 d0625cb7..a7cd2f1e 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: 'hmrbsnivyh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'muijqcrfy' }); 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: 'hmrbsnivyh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'muijqcrfy' }); }); // Mock server tests are disabled From ee2c0d776f70e34442181bb355bccda787a756b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:12:31 +0000 Subject: [PATCH 109/309] 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 | 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 | 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 +++--- 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 | 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 +-- 25 files changed, 106 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0b022882..c852266f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-389700aa8616bd4a08bfeea379ef64b22614ecd4e38f87777d569b3a5689c727.yml -openapi_spec_hash: 96b9e35a69e7b5385289875a017f3e7a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd3284d3cbf3b4ea945b6e874659e0c37fa925a84943a52896991146e8c4f532.yml +openapi_spec_hash: 9117c96bbcef0da26e33ed473a08004f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ee756aa2..1485f414 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( - * 'voluptas', - * ); + * const response = await client.accounts.disconnect('itaque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7c2fd843..83e70a63 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( - * 'voluptatum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('sed', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8f016670..a0e5582a 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( - * 'reiciendis', + * 'omnis', * { 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( - * 'reiciendis', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a0fb81c1..0a12a142 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( - * 'asperiores', + * 'magnam', * { * 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( - * 'asperiores', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 4e615c44..abf35eee 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( - * 'aliquid', + * 'nihil', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'dolorem', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('animi'); + * const response = await client.smartLinks.listFans( + * 'distinctio', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'ipsam', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aspernatur'); + * await client.smartLinks.retrieveCohortArps('sapiente'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'atque', + * 'quas', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e61412d7..e6a4043e 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( - * 'quasi', + * 'natus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quasi', { + * await client.stories.highlights.removeStory('natus', { * 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 8052d246..0c32e183 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( - * 'error', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'error', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('mollitia', { + * await client.trackingLinks.getCohortArps('officiis', { * 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( + * 'dicta', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 627afbc0..daee2e31 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( - * 'maxime', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('maxime', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'molestiae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'dolores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aliquam', { + * await client.trialLinks.retrieveCohortArps('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsum', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f5c9b928..6debfe08 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: 'muijqcrfy' }, + * { name: 'layoo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44c2278f..f12ced8a 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('itaque'); 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 ca5c84c5..3a9bcc3b 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: 'expedita', - auth_type: 'mobile_app', - cookies: 'voluptatibus', + auth_id: 'voluptatum', + auth_type: 'email_password', + cookies: 'nostrum', customProxy: { host: 'proxy.example.com', - password: ')b6uW($CD,3p<==*[', + password: 'ew6F"+#:ExUKv)i_', port: 8080, - username: 'voluptas', + username: 'enim', }, - email: 'hermiston.yasmine@example.com', + email: 'horace.watsica@example.com', force_connect: false, - name: 'fuga', - password: "'c~O}w:GY0T2ff", - proxyCountry: 'us', - user_agent: 'possimus', - xbc: 'natus', + name: 'repellat', + password: 'v?Sg%d]j&@M:=m(\\@', + proxyCountry: 'uk', + user_agent: 'fugit', + xbc: 'magni', }, { 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 5ec1650c..d6801448 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('voluptatum', { + const responsePromise = client.engagement.messages.getMessageBuyers('sed', { 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('voluptatum', { + const response = await client.engagement.messages.getMessageBuyers('sed', { 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 94f55b99..68cadb73 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('reiciendis', { + const responsePromise = client.media.vault.lists.media.add('omnis', { 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('reiciendis', { + const response = await client.media.vault.lists.media.add('omnis', { 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('reiciendis', { + const responsePromise = client.media.vault.lists.media.remove('omnis', { 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('reiciendis', { + const response = await client.media.vault.lists.media.remove('omnis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4664aa80..7445bebd 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('asperiores', { + const responsePromise = client.posts.comments.create('magnam', { 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('asperiores', { + const response = await client.posts.comments.create('magnam', { 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('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('magnam', { 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('asperiores', { + const response = await client.posts.comments.list('magnam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 9215becf..f18d87e0 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: ['ammnqrnzyeuinmaiamyk'] }, + filter: { tags: ['eu'] }, 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('aliquid'); + const responsePromise = client.smartLinks.listClicks('nihil'); 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( - 'aliquid', + 'nihil', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('dolorem'); 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( - 'qui', + 'dolorem', { 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('animi'); + const responsePromise = client.smartLinks.listFans('distinctio'); 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( - 'animi', + 'distinctio', { 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('quia'); + const responsePromise = client.smartLinks.listSpenders('ipsam'); 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( - 'quia', + 'ipsam', { 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('aspernatur'); + const responsePromise = client.smartLinks.retrieveCohortArps('sapiente'); 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( - 'aspernatur', + 'sapiente', { 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('atque'); + const responsePromise = client.smartLinks.retrieveStats('quas'); 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( - 'atque', + 'quas', { 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 b97423c6..5d357423 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: 'hvereuykb', tags: ['vptietgarfzx'] }, + filter: { search: 'xzrrp', tags: ['yideqmaaah'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'acbpdxbikgdvhcc', tags: ['mvi'] }, + filter: { search: 'rbtbtnkgcwjzowskzp', tags: ['unv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'aamuvdijpepmktjmjdbuqasl', - tags: ['kj'], + search: 'cezpifxv', + tags: ['hb'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 't', - tags: ['rbcqzizzmcn'], + search: 'jw', + tags: ['vuwsdyqhp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 396ca635..4660d05c 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('quasi', { + const responsePromise = client.stories.highlights.addStory('natus', { 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('quasi', { + const response = await client.stories.highlights.addStory('natus', { 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('quasi', { + const responsePromise = client.stories.highlights.removeStory('natus', { 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('quasi', { + const response = await client.stories.highlights.removeStory('natus', { 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 c30dd8d3..e7e6e156 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('accusamus', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('accusamus', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('accusamus', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('mollitia', { + const responsePromise = client.trackingLinks.getCohortArps('officiis', { 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('mollitia', { + const response = await client.trackingLinks.getCohortArps('officiis', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dicta', { 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('in', { + const response = await client.trackingLinks.getStats('dicta', { 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 66a2665e..6cc5f0c3 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('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('molestiae', { 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('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('molestiae', { 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('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('molestiae', { 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('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('molestiae', { 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('dolores', { 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('dolores', { 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('aliquam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quod', { 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('aliquam', { + const response = await client.trialLinks.retrieveCohortArps('quod', { 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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('debitis', { 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('ipsum', { + const response = await client.trialLinks.retrieveStats('debitis', { 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 a7cd2f1e..8b06aa39 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: 'muijqcrfy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'layoo' }); 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: 'muijqcrfy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'layoo' }); }); // Mock server tests are disabled From f9a5724970299d7be7ac5ed5e9f006413deb455f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:12:38 +0000 Subject: [PATCH 110/309] 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 | 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 | 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 +++--- .../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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 28 files changed, 116 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index c852266f..5ed86a9a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd3284d3cbf3b4ea945b6e874659e0c37fa925a84943a52896991146e8c4f532.yml -openapi_spec_hash: 9117c96bbcef0da26e33ed473a08004f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f27c53578cefb55e35c3310855bbf36ff24fb53ca74de05c9c5e1495477d5623.yml +openapi_spec_hash: 2f3151418ba4702534ad90d4d3ee51fc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1485f414..3dd212c4 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('itaque'); + * const response = await client.accounts.disconnect( + * 'reiciendis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 83e70a63..7e83f2ad 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('sed', { + * await client.engagement.messages.getMessageBuyers('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0e5582a..88ae4fb6 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( - * 'omnis', + * 'enim', * { 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( - * 'omnis', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0a12a142..c7acc9ed 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( - * 'magnam', + * 'rerum', * { * 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( - * 'magnam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('rerum', { + * 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 e20f70d1..09d6973d 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 c9a094cf..2b04cbb2 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 abf35eee..ebbe2ee7 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( - * 'nihil', + * 'quasi', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolorem', + * 'eos', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'distinctio', - * ); + * const response = await client.smartLinks.listFans('nam'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ipsam', + * 'labore', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sapiente'); + * await client.smartLinks.retrieveCohortArps('quidem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quas', + * 'sunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e6a4043e..644592e2 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( - * 'natus', + * 'ipsa', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('natus', { + * await client.stories.highlights.removeStory('ipsa', { * 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 0c32e183..24ef64a2 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( - * 'accusamus', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'accusamus', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('officiis', { + * await client.trackingLinks.getCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dicta', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index daee2e31..015e8df4 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( - * 'molestiae', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'molestiae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('neque', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolores', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quod', { + * await client.trialLinks.retrieveCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'debitis', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6debfe08..51d7fd46 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: 'layoo' }, + * { name: 'jgtxobqzuqiyxhsiigouat' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f12ced8a..82fccf90 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('itaque'); + const responsePromise = client.accounts.disconnect('reiciendis'); 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 3a9bcc3b..cd8bc324 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: 'voluptatum', - auth_type: 'email_password', - cookies: 'nostrum', + auth_id: 'quos', + auth_type: 'mobile_app', + cookies: 'quaerat', customProxy: { host: 'proxy.example.com', - password: 'ew6F"+#:ExUKv)i_', + password: ']S.^]A@b]J_Y', port: 8080, - username: 'enim', + username: 'doloremque', }, - email: 'horace.watsica@example.com', - force_connect: false, - name: 'repellat', - password: 'v?Sg%d]j&@M:=m(\\@', - proxyCountry: 'uk', - user_agent: 'fugit', - xbc: 'magni', + email: 'kessler.gerhard@example.net', + force_connect: true, + name: 'eos', + password: "i1hl}pqXEFsCP-yN'-q.", + proxyCountry: 'us', + user_agent: 'soluta', + xbc: 'repellat', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 d6801448..32dab22b 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('sed', { + 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('sed', { + 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 68cadb73..56699230 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('omnis', { + const responsePromise = client.media.vault.lists.media.add('enim', { 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('omnis', { + const response = await client.media.vault.lists.media.add('enim', { 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('omnis', { + const responsePromise = client.media.vault.lists.media.remove('enim', { 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('omnis', { + const response = await client.media.vault.lists.media.remove('enim', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7445bebd..93ed1fe7 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('magnam', { + const responsePromise = client.posts.comments.create('rerum', { 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('magnam', { + const response = await client.posts.comments.create('rerum', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('rerum', { 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('magnam', { + const response = await client.posts.comments.list('rerum', { 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 fd74b68f..e2edc676 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 b643af69..96d399de 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 6b1dc2fd..d13ad1ce 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 f18d87e0..48301c8f 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: ['eu'] }, + filter: { tags: ['lk'] }, 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('nihil'); + const responsePromise = client.smartLinks.listClicks('quasi'); 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( - 'nihil', + 'quasi', { 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('dolorem'); + const responsePromise = client.smartLinks.listConversions('eos'); 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( - 'dolorem', + 'eos', { 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('distinctio'); + const responsePromise = client.smartLinks.listFans('nam'); 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( - 'distinctio', + 'nam', { 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('ipsam'); + const responsePromise = client.smartLinks.listSpenders('labore'); 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( - 'ipsam', + 'labore', { 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('sapiente'); + const responsePromise = client.smartLinks.retrieveCohortArps('quidem'); 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( - 'sapiente', + 'quidem', { 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('quas'); + const responsePromise = client.smartLinks.retrieveStats('sunt'); 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( - 'quas', + 'sunt', { 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 5d357423..de3cac44 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: 'xzrrp', tags: ['yideqmaaah'] }, + filter: { search: 'kxmlridykcszjhm', tags: ['hthrvu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rbtbtnkgcwjzowskzp', tags: ['unv'] }, + filter: { search: 'ynqfinihg', tags: ['iuajrosarnhkwok'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'cezpifxv', - tags: ['hb'], + search: 'fchjsxqcfy', + tags: ['j'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jw', - tags: ['vuwsdyqhp'], + include_smart_links: false, + search: 'tomtsjtghifqgk', + tags: ['avmlqsro'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4660d05c..71912afa 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('natus', { + const responsePromise = client.stories.highlights.addStory('ipsa', { 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('natus', { + const response = await client.stories.highlights.addStory('ipsa', { 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('natus', { + const responsePromise = client.stories.highlights.removeStory('ipsa', { 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('natus', { + const response = await client.stories.highlights.removeStory('ipsa', { 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 e7e6e156..4d7db587 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('illum', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('illum', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('illum', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('officiis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('dolore', { 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('officiis', { + const response = await client.trackingLinks.getCohortArps('dolore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('necessitatibus', { + 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('dicta', { + const response = await client.trackingLinks.getStats('necessitatibus', { 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 6cc5f0c3..40ab804b 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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('neque', { 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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('neque', { 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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('neque', { 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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('neque', { 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('dolores', { + 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('dolores', { + const response = await client.trialLinks.listSubscribers('et', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('dolores', { + 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('quod', { + const response = await client.trialLinks.retrieveCohortArps('dolores', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('deleniti', { 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('debitis', { + const response = await client.trialLinks.retrieveStats('deleniti', { 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 8b06aa39..81b70420 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: 'layoo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jgtxobqzuqiyxhsiigouat', + }); 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: 'layoo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jgtxobqzuqiyxhsiigouat', + }); }); // Mock server tests are disabled From a235e0f9f69796efa1dae6706a0aab68691d5e82 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 18:12:31 +0000 Subject: [PATCH 111/309] 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 | 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 | 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 +-- 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 ++---- 26 files changed, 103 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ed86a9a..09de13eb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f27c53578cefb55e35c3310855bbf36ff24fb53ca74de05c9c5e1495477d5623.yml -openapi_spec_hash: 2f3151418ba4702534ad90d4d3ee51fc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-89deaf03491565964696fe6a39652caedaf14cb70af5ba6329c70bf7b719e18b.yml +openapi_spec_hash: 66c086ac3d5f89740961c0cf59265a74 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3dd212c4..e1791181 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( - * 'reiciendis', - * ); + * 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 7e83f2ad..6a57abc0 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( + * 'autem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 88ae4fb6..1ea850e3 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( - * 'enim', + * 'voluptatum', * { 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( - * 'enim', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7acc9ed..79d0fbd6 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( - * 'rerum', + * 'porro', * { * 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('rerum', { + * const comments = await client.posts.comments.list('porro', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 2b04cbb2..41feb4c0 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 ebbe2ee7..5012f588 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( - * 'quasi', - * ); + * 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( - * 'eos', + * 'sed', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nam'); + * const response = await client.smartLinks.listFans('illum'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'labore', + * 'recusandae', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quidem'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sunt', + * 'in', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 644592e2..5f1e8eb5 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( - * 'ipsa', + * 'rem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ipsa', { + * await client.stories.highlights.removeStory('rem', { * 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 24ef64a2..802c2b80 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( - * 'illum', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'illum', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolore', { + * 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( - * 'necessitatibus', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 015e8df4..cf7f3ba1 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( - * 'neque', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sint', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('neque', { + * const trialLink = await client.trialLinks.delete('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'consectetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolores', { + * await client.trialLinks.retrieveCohortArps('quaerat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'deleniti', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 51d7fd46..b20b1ef5 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: 'jgtxobqzuqiyxhsiigouat' }, + * { name: 'mwmionuveow' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 82fccf90..c1cb7513 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('reiciendis'); + 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 cd8bc324..4605fdbb 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: 'quos', + auth_id: 'dicta', auth_type: 'mobile_app', - cookies: 'quaerat', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: ']S.^]A@b]J_Y', + password: '{-bj$os', port: 8080, - username: 'doloremque', + username: 'necessitatibus', }, - email: 'kessler.gerhard@example.net', - force_connect: true, - name: 'eos', - password: "i1hl}pqXEFsCP-yN'-q.", + email: 'brekke.benton@example.net', + force_connect: false, + name: 'velit', + password: ';=J,UvSeo', proxyCountry: 'us', - user_agent: 'soluta', - xbc: 'repellat', + user_agent: 'non', + xbc: 'excepturi', }, { 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 32dab22b..9cc643a8 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('autem', { 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('autem', { 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 56699230..a3ded46d 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('enim', { + const responsePromise = client.media.vault.lists.media.add('voluptatum', { 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('enim', { + const response = await client.media.vault.lists.media.add('voluptatum', { 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('enim', { + const responsePromise = client.media.vault.lists.media.remove('voluptatum', { 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('enim', { + const response = await client.media.vault.lists.media.remove('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 93ed1fe7..caa005c9 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('rerum', { + const responsePromise = client.posts.comments.create('porro', { 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('rerum', { + const response = await client.posts.comments.create('porro', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('porro', { 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('rerum', { + const response = await client.posts.comments.list('porro', { 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 e2edc676..fd74b68f 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 96d399de..c1510622 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 48301c8f..cc98ca29 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: ['lk'] }, + filter: { tags: ['fzsujvgvnsr'] }, 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('quasi'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'quasi', + 'aut', { 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('eos'); + const responsePromise = client.smartLinks.listConversions('sed'); 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( - 'eos', + 'sed', { 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('nam'); + 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( - 'nam', + '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('labore'); + const responsePromise = client.smartLinks.listSpenders('recusandae'); 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( - 'labore', + 'recusandae', { 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('quidem'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); 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( - 'quidem', + 'voluptatem', { 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('sunt'); + const responsePromise = client.smartLinks.retrieveStats('in'); 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( - 'sunt', + 'in', { 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 de3cac44..bf2778e4 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: 'kxmlridykcszjhm', tags: ['hthrvu'] }, + filter: { search: 'qoxietohdbf', tags: ['jljyomrgdpwmtlq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ynqfinihg', tags: ['iuajrosarnhkwok'] }, + filter: { search: 'qvakd', tags: ['bvfdu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'fchjsxqcfy', - tags: ['j'], + search: 'qgixzqofiifor', + tags: ['kpeilrdmsssdm'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'tomtsjtghifqgk', - tags: ['avmlqsro'], + include_smart_links: true, + search: 'xiazkslistvcf', + tags: ['serciuvuajsvbtggj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 71912afa..ff92fa33 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('ipsa', { + const responsePromise = client.stories.highlights.addStory('rem', { 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('ipsa', { + const response = await client.stories.highlights.addStory('rem', { 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('ipsa', { + const responsePromise = client.stories.highlights.removeStory('rem', { 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('ipsa', { + const response = await client.stories.highlights.removeStory('rem', { 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 4d7db587..d5b576ca 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('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('molestias', { 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('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('molestias', { 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('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('molestias', { 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('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolore', { 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('dolore', { + 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,9 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getStats('repudiandae', { 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('necessitatibus', { + const response = await client.trackingLinks.getStats('repudiandae', { 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 40ab804b..da86ba94 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('neque', { 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('neque', { 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('neque', { 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('neque', { 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('et', { + const responsePromise = client.trialLinks.listSubscribers('consectetur', { 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('consectetur', { 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('dolores', { + const responsePromise = client.trialLinks.retrieveCohortArps('quaerat', { 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('dolores', { + const response = await client.trialLinks.retrieveCohortArps('quaerat', { 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('deleniti', { 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('deleniti', { + 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 81b70420..b9e79e7c 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: 'jgtxobqzuqiyxhsiigouat', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mwmionuveow' }); 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: 'jgtxobqzuqiyxhsiigouat', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mwmionuveow' }); }); // Mock server tests are disabled From 8eb5a2cebf48c593a0bcb678f932079c9a21b40a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 07:12:31 +0000 Subject: [PATCH 112/309] 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 | 59 +++++++++++++++++-- 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 +-- 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 | 28 +++++---- 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, 151 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 09de13eb..da00913b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-89deaf03491565964696fe6a39652caedaf14cb70af5ba6329c70bf7b719e18b.yml -openapi_spec_hash: 66c086ac3d5f89740961c0cf59265a74 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c1cc402f9708c709f7d236bff9dfea7da318df8373813cdc1da5ccede26da18.yml +openapi_spec_hash: bde4ea8516a19fea9ae7849d087307c8 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e1791181..a90889c0 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('enim'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6a57abc0..3a1202b6 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( - * 'autem', + * 'fugiat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 1ea850e3..fb726275 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( - * 'voluptatum', + * 'recusandae', * { 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( - * 'voluptatum', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 79d0fbd6..08fab092 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( - * 'porro', + * 'maxime', * { * 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('porro', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'maxime', + * { 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 e20f70d1..a9767818 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 41feb4c0..2b04cbb2 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 5012f588..98256d9f 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( + * 'rerum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sed', + * 'sint', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('illum'); + * const response = await client.smartLinks.listFans('id'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'recusandae', + * 'explicabo', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'in', + * 'ab', * ); * ``` */ @@ -849,7 +851,11 @@ export namespace SmartLinkListFansResponse { offset?: number; + previously_subscribed?: string | null; + sort?: string; + + subscribed_using_promo?: string | null; } export interface Row { @@ -873,11 +879,41 @@ export namespace SmartLinkListFansResponse { revenue_net?: number; + subscription_insights?: Row.SubscriptionInsights; + tips_net?: number; username?: string; } + export namespace Row { + export interface SubscriptionInsights { + current_subscription?: SubscriptionInsights.CurrentSubscription; + + current_subscription_from_smart_link?: boolean; + + has_subscription_data?: boolean; + + previously_subscribed?: boolean; + + subscribed_using_promo?: boolean; + } + + export namespace SubscriptionInsights { + export interface CurrentSubscription { + action?: string; + + is_free?: boolean; + + price?: number; + + regular_price?: number; + + type?: string; + } + } + } + export interface Summary { fans_total?: number; @@ -1182,6 +1218,12 @@ export interface SmartLinkListFansParams { */ offset?: number; + /** + * Optional - Filter to returning subscribers (fans previously subscribed before + * this subscription) + */ + previously_subscribed?: boolean; + /** * Optional sort field. Default `-revenue_net` */ @@ -1194,6 +1236,11 @@ export interface SmartLinkListFansParams { | '-messages_sent_by_fan' | 'converted_at' | '-converted_at'; + + /** + * Optional - Filter to fans who subscribed via a promotion/offer + */ + subscribed_using_promo?: boolean; } export interface SmartLinkListSpendersParams { diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 5f1e8eb5..88991aed 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( - * 'rem', + * 'assumenda', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('rem', { + * await client.stories.highlights.removeStory('assumenda', { * 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 802c2b80..ccdb6392 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( - * 'molestias', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'molestias', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('odio', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'repudiandae', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cf7f3ba1..74ae4045 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('sint', { + * const trialLink = await client.trialLinks.retrieve('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sint', { + * const trialLink = await client.trialLinks.delete('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consectetur', + * 'inventore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quaerat', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b20b1ef5..366b50fd 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: 'mwmionuveow' }, + * { name: 'aqqbjv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1cb7513..25d55f3d 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('enim'); 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 4605fdbb..751e7abf 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: 'dicta', + auth_id: 'enim', auth_type: 'mobile_app', - cookies: 'et', + cookies: 'sit', customProxy: { host: 'proxy.example.com', - password: '{-bj$os', + password: 'lHh=(D', port: 8080, - username: 'necessitatibus', + username: 'tempora', }, - email: 'brekke.benton@example.net', - force_connect: false, - name: 'velit', - password: ';=J,UvSeo', - proxyCountry: 'us', - user_agent: 'non', - xbc: 'excepturi', + email: 'shannon.leffler@example.com', + force_connect: true, + name: 'saepe', + password: '2wc~Zi-OpD', + proxyCountry: 'uk', + user_agent: 'quia', + 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 9cc643a8..89103917 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('autem', { + const responsePromise = client.engagement.messages.getMessageBuyers('fugiat', { 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('autem', { + const response = await client.engagement.messages.getMessageBuyers('fugiat', { 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 a3ded46d..95d1dbd4 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('voluptatum', { + const responsePromise = client.media.vault.lists.media.add('recusandae', { 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('voluptatum', { + const response = await client.media.vault.lists.media.add('recusandae', { 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('voluptatum', { + const responsePromise = client.media.vault.lists.media.remove('recusandae', { 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('voluptatum', { + const response = await client.media.vault.lists.media.remove('recusandae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index caa005c9..89133ea6 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('porro', { + const responsePromise = client.posts.comments.create('maxime', { 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('porro', { + const response = await client.posts.comments.create('maxime', { 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('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('maxime', { 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('porro', { + const response = await client.posts.comments.list('maxime', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..4ec8acc7 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 c1510622..96d399de 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 cc98ca29..5ae114d2 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: ['fzsujvgvnsr'] }, + filter: { tags: ['gdauwha'] }, 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('aut'); + const responsePromise = client.smartLinks.listClicks('rerum'); 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( - 'aut', + 'rerum', { 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('sed'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'sed', + 'sint', { 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('id'); 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', + 'id', { has_messages: true, limit: 100, @@ -178,7 +178,9 @@ describe('resource smartLinks', () => { min_revenue_net: 25, min_tips_net: 10, offset: 0, + previously_subscribed: true, sort: '-revenue_net', + subscribed_using_promo: true, }, { path: '/_stainless_unknown_path' }, ), @@ -187,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('recusandae'); + const responsePromise = client.smartLinks.listSpenders('explicabo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'recusandae', + 'explicabo', { limit: 50, minSpend: 1, @@ -215,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'est', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('in'); + const responsePromise = client.smartLinks.retrieveStats('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'in', + 'ab', { 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 bf2778e4..4bc7d46d 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: 'qoxietohdbf', tags: ['jljyomrgdpwmtlq'] }, + filter: { search: 'spqvidxiatasl', tags: ['gurpgyawvpxaeimcvapssur'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qvakd', tags: ['bvfdu'] }, + filter: { search: 'sbvcjbftuzeqlbjhfa', tags: ['nikucoiayjdkdmvlsugsd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'qgixzqofiifor', - tags: ['kpeilrdmsssdm'], + search: 'llykwrwa', + tags: ['eilq'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'xiazkslistvcf', - tags: ['serciuvuajsvbtggj'], + search: 'jlokwzpdkeolqqprcblu', + tags: ['ymsrxfbqhgaoannxvitgh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index ff92fa33..671f3446 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('rem', { + const responsePromise = client.stories.highlights.addStory('assumenda', { 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('rem', { + const response = await client.stories.highlights.addStory('assumenda', { 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('rem', { + const responsePromise = client.stories.highlights.removeStory('assumenda', { 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('rem', { + const response = await client.stories.highlights.removeStory('assumenda', { 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 d5b576ca..9f7a8df9 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('molestias', { 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('molestias', { 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('molestias', { 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,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('molestias', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('aut', { 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('odio', { + const response = await client.trackingLinks.getCohortArps('aut', { 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('repudiandae', { 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('repudiandae', { + 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 da86ba94..1e301281 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('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('sint', { 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('sint', { 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('sint', { 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('consectetur', { + 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('consectetur', { + const response = await client.trialLinks.listSubscribers('inventore', { 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('quaerat', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('eos', { 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('quaerat', { + const response = await client.trialLinks.retrieveCohortArps('eos', { 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('quod', { 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('quod', { 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 b9e79e7c..b6437281 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: 'mwmionuveow' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aqqbjv' }); 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: 'mwmionuveow' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aqqbjv' }); }); // Mock server tests are disabled From 778f909697924ee12cde9d3e077b06d50be2e6c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:12:32 +0000 Subject: [PATCH 113/309] 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 | 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 +++--- 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 | 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 | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 111 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index da00913b..cffa537b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c1cc402f9708c709f7d236bff9dfea7da318df8373813cdc1da5ccede26da18.yml -openapi_spec_hash: bde4ea8516a19fea9ae7849d087307c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c59776add5573e6393cb3bfa63536c25fe249c97fbea4d33cec4c845a5458a8.yml +openapi_spec_hash: 4950e80957798997ee35e6c12ba35e22 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a90889c0..eddbf5fc 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('enim'); + * const response = await client.accounts.disconnect('nam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a1202b6..918ca157 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( - * 'fugiat', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index fb726275..241bb061 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( - * 'recusandae', + * 'laboriosam', * { 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( - * 'recusandae', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 08fab092..c7b0c026 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( - * 'maxime', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('iste', { + * 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( - * 'maxime', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('iste', { + * 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 a9767818..e20f70d1 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 98256d9f..f0981f6b 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( - * 'sint', + * 'aliquam', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('id'); + * const response = await client.smartLinks.listFans('enim'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'explicabo', + * 'dolorum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('enim'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ab', + * 'id', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 88991aed..201d4506 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( - * 'assumenda', + * 'quisquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('assumenda', { + * await client.stories.highlights.removeStory('quisquam', { * 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 ccdb6392..7b145641 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', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * await client.trackingLinks.getCohortArps('mollitia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptates', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 74ae4045..b4465c47 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( + * 'dolore', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('est', { + * const trialLink = await client.trialLinks.delete('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'inventore', + * 'commodi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('dolorum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quod', + * 'laudantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 366b50fd..6e7e131d 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: 'aqqbjv' }, + * { name: 'jatilzsqsjukxemrc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 25d55f3d..2c419d92 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('enim'); + const responsePromise = client.accounts.disconnect('nam'); 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 751e7abf..fd9dca45 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -63,20 +63,20 @@ describe('resource authenticate', () => { client.authenticate.start( { auth_id: 'enim', - auth_type: 'mobile_app', - cookies: 'sit', + auth_type: 'raw_data', + cookies: 'aperiam', customProxy: { host: 'proxy.example.com', - password: 'lHh=(D', + password: "`]{ONa'9", port: 8080, - username: 'tempora', + username: 'dolores', }, - email: 'shannon.leffler@example.com', - force_connect: true, - name: 'saepe', - password: '2wc~Zi-OpD', - proxyCountry: 'uk', - user_agent: 'quia', + email: 'fisher.jeanette@example.com', + force_connect: false, + name: 'perferendis', + password: '7Ue"jAVlUrR', + proxyCountry: 'us', + user_agent: 'odio', xbc: 'ut', }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 89103917..7b6f3dae 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('fugiat', { + const responsePromise = client.engagement.messages.getMessageBuyers('sint', { 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('fugiat', { + const response = await client.engagement.messages.getMessageBuyers('sint', { 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 95d1dbd4..bdc450bf 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('recusandae', { + const responsePromise = client.media.vault.lists.media.add('laboriosam', { 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('recusandae', { + const response = await client.media.vault.lists.media.add('laboriosam', { 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('recusandae', { + const responsePromise = client.media.vault.lists.media.remove('laboriosam', { 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('recusandae', { + const response = await client.media.vault.lists.media.remove('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 89133ea6..00ba9c94 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('maxime', { + const responsePromise = client.posts.comments.create('iste', { 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('maxime', { + const response = await client.posts.comments.create('iste', { 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('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iste', { 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('maxime', { + const response = await client.posts.comments.list('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 5ae114d2..c3980353 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: ['gdauwha'] }, + filter: { tags: ['xozdhlspbnmro'] }, 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('rerum'); + const responsePromise = client.smartLinks.listClicks('repellat'); 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( - 'rerum', + 'repellat', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('aliquam'); 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( - 'sint', + 'aliquam', { 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('id'); + 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( - 'id', + 'enim', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('explicabo'); + const responsePromise = client.smartLinks.listSpenders('dolorum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'explicabo', + 'dolorum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'est', + 'enim', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ab'); + const responsePromise = client.smartLinks.retrieveStats('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'id', { 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 4bc7d46d..543ba0a6 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: 'spqvidxiatasl', tags: ['gurpgyawvpxaeimcvapssur'] }, + filter: { search: 'myelfnzawupmerw', tags: ['jxxciziibnsv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'sbvcjbftuzeqlbjhfa', tags: ['nikucoiayjdkdmvlsugsd'] }, + filter: { search: 'ejvyvovuucuwfcpayokk', tags: ['htpvkzmorqgcvxrkiccat'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'llykwrwa', - tags: ['eilq'], + search: 'sjhcdlwzyuoyio', + tags: ['htnnp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'jlokwzpdkeolqqprcblu', - tags: ['ymsrxfbqhgaoannxvitgh'], + search: 'yxmhrncylexzxkv', + tags: ['xxubjtislkzso'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 671f3446..61ba21c9 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('assumenda', { + const responsePromise = client.stories.highlights.addStory('quisquam', { 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('assumenda', { + const response = await client.stories.highlights.addStory('quisquam', { 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('assumenda', { + const responsePromise = client.stories.highlights.removeStory('quisquam', { 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('assumenda', { + const response = await client.stories.highlights.removeStory('quisquam', { 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 9f7a8df9..8d4e4c7f 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('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('qui', { 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('qui', { 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,14 @@ 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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('mollitia', { + 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('aut', { + const response = await client.trackingLinks.getCohortArps('mollitia', { 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('aliquid', { 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('aliquid', { 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 1e301281..a268e9d3 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('dolore', { 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('dolore', { 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('dolore', { 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('dolore', { 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('commodi', { 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('commodi', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('dolorum', { + 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('eos', { + const response = await client.trialLinks.retrieveCohortArps('dolorum', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('laudantium', { + 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('quod', { + const response = await client.trialLinks.retrieveStats('laudantium', { 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 b6437281..000cda42 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: 'aqqbjv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jatilzsqsjukxemrc' }); 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: 'aqqbjv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jatilzsqsjukxemrc' }); }); // Mock server tests are disabled From 95f1dfbb8dc2d031124c0cdd4a88f9b0b03fc7bf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 06:12:37 +0000 Subject: [PATCH 114/309] 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 | 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 | 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 +-- 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 +-- 25 files changed, 109 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index cffa537b..1a2597f5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c59776add5573e6393cb3bfa63536c25fe249c97fbea4d33cec4c845a5458a8.yml -openapi_spec_hash: 4950e80957798997ee35e6c12ba35e22 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdbcb71d3890454f9a80554d6e8893125a88a15551731e55b2bd4995e4b981b5.yml +openapi_spec_hash: f49b334718187cf5534314f5389eb412 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index eddbf5fc..3c5ed4a9 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('nam'); + * 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 918ca157..4a39bd0b 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( - * 'sint', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 241bb061..13f0e898 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( - * 'laboriosam', + * 'aspernatur', * { 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( - * 'laboriosam', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7b0c026..6b557a8f 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('iste', { + * const comment = await client.posts.comments.create('qui', { * 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('iste', { + * const comments = await client.posts.comments.list('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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 2b04cbb2..a84ff073 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 f0981f6b..c3e99071 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', + * 'laboriosam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aliquam', + * 'sit', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('enim'); + * const response = await client.smartLinks.listFans( + * 'similique', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolorum', + * 'itaque', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('enim'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'id', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 201d4506..43671e0f 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( - * 'quisquam', + * 'praesentium', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quisquam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'praesentium', + * { + * 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 7b145641..bc381692 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', + * 'repellendus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consectetur', + * 'repellendus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('mollitia', { + * await client.trackingLinks.getCohortArps('cumque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aliquid', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b4465c47..0f9a46d0 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( - * 'dolore', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolore', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'aperiam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'commodi', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolorum', { + * await client.trialLinks.retrieveCohortArps('totam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laudantium', + * 'minus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6e7e131d..e4fae4cf 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: 'jatilzsqsjukxemrc' }, + * { name: 'tnmouzgihegmpuw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2c419d92..3c3098d8 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('nam'); + 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 fd9dca45..5eeee630 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: 'enim', - auth_type: 'raw_data', - cookies: 'aperiam', + auth_id: 'amet', + auth_type: 'email_password', + cookies: 'minus', customProxy: { host: 'proxy.example.com', - password: "`]{ONa'9", + password: '!ep)LQQrJ&J', port: 8080, - username: 'dolores', + username: 'ut', }, - email: 'fisher.jeanette@example.com', - force_connect: false, - name: 'perferendis', - password: '7Ue"jAVlUrR', + email: 'aiden.okon@example.org', + force_connect: true, + name: 'dicta', + password: "pU80nVzKc#*Mhp'b.*|", proxyCountry: 'us', - user_agent: 'odio', - xbc: 'ut', + user_agent: 'illo', + xbc: 'nulla', }, { 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 7b6f3dae..b251884f 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('sint', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolorem', { 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('sint', { + const response = await client.engagement.messages.getMessageBuyers('dolorem', { 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 bdc450bf..50a07269 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('laboriosam', { + const responsePromise = client.media.vault.lists.media.add('aspernatur', { 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('laboriosam', { + const response = await client.media.vault.lists.media.add('aspernatur', { 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('laboriosam', { + const responsePromise = client.media.vault.lists.media.remove('aspernatur', { 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('laboriosam', { + const response = await client.media.vault.lists.media.remove('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 00ba9c94..427da94a 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('iste', { + 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('iste', { + 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('iste', { 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('iste', { + 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 fd74b68f..8e5b0566 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 96d399de..02883e18 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 c3980353..ce8e0e42 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: ['xozdhlspbnmro'] }, + filter: { tags: ['yfxtanrcxrhcdbsovyywsmv'] }, 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('repellat'); + const responsePromise = client.smartLinks.listClicks('laboriosam'); 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( - 'repellat', + 'laboriosam', { 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('aliquam'); + const responsePromise = client.smartLinks.listConversions('sit'); 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( - 'aliquam', + 'sit', { 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('similique'); 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', + 'similique', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolorum'); + const responsePromise = client.smartLinks.listSpenders('itaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'itaque', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('enim'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('id'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + '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 543ba0a6..4f224ca9 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: 'myelfnzawupmerw', tags: ['jxxciziibnsv'] }, + filter: { search: 'hawccsarr', tags: ['skntrnjuamcpwumhagkbxetiy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ejvyvovuucuwfcpayokk', tags: ['htpvkzmorqgcvxrkiccat'] }, + filter: { search: 'plcseb', tags: ['xblmclnsrkvrlqorri'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'sjhcdlwzyuoyio', - tags: ['htnnp'], + include_smart_links: true, + search: 'oy', + tags: ['a'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'yxmhrncylexzxkv', - tags: ['xxubjtislkzso'], + search: 'zgbijfrgbmqmtobozm', + tags: ['goqlpgsdfzcoxmmtgtcxybq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 61ba21c9..1dfeb6ff 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('quisquam', { + const responsePromise = client.stories.highlights.addStory('praesentium', { 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('quisquam', { + const response = await client.stories.highlights.addStory('praesentium', { 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('quisquam', { + const responsePromise = client.stories.highlights.removeStory('praesentium', { 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('quisquam', { + const response = await client.stories.highlights.removeStory('praesentium', { 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 8d4e4c7f..c81ba5b4 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('repellendus', { 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('repellendus', { 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('repellendus', { 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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('repellendus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('mollitia', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('cumque', { 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('mollitia', { + const response = await client.trackingLinks.getCohortArps('cumque', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('atque', { 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('aliquid', { + const response = await client.trackingLinks.getStats('atque', { 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 a268e9d3..6c104e00 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aperiam', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aperiam', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aperiam', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aperiam', { 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('commodi', { + const responsePromise = client.trialLinks.listSubscribers('eos', { 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('commodi', { + const response = await client.trialLinks.listSubscribers('eos', { 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('dolorum', { + const responsePromise = client.trialLinks.retrieveCohortArps('totam', { 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('dolorum', { + const response = await client.trialLinks.retrieveCohortArps('totam', { 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('laudantium', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('minus', { 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('laudantium', { + const response = await client.trialLinks.retrieveStats('minus', { 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 000cda42..17033764 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: 'jatilzsqsjukxemrc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tnmouzgihegmpuw' }); 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: 'jatilzsqsjukxemrc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tnmouzgihegmpuw' }); }); // Mock server tests are disabled From c4e478e44edaa13dae27abc3d12c31efa90cee4d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 07:12:29 +0000 Subject: [PATCH 115/309] 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 | 16 +++++------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 18 ++++++------- 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/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 | 18 +++++++------ .../user-lists/user-lists.test.ts | 6 +++-- 26 files changed, 119 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1a2597f5..4c2c2563 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdbcb71d3890454f9a80554d6e8893125a88a15551731e55b2bd4995e4b981b5.yml -openapi_spec_hash: f49b334718187cf5534314f5389eb412 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d403080a7564d189c84c4e298c8b638d317fa2ad3f9b9a31ba371cb9e336cca.yml +openapi_spec_hash: 6eb2241404efe84e4c88171f228a7e9a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a9..766f2e27 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( + * 'officia', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4a39bd0b..bed11f99 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( - * 'dolorem', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 13f0e898..ee9b874f 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( - * 'aspernatur', + * 'suscipit', * { 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( - * 'aspernatur', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6b557a8f..fb4ca00b 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( + * 'corporis', + * { + * 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'corporis', + * { 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 599a9525..a9767818 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 a84ff073..2b04cbb2 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 c3e99071..329d6d48 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( - * 'laboriosam', - * ); + * const response = await client.smartLinks.listClicks('odio'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sit', + * 'temporibus', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'similique', - * ); + * const response = await client.smartLinks.listFans('dicta'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'itaque', + * 'qui', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('placeat'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'nisi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 43671e0f..cc8d0bb7 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( - * 'praesentium', + * 'eveniet', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'praesentium', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('eveniet', { + * 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 bc381692..85d47a14 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( - * 'repellendus', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'repellendus', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('cumque', { + * await client.trackingLinks.getCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'atque', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0f9a46d0..5b9533ac 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( - * 'aperiam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'aperiam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('totam', { + * await client.trialLinks.retrieveCohortArps('delectus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'minus', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e4fae4cf..8090fdf5 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: 'tnmouzgihegmpuw' }, + * { name: 'jvjzgbxdnrmuoyznrxoyq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d8..90c0746c 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('officia'); 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 5eeee630..d80ab2f3 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: 'amet', - auth_type: 'email_password', - cookies: 'minus', + auth_id: 'possimus', + auth_type: 'mobile_app', + cookies: 'quam', customProxy: { host: 'proxy.example.com', - password: '!ep)LQQrJ&J', + password: '35qaP_3', port: 8080, - username: 'ut', + username: 'blanditiis', }, - email: 'aiden.okon@example.org', - force_connect: true, - name: 'dicta', - password: "pU80nVzKc#*Mhp'b.*|", - proxyCountry: 'us', - user_agent: 'illo', - xbc: 'nulla', + email: 'lon.bode@example.org', + force_connect: false, + name: 'minima', + password: '8KR" { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('dolorem', { + 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('dolorem', { + 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 50a07269..627236d0 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('aspernatur', { + const responsePromise = client.media.vault.lists.media.add('suscipit', { 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('aspernatur', { + const response = await client.media.vault.lists.media.add('suscipit', { 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('aspernatur', { + const responsePromise = client.media.vault.lists.media.remove('suscipit', { 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('aspernatur', { + const response = await client.media.vault.lists.media.remove('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 427da94a..ac741150 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('corporis', { 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('corporis', { 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('corporis', { 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('corporis', { 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 8e5b0566..4ec8acc7 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 02883e18..96d399de 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 ce8e0e42..2cf88e3c 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: ['yfxtanrcxrhcdbsovyywsmv'] }, + filter: { tags: ['rmcyx'] }, 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('laboriosam'); + const responsePromise = client.smartLinks.listClicks('odio'); 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( - 'laboriosam', + 'odio', { 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('sit'); + const responsePromise = client.smartLinks.listConversions('temporibus'); 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( - 'sit', + 'temporibus', { 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('similique'); + const responsePromise = client.smartLinks.listFans('dicta'); 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( - 'similique', + 'dicta', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('itaque'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'itaque', + 'qui', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'placeat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('nisi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'nisi', { 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 4f224ca9..62827803 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: 'hawccsarr', tags: ['skntrnjuamcpwumhagkbxetiy'] }, + filter: { search: 'fuifdhu', tags: ['ueyqbyzqkgfsxgf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'plcseb', tags: ['xblmclnsrkvrlqorri'] }, + filter: { search: 'afgegvqo', tags: ['qyftjvdvkhcdhcksrkayx'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'oy', - tags: ['a'], + include_smart_links: false, + search: 'brcjpoyxkbslu', + tags: ['joxarfptn'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'zgbijfrgbmqmtobozm', - tags: ['goqlpgsdfzcoxmmtgtcxybq'], + search: 'ondye', + tags: ['oui'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1dfeb6ff..ff407878 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('praesentium', { + const responsePromise = client.stories.highlights.addStory('eveniet', { 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('praesentium', { + const response = await client.stories.highlights.addStory('eveniet', { 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('praesentium', { + const responsePromise = client.stories.highlights.removeStory('eveniet', { 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('praesentium', { + const response = await client.stories.highlights.removeStory('eveniet', { 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 c81ba5b4..5d6d8b61 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('repellendus', { 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('repellendus', { 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('repellendus', { 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,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('repellendus', { 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('cumque', { 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; @@ -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('cumque', { + const response = await client.trackingLinks.getCohortArps('quia', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('assumenda', { 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('atque', { + const response = await client.trackingLinks.getStats('assumenda', { 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 6c104e00..0eb6aedf 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aut', { 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aut', { 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aut', { 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('totam', { + const responsePromise = client.trialLinks.retrieveCohortArps('delectus', { 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('totam', { + const response = await client.trialLinks.retrieveCohortArps('delectus', { 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('minus', { 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; @@ -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('minus', { + 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 17033764..3485680b 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: 'tnmouzgihegmpuw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jvjzgbxdnrmuoyznrxoyq', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'tnmouzgihegmpuw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jvjzgbxdnrmuoyznrxoyq' }); }); // Mock server tests are disabled From a613f4c7ef30e0ae4ba0535b69b09ddb1f9bcfbd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 20:12:37 +0000 Subject: [PATCH 116/309] 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 | 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 +++--- .../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 | 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 | 6 ++--- 26 files changed, 121 insertions(+), 121 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4c2c2563..a2da2ccd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d403080a7564d189c84c4e298c8b638d317fa2ad3f9b9a31ba371cb9e336cca.yml -openapi_spec_hash: 6eb2241404efe84e4c88171f228a7e9a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fbc218baac59cd8bd4556b6d047384cbb1cdfabacaa7b7e540c9ba3ec32c7dd3.yml +openapi_spec_hash: 9281920a6c50254efd5b35878429f074 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 766f2e27..67f73932 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( - * 'officia', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index bed11f99..8f398e5d 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('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ee9b874f..91abe1d2 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( - * 'suscipit', + * 'nemo', * { 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( - * 'suscipit', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fb4ca00b..ca82093e 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( - * 'corporis', - * { - * 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,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'corporis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ut', { + * 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 a9767818..09d6973d 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 2b04cbb2..c9a094cf 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 329d6d48..08ee85f7 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('odio'); + * const response = await client.smartLinks.listClicks( + * 'dolorem', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'temporibus', + * 'perferendis', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dicta'); + * 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( - * 'qui', + * 'dolore', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('placeat'); + * await client.smartLinks.retrieveCohortArps('omnis'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nisi', + * 'qui', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cc8d0bb7..1147caac 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( - * 'eveniet', + * 'laudantium', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eveniet', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'laudantium', + * { + * 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 85d47a14..7920c275 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('quia', { + * await client.trackingLinks.getCohortArps('quibusdam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'assumenda', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5b9533ac..28f1b88d 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('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'explicabo', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'explicabo', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eos', + * 'delectus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('delectus', { + * await client.trialLinks.retrieveCohortArps('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'necessitatibus', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8090fdf5..a88f9a76 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: 'jvjzgbxdnrmuoyznrxoyq' }, + * { name: 'bozarddkkt' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 90c0746c..33d4dda5 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('officia'); + 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 d80ab2f3..533a9f11 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: 'possimus', + auth_id: 'alias', auth_type: 'mobile_app', - cookies: 'quam', + cookies: 'doloremque', customProxy: { host: 'proxy.example.com', - password: '35qaP_3', + password: '`,tqV/8\\b/MYZ4vQXlBt', port: 8080, - username: 'blanditiis', + username: 'ducimus', }, - email: 'lon.bode@example.org', - force_connect: false, - name: 'minima', - password: '8KR" { // 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('qui', { 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('qui', { 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 627236d0..fa571653 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('suscipit', { + const responsePromise = client.media.vault.lists.media.add('nemo', { 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('suscipit', { + const response = await client.media.vault.lists.media.add('nemo', { 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('suscipit', { + const responsePromise = client.media.vault.lists.media.remove('nemo', { 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('suscipit', { + const response = await client.media.vault.lists.media.remove('nemo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ac741150..548a48cb 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('corporis', { + 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('corporis', { + 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('corporis', { 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('corporis', { + const response = await client.posts.comments.list('ut', { 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 4ec8acc7..e2edc676 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 96d399de..b643af69 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 2cf88e3c..dbe41283 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: ['rmcyx'] }, + filter: { tags: ['a'] }, 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('odio'); + const responsePromise = client.smartLinks.listClicks('dolorem'); 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( - 'odio', + 'dolorem', { 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('temporibus'); + const responsePromise = client.smartLinks.listConversions('perferendis'); 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( - 'temporibus', + 'perferendis', { 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('dicta'); + 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( - 'dicta', + 'est', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('dolore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'dolore', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('placeat'); + const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'placeat', + 'omnis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nisi'); + const responsePromise = client.smartLinks.retrieveStats('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'nisi', + 'qui', { 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 62827803..7f7835f6 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: 'fuifdhu', tags: ['ueyqbyzqkgfsxgf'] }, + filter: { search: 'pqlgomoufwbobfkgbivmwiyk', tags: ['cmimlxiaoqnfulvrskuh'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'afgegvqo', tags: ['qyftjvdvkhcdhcksrkayx'] }, + filter: { search: 'cmp', tags: ['cjt'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'brcjpoyxkbslu', - tags: ['joxarfptn'], + include_smart_links: true, + search: 'dyzpubvcuvjgqekyey', + tags: ['xtgsdkmqwicki'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ondye', - tags: ['oui'], + search: 'oj', + tags: ['eqsvhbtueh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index ff407878..af1038a0 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('eveniet', { + const responsePromise = client.stories.highlights.addStory('laudantium', { 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('eveniet', { + const response = await client.stories.highlights.addStory('laudantium', { 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('eveniet', { + const responsePromise = client.stories.highlights.removeStory('laudantium', { 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('eveniet', { + const response = await client.stories.highlights.removeStory('laudantium', { 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 5d6d8b61..5f6eb449 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,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('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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('quibusdam', { + 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('quia', { + const response = await client.trackingLinks.getCohortArps('quibusdam', { 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('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolor', { 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('assumenda', { + const response = await client.trackingLinks.getStats('dolor', { 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 0eb6aedf..19a2a5c0 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('explicabo', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('explicabo', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('explicabo', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('explicabo', { 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('eos', { + const responsePromise = client.trialLinks.listSubscribers('delectus', { 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('eos', { + const response = await client.trialLinks.listSubscribers('delectus', { 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('delectus', { + const responsePromise = client.trialLinks.retrieveCohortArps('minima', { 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('delectus', { + const response = await client.trialLinks.retrieveCohortArps('minima', { 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('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('similique', { 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('necessitatibus', { + const response = await client.trialLinks.retrieveStats('similique', { 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 3485680b..e7f7b966 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: 'jvjzgbxdnrmuoyznrxoyq', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bozarddkkt' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'jvjzgbxdnrmuoyznrxoyq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bozarddkkt' }); }); // Mock server tests are disabled From 98972c77e930a545b38bd36266cf4f698d6c54ea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 23:12:33 +0000 Subject: [PATCH 117/309] 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 +- 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 | 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/messages/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 +-- 25 files changed, 106 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2da2ccd..ba068e31 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fbc218baac59cd8bd4556b6d047384cbb1cdfabacaa7b7e540c9ba3ec32c7dd3.yml -openapi_spec_hash: 9281920a6c50254efd5b35878429f074 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9bcfb2d4607141abbb50bda92e53a291407a6a989ce53322e13927ce68ec9da8.yml +openapi_spec_hash: ce2e27b9d334efaf635d76f6afe5aca5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 67f73932..4b8061a4 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('saepe'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8f398e5d..1e680fb2 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('qui', { + * await client.engagement.messages.getMessageBuyers('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 91abe1d2..c5a2fcef 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( - * 'nemo', + * 'ipsum', * { 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( - * 'nemo', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..0657196b 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( + * 'aliquid', + * { + * 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( + * 'aliquid', + * { 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 09d6973d..a9767818 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 08ee85f7..895019cd 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( - * 'dolorem', - * ); + * const response = await client.smartLinks.listClicks('modi'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'perferendis', + * 'expedita', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolore', + * 'recusandae', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('omnis'); + * await client.smartLinks.retrieveCohortArps('ad'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'qui', + * 'facere', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 1147caac..bdf0e650 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( - * 'laudantium', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'laudantium', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('voluptas', { + * 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 7920c275..8dcfa28c 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', + * 'iste', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'iste', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quibusdam', { + * await client.trackingLinks.getCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolor', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 28f1b88d..addf262f 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( - * 'explicabo', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'explicabo', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'delectus', + * 'alias', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('minima', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'similique', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a88f9a76..7dbea085 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: 'bozarddkkt' }, + * { name: 'l' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 33d4dda5..87d50162 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('saepe'); 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 533a9f11..5d0f470d 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: 'alias', + auth_id: 'est', auth_type: 'mobile_app', - cookies: 'doloremque', + cookies: 'exercitationem', customProxy: { host: 'proxy.example.com', - password: '`,tqV/8\\b/MYZ4vQXlBt', + password: 'VqMru"j', port: 8080, - username: 'ducimus', + username: 'tempore', }, - email: 'dare.harmon@example.com', + email: 'qwunsch@example.com', force_connect: true, - name: 'et', - password: 'II3q2;MLw+\\Q@CgU', + name: 'ex', + password: '0sGv*@2Xpm[F* { 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 338c9dac..afd3743d 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('qui', { + 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('qui', { + 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 fa571653..7549e0f5 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('nemo', { + const responsePromise = client.media.vault.lists.media.add('ipsum', { 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('nemo', { + const response = await client.media.vault.lists.media.add('ipsum', { 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('nemo', { + const responsePromise = client.media.vault.lists.media.remove('ipsum', { 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('nemo', { + const response = await client.media.vault.lists.media.remove('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..69b39e44 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 548a48cb..e3148e8a 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('aliquid', { 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('aliquid', { 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('aliquid', { 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('aliquid', { 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 e2edc676..4ec8acc7 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 dbe41283..49ea4069 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: ['a'] }, + filter: { tags: ['mcgmhuwleigux'] }, 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('dolorem'); + const responsePromise = client.smartLinks.listClicks('modi'); 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( - 'dolorem', + 'modi', { 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('perferendis'); + const responsePromise = client.smartLinks.listConversions('expedita'); 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( - 'perferendis', + 'expedita', { 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('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( - 'est', + 'et', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolore'); + const responsePromise = client.smartLinks.listSpenders('recusandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'dolore', + 'recusandae', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); + const responsePromise = client.smartLinks.retrieveCohortArps('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'omnis', + 'ad', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('qui'); + const responsePromise = client.smartLinks.retrieveStats('facere'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'qui', + 'facere', { 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 7f7835f6..31ec0602 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: 'pqlgomoufwbobfkgbivmwiyk', tags: ['cmimlxiaoqnfulvrskuh'] }, + filter: { search: 'ghaelxd', tags: ['zs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cmp', tags: ['cjt'] }, + filter: { search: 'oxqwtk', tags: ['vtc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'dyzpubvcuvjgqekyey', - tags: ['xtgsdkmqwicki'], + search: 'qcutayayetmvqme', + tags: ['z'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'oj', - tags: ['eqsvhbtueh'], + search: 'yvwgvkhotpjvxmqxzrdkn', + tags: ['lxljvtaihyckskvzsfz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index af1038a0..54e23fba 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('laudantium', { + const responsePromise = client.stories.highlights.addStory('voluptas', { 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('laudantium', { + const response = await client.stories.highlights.addStory('voluptas', { 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('laudantium', { + const responsePromise = client.stories.highlights.removeStory('voluptas', { 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('laudantium', { + const response = await client.stories.highlights.removeStory('voluptas', { 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 5f6eb449..a5cb27f6 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('iste', { 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('iste', { 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('iste', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quibusdam', { - 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; @@ -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('quibusdam', { + const response = await client.trackingLinks.getCohortArps('omnis', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quasi', { 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('dolor', { + const response = await client.trackingLinks.getStats('quasi', { 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 19a2a5c0..65dbaacb 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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('impedit', { 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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('impedit', { 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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('impedit', { 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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('impedit', { 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('delectus', { + const responsePromise = client.trialLinks.listSubscribers('alias', { 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('delectus', { + const response = await client.trialLinks.listSubscribers('alias', { 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('minima', { - 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('minima', { + 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ex', { 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('similique', { + const response = await client.trialLinks.retrieveStats('ex', { 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 e7f7b966..b5079af6 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: 'bozarddkkt' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'l' }); 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: 'bozarddkkt' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'l' }); }); // Mock server tests are disabled From abf8dba90fb21497883acf3603107a8eaec6181a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 00:12:29 +0000 Subject: [PATCH 118/309] 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 | 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 +++--- .../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 | 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 | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 115 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index ba068e31..bc1ee4e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9bcfb2d4607141abbb50bda92e53a291407a6a989ce53322e13927ce68ec9da8.yml -openapi_spec_hash: ce2e27b9d334efaf635d76f6afe5aca5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6edaebf302834d01e7497ddc7c365ea564175e865fa4f602945bb6e0fd1f0ace.yml +openapi_spec_hash: ef81dd9ff5441a4380485e8a950d8d8d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4b8061a4..970b646a 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('saepe'); + * const response = await client.accounts.disconnect('amet'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1e680fb2..8bb83d60 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('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'odit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c5a2fcef..91abe1d2 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( - * 'ipsum', + * 'nemo', * { 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( - * 'ipsum', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0657196b..263bf6ad 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( - * 'aliquid', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ea', { + * 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( - * 'aliquid', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ea', { + * 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 a9767818..599a9525 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 895019cd..40fa8b39 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('modi'); + * const response = await client.smartLinks.listClicks( + * 'consequatur', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'expedita', + * 'sit', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('id'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'recusandae', + * 'necessitatibus', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ad'); + * await client.smartLinks.retrieveCohortArps('accusamus'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'facere', + * 'corrupti', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bdf0e650..3f9bae82 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( - * 'voluptas', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('voluptas', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequatur', + * { + * 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 8dcfa28c..43170e5d 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( - * 'iste', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'iste', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('omnis', { + * 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( - * 'quasi', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index addf262f..6aa0d839 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( - * 'impedit', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'impedit', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'alias', + * 'dolorum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('occaecati', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ex', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7dbea085..20c5e55a 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: 'l' }, + * { name: 'qyvvbzgmvxtcmil' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 87d50162..06f068cd 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('saepe'); + const responsePromise = client.accounts.disconnect('amet'); 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 5d0f470d..d3467cbd 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: 'exercitationem', + auth_id: 'illum', + auth_type: 'raw_data', + cookies: 'voluptatibus', customProxy: { host: 'proxy.example.com', - password: 'VqMru"j', + password: ' { // 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('odit', { 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('odit', { 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 7549e0f5..fa571653 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('ipsum', { + const responsePromise = client.media.vault.lists.media.add('nemo', { 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('ipsum', { + const response = await client.media.vault.lists.media.add('nemo', { 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('ipsum', { + const responsePromise = client.media.vault.lists.media.remove('nemo', { 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('ipsum', { + const response = await client.media.vault.lists.media.remove('nemo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e3148e8a..91b2d341 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('aliquid', { + const responsePromise = client.posts.comments.create('ea', { 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('aliquid', { + const response = await client.posts.comments.create('ea', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ea', { 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('aliquid', { + const response = await client.posts.comments.list('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 49ea4069..04612a31 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: ['mcgmhuwleigux'] }, + filter: { tags: ['ebfimmggbkxamilme'] }, 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('modi'); + const responsePromise = client.smartLinks.listClicks('consequatur'); 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( - 'modi', + 'consequatur', { 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('expedita'); + const responsePromise = client.smartLinks.listConversions('sit'); 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( - 'expedita', + 'sit', { 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('et'); + const responsePromise = client.smartLinks.listFans('id'); 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( - 'et', + 'id', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('recusandae'); + const responsePromise = client.smartLinks.listSpenders('necessitatibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'recusandae', + 'necessitatibus', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ad'); + const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'ad', + 'accusamus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('facere'); + const responsePromise = client.smartLinks.retrieveStats('corrupti'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'facere', + 'corrupti', { 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 31ec0602..82fe3c51 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: 'ghaelxd', tags: ['zs'] }, + filter: { search: 'ciib', tags: ['pfcecfn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oxqwtk', tags: ['vtc'] }, + filter: { search: 'gzogmk', tags: ['seovpznexlaftz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qcutayayetmvqme', - tags: ['z'], + include_smart_links: false, + search: 'btcvsliuobmwynhwhjfrdv', + tags: ['uybwrwwrkkwbnneviwry'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'yvwgvkhotpjvxmqxzrdkn', - tags: ['lxljvtaihyckskvzsfz'], + search: 'fpnjf', + tags: ['knvvvy'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 54e23fba..b692edc7 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('voluptas', { + const responsePromise = client.stories.highlights.addStory('consequatur', { 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('voluptas', { + const response = await client.stories.highlights.addStory('consequatur', { 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('voluptas', { + const responsePromise = client.stories.highlights.removeStory('consequatur', { 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('voluptas', { + const response = await client.stories.highlights.removeStory('consequatur', { 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 a5cb27f6..dad20509 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('iste', { 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('iste', { 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('iste', { 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,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('iste', { 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('omnis', { 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('omnis', { + 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('odit', { 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('quasi', { + const response = await client.trackingLinks.getStats('odit', { 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 65dbaacb..ce2fcd4f 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('accusamus', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('accusamus', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('accusamus', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('accusamus', { 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('alias', { + 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('alias', { + const response = await client.trialLinks.listSubscribers('dolorum', { 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('occaecati', { + 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('occaecati', { 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('ex', { 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 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ex', { + 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 b5079af6..032f6f88 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: 'l' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qyvvbzgmvxtcmil' }); 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: 'l' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qyvvbzgmvxtcmil' }); }); // Mock server tests are disabled From 2410b936bb45023df611d5d8413e00f1ee48f8c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 01:12:31 +0000 Subject: [PATCH 119/309] 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 | 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 | 20 +++++++------- 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 24 files changed, 99 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index bc1ee4e4..7b8381e9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6edaebf302834d01e7497ddc7c365ea564175e865fa4f602945bb6e0fd1f0ace.yml -openapi_spec_hash: ef81dd9ff5441a4380485e8a950d8d8d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-41fc33142b7ae1fc50e5ba0fa9bbb95d93d4b7692f0e8b513fb829be4b5a8497.yml +openapi_spec_hash: 0b1ae00a211204d823550e216f228ab7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 970b646a..735f878a 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('amet'); + * const response = await client.accounts.disconnect( + * 'delectus', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8bb83d60..73bd8638 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( - * 'odit', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 91abe1d2..13a58c4c 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( - * 'nemo', + * '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( - * 'nemo', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 263bf6ad..b16584fb 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('ea', { + * const comment = await client.posts.comments.create('sit', { * 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('ea', { + * const comments = await client.posts.comments.list('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..2b04cbb2 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 40fa8b39..4c163d9b 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( - * 'consequatur', - * ); + * const response = await client.smartLinks.listClicks('id'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sit', + * 'sint', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('id'); + * const response = await client.smartLinks.listFans('rem'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'necessitatibus', + * 'soluta', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('accusamus'); + * await client.smartLinks.retrieveCohortArps('quod'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'corrupti', + * 'sit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3f9bae82..c556977f 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( - * 'consequatur', + * 'sed', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequatur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('sed', { + * 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 43170e5d..26c7c60a 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', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('a', { + * await client.trackingLinks.getCohortArps('labore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'odit', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6aa0d839..ead5c31f 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( - * 'accusamus', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'accusamus', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolorum', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('occaecati', { + * await client.trialLinks.retrieveCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'assumenda', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 20c5e55a..8eb7ae05 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: 'qyvvbzgmvxtcmil' }, + * { name: 'rncxyzxvzzbtzjnh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 06f068cd..fc00cffd 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('amet'); + const responsePromise = client.accounts.disconnect('delectus'); 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 d3467cbd..1b231d39 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: 'illum', + auth_id: 'voluptatem', auth_type: 'raw_data', - cookies: 'voluptatibus', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: 'zSn}sOXo', port: 8080, - username: 'aliquid', + username: 'nemo', }, - email: 'eva80@example.org', + email: 'sstark@example.com', force_connect: false, - name: 'deleniti', - password: '{.;r8}', - proxyCountry: 'uk', - user_agent: 'voluptatem', - xbc: 'similique', + name: 'recusandae', + password: '`%3)?VMxJX\\,*X', + proxyCountry: 'us', + user_agent: 'voluptates', + xbc: 'eaque', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 4277a872..40edf323 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('odit', { + const responsePromise = client.engagement.messages.getMessageBuyers('quam', { 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('odit', { + const response = await client.engagement.messages.getMessageBuyers('quam', { 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 fa571653..123e9814 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('nemo', { + 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('nemo', { + 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('nemo', { + 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('nemo', { + 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 91b2d341..22e15203 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('ea', { + const responsePromise = client.posts.comments.create('sit', { 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('ea', { + const response = await client.posts.comments.create('sit', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sit', { 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('ea', { + const response = await client.posts.comments.list('sit', { 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 b643af69..96d399de 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 04612a31..5e747395 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: ['ebfimmggbkxamilme'] }, + filter: { tags: ['vubnlrmpedmrhzbkivinv'] }, 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('consequatur'); + const responsePromise = client.smartLinks.listClicks('id'); 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( - 'consequatur', + 'id', { 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('sit'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'sit', + 'sint', { 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('id'); + const responsePromise = client.smartLinks.listFans('rem'); 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( - 'id', + 'rem', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('necessitatibus'); + const responsePromise = client.smartLinks.listSpenders('soluta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'necessitatibus', + 'soluta', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); + const responsePromise = client.smartLinks.retrieveCohortArps('quod'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'quod', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('corrupti'); + const responsePromise = client.smartLinks.retrieveStats('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'corrupti', + 'sit', { 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 82fe3c51..de61be95 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: 'ciib', tags: ['pfcecfn'] }, + filter: { search: 'uccbiolvllonqnhbtjf', tags: ['amizhiluykqv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gzogmk', tags: ['seovpznexlaftz'] }, + filter: { search: 'qmepwajdzxkluorwp', tags: ['ru'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'btcvsliuobmwynhwhjfrdv', - tags: ['uybwrwwrkkwbnneviwry'], + search: 'k', + tags: ['tetsngdezmp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'fpnjf', - tags: ['knvvvy'], + search: 'grbdxesapbticrexxhfyfqnrt', + tags: ['bc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b692edc7..990b3fc7 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('consequatur', { + 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('consequatur', { + 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('consequatur', { + 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('consequatur', { + 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 dad20509..d03f6610 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('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('et', { 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('et', { 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('et', { 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('labore', { 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('labore', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aspernatur', { 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('odit', { + const response = await client.trackingLinks.getStats('aspernatur', { 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 ce2fcd4f..078e4780 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('accusamus', { 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('accusamus', { 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('accusamus', { 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('accusamus', { 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('dolorum', { + 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('dolorum', { + 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('occaecati', { - 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('occaecati', { + 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('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('veritatis', { 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('assumenda', { + const response = await client.trialLinks.retrieveStats('veritatis', { 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 032f6f88..0e823a1d 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: 'qyvvbzgmvxtcmil' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rncxyzxvzzbtzjnh' }); 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: 'qyvvbzgmvxtcmil' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rncxyzxvzzbtzjnh' }); }); // Mock server tests are disabled From 8674431ec34f4908501f16a06ca18e3578b62bb0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 02:12:47 +0000 Subject: [PATCH 120/309] 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 +- 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 +++--- .../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 | 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 | 8 ++++-- 25 files changed, 119 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7b8381e9..c1db3d7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-41fc33142b7ae1fc50e5ba0fa9bbb95d93d4b7692f0e8b513fb829be4b5a8497.yml -openapi_spec_hash: 0b1ae00a211204d823550e216f228ab7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb9f9d5e5ad2501171fdfd7f9a376828fb22d884612e3a9830ef0496c0a53085.yml +openapi_spec_hash: 7f1e13ff1d8baca0021b4bb8e91570bc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 735f878a..d62847e9 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( - * 'delectus', - * ); + * const response = await client.accounts.disconnect('non'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 73bd8638..e7d1ba84 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( - * 'quam', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 13a58c4c..f3d95f1c 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', + * 'qui', * { 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', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b16584fb..b63ecbcc 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'inventore', + * { + * 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'inventore', + * { 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 599a9525..a9767818 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 4c163d9b..e70161c4 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('id'); + * const response = await client.smartLinks.listClicks( + * 'voluptas', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sint', + * 'impedit', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('rem'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'soluta', + * 'omnis', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quod'); + * await client.smartLinks.retrieveCohortArps('inventore'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sit', + * 'nesciunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..bbdfc78b 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( - * 'sed', + * 'quaerat', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sed', { + * await client.stories.highlights.removeStory('quaerat', { * 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 26c7c60a..92749c58 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'magni', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('labore', { + * await client.trackingLinks.getCohortArps('laborum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aspernatur', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ead5c31f..c23b9cf2 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('ab', { + * 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('ab', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'totam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('numquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'veritatis', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8eb7ae05..5e6109df 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: 'rncxyzxvzzbtzjnh' }, + * { name: 'dkfievxarwrqrvhkjhyszlmq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fc00cffd..f8c6d986 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('delectus'); + const responsePromise = client.accounts.disconnect('non'); 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 1b231d39..3e08d21d 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: 'voluptatem', + auth_id: 'sint', auth_type: 'raw_data', - cookies: 'ut', + cookies: 'doloribus', customProxy: { host: 'proxy.example.com', - password: 'fppD$M}!r_>zSn}sOXo', + password: ":s15sX(j'$Vo:-N", port: 8080, - username: 'nemo', + username: 'vitae', }, - email: 'sstark@example.com', + email: 'cruickshank.helga@example.org', force_connect: false, - name: 'recusandae', - password: '`%3)?VMxJX\\,*X', - proxyCountry: 'us', - user_agent: 'voluptates', - xbc: 'eaque', + name: 'labore', + password: 'V%Gu!\\{S&y9dMc.bK', + proxyCountry: 'uk', + user_agent: 'impedit', + 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 40edf323..784164d2 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('quam', { + 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('quam', { + 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 123e9814..c878a4d7 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('qui', { 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('qui', { 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('qui', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 22e15203..c5136422 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('sit', { + 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('sit', { + 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('sit', { 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('sit', { + const response = await client.posts.comments.list('inventore', { 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 8e5b0566..4ec8acc7 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 6b1dc2fd..d13ad1ce 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 5e747395..67205d39 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: ['vubnlrmpedmrhzbkivinv'] }, + filter: { tags: ['limardggdipgb'] }, 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('id'); + const responsePromise = client.smartLinks.listClicks('voluptas'); 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( - 'id', + 'voluptas', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('impedit'); 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( - 'sint', + 'impedit', { 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('rem'); + const responsePromise = client.smartLinks.listFans('aut'); 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( - 'rem', + 'aut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('soluta'); + const responsePromise = client.smartLinks.listSpenders('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'soluta', + 'omnis', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quod'); + const responsePromise = client.smartLinks.retrieveCohortArps('inventore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'quod', + 'inventore', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sit'); + const responsePromise = client.smartLinks.retrieveStats('nesciunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'sit', + '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 de61be95..75427b95 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: 'uccbiolvllonqnhbtjf', tags: ['amizhiluykqv'] }, + filter: { search: 'vcrck', tags: ['pyjspjnydyebxoeqzcye'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qmepwajdzxkluorwp', tags: ['ru'] }, + filter: { search: 'o', tags: ['hiloey'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'k', - tags: ['tetsngdezmp'], + search: 'hbkzitofrhjmmfzxktzq', + tags: ['vlaoptosjy'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'grbdxesapbticrexxhfyfqnrt', - tags: ['bc'], + include_smart_links: false, + search: 'jfazqeqlwbmwqoho', + tags: ['efidwjftlwbmbsqxwaonyort'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..457290bf 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('sed', { + const responsePromise = client.stories.highlights.addStory('quaerat', { 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('sed', { + const response = await client.stories.highlights.addStory('quaerat', { 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('sed', { + const responsePromise = client.stories.highlights.removeStory('quaerat', { 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('sed', { + const response = await client.stories.highlights.removeStory('quaerat', { 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 d03f6610..85fe42a2 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('voluptas', { 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('voluptas', { 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('voluptas', { 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('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('laborum', { + 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('labore', { + const response = await client.trackingLinks.getCohortArps('laborum', { 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('aspernatur', { 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 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aspernatur', { + 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 078e4780..3fc75569 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('ab', { 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('ab', { 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('ab', { 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('ab', { 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('totam', { 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('totam', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('numquam', { + 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('id', { + const response = await client.trialLinks.retrieveCohortArps('numquam', { 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('veritatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('amet', { 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('veritatis', { + const response = await client.trialLinks.retrieveStats('amet', { 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 0e823a1d..c19d1d1f 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: 'rncxyzxvzzbtzjnh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'dkfievxarwrqrvhkjhyszlmq', + }); 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: 'rncxyzxvzzbtzjnh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'dkfievxarwrqrvhkjhyszlmq', + }); }); // Mock server tests are disabled From 955f228cb735459ac88dc456e0c3cc373875eba4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:12:39 +0000 Subject: [PATCH 121/309] 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 +- .../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 | 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 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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, 101 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index c1db3d7e..eea0a299 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb9f9d5e5ad2501171fdfd7f9a376828fb22d884612e3a9830ef0496c0a53085.yml -openapi_spec_hash: 7f1e13ff1d8baca0021b4bb8e91570bc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-16a788073ba16516c1c9b94363ff6c5692c58ec8d64d320af55b47246dfbba02.yml +openapi_spec_hash: 0979a1cebc7a24f6b02ec9ee8db31756 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d62847e9..918969ad 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('non'); + * const response = await client.accounts.disconnect('harum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e7d1ba84..276796ec 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( - * 'porro', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f3d95f1c..2f38ae64 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( - * 'qui', + * '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( - * 'qui', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b63ecbcc..33a40fdf 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('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( - * 'inventore', - * { 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 2b04cbb2..a84ff073 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 e70161c4..39fdf082 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( - * 'voluptas', - * ); + * const response = await client.smartLinks.listClicks('odio'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'impedit', + * 'quia', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans('id'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'omnis', + * 'consequatur', * ); * ``` */ @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nesciunt', + * 'sunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bbdfc78b..65baca3f 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( - * 'quaerat', + * 'sunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quaerat', { + * await client.stories.highlights.removeStory('sunt', { * 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 92749c58..34218fbd 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( - * 'voluptas', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('laborum', { + * 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', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c23b9cf2..48127501 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('ab', { + * const trialLink = await client.trialLinks.retrieve('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ab', { + * const trialLink = await client.trialLinks.delete('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'totam', + * 'repudiandae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('numquam', { + * await client.trialLinks.retrieveCohortArps('itaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'amet', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5e6109df..79cce206 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: 'dkfievxarwrqrvhkjhyszlmq' }, + * { name: 'onuqvylagve' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f8c6d986..a2675e34 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('non'); + const responsePromise = client.accounts.disconnect('harum'); 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 3e08d21d..9b249e0b 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: 'sint', + auth_id: 'veniam', auth_type: 'raw_data', - cookies: 'doloribus', + cookies: 'molestias', customProxy: { host: 'proxy.example.com', - password: ":s15sX(j'$Vo:-N", + password: '\\[?U$/a+mzJ;Utaz"', port: 8080, - username: 'vitae', + username: 'saepe', }, - email: 'cruickshank.helga@example.org', + email: 'maggio.nickolas@example.net', force_connect: false, - name: 'labore', - password: 'V%Gu!\\{S&y9dMc.bK', + name: 'ipsum', + password: '"6\\.)BN)02D/=U[4!/?', proxyCountry: 'uk', - user_agent: 'impedit', - xbc: 'qui', + user_agent: 'consequatur', + xbc: 'nihil', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 784164d2..d1109a7c 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('atque', { 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('atque', { 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 c878a4d7..19155ed9 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('qui', { + 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('qui', { + 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('qui', { + 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('qui', { + 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 e769f5c8..25333899 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 c5136422..e56adcd7 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('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('inventore', { + 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('inventore', { 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('inventore', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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 67205d39..97025557 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: ['limardggdipgb'] }, + filter: { tags: ['qlgyohvkyubxhllfzudgndey'] }, 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('voluptas'); + const responsePromise = client.smartLinks.listClicks('odio'); 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( - 'voluptas', + 'odio', { 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('impedit'); + const responsePromise = client.smartLinks.listConversions('quia'); 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( - 'impedit', + 'quia', { 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('aut'); + const responsePromise = client.smartLinks.listFans('id'); 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( - 'aut', + 'id', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('omnis'); + const responsePromise = client.smartLinks.listSpenders('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'omnis', + 'consequatur', { limit: 50, minSpend: 1, @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nesciunt'); + const responsePromise = client.smartLinks.retrieveStats('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'sunt', { 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 75427b95..41bbcf3c 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: 'vcrck', tags: ['pyjspjnydyebxoeqzcye'] }, + filter: { search: 'xoigwhrixlqipkjfpelpidgf', tags: ['bqzadbm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'o', tags: ['hiloey'] }, + filter: { search: 'pogwymgrlxtyfmebtgbfujqh', tags: ['scwyulymsxzpjblmsgpx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'hbkzitofrhjmmfzxktzq', - tags: ['vlaoptosjy'], + search: 'nyy', + tags: ['hyb'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jfazqeqlwbmwqoho', - tags: ['efidwjftlwbmbsqxwaonyort'], + search: 'amdhyacbfvgt', + tags: ['jtetzvfcmxiv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 457290bf..9c718253 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('quaerat', { + 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('quaerat', { + 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('quaerat', { + 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('quaerat', { + 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 85fe42a2..67465376 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptatem', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptatem', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptatem', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('laborum', { - 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; @@ -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('laborum', { + const response = await client.trackingLinks.getCohortArps('qui', { 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { 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('similique', { + const response = await client.trackingLinks.getStats('est', { 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 3fc75569..12e570d7 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sit', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sit', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sit', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sit', { 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('totam', { + const responsePromise = client.trialLinks.listSubscribers('repudiandae', { 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('totam', { + const response = await client.trialLinks.listSubscribers('repudiandae', { 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('numquam', { + const responsePromise = client.trialLinks.retrieveCohortArps('itaque', { 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('numquam', { + const response = await client.trialLinks.retrieveCohortArps('itaque', { 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('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('fuga', { 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('amet', { + const response = await client.trialLinks.retrieveStats('fuga', { 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 c19d1d1f..8b2160fe 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: 'dkfievxarwrqrvhkjhyszlmq', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'onuqvylagve' }); 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: 'dkfievxarwrqrvhkjhyszlmq', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'onuqvylagve' }); }); // Mock server tests are disabled From d9d3274e6e95514d06931ce67e32857537395713 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:12:31 +0000 Subject: [PATCH 122/309] 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 +- 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 | 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 | 26 +++++++++---------- 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 +-- 27 files changed, 114 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index eea0a299..355dd922 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-16a788073ba16516c1c9b94363ff6c5692c58ec8d64d320af55b47246dfbba02.yml -openapi_spec_hash: 0979a1cebc7a24f6b02ec9ee8db31756 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c362b16c4c91a1f25e0196b5a2d9d38841e09bc76e3ce1dfbea4655e6fac5df3.yml +openapi_spec_hash: acad0512767076850dd5411b4178746e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 918969ad..245fc5fb 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('harum'); + * 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 276796ec..5c5e98b6 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( - * 'atque', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..f18743af 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', + * 'optio', * { 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', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..b16584fb 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('aut', { + * const comment = await client.posts.comments.create('sit', { * 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('aut', { + * const comments = await client.posts.comments.list('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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/smart-links.ts b/src/resources/smart-links.ts index 39fdf082..0229272a 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('odio'); + * const response = await client.smartLinks.listClicks( + * 'temporibus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quia', + * 'omnis', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('id'); + * const response = await client.smartLinks.listFans( + * 'assumenda', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'consequatur', + * 'velit', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('inventore'); + * await client.smartLinks.retrieveCohortArps('molestiae'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sunt', + * 'exercitationem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 65baca3f..47b4f416 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', + * 'adipisci', * { * 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('adipisci', { * 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 34218fbd..71c3d5ed 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( - * 'voluptatem', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatem', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'est', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 48127501..7a1e0f3d 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'cupiditate', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'cupiditate', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'repudiandae', + * 'officia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('itaque', { + * await client.trialLinks.retrieveCohortArps('doloribus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'fuga', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 79cce206..c1bf1a5c 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: 'onuqvylagve' }, + * { name: 'osxlwxky' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a2675e34..13e5c0c0 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('harum'); + 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 9b249e0b..e30443de 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: 'veniam', + auth_id: 'tenetur', auth_type: 'raw_data', - cookies: 'molestias', + cookies: 'officiis', customProxy: { host: 'proxy.example.com', - password: '\\[?U$/a+mzJ;Utaz"', + password: 'D{?Q?@`T|pcs)K', port: 8080, - username: 'saepe', + username: 'nostrum', }, - email: 'maggio.nickolas@example.net', - force_connect: false, - name: 'ipsum', - password: '"6\\.)BN)02D/=U[4!/?', - proxyCountry: 'uk', - user_agent: 'consequatur', - xbc: 'nihil', + email: 'rickey.langworth@example.com', + force_connect: true, + name: 'repellat', + password: 'L0ryieZQ0cX=qnyE', + proxyCountry: 'us', + user_agent: 'earum', + xbc: 'molestias', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 d1109a7c..ee0907b9 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('atque', { + const responsePromise = client.engagement.messages.getMessageBuyers('asperiores', { 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('atque', { + const response = await client.engagement.messages.getMessageBuyers('asperiores', { 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 19155ed9..88f30665 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('optio', { 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('optio', { 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('optio', { 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('optio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..14dcb2e9 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 e56adcd7..22e15203 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('sit', { 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('sit', { 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('sit', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 97025557..534413cc 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: ['qlgyohvkyubxhllfzudgndey'] }, + filter: { tags: ['wu'] }, 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('odio'); + const responsePromise = client.smartLinks.listClicks('temporibus'); 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( - 'odio', + 'temporibus', { 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('quia'); + const responsePromise = client.smartLinks.listConversions('omnis'); 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( - 'quia', + 'omnis', { 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('id'); + const responsePromise = client.smartLinks.listFans('assumenda'); 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( - 'id', + 'assumenda', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('consequatur'); + const responsePromise = client.smartLinks.listSpenders('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'consequatur', + 'velit', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('inventore'); + const responsePromise = client.smartLinks.retrieveCohortArps('molestiae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'inventore', + 'molestiae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sunt'); + const responsePromise = client.smartLinks.retrieveStats('exercitationem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'sunt', + 'exercitationem', { 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 41bbcf3c..2e87ecf4 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: 'xoigwhrixlqipkjfpelpidgf', tags: ['bqzadbm'] }, + filter: { search: 'bvxy', tags: ['hppivllsoygvdmftrrigl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pogwymgrlxtyfmebtgbfujqh', tags: ['scwyulymsxzpjblmsgpx'] }, + filter: { search: 'n', tags: ['yxo'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nyy', - tags: ['hyb'], + include_smart_links: true, + search: 'vymbfhfuyeidzday', + tags: ['dixecgghogfzjgbsxkfqa'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'amdhyacbfvgt', - tags: ['jtetzvfcmxiv'], + include_smart_links: true, + search: 'bftuhjs', + tags: ['denfdxoyzrurhimmao'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9c718253..f6e96288 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('adipisci', { 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('adipisci', { 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('adipisci', { 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('adipisci', { 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 67465376..063eb418 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('possimus', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('possimus', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('possimus', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('possimus', { 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('autem', { 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('autem', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('fugit', { 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('est', { + const response = await client.trackingLinks.getStats('fugit', { 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 12e570d7..0a09871f 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('cupiditate', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('cupiditate', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('cupiditate', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('cupiditate', { 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('repudiandae', { + const responsePromise = client.trialLinks.listSubscribers('officia', { 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('repudiandae', { + const response = await client.trialLinks.listSubscribers('officia', { 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('itaque', { + const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { 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('itaque', { + const response = await client.trialLinks.retrieveCohortArps('doloribus', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('temporibus', { + 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('fuga', { + const response = await client.trialLinks.retrieveStats('temporibus', { 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 8b2160fe..8678a180 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: 'onuqvylagve' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'osxlwxky' }); 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: 'onuqvylagve' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'osxlwxky' }); }); // Mock server tests are disabled From 264433997b883b834866128e11a1c82ccd34e029 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 21:12:29 +0000 Subject: [PATCH 123/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/chats/chats.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 | 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 ++++++++--------- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 104 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 355dd922..5600fdc5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c362b16c4c91a1f25e0196b5a2d9d38841e09bc76e3ce1dfbea4655e6fac5df3.yml -openapi_spec_hash: acad0512767076850dd5411b4178746e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba677834a77b7edbbb9db2198f9297c2942d93c12673447320404fbef92e1332.yml +openapi_spec_hash: 175ed099358f51d83318b341aa6d8e15 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..7ab910c8 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( - * 'voluptatem', + * 'nesciunt', * ); * ``` */ diff --git a/src/resources/chats/chats.ts b/src/resources/chats/chats.ts index 77c97030..560f791e 100644 --- a/src/resources/chats/chats.ts +++ b/src/resources/chats/chats.ts @@ -157,8 +157,8 @@ export class Chats extends APIResource { /** * Calling this endpoint will show the target fan a "Model is typing..." note in - * the chat for ~4 seconds. If you want to continue showing the indicator call this - * endpoint multiple times. Free - no credits charged. + * the chat for ~4 seconds. Duplicate calls for the same account and chat are + * coalesced during that window. * * @example * ```ts diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5c5e98b6..3e12d703 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( - * 'asperiores', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f18743af..3fcfa83d 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( - * 'optio', + * 'corrupti', * { 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( - * 'optio', + * 'corrupti', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b16584fb..33a40fdf 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('sit', { + * const comment = await client.posts.comments.create('aut', { * 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('sit', { + * const comments = await client.posts.comments.list('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..2b04cbb2 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 0229272a..c2db84b8 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( - * 'temporibus', + * 'provident', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'omnis', + * 'veritatis', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'assumenda', - * ); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'velit', + * 'rerum', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('molestiae'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'exercitationem', + * 'repudiandae', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 47b4f416..ad3cdb60 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( - * 'adipisci', + * 'veniam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('adipisci', { + * await client.stories.highlights.removeStory('veniam', { * 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 71c3d5ed..8899382d 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( - * 'possimus', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'possimus', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('autem', { + * await client.trackingLinks.getCohortArps('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fugit', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 7a1e0f3d..6ee5152f 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( - * 'cupiditate', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'cupiditate', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'officia', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('doloribus', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'temporibus', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c1bf1a5c..838e9244 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: 'osxlwxky' }, + * { name: 'qgzlijdsm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..d429a4a5 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('nesciunt'); 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 e30443de..8397dce5 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: 'tenetur', - auth_type: 'raw_data', - cookies: 'officiis', + auth_id: 'temporibus', + auth_type: 'mobile_app', + cookies: 'debitis', customProxy: { host: 'proxy.example.com', - password: 'D{?Q?@`T|pcs)K', + password: ',0=XQnN^I3qj@;', port: 8080, - username: 'nostrum', + username: 'consequatur', }, - email: 'rickey.langworth@example.com', - force_connect: true, - name: 'repellat', - password: 'L0ryieZQ0cX=qnyE', - proxyCountry: 'us', - user_agent: 'earum', - xbc: 'molestias', + email: 'kale.buckridge@example.net', + force_connect: false, + name: 'ea', + password: 'D@CR;Yx0', + proxyCountry: 'uk', + user_agent: 'iste', + 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 ee0907b9..0949d534 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('asperiores', { + const responsePromise = client.engagement.messages.getMessageBuyers('reiciendis', { 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('asperiores', { + const response = await client.engagement.messages.getMessageBuyers('reiciendis', { 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 88f30665..59d7af78 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('optio', { + const responsePromise = client.media.vault.lists.media.add('corrupti', { 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('optio', { + const response = await client.media.vault.lists.media.add('corrupti', { 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('optio', { + const responsePromise = client.media.vault.lists.media.remove('corrupti', { 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('optio', { + const response = await client.media.vault.lists.media.remove('corrupti', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..b0d96512 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 22e15203..e56adcd7 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('sit', { + 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('sit', { + 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('sit', { 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('sit', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..96d399de 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 d13ad1ce..6b1dc2fd 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 534413cc..a525ba5e 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: ['wu'] }, + filter: { tags: ['xlzlsyghkpsikqorgvrolj'] }, 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('temporibus'); + const responsePromise = client.smartLinks.listClicks('provident'); 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( - 'temporibus', + 'provident', { 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('omnis'); + const responsePromise = client.smartLinks.listConversions('veritatis'); 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( - 'omnis', + 'veritatis', { 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('assumenda'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'assumenda', + 'ut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('velit'); + const responsePromise = client.smartLinks.listSpenders('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'rerum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('molestiae'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'molestiae', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('exercitationem'); + const responsePromise = client.smartLinks.retrieveStats('repudiandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'exercitationem', + 'repudiandae', { 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 2e87ecf4..e2118038 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: 'bvxy', tags: ['hppivllsoygvdmftrrigl'] }, + filter: { search: 'gkkparqdnqbbzdpu', tags: ['uzpxhebijjiwm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'n', tags: ['yxo'] }, + filter: { search: 'rnwlxbjnndveebrjz', tags: ['ys'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vymbfhfuyeidzday', - tags: ['dixecgghogfzjgbsxkfqa'], + search: 'vcejrliddz', + tags: ['rnlgcpritojjogsaj'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bftuhjs', - tags: ['denfdxoyzrurhimmao'], + include_smart_links: false, + search: 'mxtpfklmpmm', + tags: ['jiblwvpsobnyanpia'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f6e96288..aa7ae307 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('adipisci', { + const responsePromise = client.stories.highlights.addStory('veniam', { 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('adipisci', { + const response = await client.stories.highlights.addStory('veniam', { 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('adipisci', { + const responsePromise = client.stories.highlights.removeStory('veniam', { 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('adipisci', { + const response = await client.stories.highlights.removeStory('veniam', { 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 063eb418..0e4f1e9d 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('expedita', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('expedita', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('expedita', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('nihil', { 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('autem', { + const response = await client.trackingLinks.getCohortArps('nihil', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('delectus', { 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('fugit', { + const response = await client.trackingLinks.getStats('delectus', { 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 0a09871f..94d02664 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('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('perferendis', { 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('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('perferendis', { 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('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('perferendis', { 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('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('perferendis', { 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('officia', { + const responsePromise = client.trialLinks.listSubscribers('cum', { 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('officia', { + const response = await client.trialLinks.listSubscribers('cum', { 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('doloribus', { + 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('doloribus', { + 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,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('temporibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('neque', { 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('temporibus', { + const response = await client.trialLinks.retrieveStats('neque', { 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 8678a180..835cc5e2 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: 'osxlwxky' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qgzlijdsm' }); 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: 'osxlwxky' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qgzlijdsm' }); }); // Mock server tests are disabled From 23a3de0f20ebb26e5f465052efa8b6150f23eee1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:12:36 +0000 Subject: [PATCH 124/309] 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 | 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 | 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 | 22 +++++++++---------- 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, 114 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5600fdc5..20e15a3b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba677834a77b7edbbb9db2198f9297c2942d93c12673447320404fbef92e1332.yml -openapi_spec_hash: 175ed099358f51d83318b341aa6d8e15 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50f1f80bb06b4a7a9c4cf853b7d4c6eda291f60b515e38ac6ac9e03611853ffe.yml +openapi_spec_hash: 32df5b526d06f339131c411cbf4aaebe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7ab910c8..c9346c8f 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( - * 'nesciunt', - * ); + * 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 3e12d703..d7c41f73 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( - * 'reiciendis', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 3fcfa83d..5f8527cb 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( - * 'corrupti', + * 'perferendis', * { 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( - * 'corrupti', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..12edd193 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( + * 'nihil', + * { + * 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('aut', { + * const comments = await client.posts.comments.list('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 2b04cbb2..c9a094cf 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 c2db84b8..5f7634fc 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( - * 'provident', + * 'adipisci', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'veritatis', + * 'et', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans( + * 'voluptates', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rerum', + * 'iure', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('tempora'); * ``` */ retrieveCohortArps( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ad3cdb60..49b5faa2 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( - * 'veniam', + * '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('veniam', { - * 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 8899382d..ab9487c8 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( - * 'expedita', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'expedita', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nihil', { + * await client.trackingLinks.getCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'delectus', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6ee5152f..668f4db7 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( - * 'perferendis', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'perferendis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('nihil', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'cum', + * 'eum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('quaerat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'neque', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 838e9244..0666e3f3 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: 'qgzlijdsm' }, + * { name: 'uobdhgqjbtzxkujlpqul' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d429a4a5..7f7f9364 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('nesciunt'); + 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 8397dce5..5d1ac12a 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: 'temporibus', - auth_type: 'mobile_app', - cookies: 'debitis', + auth_id: 'sit', + auth_type: 'email_password', + cookies: 'perferendis', customProxy: { host: 'proxy.example.com', - password: ',0=XQnN^I3qj@;', + 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 0949d534..eeeaf1f9 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('reiciendis', { + const responsePromise = client.engagement.messages.getMessageBuyers('facere', { 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('reiciendis', { + const response = await client.engagement.messages.getMessageBuyers('facere', { 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 59d7af78..ef3d8a41 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('corrupti', { + const responsePromise = client.media.vault.lists.media.add('perferendis', { 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('corrupti', { + const response = await client.media.vault.lists.media.add('perferendis', { 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('corrupti', { + const responsePromise = client.media.vault.lists.media.remove('perferendis', { 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('corrupti', { + const response = await client.media.vault.lists.media.remove('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..3c27d9ed 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('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('aut', { + 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('aut', { 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('aut', { + 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 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 96d399de..b643af69 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 a525ba5e..719869f6 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: ['xlzlsyghkpsikqorgvrolj'] }, + filter: { tags: ['akfkidqyvlsefd'] }, 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('provident'); + const responsePromise = client.smartLinks.listClicks('adipisci'); 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( - 'provident', + 'adipisci', { 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('veritatis'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'veritatis', + 'et', { 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('ut'); + const responsePromise = client.smartLinks.listFans('voluptates'); 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( - 'ut', + 'voluptates', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('rerum'); + const responsePromise = client.smartLinks.listSpenders('iure'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'rerum', + 'iure', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('tempora'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'tempora', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index e2118038..de4f788d 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: 'gkkparqdnqbbzdpu', tags: ['uzpxhebijjiwm'] }, + filter: { search: 'tbmjy', tags: ['nndozxyctbkhihivquxcyujr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rnwlxbjnndveebrjz', tags: ['ys'] }, + filter: { search: 'dwoplciqifokdizdb', tags: ['mtqenc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'vcejrliddz', - tags: ['rnlgcpritojjogsaj'], + include_smart_links: false, + search: 'cjmmocxazpsqisdrbajtapjit', + tags: ['lhbymbozrrqflwjufezjokyfw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'mxtpfklmpmm', - tags: ['jiblwvpsobnyanpia'], + search: 'nmnnhsrzdvqqrdde', + tags: ['ibvtb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index aa7ae307..2a708798 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('veniam', { + 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('veniam', { + 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('veniam', { + 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('veniam', { + 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 0e4f1e9d..512fea64 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sapiente', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sapiente', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sapiente', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('enim', { 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('nihil', { + const response = await client.trackingLinks.getCohortArps('enim', { 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('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sit', { 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('delectus', { + const response = await client.trackingLinks.getStats('sit', { 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 94d02664..00b66353 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('perferendis', { 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('perferendis', { 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('perferendis', { 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('perferendis', { 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('cum', { + const responsePromise = client.trialLinks.listSubscribers('eum', { 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('cum', { + const response = await client.trialLinks.listSubscribers('eum', { 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('quaerat', { 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('quaerat', { 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('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('aliquid', { 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('neque', { + const response = await client.trialLinks.retrieveStats('aliquid', { 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 835cc5e2..63458f97 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: 'qgzlijdsm' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uobdhgqjbtzxkujlpqul' }); 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: 'qgzlijdsm' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uobdhgqjbtzxkujlpqul' }); }); // Mock server tests are disabled From 32388862eff60330248c922e532ab55ad96f56fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 03:12:34 +0000 Subject: [PATCH 125/309] 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/messages/settings.ts | 2 +- .../saved-for-later/posts/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 | 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 | 26 +++++++++---------- 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 +-- 27 files changed, 110 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index 20e15a3b..cd0b02d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50f1f80bb06b4a7a9c4cf853b7d4c6eda291f60b515e38ac6ac9e03611853ffe.yml -openapi_spec_hash: 32df5b526d06f339131c411cbf4aaebe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-211916b41fb641f03be1798452dd51c74ce89cb98cbc94e5c3028162e2c92c0a.yml +openapi_spec_hash: e6bb03676d1715259a7e0d6a1fe83f3e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8f..7c00ba25 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('ut'); + * const response = await client.accounts.disconnect('vitae'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d7c41f73..18e58a9e 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( - * 'facere', + * 'exercitationem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5f8527cb..2047a90b 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( - * 'perferendis', + * 'nulla', * { 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( - * 'perferendis', + * 'nulla', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12edd193..d3415dfb 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( - * 'nihil', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('cum', { + * 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('nihil', { + * const comments = await client.posts.comments.list('cum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 c9a094cf..2b04cbb2 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 5f7634fc..57183a2d 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( - * 'adipisci', - * ); + * 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( - * 'et', + * 'nulla', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'voluptates', + * 'doloribus', * ); * ``` */ @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'iure', + * 'aut', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tempora'); + * await client.smartLinks.retrieveCohortArps('cumque'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'repudiandae', + * 'perferendis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 49b5faa2..d96feb77 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', + * 'optio', * { * 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('optio', { + * 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 ab9487c8..da99b04a 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( - * 'sapiente', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sapiente', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('enim', { + * 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( - * 'sit', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 668f4db7..c3a47a47 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( - * 'nihil', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nihil', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'laborum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eum', + * 'rerum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quaerat', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aliquid', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0666e3f3..5c15c2bc 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: 'uobdhgqjbtzxkujlpqul' }, + * { name: 'hxodkcv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f9364..f8cc7aab 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('vitae'); 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 5d1ac12a..f9fd4059 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: 'sit', - auth_type: 'email_password', - cookies: 'perferendis', + auth_id: 'voluptatibus', + auth_type: 'raw_data', + cookies: 'dolores', customProxy: { host: 'proxy.example.com', - password: "%' { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('facere', { + 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('facere', { + 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 ef3d8a41..baab7c2c 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('perferendis', { + const responsePromise = client.media.vault.lists.media.add('nulla', { 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('perferendis', { + const response = await client.media.vault.lists.media.add('nulla', { 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('perferendis', { + const responsePromise = client.media.vault.lists.media.remove('nulla', { 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('perferendis', { + const response = await client.media.vault.lists.media.remove('nulla', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3c27d9ed..34d870aa 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('cum', { 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('cum', { 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('cum', { 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('cum', { 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 4ec8acc7..fd74b68f 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 b643af69..96d399de 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 6b1dc2fd..d13ad1ce 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 719869f6..e08e1d17 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: ['akfkidqyvlsefd'] }, + filter: { tags: ['dusrkqfbasitipzqzaxa'] }, 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('adipisci'); + const responsePromise = client.smartLinks.listClicks('in'); 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( - 'adipisci', + 'in', { 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('et'); + const responsePromise = client.smartLinks.listConversions('nulla'); 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( - 'et', + 'nulla', { 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('voluptates'); + const responsePromise = client.smartLinks.listFans('doloribus'); 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( - 'voluptates', + 'doloribus', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('iure'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'iure', + 'aut', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tempora'); + const responsePromise = client.smartLinks.retrieveCohortArps('cumque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'tempora', + 'cumque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('repudiandae'); + const responsePromise = client.smartLinks.retrieveStats('perferendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'repudiandae', + '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 de4f788d..d8ee8fd7 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: 'tbmjy', tags: ['nndozxyctbkhihivquxcyujr'] }, + filter: { search: 'thkanlaztkfpxhqwebdviuzje', tags: ['f'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dwoplciqifokdizdb', tags: ['mtqenc'] }, + filter: { search: 'iowu', tags: ['sreejcmkmjzemczvnhvehr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'cjmmocxazpsqisdrbajtapjit', - tags: ['lhbymbozrrqflwjufezjokyfw'], + include_smart_links: true, + search: 'lnysvjloufknk', + tags: ['dofjoxiw'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nmnnhsrzdvqqrdde', - tags: ['ibvtb'], + include_smart_links: true, + search: 'thdqoj', + tags: ['sbvipdfqapqnocltsyrfvhlw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2a708798..049c03ec 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('optio', { 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('optio', { 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('optio', { 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('optio', { 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 512fea64..f7d8d82b 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('suscipit', { 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('suscipit', { 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('suscipit', { 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('enim', { 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; @@ -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('enim', { + const response = await client.trackingLinks.getCohortArps('quod', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eius', { 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('sit', { + const response = await client.trackingLinks.getStats('eius', { 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 00b66353..6b684e42 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('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('nihil', { 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('nihil', { 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('nihil', { 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('eum', { + const responsePromise = client.trialLinks.listSubscribers('rerum', { 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('rerum', { 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('quaerat', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('eos', { 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('quaerat', { + const response = await client.trialLinks.retrieveCohortArps('eos', { 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('aliquid', { 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('aliquid', { + 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 63458f97..771054b4 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: 'uobdhgqjbtzxkujlpqul' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hxodkcv' }); 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: 'uobdhgqjbtzxkujlpqul' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hxodkcv' }); }); // Mock server tests are disabled From 56e0cc3c3854b1d5c5b6c5bc4a7efb1374778459 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:12:37 +0000 Subject: [PATCH 126/309] 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 | 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 ++++++++--------- .../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 | 26 +++++++++---------- 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 +-- 24 files changed, 109 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index cd0b02d0..2a1bbe8f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-211916b41fb641f03be1798452dd51c74ce89cb98cbc94e5c3028162e2c92c0a.yml -openapi_spec_hash: e6bb03676d1715259a7e0d6a1fe83f3e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7b36c6524b681f544d107b99f986fab95be59c44d09e9e8b038fb1a34f81f259.yml +openapi_spec_hash: 8fafe5c33d355fb94bcf8fdc170624c0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7c00ba25..0905a78a 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('vitae'); + * const response = await client.accounts.disconnect('nihil'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 18e58a9e..e48dc031 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( - * 'exercitationem', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2047a90b..daa37b53 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( - * 'nulla', + * '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( - * 'nulla', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index d3415dfb..295278c6 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('cum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'dolores', + * { + * 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('cum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'dolores', + * { 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 e20f70d1..09d6973d 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 57183a2d..e45e84e5 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( + * 'reiciendis', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nulla', + * 'quos', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'doloribus', + * 'delectus', * ); * ``` */ @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'quia', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('cumque'); + * await client.smartLinks.retrieveCohortArps('non'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'perferendis', + * 'autem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index d96feb77..047d4dac 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( - * 'optio', + * 'tempore', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('optio', { + * await client.stories.highlights.removeStory('tempore', { * 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 da99b04a..0837aeb8 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( - * 'suscipit', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'suscipit', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quod', { + * await client.trackingLinks.getCohortArps('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eius', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c3a47a47..f1b944cc 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', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'laborum', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'rerum', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'sunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5c15c2bc..f42ce139 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: 'hxodkcv' }, + * { name: 'epycx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f8cc7aab..fe634fcf 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('vitae'); + const responsePromise = client.accounts.disconnect('nihil'); 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 f9fd4059..14e98359 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: 'voluptatibus', - auth_type: 'raw_data', - cookies: 'dolores', + auth_id: 'quia', + auth_type: 'email_password', + cookies: 'iste', customProxy: { host: 'proxy.example.com', - password: 'L1E- { // 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('eius', { 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('eius', { 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 baab7c2c..6989253d 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('nulla', { + 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('nulla', { + 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('nulla', { + 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('nulla', { + 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 e56040c2..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 34d870aa..91e5fe0e 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('cum', { + const responsePromise = client.posts.comments.create('dolores', { 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('cum', { + const response = await client.posts.comments.create('dolores', { 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('cum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolores', { 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('cum', { + const response = await client.posts.comments.list('dolores', { 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 fd74b68f..e2edc676 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 e08e1d17..6691de6c 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: ['dusrkqfbasitipzqzaxa'] }, + filter: { tags: ['iu'] }, 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('in'); + const responsePromise = client.smartLinks.listClicks('reiciendis'); 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( - 'in', + 'reiciendis', { 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('nulla'); + const responsePromise = client.smartLinks.listConversions('quos'); 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( - 'nulla', + 'quos', { 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('doloribus'); + const responsePromise = client.smartLinks.listFans('delectus'); 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( - 'doloribus', + 'delectus', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'quia', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('cumque'); + const responsePromise = client.smartLinks.retrieveCohortArps('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'cumque', + 'non', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('perferendis'); + const responsePromise = client.smartLinks.retrieveStats('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'autem', { 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 d8ee8fd7..f185d25a 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: 'thkanlaztkfpxhqwebdviuzje', tags: ['f'] }, + filter: { search: 'upndcsdcezu', tags: ['zptntggzxfpdjhb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'iowu', tags: ['sreejcmkmjzemczvnhvehr'] }, + filter: { search: 'ldglhhqvqags', tags: ['bskbjoppb'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'lnysvjloufknk', - tags: ['dofjoxiw'], + include_smart_links: false, + search: 'xmzhtnpafsw', + tags: ['wtgblhglaoyhakzwxmeotto'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'thdqoj', - tags: ['sbvipdfqapqnocltsyrfvhlw'], + include_smart_links: false, + search: 'wgivqpfyduskwctwvkoj', + tags: ['klmgtwoxkkjwkqdqxmfc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 049c03ec..a85e8691 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('optio', { + const responsePromise = client.stories.highlights.addStory('tempore', { 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('optio', { + const response = await client.stories.highlights.addStory('tempore', { 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('optio', { + const responsePromise = client.stories.highlights.removeStory('tempore', { 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('optio', { + const response = await client.stories.highlights.removeStory('tempore', { 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 f7d8d82b..bedeceff 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('tenetur', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('tenetur', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('tenetur', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('tenetur', { 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('vel', { 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('vel', { 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('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('doloremque', { 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('eius', { + const response = await client.trackingLinks.getStats('doloremque', { 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 6b684e42..42ff5636 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('voluptatibus', { 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('voluptatibus', { 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('voluptatibus', { 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('voluptatibus', { 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('rerum', { + 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('rerum', { + 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('ea', { 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('eos', { + const response = await client.trialLinks.retrieveCohortArps('ea', { 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('sunt', { 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('sunt', { 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 771054b4..31f8b179 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: 'hxodkcv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'epycx' }); 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: 'hxodkcv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'epycx' }); }); // Mock server tests are disabled From 2afbb351ea9dc6775eaf9d153287c5f2c0f3db8f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:12:34 +0000 Subject: [PATCH 127/309] 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 | 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 +-- 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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 24 files changed, 102 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2a1bbe8f..d7f990df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7b36c6524b681f544d107b99f986fab95be59c44d09e9e8b038fb1a34f81f259.yml -openapi_spec_hash: 8fafe5c33d355fb94bcf8fdc170624c0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1f93b6a0a3af44bb6a0b7894a345bca4b5091fdbe2025521703812008dea1c5f.yml +openapi_spec_hash: f4561e05b56c2dacb2d7c5e61b7f10b3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0905a78a..4838accc 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('nihil'); + * 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 e48dc031..82ab793d 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( - * 'eius', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index daa37b53..0338921d 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', + * '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( - * 'autem', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 295278c6..3d7b620c 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( - * 'dolores', + * 'animi', * { * 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( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('animi', { + * 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 2b04cbb2..41feb4c0 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 e45e84e5..51a8aa2d 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( - * 'reiciendis', - * ); + * const response = await client.smartLinks.listClicks('nemo'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quos', + * 'qui', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'delectus', + * 'facilis', * ); * ``` */ @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'dolor', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('non'); + * await client.smartLinks.retrieveCohortArps('similique'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'autem', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 047d4dac..af9bc564 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( - * 'tempore', + * 'tempora', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('tempore', { + * await client.stories.highlights.removeStory('tempora', { * 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 0837aeb8..d9b97f38 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( - * 'tenetur', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'tenetur', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('vel', { + * await client.trackingLinks.getCohortArps('esse', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'doloremque', + * 'repellendus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f1b944cc..526056f0 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( - * 'voluptatibus', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptatibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('fugit', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'error', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ea', { + * await client.trialLinks.retrieveCohortArps('nostrum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sunt', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f42ce139..4839f2cb 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: 'epycx' }, + * { name: 'qanyatag' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fe634fcf..ee79bf41 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('nihil'); + 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 14e98359..5bac48c8 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: 'quia', - auth_type: 'email_password', - cookies: 'iste', + auth_id: 'ut', + auth_type: 'raw_data', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: "Nn'xm0BsZ7m.Epi9", + password: 'PV]t%g^e8c>p', port: 8080, - username: 'officiis', + username: 'fuga', }, - email: 'wisozk.berta@example.org', + email: 'felicia.conroy@example.org', force_connect: false, - name: 'ullam', - password: 'Hs{MV8MQ|89', + name: 'libero', + password: ";I>RKQ8FaS;I2'~a'", proxyCountry: 'uk', - user_agent: 'at', - xbc: 'voluptate', + user_agent: 'sit', + xbc: 'sint', }, { 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 1aa6ba00..38b98b46 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('eius', { + const responsePromise = client.engagement.messages.getMessageBuyers('doloribus', { 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('eius', { + const response = await client.engagement.messages.getMessageBuyers('doloribus', { 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 6989253d..c9be7945 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('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('autem', { + 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('autem', { + 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('autem', { + 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 69b39e44..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91e5fe0e..e205663b 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('dolores', { + const responsePromise = client.posts.comments.create('animi', { 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('dolores', { + const response = await client.posts.comments.create('animi', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('animi', { 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('dolores', { + const response = await client.posts.comments.list('animi', { 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 96d399de..c1510622 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 6691de6c..600755df 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: ['iu'] }, + filter: { tags: ['gin'] }, 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('reiciendis'); + const responsePromise = client.smartLinks.listClicks('nemo'); 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( - 'reiciendis', + 'nemo', { 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('quos'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'quos', + 'qui', { 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('delectus'); + const responsePromise = client.smartLinks.listFans('facilis'); 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( - 'delectus', + 'facilis', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quia'); + const responsePromise = client.smartLinks.listSpenders('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'dolor', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('non'); + const responsePromise = client.smartLinks.retrieveCohortArps('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'similique', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('autem'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'autem', + '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 f185d25a..6c71c523 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: 'upndcsdcezu', tags: ['zptntggzxfpdjhb'] }, + filter: { search: 'fzvyjyffyixayro', tags: ['kudf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ldglhhqvqags', tags: ['bskbjoppb'] }, + filter: { search: 'fjvvltkdstgdpzaoustlzrigr', tags: ['sixzytvhcohvwfagwocjmeo'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'xmzhtnpafsw', - tags: ['wtgblhglaoyhakzwxmeotto'], + search: 'sukquuqcovvfqx', + tags: ['duuhboypon'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'wgivqpfyduskwctwvkoj', - tags: ['klmgtwoxkkjwkqdqxmfc'], + search: 'ebnpvj', + tags: ['hcrogwbsrbxamht'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a85e8691..550a1307 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('tempore', { + const responsePromise = client.stories.highlights.addStory('tempora', { 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('tempore', { + const response = await client.stories.highlights.addStory('tempora', { 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('tempore', { + const responsePromise = client.stories.highlights.removeStory('tempora', { 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('tempore', { + const response = await client.stories.highlights.removeStory('tempora', { 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 bedeceff..56a82273 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('adipisci', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('adipisci', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('adipisci', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('vel', { 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('vel', { + 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('repellendus', { 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('doloremque', { + const response = await client.trackingLinks.getStats('repellendus', { 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 42ff5636..9c9488da 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('fugit', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('fugit', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('fugit', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('fugit', { 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('error', { 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('error', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('nostrum', { + 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('ea', { + const response = await client.trialLinks.retrieveCohortArps('nostrum', { 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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptatibus', { + 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('sunt', { + const response = await client.trialLinks.retrieveStats('voluptatibus', { 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 31f8b179..12908bfc 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: 'epycx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qanyatag' }); 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: 'epycx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qanyatag' }); }); // Mock server tests are disabled From 8b69c4237e6944a1a70dab3bbdd860084565d8b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:12:32 +0000 Subject: [PATCH 128/309] 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 +- 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 +++--- .../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 | 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 +-- 26 files changed, 105 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index d7f990df..f78f2367 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1f93b6a0a3af44bb6a0b7894a345bca4b5091fdbe2025521703812008dea1c5f.yml -openapi_spec_hash: f4561e05b56c2dacb2d7c5e61b7f10b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8224d0f290595f1cc612a44cb14745189d03b5c3b6e93f525739336177a54a80.yml +openapi_spec_hash: 68b73188bf77a00227de2e20a5f71743 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838accc..7145e6dd 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('nulla'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 82ab793d..803d6055 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( - * 'doloribus', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0338921d..8ecd2f5d 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', + * 'modi', * { 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', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3d7b620c..36ae6c40 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( - * 'animi', + * 'repellat', * { * 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('animi', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'repellat', + * { 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 09d6973d..599a9525 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 51a8aa2d..2dabe620 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('nemo'); + * const response = await client.smartLinks.listClicks( + * 'harum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'odit', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'facilis', - * ); + * const response = await client.smartLinks.listFans('vel'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolor', + * 'repudiandae', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('similique'); + * await client.smartLinks.retrieveCohortArps('dignissimos'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'animi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index af9bc564..a9c614a7 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( - * 'tempora', + * '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('tempora', { + * 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 d9b97f38..c9aadd2f 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( - * 'adipisci', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'adipisci', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('esse', { + * await client.trackingLinks.getCohortArps('excepturi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'repellendus', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 526056f0..8804169f 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( - * 'fugit', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('fugit', { + * const trialLink = await client.trialLinks.delete('eaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'error', + * 'eaque', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nostrum', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatibus', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4839f2cb..3b6f9b97 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: 'qanyatag' }, + * { name: 'rdnrixfusibd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf41..347c5888 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('nulla'); 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 5bac48c8..d824d155 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: 'aut', + auth_id: 'adipisci', + auth_type: 'email_password', + cookies: 'nobis', customProxy: { host: 'proxy.example.com', - password: 'PV]t%g^e8c>p', + password: 'iMAw[^Dh', port: 8080, - username: 'fuga', + username: 'eius', }, - email: 'felicia.conroy@example.org', + email: 'tavares.parisian@example.com', force_connect: false, - name: 'libero', - password: ";I>RKQ8FaS;I2'~a'", + name: 'qui', + password: 'p:FIuSeR"V:V!j0\\%c', proxyCountry: 'uk', - user_agent: 'sit', - xbc: 'sint', + user_agent: 'iusto', + xbc: 'facere', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 38b98b46..778ed3c7 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('doloribus', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolor', { 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('doloribus', { + const response = await client.engagement.messages.getMessageBuyers('dolor', { 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 c9be7945..06456e9f 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('modi', { 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('modi', { 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('modi', { 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('modi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e205663b..0144bc2d 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('animi', { + const responsePromise = client.posts.comments.create('repellat', { 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('animi', { + const response = await client.posts.comments.create('repellat', { 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('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('repellat', { 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('animi', { + const response = await client.posts.comments.list('repellat', { 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 e2edc676..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 600755df..8541a519 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: ['gin'] }, + filter: { tags: ['zmdxdgbreiuypwiaj'] }, 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('nemo'); + const responsePromise = client.smartLinks.listClicks('harum'); 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( - 'nemo', + 'harum', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('odit'); 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( - 'qui', + 'odit', { 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('facilis'); + const responsePromise = client.smartLinks.listFans('vel'); 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( - 'facilis', + 'vel', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolor'); + const responsePromise = client.smartLinks.listSpenders('repudiandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'dolor', + 'repudiandae', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('similique'); + const responsePromise = client.smartLinks.retrieveCohortArps('dignissimos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'similique', + 'dignissimos', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('animi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'animi', { 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 6c71c523..0be20632 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: 'fzvyjyffyixayro', tags: ['kudf'] }, + filter: { search: 'aritwfubzrkbnbvvw', tags: ['d'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fjvvltkdstgdpzaoustlzrigr', tags: ['sixzytvhcohvwfagwocjmeo'] }, + filter: { search: 'ibyqclqvuyigoa', tags: ['ylgwykubcyykyxk'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'sukquuqcovvfqx', - tags: ['duuhboypon'], + include_smart_links: true, + search: 'nvpekdmg', + tags: ['aalrcwsb'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ebnpvj', - tags: ['hcrogwbsrbxamht'], + include_smart_links: true, + search: 'lhgpyppovvzddmjw', + tags: ['zrgcbhgjevbtmuzgxnra'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 550a1307..fca45b0b 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('tempora', { + 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('tempora', { + 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('tempora', { + 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('tempora', { + 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 56a82273..259fe30f 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('adipisci', { 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('adipisci', { 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('adipisci', { 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,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('adipisci', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('excepturi', { + 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('excepturi', { 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('repellendus', { 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('repellendus', { + 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 9c9488da..8f5dff95 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eaque', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eaque', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eaque', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eaque', { 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('error', { + const responsePromise = client.trialLinks.listSubscribers('eaque', { 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('error', { + const response = await client.trialLinks.listSubscribers('eaque', { 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('nostrum', { + 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('nostrum', { + 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,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('qui', { 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('voluptatibus', { + const response = await client.trialLinks.retrieveStats('qui', { 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 12908bfc..2306b444 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: 'qanyatag' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rdnrixfusibd' }); 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: 'qanyatag' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rdnrixfusibd' }); }); // Mock server tests are disabled From 3038a9435ec5a252da6402c6086a48de0f2f9e8a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 17:12:28 +0000 Subject: [PATCH 129/309] 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 | 13 +++++----- src/resources/trial-links/trial-links.ts | 13 +++++----- 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/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 | 18 ++++++------- .../trial-links/trial-links.test.ts | 16 ++++++------ .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 100 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index f78f2367..1e965c94 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8224d0f290595f1cc612a44cb14745189d03b5c3b6e93f525739336177a54a80.yml -openapi_spec_hash: 68b73188bf77a00227de2e20a5f71743 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6786de10c7755940102162422e0fc9f70007d21547f12cf6343bd97d208d1747.yml +openapi_spec_hash: cec6460a00df1ee2aa6eee064e79020b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7145e6dd..88da1ab7 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('nulla'); + * const response = await client.accounts.disconnect('sunt'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 803d6055..d3dd7cae 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( - * 'dolor', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ecd2f5d..f29f7fbf 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( - * 'modi', + * 'similique', * { 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( - * 'modi', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 36ae6c40..e1526dec 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( - * 'repellat', + * 'illum', * { * 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( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('illum', { + * 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 41feb4c0..2b04cbb2 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 2dabe620..37f247d6 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( - * 'harum', + * 'necessitatibus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'odit', + * 'facilis', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('vel'); + * const response = await client.smartLinks.listFans('nisi'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'repudiandae', + * 'totam', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dignissimos'); + * await client.smartLinks.retrieveCohortArps('tempore'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'animi', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..a268750c 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', + * '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('et', { + * 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 c9aadd2f..96e46854 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', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eius', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('excepturi', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'tempore', - * { 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 8804169f..fdab7a3a 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( - * 'eaque', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eaque', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'aliquid', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eaque', + * 'ratione', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'qui', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3b6f9b97..4b8f9d9d 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: 'rdnrixfusibd' }, + * { name: 'nzhbjgzbhk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 347c5888..26b92210 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('nulla'); + const responsePromise = client.accounts.disconnect('sunt'); 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 d824d155..3ab8d148 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: 'adipisci', + auth_id: 'molestias', auth_type: 'email_password', - cookies: 'nobis', + cookies: 'doloremque', customProxy: { host: 'proxy.example.com', - password: 'iMAw[^Dh', + password: 'Zk { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('dolor', { + 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('dolor', { + 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 06456e9f..77d29654 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('modi', { + const responsePromise = client.media.vault.lists.media.add('similique', { 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('modi', { + const response = await client.media.vault.lists.media.add('similique', { 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('modi', { + const responsePromise = client.media.vault.lists.media.remove('similique', { 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('modi', { + const response = await client.media.vault.lists.media.remove('similique', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 0144bc2d..c58dd531 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('repellat', { + const responsePromise = client.posts.comments.create('illum', { 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('repellat', { + const response = await client.posts.comments.create('illum', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('illum', { 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('repellat', { + const response = await client.posts.comments.list('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..96d399de 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 8541a519..25ad55ae 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: ['zmdxdgbreiuypwiaj'] }, + filter: { tags: ['vkycd'] }, 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('harum'); + const responsePromise = client.smartLinks.listClicks('necessitatibus'); 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( - 'harum', + 'necessitatibus', { 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('odit'); + 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( - 'odit', + '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('vel'); + const responsePromise = client.smartLinks.listFans('nisi'); 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( - 'vel', + 'nisi', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('repudiandae'); + const responsePromise = client.smartLinks.listSpenders('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'totam', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dignissimos'); + const responsePromise = client.smartLinks.retrieveCohortArps('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'dignissimos', + 'tempore', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('animi'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'animi', + '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 0be20632..654b32d9 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: 'aritwfubzrkbnbvvw', tags: ['d'] }, + filter: { search: 'mua', tags: ['ojutlnpupihmbwmkpq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ibyqclqvuyigoa', tags: ['ylgwykubcyykyxk'] }, + filter: { search: 'zkqewkdzcxle', tags: ['gmolmlhhehcvkqr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nvpekdmg', - tags: ['aalrcwsb'], + include_smart_links: false, + search: 'xfwobrobnremporagaqyzxu', + tags: ['pvyzqfu'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lhgpyppovvzddmjw', - tags: ['zrgcbhgjevbtmuzgxnra'], + search: 'kuaytopguhqkav', + tags: ['bdnfwiujsisxksfhsbk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..32b96b7e 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('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('et', { + 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('et', { + 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('et', { + 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 259fe30f..3292e419 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('fugit', { 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('fugit', { 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('fugit', { 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('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('excepturi', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('aut', { 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('excepturi', { + const response = await client.trackingLinks.getCohortArps('aut', { 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('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('tempore', { + 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 8f5dff95..74ce747c 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aliquid', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aliquid', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aliquid', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aliquid', { 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('eaque', { + const responsePromise = client.trialLinks.listSubscribers('ratione', { 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('eaque', { + const response = await client.trialLinks.listSubscribers('ratione', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('qui', { 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('qui', { + 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 2306b444..00a7cbc9 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: 'rdnrixfusibd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nzhbjgzbhk' }); 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: 'rdnrixfusibd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nzhbjgzbhk' }); }); // Mock server tests are disabled From e4b66860a66a2041ffbf5ea8a389e3f1381c812e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:12:28 +0000 Subject: [PATCH 130/309] 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 | 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 | 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 | 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 | 8 ++++-- 28 files changed, 119 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1e965c94..e5138b83 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6786de10c7755940102162422e0fc9f70007d21547f12cf6343bd97d208d1747.yml -openapi_spec_hash: cec6460a00df1ee2aa6eee064e79020b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-92022c3895f0a70c61ed6ddfba512fbdb157a0ad81f85d800106698ba4113992.yml +openapi_spec_hash: 5d633bc1379bec65ccfc4270093f7703 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 88da1ab7..1d544e44 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('sunt'); + * const response = await client.accounts.disconnect( + * 'eveniet', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d3dd7cae..d65076b4 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', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f29f7fbf..8b9edfb0 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( - * 'similique', + * 'cumque', * { 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( - * 'similique', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e1526dec..2f91bb2f 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( - * 'illum', + * 'pariatur', * { * 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('illum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'pariatur', + * { 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 599a9525..a9767818 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 2b04cbb2..41feb4c0 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 37f247d6..1dd9e70e 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( - * 'necessitatibus', + * 'dignissimos', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'facilis', + * 'laudantium', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nisi'); + * const response = await client.smartLinks.listFans( + * 'deleniti', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'totam', + * 'eum', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tempore'); + * await client.smartLinks.retrieveCohortArps('veniam'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'beatae', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a268750c..95642239 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', + * '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('unde', { + * 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 96e46854..8d2ec262 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( - * 'fugit', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'fugit', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * await client.trackingLinks.getCohortArps('qui', { * 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( + * 'beatae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fdab7a3a..25fd7703 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( - * 'aliquid', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('odio', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'aliquid', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('odio', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ratione', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('numquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4b8f9d9d..8531d5bd 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: 'nzhbjgzbhk' }, + * { name: 'yaggbqcjoupimfeahlecakl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 26b92210..d25c2c89 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('sunt'); + 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 3ab8d148..1788d23a 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: 'molestias', - auth_type: 'email_password', - cookies: 'doloremque', + auth_id: 'culpa', + auth_type: 'mobile_app', + cookies: 'impedit', customProxy: { host: 'proxy.example.com', - password: 'Zk { // 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('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('doloremque', { + 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 77d29654..b8086966 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('similique', { + const responsePromise = client.media.vault.lists.media.add('cumque', { 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('similique', { + const response = await client.media.vault.lists.media.add('cumque', { 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('similique', { + const responsePromise = client.media.vault.lists.media.remove('cumque', { 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('similique', { + const response = await client.media.vault.lists.media.remove('cumque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c58dd531..795e540a 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('illum', { + const responsePromise = client.posts.comments.create('pariatur', { 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('illum', { + const response = await client.posts.comments.create('pariatur', { 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('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('pariatur', { 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('illum', { + const response = await client.posts.comments.list('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 8e5b0566..4ec8acc7 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 25ad55ae..2fd008bd 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: ['vkycd'] }, + filter: { tags: ['lo'] }, 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('necessitatibus'); + const responsePromise = client.smartLinks.listClicks('dignissimos'); 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( - 'necessitatibus', + 'dignissimos', { 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('laudantium'); 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', + 'laudantium', { 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('nisi'); + const responsePromise = client.smartLinks.listFans('deleniti'); 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( - 'nisi', + 'deleniti', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('totam'); + const responsePromise = client.smartLinks.listSpenders('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'eum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tempore'); + const responsePromise = client.smartLinks.retrieveCohortArps('veniam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'veniam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('beatae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'beatae', { 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 654b32d9..27070283 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: 'mua', tags: ['ojutlnpupihmbwmkpq'] }, + filter: { search: 'kezyxjahqelufyzbscm', tags: ['uqjaocwdxiufewaosa'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zkqewkdzcxle', tags: ['gmolmlhhehcvkqr'] }, + filter: { search: 'guwtayqskkznpcfm', tags: ['ccpmsv'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'xfwobrobnremporagaqyzxu', - tags: ['pvyzqfu'], + include_smart_links: true, + search: 'xna', + tags: ['buapshlq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kuaytopguhqkav', - tags: ['bdnfwiujsisxksfhsbk'], + include_smart_links: false, + search: 'yzdllaucivdljmwr', + tags: ['otuujen'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 32b96b7e..c748c17f 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('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('unde', { + 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('unde', { + 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('unde', { + 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 3292e419..9a2c9449 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('fugit', { 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('fugit', { 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('fugit', { 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('fugit', { 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('aut', { 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('aut', { + 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('ex', { 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 +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('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 74ce747c..7c85ae34 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('odio', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('odio', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('odio', { 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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('odio', { 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('ratione', { + const responsePromise = client.trialLinks.listSubscribers('sit', { 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('ratione', { + const response = await client.trialLinks.listSubscribers('sit', { 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('numquam', { 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('numquam', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('illum', { 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('aut', { + const response = await client.trialLinks.retrieveStats('illum', { 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 00a7cbc9..625cde0d 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: 'nzhbjgzbhk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'yaggbqcjoupimfeahlecakl', + }); 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: 'nzhbjgzbhk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'yaggbqcjoupimfeahlecakl', + }); }); // Mock server tests are disabled From 66e3ff6099d06788a97beb18b25f81ace59f621a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 20:12:37 +0000 Subject: [PATCH 131/309] 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 +-- 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 +++++++------- .../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/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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 22 files changed, 92 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index e5138b83..b634669c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-92022c3895f0a70c61ed6ddfba512fbdb157a0ad81f85d800106698ba4113992.yml -openapi_spec_hash: 5d633bc1379bec65ccfc4270093f7703 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-37b7959d91616cabf71fdc1661155c132919dbabb7f3d5c7e64427fe37b494bb.yml +openapi_spec_hash: a0fa6f8d80e3da0142334fdf75149107 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1d544e44..48987d7b 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( - * 'eveniet', + * 'pariatur', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d65076b4..1be683f5 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', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8b9edfb0..a0e5582a 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( - * 'cumque', + * 'omnis', * { 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( - * 'cumque', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 2f91bb2f..f2a03716 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( - * 'pariatur', + * 'cumque', * { * 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( - * 'pariatur', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 1dd9e70e..d6b3d17a 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( - * 'dignissimos', - * ); + * 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( - * 'laudantium', + * 'pariatur', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'deleniti', - * ); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eum', + * 'temporibus', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('veniam'); + * await client.smartLinks.retrieveCohortArps('aut'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'beatae', + * 'tempore', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 95642239..a85274bb 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', + * 'esse', * { * 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('esse', { * 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 8d2ec262..0b27c940 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', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * 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( - * 'beatae', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 25fd7703..698ad9b0 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('odio', { + * const trialLink = await client.trialLinks.retrieve('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('odio', { + * const trialLink = await client.trialLinks.delete('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'atque', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('numquam', { + * await client.trialLinks.retrieveCohortArps('nemo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'illum', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8531d5bd..e79e666c 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: 'yaggbqcjoupimfeahlecakl' }, + * { name: 'ompcjcdz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d25c2c89..530921ea 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('pariatur'); 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 1788d23a..f5a26a59 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: 'culpa', + auth_id: 'earum', auth_type: 'mobile_app', - cookies: 'impedit', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '@2`(9W', + password: 'sK#rgl2,g{bs-p', port: 8080, - username: 'aut', + username: 'rem', }, - email: 'elvie96@example.net', - force_connect: true, - name: 'explicabo', - password: '4Z6e1d{0zh8T', + email: 'wstanton@example.net', + force_connect: false, + name: 'voluptas', + password: '/|N&Aw]NBu|j6}*', proxyCountry: 'uk', - user_agent: 'accusantium', - xbc: 'velit', + user_agent: 'qui', + xbc: 'odio', }, { 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 16f3d965..87988d85 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('mollitia', { 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('mollitia', { 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 b8086966..68cadb73 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('cumque', { + const responsePromise = client.media.vault.lists.media.add('omnis', { 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('cumque', { + const response = await client.media.vault.lists.media.add('omnis', { 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('cumque', { + const responsePromise = client.media.vault.lists.media.remove('omnis', { 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('cumque', { + const response = await client.media.vault.lists.media.remove('omnis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 795e540a..ddce1f1d 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('pariatur', { + const responsePromise = client.posts.comments.create('cumque', { 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('pariatur', { + const response = await client.posts.comments.create('cumque', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('cumque', { 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('pariatur', { + const response = await client.posts.comments.list('cumque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 2fd008bd..a5042007 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: ['lo'] }, + filter: { tags: ['rtzcloqpgbelm'] }, 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('dignissimos'); + 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( - 'dignissimos', + '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('laudantium'); + const responsePromise = client.smartLinks.listConversions('pariatur'); 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( - 'laudantium', + 'pariatur', { 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('deleniti'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'deleniti', + 'ut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eum'); + const responsePromise = client.smartLinks.listSpenders('temporibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'eum', + 'temporibus', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('veniam'); + const responsePromise = client.smartLinks.retrieveCohortArps('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'aut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('beatae'); + const responsePromise = client.smartLinks.retrieveStats('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'beatae', + 'tempore', { 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 27070283..f76c3062 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: 'kezyxjahqelufyzbscm', tags: ['uqjaocwdxiufewaosa'] }, + filter: { search: 'ezkrclvairc', tags: ['ryjvcsbjnwvp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'guwtayqskkznpcfm', tags: ['ccpmsv'] }, + filter: { search: 'r', tags: ['f'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xna', - tags: ['buapshlq'], + include_smart_links: false, + search: 'sez', + tags: ['qa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'yzdllaucivdljmwr', - tags: ['otuujen'], + search: 'llzklsqgikxcsh', + tags: ['sowlcdzyrved'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c748c17f..2f3357b0 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('esse', { 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('esse', { 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('esse', { 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('esse', { 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 9a2c9449..001f4f9c 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('repudiandae', { 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('repudiandae', { 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('repudiandae', { 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('repudiandae', { 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('sit', { 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('sit', { 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('beatae', { 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('beatae', { + 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 7c85ae34..64b93b74 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sed', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sed', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sed', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sed', { 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('sit', { + const responsePromise = client.trialLinks.listSubscribers('atque', { 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('sit', { + const response = await client.trialLinks.listSubscribers('atque', { 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('numquam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('nemo', { 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('numquam', { + const response = await client.trialLinks.retrieveCohortArps('nemo', { 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('illum', { 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('illum', { + 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 625cde0d..04202296 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: 'yaggbqcjoupimfeahlecakl', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ompcjcdz' }); 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: 'yaggbqcjoupimfeahlecakl', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ompcjcdz' }); }); // Mock server tests are disabled From 148c5be9ecaf607a045aaa8de69b445b32b42579 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:12:35 +0000 Subject: [PATCH 132/309] 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 | 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 | 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/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 | 8 ++++-- 27 files changed, 120 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index b634669c..d6093b69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-37b7959d91616cabf71fdc1661155c132919dbabb7f3d5c7e64427fe37b494bb.yml -openapi_spec_hash: a0fa6f8d80e3da0142334fdf75149107 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d9d5d63bf50cefcd1b34b0db850b5ba424342e6a1282e5ac9fc818ffdb871125.yml +openapi_spec_hash: 79a68d37405538eed9538c7014f48c08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 48987d7b..0905a78a 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( - * 'pariatur', - * ); + * const response = await client.accounts.disconnect('nihil'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1be683f5..693be3dd 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( - * 'mollitia', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0e5582a..c91cb463 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( - * 'omnis', + * 'error', * { 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( - * 'omnis', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f2a03716..658ee163 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( - * 'cumque', + * 'nostrum', * { * 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( - * 'cumque', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..a84ff073 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 d6b3d17a..1998f773 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('quo'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'pariatur', + * 'autem', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans('iste'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'temporibus', + * 'est', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aut'); + * await client.smartLinks.retrieveCohortArps('ea'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'tempore', + * 'eos', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a85274bb..3f9bae82 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( - * 'esse', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('esse', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequatur', + * { + * 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 0b27c940..595e891b 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( - * 'repudiandae', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'repudiandae', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sit', { + * 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( - * 'facilis', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 698ad9b0..f2d1a0a7 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'pariatur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'pariatur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'atque', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nemo', { + * await client.trialLinks.retrieveCohortArps('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e79e666c..e86ca900 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: 'ompcjcdz' }, + * { name: 'eqactykwchrcapniluklxuxge' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 530921ea..fe634fcf 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('pariatur'); + const responsePromise = client.accounts.disconnect('nihil'); 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 f5a26a59..e0046067 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_type: 'mobile_app', - cookies: 'et', + auth_id: 'et', + auth_type: 'raw_data', + cookies: 'id', customProxy: { host: 'proxy.example.com', - password: 'sK#rgl2,g{bs-p', + password: '5Wr!(laxjhj8Zkx', port: 8080, - username: 'rem', + username: 'earum', }, - email: 'wstanton@example.net', - force_connect: false, - name: 'voluptas', - password: '/|N&Aw]NBu|j6}*', - proxyCountry: 'uk', - user_agent: 'qui', - xbc: 'odio', + email: 'cmoore@example.com', + force_connect: true, + name: 'sapiente', + password: '~zcsRQCy\\3.dC$Og', + proxyCountry: 'us', + user_agent: 'blanditiis', + 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 229de463..c17a81d6 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 87988d85..5176b0c0 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('mollitia', { + const responsePromise = client.engagement.messages.getMessageBuyers('perspiciatis', { 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('mollitia', { + const response = await client.engagement.messages.getMessageBuyers('perspiciatis', { 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 68cadb73..3a7e5bcc 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('omnis', { + const responsePromise = client.media.vault.lists.media.add('error', { 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('omnis', { + const response = await client.media.vault.lists.media.add('error', { 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('omnis', { + const responsePromise = client.media.vault.lists.media.remove('error', { 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('omnis', { + const response = await client.media.vault.lists.media.remove('error', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ddce1f1d..34e0c304 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('cumque', { + const responsePromise = client.posts.comments.create('nostrum', { 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('cumque', { + const response = await client.posts.comments.create('nostrum', { 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('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nostrum', { 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('cumque', { + const response = await client.posts.comments.list('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..02883e18 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 d13ad1ce..6b1dc2fd 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 a5042007..95f0e39d 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: ['rtzcloqpgbelm'] }, + filter: { tags: ['awghpuvyu'] }, 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('quo'); 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', + 'quo', { 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('pariatur'); + const responsePromise = client.smartLinks.listConversions('autem'); 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( - 'pariatur', + 'autem', { 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('ut'); + const responsePromise = client.smartLinks.listFans('iste'); 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( - 'ut', + 'iste', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('temporibus'); + const responsePromise = client.smartLinks.listSpenders('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'temporibus', + 'est', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aut'); + const responsePromise = client.smartLinks.retrieveCohortArps('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'ea', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('tempore'); + const responsePromise = client.smartLinks.retrieveStats('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'eos', { 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 f76c3062..b54c041e 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: 'ezkrclvairc', tags: ['ryjvcsbjnwvp'] }, + filter: { search: 'xuenuwhvxbujssvahpjnnj', tags: ['msonrwvulasku'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'r', tags: ['f'] }, + filter: { search: 'utawtycz', tags: ['btjc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'sez', - tags: ['qa'], + search: 'flz', + tags: ['ltcnlmyjccgagtejsbqd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'llzklsqgikxcsh', - tags: ['sowlcdzyrved'], + include_smart_links: true, + search: 'rjxsohtuxaiarzaiduaxn', + tags: ['shuoaegvxfvekkqxiym'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2f3357b0..b692edc7 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('esse', { + const responsePromise = client.stories.highlights.addStory('consequatur', { 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('esse', { + const response = await client.stories.highlights.addStory('consequatur', { 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('esse', { + const responsePromise = client.stories.highlights.removeStory('consequatur', { 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('esse', { + const response = await client.stories.highlights.removeStory('consequatur', { 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 001f4f9c..df8f1690 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sed', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sed', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sed', { 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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sed', { 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('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('sit', { + 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('facilis', { 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; @@ -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('facilis', { + 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 64b93b74..b43f72f1 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('pariatur', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('pariatur', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('pariatur', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('pariatur', { 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('atque', { + const responsePromise = client.trialLinks.listSubscribers('quia', { 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('atque', { + const response = await client.trialLinks.listSubscribers('quia', { 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('nemo', { 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('nemo', { + 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('officiis', { 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('aut', { + const response = await client.trialLinks.retrieveStats('officiis', { 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 04202296..8fe952ec 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: 'ompcjcdz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'eqactykwchrcapniluklxuxge', + }); 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: 'ompcjcdz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'eqactykwchrcapniluklxuxge', + }); }); // Mock server tests are disabled From 97c4d977ffa0de991bb420ab5227e0de2ce608f8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 00:12:36 +0000 Subject: [PATCH 133/309] 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 | 16 +++++++----- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 13 +++++----- 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 +++--- .../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 | 18 ++++++------- .../trial-links/trial-links.test.ts | 18 ++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 107 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index d6093b69..21f3b894 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d9d5d63bf50cefcd1b34b0db850b5ba424342e6a1282e5ac9fc818ffdb871125.yml -openapi_spec_hash: 79a68d37405538eed9538c7014f48c08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e7f2df49856fb570f5681770ba02623bf433297181ed53576538e20ff1dcee36.yml +openapi_spec_hash: 5926300bb0ec7adf349ccb731647bce9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0905a78a..6c0bc8d9 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('nihil'); + * const response = await client.accounts.disconnect('fugit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 693be3dd..d7f98f22 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( - * 'perspiciatis', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c91cb463..9395711e 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( - * 'error', + * 'odit', * { 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( - * 'error', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 658ee163..7f45ec9e 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( - * 'nostrum', + * 'officiis', * { * 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( - * 'nostrum', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 a84ff073..c9a094cf 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 1998f773..64b93899 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('quo'); + * const response = await client.smartLinks.listClicks( + * 'voluptas', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'autem', + * 'aut', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('iste'); + * const response = await client.smartLinks.listFans( + * 'quisquam', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'est', + * 'molestiae', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ea'); + * await client.smartLinks.retrieveCohortArps('occaecati'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eos', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3f9bae82..62984c5e 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( - * 'consequatur', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequatur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('eos', { + * 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 595e891b..46c741e8 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( - * 'sed', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sed', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptates', { + * await client.trackingLinks.getCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eos', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f2d1a0a7..d7849e01 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( - * 'pariatur', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'pariatur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('velit', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('possimus', { + * await client.trialLinks.retrieveCohortArps('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'officiis', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e86ca900..a8bdd22d 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: 'eqactykwchrcapniluklxuxge' }, + * { name: 'udnsehgcxslin' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fe634fcf..c8db5da1 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('nihil'); + const responsePromise = client.accounts.disconnect('fugit'); 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 e0046067..1ec640ed 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_type: 'raw_data', - cookies: 'id', + auth_id: 'ut', + auth_type: 'email_password', + cookies: 'ducimus', customProxy: { host: 'proxy.example.com', - password: '5Wr!(laxjhj8Zkx', + password: '#wpJs],[sf', port: 8080, - username: 'earum', + username: 'ducimus', }, - email: 'cmoore@example.com', - force_connect: true, - name: 'sapiente', - password: '~zcsRQCy\\3.dC$Og', - proxyCountry: 'us', - user_agent: 'blanditiis', - xbc: 'soluta', + email: 'murphy.berniece@example.org', + force_connect: false, + name: 'et', + password: '}z/h07JoUwi', + proxyCountry: 'uk', + user_agent: 'voluptatem', + xbc: 'velit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 5176b0c0..529744a9 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('perspiciatis', { + 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('perspiciatis', { + 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 3a7e5bcc..7323de58 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('error', { + const responsePromise = client.media.vault.lists.media.add('odit', { 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('error', { + const response = await client.media.vault.lists.media.add('odit', { 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('error', { + const responsePromise = client.media.vault.lists.media.remove('odit', { 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('error', { + const response = await client.media.vault.lists.media.remove('odit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 34e0c304..7667fcb0 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('nostrum', { + const responsePromise = client.posts.comments.create('officiis', { 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('nostrum', { + const response = await client.posts.comments.create('officiis', { 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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('officiis', { 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('nostrum', { + const response = await client.posts.comments.list('officiis', { 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 4ec8acc7..fd74b68f 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 02883e18..b643af69 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 95f0e39d..c4c259b1 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: ['awghpuvyu'] }, + filter: { tags: ['znicjggw'] }, 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('quo'); + const responsePromise = client.smartLinks.listClicks('voluptas'); 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( - 'quo', + 'voluptas', { 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('autem'); + const responsePromise = client.smartLinks.listConversions('aut'); 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( - 'autem', + 'aut', { 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('iste'); + const responsePromise = client.smartLinks.listFans('quisquam'); 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( - 'iste', + 'quisquam', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('est'); + const responsePromise = client.smartLinks.listSpenders('molestiae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'molestiae', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ea'); + const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'occaecati', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eos'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'eos', + '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 b54c041e..bc0ab655 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: 'xuenuwhvxbujssvahpjnnj', tags: ['msonrwvulasku'] }, + filter: { search: 'dmekmsoneozgzmtwt', tags: ['adwv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'utawtycz', tags: ['btjc'] }, + filter: { search: 'zubcbzud', tags: ['xabdaemdbhafx'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'flz', - tags: ['ltcnlmyjccgagtejsbqd'], + include_smart_links: true, + search: 'liuwiybzbzudq', + tags: ['btm'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'rjxsohtuxaiarzaiduaxn', - tags: ['shuoaegvxfvekkqxiym'], + search: 'tnba', + tags: ['zhwxinjagfbamzqsua'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b692edc7..303341f0 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('consequatur', { + const responsePromise = client.stories.highlights.addStory('eos', { 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('consequatur', { + const response = await client.stories.highlights.addStory('eos', { 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('consequatur', { + const responsePromise = client.stories.highlights.removeStory('eos', { 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('consequatur', { + const response = await client.stories.highlights.removeStory('eos', { 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 df8f1690..1c48317c 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('sed', { 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('sed', { 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('sed', { 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,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('sed', { 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('voluptates', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('id', { 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('voluptates', { + const response = await client.trackingLinks.getCohortArps('id', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('debitis', { 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('eos', { + const response = await client.trackingLinks.getStats('debitis', { 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 b43f72f1..1ad88aa9 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('velit', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('velit', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('velit', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -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('sed', { 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('sed', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('dicta', { 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('officiis', { + const response = await client.trialLinks.retrieveStats('dicta', { 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 8fe952ec..2460e65d 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: 'eqactykwchrcapniluklxuxge', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'udnsehgcxslin' }); 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: 'eqactykwchrcapniluklxuxge', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'udnsehgcxslin' }); }); // Mock server tests are disabled From f64165c927f64b9a71efa777cc9db3017b8be03b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:12:36 +0000 Subject: [PATCH 134/309] 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/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 | 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 | 26 +++++++++---------- 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, 110 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 21f3b894..1508c564 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e7f2df49856fb570f5681770ba02623bf433297181ed53576538e20ff1dcee36.yml -openapi_spec_hash: 5926300bb0ec7adf349ccb731647bce9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9f26ec780a5b5d055151220115a6c41e79aed9e29a8b971845623f8d1ef69b4.yml +openapi_spec_hash: 2851986c92d9cc1692647aaa697e7620 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6c0bc8d9..21770fad 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('fugit'); + * const response = await client.accounts.disconnect('facere'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d7f98f22..89afdd3a 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', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9395711e..8ef9d599 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( - * 'odit', + * '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( - * 'odit', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7f45ec9e..1080f923 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( - * 'officiis', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ipsa', { + * 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( - * 'officiis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ipsa', { + * 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 c9a094cf..a84ff073 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 64b93899..68a12b13 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( - * 'voluptas', - * ); + * 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( - * 'aut', + * 'porro', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'quisquam', - * ); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'molestiae', + * 'sit', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('occaecati'); + * await client.smartLinks.retrieveCohortArps('error'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'explicabo', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 62984c5e..9e605c1a 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( - * 'eos', + * 'dolorem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eos', { + * await client.stories.highlights.removeStory('dolorem', { * 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 46c741e8..15e7c7cb 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', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolor', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('id', { + * await client.trackingLinks.getCohortArps('cumque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'debitis', - * { 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 d7849e01..726ff155 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( - * 'velit', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('velit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'occaecati', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quia', + * 'totam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sed', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dicta', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a8bdd22d..2b813ab6 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: 'udnsehgcxslin' }, + * { name: 'gywjwzxefgamgvfdabtaduc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c8db5da1..2c860f24 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('fugit'); + const responsePromise = client.accounts.disconnect('facere'); 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 1ec640ed..f3449bf0 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: 'ducimus', + auth_id: 'eum', + auth_type: 'mobile_app', + cookies: 'asperiores', customProxy: { host: 'proxy.example.com', - password: '#wpJs],[sf', + password: '2.]kmr@4', port: 8080, username: 'ducimus', }, - email: 'murphy.berniece@example.org', - force_connect: false, - name: 'et', - password: '}z/h07JoUwi', - proxyCountry: 'uk', - user_agent: 'voluptatem', - xbc: 'velit', + email: 'omari.swift@example.net', + force_connect: true, + name: 'est', + password: 'y|(]SwZB', + proxyCountry: 'us', + user_agent: 'optio', + xbc: 'dolores', }, { 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 529744a9..c3b05a0a 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('dignissimos', { 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('dignissimos', { 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 7323de58..a65d65ec 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('odit', { + 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('odit', { + 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('odit', { + 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('odit', { + 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 e56040c2..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7667fcb0..d12b69cd 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('officiis', { + const responsePromise = client.posts.comments.create('ipsa', { 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('officiis', { + const response = await client.posts.comments.create('ipsa', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ipsa', { 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('officiis', { + const response = await client.posts.comments.list('ipsa', { 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 b643af69..02883e18 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 6b1dc2fd..d13ad1ce 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 c4c259b1..96343d77 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: ['znicjggw'] }, + filter: { tags: ['rfffjodmgrynlbqxbeupshng'] }, 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('voluptas'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'voluptas', + 'aut', { 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('aut'); + const responsePromise = client.smartLinks.listConversions('porro'); 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( - 'aut', + 'porro', { 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('quisquam'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'quisquam', + 'ut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('molestiae'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'molestiae', + 'sit', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); + const responsePromise = client.smartLinks.retrieveCohortArps('error'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'occaecati', + 'error', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('explicabo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'explicabo', { 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 bc0ab655..84fe3195 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: 'dmekmsoneozgzmtwt', tags: ['adwv'] }, + filter: { search: 'lsyvky', tags: ['vk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zubcbzud', tags: ['xabdaemdbhafx'] }, + filter: { search: 'kezkvfjdmkuctfwzw', tags: ['mxddijxeexrthc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'liuwiybzbzudq', - tags: ['btm'], + search: 'gfglvgipaeukmzfuoax', + tags: ['ahpymnadgsdkl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tnba', - tags: ['zhwxinjagfbamzqsua'], + search: 'zrtuu', + tags: ['xscubtn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 303341f0..5c3f89bf 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('eos', { + const responsePromise = client.stories.highlights.addStory('dolorem', { 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('eos', { + const response = await client.stories.highlights.addStory('dolorem', { 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('eos', { + const responsePromise = client.stories.highlights.removeStory('dolorem', { 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('eos', { + const response = await client.stories.highlights.removeStory('dolorem', { 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 1c48317c..addac5b6 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('aut', { 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('aut', { 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('aut', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('cumque', { 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('id', { + const response = await client.trackingLinks.getCohortArps('cumque', { 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('debitis', { 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('debitis', { + 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 1ad88aa9..54388272 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('occaecati', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('occaecati', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('occaecati', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('occaecati', { 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('quia', { + const responsePromise = client.trialLinks.listSubscribers('totam', { 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('quia', { + const response = await client.trialLinks.listSubscribers('totam', { 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('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('sed', { + 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,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('molestiae', { 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('dicta', { + const response = await client.trialLinks.retrieveStats('molestiae', { 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 2460e65d..78723bcb 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: 'udnsehgcxslin' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'gywjwzxefgamgvfdabtaduc', + }); 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: 'udnsehgcxslin' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'gywjwzxefgamgvfdabtaduc', + }); }); // Mock server tests are disabled From 97fa1f7abc78795df6a97f76803ea98e0464f73a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:12:34 +0000 Subject: [PATCH 135/309] 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 +- .../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 | 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 +-- .../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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 28 files changed, 119 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1508c564..4da7c8cc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9f26ec780a5b5d055151220115a6c41e79aed9e29a8b971845623f8d1ef69b4.yml -openapi_spec_hash: 2851986c92d9cc1692647aaa697e7620 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db22d3a24274437f622494a5ef55439e6467a466ea57e2c781c0c7c9f4faeb20.yml +openapi_spec_hash: 4c3759b23a8d2f35a845f84780bde2ca config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 21770fad..ca6cda03 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('facere'); + * 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 89afdd3a..c6cc81ce 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( - * 'dignissimos', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ef9d599..2f38ae64 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', + * '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( - * 'nam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1080f923..bcb69b7e 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('ipsa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'debitis', + * { + * 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('ipsa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'debitis', + * { 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 e20f70d1..599a9525 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 a84ff073..2b04cbb2 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 68a12b13..0f2d645a 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( + * 'laboriosam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'porro', + * 'commodi', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans('quod'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'quo', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('error'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'explicabo', + * 'consequuntur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9e605c1a..861ebb8d 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( - * 'dolorem', + * 'a', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolorem', { + * await client.stories.highlights.removeStory('a', { * 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 15e7c7cb..3c62486b 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( - * 'aut', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('cumque', { + * await client.trackingLinks.getCohortArps('facilis', { * 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( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 726ff155..acb67c76 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( - * 'occaecati', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'occaecati', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'totam', + * 'fugit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'molestiae', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2b813ab6..6247fce7 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: 'gywjwzxefgamgvfdabtaduc' }, + * { name: 'tlbsw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2c860f24..8da98ca8 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('facere'); + 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 f3449bf0..c6c6bb12 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: 'eum', - auth_type: 'mobile_app', - cookies: 'asperiores', + auth_id: 'quia', + auth_type: 'email_password', + cookies: 'minima', customProxy: { host: 'proxy.example.com', - password: '2.]kmr@4', + password: "FG3J/,zkL{n'zOE", port: 8080, - username: 'ducimus', + username: 'error', }, - email: 'omari.swift@example.net', - force_connect: true, - name: 'est', - password: 'y|(]SwZB', - proxyCountry: 'us', - user_agent: 'optio', - xbc: 'dolores', + email: 'goodwin.mireille@example.net', + force_connect: false, + name: 'minima', + password: 'nd0q%`d4AA', + proxyCountry: 'uk', + user_agent: 'aliquam', + xbc: 'non', }, { 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 c3b05a0a..58d348d7 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('dignissimos', { + const responsePromise = client.engagement.messages.getMessageBuyers('delectus', { 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('dignissimos', { + const response = await client.engagement.messages.getMessageBuyers('delectus', { 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 a65d65ec..19155ed9 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('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('nam', { + 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('nam', { + 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('nam', { + 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 69b39e44..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d12b69cd..5d2f5895 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('ipsa', { + const responsePromise = client.posts.comments.create('debitis', { 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('ipsa', { + const response = await client.posts.comments.create('debitis', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('debitis', { 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('ipsa', { + const response = await client.posts.comments.list('debitis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..8e5b0566 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 02883e18..96d399de 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 d13ad1ce..6b1dc2fd 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 96343d77..297359a4 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: ['rfffjodmgrynlbqxbeupshng'] }, + filter: { tags: ['irqyfqgxbprwbvkssk'] }, 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('aut'); + const responsePromise = client.smartLinks.listClicks('laboriosam'); 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( - 'aut', + 'laboriosam', { 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('porro'); + const responsePromise = client.smartLinks.listConversions('commodi'); 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( - 'porro', + 'commodi', { 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('ut'); + const responsePromise = client.smartLinks.listFans('quod'); 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( - 'ut', + 'quod', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'quo', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('error'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'error', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('explicabo'); + const responsePromise = client.smartLinks.retrieveStats('consequuntur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'explicabo', + 'consequuntur', { 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 84fe3195..fafbd646 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: 'lsyvky', tags: ['vk'] }, + filter: { search: 'vovqiymkppi', tags: ['efyvmbfqiucxzfkhmtbmrpy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kezkvfjdmkuctfwzw', tags: ['mxddijxeexrthc'] }, + filter: { search: 'muxdebgyxdxkovxdiiek', tags: ['hgczueoyghgoigiciekqz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'gfglvgipaeukmzfuoax', - tags: ['ahpymnadgsdkl'], + include_smart_links: false, + search: 'zjpoqjmvvtelrmnqqewrj', + tags: ['ik'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zrtuu', - tags: ['xscubtn'], + include_smart_links: false, + search: 'okxgjs', + tags: ['hzemgeof'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5c3f89bf..6056b2ac 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('dolorem', { + const responsePromise = client.stories.highlights.addStory('a', { 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('dolorem', { + const response = await client.stories.highlights.addStory('a', { 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('dolorem', { + const responsePromise = client.stories.highlights.removeStory('a', { 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('dolorem', { + const response = await client.stories.highlights.removeStory('a', { 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 addac5b6..bfb9d7af 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptate', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptate', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptate', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('facilis', { + 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('cumque', { + const response = await client.trackingLinks.getCohortArps('facilis', { 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('voluptatem', { 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('voluptatem', { 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 54388272..16084090 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('occaecati', { 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('occaecati', { 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('occaecati', { 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('occaecati', { 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('totam', { + const responsePromise = client.trialLinks.listSubscribers('fugit', { 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('totam', { + const response = await client.trialLinks.listSubscribers('fugit', { 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('iste', { 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('iste', { 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('molestiae', { 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; @@ -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('molestiae', { + 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 78723bcb..a304f5cc 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: 'gywjwzxefgamgvfdabtaduc', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tlbsw' }); 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: 'gywjwzxefgamgvfdabtaduc', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tlbsw' }); }); // Mock server tests are disabled From 4760ed26064c793f74b4bf703af45d7fd29c87b1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:12:33 +0000 Subject: [PATCH 136/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- .../analytics/financial/profitability.ts | 78 ++++++++++++++----- 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 | 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 +- 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 | 26 +++---- 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 +- 28 files changed, 167 insertions(+), 129 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4da7c8cc..645041be 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db22d3a24274437f622494a5ef55439e6467a466ea57e2c781c0c7c9f4faeb20.yml -openapi_spec_hash: 4c3759b23a8d2f35a845f84780bde2ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-df3df2d21b0960c95367dfab60a292d58a801db828021ab6fb20e551c6d97c76.yml +openapi_spec_hash: e72bafc63b49547ac7fa3c00a26ffa70 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda03..0a7a15b9 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( + * 'perspiciatis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/analytics/financial/profitability.ts b/src/resources/analytics/financial/profitability.ts index ec20b645..3f9fd712 100644 --- a/src/resources/analytics/financial/profitability.ts +++ b/src/resources/analytics/financial/profitability.ts @@ -56,45 +56,87 @@ export class Profitability extends APIResource { } } -export type ProfitabilityGetHistoryResponse = - Array; +export interface ProfitabilityGetHistoryResponse { + data?: Array; +} export namespace ProfitabilityGetHistoryResponse { - export interface ProfitabilityGetHistoryResponseItem { - gross_revenue?: number; + export interface Data { + activeMilestones?: string | null; + + agencyEarnings?: string; + + commissionAmount?: string; + + commissionRate?: string; + + costs?: Array; + + creatorName?: string; - margin?: number; + hasCommissionForPeriod?: boolean; + + hasCostsForPeriod?: boolean; + + marginPercentage?: string; month?: number; - net_revenue?: number; + onlyFansUserId?: number; + + profit?: string; + + projectedNet?: string; + + ratePeriods?: Array; + + referralNote?: string | null; - profit?: number; + totalCosts?: string; year?: number; } } -export type ProfitabilityGetProfitabilityResponse = - Array; +export interface ProfitabilityGetProfitabilityResponse { + data?: Array; +} export namespace ProfitabilityGetProfitabilityResponse { - export interface ProfitabilityGetProfitabilityResponseItem { - commission?: number; + export interface Data { + activeMilestones?: string | null; + + agencyEarnings?: string; + + commissionAmount?: string; + + commissionRate?: string; + + costs?: Array; + + creatorName?: string; - creator_id?: number; + hasCommissionForPeriod?: boolean; - gross_revenue?: number; + hasCostsForPeriod?: boolean; - margin?: number; + marginPercentage?: string; - name?: string; + month?: number; + + onlyFansUserId?: number; + + profit?: string; - net_revenue?: number; + projectedNet?: string; - profit?: number; + ratePeriods?: Array; - total_costs?: number; + referralNote?: string | null; + + totalCosts?: string; + + year?: number; } } diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c6cc81ce..fdca149b 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( - * 'delectus', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..685b16a6 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', + * '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( - * 'ut', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bcb69b7e..ca82093e 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( - * 'debitis', - * { - * 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,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'debitis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ut', { + * 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..c9a094cf 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 0f2d645a..5becb75e 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( - * 'laboriosam', - * ); + * const response = await client.smartLinks.listClicks('est'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'commodi', + * 'laudantium', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quod'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quo', + * 'ratione', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('architecto'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequuntur', + * 'praesentium', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 861ebb8d..190efad0 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( - * 'a', + * 'commodi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('a', { + * await client.stories.highlights.removeStory('commodi', { * 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 3c62486b..165fa22c 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( - * 'voluptate', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptate', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('facilis', { + * await client.trackingLinks.getCohortArps('distinctio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatem', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index acb67c76..d3b0a483 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', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'mollitia', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'fugit', + * 'dolorem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('iste', { + * await client.trialLinks.retrieveCohortArps('ex', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nihil', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6247fce7..b749e757 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: 'tlbsw' }, + * { name: 'nmumzwtdvnkxvqlpzaa' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca8..958468a3 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('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 c6c6bb12..1afd1a14 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: 'quia', - auth_type: 'email_password', - cookies: 'minima', + auth_id: 'nostrum', + auth_type: 'raw_data', + cookies: 'natus', customProxy: { host: 'proxy.example.com', - password: "FG3J/,zkL{n'zOE", + password: 'Xgxz%3*G@ft\\sxeQ', port: 8080, - username: 'error', + username: 'aut', }, - email: 'goodwin.mireille@example.net', + email: 'pamela.gutmann@example.org', force_connect: false, - name: 'minima', - password: 'nd0q%`d4AA', + name: 'consectetur', + password: "J:`9N$E.-c=y_\\;B0'", proxyCountry: 'uk', - user_agent: 'aliquam', - xbc: 'non', + user_agent: 'harum', + xbc: 'voluptas', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 58d348d7..05e01e39 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('delectus', { + const responsePromise = client.engagement.messages.getMessageBuyers('pariatur', { 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('delectus', { + const response = await client.engagement.messages.getMessageBuyers('pariatur', { 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 19155ed9..1697eb4a 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('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('ut', { + 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('ut', { + 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('ut', { + const response = await client.media.vault.lists.media.remove('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 5d2f5895..548a48cb 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('debitis', { + 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('debitis', { + 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('debitis', { 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('debitis', { + const response = await client.posts.comments.list('ut', { 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399de..b643af69 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 6b1dc2fd..d13ad1ce 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 297359a4..27d04cc2 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: ['irqyfqgxbprwbvkssk'] }, + filter: { tags: ['ifazqmdmus'] }, 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('laboriosam'); + 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( - 'laboriosam', + '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('commodi'); + const responsePromise = client.smartLinks.listConversions('laudantium'); 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( - 'commodi', + 'laudantium', { 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('quod'); + const responsePromise = client.smartLinks.listFans('aut'); 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( - 'quod', + 'aut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quo'); + const responsePromise = client.smartLinks.listSpenders('ratione'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'ratione', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'architecto', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consequuntur'); + const responsePromise = client.smartLinks.retrieveStats('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'consequuntur', + 'praesentium', { 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 fafbd646..bc257a76 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: 'vovqiymkppi', tags: ['efyvmbfqiucxzfkhmtbmrpy'] }, + filter: { search: 'uvnykxuyycfpixfxei', tags: ['cdme'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'muxdebgyxdxkovxdiiek', tags: ['hgczueoyghgoigiciekqz'] }, + filter: { search: 'doj', tags: ['glccocyklmxwbgirnjqjz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zjpoqjmvvtelrmnqqewrj', - tags: ['ik'], + include_smart_links: true, + search: 'ljktiktsfnlizmajj', + tags: ['lqgwx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'okxgjs', - tags: ['hzemgeof'], + include_smart_links: true, + search: 'ansypeqmnuoans', + tags: ['veqjottrdkmkhru'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 6056b2ac..f2ac4a3b 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('a', { + const responsePromise = client.stories.highlights.addStory('commodi', { 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('a', { + const response = await client.stories.highlights.addStory('commodi', { 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('a', { + const responsePromise = client.stories.highlights.removeStory('commodi', { 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('a', { + const response = await client.stories.highlights.removeStory('commodi', { 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 bfb9d7af..b6263a6b 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quam', { 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quam', { 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quam', { 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('facilis', { + const responsePromise = client.trackingLinks.getCohortArps('distinctio', { 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('facilis', { + const response = await client.trackingLinks.getCohortArps('distinctio', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { 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('voluptatem', { + const response = await client.trackingLinks.getStats('aut', { 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 16084090..bf0fc6c9 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('consequatur', { 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('consequatur', { 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('consequatur', { 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('consequatur', { 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('fugit', { + 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('fugit', { + const response = await client.trialLinks.listSubscribers('dolorem', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('ex', { 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('iste', { + const response = await client.trialLinks.retrieveCohortArps('ex', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('dolores', { 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('nihil', { + const response = await client.trialLinks.retrieveStats('dolores', { 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 a304f5cc..4e2f45d6 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: 'tlbsw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nmumzwtdvnkxvqlpzaa' }); 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: 'tlbsw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nmumzwtdvnkxvqlpzaa' }); }); // Mock server tests are disabled From 5ddb40a3dbd792ee33ab4e16d3bfa71459fdb0c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 10:12:42 +0000 Subject: [PATCH 137/309] 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 | 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 +++--- .../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 | 26 +++++++++---------- 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 | 6 +++-- 27 files changed, 115 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 645041be..4bb61de3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-df3df2d21b0960c95367dfab60a292d58a801db828021ab6fb20e551c6d97c76.yml -openapi_spec_hash: e72bafc63b49547ac7fa3c00a26ffa70 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6de91af3f73af8863fd57ea222f6242aaff9bae1796722d77795ac528da4567.yml +openapi_spec_hash: 2ac12ef0cc0bbc15d545e03e00f227b4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0a7a15b9..afb19c97 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( - * 'perspiciatis', + * 'eligendi', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fdca149b..a13145bc 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( - * 'pariatur', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 685b16a6..c209d8d7 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', + * 'praesentium', * { 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', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..db2fa79c 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('ut', { + * const comment = await client.posts.comments.create('quod', { * 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('ut', { + * const comments = await client.posts.comments.list('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 c9a094cf..41feb4c0 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 5becb75e..8e33876a 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('est'); + * const response = await client.smartLinks.listClicks( + * 'aperiam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'laudantium', + * 'rem', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans( + * 'maiores', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ratione', + * 'eum', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('architecto'); + * await client.smartLinks.retrieveCohortArps('dignissimos'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'praesentium', + * 'in', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 190efad0..2c1b8292 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( - * 'commodi', + * 'voluptatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('commodi', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'voluptatibus', + * { + * 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 165fa22c..989e2dfd 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( - * 'quam', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quam', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('distinctio', { + * 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( - * 'aut', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d3b0a483..b17cf653 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( - * 'consequatur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('enim', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'consequatur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('enim', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolorem', + * 'animi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ex', { + * await client.trialLinks.retrieveCohortArps('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolores', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b749e757..ad48d520 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: 'nmumzwtdvnkxvqlpzaa' }, + * { name: 'htdcodgwijmafuwwjfqlx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 958468a3..a1cc0959 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('eligendi'); 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 1afd1a14..6db1bd1f 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: 'nostrum', + auth_id: 'dolorem', auth_type: 'raw_data', - cookies: 'natus', + cookies: 'excepturi', customProxy: { host: 'proxy.example.com', - password: 'Xgxz%3*G@ft\\sxeQ', + password: '@RLY.x+tyBQ$# { 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 05e01e39..b159b247 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('pariatur', { + const responsePromise = client.engagement.messages.getMessageBuyers('rerum', { 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('pariatur', { + const response = await client.engagement.messages.getMessageBuyers('rerum', { 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 1697eb4a..0d71ff7b 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('praesentium', { 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('praesentium', { 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('praesentium', { 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('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..2691bfec 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('quod', { 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('quod', { 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('quod', { 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('quod', { 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 e2edc676..4ec8acc7 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 b643af69..c1510622 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 27d04cc2..62bec48d 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: ['ifazqmdmus'] }, + filter: { tags: ['hnjlkqbolsfydrzabzxijhajz'] }, 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('aperiam'); 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', + 'aperiam', { 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('laudantium'); + const responsePromise = client.smartLinks.listConversions('rem'); 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( - 'laudantium', + 'rem', { 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('aut'); + const responsePromise = client.smartLinks.listFans('maiores'); 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( - 'aut', + 'maiores', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ratione'); + const responsePromise = client.smartLinks.listSpenders('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'ratione', + 'eum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); + const responsePromise = client.smartLinks.retrieveCohortArps('dignissimos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'architecto', + 'dignissimos', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('praesentium'); + const responsePromise = client.smartLinks.retrieveStats('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'praesentium', + 'in', { 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 bc257a76..015dfa03 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: 'uvnykxuyycfpixfxei', tags: ['cdme'] }, + filter: { search: 'lfsiefurrvcynghrnxlx', tags: ['bc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'doj', tags: ['glccocyklmxwbgirnjqjz'] }, + filter: { search: 'on', tags: ['nmthojbcyg'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ljktiktsfnlizmajj', - tags: ['lqgwx'], + include_smart_links: false, + search: 'vtehvguybsdfhqvbv', + tags: ['bjqpzg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ansypeqmnuoans', - tags: ['veqjottrdkmkhru'], + include_smart_links: false, + search: 'jwxxqkphhwutjsp', + tags: ['nycajqp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f2ac4a3b..eeaf1b05 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('commodi', { + const responsePromise = client.stories.highlights.addStory('voluptatibus', { 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('commodi', { + const response = await client.stories.highlights.addStory('voluptatibus', { 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('commodi', { + const responsePromise = client.stories.highlights.removeStory('voluptatibus', { 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('commodi', { + const response = await client.stories.highlights.removeStory('voluptatibus', { 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 b6263a6b..15d77709 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('quam', { 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('quam', { 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('quam', { 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('quam', { 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('distinctio', { + 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('distinctio', { + 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('saepe', { 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('aut', { + const response = await client.trackingLinks.getStats('saepe', { 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 bf0fc6c9..99ad4b87 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('enim', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('enim', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('enim', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('enim', { 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('animi', { 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('animi', { 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('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('hic', { 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('ex', { + const response = await client.trialLinks.retrieveCohortArps('hic', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quis', { 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('dolores', { + const response = await client.trialLinks.retrieveStats('quis', { 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 4e2f45d6..3e93ac1a 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: 'nmumzwtdvnkxvqlpzaa' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'htdcodgwijmafuwwjfqlx', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'nmumzwtdvnkxvqlpzaa' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'htdcodgwijmafuwwjfqlx' }); }); // Mock server tests are disabled From 9fe6eaeca808b011253e00774430bc183c67f9e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 12:12:32 +0000 Subject: [PATCH 138/309] 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 | 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 +++--- .../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 | 6 ++--- 28 files changed, 121 insertions(+), 126 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4bb61de3..fb649295 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6de91af3f73af8863fd57ea222f6242aaff9bae1796722d77795ac528da4567.yml -openapi_spec_hash: 2ac12ef0cc0bbc15d545e03e00f227b4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8809a2f22eacb6c1d1a475f96f366f011f0724c71956369ac529eb2f94ad6c4b.yml +openapi_spec_hash: b09778c7e838ae9365b3f581f21d1f41 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index afb19c97..e1791181 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( - * 'eligendi', - * ); + * 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 a13145bc..fdca149b 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( - * 'rerum', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c209d8d7..dbc9eb1a 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( - * 'praesentium', + * 'eius', * { 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( - * 'praesentium', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index db2fa79c..b7182b66 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('quod', { - * 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('quod', { - * 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 41feb4c0..c9a094cf 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 8e33876a..23adbe28 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( - * 'aperiam', + * 'rerum', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rem', + * 'laborum', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'maiores', - * ); + * const response = await client.smartLinks.listFans('hic'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eum', + * 'cupiditate', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dignissimos'); + * await client.smartLinks.retrieveCohortArps('vero'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'in', + * 'fugiat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2c1b8292..12ef2411 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( - * 'voluptatibus', + * 'quis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'voluptatibus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('quis', { + * 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 989e2dfd..a0820f63 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', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'perferendis', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptate', { + * 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( - * 'saepe', - * { 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 b17cf653..3d5c39ad 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('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'minima', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('enim', { + * const trialLink = await client.trialLinks.delete('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'animi', + * 'odit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('hic', { + * await client.trialLinks.retrieveCohortArps('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ad48d520..d3531a90 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: 'htdcodgwijmafuwwjfqlx' }, + * { name: 'oiico' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1cc0959..c1cb7513 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('eligendi'); + 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 6db1bd1f..b6adccdb 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: 'excepturi', + auth_id: 'expedita', + auth_type: 'email_password', + cookies: 'saepe', customProxy: { host: 'proxy.example.com', - password: '@RLY.x+tyBQ$# { 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 b159b247..05e01e39 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('rerum', { + const responsePromise = client.engagement.messages.getMessageBuyers('pariatur', { 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('rerum', { + const response = await client.engagement.messages.getMessageBuyers('pariatur', { 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 0d71ff7b..a4900aca 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('praesentium', { + const responsePromise = client.media.vault.lists.media.add('eius', { 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('praesentium', { + const response = await client.media.vault.lists.media.add('eius', { 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('praesentium', { + const responsePromise = client.media.vault.lists.media.remove('eius', { 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('praesentium', { + const response = await client.media.vault.lists.media.remove('eius', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 2691bfec..225529d6 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('quod', { + 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('quod', { + 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('quod', { 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('quod', { + const response = await client.posts.comments.list('commodi', { 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 4ec8acc7..e2edc676 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 62bec48d..f6ecc168 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: ['hnjlkqbolsfydrzabzxijhajz'] }, + filter: { tags: ['uzzyieuxdrpz'] }, 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('aperiam'); + const responsePromise = client.smartLinks.listClicks('rerum'); 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( - 'aperiam', + 'rerum', { 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('rem'); + 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( - 'rem', + '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('maiores'); + const responsePromise = client.smartLinks.listFans('hic'); 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( - 'maiores', + 'hic', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eum'); + const responsePromise = client.smartLinks.listSpenders('cupiditate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'eum', + 'cupiditate', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dignissimos'); + const responsePromise = client.smartLinks.retrieveCohortArps('vero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'dignissimos', + 'vero', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('in'); + const responsePromise = client.smartLinks.retrieveStats('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'in', + 'fugiat', { 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 015dfa03..4d20c18f 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: 'lfsiefurrvcynghrnxlx', tags: ['bc'] }, + filter: { search: 'bgzvedyuafqan', tags: ['bagik'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'on', tags: ['nmthojbcyg'] }, + filter: { search: 'hefyto', tags: ['ljpwknign'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vtehvguybsdfhqvbv', - tags: ['bjqpzg'], + include_smart_links: true, + search: 'qvbuxnxubzsdpbg', + tags: ['dplio'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jwxxqkphhwutjsp', - tags: ['nycajqp'], + search: 'aiuuwknjwlf', + tags: ['ydqzbz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index eeaf1b05..bf5dd679 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('voluptatibus', { + const responsePromise = client.stories.highlights.addStory('quis', { 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('voluptatibus', { + const response = await client.stories.highlights.addStory('quis', { 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('voluptatibus', { + const responsePromise = client.stories.highlights.removeStory('quis', { 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('voluptatibus', { + const response = await client.stories.highlights.removeStory('quis', { 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 15d77709..c5af9465 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('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('perferendis', { 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('perferendis', { 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('perferendis', { 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('qui', { 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('qui', { 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('saepe', { 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; @@ -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('saepe', { + 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 99ad4b87..8923cf06 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('minima', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('minima', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('minima', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('minima', { 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('animi', { + const responsePromise = client.trialLinks.listSubscribers('odit', { 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('animi', { + const response = await client.trialLinks.listSubscribers('odit', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('at', { 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('hic', { + const response = await client.trialLinks.retrieveCohortArps('at', { 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('quis', { 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('quis', { + 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 3e93ac1a..85e5fd2a 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: 'htdcodgwijmafuwwjfqlx', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oiico' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'htdcodgwijmafuwwjfqlx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oiico' }); }); // Mock server tests are disabled From 6cfc2713a3bc70d590ae9108034fb0ef0cf91efd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 14:12:34 +0000 Subject: [PATCH 139/309] 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 | 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/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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 112 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb649295..a2a66737 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8809a2f22eacb6c1d1a475f96f366f011f0724c71956369ac529eb2f94ad6c4b.yml -openapi_spec_hash: b09778c7e838ae9365b3f581f21d1f41 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-790de70d78e57caccf1b1ef1151aa5a82963727bf6ea4e7287789acf1d8d85a9.yml +openapi_spec_hash: 4b8feb0d572721a94946567b88cb8afe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e1791181..de94aead 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('omnis'); + * const response = await client.accounts.disconnect( + * 'accusantium', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fdca149b..e043f777 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( - * 'pariatur', + * 'iste', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index dbc9eb1a..345302b7 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( - * 'eius', + * 'minima', * { 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( - * 'eius', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b7182b66..95bf943a 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( - * 'commodi', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('quis', { + * 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( - * 'commodi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('quis', { + * 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 09d6973d..599a9525 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 c9a094cf..41feb4c0 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 23adbe28..14ca756c 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( - * 'rerum', - * ); + * const response = await client.smartLinks.listClicks('quas'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'laborum', + * 'libero', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('hic'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'cupiditate', + * 'nesciunt', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('vero'); + * await client.smartLinks.retrieveCohortArps('corrupti'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'fugiat', + * 'dolor', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 12ef2411..88991aed 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( - * 'quis', + * 'assumenda', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quis', { + * await client.stories.highlights.removeStory('assumenda', { * 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 a0820f63..3f366c5d 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', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('libero', { * 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( + * 'illo', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3d5c39ad..382e7e53 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( - * 'minima', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('minima', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'odit', + * 'eveniet', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('at', { + * await client.trialLinks.retrieveCohortArps('amet', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d3531a90..e1649f6f 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: 'oiico' }, + * { name: 'ogsfb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1cb7513..aea84b6a 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('accusantium'); 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 b6adccdb..929d1bd7 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: 'expedita', - auth_type: 'email_password', - cookies: 'saepe', + auth_id: 'nihil', + auth_type: 'mobile_app', + cookies: 'tempora', customProxy: { host: 'proxy.example.com', - password: 'M\\4{AU', + password: '-1<#rH}nlU', port: 8080, - username: 'tenetur', + username: 'iusto', }, - email: 'reagan.schuster@example.com', + email: 'garnett.barrows@example.com', force_connect: true, - name: 'sint', - password: 'M5lT]&U$( { 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 05e01e39..6986a131 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('pariatur', { + const responsePromise = client.engagement.messages.getMessageBuyers('iste', { 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('pariatur', { + const response = await client.engagement.messages.getMessageBuyers('iste', { 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 a4900aca..af9118ce 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('eius', { + const responsePromise = client.media.vault.lists.media.add('minima', { 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('eius', { + const response = await client.media.vault.lists.media.add('minima', { 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('eius', { + const responsePromise = client.media.vault.lists.media.remove('minima', { 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('eius', { + const response = await client.media.vault.lists.media.remove('minima', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..69b39e44 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 225529d6..86baf48c 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('quis', { 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('quis', { 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('quis', { 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('quis', { 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 e2edc676..8e5b0566 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 b643af69..c1510622 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 f6ecc168..b2904df2 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: ['uzzyieuxdrpz'] }, + filter: { tags: ['dumjavgorgzqadiajzhnq'] }, 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('rerum'); + const responsePromise = client.smartLinks.listClicks('quas'); 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( - 'rerum', + 'quas', { 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('libero'); 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', + 'libero', { 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('hic'); + const responsePromise = client.smartLinks.listFans('aut'); 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( - 'hic', + 'aut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('cupiditate'); + const responsePromise = client.smartLinks.listSpenders('nesciunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'cupiditate', + 'nesciunt', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('vero'); + const responsePromise = client.smartLinks.retrieveCohortArps('corrupti'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'vero', + 'corrupti', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('fugiat'); + const responsePromise = client.smartLinks.retrieveStats('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'fugiat', + 'dolor', { 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 4d20c18f..c8f158e3 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: 'bgzvedyuafqan', tags: ['bagik'] }, + filter: { search: 'lcn', tags: ['isnrugtcjjmd'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hefyto', tags: ['ljpwknign'] }, + filter: { search: 'qdz', tags: ['mwvsksbyxlxrpr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'qvbuxnxubzsdpbg', - tags: ['dplio'], + search: 'drjkypjewgnkbgjjzhku', + tags: ['smj'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'aiuuwknjwlf', - tags: ['ydqzbz'], + search: 'mqogfunifwdyxvm', + tags: ['usobskospdpbjjwntimglfyok'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bf5dd679..671f3446 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('quis', { + const responsePromise = client.stories.highlights.addStory('assumenda', { 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('quis', { + const response = await client.stories.highlights.addStory('assumenda', { 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('quis', { + const responsePromise = client.stories.highlights.removeStory('assumenda', { 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('quis', { + const response = await client.stories.highlights.removeStory('assumenda', { 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 c5af9465..81c422b4 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('aut', { 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('aut', { 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('aut', { 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('aut', { 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('libero', { 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('libero', { 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('illo', { 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('illo', { 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 8923cf06..4780b03e 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('minima', { 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('minima', { 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('minima', { 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('minima', { 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('odit', { + const responsePromise = client.trialLinks.listSubscribers('eveniet', { 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('odit', { + const response = await client.trialLinks.listSubscribers('eveniet', { 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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('amet', { 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('at', { + const response = await client.trialLinks.retrieveCohortArps('amet', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,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('atque', { 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('voluptatem', { + const response = await client.trialLinks.retrieveStats('atque', { 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 85e5fd2a..afee7852 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: 'oiico' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ogsfb' }); 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: 'oiico' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ogsfb' }); }); // Mock server tests are disabled From 78a6086fd29d9f7f05a2aceb3398c98cd088662f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 15:12:42 +0000 Subject: [PATCH 140/309] 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 +- 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 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 23 files changed, 113 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2a66737..18993918 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-790de70d78e57caccf1b1ef1151aa5a82963727bf6ea4e7287789acf1d8d85a9.yml -openapi_spec_hash: 4b8feb0d572721a94946567b88cb8afe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-449434682caaf52a89773dfbc4930ffcc6cf9eddffc0b3785731e6604317b133.yml +openapi_spec_hash: 38821a96365df106cd24d3db013d5e28 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index de94aead..15b563e7 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( - * 'accusantium', - * ); + * const response = await client.accounts.disconnect('eum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e043f777..e0161605 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( - * 'iste', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 345302b7..af9ad358 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( - * 'minima', + * '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( - * 'minima', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95bf943a..b7182b66 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('quis', { - * 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('quis', { - * 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..09d6973d 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 14ca756c..b9658615 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('quas'); + * 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( - * 'libero', + * 'provident', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans('saepe'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nesciunt', + * 'illum', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('corrupti'); + * await client.smartLinks.retrieveCohortArps('commodi'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dolor', + * 'magni', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 88991aed..09582bf8 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( - * 'assumenda', + * 'numquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('assumenda', { + * await client.stories.highlights.removeStory('numquam', { * 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 3f366c5d..ea031037 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( - * 'aut', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('libero', { + * await client.trackingLinks.getCohortArps('rem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'illo', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 382e7e53..5244dded 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', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('magnam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eveniet', + * 'corrupti', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('amet', { + * await client.trialLinks.retrieveCohortArps('deserunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'atque', + * 'soluta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e1649f6f..0d9844be 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: 'ogsfb' }, + * { name: 'vkysvpdrzwhehatlqyipyw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index aea84b6a..51e2c867 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('accusantium'); + const responsePromise = client.accounts.disconnect('eum'); 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 929d1bd7..9ae20974 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: 'nihil', - auth_type: 'mobile_app', - cookies: 'tempora', + auth_id: 'voluptatem', + auth_type: 'email_password', + cookies: 'quod', customProxy: { host: 'proxy.example.com', - password: '-1<#rH}nlU', + password: "v$Vg9ikk|'0@", port: 8080, - username: 'iusto', + username: 'autem', }, - email: 'garnett.barrows@example.com', + email: 'ivolkman@example.com', force_connect: true, - name: 'aliquam', - password: 'sU7R-Mu%', + name: 'cupiditate', + password: '^Qu8P{2,j1D+@1-"X', proxyCountry: 'uk', - user_agent: 'sed', - xbc: 'debitis', + user_agent: 'dolorem', + xbc: 'velit', }, { 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 6986a131..020cd7ce 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('iste', { + const responsePromise = client.engagement.messages.getMessageBuyers('nihil', { 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('iste', { + const response = await client.engagement.messages.getMessageBuyers('nihil', { 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 af9118ce..e6c1db3e 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('minima', { + 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('minima', { + 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('minima', { + 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('minima', { + const response = await client.media.vault.lists.media.remove('et', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 86baf48c..225529d6 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('quis', { + 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('quis', { + 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('quis', { 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('quis', { + const response = await client.posts.comments.list('commodi', { 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 8e5b0566..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index b2904df2..8e3be82b 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: ['dumjavgorgzqadiajzhnq'] }, + filter: { tags: ['dwmlkue'] }, 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('quas'); + const responsePromise = client.smartLinks.listClicks('voluptate'); 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( - 'quas', + 'voluptate', { 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('libero'); + const responsePromise = client.smartLinks.listConversions('provident'); 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( - 'libero', + 'provident', { 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('aut'); + const responsePromise = client.smartLinks.listFans('saepe'); 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( - 'aut', + 'saepe', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nesciunt'); + const responsePromise = client.smartLinks.listSpenders('illum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'nesciunt', + 'illum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('corrupti'); + const responsePromise = client.smartLinks.retrieveCohortArps('commodi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'corrupti', + 'commodi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dolor'); + const responsePromise = client.smartLinks.retrieveStats('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'dolor', + '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 c8f158e3..e5f0b3c5 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: 'lcn', tags: ['isnrugtcjjmd'] }, + filter: { search: 'smdudglbxksek', tags: ['bawxxztnngcfobqyumku'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qdz', tags: ['mwvsksbyxlxrpr'] }, + filter: { search: 'ewyyavldnzgv', tags: ['ccljupkkkykypsq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'drjkypjewgnkbgjjzhku', - tags: ['smj'], + search: 'iyvchomehmp', + tags: ['sfjmo'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'mqogfunifwdyxvm', - tags: ['usobskospdpbjjwntimglfyok'], + include_smart_links: true, + search: 'dxhva', + tags: ['tkoilvgbketcdcfqzsmrkbekw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 671f3446..04e7b2bf 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('assumenda', { + const responsePromise = client.stories.highlights.addStory('numquam', { 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('assumenda', { + const response = await client.stories.highlights.addStory('numquam', { 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('assumenda', { + const responsePromise = client.stories.highlights.removeStory('numquam', { 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('assumenda', { + const response = await client.stories.highlights.removeStory('numquam', { 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 81c422b4..ec00a3ab 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eos', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eos', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eos', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('rem', { 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('libero', { + const response = await client.trackingLinks.getCohortArps('rem', { 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('illo', { 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; @@ -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('illo', { + 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 4780b03e..449123d6 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('magnam', { 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('magnam', { 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('magnam', { 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('magnam', { 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('eveniet', { + const responsePromise = client.trialLinks.listSubscribers('corrupti', { 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('eveniet', { + const response = await client.trialLinks.listSubscribers('corrupti', { 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('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('deserunt', { + 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('amet', { + const response = await client.trialLinks.retrieveCohortArps('deserunt', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('soluta', { 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('atque', { + const response = await client.trialLinks.retrieveStats('soluta', { 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 afee7852..fa80a6c2 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: 'ogsfb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'vkysvpdrzwhehatlqyipyw', + }); 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: 'ogsfb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'vkysvpdrzwhehatlqyipyw', + }); }); // Mock server tests are disabled From a933eb65500d19109bedc378d3f3c1798bc27327 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 20:12:33 +0000 Subject: [PATCH 141/309] 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 | 11 ++++---- 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 +-- .../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 | 12 ++++----- .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 102 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 18993918..be1a8f1f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-449434682caaf52a89773dfbc4930ffcc6cf9eddffc0b3785731e6604317b133.yml -openapi_spec_hash: 38821a96365df106cd24d3db013d5e28 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2113cdeca9384b46bb6ebef5497bb2d5168355bafedf33f58c858cd59b06b8eb.yml +openapi_spec_hash: e54f6a1f5cd2f16827363e46da00a0e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 15b563e7..f41cce05 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('eum'); + * 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 e0161605..81f3d2e2 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( - * 'nihil', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..0d43daa9 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', + * 'adipisci', * { 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', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b7182b66..36ae6c40 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', + * 'repellat', * { * 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', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 41feb4c0..c9a094cf 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 b9658615..ecf65c4d 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( - * 'voluptate', - * ); + * const response = await client.smartLinks.listClicks('quae'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'provident', + * 'tempore', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('saepe'); + * const response = await client.smartLinks.listFans('velit'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'illum', + * 'provident', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('commodi'); + * await client.smartLinks.retrieveCohortArps('ut'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'magni', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 09582bf8..726b57b4 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( - * 'numquam', + * 'tenetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('numquam', { + * await client.stories.highlights.removeStory('tenetur', { * 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 ea031037..2137e72b 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( - * 'eos', + * 'iusto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eos', + * 'iusto', * { 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('ab', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5244dded..6bf221b8 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( - * 'magnam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('magnam', { + * const trialLink = await client.trialLinks.delete('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'corrupti', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('deserunt', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'soluta', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0d9844be..f1f83f71 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: 'vkysvpdrzwhehatlqyipyw' }, + * { name: 'eaihc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 51e2c867..3b4e8eca 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('eum'); + 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 9ae20974..5cfddaa0 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: 'voluptatem', + auth_id: 'nam', auth_type: 'email_password', - cookies: 'quod', + cookies: 'deserunt', customProxy: { host: 'proxy.example.com', - password: "v$Vg9ikk|'0@", + password: 'S=Q6rzb>wK3)=6c}<', port: 8080, - username: 'autem', + username: 'neque', }, - email: 'ivolkman@example.com', - force_connect: true, - name: 'cupiditate', - password: '^Qu8P{2,j1D+@1-"X', + email: 'ortiz.terrence@example.org', + force_connect: false, + name: 'vitae', + password: 'oU', proxyCountry: 'uk', - user_agent: 'dolorem', - xbc: 'velit', + user_agent: 'suscipit', + 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 020cd7ce..77125615 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('nihil', { + 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('nihil', { + 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 e6c1db3e..3a060828 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('adipisci', { 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('adipisci', { 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('adipisci', { 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('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 225529d6..0144bc2d 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('repellat', { 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('repellat', { 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('repellat', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 c1510622..b643af69 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 8e3be82b..4c0abb64 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: ['dwmlkue'] }, + filter: { tags: ['nuulinzkdfnjebev'] }, 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('voluptate'); + const responsePromise = client.smartLinks.listClicks('quae'); 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( - 'voluptate', + 'quae', { 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('provident'); + const responsePromise = client.smartLinks.listConversions('tempore'); 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( - 'provident', + 'tempore', { 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('saepe'); + const responsePromise = client.smartLinks.listFans('velit'); 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( - 'saepe', + 'velit', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('illum'); + const responsePromise = client.smartLinks.listSpenders('provident'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'illum', + 'provident', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('commodi'); + const responsePromise = client.smartLinks.retrieveCohortArps('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'ut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('magni'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 e5f0b3c5..dcf2016d 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: 'smdudglbxksek', tags: ['bawxxztnngcfobqyumku'] }, + filter: { search: 'zeosipgtyo', tags: ['lsmdosyvftinmhq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ewyyavldnzgv', tags: ['ccljupkkkykypsq'] }, + filter: { search: 'eelxzkspcaofefqwcygmsy', tags: ['wtfbicqdcikunwuaxmyxwio'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'iyvchomehmp', - tags: ['sfjmo'], + search: 'shpttsuxm', + tags: ['ykhsarrezjzzrog'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'dxhva', - tags: ['tkoilvgbketcdcfqzsmrkbekw'], + include_smart_links: false, + search: 'fplzzbsyuysj', + tags: ['pxrnsifuubasqwgmc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 04e7b2bf..2c83162f 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('numquam', { + const responsePromise = client.stories.highlights.addStory('tenetur', { 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('numquam', { + const response = await client.stories.highlights.addStory('tenetur', { 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('numquam', { + const responsePromise = client.stories.highlights.removeStory('tenetur', { 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('numquam', { + const response = await client.stories.highlights.removeStory('tenetur', { 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 ec00a3ab..06e2c06f 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('iusto', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('iusto', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,7 +92,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -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('ab', { 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('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 449123d6..d2309d6b 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('magnam', { 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('magnam', { 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('magnam', { 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('magnam', { 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('corrupti', { + 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('corrupti', { + const response = await client.trialLinks.listSubscribers('aut', { 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('deserunt', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { 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('deserunt', { + const response = await client.trialLinks.retrieveCohortArps('et', { 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('soluta', { 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 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('soluta', { + 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 fa80a6c2..83deff7b 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: 'vkysvpdrzwhehatlqyipyw', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eaihc' }); 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: 'vkysvpdrzwhehatlqyipyw', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eaihc' }); }); // Mock server tests are disabled From 2e87746284c269b0315ccea719df1c52acf9e2ee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 21:12:32 +0000 Subject: [PATCH 142/309] 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 | 12 ++++----- 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 | 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 +++--- 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 | 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 +-- 27 files changed, 119 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index be1a8f1f..baf83e2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2113cdeca9384b46bb6ebef5497bb2d5168355bafedf33f58c858cd59b06b8eb.yml -openapi_spec_hash: e54f6a1f5cd2f16827363e46da00a0e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6fc9beff8a858c9347e86bd8ea67a7748aeb90592f809411d06283deb32d5057.yml +openapi_spec_hash: a1de5cd20fd285745e197f410847e4cb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f41cce05..127fd72b 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('ipsum'); + * const response = await client.accounts.disconnect( + * 'corrupti', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 81f3d2e2..506ca99a 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( + * 'nisi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0d43daa9..934c6c3b 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( - * 'adipisci', + * '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( - * 'adipisci', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 36ae6c40..fd5e7270 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( - * 'repellat', + * 'neque', * { * 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( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('neque', { + * 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 e20f70d1..599a9525 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 c9a094cf..41feb4c0 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 ecf65c4d..fa0d0d17 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('quae'); + * 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( - * 'tempore', + * 'qui', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('velit'); + * const response = await client.smartLinks.listFans('fugiat'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'provident', + * 'exercitationem', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ut'); + * await client.smartLinks.retrieveCohortArps('vitae'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'ab', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 726b57b4..12ef2411 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( - * 'tenetur', + * 'quis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('tenetur', { + * await client.stories.highlights.removeStory('quis', { * 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 2137e72b..2889392b 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( - * 'iusto', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'iusto', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rem', { + * await client.trackingLinks.getCohortArps('iure', { * 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( + * 'impedit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6bf221b8..c9cd05ed 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( + * 'doloremque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('non', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'doloremque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('suscipit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f1f83f71..dfa5d3ce 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: 'eaihc' }, + * { name: 'p' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3b4e8eca..6af53808 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('corrupti'); 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 5cfddaa0..bc0fc1c9 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: 'nam', - auth_type: 'email_password', - cookies: 'deserunt', + auth_id: 'rerum', + auth_type: 'raw_data', + cookies: 'saepe', customProxy: { host: 'proxy.example.com', - password: 'S=Q6rzb>wK3)=6c}<', + password: 'R`K#"Op+VleNh%', port: 8080, - username: 'neque', + username: 'aperiam', }, - email: 'ortiz.terrence@example.org', + email: 'alisa.luettgen@example.net', force_connect: false, - name: 'vitae', - password: 'oU', - proxyCountry: 'uk', - user_agent: 'suscipit', - xbc: 'qui', + name: 'modi', + password: ':9Op[pj|h\\', + proxyCountry: 'us', + user_agent: 'qui', + xbc: 'autem', }, { 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 77125615..ecbc6810 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('nisi', { 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('nisi', { 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 3a060828..9cf5279e 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('adipisci', { + 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('adipisci', { + 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('adipisci', { + 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('adipisci', { + 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 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 0144bc2d..055b9d1b 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('repellat', { + const responsePromise = client.posts.comments.create('neque', { 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('repellat', { + const response = await client.posts.comments.create('neque', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('neque', { 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('repellat', { + const response = await client.posts.comments.list('neque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..8e5b0566 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 b643af69..c1510622 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 4c0abb64..835679a7 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: ['nuulinzkdfnjebev'] }, + filter: { tags: ['mjceuhgkmjyk'] }, 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('quae'); + 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( - 'quae', + '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('tempore'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'tempore', + 'qui', { 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('velit'); + const responsePromise = client.smartLinks.listFans('fugiat'); 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( - 'velit', + 'fugiat', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('provident'); + const responsePromise = client.smartLinks.listSpenders('exercitationem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'exercitationem', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ut'); + const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'vitae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'ab', { 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 dcf2016d..2ae8d3d0 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: 'zeosipgtyo', tags: ['lsmdosyvftinmhq'] }, + filter: { search: 'xehkujvpuck', tags: ['vhrhlezggm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'eelxzkspcaofefqwcygmsy', tags: ['wtfbicqdcikunwuaxmyxwio'] }, + filter: { search: 'oaklaggmgvlhqwyp', tags: ['givvevuvwjnxjxpfszm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'shpttsuxm', - tags: ['ykhsarrezjzzrog'], + include_smart_links: false, + search: 'ydazswfltlkzfhtfrycwrb', + tags: ['anzamlssjaybes'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'fplzzbsyuysj', - tags: ['pxrnsifuubasqwgmc'], + include_smart_links: true, + search: 'vebyzyqiutqchl', + tags: ['eyetdiw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2c83162f..bf5dd679 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('tenetur', { + const responsePromise = client.stories.highlights.addStory('quis', { 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('tenetur', { + const response = await client.stories.highlights.addStory('quis', { 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('tenetur', { + const responsePromise = client.stories.highlights.removeStory('quis', { 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('tenetur', { + const response = await client.stories.highlights.removeStory('quis', { 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 06e2c06f..8ddaf039 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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('aut', { 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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('aut', { 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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('aut', { 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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iure', { 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('rem', { + const response = await client.trackingLinks.getCohortArps('iure', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('impedit', { 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('ab', { + const response = await client.trackingLinks.getStats('impedit', { 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 d2309d6b..0e15632d 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('doloremque', { 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('doloremque', { 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('doloremque', { 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('doloremque', { 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('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('aut', { + const response = await client.trialLinks.listSubscribers('consequatur', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('suscipit', { + 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('et', { + const response = await client.trialLinks.retrieveCohortArps('suscipit', { 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('ut', { 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 +179,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('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 83deff7b..db92e74a 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: 'eaihc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'p' }); 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: 'eaihc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'p' }); }); // Mock server tests are disabled From 9eb0b72e2dbd58b45ff9fb8dcc584d1c81df100f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 00:12:33 +0000 Subject: [PATCH 143/309] 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 | 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 +-- .../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 | 18 +++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 114 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index baf83e2c..644b6746 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6fc9beff8a858c9347e86bd8ea67a7748aeb90592f809411d06283deb32d5057.yml -openapi_spec_hash: a1de5cd20fd285745e197f410847e4cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3ae566c4414fa1028a893ffcb915ec516454172ad6f1a170104c435c1db0680.yml +openapi_spec_hash: 21082d6b6aa024f4394dfe9fceb8d803 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 127fd72b..3d2901a9 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( - * 'corrupti', - * ); + * const response = await client.accounts.disconnect('quam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 506ca99a..e2b2765a 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( - * 'nisi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('sit', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 934c6c3b..498af0b3 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', + * 'quam', * { 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', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fd5e7270..c40469c2 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( - * 'neque', + * 'distinctio', * { * 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('neque', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'distinctio', + * { 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..2b04cbb2 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 fa0d0d17..89a6aa67 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('id'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'rerum', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugiat'); + * 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( - * 'exercitationem', + * 'qui', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('vitae'); + * await client.smartLinks.retrieveCohortArps('quia'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ab', + * 'dolor', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 12ef2411..c795ca95 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( - * 'quis', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quis', { + * await client.stories.highlights.removeStory('id', { * 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 2889392b..532dd57c 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( - * 'aut', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iure', { + * await client.trackingLinks.getCohortArps('temporibus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'impedit', - * { 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 c9cd05ed..d5c89974 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( - * 'doloremque', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'doloremque', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('minima', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consequatur', + * 'provident', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('suscipit', { + * await client.trialLinks.retrieveCohortArps('saepe', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'cumque', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index dfa5d3ce..fd7c59fe 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: 'p' }, + * { name: 'fhjkiwheanjlohprqewg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6af53808..72523658 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('corrupti'); + const responsePromise = client.accounts.disconnect('quam'); 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 bc0fc1c9..270c03ad 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: 'rerum', - auth_type: 'raw_data', - cookies: 'saepe', + auth_id: 'quod', + auth_type: 'email_password', + cookies: 'velit', customProxy: { host: 'proxy.example.com', - password: 'R`K#"Op+VleNh%', + password: 'GIU.^&p[j"@My011b', port: 8080, - username: 'aperiam', + username: 'nihil', }, - email: 'alisa.luettgen@example.net', - force_connect: false, - name: 'modi', - password: ':9Op[pj|h\\', - proxyCountry: 'us', - user_agent: 'qui', - xbc: 'autem', + email: 'tremblay.nikki@example.org', + force_connect: true, + name: 'dolor', + password: 'y<8yCz{kd;<`', + proxyCountry: 'uk', + user_agent: 'enim', + xbc: 'at', }, { 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 ecbc6810..09505ee9 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('nisi', { + const responsePromise = client.engagement.messages.getMessageBuyers('sit', { 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('nisi', { + const response = await client.engagement.messages.getMessageBuyers('sit', { 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 9cf5279e..07da98f5 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('quam', { 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('quam', { 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('quam', { 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('quam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 055b9d1b..81fedb6a 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('neque', { + 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('neque', { + 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('neque', { 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('neque', { + 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 ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..96d399de 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 835679a7..e09a4ee7 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: ['mjceuhgkmjyk'] }, + filter: { tags: ['kyngcygdw'] }, 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('id'); 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', + 'id', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'qui', + 'rerum', { 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('fugiat'); + const responsePromise = client.smartLinks.listFans('deleniti'); 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( - 'fugiat', + 'deleniti', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('exercitationem'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'exercitationem', + 'qui', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); + const responsePromise = client.smartLinks.retrieveCohortArps('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'quia', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ab'); + const responsePromise = client.smartLinks.retrieveStats('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'dolor', { 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 2ae8d3d0..ec289f49 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: 'xehkujvpuck', tags: ['vhrhlezggm'] }, + filter: { search: 'xrqkpllqexke', tags: ['oscimdiwpfjw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oaklaggmgvlhqwyp', tags: ['givvevuvwjnxjxpfszm'] }, + filter: { search: 'xcoohqmdvsmmq', tags: ['wvcfrmhksjlnua'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ydazswfltlkzfhtfrycwrb', - tags: ['anzamlssjaybes'], + search: 'zrcuwzkr', + tags: ['ymtnvckrjpkoysibcmp'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'vebyzyqiutqchl', - tags: ['eyetdiw'], + include_smart_links: false, + search: 'bdblwpdohhbonqsep', + tags: ['dewiirfhjjaakeexrwgzwnzi'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bf5dd679..7b006e42 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('quis', { + const responsePromise = client.stories.highlights.addStory('id', { 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('quis', { + const response = await client.stories.highlights.addStory('id', { 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('quis', { + const responsePromise = client.stories.highlights.removeStory('id', { 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('quis', { + const response = await client.stories.highlights.removeStory('id', { 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 8ddaf039..f7170839 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('aut', { 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('aut', { 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('aut', { 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('aut', { 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('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('temporibus', { + 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('iure', { + const response = await client.trackingLinks.getCohortArps('temporibus', { 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('impedit', { 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('impedit', { + 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 0e15632d..d4f2f84b 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('minima', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('minima', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('minima', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('minima', { 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('provident', { 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('provident', { 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('suscipit', { + const responsePromise = client.trialLinks.retrieveCohortArps('saepe', { 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('suscipit', { + const response = await client.trialLinks.retrieveCohortArps('saepe', { 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('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('vel', { 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('cumque', { + const response = await client.trialLinks.retrieveStats('vel', { 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 db92e74a..7961b22f 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: 'p' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fhjkiwheanjlohprqewg' }); 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: 'p' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fhjkiwheanjlohprqewg' }); }); // Mock server tests are disabled From f219bef63b654d615304ee680f4fad139fbc049a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 01:12:40 +0000 Subject: [PATCH 144/309] 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 | 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 +-- .../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 | 4 +-- 29 files changed, 109 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 644b6746..3175e75b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3ae566c4414fa1028a893ffcb915ec516454172ad6f1a170104c435c1db0680.yml -openapi_spec_hash: 21082d6b6aa024f4394dfe9fceb8d803 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ab19a29f011d8e3f0906a7677daba1145b83b3febe89057b6041674a9190b9c4.yml +openapi_spec_hash: b1f6250a95965cf76e7e2f8a0842117c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3d2901a9..c012ec59 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('quam'); + * 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 e2b2765a..400f4002 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('sit', { + * 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 498af0b3..08ef9907 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( - * 'quam', + * '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( - * 'quam', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c40469c2..185f935b 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( - * 'distinctio', - * { - * 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( - * 'distinctio', - * { 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 09d6973d..a9767818 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 2b04cbb2..41feb4c0 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 89a6aa67..4bc93796 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('est'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'eum', * ); * ``` */ @@ -112,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'deleniti', + * 'suscipit', * ); * ``` */ @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'sit', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quia'); + * await client.smartLinks.retrieveCohortArps('molestiae'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dolor', + * 'sint', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c795ca95..82a24efc 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( - * 'id', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('id', { + * await client.stories.highlights.removeStory('velit', { * 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 532dd57c..59377195 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', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('temporibus', { + * await client.trackingLinks.getCohortArps('totam', { * 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( + * 'tempora', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d5c89974..9cc937d3 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( - * 'minima', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('minima', { + * const trialLink = await client.trialLinks.delete('saepe', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'provident', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('saepe', { + * await client.trialLinks.retrieveCohortArps('blanditiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'vel', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fd7c59fe..f7b86ea9 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: 'fhjkiwheanjlohprqewg' }, + * { name: 'ob' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 72523658..b930587d 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('quam'); + 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 270c03ad..74df5dcd 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: 'quod', + auth_id: 'fugiat', auth_type: 'email_password', - cookies: 'velit', + cookies: 'temporibus', customProxy: { host: 'proxy.example.com', - password: 'GIU.^&p[j"@My011b', + password: ':gRU9(LD', port: 8080, - username: 'nihil', + username: 'eius', }, - email: 'tremblay.nikki@example.org', + email: 'pouros.prudence@example.com', force_connect: true, - name: 'dolor', - password: 'y<8yCz{kd;<`', - proxyCountry: 'uk', + name: 'culpa', + password: '>SS.oMD{@>znrYN6X', + proxyCountry: 'us', user_agent: 'enim', - xbc: 'at', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 09505ee9..c720a7ab 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('sit', { + 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('sit', { + 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 07da98f5..4683978a 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('quam', { + 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('quam', { + 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('quam', { + 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('quam', { + 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 69b39e44..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 81fedb6a..a5ecaaf6 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('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('distinctio', { + 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('distinctio', { 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('distinctio', { + 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 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 e09a4ee7..47101561 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: ['kyngcygdw'] }, + filter: { tags: ['ossetkjhuotstignjgjlwhbz'] }, 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('id'); + 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( - 'id', + '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('rerum'); + const responsePromise = client.smartLinks.listConversions('eum'); 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( - 'rerum', + 'eum', { 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('deleniti'); + const responsePromise = client.smartLinks.listFans('suscipit'); 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( - 'deleniti', + 'suscipit', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'sit', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quia'); + const responsePromise = client.smartLinks.retrieveCohortArps('molestiae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'molestiae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dolor'); + const responsePromise = client.smartLinks.retrieveStats('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'dolor', + '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 ec289f49..cba4d005 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: 'xrqkpllqexke', tags: ['oscimdiwpfjw'] }, + filter: { search: 'sgcevdwtlxxhatwvjxaibpfdy', tags: ['sdebeujhtcdwnfdrcct'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xcoohqmdvsmmq', tags: ['wvcfrmhksjlnua'] }, + filter: { search: 'ezegkmxb', tags: ['asugaxfzjnv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zrcuwzkr', - tags: ['ymtnvckrjpkoysibcmp'], + search: 'qqnopxgatjjlgcdudhg', + tags: ['dabmmucryyxpty'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'bdblwpdohhbonqsep', - tags: ['dewiirfhjjaakeexrwgzwnzi'], + search: 'weuaciegwzguboon', + tags: ['eotdpygomekxm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7b006e42..cbd39d79 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('id', { + const responsePromise = client.stories.highlights.addStory('velit', { 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('id', { + const response = await client.stories.highlights.addStory('velit', { 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('id', { + const responsePromise = client.stories.highlights.removeStory('velit', { 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('id', { + const response = await client.stories.highlights.removeStory('velit', { 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 f7170839..ecbfeb5c 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('illo', { 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('illo', { 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('illo', { 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('illo', { 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('totam', { 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('temporibus', { + const response = await client.trackingLinks.getCohortArps('totam', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('tempora', { 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('ut', { + const response = await client.trackingLinks.getStats('tempora', { 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 d4f2f84b..83fb50f4 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('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('saepe', { 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('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('saepe', { 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('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('saepe', { 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('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('saepe', { 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('provident', { + 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('provident', { + 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('saepe', { + const responsePromise = client.trialLinks.retrieveCohortArps('blanditiis', { 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('saepe', { + const response = await client.trialLinks.retrieveCohortArps('blanditiis', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('tenetur', { 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('vel', { + const response = await client.trialLinks.retrieveStats('tenetur', { 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 7961b22f..e7d13c62 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: 'fhjkiwheanjlohprqewg' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ob' }); 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: 'fhjkiwheanjlohprqewg' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ob' }); }); // Mock server tests are disabled From 057e021b08ec70e5fb1a0dc1c90e1ee893d9bdd9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 13:12:41 +0000 Subject: [PATCH 145/309] 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 | 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 +-- 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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++++-- 27 files changed, 111 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3175e75b..b0c31cbc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ab19a29f011d8e3f0906a7677daba1145b83b3febe89057b6041674a9190b9c4.yml -openapi_spec_hash: b1f6250a95965cf76e7e2f8a0842117c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-55cdaa0ad1e4bd209425dcec759d308f8b90a0ce7c84f29386c3125b332e9cb5.yml +openapi_spec_hash: 99b6d39f7f2e7536c159d9abdb111540 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c012ec59..245fc5fb 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( - * 'dignissimos', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 400f4002..0fd1f5dc 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( + * 'cupiditate', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 08ef9907..1ea850e3 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', + * 'voluptatum', * { 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', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935b..c2aa86c1 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('in', { * 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('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 41feb4c0..a84ff073 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 4bc93796..58e6c945 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('eos'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eum', + * 'dolorem', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'suscipit', - * ); + * const response = await client.smartLinks.listFans('nihil'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'saepe', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('molestiae'); + * await client.smartLinks.retrieveCohortArps('unde'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sint', + * 'repudiandae', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 82a24efc..33c4072a 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( - * 'velit', + * 'sequi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('velit', { + * await client.stories.highlights.removeStory('sequi', { * 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 59377195..0f2dd87a 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( - * 'illo', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'illo', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('totam', { + * await client.trackingLinks.getCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tempora', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9cc937d3..22a8f9b7 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( - * 'saepe', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('saepe', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'tempora', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('blanditiis', { + * await client.trialLinks.retrieveCohortArps('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'tenetur', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f7b86ea9..47f5a675 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: 'ob' }, + * { name: 'jsbiwmhmhmgpdsdgzvjektvlb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b930587d..13e5c0c0 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('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 74df5dcd..f6071f8b 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: 'fugiat', - auth_type: 'email_password', - cookies: 'temporibus', + auth_id: 'consequatur', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: ':gRU9(LD', + password: 't#E3fDccC)0@{mu]Z8', port: 8080, - username: 'eius', + username: 'explicabo', }, - email: 'pouros.prudence@example.com', - force_connect: true, - name: 'culpa', - password: '>SS.oMD{@>znrYN6X', + email: 'stanton.neha@example.com', + force_connect: false, + name: 'est', + password: '[:H>2"BVnU=7(SjQWeX', proxyCountry: 'us', - user_agent: 'enim', - xbc: 'et', + user_agent: 'repellendus', + xbc: 'ducimus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 c720a7ab..9b363f6f 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('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('eum', { + 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 4683978a..a3ded46d 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('voluptatum', { 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('voluptatum', { 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('voluptatum', { 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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..7b042946 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 a5ecaaf6..5ab44413 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('in', { 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('in', { 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('in', { 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('in', { 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 4ec8acc7..e2edc676 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 c1510622..02883e18 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 47101561..91863818 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: ['ossetkjhuotstignjgjlwhbz'] }, + filter: { tags: ['weeqekzah'] }, 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('eos'); 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', + 'eos', { 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('eum'); + const responsePromise = client.smartLinks.listConversions('dolorem'); 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( - 'eum', + 'dolorem', { 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('suscipit'); + const responsePromise = client.smartLinks.listFans('nihil'); 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( - 'suscipit', + 'nihil', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'saepe', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('molestiae'); + const responsePromise = client.smartLinks.retrieveCohortArps('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'molestiae', + 'unde', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sint'); + const responsePromise = client.smartLinks.retrieveStats('repudiandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'repudiandae', { 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 cba4d005..379079df 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: 'sgcevdwtlxxhatwvjxaibpfdy', tags: ['sdebeujhtcdwnfdrcct'] }, + filter: { search: 'jfywmhayxiqql', tags: ['ufhotbctjnyksnrkofvlsscwq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ezegkmxb', tags: ['asugaxfzjnv'] }, + filter: { search: 'ghqfrboqcacempsku', tags: ['xofjzcayjwhuzawc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'qqnopxgatjjlgcdudhg', - tags: ['dabmmucryyxpty'], + include_smart_links: true, + search: 'wmbnwxkzaekf', + tags: ['hmnggdozmphwm'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'weuaciegwzguboon', - tags: ['eotdpygomekxm'], + include_smart_links: true, + search: 'fgwveocb', + tags: ['nqhllxmvpk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index cbd39d79..f456e885 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('velit', { + const responsePromise = client.stories.highlights.addStory('sequi', { 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('velit', { + const response = await client.stories.highlights.addStory('sequi', { 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('velit', { + const responsePromise = client.stories.highlights.removeStory('sequi', { 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('velit', { + const response = await client.stories.highlights.removeStory('sequi', { 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 ecbfeb5c..acf63c22 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('illo', { 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('illo', { 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('illo', { 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,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('illo', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('id', { 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('totam', { + const response = await client.trackingLinks.getCohortArps('id', { 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('tempora', { 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('tempora', { + 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 83fb50f4..a7436535 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('saepe', { 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('saepe', { 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('saepe', { 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('saepe', { 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('voluptas', { 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('voluptas', { 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('blanditiis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('ipsa', { 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('blanditiis', { + const response = await client.trialLinks.retrieveCohortArps('ipsa', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('velit', { 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('tenetur', { + const response = await client.trialLinks.retrieveStats('velit', { 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 e7d13c62..3afc3786 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: 'ob' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jsbiwmhmhmgpdsdgzvjektvlb', + }); 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: 'ob' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jsbiwmhmhmgpdsdgzvjektvlb', + }); }); // Mock server tests are disabled From 186099583e86b9c51d6816952ec7b5e587868857 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 15:12:36 +0000 Subject: [PATCH 146/309] 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 | 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 +++--- 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 | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 26 files changed, 119 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index b0c31cbc..dff0bf46 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-55cdaa0ad1e4bd209425dcec759d308f8b90a0ce7c84f29386c3125b332e9cb5.yml -openapi_spec_hash: 99b6d39f7f2e7536c159d9abdb111540 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9f339e5c45287fb09efe3d8a5f09083c691304506fc18333e3edb7937303de7e.yml +openapi_spec_hash: 85b99a47df41db8e0b8309066f06a919 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..1114e44c 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( - * 'voluptatem', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0fd1f5dc..81f3d2e2 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( - * 'cupiditate', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 1ea850e3..498021bb 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( - * 'voluptatum', + * '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( - * 'voluptatum', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c2aa86c1..dee0ca84 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('in', { - * 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('in', { - * 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 58e6c945..5035b3ae 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( + * 'nulla', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolorem', + * 'unde', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nihil'); + * const response = await client.smartLinks.listFans( + * 'praesentium', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'saepe', + * 'minima', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('unde'); + * await client.smartLinks.retrieveCohortArps('nihil'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'repudiandae', + * 'culpa', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 33c4072a..2df720e1 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( - * 'sequi', + * 'cumque', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sequi', { + * await client.stories.highlights.removeStory('cumque', { * 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 0f2dd87a..9e381c02 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', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quo', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('id', { + * 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( - * 'amet', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 22a8f9b7..b4993f2d 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', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'tempora', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('labore', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'omnis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ipsa', { + * await client.trialLinks.retrieveCohortArps('provident', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'velit', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 47f5a675..d0aaecd6 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: 'jsbiwmhmhmgpdsdgzvjektvlb' }, + * { name: 'gemvvbac' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..a1e32c3e 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('deserunt'); 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 f6071f8b..0bf9eb85 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: 'consequatur', - auth_type: 'raw_data', - cookies: 'et', + auth_id: 'eius', + auth_type: 'email_password', + cookies: 'quidem', customProxy: { host: 'proxy.example.com', - password: 't#E3fDccC)0@{mu]Z8', + password: '"|iUPDaEy>', port: 8080, - username: 'explicabo', + username: 'perspiciatis', }, - email: 'stanton.neha@example.com', + email: 'vhoppe@example.com', force_connect: false, - name: 'est', - password: '[:H>2"BVnU=7(SjQWeX', - proxyCountry: 'us', - user_agent: 'repellendus', - xbc: 'ducimus', + name: 'aspernatur', + password: 'D?Su)H[yB~', + proxyCountry: 'uk', + user_agent: 'quo', + xbc: 'est', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 9b363f6f..77125615 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('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('cupiditate', { + 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 a3ded46d..7b876bd9 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('voluptatum', { + 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('voluptatum', { + 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('voluptatum', { + 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('voluptatum', { + 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 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 5ab44413..3ae8a5fe 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('in', { + 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('in', { + 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('in', { 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('in', { + const response = await client.posts.comments.list('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 91863818..7052c760 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: ['weeqekzah'] }, + filter: { tags: ['srlztyyeqdwhsykdpit'] }, 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('eos'); + const responsePromise = client.smartLinks.listClicks('nulla'); 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( - 'eos', + 'nulla', { 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('dolorem'); + const responsePromise = client.smartLinks.listConversions('unde'); 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( - 'dolorem', + 'unde', { 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('nihil'); + const responsePromise = client.smartLinks.listFans('praesentium'); 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( - 'nihil', + 'praesentium', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('saepe'); + const responsePromise = client.smartLinks.listSpenders('minima'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'saepe', + 'minima', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('unde'); + const responsePromise = client.smartLinks.retrieveCohortArps('nihil'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'unde', + 'nihil', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('repudiandae'); + const responsePromise = client.smartLinks.retrieveStats('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'repudiandae', + 'culpa', { 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 379079df..9e25a3f0 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: 'jfywmhayxiqql', tags: ['ufhotbctjnyksnrkofvlsscwq'] }, + filter: { search: 'qkgqdysjsopcjyedimbpp', tags: ['bcvrjspj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ghqfrboqcacempsku', tags: ['xofjzcayjwhuzawc'] }, + filter: { search: 'idozrktnrhiu', tags: ['pbxvwvmulwaa'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'wmbnwxkzaekf', - tags: ['hmnggdozmphwm'], + search: 'j', + tags: ['chjaswnpbbiix'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'fgwveocb', - tags: ['nqhllxmvpk'], + include_smart_links: false, + search: 'nbwsioouzswvxm', + tags: ['yuzenoilusa'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f456e885..402e57ff 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('sequi', { + const responsePromise = client.stories.highlights.addStory('cumque', { 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('sequi', { + const response = await client.stories.highlights.addStory('cumque', { 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('sequi', { + const responsePromise = client.stories.highlights.removeStory('cumque', { 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('sequi', { + const response = await client.stories.highlights.removeStory('cumque', { 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 acf63c22..ad330479 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('consequatur', { 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('consequatur', { 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('consequatur', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('id', { 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('id', { + 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('amet', { 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; @@ -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('amet', { + 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 a7436535..339bb312 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('labore', { 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('labore', { 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('labore', { 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('labore', { 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('voluptas', { + const responsePromise = client.trialLinks.listSubscribers('omnis', { 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('voluptas', { + const response = await client.trialLinks.listSubscribers('omnis', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('provident', { + 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('ipsa', { + const response = await client.trialLinks.retrieveCohortArps('provident', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('tenetur', { 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('velit', { + const response = await client.trialLinks.retrieveStats('tenetur', { 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 3afc3786..1a666f12 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: 'jsbiwmhmhmgpdsdgzvjektvlb', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gemvvbac' }); 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: 'jsbiwmhmhmgpdsdgzvjektvlb', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gemvvbac' }); }); // Mock server tests are disabled From de18ad7686fff09d042877f87f0b6916ed9f850d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 22:12:33 +0000 Subject: [PATCH 147/309] 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 | 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 | 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 +-- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 103 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index dff0bf46..14115211 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9f339e5c45287fb09efe3d8a5f09083c691304506fc18333e3edb7937303de7e.yml -openapi_spec_hash: 85b99a47df41db8e0b8309066f06a919 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-041a63ef5b46c0ac8494c91741d40d223505b8508dd1ddfad5bb094f37ec5d3c.yml +openapi_spec_hash: 119decd3feb8e728852f058160f93787 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1114e44c..26d0afeb 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( - * 'deserunt', - * ); + * 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 81f3d2e2..2720afd0 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( + * 'minus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..0338921d 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', + * '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( - * 'aut', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dee0ca84..a0f5e087 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( - * 'excepturi', + * 'doloremque', * { * 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( - * 'excepturi', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 5035b3ae..fd1c6add 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', + * 'corrupti', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'unde', + * 'distinctio', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'praesentium', - * ); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'minima', + * 'cumque', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nihil'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'culpa', + * 'eos', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2df720e1..509e748d 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( - * 'cumque', + * 'magnam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('cumque', { + * await client.stories.highlights.removeStory('magnam', { * 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 9e381c02..af224a6f 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( - * 'consequatur', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consequatur', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('laudantium', { + * await client.trackingLinks.getCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'optio', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b4993f2d..1667c88e 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( - * 'labore', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('labore', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'doloremque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'omnis', + * 'numquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('provident', { + * await client.trialLinks.retrieveCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'tenetur', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d0aaecd6..a6f835c1 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: 'gemvvbac' }, + * { name: 'b' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1e32c3e..328f1caf 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('deserunt'); + 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 0bf9eb85..64084c76 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: 'eius', + auth_id: 'est', auth_type: 'email_password', - cookies: 'quidem', + cookies: 'atque', customProxy: { host: 'proxy.example.com', - password: '"|iUPDaEy>', + password: 'un+UA:', port: 8080, - username: 'perspiciatis', + username: 'est', }, - email: 'vhoppe@example.com', + email: 'rolfson.brandy@example.org', force_connect: false, - name: 'aspernatur', - password: 'D?Su)H[yB~', - proxyCountry: 'uk', - user_agent: 'quo', - xbc: 'est', + name: 'hic', + password: "G'9RK'zGfah+C5BZ+", + proxyCountry: 'us', + user_agent: 'nisi', + xbc: 'assumenda', }, { 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 77125615..8e32e9a5 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('minus', { 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('minus', { 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 7b876bd9..c9be7945 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('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('aut', { + 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('aut', { + 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('aut', { + 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 69b39e44..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3ae8a5fe..f9ab1f14 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('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('excepturi', { + 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('excepturi', { 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('excepturi', { + 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 9bf5999b..ad49ad2e 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 fd74b68f..e2edc676 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 7052c760..66242f92 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: ['srlztyyeqdwhsykdpit'] }, + filter: { tags: ['sisjksqcwa'] }, 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('nulla'); + const responsePromise = client.smartLinks.listClicks('corrupti'); 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( - 'nulla', + 'corrupti', { 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('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( - 'unde', + '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('praesentium'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'praesentium', + 'ut', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('minima'); + const responsePromise = client.smartLinks.listSpenders('cumque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'minima', + 'cumque', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nihil'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'nihil', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('culpa'); + const responsePromise = client.smartLinks.retrieveStats('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'culpa', + 'eos', { 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 9e25a3f0..1ae9acc9 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: 'qkgqdysjsopcjyedimbpp', tags: ['bcvrjspj'] }, + filter: { search: 'ztccciivneescvijdnbsbgzbq', tags: ['fqpeosvwnystl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'idozrktnrhiu', tags: ['pbxvwvmulwaa'] }, + filter: { search: 'hlgvuxdeannkusjxy', tags: ['qozvinjbqx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'j', - tags: ['chjaswnpbbiix'], + search: 'sqgcbnesldqpyxijy', + tags: ['g'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nbwsioouzswvxm', - tags: ['yuzenoilusa'], + include_smart_links: true, + search: 'zvngkibqzgqbbderuh', + tags: ['jepboapehjhikbhfsnz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 402e57ff..16eb0333 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('cumque', { + const responsePromise = client.stories.highlights.addStory('magnam', { 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('cumque', { + const response = await client.stories.highlights.addStory('magnam', { 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('cumque', { + const responsePromise = client.stories.highlights.removeStory('magnam', { 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('cumque', { + const response = await client.stories.highlights.removeStory('magnam', { 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 ad330479..10a8ff5e 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('rem', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('rem', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('rem', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('laudantium', { + const responsePromise = client.trackingLinks.getCohortArps('dolores', { 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('laudantium', { + const response = await client.trackingLinks.getCohortArps('dolores', { 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('optio', { 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; @@ -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('optio', { + 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 339bb312..dc9b1332 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('doloremque', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('doloremque', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('doloremque', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('doloremque', { 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('omnis', { + const responsePromise = client.trialLinks.listSubscribers('numquam', { 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('omnis', { + const response = await client.trialLinks.listSubscribers('numquam', { 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('provident', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('enim', { 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('provident', { + const response = await client.trialLinks.retrieveCohortArps('enim', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('unde', { 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('tenetur', { + const response = await client.trialLinks.retrieveStats('unde', { 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 1a666f12..b452a52f 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: 'gemvvbac' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'b' }); 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: 'gemvvbac' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'b' }); }); // Mock server tests are disabled From b6c0885f19707df9d98c54b6f373e6df0fe4a798 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 00:12:32 +0000 Subject: [PATCH 148/309] 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 +++++++++---------- .../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 | 22 ++++++++--------- 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, 104 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 14115211..11435a3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-041a63ef5b46c0ac8494c91741d40d223505b8508dd1ddfad5bb094f37ec5d3c.yml -openapi_spec_hash: 119decd3feb8e728852f058160f93787 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15d7c7ab1c5ce08eb34dbe506907bcd534e15b06a7a9aaf8d8ab99827ab94525.yml +openapi_spec_hash: 1fce83e4a031369817f3f2aa414d6c36 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 26d0afeb..06d37c8b 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('quo'); + * 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 2720afd0..88c84c46 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( - * 'minus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ab', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0338921d..b4f8cba9 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', + * 'vel', * { 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', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a0f5e087..412a840a 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', + * 'voluptas', * { * 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 a84ff073..c9a094cf 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 fd1c6add..55dada1b 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( - * 'corrupti', - * ); + * const response = await client.smartLinks.listClicks('quos'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'distinctio', + * 'iure', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans( + * 'accusantium', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'cumque', + * 'magnam', * ); * ``` */ @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eos', + * 'dicta', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 509e748d..27cd4271 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( - * 'magnam', + * '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('magnam', { + * 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 af224a6f..dcd9f672 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( - * 'rem', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rem', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * 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', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 1667c88e..35c2bb70 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( - * 'doloremque', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'doloremque', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'numquam', + * 'minus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('enim', { + * await client.trialLinks.retrieveCohortArps('quisquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'unde', + * 'ab', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a6f835c1..0f093fc9 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: 'b' }, + * { name: 'ytif' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 328f1caf..44b93157 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('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 64084c76..532a3d7d 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: 'email_password', - cookies: 'atque', + auth_id: 'impedit', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'un+UA:', + password: "'d*fla5W[?8ir6W", port: 8080, - username: 'est', + username: 'dolor', }, - email: 'rolfson.brandy@example.org', - force_connect: false, - name: 'hic', - password: "G'9RK'zGfah+C5BZ+", - proxyCountry: 'us', - user_agent: 'nisi', - xbc: 'assumenda', + email: 'yhowell@example.org', + force_connect: true, + name: 'fuga', + password: 'bw+4b0%0Z)', + proxyCountry: 'uk', + user_agent: 'nobis', + xbc: 'alias', }, { 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 8e32e9a5..54e6569b 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('minus', { + const responsePromise = client.engagement.messages.getMessageBuyers('ab', { 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('minus', { + const response = await client.engagement.messages.getMessageBuyers('ab', { 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 c9be7945..b27b7737 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('vel', { 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('vel', { 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..14dcb2e9 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 f9ab1f14..18452dab 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('voluptas', { 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('voluptas', { 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('voluptas', { 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('voluptas', { 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 e2edc676..4ec8acc7 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 02883e18..b643af69 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 6b1dc2fd..d13ad1ce 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 66242f92..724d2f06 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: ['sisjksqcwa'] }, + filter: { tags: ['pvedqjnjwvadspluvwe'] }, 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('corrupti'); + const responsePromise = client.smartLinks.listClicks('quos'); 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( - 'corrupti', + 'quos', { 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('iure'); 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', + 'iure', { 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('ut'); + const responsePromise = client.smartLinks.listFans('accusantium'); 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( - 'ut', + 'accusantium', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('cumque'); + const responsePromise = client.smartLinks.listSpenders('magnam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'cumque', + 'magnam', { limit: 50, minSpend: 1, @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eos'); + const responsePromise = client.smartLinks.retrieveStats('dicta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'eos', + 'dicta', { 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 1ae9acc9..d1cce4bb 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: 'ztccciivneescvijdnbsbgzbq', tags: ['fqpeosvwnystl'] }, + filter: { search: 'ujhdaberbjtbad', tags: ['jyihnvvhnyjdptmodlob'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hlgvuxdeannkusjxy', tags: ['qozvinjbqx'] }, + filter: { search: 'tcerwlcbmoacyryntcyvx', tags: ['ztyxjnarmeyg'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'sqgcbnesldqpyxijy', - tags: ['g'], + search: 'ekcuctawg', + tags: ['mgo'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zvngkibqzgqbbderuh', - tags: ['jepboapehjhikbhfsnz'], + include_smart_links: false, + search: 'iu', + tags: ['omxhfacvodq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 16eb0333..875fdcfa 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('magnam', { + 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('magnam', { + 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('magnam', { + 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('magnam', { + 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 10a8ff5e..85c9c2c9 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('rem', { 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('rem', { 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('rem', { 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,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('rem', { 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('dolores', { - 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; @@ -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('qui', { 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quis', { 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('similique', { + const response = await client.trackingLinks.getStats('quis', { 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 dc9b1332..e663b020 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('officia', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('officia', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('officia', { 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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('officia', { 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('numquam', { + const responsePromise = client.trialLinks.listSubscribers('minus', { 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('numquam', { + const response = await client.trialLinks.listSubscribers('minus', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('quisquam', { + 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('enim', { + const response = await client.trialLinks.retrieveCohortArps('quisquam', { 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('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ab', { 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('unde', { + const response = await client.trialLinks.retrieveStats('ab', { 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 b452a52f..d3e00219 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: 'b' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ytif' }); 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: 'b' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ytif' }); }); // Mock server tests are disabled From 838cd7643d9b8deacf7791e53832be01e406b8b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 01:12:33 +0000 Subject: [PATCH 149/309] 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 | 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 | 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 +-- 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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 108 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 11435a3e..9a8535de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15d7c7ab1c5ce08eb34dbe506907bcd534e15b06a7a9aaf8d8ab99827ab94525.yml -openapi_spec_hash: 1fce83e4a031369817f3f2aa414d6c36 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c6528070f047e77438f480687ca6d40a8be89e0d8a0814a3bf1bf82cbf872387.yml +openapi_spec_hash: 8d6cdd5a4c87d87e1b2b47c2eabb808e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8b..ec4d431d 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('et'); + * const response = await client.accounts.disconnect( + * 'tempore', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 88c84c46..0f8f628e 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('ab', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b4f8cba9..092a7a84 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( - * 'vel', + * 'architecto', * { 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( - * 'vel', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 412a840a..6a3f46e0 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( - * 'voluptas', + * 'molestiae', * { * 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( - * 'voluptas', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 c9a094cf..41feb4c0 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 55dada1b..f8fea06c 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('quos'); + * const response = await client.smartLinks.listClicks( + * 'eveniet', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'iure', + * 'ullam', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'accusantium', - * ); + * const response = await client.smartLinks.listFans('quod'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'magnam', + * 'eveniet', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('ullam'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dicta', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..e06eeaf7 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', + * 'hic', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { + * await client.stories.highlights.removeStory('hic', { * 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 dcd9f672..2942f51d 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', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('sequi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quis', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 35c2bb70..54186667 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( - * 'officia', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'officia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('dolor', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'minus', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quisquam', { + * await client.trialLinks.retrieveCohortArps('vero', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ab', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0f093fc9..291346ff 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: 'ytif' }, + * { name: 'awahxqdafgfuyv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b93157..e463f08d 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('tempore'); 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 532a3d7d..979e19be 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: 'raw_data', - cookies: 'et', + auth_id: 'earum', + auth_type: 'mobile_app', + cookies: 'harum', customProxy: { host: 'proxy.example.com', - password: "'d*fla5W[?8ir6W", + password: "<||)tbD'8YtE", port: 8080, - username: 'dolor', + username: 'est', }, - email: 'yhowell@example.org', + email: 'ekoss@example.net', force_connect: true, - name: 'fuga', - password: 'bw+4b0%0Z)', + name: 'ut', + password: 'G<\\5)R3h/a#', proxyCountry: 'uk', - user_agent: 'nobis', - xbc: 'alias', + user_agent: 'sint', + xbc: 'earum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 54e6569b..f722464e 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('ab', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptates', { 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('ab', { + const response = await client.engagement.messages.getMessageBuyers('voluptates', { 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 b27b7737..af945cd1 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('vel', { + const responsePromise = client.media.vault.lists.media.add('architecto', { 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('vel', { + const response = await client.media.vault.lists.media.add('architecto', { 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('vel', { + const responsePromise = client.media.vault.lists.media.remove('architecto', { 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('vel', { + const response = await client.media.vault.lists.media.remove('architecto', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 18452dab..6519eb07 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('voluptas', { + 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('voluptas', { + 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('voluptas', { 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('voluptas', { + 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 4ec8acc7..fd74b68f 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 b643af69..c1510622 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 724d2f06..7b6fb860 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: ['pvedqjnjwvadspluvwe'] }, + filter: { tags: ['fpgftegfxedbhttcjkpvnbmd'] }, 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('quos'); + const responsePromise = client.smartLinks.listClicks('eveniet'); 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( - 'quos', + 'eveniet', { 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('iure'); + const responsePromise = client.smartLinks.listConversions('ullam'); 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( - 'iure', + 'ullam', { 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('accusantium'); + const responsePromise = client.smartLinks.listFans('quod'); 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( - 'accusantium', + 'quod', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('magnam'); + const responsePromise = client.smartLinks.listSpenders('eveniet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'magnam', + 'eveniet', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'ullam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dicta'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'dicta', + '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 d1cce4bb..84c12d7f 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: 'ujhdaberbjtbad', tags: ['jyihnvvhnyjdptmodlob'] }, + filter: { search: 'utmgyfyqxrgzykocd', tags: ['ebx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tcerwlcbmoacyryntcyvx', tags: ['ztyxjnarmeyg'] }, + filter: { search: 'rzfuizfjtnfke', tags: ['udvgmzpulz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ekcuctawg', - tags: ['mgo'], + search: 'fpwnvoccbenwbfnyelzxf', + tags: ['gzdticwmnyu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'iu', - tags: ['omxhfacvodq'], + include_smart_links: true, + search: 'nk', + tags: ['jrqobeujt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..c840ad3d 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('hic', { 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('hic', { 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('hic', { 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('hic', { 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 85c9c2c9..597b0d29 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('aperiam', { 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('aperiam', { 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('aperiam', { 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('aperiam', { 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('sequi', { 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('sequi', { 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('quis', { 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('quis', { + 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 e663b020..13505156 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('dolor', { 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('dolor', { 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('dolor', { 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('dolor', { 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('minus', { + 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('minus', { + const response = await client.trialLinks.listSubscribers('ut', { 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('quisquam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('vero', { 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('quisquam', { + const response = await client.trialLinks.retrieveCohortArps('vero', { 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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('occaecati', { 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('ab', { + const response = await client.trialLinks.retrieveStats('occaecati', { 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 d3e00219..a5b31d9d 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: 'ytif' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'awahxqdafgfuyv' }); 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: 'ytif' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'awahxqdafgfuyv' }); }); // Mock server tests are disabled From fbf7e77f0d648207ee5fc2d9bb71aee2b62a02e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 12:12:36 +0000 Subject: [PATCH 150/309] 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 | 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/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 | 26 +++++++++---------- 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 +-- 25 files changed, 105 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9a8535de..68287c7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c6528070f047e77438f480687ca6d40a8be89e0d8a0814a3bf1bf82cbf872387.yml -openapi_spec_hash: 8d6cdd5a4c87d87e1b2b47c2eabb808e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-01a36afdb584925f04ebb7eacd9df231623257a73abded85f33015f1cf96b9ed.yml +openapi_spec_hash: 0456bdf0e807bfc55a063531860baabe config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ec4d431d..245fc5fb 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( - * 'tempore', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0f8f628e..d727dd1f 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( - * 'voluptates', - * { 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 092a7a84..ae616ee2 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( - * 'architecto', + * '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( - * 'architecto', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6a3f46e0..b164eba6 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', + * 'maiores', * { * 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', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..2b04cbb2 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 f8fea06c..5cf393b3 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( - * 'eveniet', + * 'alias', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ullam', + * 'alias', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quod'); + * const response = await client.smartLinks.listFans('odit'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eveniet', + * 'modi', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ullam'); + * await client.smartLinks.retrieveCohortArps('sed'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'eaque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e06eeaf7..88991aed 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( - * 'hic', + * 'assumenda', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('hic', { + * await client.stories.highlights.removeStory('assumenda', { * 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 2942f51d..9c04f1fd 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( - * 'aperiam', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aperiam', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sequi', { + * 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( - * 'amet', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 54186667..f6f510ae 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( - * 'dolor', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolor', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'impedit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'doloribus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vero', { + * await client.trialLinks.retrieveCohortArps('incidunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'occaecati', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 291346ff..22944ccf 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: 'awahxqdafgfuyv' }, + * { name: 'zoq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e463f08d..13e5c0c0 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('tempore'); + 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 979e19be..6ab09d8c 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_type: 'mobile_app', - cookies: 'harum', + auth_id: 'delectus', + auth_type: 'raw_data', + cookies: 'similique', customProxy: { host: 'proxy.example.com', - password: "<||)tbD'8YtE", + password: 'xhx&y[xwsDR)1qa$".', port: 8080, - username: 'est', + username: 'qui', }, - email: 'ekoss@example.net', + email: 'chadd.reichert@example.net', force_connect: true, - name: 'ut', - password: 'G<\\5)R3h/a#', - proxyCountry: 'uk', - user_agent: 'sint', - xbc: 'earum', + name: 'nam', + password: 'SE}x^\\q0', + proxyCountry: 'us', + user_agent: 'eius', + xbc: 'temporibus', }, { 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 f722464e..24eafa3e 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('voluptates', { + 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('voluptates', { + 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 af945cd1..afbf4c8c 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('architecto', { + 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('architecto', { + 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('architecto', { + 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('architecto', { + 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 42643a65..70f616cd 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 6519eb07..bdd6239d 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('maiores', { 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('maiores', { 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('maiores', { 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('maiores', { 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 c1510622..96d399de 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 d13ad1ce..6b1dc2fd 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 7b6fb860..b9e842ad 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: ['fpgftegfxedbhttcjkpvnbmd'] }, + filter: { tags: ['wvmxyfugjklzrvasx'] }, 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('eveniet'); + const responsePromise = client.smartLinks.listClicks('alias'); 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( - 'eveniet', + 'alias', { 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('ullam'); + const responsePromise = client.smartLinks.listConversions('alias'); 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( - 'ullam', + 'alias', { 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('quod'); + const responsePromise = client.smartLinks.listFans('odit'); 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( - 'quod', + 'odit', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eveniet'); + const responsePromise = client.smartLinks.listSpenders('modi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'eveniet', + 'modi', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ullam'); + const responsePromise = client.smartLinks.retrieveCohortArps('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'ullam', + 'sed', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('eaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 84c12d7f..4313d753 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: 'utmgyfyqxrgzykocd', tags: ['ebx'] }, + filter: { search: 'znxqrop', tags: ['tncajnpbwqxwhtdoz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rzfuizfjtnfke', tags: ['udvgmzpulz'] }, + filter: { search: 'xkafnneagzcjoyr', tags: ['nwcdjcdakzqickhdtzght'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'fpwnvoccbenwbfnyelzxf', - tags: ['gzdticwmnyu'], + include_smart_links: false, + search: 'vr', + tags: ['ljifgmogxbhrtdgwalz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nk', - tags: ['jrqobeujt'], + include_smart_links: false, + search: 'reyw', + tags: ['qh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c840ad3d..671f3446 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('hic', { + const responsePromise = client.stories.highlights.addStory('assumenda', { 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('hic', { + const response = await client.stories.highlights.addStory('assumenda', { 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('hic', { + const responsePromise = client.stories.highlights.removeStory('assumenda', { 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('hic', { + const response = await client.stories.highlights.removeStory('assumenda', { 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 597b0d29..163de9de 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('aperiam', { 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('aperiam', { 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('aperiam', { 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('aperiam', { 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('sequi', { 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('sequi', { + 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('amet', { 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 +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('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 13505156..84c655c1 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('impedit', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('impedit', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('impedit', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('impedit', { 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('doloribus', { 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('doloribus', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { + 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('vero', { + const response = await client.trialLinks.retrieveCohortArps('incidunt', { 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('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nam', { 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('occaecati', { + const response = await client.trialLinks.retrieveStats('nam', { 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 a5b31d9d..b4d5c629 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: 'awahxqdafgfuyv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zoq' }); 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: 'awahxqdafgfuyv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zoq' }); }); // Mock server tests are disabled From 683e0b105d4102f1bd666ae01daed62ac7c8790b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 14:12:35 +0000 Subject: [PATCH 151/309] 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 | 13 ++++++---- .../tracking-links/tracking-links.ts | 6 ++--- 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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 | 14 +++++----- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 27 files changed, 116 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 68287c7e..38fafd7d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-01a36afdb584925f04ebb7eacd9df231623257a73abded85f33015f1cf96b9ed.yml -openapi_spec_hash: 0456bdf0e807bfc55a063531860baabe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e2dcdf1d37470083699388e29cc1e4e3431d0f7ade8f4b5a3f533582d6f1962f.yml +openapi_spec_hash: 3120a74696192c9caba063ac8819cd9a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..9d0ee721 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('sed'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d727dd1f..2d60df23 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('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'architecto', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ae616ee2..e7233b51 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', + * 'nesciunt', * { 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', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b164eba6..7d1b2d65 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( - * 'maiores', + * '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( - * 'maiores', - * { 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 e20f70d1..09d6973d 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 2b04cbb2..a84ff073 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 5cf393b3..23aff5ae 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( - * 'alias', - * ); + * const response = await client.smartLinks.listClicks('non'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'alias', + * 'voluptas', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('odit'); + * const response = await client.smartLinks.listFans('fugit'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'modi', + * 'velit', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sed'); + * await client.smartLinks.retrieveCohortArps('praesentium'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eaque', + * 'ea', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 88991aed..b4c6a0a0 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( - * 'assumenda', + * '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('assumenda', { - * 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 9c04f1fd..14c69cb3 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', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'non', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'qui', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f6f510ae..710d00cb 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( - * 'impedit', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'impedit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quasi', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'doloribus', + * 'quo', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('incidunt', { + * 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( - * 'nam', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 22944ccf..61581f68 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: 'zoq' }, + * { name: 'gxqtxbdqztcdhrnkjlvlbe' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..37a21a65 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('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 6ab09d8c..9939907e 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: 'delectus', - auth_type: 'raw_data', - cookies: 'similique', + auth_id: 'non', + auth_type: 'email_password', + cookies: 'atque', customProxy: { host: 'proxy.example.com', - password: 'xhx&y[xwsDR)1qa$".', + password: 'M4j"6~+nkgk(N', port: 8080, - username: 'qui', + username: 'quod', }, - email: 'chadd.reichert@example.net', + email: 'jailyn.kirlin@example.net', force_connect: true, - name: 'nam', - password: 'SE}x^\\q0', + name: 'ratione', + password: 'a}y2Uy$IPbXj', proxyCountry: 'us', - user_agent: 'eius', - xbc: 'temporibus', + user_agent: 'corporis', + xbc: 'magni', }, { 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 24eafa3e..96627958 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('architecto', { 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('architecto', { 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 afbf4c8c..5345e43b 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..69b39e44 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 bdd6239d..03ab8700 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('maiores', { + 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('maiores', { + 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('maiores', { 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('maiores', { + 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 ad49ad2e..9bf5999b 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 fd74b68f..e2edc676 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 96d399de..02883e18 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 b9e842ad..90efcece 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: ['wvmxyfugjklzrvasx'] }, + filter: { tags: ['y'] }, 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('alias'); + const responsePromise = client.smartLinks.listClicks('non'); 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( - 'alias', + 'non', { 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('alias'); + const responsePromise = client.smartLinks.listConversions('voluptas'); 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( - 'alias', + 'voluptas', { 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('odit'); + const responsePromise = client.smartLinks.listFans('fugit'); 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( - 'odit', + 'fugit', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('modi'); + const responsePromise = client.smartLinks.listSpenders('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'modi', + 'velit', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sed'); + const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'praesentium', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eaque'); + const responsePromise = client.smartLinks.retrieveStats('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 4313d753..68d2a20c 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: 'znxqrop', tags: ['tncajnpbwqxwhtdoz'] }, + filter: { search: 'yvgquyehlhyjhopipqsdbpiif', tags: ['lnlsntlsdkelxdvyjddlpflw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xkafnneagzcjoyr', tags: ['nwcdjcdakzqickhdtzght'] }, + filter: { search: 'wdo', tags: ['tfbqnrlploohtknnhnrdjz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vr', - tags: ['ljifgmogxbhrtdgwalz'], + include_smart_links: true, + search: 'lfjdxzwhpb', + tags: ['qgj'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'reyw', - tags: ['qh'], + include_smart_links: true, + search: 'acftuxyvylq', + tags: ['umqj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 671f3446..c2c26e08 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('assumenda', { + 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('assumenda', { + 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('assumenda', { + 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('assumenda', { + 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 163de9de..d210bc8c 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('non', { 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('non', { 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('non', { 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,7 +94,7 @@ 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('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -119,7 +121,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('maiores', { 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('qui', { + 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 84c655c1..9f2fb446 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quasi', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quasi', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quasi', { 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('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quasi', { 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('doloribus', { + const responsePromise = client.trialLinks.listSubscribers('quo', { 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('doloribus', { + const response = await client.trialLinks.listSubscribers('quo', { 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('incidunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('laboriosam', { 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('incidunt', { + const response = await client.trialLinks.retrieveCohortArps('laboriosam', { 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('velit', { 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('nam', { + const response = await client.trialLinks.retrieveStats('velit', { 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 b4d5c629..ca6ac07f 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: 'zoq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'gxqtxbdqztcdhrnkjlvlbe', + }); 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: 'zoq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'gxqtxbdqztcdhrnkjlvlbe', + }); }); // Mock server tests are disabled From ce1a135817d04e5c3117460575c6020b04abffb1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 18:12:32 +0000 Subject: [PATCH 152/309] 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 | 16 +++++++----- 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 +++--- .../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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 28 files changed, 112 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index 38fafd7d..55731ce1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e2dcdf1d37470083699388e29cc1e4e3431d0f7ade8f4b5a3f533582d6f1962f.yml -openapi_spec_hash: 3120a74696192c9caba063ac8819cd9a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26ebb935287d50cd67c7c1a83955cccb0e814c5e47d83c48dec5db33ae44ace5.yml +openapi_spec_hash: 389a2c1bc272a11e72aec8f0f64560ec config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d0ee721..3c5ed4a9 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('quia'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2d60df23..7e83f2ad 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( - * 'architecto', - * { 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 e7233b51..27d723d8 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( - * 'nesciunt', + * 'saepe', * { 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( - * 'nesciunt', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d1b2d65..a0fb81c1 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', + * 'asperiores', * { * 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( + * 'asperiores', + * { 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 09d6973d..e20f70d1 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 23aff5ae..be880e28 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('non'); + * const response = await client.smartLinks.listClicks( + * 'aliquam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptas', + * 'sint', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugit'); + * const response = await client.smartLinks.listFans( + * 'mollitia', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'velit', + * 'similique', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('praesentium'); + * await client.smartLinks.retrieveCohortArps('ea'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ea', + * 'non', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index b4c6a0a0..adfdc4b5 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', + * 'sapiente', * { * 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('sapiente', { + * 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 14c69cb3..c9c4bc54 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', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consequuntur', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'maiores', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 710d00cb..cdb31b5a 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( - * 'quasi', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quasi', { + * const trialLink = await client.trialLinks.delete('sequi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quo', + * 'voluptatem', * { * 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('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'velit', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 61581f68..b051f92a 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: 'gxqtxbdqztcdhrnkjlvlbe' }, + * { name: 'ctwlutx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 37a21a65..3c3098d8 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('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 9939907e..72d3875c 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: 'atque', + auth_id: 'sunt', + auth_type: 'raw_data', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: 'M4j"6~+nkgk(N', + password: 'CqK!BL~ScRR0["O', port: 8080, - username: 'quod', + username: 'aut', }, - email: 'jailyn.kirlin@example.net', - force_connect: true, - name: 'ratione', - password: 'a}y2Uy$IPbXj', + email: 'sokuneva@example.org', + force_connect: false, + name: 'est', + password: "$iCJe'}tG%P[I.P@/", proxyCountry: 'us', - user_agent: 'corporis', - xbc: 'magni', + user_agent: 'facere', + xbc: 'laudantium', }, { 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 96627958..32dab22b 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('architecto', { + 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('architecto', { + 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 5345e43b..434a10a8 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('nesciunt', { + const responsePromise = client.media.vault.lists.media.add('saepe', { 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('nesciunt', { + const response = await client.media.vault.lists.media.add('saepe', { 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('nesciunt', { + const responsePromise = client.media.vault.lists.media.remove('saepe', { 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('nesciunt', { + const response = await client.media.vault.lists.media.remove('saepe', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 03ab8700..4664aa80 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('asperiores', { 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('asperiores', { 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('asperiores', { 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('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..fd74b68f 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 90efcece..0499532b 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: ['y'] }, + filter: { tags: ['whceimlthrbxnt'] }, 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('non'); + 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( - 'non', + '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('voluptas'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'voluptas', + 'sint', { 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('fugit'); + const responsePromise = client.smartLinks.listFans('mollitia'); 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( - 'fugit', + 'mollitia', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('velit'); + const responsePromise = client.smartLinks.listSpenders('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'similique', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); + const responsePromise = client.smartLinks.retrieveCohortArps('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'ea', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ea'); + const responsePromise = client.smartLinks.retrieveStats('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 68d2a20c..451918d1 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: 'yvgquyehlhyjhopipqsdbpiif', tags: ['lnlsntlsdkelxdvyjddlpflw'] }, + filter: { search: 'ixyqeqzmrybgwlalwadxwjt', tags: ['dttonygkkchha'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wdo', tags: ['tfbqnrlploohtknnhnrdjz'] }, + filter: { search: 'kjqs', tags: ['vxzalgqvfpypvp'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lfjdxzwhpb', - tags: ['qgj'], + search: 'hvcrfpeyggbrptsen', + tags: ['qhgkgmuxydamlphnvqihrkzh'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'acftuxyvylq', - tags: ['umqj'], + search: 'qpbyjhlj', + tags: ['yy'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c2c26e08..d94ddb86 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('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('repudiandae', { + 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('repudiandae', { + 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('repudiandae', { + 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 d210bc8c..1baf436b 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('quo', { 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('quo', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -94,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('consequuntur', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('quis', { 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('qui', { + const response = await client.trackingLinks.getCohortArps('quis', { 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('maiores', { 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; @@ -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('maiores', { + 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 9f2fb446..591e6bf8 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sequi', { 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sequi', { 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sequi', { 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('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sequi', { 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('quo', { + const responsePromise = client.trialLinks.listSubscribers('voluptatem', { 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('quo', { + const response = await client.trialLinks.listSubscribers('voluptatem', { 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('laboriosam', { - 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('laboriosam', { + 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('velit', { 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; @@ -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('velit', { + 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 ca6ac07f..33757490 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: 'gxqtxbdqztcdhrnkjlvlbe', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ctwlutx' }); 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: 'gxqtxbdqztcdhrnkjlvlbe', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ctwlutx' }); }); // Mock server tests are disabled From f69e7eb681f044222c5782ef01a64602fdf6c6ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 23:12:31 +0000 Subject: [PATCH 153/309] 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 | 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 +++--- .../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 | 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 +-- 27 files changed, 108 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 55731ce1..6efd71c3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26ebb935287d50cd67c7c1a83955cccb0e814c5e47d83c48dec5db33ae44ace5.yml -openapi_spec_hash: 389a2c1bc272a11e72aec8f0f64560ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e12f61ff0acdb5832afdd253f567601cbbe31db92e34533118b7a9eccb37f51f.yml +openapi_spec_hash: 8c69bc362f13e5cf4d69d19d88ac5ade config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a9..6036945c 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('quia'); + * const response = await client.accounts.disconnect('soluta'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2ad..77da7d4d 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( + * 'repudiandae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 27d723d8..d8733a04 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( - * 'saepe', + * 'dolor', * { 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( - * 'saepe', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a0fb81c1..33a94ac9 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( - * 'asperiores', + * '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( - * 'asperiores', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 41feb4c0..c9a094cf 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 be880e28..47b8ea3d 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', + * 'corporis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sint', + * 'enim', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'mollitia', - * ); + * const response = await client.smartLinks.listFans('non'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'similique', + * 'possimus', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ea'); + * await client.smartLinks.retrieveCohortArps('dolor'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'non', + * 'qui', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index adfdc4b5..651e8fba 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', + * '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('sapiente', { + * 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 c9c4bc54..6f242672 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', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quo', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quis', { + * await client.trackingLinks.getCohortArps('veritatis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'cupiditate', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cdb31b5a..06962f05 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( - * 'sequi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sequi', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatem', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'facere', + * 'deserunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b051f92a..f842f05b 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: 'ctwlutx' }, + * { name: 'rdr' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d8..caffca09 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('soluta'); 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 72d3875c..fabf80d3 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: 'sunt', + auth_id: 'perspiciatis', auth_type: 'raw_data', - cookies: 'ut', + cookies: 'velit', customProxy: { host: 'proxy.example.com', - password: 'CqK!BL~ScRR0["O', + password: '98#3wqHt6KL]fL', port: 8080, - username: 'aut', + username: 'optio', }, - email: 'sokuneva@example.org', - force_connect: false, - name: 'est', - password: "$iCJe'}tG%P[I.P@/", - proxyCountry: 'us', - user_agent: 'facere', - xbc: 'laudantium', + email: 'lenna.hansen@example.org', + force_connect: true, + name: 'perferendis', + password: 'P)1([k}vz1', + proxyCountry: 'uk', + user_agent: 'perspiciatis', + xbc: 'cupiditate', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 32dab22b..20f6c9f7 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('repudiandae', { 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('repudiandae', { 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 434a10a8..c230bfa6 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('saepe', { + const responsePromise = client.media.vault.lists.media.add('dolor', { 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('saepe', { + const response = await client.media.vault.lists.media.add('dolor', { 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('saepe', { + const responsePromise = client.media.vault.lists.media.remove('dolor', { 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('saepe', { + const response = await client.media.vault.lists.media.remove('dolor', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4664aa80..b5e2ece3 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('asperiores', { + 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('asperiores', { + 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('asperiores', { 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('asperiores', { + const response = await client.posts.comments.list('aspernatur', { 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 fd74b68f..4ec8acc7 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 0499532b..8b580d4c 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: ['whceimlthrbxnt'] }, + filter: { tags: ['lsnzbjelbupmsfks'] }, 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('corporis'); 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', + 'corporis', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('enim'); 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( - 'sint', + 'enim', { 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('mollitia'); + const responsePromise = client.smartLinks.listFans('non'); 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( - 'mollitia', + 'non', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('similique'); + const responsePromise = client.smartLinks.listSpenders('possimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'similique', + 'possimus', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ea'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'dolor', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('non'); + const responsePromise = client.smartLinks.retrieveStats('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { 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 451918d1..afd6f6b4 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: 'ixyqeqzmrybgwlalwadxwjt', tags: ['dttonygkkchha'] }, + filter: { search: 'yshhzgdatgvrqzcinznv', tags: ['kldpj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kjqs', tags: ['vxzalgqvfpypvp'] }, + filter: { search: 'hfmziziitoctfisvijkg', tags: ['wqbcparaksgjhqbipqqsjzp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'hvcrfpeyggbrptsen', - tags: ['qhgkgmuxydamlphnvqihrkzh'], + include_smart_links: false, + search: 'xxpciukizcjgivajnxnvig', + tags: ['mnxqrhxgdtkcispixwjnut'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qpbyjhlj', - tags: ['yy'], + include_smart_links: false, + search: 'vburqvyibsfdblszb', + tags: ['unxucsqvmjg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d94ddb86..46e853d9 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('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('sapiente', { + 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('sapiente', { + 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('sapiente', { + 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 1baf436b..3055d546 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('debitis', { 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('debitis', { 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('debitis', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('veritatis', { + 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('quis', { + const response = await client.trackingLinks.getCohortArps('veritatis', { 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('cupiditate', { 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('cupiditate', { + 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 591e6bf8..0289675d 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('sequi', { 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('sequi', { 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('sequi', { 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('sequi', { 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('voluptatem', { + 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('voluptatem', { + 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('qui', { 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; @@ -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('qui', { + const response = await client.trialLinks.retrieveCohortArps('id', { 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('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('deserunt', { 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('facere', { + const response = await client.trialLinks.retrieveStats('deserunt', { 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 33757490..bf56b16f 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: 'ctwlutx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rdr' }); 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: 'ctwlutx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rdr' }); }); // Mock server tests are disabled From ca3fa7ddbcd49c8605d373b58ba67b8274e15d12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 00:12:32 +0000 Subject: [PATCH 154/309] 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 | 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 | 26 +++++++++---------- 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 +-- 29 files changed, 107 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6efd71c3..f6dc4e33 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e12f61ff0acdb5832afdd253f567601cbbe31db92e34533118b7a9eccb37f51f.yml -openapi_spec_hash: 8c69bc362f13e5cf4d69d19d88ac5ade +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3d3cb65f2ac8955049fbe2fb7cd3f8049ffe7de8e6fcee723f46e3351e7e0e32.yml +openapi_spec_hash: c3fb2b1a8d027d707132b0ff8a3d55f2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6036945c..43007427 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('soluta'); + * const response = await client.accounts.disconnect('quasi'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 77da7d4d..e7d1ba84 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( - * 'repudiandae', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d8733a04..7ebe5ada 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( - * 'dolor', + * '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( - * 'dolor', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a94ac9..1e5e4ad5 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', + * '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( - * 'aspernatur', + * '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 a9767818..599a9525 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 c9a094cf..41feb4c0 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 47b8ea3d..f60f29ac 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( - * 'corporis', - * ); + * const response = await client.smartLinks.listClicks('quod'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'enim', + * 'magnam', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('non'); + * const response = await client.smartLinks.listFans('illum'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'possimus', + * 'tempore', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolor'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'qui', + * 'sed', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..c536590d 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', + * 'modi', * { * 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('modi', { * 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 6f242672..64524b57 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( - * 'debitis', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'debitis', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('veritatis', { + * await client.trackingLinks.getCohortArps('blanditiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'velit', + * 'iste', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 06962f05..b5a38dd9 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( + * 'natus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('natus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'rerum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'deserunt', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f842f05b..278f2835 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: 'rdr' }, + * { name: 'z' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index caffca09..6650891a 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('soluta'); + const responsePromise = client.accounts.disconnect('quasi'); 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 fabf80d3..ff4c60fb 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: 'perspiciatis', - auth_type: 'raw_data', - cookies: 'velit', + auth_id: 'consectetur', + auth_type: 'email_password', + cookies: 'perspiciatis', customProxy: { host: 'proxy.example.com', - password: '98#3wqHt6KL]fL', + password: 'zcdS1aqCW:[=]fuW`', port: 8080, - username: 'optio', + username: 'voluptate', }, - email: 'lenna.hansen@example.org', - force_connect: true, - name: 'perferendis', - password: 'P)1([k}vz1', - proxyCountry: 'uk', - user_agent: 'perspiciatis', - xbc: 'cupiditate', + email: 'lesly60@example.org', + force_connect: false, + name: 'aliquid', + password: 'X.\\DM=#t"5\'__C)%-=', + proxyCountry: 'us', + user_agent: 'quas', + 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 c17a81d6..229de463 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 20f6c9f7..784164d2 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('repudiandae', { + 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('repudiandae', { + 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 c230bfa6..80e35cb1 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('dolor', { + 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('dolor', { + 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('dolor', { + 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('dolor', { + 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 25333899..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b5e2ece3..8aee5efa 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('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('aspernatur', { + 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('aspernatur', { 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('aspernatur', { + 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 ad49ad2e..9bf5999b 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 4ec8acc7..8e5b0566 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 b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 8b580d4c..ab3c0684 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: ['lsnzbjelbupmsfks'] }, + filter: { tags: ['v'] }, 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('corporis'); + const responsePromise = client.smartLinks.listClicks('quod'); 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( - 'corporis', + 'quod', { 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('enim'); + const responsePromise = client.smartLinks.listConversions('magnam'); 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( - 'enim', + 'magnam', { 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('non'); + 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( - 'non', + 'illum', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('possimus'); + const responsePromise = client.smartLinks.listSpenders('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'possimus', + 'tempore', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolor'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('qui'); + const responsePromise = client.smartLinks.retrieveStats('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'qui', + 'sed', { 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 afd6f6b4..fd46cfc9 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: 'yshhzgdatgvrqzcinznv', tags: ['kldpj'] }, + filter: { search: 'mo', tags: ['emwogffegttyxjatcbvmlammr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hfmziziitoctfisvijkg', tags: ['wqbcparaksgjhqbipqqsjzp'] }, + filter: { search: 'ethfeatfysthxfniehhlaln', tags: ['gwefjo'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'xxpciukizcjgivajnxnvig', - tags: ['mnxqrhxgdtkcispixwjnut'], + include_smart_links: true, + search: 'jzsjenieqowhtdtttq', + tags: ['pms'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vburqvyibsfdblszb', - tags: ['unxucsqvmjg'], + include_smart_links: true, + search: 'emvrvjpwyimrfmqhswhikq', + tags: ['fzlmamfdcs'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..df5178c5 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('modi', { 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('modi', { 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('modi', { 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('modi', { 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 3055d546..aaf8f89e 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('beatae', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('beatae', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('beatae', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('veritatis', { + const responsePromise = client.trackingLinks.getCohortArps('blanditiis', { 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('veritatis', { + const response = await client.trackingLinks.getCohortArps('blanditiis', { 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('iste', { 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('iste', { 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 0289675d..4e8cb443 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('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('et', { 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('et', { 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('et', { 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('ut', { + const responsePromise = client.trialLinks.listSubscribers('rerum', { 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('rerum', { 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('eos', { 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('eos', { 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('deserunt', { 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; @@ -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('deserunt', { + 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 bf56b16f..7dc0fc92 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: 'rdr' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'z' }); 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: 'rdr' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'z' }); }); // Mock server tests are disabled From c667de1845506fe11beec46e6cea9acf9923d9e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 01:12:34 +0000 Subject: [PATCH 155/309] 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 | 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 +-- 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 ++++-- 24 files changed, 108 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index f6dc4e33..c3cd2bd8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3d3cb65f2ac8955049fbe2fb7cd3f8049ffe7de8e6fcee723f46e3351e7e0e32.yml -openapi_spec_hash: c3fb2b1a8d027d707132b0ff8a3d55f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-36a34e98b3940e300dd61470f46cfaa4d2367212eb6fe5e28cab591b03431aa4.yml +openapi_spec_hash: cb026c2e941ca8223507659f8698efae config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 43007427..3ed20e70 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('quasi'); + * const response = await client.accounts.disconnect('rem'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e7d1ba84..b1811fb3 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( - * 'porro', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 7ebe5ada..498af0b3 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', + * 'quam', * { 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', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad5..8ef94b71 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( - * 'voluptatem', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('quas', { + * 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( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('quas', { + * 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 599a9525..09d6973d 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 f60f29ac..709ad71e 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('quod'); + * 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( - * 'magnam', + * 'a', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('illum'); + * const response = await client.smartLinks.listFans('harum'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'tempore', + * 'eos', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('voluptatum'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sed', + * 'ut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c536590d..f8c6ce98 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( - * 'modi', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('modi', { + * await client.stories.highlights.removeStory('illum', { * 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 64524b57..8277a1d0 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( - * 'beatae', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'beatae', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('blanditiis', { + * await client.trackingLinks.getCohortArps('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'iste', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b5a38dd9..e0653011 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( - * 'natus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sed', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('natus', { + * const trialLink = await client.trialLinks.delete('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'rerum', + * 'odit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 278f2835..96b3f383 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: 'z' }, + * { name: 'zqowrzgqmbakndyzrymplnfm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6650891a..0b8491a6 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('quasi'); + const responsePromise = client.accounts.disconnect('rem'); 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 ff4c60fb..7e8e940a 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_id: 'ducimus', auth_type: 'email_password', - cookies: 'perspiciatis', + cookies: 'ratione', customProxy: { host: 'proxy.example.com', - password: 'zcdS1aqCW:[=]fuW`', + password: '~@@:vHY(Z0)', port: 8080, - username: 'voluptate', + username: 'iusto', }, - email: 'lesly60@example.org', - force_connect: false, - name: 'aliquid', - password: 'X.\\DM=#t"5\'__C)%-=', - proxyCountry: 'us', - user_agent: 'quas', - xbc: 'quia', + email: 'jenkins.millie@example.org', + force_connect: true, + name: 'eaque', + password: 'U{cuA"{;}Y:)K', + proxyCountry: 'uk', + user_agent: 'doloribus', + xbc: 'hic', }, { 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 784164d2..a8504b73 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('sapiente', { 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('sapiente', { 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 80e35cb1..07da98f5 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('quam', { 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('quam', { 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('quam', { 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('quam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8aee5efa..cfbd67f6 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('quas', { 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('quas', { 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('quas', { 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('quas', { 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 8e5b0566..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index ab3c0684..ab0e4ef3 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: ['v'] }, + filter: { tags: ['tbh'] }, 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('quod'); + const responsePromise = client.smartLinks.listClicks('sed'); 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( - 'quod', + 'sed', { 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('magnam'); + const responsePromise = client.smartLinks.listConversions('a'); 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( - 'magnam', + 'a', { 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('harum'); 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', + 'harum', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('tempore'); + const responsePromise = client.smartLinks.listSpenders('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'eos', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptatum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sed'); + const responsePromise = client.smartLinks.retrieveStats('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'sed', + '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 fd46cfc9..ec315cfb 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: 'mo', tags: ['emwogffegttyxjatcbvmlammr'] }, + filter: { search: 'qefq', tags: ['nbvcothjqgvisvg'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ethfeatfysthxfniehhlaln', tags: ['gwefjo'] }, + filter: { search: 'uyejanoimqpmmzdew', tags: ['gdsbmydvfcrryjyeic'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'jzsjenieqowhtdtttq', - tags: ['pms'], + search: 'svomtbrhbawjpqykyqymhlhri', + tags: ['gkeofnhqbhcgokubybhwbugtp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'emvrvjpwyimrfmqhswhikq', - tags: ['fzlmamfdcs'], + search: 'pqlypeamqqm', + tags: ['nivecotkwrama'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index df5178c5..854f824a 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('modi', { + const responsePromise = client.stories.highlights.addStory('illum', { 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('modi', { + const response = await client.stories.highlights.addStory('illum', { 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('modi', { + const responsePromise = client.stories.highlights.removeStory('illum', { 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('modi', { + const response = await client.stories.highlights.removeStory('illum', { 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 aaf8f89e..f6e4189c 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('beatae', { 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('beatae', { 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('beatae', { 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,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('beatae', { 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('blanditiis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('sunt', { 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('blanditiis', { + const response = await client.trackingLinks.getCohortArps('sunt', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eum', { 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('iste', { + const response = await client.trackingLinks.getStats('eum', { 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 4e8cb443..d434e11e 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('sed', { 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('sed', { 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('sed', { 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('sed', { 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('rerum', { + const responsePromise = client.trialLinks.listSubscribers('odit', { 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('rerum', { + const response = await client.trialLinks.listSubscribers('odit', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { + 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('eos', { + const response = await client.trialLinks.retrieveCohortArps('rerum', { 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('ut', { 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; @@ -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('ut', { + 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 7dc0fc92..a80f6ae6 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: 'z' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'zqowrzgqmbakndyzrymplnfm', + }); 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: 'z' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'zqowrzgqmbakndyzrymplnfm', + }); }); // Mock server tests are disabled From ccab2a9e458023e5a5455d0e51a0f2792a4b7d6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 08:12:32 +0000 Subject: [PATCH 156/309] 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/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 | 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 25 files changed, 108 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index c3cd2bd8..0eb86f6a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-36a34e98b3940e300dd61470f46cfaa4d2367212eb6fe5e28cab591b03431aa4.yml -openapi_spec_hash: cb026c2e941ca8223507659f8698efae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f1c9930d33ddf0d139a8728fdf0d92d20e441e831dc39528ab512f0ad034444d.yml +openapi_spec_hash: 3ef1bf6a797a4847c4a57725ae478b3e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3ed20e70..4b8061a4 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('rem'); + * const response = await client.accounts.disconnect('saepe'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b1811fb3..0f8f628e 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( - * 'sapiente', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498af0b3..d1105b18 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( - * 'quam', + * 'expedita', * { 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( - * 'quam', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 8ef94b71..1080f923 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('quas', { + * const comment = await client.posts.comments.create('ipsa', { * 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('quas', { + * const comments = await client.posts.comments.list('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..c9a094cf 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 709ad71e..cb939e48 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('qui'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'a', + * 'sit', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('harum'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eos', + * 'quia', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatum'); + * await client.smartLinks.retrieveCohortArps('eaque'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ut', + * 'ab', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index f8c6ce98..78c9b0c5 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( - * 'illum', + * '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('illum', { - * 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 8277a1d0..7faae0d0 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', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quia', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sunt', { + * 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( - * 'eum', + * 'vero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e0653011..6290b8f4 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'officia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'officia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'odit', + * 'autem', * { * 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('nostrum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 96b3f383..a7679ca9 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: 'zqowrzgqmbakndyzrymplnfm' }, + * { name: 'mkvjyixndb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0b8491a6..87d50162 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('rem'); + const responsePromise = client.accounts.disconnect('saepe'); 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 7e8e940a..1e8f576b 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: 'ratione', + auth_id: 'temporibus', + auth_type: 'raw_data', + cookies: 'fugit', customProxy: { host: 'proxy.example.com', - password: '~@@:vHY(Z0)', + password: 'vQ)"][', port: 8080, - username: 'iusto', + username: 'consectetur', }, - email: 'jenkins.millie@example.org', + email: 'eino79@example.com', force_connect: true, - name: 'eaque', - password: 'U{cuA"{;}Y:)K', - proxyCountry: 'uk', - user_agent: 'doloribus', - xbc: 'hic', + name: 'ex', + 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 a8504b73..f722464e 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('sapiente', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptates', { 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('sapiente', { + const response = await client.engagement.messages.getMessageBuyers('voluptates', { 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 07da98f5..7139bd4f 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('quam', { + const responsePromise = client.media.vault.lists.media.add('expedita', { 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('quam', { + const response = await client.media.vault.lists.media.add('expedita', { 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('quam', { + const responsePromise = client.media.vault.lists.media.remove('expedita', { 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('quam', { + const response = await client.media.vault.lists.media.remove('expedita', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index cfbd67f6..d12b69cd 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('quas', { + const responsePromise = client.posts.comments.create('ipsa', { 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('quas', { + const response = await client.posts.comments.create('ipsa', { 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ipsa', { 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('quas', { + const response = await client.posts.comments.list('ipsa', { 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 ab0e4ef3..b33cd98d 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: ['tbh'] }, + filter: { tags: ['ywjezdltopdorcgyuuu'] }, 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('sed'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'sed', + 'qui', { 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('a'); + const responsePromise = client.smartLinks.listConversions('sit'); 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( - 'a', + 'sit', { 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('harum'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'harum', + 'qui', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eos'); + const responsePromise = client.smartLinks.listSpenders('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'quia', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatum'); + const responsePromise = client.smartLinks.retrieveCohortArps('eaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatum', + 'eaque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ut'); + const responsePromise = client.smartLinks.retrieveStats('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'ab', { 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 ec315cfb..e094438a 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: 'qefq', tags: ['nbvcothjqgvisvg'] }, + filter: { search: 'gwifqisgwmvagouwrohcvbvjh', tags: ['fdxvgzgaljalgugtp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uyejanoimqpmmzdew', tags: ['gdsbmydvfcrryjyeic'] }, + filter: { search: 'faerrcakvksdgcfrcod', tags: ['eenblbifekfclrkcj'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'svomtbrhbawjpqykyqymhlhri', - tags: ['gkeofnhqbhcgokubybhwbugtp'], + search: 'wptmvichyndibrjl', + tags: ['pqvjlwiceeknhwmexbg'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'pqlypeamqqm', - tags: ['nivecotkwrama'], + search: 'pfgqla', + tags: ['pj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 854f824a..dfeaef0e 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('illum', { + 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('illum', { + 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('illum', { + 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('illum', { + 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 f6e4189c..884d2b7f 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('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('quia', { 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('quia', { 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,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('quia', { 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('sunt', { 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('sunt', { + 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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('vero', { 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('eum', { + const response = await client.trackingLinks.getStats('vero', { 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 d434e11e..8755a94d 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('officia', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('officia', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('officia', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('officia', { 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('odit', { + const responsePromise = client.trialLinks.listSubscribers('autem', { 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('odit', { + const response = await client.trialLinks.listSubscribers('autem', { 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('nostrum', { 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('nostrum', { 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('aut', { 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; @@ -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('aut', { + 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 a80f6ae6..bba6b60b 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: 'zqowrzgqmbakndyzrymplnfm', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mkvjyixndb' }); 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: 'zqowrzgqmbakndyzrymplnfm', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mkvjyixndb' }); }); // Mock server tests are disabled From 6110f07a409b9fb1ea72f6947484295a4b6ec1cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 08:12:32 +0000 Subject: [PATCH 157/309] 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 | 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 +++++++------- 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 | 26 +++++++++---------- 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 +-- 26 files changed, 111 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0eb86f6a..871a8270 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f1c9930d33ddf0d139a8728fdf0d92d20e441e831dc39528ab512f0ad034444d.yml -openapi_spec_hash: 3ef1bf6a797a4847c4a57725ae478b3e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b7feba0cc4520cd65c7dfe7349674e954c9b075138cda731665775edfa201e0.yml +openapi_spec_hash: 656c3c07cad3b8c757d272514470448f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4b8061a4..df8ece79 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('saepe'); + * const response = await client.accounts.disconnect( + * 'expedita', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0f8f628e..7b03ce19 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( - * 'voluptates', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d1105b18..f5dc5f27 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( - * 'expedita', + * 'excepturi', * { 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( - * 'expedita', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1080f923..c2aa86c1 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('ipsa', { + * const comment = await client.posts.comments.create('in', { * 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('ipsa', { + * const comments = await client.posts.comments.list('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..41feb4c0 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 cb939e48..3e339352 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( + * 'provident', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sit', + * 'placeat', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans( + * 'quisquam', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'magnam', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eaque'); + * await client.smartLinks.retrieveCohortArps('nemo'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ab', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 78c9b0c5..eb3f399f 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', + * 'soluta', * { * 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('soluta', { + * 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 7faae0d0..fdf809e4 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( - * 'dignissimos', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dignissimos', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'vero', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6290b8f4..e4628b0a 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('et', { + * 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('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'autem', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nostrum', { + * await client.trialLinks.retrieveCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'id', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a7679ca9..b066748f 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: 'mkvjyixndb' }, + * { name: 'kftqavblvcgzffzaoya' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 87d50162..50bb25fb 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('saepe'); + const responsePromise = client.accounts.disconnect('expedita'); 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 1e8f576b..e98afbbd 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: 'temporibus', - auth_type: 'raw_data', - cookies: 'fugit', + auth_id: 'magnam', + auth_type: 'email_password', + cookies: 'eos', customProxy: { host: 'proxy.example.com', - password: 'vQ)"][', + password: "L6Y'7wS_by-s/P", port: 8080, - username: 'consectetur', + username: 'adipisci', }, - email: 'eino79@example.com', + email: 'kelli32@example.org', force_connect: true, - name: 'ex', - 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 f722464e..086a44ab 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('voluptates', { + 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('voluptates', { + 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 7139bd4f..2d16307a 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('expedita', { + const responsePromise = client.media.vault.lists.media.add('excepturi', { 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('expedita', { + const response = await client.media.vault.lists.media.add('excepturi', { 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('expedita', { + const responsePromise = client.media.vault.lists.media.remove('excepturi', { 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('expedita', { + const response = await client.media.vault.lists.media.remove('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..b0d96512 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 d12b69cd..5ab44413 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('ipsa', { + const responsePromise = client.posts.comments.create('in', { 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('ipsa', { + const response = await client.posts.comments.create('in', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('in', { 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('ipsa', { + const response = await client.posts.comments.list('in', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 b643af69..c1510622 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 b33cd98d..96518ff9 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: ['ywjezdltopdorcgyuuu'] }, + filter: { tags: ['wnpkkxwlk'] }, 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('qui'); + const responsePromise = client.smartLinks.listClicks('provident'); 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( - 'qui', + 'provident', { 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('sit'); + const responsePromise = client.smartLinks.listConversions('placeat'); 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( - 'sit', + 'placeat', { 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('qui'); + const responsePromise = client.smartLinks.listFans('quisquam'); 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( - 'qui', + 'quisquam', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quia'); + const responsePromise = client.smartLinks.listSpenders('magnam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'magnam', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eaque'); + const responsePromise = client.smartLinks.retrieveCohortArps('nemo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'nemo', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ab'); + const responsePromise = client.smartLinks.retrieveStats('deserunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'deserunt', { 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 e094438a..3f7618e9 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: 'gwifqisgwmvagouwrohcvbvjh', tags: ['fdxvgzgaljalgugtp'] }, + filter: { search: 'xhdoxcqlhnxassvcnuqylf', tags: ['ssazbpksqkdpxjorigdt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'faerrcakvksdgcfrcod', tags: ['eenblbifekfclrkcj'] }, + filter: { search: 'imcqkvxehadhqb', tags: ['oheosfuhztwyovpo'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'wptmvichyndibrjl', - tags: ['pqvjlwiceeknhwmexbg'], + search: 'rjhxsziiozzmklmwuaqgk', + tags: ['sekobifhdytvrykoj'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'pfgqla', - tags: ['pj'], + search: 'yamuglfatm', + tags: ['pxwknhhlk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dfeaef0e..13b146d3 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('soluta', { 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('soluta', { 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('soluta', { 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('soluta', { 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 884d2b7f..29fee779 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('alias', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('alias', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('alias', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('alias', { 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('rerum', { 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('rerum', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { 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('vero', { + const response = await client.trackingLinks.getStats('est', { 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 8755a94d..a29327d5 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('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('officia', { 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('officia', { 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('officia', { 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('autem', { + 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('autem', { + const response = await client.trialLinks.listSubscribers('ut', { 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('nostrum', { - 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; @@ -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('nostrum', { + const response = await client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,9 @@ 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('temporibus', { + 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('temporibus', { 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 bba6b60b..0e421322 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: 'mkvjyixndb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kftqavblvcgzffzaoya' }); 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: 'mkvjyixndb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kftqavblvcgzffzaoya' }); }); // Mock server tests are disabled From 09a70956c32f0f132d7efc68eb3aa42719035ea7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:12:37 +0000 Subject: [PATCH 158/309] 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 | 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 | 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 | 14 +++++----- .../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 +-- 29 files changed, 115 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 871a8270..0148b494 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8b7feba0cc4520cd65c7dfe7349674e954c9b075138cda731665775edfa201e0.yml -openapi_spec_hash: 656c3c07cad3b8c757d272514470448f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6a85f7df1fee73c1b174a0b2a914f7081920dc2f53e461766847cd10d6984294.yml +openapi_spec_hash: c1ae3f281edc9291039ee353173030eb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index df8ece79..fb5b36c0 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( - * 'expedita', - * ); + * const response = await client.accounts.disconnect('alias'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7b03ce19..7e83f2ad 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 f5dc5f27..4f58e424 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( - * 'excepturi', + * 'quaerat', * { 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( - * 'excepturi', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c2aa86c1..82e4bfcd 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('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'ullam', + * { + * 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('in', { + * const comments = await client.posts.comments.list('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 41feb4c0..c9a094cf 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 3e339352..2c1e7832 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( - * 'provident', + * 'porro', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'placeat', + * 'voluptas', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'quisquam', + * 'aspernatur', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'magnam', + * 'pariatur', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nemo'); + * await client.smartLinks.retrieveCohortArps('delectus'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'deserunt', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index eb3f399f..cd1270bc 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( - * 'soluta', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('soluta', { + * await client.stories.highlights.removeStory('cum', { * 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 fdf809e4..1ab13501 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( - * 'alias', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'alias', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('cumque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'est', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e4628b0a..db615f8a 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('et', { + * const trialLink = await client.trialLinks.retrieve('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'quos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('est', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'temporibus', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b066748f..328a99f4 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: 'kftqavblvcgzffzaoya' }, + * { name: 'dxsiz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 50bb25fb..42fe7a50 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('expedita'); + const responsePromise = client.accounts.disconnect('alias'); 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 e98afbbd..14a0fae2 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: 'magnam', - auth_type: 'email_password', - cookies: 'eos', + auth_id: 'nulla', + auth_type: 'mobile_app', + cookies: 'rerum', customProxy: { host: 'proxy.example.com', - password: "L6Y'7wS_by-s/P", + password: 'M.l@&J-r&7W)\\', port: 8080, - username: 'adipisci', + username: 'nostrum', }, - email: 'kelli32@example.org', - force_connect: true, - name: 'rerum', - password: '3VkqG|$]^VwH', - proxyCountry: 'us', - user_agent: 'autem', - xbc: 'vel', + email: 'ludwig.schamberger@example.com', + force_connect: false, + name: 'et', + password: 'hlj}Lntq[q<#k> { 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 086a44ab..32dab22b 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 2d16307a..ec2072ad 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('excepturi', { + const responsePromise = client.media.vault.lists.media.add('quaerat', { 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('excepturi', { + const response = await client.media.vault.lists.media.add('quaerat', { 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('excepturi', { + const responsePromise = client.media.vault.lists.media.remove('quaerat', { 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('excepturi', { + const response = await client.media.vault.lists.media.remove('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 5ab44413..7c59bcce 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('in', { + const responsePromise = client.posts.comments.create('ullam', { 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('in', { + const response = await client.posts.comments.create('ullam', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ullam', { 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('in', { + const response = await client.posts.comments.list('ullam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 96518ff9..c8d6ce53 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: ['wnpkkxwlk'] }, + filter: { tags: ['gaiecwamwxprxzjx'] }, 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('provident'); + const responsePromise = client.smartLinks.listClicks('porro'); 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( - 'provident', + 'porro', { 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('placeat'); + const responsePromise = client.smartLinks.listConversions('voluptas'); 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( - 'placeat', + 'voluptas', { 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('quisquam'); + const responsePromise = client.smartLinks.listFans('aspernatur'); 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( - 'quisquam', + 'aspernatur', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('magnam'); + const responsePromise = client.smartLinks.listSpenders('pariatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'magnam', + 'pariatur', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nemo'); + const responsePromise = client.smartLinks.retrieveCohortArps('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'nemo', + 'delectus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('deserunt'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'deserunt', + '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 3f7618e9..a3c2dac2 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: 'xhdoxcqlhnxassvcnuqylf', tags: ['ssazbpksqkdpxjorigdt'] }, + filter: { search: 'ytywuywawcrezxcsextwexhiu', tags: ['wgbsqryvqqi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'imcqkvxehadhqb', tags: ['oheosfuhztwyovpo'] }, + filter: { search: 'oqymcdkbkjzuqh', tags: ['mugnmqozjrpscqv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'rjhxsziiozzmklmwuaqgk', - tags: ['sekobifhdytvrykoj'], + search: 'xfkncceg', + tags: ['qtwydpdhuoxhtakbrayy'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yamuglfatm', - tags: ['pxwknhhlk'], + include_smart_links: false, + search: 'exheoznis', + tags: ['nvffijrdrb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 13b146d3..2e8a335d 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('soluta', { + const responsePromise = client.stories.highlights.addStory('cum', { 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('soluta', { + const response = await client.stories.highlights.addStory('cum', { 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('soluta', { + const responsePromise = client.stories.highlights.removeStory('cum', { 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('soluta', { + const response = await client.stories.highlights.removeStory('cum', { 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 29fee779..289e1a6a 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('alias', { 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('alias', { 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('alias', { 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('alias', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('cumque', { 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('cumque', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('culpa', { 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('est', { + const response = await client.trackingLinks.getStats('culpa', { 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 a29327d5..5e63ceb3 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('sit', { 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('sit', { 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('sit', { 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('sit', { 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('quos', { 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('quos', { 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('voluptatem', { + 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('temporibus', { - 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('temporibus', { + 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 0e421322..62a29814 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: 'kftqavblvcgzffzaoya' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxsiz' }); 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: 'kftqavblvcgzffzaoya' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxsiz' }); }); // Mock server tests are disabled From 1c8ed614ee0a88bbaa8fd04da0c83be0b9e6086f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 23:12:42 +0000 Subject: [PATCH 159/309] 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 | 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 +++--- 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 | 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 | 8 ++++-- 27 files changed, 113 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0148b494..3f68a395 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6a85f7df1fee73c1b174a0b2a914f7081920dc2f53e461766847cd10d6984294.yml -openapi_spec_hash: c1ae3f281edc9291039ee353173030eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0e8b4a79ddd808a1468346fce7d1685b3b93f4515751c2e7f4bd5a5e33f9f0f6.yml +openapi_spec_hash: 335c18ffed884345ed897a69e7136977 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fb5b36c0..d157f00e 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('alias'); + * const response = await client.accounts.disconnect( + * 'veritatis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2ad..6a57abc0 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( + * 'autem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4f58e424..c0e56046 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( - * 'quaerat', + * 'nisi', * { 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( - * 'quaerat', + * 'nisi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 82e4bfcd..5d345632 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( - * 'ullam', + * '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('ullam', { - * 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 e20f70d1..599a9525 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 c9a094cf..a84ff073 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 2c1e7832..4fcb5450 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( - * 'porro', + * 'deserunt', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptas', + * 'sint', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'aspernatur', - * ); + * const response = await client.smartLinks.listFans('id'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'pariatur', + * 'amet', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('delectus'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'commodi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cd1270bc..c987c4c6 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( - * 'cum', + * 'amet', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('cum', { + * await client.stories.highlights.removeStory('amet', { * 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 1ab13501..e20edd36 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consequuntur', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('cumque', { + * await client.trackingLinks.getCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'culpa', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index db615f8a..1652157b 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('sit', { + * const trialLink = await client.trialLinks.retrieve('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sit', { + * const trialLink = await client.trialLinks.delete('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quos', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 328a99f4..e248e639 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: 'dxsiz' }, + * { name: 'apgkkcqiviorhjabmukvzja' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 42fe7a50..e6737a4b 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('alias'); + const responsePromise = client.accounts.disconnect('veritatis'); 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 14a0fae2..9d8c3e77 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: 'nulla', - auth_type: 'mobile_app', - cookies: 'rerum', + auth_id: 'est', + auth_type: 'email_password', + cookies: 'dolor', customProxy: { host: 'proxy.example.com', - password: 'M.l@&J-r&7W)\\', + password: '#a4priR', port: 8080, - username: 'nostrum', + username: 'reprehenderit', }, - email: 'ludwig.schamberger@example.com', - force_connect: false, - name: 'et', - password: 'hlj}Lntq[q<#k> { // 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('autem', { 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('autem', { 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 ec2072ad..837525dd 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('quaerat', { + const responsePromise = client.media.vault.lists.media.add('nisi', { 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('quaerat', { + const response = await client.media.vault.lists.media.add('nisi', { 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('quaerat', { + const responsePromise = client.media.vault.lists.media.remove('nisi', { 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('quaerat', { + const response = await client.media.vault.lists.media.remove('nisi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..7b042946 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 7c59bcce..c47f77e4 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('ullam', { + 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('ullam', { + 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('ullam', { 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('ullam', { + 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 9bf5999b..ad49ad2e 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 fd74b68f..8e5b0566 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 b643af69..02883e18 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 c8d6ce53..f2517c6d 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: ['gaiecwamwxprxzjx'] }, + filter: { tags: ['ia'] }, 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('porro'); + const responsePromise = client.smartLinks.listClicks('deserunt'); 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( - 'porro', + 'deserunt', { 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('voluptas'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'voluptas', + 'sint', { 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('aspernatur'); + const responsePromise = client.smartLinks.listFans('id'); 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( - 'aspernatur', + 'id', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('pariatur'); + const responsePromise = client.smartLinks.listSpenders('amet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'pariatur', + 'amet', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('delectus'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('commodi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'commodi', { 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 a3c2dac2..5b89e0f2 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: 'ytywuywawcrezxcsextwexhiu', tags: ['wgbsqryvqqi'] }, + filter: { search: 'hbrc', tags: ['wki'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oqymcdkbkjzuqh', tags: ['mugnmqozjrpscqv'] }, + filter: { search: 'eigebvlrqrdepmmwvvqgmih', tags: ['rjzvqyyphypsxxw'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xfkncceg', - tags: ['qtwydpdhuoxhtakbrayy'], + include_smart_links: false, + search: 'wdwbhp', + tags: ['dfmqntgxxzlmtx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'exheoznis', - tags: ['nvffijrdrb'], + include_smart_links: true, + search: 'kkqruc', + tags: ['zgzdbyilidjsqnrhcjm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2e8a335d..dc97867c 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('cum', { + const responsePromise = client.stories.highlights.addStory('amet', { 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('cum', { + const response = await client.stories.highlights.addStory('amet', { 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('cum', { + const responsePromise = client.stories.highlights.removeStory('amet', { 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('cum', { + const response = await client.stories.highlights.removeStory('amet', { 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 289e1a6a..3306a538 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('voluptas', { 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('voluptas', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -94,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('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('cumque', { 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; @@ -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('cumque', { + const response = await client.trackingLinks.getCohortArps('eos', { 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('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sit', { 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('culpa', { + const response = await client.trackingLinks.getStats('sit', { 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 5e63ceb3..ab9a532e 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('ipsa', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('ipsa', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('ipsa', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('ipsa', { 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('quos', { + 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('quos', { + 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('voluptatem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { 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('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('et', { 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('hic', { 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('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 62a29814..1edab4cf 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: 'dxsiz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'apgkkcqiviorhjabmukvzja', + }); 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: 'dxsiz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'apgkkcqiviorhjabmukvzja', + }); }); // Mock server tests are disabled From 07294490fa8a639ae9cd7afae4e99cc6ad73716c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 15:12:39 +0000 Subject: [PATCH 160/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/authenticate.ts | 2 +- src/resources/client-sessions.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 | 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/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 | 26 +++++++++---------- 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 | 8 ++---- 29 files changed, 106 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3f68a395..b4a6f02c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0e8b4a79ddd808a1468346fce7d1685b3b93f4515751c2e7f4bd5a5e33f9f0f6.yml -openapi_spec_hash: 335c18ffed884345ed897a69e7136977 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2b88a81ce8286a53ab076c2d88f608eca6465cf308cc49e724069aecbc025659.yml +openapi_spec_hash: 9fde29c614fad30540a96578a785c53b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d157f00e..c9473d5e 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( - * 'veritatis', - * ); + * const response = await client.accounts.disconnect('iusto'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/authenticate.ts b/src/resources/authenticate.ts index d10eea6c..9d00c7a9 100644 --- a/src/resources/authenticate.ts +++ b/src/resources/authenticate.ts @@ -511,7 +511,7 @@ export interface AuthenticateStartParams { * The country of the managed proxy server you want to use. Eg. "us" for United * States. Cannot be used together with customProxy. */ - proxyCountry?: 'us' | 'uk'; + proxyCountry?: 'us' | 'uk' | 'gb'; /** * The browser User-Agent string. Required when auth_type is `raw_data`. diff --git a/src/resources/client-sessions.ts b/src/resources/client-sessions.ts index fa88e804..51ee2e89 100644 --- a/src/resources/client-sessions.ts +++ b/src/resources/client-sessions.ts @@ -82,7 +82,7 @@ export interface ClientSessionCreateParams { */ client_reference_id?: string; - proxy_country?: 'us' | 'uk' | null; + proxy_country?: 'us' | 'uk' | 'gb' | null; } export declare namespace ClientSessions { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6a57abc0..440d5fcb 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( - * 'autem', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c0e56046..413c86c5 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( - * 'nisi', + * 'ad', * { 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( - * 'nisi', + * 'ad', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 5d345632..fe190c1e 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('sunt', { + * 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('sunt', { + * 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 599a9525..a9767818 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 4fcb5450..bd7d4fff 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( - * 'deserunt', - * ); + * 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', + * 'rerum', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('id'); + * const response = await client.smartLinks.listFans('cumque'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'amet', + * 'nemo', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('excepturi'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'commodi', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c987c4c6..e5655b14 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( - * 'amet', + * 'quam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('amet', { + * await client.stories.highlights.removeStory('quam', { * 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 e20edd36..89b21d0c 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( - * 'voluptas', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eos', { + * 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( - * 'sit', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 1652157b..f5721e31 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('ipsa', { + * const trialLink = await client.trialLinks.retrieve('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ipsa', { + * const trialLink = await client.trialLinks.delete('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'illum', + * 'culpa', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'hic', + * 'quos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e248e639..c12b60c8 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: 'apgkkcqiviorhjabmukvzja' }, + * { name: 'xsufxxvutpwjotonb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e6737a4b..000f90fc 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('veritatis'); + const responsePromise = client.accounts.disconnect('iusto'); 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 9d8c3e77..43b0fc93 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_id: 'ut', auth_type: 'email_password', - cookies: 'dolor', + cookies: 'repellat', customProxy: { host: 'proxy.example.com', - password: '#a4priR', + password: 'KGnK$l', port: 8080, - username: 'reprehenderit', + username: 'ratione', }, - email: 'kassandra.leffler@example.com', + email: 'mann.kassandra@example.org', force_connect: true, - name: 'blanditiis', - password: 'pGn#+;<{qe%K?{DI', - proxyCountry: 'uk', - user_agent: 'ratione', - xbc: 'et', + name: 'necessitatibus', + password: 'Uwp:`XT^1qCwZKq)', + proxyCountry: 'gb', + user_agent: 'adipisci', + xbc: 'odit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 9cc643a8..88a803ec 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('autem', { + const responsePromise = client.engagement.messages.getMessageBuyers('inventore', { 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('autem', { + const response = await client.engagement.messages.getMessageBuyers('inventore', { 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 837525dd..65c7568c 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('nisi', { + const responsePromise = client.media.vault.lists.media.add('ad', { 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('nisi', { + const response = await client.media.vault.lists.media.add('ad', { 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('nisi', { + const responsePromise = client.media.vault.lists.media.remove('ad', { 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('nisi', { + const response = await client.media.vault.lists.media.remove('ad', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c47f77e4..b4662aa1 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('sunt', { 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('sunt', { 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('sunt', { 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('sunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 d13ad1ce..6b1dc2fd 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 f2517c6d..1c6f8df1 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: ['ia'] }, + filter: { tags: ['keuvr'] }, 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('deserunt'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'deserunt', + 'ut', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'sint', + 'rerum', { 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('id'); + const responsePromise = client.smartLinks.listFans('cumque'); 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( - 'id', + 'cumque', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('amet'); + const responsePromise = client.smartLinks.listSpenders('nemo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'amet', + 'nemo', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('excepturi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'excepturi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('commodi'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'commodi', + '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 5b89e0f2..60ac9986 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: 'hbrc', tags: ['wki'] }, + filter: { search: 'ylobjpwh', tags: ['dr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'eigebvlrqrdepmmwvvqgmih', tags: ['rjzvqyyphypsxxw'] }, + filter: { search: 'wmpusyyjwwvvnv', tags: ['gjo'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wdwbhp', - tags: ['dfmqntgxxzlmtx'], + include_smart_links: true, + search: 'alfidzfbetwezkfdpxfcxde', + tags: ['w'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kkqruc', - tags: ['zgzdbyilidjsqnrhcjm'], + include_smart_links: false, + search: 'itdssjbh', + tags: ['qqjugrupnrkpzxinfhfjjuaj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dc97867c..762c57bf 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('amet', { + const responsePromise = client.stories.highlights.addStory('quam', { 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('amet', { + const response = await client.stories.highlights.addStory('quam', { 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('amet', { + const responsePromise = client.stories.highlights.removeStory('quam', { 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('amet', { + const response = await client.stories.highlights.removeStory('quam', { 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 3306a538..ccb5dea1 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('voluptas', { 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('voluptas', { 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('voluptas', { 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,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('voluptas', { 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('eos', { 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('eos', { + 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aspernatur', { 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('sit', { + const response = await client.trackingLinks.getStats('aspernatur', { 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 ab9a532e..ec65b651 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quo', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quo', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quo', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quo', { 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('culpa', { 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('culpa', { 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('et', { 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; @@ -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('et', { + const response = await client.trialLinks.retrieveCohortArps('ut', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quos', { 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('hic', { + const response = await client.trialLinks.retrieveStats('quos', { 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 1edab4cf..03ea5853 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: 'apgkkcqiviorhjabmukvzja', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xsufxxvutpwjotonb' }); 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: 'apgkkcqiviorhjabmukvzja', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xsufxxvutpwjotonb' }); }); // Mock server tests are disabled From 1a1c5d2895fccf54710292faf345c839efc21910 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:12:35 +0000 Subject: [PATCH 161/309] 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/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 | 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 | 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 | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 114 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index b4a6f02c..31642603 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2b88a81ce8286a53ab076c2d88f608eca6465cf308cc49e724069aecbc025659.yml -openapi_spec_hash: 9fde29c614fad30540a96578a785c53b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c7b4dde3eb431e3c636e2b6bc3a7bc40aaee037783648040876793082942a877.yml +openapi_spec_hash: b2059518c78b8c03fcbd4e1773ff4d77 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9473d5e..b1810840 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('iusto'); + * const response = await client.accounts.disconnect( + * 'ratione', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 440d5fcb..5b26103c 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( - * 'inventore', + * 'odio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 413c86c5..aa4c0497 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( - * 'ad', + * 'iure', * { 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( - * 'ad', + * 'iure', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fe190c1e..e1526dec 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('sunt', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'illum', + * { + * 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('sunt', { + * const comments = await client.posts.comments.list('illum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index bd7d4fff..977596e7 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( + * 'tenetur', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'alias', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('cumque'); + * const response = await client.smartLinks.listFans('earum'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nemo', + * 'rerum', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('excepturi'); + * await client.smartLinks.retrieveCohortArps('voluptas'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'ad', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e5655b14..62984c5e 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( - * 'quam', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quam', { + * await client.stories.highlights.removeStory('eos', { * 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 89b21d0c..0cc3a623 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', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloribus', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * 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( - * 'aspernatur', + * 'quidem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f5721e31..da3db2a5 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('quo', { + * const trialLink = await client.trialLinks.retrieve('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quo', { + * const trialLink = await client.trialLinks.delete('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'culpa', + * 'nihil', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('atque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quos', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c12b60c8..2feb2e70 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: 'xsufxxvutpwjotonb' }, + * { name: 'masdmhkug' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 000f90fc..cc97b828 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('iusto'); + const responsePromise = client.accounts.disconnect('ratione'); 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 43b0fc93..4c74103b 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: 'repellat', + auth_id: 'quis', + auth_type: 'mobile_app', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'KGnK$l', + password: 'Qyz]@%i*', port: 8080, - username: 'ratione', + username: 'possimus', }, - email: 'mann.kassandra@example.org', + email: 'leslie.bechtelar@example.org', force_connect: true, - name: 'necessitatibus', - password: 'Uwp:`XT^1qCwZKq)', - proxyCountry: 'gb', - user_agent: 'adipisci', - xbc: 'odit', + name: 'id', + password: "r|QC&G$'g5", + proxyCountry: 'uk', + user_agent: 'molestiae', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 88a803ec..9699c17b 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('inventore', { + 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('inventore', { + 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 65c7568c..fad0158b 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('ad', { + const responsePromise = client.media.vault.lists.media.add('iure', { 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('ad', { + const response = await client.media.vault.lists.media.add('iure', { 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('ad', { + const responsePromise = client.media.vault.lists.media.remove('iure', { 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('ad', { + const response = await client.media.vault.lists.media.remove('iure', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b4662aa1..c58dd531 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('sunt', { + const responsePromise = client.posts.comments.create('illum', { 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('sunt', { + const response = await client.posts.comments.create('illum', { 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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('illum', { 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('sunt', { + const response = await client.posts.comments.list('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1c6f8df1..ef894cbb 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: ['keuvr'] }, + filter: { tags: ['dw'] }, 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('ut'); + const responsePromise = client.smartLinks.listClicks('tenetur'); 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( - 'ut', + 'tenetur', { 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('rerum'); + const responsePromise = client.smartLinks.listConversions('alias'); 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( - 'rerum', + 'alias', { 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('cumque'); + const responsePromise = client.smartLinks.listFans('earum'); 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( - 'cumque', + 'earum', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nemo'); + const responsePromise = client.smartLinks.listSpenders('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'nemo', + 'rerum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('excepturi'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'excepturi', + 'voluptas', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'ad', { 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 60ac9986..a8d0097b 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: 'ylobjpwh', tags: ['dr'] }, + filter: { search: 'pbfojbqujwt', tags: ['njflnpevoi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wmpusyyjwwvvnv', tags: ['gjo'] }, + filter: { search: 'an', tags: ['adgultzysfwajyujyajvtgr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'alfidzfbetwezkfdpxfcxde', - tags: ['w'], + search: 'hdawtfhcegirnvzcpmzipkk', + tags: ['xrfgvkoztdwfztpnuwgiry'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'itdssjbh', - tags: ['qqjugrupnrkpzxinfhfjjuaj'], + include_smart_links: true, + search: 'fkcvfvpjxcsmpngjvszcn', + tags: ['pjyfddvbu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 762c57bf..303341f0 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('quam', { + const responsePromise = client.stories.highlights.addStory('eos', { 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('quam', { + const response = await client.stories.highlights.addStory('eos', { 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('quam', { + const responsePromise = client.stories.highlights.removeStory('eos', { 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('quam', { + const response = await client.stories.highlights.removeStory('eos', { 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 ccb5dea1..37ae78ba 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('est', { 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('est', { 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('est', { 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('est', { 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('temporibus', { + 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('temporibus', { 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('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quidem', { 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('aspernatur', { + const response = await client.trackingLinks.getStats('quidem', { 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 ec65b651..c0885fc6 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('culpa', { + const responsePromise = client.trialLinks.listSubscribers('nihil', { 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('culpa', { + const response = await client.trialLinks.listSubscribers('nihil', { 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('atque', { + 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('atque', { 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('quos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptatibus', { + 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('quos', { + const response = await client.trialLinks.retrieveStats('voluptatibus', { 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 03ea5853..9f200aa3 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: 'xsufxxvutpwjotonb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'masdmhkug' }); 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: 'xsufxxvutpwjotonb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'masdmhkug' }); }); // Mock server tests are disabled From 3547c2afac2f2460d46c51a0624868f7c5a8c111 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 02:00:48 +0000 Subject: [PATCH 162/309] fix(ci): bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 --- .github/workflows/ci.yml | 6 +-- .github/workflows/publish-npm.yml | 2 +- package.json | 2 +- pnpm-lock.yaml | 76 +++++++++++++++++-------------- 4 files changed, 48 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c7a6458..17658902 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Set up pnpm uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 @@ -53,7 +53,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Set up pnpm uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 @@ -95,7 +95,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Set up pnpm uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 36638c43..9946a640 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Node uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 with: - node-version: '20' + node-version: '24' - name: Set up pnpm uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 diff --git a/package.json b/package.json index 36a7c755..481865bc 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "dependencies": {}, "devDependencies": { - "@arethetypeswrong/cli": "^0.17.0", + "@arethetypeswrong/cli": "^0.18.0", "@swc/core": "^1.3.102", "@swc/jest": "^0.2.29", "@types/jest": "^29.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6497094d..a953c6f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ importers: .: devDependencies: '@arethetypeswrong/cli': - specifier: ^0.17.0 - version: 0.17.0 + specifier: ^0.18.0 + version: 0.18.4 '@swc/core': specifier: ^1.3.102 version: 1.4.16 @@ -78,20 +78,20 @@ packages: integrity: sha512-Jh15/qVmrLGhkKJBdXlK1+9tY4lZruYjsgkDFj08ZmDiWVBLJcqkok7Z0/R0In+i1rScBpJlSvrTS2Lm41Pbnw==, } - '@arethetypeswrong/cli@0.17.0': + '@arethetypeswrong/cli@0.18.4': resolution: { - integrity: sha512-xSMW7bfzVWpYw5JFgZqBXqr6PdR0/REmn3DkxCES5N0JTcB0CVgbIynJCvKBFmXaPc3hzmmTrb7+yPDRoOSZdA==, + integrity: sha512-kNWo6LTzGAuLYPpJ7Sgo63whSUeeSuKMlYx6IBgzs4ONEG807gW4hSSENvpeCHzO2H2wIzG5EFl0OKBbqGBAyA==, } - engines: { node: '>=18' } + engines: { node: '>=20' } hasBin: true - '@arethetypeswrong/core@0.17.0': + '@arethetypeswrong/core@0.18.4': resolution: { - integrity: sha512-FHyhFizXNetigTVsIhqXKGYLpazPS5YNojEPpZEUcBPt9wVvoEbNIvG+hybuBR+pjlRcbyuqhukHZm1fr+bDgA==, + integrity: sha512-M5F0ePyN6h2Z6XxRiyIPqjGbltotXLjR0CKA0uKspsDu0QmgTNYvRb4RSQPMUs2ZXZHCCYpbaZbFbYOXLxCjUA==, } - engines: { node: '>=18' } + engines: { node: '>=20' } '@babel/code-frame@7.28.6': resolution: @@ -363,6 +363,12 @@ packages: integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==, } + '@braidai/lang@1.1.2': + resolution: + { + integrity: sha512-qBcknbBufNHlui137Hft8xauQMTZDKdophmLFv05r2eNmdIv/MlPuP4TdUknHG68UdWLgVZwgxVe735HzJNIwA==, + } + '@colors/colors@1.5.0': resolution: { @@ -665,6 +671,12 @@ packages: integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==, } + '@loaderkit/resolve@1.0.6': + resolution: + { + integrity: sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg==, + } + '@nodelib/fs.scandir@2.1.5': resolution: { @@ -1678,10 +1690,10 @@ packages: integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==, } - fflate@0.8.2: + fflate@0.8.3: resolution: { - integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==, + integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==, } file-entry-cache@8.0.0: @@ -2366,11 +2378,12 @@ packages: integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, } - lru-cache@10.4.3: + lru-cache@11.5.2: resolution: { - integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==, + integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==, } + engines: { node: 20 || >=22 } lru-cache@5.1.1: resolution: @@ -2852,14 +2865,6 @@ packages: } hasBin: true - semver@7.7.1: - resolution: - { - integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==, - } - engines: { node: '>=10' } - hasBin: true - semver@7.7.3: resolution: { @@ -3365,23 +3370,24 @@ packages: snapshots: '@andrewbranch/untar.js@1.0.3': {} - '@arethetypeswrong/cli@0.17.0': + '@arethetypeswrong/cli@0.18.4': dependencies: - '@arethetypeswrong/core': 0.17.0 + '@arethetypeswrong/core': 0.18.4 chalk: 4.1.2 cli-table3: 0.6.5 commander: 10.0.1 marked: 9.1.6 marked-terminal: 7.2.1(marked@9.1.6) - semver: 7.7.1 + semver: 7.7.3 - '@arethetypeswrong/core@0.17.0': + '@arethetypeswrong/core@0.18.4': dependencies: '@andrewbranch/untar.js': 1.0.3 + '@loaderkit/resolve': 1.0.6 cjs-module-lexer: 1.4.1 - fflate: 0.8.2 - lru-cache: 10.4.3 - semver: 7.7.1 + fflate: 0.8.3 + lru-cache: 11.5.2 + semver: 7.7.3 typescript: 5.6.1-rc validate-npm-package-name: 5.0.1 @@ -3574,6 +3580,8 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} + '@braidai/lang@1.1.2': {} + '@colors/colors@1.5.0': optional: true @@ -3849,6 +3857,10 @@ snapshots: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 + '@loaderkit/resolve@1.0.6': + dependencies: + '@braidai/lang': 1.1.2 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -4462,7 +4474,7 @@ snapshots: dependencies: bser: 2.1.1 - fflate@0.8.2: {} + fflate@0.8.3: {} file-entry-cache@8.0.0: dependencies: @@ -4909,7 +4921,7 @@ snapshots: jest-util: 29.7.0 natural-compare: 1.4.0 pretty-format: 29.7.0 - semver: 7.7.1 + semver: 7.7.3 transitivePeerDependencies: - supports-color @@ -5013,7 +5025,7 @@ snapshots: lodash.merge@4.6.2: {} - lru-cache@10.4.3: {} + lru-cache@11.5.2: {} lru-cache@5.1.1: dependencies: @@ -5254,8 +5266,6 @@ snapshots: semver@6.3.1: {} - semver@7.7.1: {} - semver@7.7.3: {} shebang-command@2.0.0: @@ -5512,7 +5522,7 @@ snapshots: yargs@16.2.0: dependencies: cliui: 7.0.4 - escalade: 3.1.1 + escalade: 3.2.0 get-caller-file: 2.0.5 require-directory: 2.1.1 string-width: 4.2.3 From 51c1702a88ef83bf91f55c6233a08a733fb99182 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 20:12:44 +0000 Subject: [PATCH 163/309] 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 +++++----- .../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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../tracking-links/tracking-links.test.ts | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 107 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 31642603..413b1a0b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c7b4dde3eb431e3c636e2b6bc3a7bc40aaee037783648040876793082942a877.yml -openapi_spec_hash: b2059518c78b8c03fcbd4e1773ff4d77 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21d291b11e206bb0be96b00be6fa31f7147e4d0a978da43dff0a432f2a194622.yml +openapi_spec_hash: 39d38a123d98e9b87ee381af89939aa6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index b1810840..7affd434 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( - * 'ratione', + * 'repellat', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5b26103c..7e83f2ad 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('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4c0497..5776a9e5 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( - * 'iure', + * 'quos', * { 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( - * 'iure', + * 'quos', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e1526dec..6b557a8f 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( - * 'illum', - * { - * 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,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('illum', { + * const comments = await client.posts.comments.list('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 41feb4c0..2b04cbb2 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 977596e7..5885e6c1 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( - * 'tenetur', + * 'omnis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'alias', + * 'consequatur', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('earum'); + * const response = await client.smartLinks.listFans( + * 'perspiciatis', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rerum', + * 'accusantium', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptas'); + * await client.smartLinks.retrieveCohortArps('tempore'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ad', + * 'eligendi', * ); * ``` */ diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 0cc3a623..e06931d3 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( - * 'est', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'est', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('temporibus', { + * await client.trackingLinks.getCohortArps('quaerat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quidem', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index da3db2a5..61627fa1 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('qui', { - * 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('qui', { - * 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( - * 'nihil', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('atque', { + * await client.trialLinks.retrieveCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatibus', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2feb2e70..dc1d06ab 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: 'masdmhkug' }, + * { name: 'azvwfnhvnpc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index cc97b828..1f78bba2 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('ratione'); + const responsePromise = client.accounts.disconnect('repellat'); 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 4c74103b..bd3e618f 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: 'quis', - auth_type: 'mobile_app', - cookies: 'et', + auth_id: 'eum', + auth_type: 'raw_data', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: 'Qyz]@%i*', + password: 'POf.nEnqDZO3?"S0v(', port: 8080, - username: 'possimus', + username: 'et', }, - email: 'leslie.bechtelar@example.org', + email: 'weissnat.angelica@example.org', force_connect: true, - name: 'id', - password: "r|QC&G$'g5", - proxyCountry: 'uk', - user_agent: 'molestiae', - xbc: 'voluptatem', + name: 'assumenda', + password: '"{PO#j\\cb$~maj', + proxyCountry: 'gb', + user_agent: 'modi', + xbc: 'iure', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9699c17b..32dab22b 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('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('odio', { + 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 fad0158b..57341cd0 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('iure', { + const responsePromise = client.media.vault.lists.media.add('quos', { 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('iure', { + const response = await client.media.vault.lists.media.add('quos', { 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('iure', { + const responsePromise = client.media.vault.lists.media.remove('quos', { 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('iure', { + const response = await client.media.vault.lists.media.remove('quos', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..694c42e4 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 c58dd531..427da94a 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('illum', { + 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('illum', { + 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('illum', { 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('illum', { + 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 4ec8acc7..e2edc676 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 c1510622..96d399de 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 ef894cbb..08636afb 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: ['dw'] }, + filter: { tags: ['meeqkmvudxssq'] }, 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('tenetur'); + const responsePromise = client.smartLinks.listClicks('omnis'); 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( - 'tenetur', + 'omnis', { 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('alias'); + const responsePromise = client.smartLinks.listConversions('consequatur'); 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( - 'alias', + 'consequatur', { 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('earum'); + const responsePromise = client.smartLinks.listFans('perspiciatis'); 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( - 'earum', + 'perspiciatis', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('rerum'); + const responsePromise = client.smartLinks.listSpenders('accusantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'rerum', + 'accusantium', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptas'); + const responsePromise = client.smartLinks.retrieveCohortArps('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptas', + 'tempore', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ad'); + const responsePromise = client.smartLinks.retrieveStats('eligendi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'ad', + 'eligendi', { 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 a8d0097b..e1039603 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: 'pbfojbqujwt', tags: ['njflnpevoi'] }, + filter: { search: 'eqpjnxatitxudnuhqjgjn', tags: ['lzbijenejxwchrygney'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'an', tags: ['adgultzysfwajyujyajvtgr'] }, + filter: { search: 'vnpbp', tags: ['ctd'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'hdawtfhcegirnvzcpmzipkk', - tags: ['xrfgvkoztdwfztpnuwgiry'], + include_smart_links: false, + search: 'mnshqlgsmcltbct', + tags: ['hif'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'fkcvfvpjxcsmpngjvszcn', - tags: ['pjyfddvbu'], + search: 'naenzptaupd', + tags: ['wmktp'], }, 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 37ae78ba..cb7c09c9 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sequi', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sequi', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sequi', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('temporibus', { + const responsePromise = client.trackingLinks.getCohortArps('quaerat', { 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('temporibus', { + const response = await client.trackingLinks.getCohortArps('quaerat', { 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('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eaque', { 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('quidem', { + const response = await client.trackingLinks.getStats('eaque', { 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 c0885fc6..b9a1e051 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('qui', { 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('qui', { 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('qui', { 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('qui', { 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('nihil', { + 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('nihil', { + 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('atque', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolores', { 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('atque', { + const response = await client.trialLinks.retrieveCohortArps('dolores', { 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('voluptatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('harum', { 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('voluptatibus', { + const response = await client.trialLinks.retrieveStats('harum', { 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 9f200aa3..1307e46b 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: 'masdmhkug' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'azvwfnhvnpc' }); 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: 'masdmhkug' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'azvwfnhvnpc' }); }); // Mock server tests are disabled From 8d91b47ac5079a7a3b6d4335fdd136cd8b37b465 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 11:12:36 +0000 Subject: [PATCH 164/309] 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 | 12 ++++----- 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 | 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/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 | 6 +++-- 26 files changed, 119 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 413b1a0b..5a6480d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21d291b11e206bb0be96b00be6fa31f7147e4d0a978da43dff0a432f2a194622.yml -openapi_spec_hash: 39d38a123d98e9b87ee381af89939aa6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d4af8593e2d4714996fafef6e9b27e902610950c16792647e0ea68979996a1.yml +openapi_spec_hash: 63b80ae0875ffd0ee9fc524038866b4a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7affd434..e8b821f8 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( - * 'repellat', - * ); + * 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 7e83f2ad..3fd7a2a1 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( + * 'omnis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5776a9e5..2f38ae64 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( - * 'quos', + * '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( - * 'quos', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6b557a8f..37ab2387 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( + * 'nesciunt', + * { + * 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'nesciunt', + * { 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 09d6973d..599a9525 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 2b04cbb2..c9a094cf 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 5885e6c1..19f376ef 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( - * 'omnis', + * 'quidem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'consequatur', + * 'id', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'perspiciatis', + * 'doloremque', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'accusantium', + * 'perspiciatis', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tempore'); + * await client.smartLinks.retrieveCohortArps('enim'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eligendi', + * 'officia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 62984c5e..98ac1bdd 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( - * 'eos', + * 'laboriosam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'laboriosam', + * { + * 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 e06931d3..7ed25d8f 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( - * 'sequi', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sequi', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quaerat', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eaque', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 61627fa1..516682b8 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', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptatem', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'animi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolores', { + * await client.trialLinks.retrieveCohortArps('vero', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'harum', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index dc1d06ab..b17087a2 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: 'azvwfnhvnpc' }, + * { name: 'yfuqlstvkuqxlmqzogxka' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1f78bba2..1e3be330 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('repellat'); + 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 bd3e618f..b8974b54 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: 'eum', - auth_type: 'raw_data', - cookies: 'odit', + auth_id: 'sit', + auth_type: 'email_password', + cookies: 'adipisci', customProxy: { host: 'proxy.example.com', - password: 'POf.nEnqDZO3?"S0v(', + password: '%$TKQi81Kc', port: 8080, - username: 'et', + username: 'possimus', }, - email: 'weissnat.angelica@example.org', - force_connect: true, - name: 'assumenda', - password: '"{PO#j\\cb$~maj', - proxyCountry: 'gb', - user_agent: 'modi', - xbc: 'iure', + email: 'jesse13@example.org', + force_connect: false, + name: 'provident', + password: 'q&4;(M11q', + proxyCountry: 'uk', + user_agent: 'velit', + 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 32dab22b..437aaaa2 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('omnis', { 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('omnis', { 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 57341cd0..19155ed9 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('quos', { + 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('quos', { + 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('quos', { + 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('quos', { + 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 694c42e4..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 427da94a..30bdae61 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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 e2edc676..8e5b0566 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 96d399de..b643af69 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 08636afb..5431ee45 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: ['meeqkmvudxssq'] }, + filter: { tags: ['upsll'] }, 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('omnis'); + const responsePromise = client.smartLinks.listClicks('quidem'); 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( - 'omnis', + 'quidem', { 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('consequatur'); + const responsePromise = client.smartLinks.listConversions('id'); 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( - 'consequatur', + 'id', { 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('perspiciatis'); + const responsePromise = client.smartLinks.listFans('doloremque'); 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( - 'perspiciatis', + 'doloremque', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('accusantium'); + const responsePromise = client.smartLinks.listSpenders('perspiciatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'accusantium', + 'perspiciatis', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tempore'); + const responsePromise = client.smartLinks.retrieveCohortArps('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'enim', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eligendi'); + const responsePromise = client.smartLinks.retrieveStats('officia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'eligendi', + 'officia', { 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 e1039603..34e12d02 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: 'eqpjnxatitxudnuhqjgjn', tags: ['lzbijenejxwchrygney'] }, + filter: { search: 'kuwfvsrzboyuwowbrzwdgv', tags: ['o'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'vnpbp', tags: ['ctd'] }, + filter: { search: 'twfvhumipbkoaucj', tags: ['hnggcgqfn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'mnshqlgsmcltbct', - tags: ['hif'], + search: 'dmokeftutufv', + tags: ['mugo'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'naenzptaupd', - tags: ['wmktp'], + search: 'slcrspkzqfpjxjqxnhzzm', + tags: ['qcsbrg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 303341f0..dc730189 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('eos', { + const responsePromise = client.stories.highlights.addStory('laboriosam', { 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('eos', { + const response = await client.stories.highlights.addStory('laboriosam', { 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('eos', { + const responsePromise = client.stories.highlights.removeStory('laboriosam', { 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('eos', { + const response = await client.stories.highlights.removeStory('laboriosam', { 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 cb7c09c9..76eef2f4 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('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptas', { 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('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptas', { 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('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptas', { 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('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quaerat', { - 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('quaerat', { + 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('tenetur', { 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('eaque', { + const response = await client.trackingLinks.getStats('tenetur', { 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 b9a1e051..32b7673c 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('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('voluptatem', { 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('voluptatem', { 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('voluptatem', { 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('et', { + const responsePromise = client.trialLinks.listSubscribers('animi', { 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('animi', { 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('dolores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('vero', { 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('dolores', { + const response = await client.trialLinks.retrieveCohortArps('vero', { 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('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nemo', { 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('harum', { + const response = await client.trialLinks.retrieveStats('nemo', { 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 1307e46b..e0dc68a4 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: 'azvwfnhvnpc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'yfuqlstvkuqxlmqzogxka', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'azvwfnhvnpc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yfuqlstvkuqxlmqzogxka' }); }); // Mock server tests are disabled From 44bece23d2e3864b19f6ef18f33357dba26bd391 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 14:12:35 +0000 Subject: [PATCH 165/309] 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 +- .../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 | 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 | 26 +++++++++---------- 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 | 6 ++--- 28 files changed, 113 insertions(+), 128 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5a6480d1..0f50575f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-50d4af8593e2d4714996fafef6e9b27e902610950c16792647e0ea68979996a1.yml -openapi_spec_hash: 63b80ae0875ffd0ee9fc524038866b4a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a884c4303875cc51be36e23eb25753e78483e574ff7993d762efe007a6bcd4ba.yml +openapi_spec_hash: 07d0321b2ed079c79539babf99c860fd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e8b821f8..6bb6558e 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('aut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3fd7a2a1..1b1447a7 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( - * 'omnis', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..e7233b51 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', + * 'nesciunt', * { 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', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 37ab2387..6b557a8f 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( - * 'nesciunt', - * { - * 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( - * 'nesciunt', - * { 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 599a9525..a9767818 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 c9a094cf..a84ff073 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 19f376ef..84b5dc70 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('iste'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'id', + * 'non', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'doloremque', - * ); + * const response = await client.smartLinks.listFans('harum'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'perspiciatis', + * 'nulla', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('enim'); + * await client.smartLinks.retrieveCohortArps('distinctio'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'officia', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 98ac1bdd..c556977f 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( - * 'laboriosam', + * 'sed', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'laboriosam', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('sed', { + * 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 7ed25d8f..55b3106d 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( - * 'voluptas', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tenetur', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 516682b8..3cbc7fe1 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('sed', { + * 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('sed', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'animi', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vero', { + * await client.trialLinks.retrieveCohortArps('illo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nemo', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b17087a2..cf2451bd 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: 'yfuqlstvkuqxlmqzogxka' }, + * { name: 'napxhofmbngxgehkead' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1e3be330..5756d5ab 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('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 b8974b54..d67156b4 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: 'sit', + auth_id: 'inventore', auth_type: 'email_password', - cookies: 'adipisci', + cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: '%$TKQi81Kc', + password: '7RZ@&1=K', port: 8080, - username: 'possimus', + username: 'a', }, - email: 'jesse13@example.org', + email: 'lexus.torphy@example.com', force_connect: false, - name: 'provident', - password: 'q&4;(M11q', - proxyCountry: 'uk', - user_agent: 'velit', - xbc: 'quaerat', + name: 'molestiae', + password: '`>DpRz9"`{:', + proxyCountry: 'us', + user_agent: 'consequuntur', + xbc: 'totam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 437aaaa2..12dd668a 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('omnis', { + 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('omnis', { + 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 19155ed9..5345e43b 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { 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('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 30bdae61..427da94a 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('nesciunt', { + 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('nesciunt', { + 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('nesciunt', { 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('nesciunt', { + const response = await client.posts.comments.list('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 b643af69..02883e18 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 5431ee45..7afc8b31 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: ['upsll'] }, + filter: { tags: ['rqawfnwuylnwnsnavrrjzkju'] }, 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('quidem'); + const responsePromise = client.smartLinks.listClicks('iste'); 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( - 'quidem', + 'iste', { 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('id'); + const responsePromise = client.smartLinks.listConversions('non'); 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( - 'id', + 'non', { 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('doloremque'); + const responsePromise = client.smartLinks.listFans('harum'); 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( - 'doloremque', + 'harum', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('perspiciatis'); + const responsePromise = client.smartLinks.listSpenders('nulla'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'perspiciatis', + 'nulla', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('enim'); + const responsePromise = client.smartLinks.retrieveCohortArps('distinctio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'distinctio', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('officia'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'officia', + '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 34e12d02..097649fe 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: 'kuwfvsrzboyuwowbrzwdgv', tags: ['o'] }, + filter: { search: 'ysx', tags: ['znbteuttq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'twfvhumipbkoaucj', tags: ['hnggcgqfn'] }, + filter: { search: 'jxnxrnnejasckqtipzirttvv', tags: ['idrabsegnjqvbktjjgztbn'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'dmokeftutufv', - tags: ['mugo'], + include_smart_links: true, + search: 'jxcfcimzfskevcxeb', + tags: ['urtjsckrefgamxjrnspbbmkp'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'slcrspkzqfpjxjqxnhzzm', - tags: ['qcsbrg'], + include_smart_links: false, + search: 'zpraobliwvkgfmtcfdg', + tags: ['h'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dc730189..990b3fc7 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('laboriosam', { + 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('laboriosam', { + 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('laboriosam', { + 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('laboriosam', { + 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 76eef2f4..01554ac0 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('voluptas', { 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('voluptas', { 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('voluptas', { 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,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptas', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('dolor', { 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('rerum', { + const response = await client.trackingLinks.getCohortArps('dolor', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { 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('tenetur', { + const response = await client.trackingLinks.getStats('aut', { 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 32b7673c..dac777c3 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('sed', { 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('sed', { 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('sed', { 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('sed', { 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('animi', { + 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('animi', { + 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('illo', { 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('vero', { + const response = await client.trialLinks.retrieveCohortArps('illo', { 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('nemo', { 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('nemo', { + 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 e0dc68a4..f84fb667 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: 'yfuqlstvkuqxlmqzogxka', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'napxhofmbngxgehkead' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'yfuqlstvkuqxlmqzogxka' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'napxhofmbngxgehkead' }); }); // Mock server tests are disabled From a4d1f392afd9e3a2e3d642d7c1efcf0e0d5b3597 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:12:33 +0000 Subject: [PATCH 166/309] 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 +- 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 ++++++++-------- .../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 | 26 +++++++++---------- 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 ++++-- 24 files changed, 118 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0f50575f..1b3e4032 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a884c4303875cc51be36e23eb25753e78483e574ff7993d762efe007a6bcd4ba.yml -openapi_spec_hash: 07d0321b2ed079c79539babf99c860fd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3ba30d96f1276dfa96866091f03f2648fe2567da747121a4102e705242f81c97.yml +openapi_spec_hash: 428f92a8457a26c9c5b5a54ad7258ea9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..cad18534 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('aut'); + * const response = await client.accounts.disconnect( + * 'architecto', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1b1447a7..c983e5fd 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', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e7233b51..aa4e8de9 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( - * 'nesciunt', + * '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( - * 'nesciunt', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6b557a8f..12edd193 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( + * 'nihil', + * { + * 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('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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/smart-links.ts b/src/resources/smart-links.ts index 84b5dc70..1291fa5f 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('iste'); + * const response = await client.smartLinks.listClicks( + * 'omnis', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'non', + * 'hic', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('harum'); + * const response = await client.smartLinks.listFans( + * 'voluptates', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nulla', + * 'laudantium', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('distinctio'); + * await client.smartLinks.retrieveCohortArps('numquam'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'quis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..651e8fba 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( - * 'sed', + * '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('sed', { + * 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 55b3106d..5f7761af 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('dolor', { + * await client.trackingLinks.getCohortArps('vitae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aut', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3cbc7fe1..71503f8d 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'libero', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sed', { + * const trialLink = await client.trialLinks.delete('libero', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'at', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('illo', { + * await client.trialLinks.retrieveCohortArps('perspiciatis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsa', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index cf2451bd..a5fe5b4a 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: 'napxhofmbngxgehkead' }, + * { name: 'lgtzlknyaqdualbphbbvjsc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..f9f058f7 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('architecto'); 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 d67156b4..fb0542a9 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: 'inventore', + auth_id: 'ut', auth_type: 'email_password', - cookies: 'quo', + cookies: 'rerum', customProxy: { host: 'proxy.example.com', - password: '7RZ@&1=K', + password: '-k`bp[J|T$', port: 8080, - username: 'a', + username: 'repellendus', }, - email: 'lexus.torphy@example.com', - force_connect: false, - name: 'molestiae', - password: '`>DpRz9"`{:', - proxyCountry: 'us', - user_agent: 'consequuntur', - xbc: 'totam', + email: 'elouise54@example.org', + force_connect: true, + name: 'quae', + password: ';Y^(*Dv~ { // 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('minima', { 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('minima', { 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 5345e43b..1cb0c754 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('nesciunt', { + 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('nesciunt', { + 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('nesciunt', { + 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('nesciunt', { + 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 25333899..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 427da94a..3c27d9ed 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('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('qui', { + 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('qui', { 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('qui', { + const response = await client.posts.comments.list('nihil', { 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 4ec8acc7..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7afc8b31..5215def6 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: ['rqawfnwuylnwnsnavrrjzkju'] }, + filter: { tags: ['odcls'] }, 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('iste'); + const responsePromise = client.smartLinks.listClicks('omnis'); 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( - 'iste', + 'omnis', { 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('non'); + const responsePromise = client.smartLinks.listConversions('hic'); 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( - 'non', + 'hic', { 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('harum'); + const responsePromise = client.smartLinks.listFans('voluptates'); 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( - 'harum', + 'voluptates', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nulla'); + const responsePromise = client.smartLinks.listSpenders('laudantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'nulla', + 'laudantium', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('distinctio'); + const responsePromise = client.smartLinks.retrieveCohortArps('numquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'distinctio', + 'numquam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 097649fe..d7c83192 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: 'ysx', tags: ['znbteuttq'] }, + filter: { search: 'cksrfbjohbitersehrmm', tags: ['doki'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jxnxrnnejasckqtipzirttvv', tags: ['idrabsegnjqvbktjjgztbn'] }, + filter: { search: 'lsogaoqkqrqooejbmxwkxphap', tags: ['mnudefztmvyulfjkbriylrf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jxcfcimzfskevcxeb', - tags: ['urtjsckrefgamxjrnspbbmkp'], + include_smart_links: false, + search: 'g', + tags: ['tvymppfcvzrioabdk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zpraobliwvkgfmtcfdg', - tags: ['h'], + include_smart_links: true, + search: 'cftdgyxrpxboxrvfgfzwgp', + tags: ['hrtgziujevem'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..46e853d9 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('sed', { + 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('sed', { + 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('sed', { + 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('sed', { + 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 01554ac0..85a26303 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,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('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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('vitae', { 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('dolor', { + const response = await client.trackingLinks.getCohortArps('vitae', { 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('aut', { 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('aut', { + 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 dac777c3..ce0bf333 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('libero', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('libero', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('libero', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('libero', { 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('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('et', { + 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('perspiciatis', { + 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('illo', { + const response = await client.trialLinks.retrieveCohortArps('perspiciatis', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('itaque', { 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('itaque', { 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 f84fb667..0f84451b 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: 'napxhofmbngxgehkead' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'lgtzlknyaqdualbphbbvjsc', + }); 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: 'napxhofmbngxgehkead' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'lgtzlknyaqdualbphbbvjsc', + }); }); // Mock server tests are disabled From 00d94b24bb5fc7293f037723ed5cc24f729e6f0f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 17:12:35 +0000 Subject: [PATCH 167/309] 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 | 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 | 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 +-- 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 | 6 ++--- 28 files changed, 107 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b3e4032..a2e05679 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3ba30d96f1276dfa96866091f03f2648fe2567da747121a4102e705242f81c97.yml -openapi_spec_hash: 428f92a8457a26c9c5b5a54ad7258ea9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b0881e4e39fd4846c30b469a75a965ad46313b2b9e0c8b777efbd6331792193a.yml +openapi_spec_hash: 3b45d2ff6143144238904ca5c4a2ee86 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index cad18534..6bb6558e 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( - * 'architecto', - * ); + * 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 c983e5fd..faa916ca 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( - * 'minima', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4e8de9..2f38ae64 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', + * '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( - * 'est', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12edd193..496823bb 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', + * 'dolor', * { * 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('nihil', { + * const comments = await client.posts.comments.list('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 a84ff073..2b04cbb2 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 1291fa5f..18877f99 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( - * 'omnis', + * 'tenetur', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'hic', + * 'quis', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptates', - * ); + * const response = await client.smartLinks.listFans('eius'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'laudantium', + * 'consequatur', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('numquam'); + * await client.smartLinks.retrieveCohortArps('sit'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quis', + * 'corrupti', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..603be4a9 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', + * 'illo', * { * 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('illo', { * 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 5f7761af..8501638e 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', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('vitae', { + * await client.trackingLinks.getCohortArps('asperiores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'consequatur', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 71503f8d..bf01d65e 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( - * 'libero', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sed', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('libero', { + * const trialLink = await client.trialLinks.delete('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'at', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('perspiciatis', { + * await client.trialLinks.retrieveCohortArps('aperiam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'itaque', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a5fe5b4a..bb030df8 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: 'lgtzlknyaqdualbphbbvjsc' }, + * { name: 'yujeziqxylahfzypdppgq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f9f058f7..5756d5ab 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('architecto'); + 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 fb0542a9..105aa1f1 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: 'rerum', + auth_id: 'ipsam', + auth_type: 'raw_data', + cookies: 'magni', customProxy: { host: 'proxy.example.com', - password: '-k`bp[J|T$', + password: '>0jJAJYnM>', port: 8080, - username: 'repellendus', + username: 'asperiores', }, - email: 'elouise54@example.org', - force_connect: true, - name: 'quae', - password: ';Y^(*Dv~ { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 0afdc663..adec421e 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('minima', { + const responsePromise = client.engagement.messages.getMessageBuyers('alias', { 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('minima', { + const response = await client.engagement.messages.getMessageBuyers('alias', { 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 1cb0c754..19155ed9 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('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('est', { + 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('est', { + 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('est', { + 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 b0d96512..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3c27d9ed..1c44ea01 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('dolor', { 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('dolor', { 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('dolor', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..8e5b0566 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 02883e18..96d399de 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 5215def6..fff2e24e 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: ['odcls'] }, + filter: { tags: ['ahvryygmqdkhsfzwhtrcrcuk'] }, 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('omnis'); + const responsePromise = client.smartLinks.listClicks('tenetur'); 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( - 'omnis', + 'tenetur', { 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('hic'); + const responsePromise = client.smartLinks.listConversions('quis'); 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( - 'hic', + 'quis', { 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('voluptates'); + const responsePromise = client.smartLinks.listFans('eius'); 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( - 'voluptates', + 'eius', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('laudantium'); + const responsePromise = client.smartLinks.listSpenders('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'laudantium', + 'consequatur', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('numquam'); + const responsePromise = client.smartLinks.retrieveCohortArps('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'numquam', + 'sit', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quis'); + const responsePromise = client.smartLinks.retrieveStats('corrupti'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'corrupti', { 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 d7c83192..217ace1b 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: 'cksrfbjohbitersehrmm', tags: ['doki'] }, + filter: { search: 'n', tags: ['jenstofpavmffucofach'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lsogaoqkqrqooejbmxwkxphap', tags: ['mnudefztmvyulfjkbriylrf'] }, + filter: { search: 'ellvsmipbvxvkbycrxxv', tags: ['khecezrxmgbrodnwkd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'g', - tags: ['tvymppfcvzrioabdk'], + search: 'spwmtgrvkcyvbokd', + tags: ['sknpo'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'cftdgyxrpxboxrvfgfzwgp', - tags: ['hrtgziujevem'], + search: 'lmchuoie', + tags: ['zxpnnfmlhmeenpuiqlg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..dd35844b 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('illo', { 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('illo', { 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('illo', { 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('illo', { 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 85a26303..545f17e7 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('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('et', { 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('et', { 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,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('vitae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('asperiores', { + 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('vitae', { + const response = await client.trackingLinks.getCohortArps('asperiores', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sequi', { 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('consequatur', { + const response = await client.trackingLinks.getStats('sequi', { 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 ce0bf333..947e8424 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sed', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sed', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sed', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sed', { 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,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('aperiam', { 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('aperiam', { 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('itaque', { 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; @@ -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('itaque', { + 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 0f84451b..00591f8c 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: 'lgtzlknyaqdualbphbbvjsc', + name: 'yujeziqxylahfzypdppgq', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -24,9 +24,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: 'lgtzlknyaqdualbphbbvjsc', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yujeziqxylahfzypdppgq' }); }); // Mock server tests are disabled From a6410058d0a2b910ba4a5c164e587d880ef77847 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 18:12:36 +0000 Subject: [PATCH 168/309] 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/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 | 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 +++--- .../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 | 24 +++++++---------- .../user-lists/user-lists.test.ts | 6 ++--- 25 files changed, 106 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2e05679..43fa54e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b0881e4e39fd4846c30b469a75a965ad46313b2b9e0c8b777efbd6331792193a.yml -openapi_spec_hash: 3b45d2ff6143144238904ca5c4a2ee86 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11207d3e495c1f7a8737309c2a8c2e0ab11b7e07a76c8ff14a06d1860f09e8b1.yml +openapi_spec_hash: b708bddabd5527e01b859b69d3bd12da config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..15b563e7 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('eum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index faa916ca..4a39bd0b 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( - * 'alias', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..f3d95f1c 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', + * 'qui', * { 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', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 496823bb..c7b0c026 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( - * 'dolor', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('iste', { + * 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('dolor', { + * const comments = await client.posts.comments.list('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..a9767818 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 18877f99..5e415b20 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( - * 'tenetur', + * 'itaque', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quis', + * 'dolores', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('eius'); + * const response = await client.smartLinks.listFans('ad'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'consequatur', + * 'sunt', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sit'); + * await client.smartLinks.retrieveCohortArps('at'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'corrupti', + * 'omnis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 603be4a9..91024512 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( - * 'illo', + * 'consequuntur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequuntur', + * { + * 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 8501638e..a51c1e9e 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', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'omnis', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('asperiores', { + * await client.trackingLinks.getCohortArps('sequi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sequi', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index bf01d65e..43b75a44 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('sed', { + * const trialLink = await client.trialLinks.retrieve('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sed', { + * const trialLink = await client.trialLinks.delete('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'illum', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aperiam', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index bb030df8..ca6564c4 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: 'yujeziqxylahfzypdppgq' }, + * { name: 'sx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..51e2c867 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('eum'); 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 105aa1f1..d41ee979 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: 'ipsam', - auth_type: 'raw_data', - cookies: 'magni', + auth_id: 'enim', + auth_type: 'email_password', + cookies: 'reprehenderit', customProxy: { host: 'proxy.example.com', - password: '>0jJAJYnM>', + password: '-TceH0$!c;QB{>', port: 8080, - username: 'asperiores', + username: 'et', }, - email: 'xkshlerin@example.net', - force_connect: false, - name: 'harum', - password: '3;~61}=EmaktNqt', + email: 'assunta.jacobs@example.org', + force_connect: true, + name: 'officia', + password: '&oa@N<:!#+O.j|#o', proxyCountry: 'uk', - user_agent: 'ut', - xbc: 'sed', + user_agent: 'pariatur', + xbc: 'consequatur', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index adec421e..b251884f 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('alias', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolorem', { 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('alias', { + const response = await client.engagement.messages.getMessageBuyers('dolorem', { 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 19155ed9..c878a4d7 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('qui', { 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('qui', { 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('qui', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1c44ea01..00ba9c94 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('dolor', { + const responsePromise = client.posts.comments.create('iste', { 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('dolor', { + const response = await client.posts.comments.create('iste', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iste', { 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('dolor', { + const response = await client.posts.comments.list('iste', { 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 8e5b0566..4ec8acc7 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 fff2e24e..252828b1 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: ['ahvryygmqdkhsfzwhtrcrcuk'] }, + filter: { tags: ['tzwhfszowgmesqhdxx'] }, 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('tenetur'); + const responsePromise = client.smartLinks.listClicks('itaque'); 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( - 'tenetur', + 'itaque', { 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('quis'); + const responsePromise = client.smartLinks.listConversions('dolores'); 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( - 'quis', + 'dolores', { 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('eius'); + const responsePromise = client.smartLinks.listFans('ad'); 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( - 'eius', + 'ad', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('consequatur'); + const responsePromise = client.smartLinks.listSpenders('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'consequatur', + 'sunt', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sit'); + const responsePromise = client.smartLinks.retrieveCohortArps('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'sit', + 'at', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('corrupti'); + const responsePromise = client.smartLinks.retrieveStats('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'corrupti', + '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 217ace1b..45bfb787 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: ['jenstofpavmffucofach'] }, + filter: { search: 'onqn', tags: ['tkwuesysvdtki'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ellvsmipbvxvkbycrxxv', tags: ['khecezrxmgbrodnwkd'] }, + filter: { search: 'mumpbgocgitsmgtiblespi', tags: ['wujmiqmhfiusnzjyavnlgbruy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'spwmtgrvkcyvbokd', - tags: ['sknpo'], + include_smart_links: true, + search: 'veohuqjerehtcoavx', + tags: ['ayrtrhybofaokzwhiqzqftyeg'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lmchuoie', - tags: ['zxpnnfmlhmeenpuiqlg'], + search: 'v', + tags: ['t'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dd35844b..7432ade3 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('illo', { + const responsePromise = client.stories.highlights.addStory('consequuntur', { 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('illo', { + const response = await client.stories.highlights.addStory('consequuntur', { 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('illo', { + const responsePromise = client.stories.highlights.removeStory('consequuntur', { 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('illo', { + const response = await client.stories.highlights.removeStory('consequuntur', { 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 545f17e7..25380662 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('aut', { 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('aut', { 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('aut', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('asperiores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('sequi', { 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('asperiores', { + const response = await client.trackingLinks.getCohortArps('sequi', { 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('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('rerum', { 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('sequi', { + const response = await client.trackingLinks.getStats('rerum', { 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 947e8424..9b62357e 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('ea', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('ea', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('ea', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('ea', { 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('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('illum', { + 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('aperiam', { - 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('aperiam', { + 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,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('dolorem', { 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('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 00591f8c..db0e7e95 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: 'yujeziqxylahfzypdppgq', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sx' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'yujeziqxylahfzypdppgq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sx' }); }); // Mock server tests are disabled From 8bce9f27a81899c50c0b58b6c561fc365ad0ae64 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:12:30 +0000 Subject: [PATCH 169/309] 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 +- 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 | 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 +-- 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 | 4 +-- 26 files changed, 112 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 43fa54e4..8051ce9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11207d3e495c1f7a8737309c2a8c2e0ab11b7e07a76c8ff14a06d1860f09e8b1.yml -openapi_spec_hash: b708bddabd5527e01b859b69d3bd12da +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c5bae9f14fd34d34ecc2028da321e779ad27f439a3fed07b162ac11ee105154.yml +openapi_spec_hash: ad8a68fc34bd7ef7d0c9a0cbd3e2fb5c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 15b563e7..22f33241 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('eum'); + * const response = await client.accounts.disconnect( + * 'cupiditate', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4a39bd0b..d9c4cb8d 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( - * 'dolorem', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f3d95f1c..37254159 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( - * 'qui', + * 'quae', * { 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( - * 'qui', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7b0c026..33a40fdf 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('iste', { + * const comment = await client.posts.comments.create('aut', { * 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('iste', { + * const comments = await client.posts.comments.list('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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/smart-links.ts b/src/resources/smart-links.ts index 5e415b20..2e1f1e73 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('non'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolores', + * 'ad', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ad'); + * const response = await client.smartLinks.listFans( + * 'voluptatem', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'maxime', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('at'); + * await client.smartLinks.retrieveCohortArps('ipsa'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'omnis', + * 'debitis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 91024512..c556977f 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( - * 'consequuntur', + * 'sed', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequuntur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('sed', { + * 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 a51c1e9e..b147db1b 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( - * 'aut', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sequi', { + * 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( - * 'rerum', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 43b75a44..2bccbae5 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dolores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'est', * { * 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('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorem', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ca6564c4..5e367d22 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: 'sx' }, + * { name: 'o' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 51e2c867..239a4297 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('eum'); + const responsePromise = client.accounts.disconnect('cupiditate'); 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 d41ee979..b69b1ad3 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: 'enim', + auth_id: 'at', auth_type: 'email_password', - cookies: 'reprehenderit', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: '-TceH0$!c;QB{>', + password: 'm~B]=nI=tc', port: 8080, - username: 'et', + username: 'rerum', }, - email: 'assunta.jacobs@example.org', + email: 'kutch.gregoria@example.net', force_connect: true, - name: 'officia', - password: '&oa@N<:!#+O.j|#o', - proxyCountry: 'uk', - user_agent: 'pariatur', - xbc: 'consequatur', + name: 'rem', + password: '"w]7PbtBu2-', + proxyCountry: 'us', + user_agent: 'quo', + xbc: 'sunt', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b251884f..48279c7e 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('dolorem', { + const responsePromise = client.engagement.messages.getMessageBuyers('natus', { 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('dolorem', { + const response = await client.engagement.messages.getMessageBuyers('natus', { 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 c878a4d7..c37b7f3d 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('qui', { + const responsePromise = client.media.vault.lists.media.add('quae', { 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('qui', { + const response = await client.media.vault.lists.media.add('quae', { 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('qui', { + const responsePromise = client.media.vault.lists.media.remove('quae', { 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('qui', { + const response = await client.media.vault.lists.media.remove('quae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..7b042946 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 00ba9c94..e56adcd7 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('iste', { + 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('iste', { + 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('iste', { 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('iste', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 252828b1..0b727c71 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: ['tzwhfszowgmesqhdxx'] }, + filter: { tags: ['kvpjgisitfxxycuf'] }, 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('itaque'); + const responsePromise = client.smartLinks.listClicks('non'); 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( - 'itaque', + 'non', { 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('dolores'); + const responsePromise = client.smartLinks.listConversions('ad'); 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( - 'dolores', + 'ad', { 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('ad'); + const responsePromise = client.smartLinks.listFans('voluptatem'); 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( - 'ad', + 'voluptatem', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sunt'); + const responsePromise = client.smartLinks.listSpenders('maxime'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'maxime', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('at'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'at', + 'ipsa', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('omnis'); + const responsePromise = client.smartLinks.retrieveStats('debitis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'debitis', { 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 45bfb787..aef36349 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: 'onqn', tags: ['tkwuesysvdtki'] }, + filter: { search: 'k', tags: ['fvgcttvfukfc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mumpbgocgitsmgtiblespi', tags: ['wujmiqmhfiusnzjyavnlgbruy'] }, + filter: { search: 'almrcjeseyhpspe', tags: ['nuiytirpzf'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'veohuqjerehtcoavx', - tags: ['ayrtrhybofaokzwhiqzqftyeg'], + search: 'cnflizgsfhoknl', + tags: ['mduqrwwzexriflfsyygcjhozf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'v', - tags: ['t'], + include_smart_links: false, + search: 'btzwrttmhduosvo', + tags: ['gqfgbwopksslomdyepamwngbe'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7432ade3..990b3fc7 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('consequuntur', { + 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('consequuntur', { + 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('consequuntur', { + 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('consequuntur', { + 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 25380662..36097c43 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('tempore', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('tempore', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('tempore', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sequi', { 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; @@ -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('sequi', { + const response = await client.trackingLinks.getCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('necessitatibus', { + 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('rerum', { + const response = await client.trackingLinks.getStats('necessitatibus', { 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 9b62357e..8fc0c63e 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('ea', { 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('ea', { 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('ea', { 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('ea', { 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('et', { + 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('et', { + const response = await client.trialLinks.listSubscribers('est', { 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('ut', { 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; @@ -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('ut', { + const response = await client.trialLinks.retrieveCohortArps('id', { 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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('qui', { 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('dolorem', { + const response = await client.trialLinks.retrieveStats('qui', { 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 db0e7e95..2314150b 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: 'sx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'o' }); 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: 'sx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'o' }); }); // Mock server tests are disabled From 56ece823f9f9910690d12902501dd5b6dde76cfb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:12:31 +0000 Subject: [PATCH 170/309] 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 | 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 | 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 | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 112 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8051ce9e..8d751685 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3c5bae9f14fd34d34ecc2028da321e779ad27f439a3fed07b162ac11ee105154.yml -openapi_spec_hash: ad8a68fc34bd7ef7d0c9a0cbd3e2fb5c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f92ae4fe2cbe0e40a4203678b0e818719b08ce7a689cef395885b634d2296918.yml +openapi_spec_hash: fea736e41949abdeb6a786244046ad8a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 22f33241..e95da2b0 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( - * 'cupiditate', - * ); + * const response = await client.accounts.disconnect('autem'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d9c4cb8d..5a314335 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( - * 'natus', + * 'soluta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 37254159..4016c795 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( - * 'quae', + * 'accusantium', * { 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( - * 'quae', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..c7b0c026 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('aut', { + * const comment = await client.posts.comments.create('iste', { * 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('aut', { + * const comments = await client.posts.comments.list('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 2b04cbb2..a84ff073 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 2e1f1e73..61fecefd 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('non'); + * const response = await client.smartLinks.listClicks( + * 'doloremque', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ad', + * 'quae', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptatem', - * ); + * const response = await client.smartLinks.listFans('illo'); * ``` */ listFans( @@ -129,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'maxime', - * ); + * const response = await client.smartLinks.listSpenders('id'); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ipsa'); + * await client.smartLinks.retrieveCohortArps('iusto'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'debitis', + * 'illum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..a9c614a7 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( - * 'sed', + * '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('sed', { + * 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 b147db1b..81f1ce8d 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( - * 'tempore', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'tempore', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sit', { + * await client.trackingLinks.getCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'necessitatibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('a', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 2bccbae5..dbe02f02 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( - * 'dolores', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('atque', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'occaecati', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'qui', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5e367d22..967b85be 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: 'o' }, + * { name: 'a' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 239a4297..fb9066e2 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('cupiditate'); + const responsePromise = client.accounts.disconnect('autem'); 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 b69b1ad3..5b4c5931 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: 'at', - auth_type: 'email_password', - cookies: 'odit', + auth_id: 'quod', + auth_type: 'raw_data', + cookies: 'modi', customProxy: { host: 'proxy.example.com', - password: 'm~B]=nI=tc', + password: '`8P79+pJzJcg\\Y~0', port: 8080, - username: 'rerum', + username: 'et', }, - email: 'kutch.gregoria@example.net', - force_connect: true, - name: 'rem', - password: '"w]7PbtBu2-', - proxyCountry: 'us', - user_agent: 'quo', - xbc: 'sunt', + email: 'hwilliamson@example.org', + force_connect: false, + name: 'perferendis', + password: '#p0j9{z}Hhf7lCM]', + proxyCountry: 'gb', + user_agent: 'pariatur', + xbc: 'autem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 48279c7e..1a37c80b 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('natus', { + const responsePromise = client.engagement.messages.getMessageBuyers('soluta', { 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('natus', { + const response = await client.engagement.messages.getMessageBuyers('soluta', { 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 c37b7f3d..e3cf055c 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('quae', { + const responsePromise = client.media.vault.lists.media.add('accusantium', { 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('quae', { + const response = await client.media.vault.lists.media.add('accusantium', { 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('quae', { + const responsePromise = client.media.vault.lists.media.remove('accusantium', { 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('quae', { + const response = await client.media.vault.lists.media.remove('accusantium', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..00ba9c94 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('iste', { 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('iste', { 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('iste', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..8e5b0566 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 96d399de..02883e18 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 6b1dc2fd..d13ad1ce 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 0b727c71..c232418f 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: ['kvpjgisitfxxycuf'] }, + filter: { tags: ['qpnquggdswhvjayqppg'] }, 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('non'); + const responsePromise = client.smartLinks.listClicks('doloremque'); 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( - 'non', + 'doloremque', { 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('ad'); + const responsePromise = client.smartLinks.listConversions('quae'); 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( - 'ad', + 'quae', { 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('voluptatem'); + const responsePromise = client.smartLinks.listFans('illo'); 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( - 'voluptatem', + 'illo', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('maxime'); + const responsePromise = client.smartLinks.listSpenders('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'maxime', + 'id', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); + const responsePromise = client.smartLinks.retrieveCohortArps('iusto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsa', + 'iusto', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('debitis'); + const responsePromise = client.smartLinks.retrieveStats('illum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'debitis', + 'illum', { 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 aef36349..2bbc7ee0 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: 'k', tags: ['fvgcttvfukfc'] }, + filter: { search: 'gcxqnn', tags: ['qghvlyldc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'almrcjeseyhpspe', tags: ['nuiytirpzf'] }, + filter: { search: 'b', tags: ['crhiykqcabynpuseoffhzkihw'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'cnflizgsfhoknl', - tags: ['mduqrwwzexriflfsyygcjhozf'], + search: 'rbqwkm', + tags: ['vsvhbtnoabaoquikckbloygw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'btzwrttmhduosvo', - tags: ['gqfgbwopksslomdyepamwngbe'], + search: 'rfex', + tags: ['bbnwhtgtaqt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..fca45b0b 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('sed', { + 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('sed', { + 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('sed', { + 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('sed', { + 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 36097c43..010af80e 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('tempore', { 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('tempore', { 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('tempore', { 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('tempore', { 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('sit', { 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('sit', { + 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,9 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getStats('a', { 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('necessitatibus', { + const response = await client.trackingLinks.getStats('a', { 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 8fc0c63e..2e89c681 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('atque', { 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('atque', { 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('atque', { 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('atque', { 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('occaecati', { 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('occaecati', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { + 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('id', { + const response = await client.trialLinks.retrieveCohortArps('voluptatem', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('dignissimos', { + 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('qui', { + const response = await client.trialLinks.retrieveStats('dignissimos', { 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 2314150b..2a32777e 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: 'o' }); + 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: 'o' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'a' }); }); // Mock server tests are disabled From 5847a3c64f544bdecb9d71e842d159845733eb9e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 17:12:32 +0000 Subject: [PATCH 171/309] 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 | 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 +- src/resources/webhooks.ts | 26 ++++++++++++------- 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 +-- 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 +-- 25 files changed, 126 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d751685..8321094d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f92ae4fe2cbe0e40a4203678b0e818719b08ce7a689cef395885b634d2296918.yml -openapi_spec_hash: fea736e41949abdeb6a786244046ad8a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0ccbed2a4e10a047b507bd5e365e4ece367a1592e55e85bb61803a610eec30e3.yml +openapi_spec_hash: b49ac8c8ce9e05c81a82a6d3fe6be877 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e95da2b0..d9ebe1eb 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('autem'); + * const response = await client.accounts.disconnect('in'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5a314335..c9b0beff 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( - * 'soluta', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4016c795..01f32505 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( - * 'accusantium', + * 'labore', * { 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( - * 'accusantium', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7b0c026..4156f5b2 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('iste', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'aperiam', + * { + * 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('iste', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'aperiam', + * { 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 599a9525..09d6973d 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 61fecefd..07558497 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( - * 'doloremque', + * 'tempora', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quae', + * 'harum', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('illo'); + * const response = await client.smartLinks.listFans( + * 'delectus', + * ); * ``` */ listFans( @@ -129,7 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('id'); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('iusto'); + * await client.smartLinks.retrieveCohortArps('laborum'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'illum', + * 'quisquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..ad3cdb60 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', + * 'veniam', * { * 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('veniam', { * 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 81f1ce8d..a0863a8a 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', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'asperiores', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('quos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('a', { - * 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 dbe02f02..be517610 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( - * 'atque', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('atque', { + * const trialLink = await client.trialLinks.delete('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'occaecati', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dignissimos', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 967b85be..80006d8e 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: 'j' }, * ); * ``` */ diff --git a/src/resources/webhooks.ts b/src/resources/webhooks.ts index 2aeeaea9..1c77a723 100644 --- a/src/resources/webhooks.ts +++ b/src/resources/webhooks.ts @@ -367,8 +367,9 @@ export namespace WebhookListEventsResponse { export interface WebhookCreateParams { /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" - * for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + * "global" for all accounts, "inclusive" for only selected accounts, or + * "exclusive" for all except selected accounts. */ account_scope: string; @@ -379,13 +380,15 @@ export interface WebhookCreateParams { /** * An array of webhook events to subscribe to. For all options, refer to our **List - * Available Events** endpoint. + * Available Events** endpoint. A webhook is single-platform: subscribe to either + * OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. */ events: Array; /** - * An array of account IDs to apply the scope to. Required unless account_scope is - * "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs + * (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + * for Fansly webhooks. Required unless account_scope is "global". */ account_ids?: Array; @@ -397,8 +400,9 @@ export interface WebhookCreateParams { export interface WebhookUpdateParams { /** - * The account scope for the webhook. Use "global" for all accounts, "inclusive" - * for only selected accounts, or "exclusive" for all except selected accounts. + * The account scope for the webhook (OnlyFans and Fansly webhooks alike). Use + * "global" for all accounts, "inclusive" for only selected accounts, or + * "exclusive" for all except selected accounts. */ account_scope: string; @@ -409,13 +413,15 @@ export interface WebhookUpdateParams { /** * An array of webhook events to subscribe to. For all options, refer to our **List - * Available Events** endpoint. + * Available Events** endpoint. A webhook is single-platform: subscribe to either + * OnlyFans events or Fansly (`fansly.*`) events, never both in one webhook. */ events: Array; /** - * An array of account IDs to apply the scope to. Required unless account_scope is - * "global". + * An array of account IDs to apply the scope to. Use OnlyFans account IDs + * (`acct_...`) for OnlyFans webhooks and Fansly account IDs (`fansly_acct_...`) + * for Fansly webhooks. Required unless account_scope is "global". */ account_ids?: Array; diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fb9066e2..a7a3b9d2 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('autem'); + const responsePromise = client.accounts.disconnect('in'); 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 5b4c5931..2432edd2 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: 'quod', - auth_type: 'raw_data', - cookies: 'modi', + auth_id: 'cupiditate', + auth_type: 'mobile_app', + cookies: 'consequatur', customProxy: { host: 'proxy.example.com', - password: '`8P79+pJzJcg\\Y~0', + password: '#o8!Z;zWv`J!})%w', port: 8080, - username: 'et', + username: 'voluptas', }, - email: 'hwilliamson@example.org', + email: 'westley95@example.org', force_connect: false, - name: 'perferendis', - password: '#p0j9{z}Hhf7lCM]', - proxyCountry: 'gb', - user_agent: 'pariatur', - xbc: 'autem', + name: 'voluptate', + password: '"]xfbQjf,vTv=', + proxyCountry: 'uk', + user_agent: 'molestiae', + xbc: 'sit', }, { 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 1a37c80b..b1a0ecbb 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('soluta', { + const responsePromise = client.engagement.messages.getMessageBuyers('veritatis', { 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('soluta', { + const response = await client.engagement.messages.getMessageBuyers('veritatis', { 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 e3cf055c..ff6a24b0 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('accusantium', { + const responsePromise = client.media.vault.lists.media.add('labore', { 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('accusantium', { + const response = await client.media.vault.lists.media.add('labore', { 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('accusantium', { + const responsePromise = client.media.vault.lists.media.remove('labore', { 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('accusantium', { + const response = await client.media.vault.lists.media.remove('labore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 00ba9c94..2ca9cadd 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('iste', { + const responsePromise = client.posts.comments.create('aperiam', { 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('iste', { + const response = await client.posts.comments.create('aperiam', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('aperiam', { 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('iste', { + const response = await client.posts.comments.list('aperiam', { 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 8e5b0566..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c232418f..615c3900 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: ['qpnquggdswhvjayqppg'] }, + filter: { tags: ['alygqiujuqcfbpheoeqtnnhj'] }, 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('doloremque'); + const responsePromise = client.smartLinks.listClicks('tempora'); 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( - 'doloremque', + 'tempora', { 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('quae'); + const responsePromise = client.smartLinks.listConversions('harum'); 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( - 'quae', + 'harum', { 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('illo'); + const responsePromise = client.smartLinks.listFans('delectus'); 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( - 'illo', + 'delectus', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('id'); + const responsePromise = client.smartLinks.listSpenders('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + 'ea', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('iusto'); + const responsePromise = client.smartLinks.retrieveCohortArps('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'iusto', + 'laborum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('illum'); + const responsePromise = client.smartLinks.retrieveStats('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'illum', + 'quisquam', { 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 2bbc7ee0..1dbfb294 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: 'gcxqnn', tags: ['qghvlyldc'] }, + filter: { search: 'cmraibuytgylrfmkzfaizm', tags: ['izxyenxtwp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'b', tags: ['crhiykqcabynpuseoffhzkihw'] }, + filter: { search: 'ar', tags: ['bbjouspfozrmhwtmnslyr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'rbqwkm', - tags: ['vsvhbtnoabaoquikckbloygw'], + search: 'yaiwtqnkpjheeidasgqd', + tags: ['hevhomaozqiphd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'rfex', - tags: ['bbnwhtgtaqt'], + include_smart_links: true, + search: 'bj', + tags: ['kzgwepavwz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..aa7ae307 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('veniam', { 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('veniam', { 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('veniam', { 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('veniam', { 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 010af80e..840e6654 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('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('asperiores', { 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('asperiores', { 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('asperiores', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('quos', { 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('quos', { 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('a', { 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; @@ -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('a', { + 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 2e89c681..adf7cf49 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('atque', { 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('atque', { 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('atque', { 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('atque', { 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('occaecati', { + 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('occaecati', { + 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('voluptatem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('ea', { 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('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('ea', { 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('dignissimos', { - 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; @@ -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('dignissimos', { + 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 2a32777e..5c90dd61 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: '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: 'a' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'j' }); }); // Mock server tests are disabled From 60fc0896052523b9940304ab45e2715a77792075 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 11:12:29 +0000 Subject: [PATCH 172/309] 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/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 | 16 ++++++------ .../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 | 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 | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 115 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8321094d..46a88b44 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0ccbed2a4e10a047b507bd5e365e4ece367a1592e55e85bb61803a610eec30e3.yml -openapi_spec_hash: b49ac8c8ce9e05c81a82a6d3fe6be877 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83dbcb062bcaafa2ca374fc82a51b4b5c57fa2cf01b71d72054b7cffd9c0e7ac.yml +openapi_spec_hash: 937458bff78bf3f033b2a5e3f945a74e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d9ebe1eb..c9346c8f 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('in'); + * 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 c9b0beff..17e9af7c 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( - * 'veritatis', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 01f32505..9395711e 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( - * 'labore', + * 'odit', * { 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( - * 'labore', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 4156f5b2..263bf6ad 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( - * 'aperiam', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ea', { + * 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( - * 'aperiam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ea', { + * 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 a84ff073..c9a094cf 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 07558497..78b7b21b 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', + * 'laboriosam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'harum', + * 'nulla', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'delectus', - * ); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -131,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders( + * 'asperiores', + * ); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('laborum'); + * await client.smartLinks.retrieveCohortArps('voluptate'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quisquam', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ad3cdb60..fa95b066 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( - * 'veniam', + * 'cupiditate', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('veniam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'cupiditate', + * { + * 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 a0863a8a..fecf1c06 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', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quos', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eligendi', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index be517610..a4e19ddb 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', + * 'inventore', * { 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( + * 'inventore', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,9 +156,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.trialLinks.retrieveCohortArps( + * 'exercitationem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieveCohortArps( @@ -180,7 +182,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'cumque', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 80006d8e..8b0d80e5 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: 'ypfnny' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a7a3b9d2..7f7f9364 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('in'); + 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 2432edd2..a05db6f0 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_id: 'repellat', auth_type: 'mobile_app', - cookies: 'consequatur', + cookies: 'neque', customProxy: { host: 'proxy.example.com', - password: '#o8!Z;zWv`J!})%w', + password: '9}h[.pwME@EP#0/*', port: 8080, - username: 'voluptas', + username: 'et', }, - email: 'westley95@example.org', + email: 'zackery.dubuque@example.net', force_connect: false, name: 'voluptate', - password: '"]xfbQjf,vTv=', + password: ':soL { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('veritatis', { + 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('veritatis', { + 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 ff6a24b0..7323de58 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('labore', { + const responsePromise = client.media.vault.lists.media.add('odit', { 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('labore', { + const response = await client.media.vault.lists.media.add('odit', { 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('labore', { + const responsePromise = client.media.vault.lists.media.remove('odit', { 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('labore', { + const response = await client.media.vault.lists.media.remove('odit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..42643a65 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 2ca9cadd..91b2d341 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('aperiam', { + const responsePromise = client.posts.comments.create('ea', { 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('aperiam', { + const response = await client.posts.comments.create('ea', { 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ea', { 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('aperiam', { + const response = await client.posts.comments.list('ea', { 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 02883e18..b643af69 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 d13ad1ce..6b1dc2fd 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 615c3900..21a0b446 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: ['alygqiujuqcfbpheoeqtnnhj'] }, + filter: { tags: ['ov'] }, 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('tempora'); + const responsePromise = client.smartLinks.listClicks('laboriosam'); 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( - 'tempora', + 'laboriosam', { 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('harum'); + const responsePromise = client.smartLinks.listConversions('nulla'); 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( - 'harum', + 'nulla', { 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('delectus'); + const responsePromise = client.smartLinks.listFans('sed'); 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( - 'delectus', + 'sed', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ea'); + const responsePromise = client.smartLinks.listSpenders('asperiores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'asperiores', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('laborum'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptate', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quisquam'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'quisquam', + '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 1dbfb294..8db79289 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: 'cmraibuytgylrfmkzfaizm', tags: ['izxyenxtwp'] }, + filter: { search: 'szl', tags: ['uhsxhhqucsemwuyeqgjptmvy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ar', tags: ['bbjouspfozrmhwtmnslyr'] }, + filter: { search: 'mkkbbxcitgphx', tags: ['cgbjcoccyzhqzrekymdubdvq'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yaiwtqnkpjheeidasgqd', - tags: ['hevhomaozqiphd'], + include_smart_links: false, + search: 'asikjwonkb', + tags: ['ocquwrzgjfhghujpfloeks'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bj', - tags: ['kzgwepavwz'], + search: 'vuciohezgkr', + tags: ['oxhfjldwokp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index aa7ae307..c733eb08 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('veniam', { + const responsePromise = client.stories.highlights.addStory('cupiditate', { 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('veniam', { + const response = await client.stories.highlights.addStory('cupiditate', { 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('veniam', { + const responsePromise = client.stories.highlights.removeStory('cupiditate', { 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('veniam', { + const response = await client.stories.highlights.removeStory('cupiditate', { 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 840e6654..7cbc634d 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('odit', { 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('odit', { 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('odit', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quos', { 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; @@ -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('quos', { + const response = await client.trackingLinks.getCohortArps('rerum', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ipsa', { 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('eligendi', { + const response = await client.trackingLinks.getStats('ipsa', { 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 adf7cf49..436ac22a 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('inventore', { 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('inventore', { 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('inventore', { 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('inventore', { 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('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('qui', { + const response = await client.trialLinks.listSubscribers('et', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('exercitationem', { + 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('ea', { + const response = await client.trialLinks.retrieveCohortArps('exercitationem', { 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('eos', { 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('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 5c90dd61..87e89742 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: 'ypfnny' }); 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: 'ypfnny' }); }); // Mock server tests are disabled From 8f2145c25ae5cd41c17329a14316beb4eca2976b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:12:29 +0000 Subject: [PATCH 173/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/fans/summary.ts | 4 +++ 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 | 13 ++++------ .../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 | 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 +-- 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 115 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 46a88b44..5e0ed373 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83dbcb062bcaafa2ca374fc82a51b4b5c57fa2cf01b71d72054b7cffd9c0e7ac.yml -openapi_spec_hash: 937458bff78bf3f033b2a5e3f945a74e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ecfdaee2bd2a793c347e51a3099b4f59892a20241e3c313b6dff970ade71ef91.yml +openapi_spec_hash: 477c8df190d6ee52136647326cee7d7d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8f..338ca8d9 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('ut'); + * const response = await client.accounts.disconnect('fuga'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 17e9af7c..a13145bc 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', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/fans/summary.ts b/src/resources/fans/summary.ts index 2dc63d98..6ffef36d 100644 --- a/src/resources/fans/summary.ts +++ b/src/resources/fans/summary.ts @@ -66,6 +66,8 @@ export interface SummaryGetSummaryResponse { last_analyzed_at?: string; + last_buy_date?: string; + status?: string; summary_data?: SummaryGetSummaryResponse.SummaryData; @@ -91,6 +93,8 @@ export namespace SummaryGetSummaryResponse { requests?: string; + spend_cadence?: string; + themes?: string; travel_plans?: string; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9395711e..4e8e694d 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( - * 'odit', + * '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( - * 'odit', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 263bf6ad..0b5fb77e 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('ea', { + * const comment = await client.posts.comments.create('est', { * 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('ea', { + * const comments = await client.posts.comments.list('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 c9a094cf..2b04cbb2 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 78b7b21b..707c6505 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( - * 'laboriosam', + * 'optio', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nulla', + * 'voluptatum', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans( + * 'exercitationem', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'asperiores', + * 'voluptatum', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptate'); + * await client.smartLinks.retrieveCohortArps('sunt'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index fa95b066..c795ca95 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( - * 'cupiditate', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'cupiditate', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('id', { + * 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 fecf1c06..0d80319e 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( - * 'odit', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'odit', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'ipsa', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a4e19ddb..0d39b53a 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( - * 'inventore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'inventore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'cupiditate', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,10 +154,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps( - * 'exercitationem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.trialLinks.retrieveCohortArps('tenetur', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieveCohortArps( @@ -182,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eos', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8b0d80e5..c1b8f5ad 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: 'ypfnny' }, + * { name: 'yblh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f9364..95e64def 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('fuga'); 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 a05db6f0..236df2ee 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: 'repellat', - auth_type: 'mobile_app', - cookies: 'neque', + auth_id: 'ut', + auth_type: 'raw_data', + cookies: 'dolores', customProxy: { host: 'proxy.example.com', - password: '9}h[.pwME@EP#0/*', + password: 'Z#2`aO', port: 8080, - username: 'et', + username: 'ipsum', }, - email: 'zackery.dubuque@example.net', + email: 'ledner.robb@example.net', force_connect: false, - name: 'voluptate', - password: ':soL { 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 d25f07dd..b159b247 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('rerum', { 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('rerum', { 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 7323de58..7562fa51 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('odit', { + 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('odit', { + 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('odit', { + 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('odit', { + 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 42643a65..25333899 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 91b2d341..1f347b43 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('ea', { + 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('ea', { + 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('ea', { 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('ea', { + 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 e2edc676..8e5b0566 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 b643af69..96d399de 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 21a0b446..45f78e95 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: ['ov'] }, + filter: { tags: ['kodt'] }, 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('laboriosam'); + const responsePromise = client.smartLinks.listClicks('optio'); 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( - 'laboriosam', + 'optio', { 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('nulla'); + const responsePromise = client.smartLinks.listConversions('voluptatum'); 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( - 'nulla', + 'voluptatum', { 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('sed'); + const responsePromise = client.smartLinks.listFans('exercitationem'); 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( - 'sed', + 'exercitationem', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('asperiores'); + const responsePromise = client.smartLinks.listSpenders('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'asperiores', + 'voluptatum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptate'); + const responsePromise = client.smartLinks.retrieveCohortArps('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + 'sunt', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 8db79289..f6820a56 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: 'szl', tags: ['uhsxhhqucsemwuyeqgjptmvy'] }, + filter: { search: 'dsrkdswnkozmswx', tags: ['pooniigsbhj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mkkbbxcitgphx', tags: ['cgbjcoccyzhqzrekymdubdvq'] }, + filter: { search: 'dltcawzhryxwbzwymholxj', tags: ['vtvosxy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'asikjwonkb', - tags: ['ocquwrzgjfhghujpfloeks'], + include_smart_links: true, + search: 'lsigzdjbt', + tags: ['vzwcedclxvynjmdderqtf'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vuciohezgkr', - tags: ['oxhfjldwokp'], + search: 'uxht', + tags: ['kljjznffzzqbpqu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c733eb08..7b006e42 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('cupiditate', { + const responsePromise = client.stories.highlights.addStory('id', { 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('cupiditate', { + const response = await client.stories.highlights.addStory('id', { 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('cupiditate', { + const responsePromise = client.stories.highlights.removeStory('id', { 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('cupiditate', { + const response = await client.stories.highlights.removeStory('id', { 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 7cbc634d..578e16b3 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('fugit', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('fugit', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('fugit', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('fugit', { 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('eum', { 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('rerum', { + const response = await client.trackingLinks.getCohortArps('eum', { 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptatum', { 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('ipsa', { + const response = await client.trackingLinks.getStats('voluptatum', { 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 436ac22a..7a523074 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('inventore', { 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('inventore', { 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('inventore', { 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('inventore', { 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('et', { + const responsePromise = client.trialLinks.listSubscribers('cupiditate', { 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('cupiditate', { 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('exercitationem', { + const responsePromise = client.trialLinks.retrieveCohortArps('tenetur', { 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('exercitationem', { + const response = await client.trialLinks.retrieveCohortArps('tenetur', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('sint', { 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('eos', { + const response = await client.trialLinks.retrieveStats('sint', { 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 87e89742..2d21ef05 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: 'ypfnny' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yblh' }); 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: 'ypfnny' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yblh' }); }); // Mock server tests are disabled From f76a4bd2540fb40cb5d7e4db915d1872d97c9db8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 05:12:32 +0000 Subject: [PATCH 174/309] 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 | 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 +++++++------- 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 | 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 +-- 28 files changed, 124 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5e0ed373..bf85b21a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ecfdaee2bd2a793c347e51a3099b4f59892a20241e3c313b6dff970ade71ef91.yml -openapi_spec_hash: 477c8df190d6ee52136647326cee7d7d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e06a01a20591d86482a14d9ae9d556abc3baa777581dcfa3213269aa2f4d52f8.yml +openapi_spec_hash: 71de2fbab6888aae97f293774ac7ccff config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 338ca8d9..3c5ed4a9 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('fuga'); + * 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 a13145bc..7e83f2ad 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( - * 'rerum', - * { 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 4e8e694d..49aeda0d 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', + * 'quibusdam', * { 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', + * 'quibusdam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0b5fb77e..bff08deb 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( + * 'laborum', + * { + * 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( + * '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 599a9525..e20f70d1 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 2b04cbb2..c9a094cf 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 707c6505..c433eaba 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( - * 'optio', - * ); + * 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( - * 'voluptatum', + * 'ab', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'exercitationem', + * 'inventore', * ); * ``` */ @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptatum', + * 'maiores', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sunt'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequatur', + * 'ab', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c795ca95..78c9b0c5 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( - * 'id', + * '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('id', { - * 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 0d80319e..d06ea394 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( - * 'fugit', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'fugit', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eum', { + * await client.trackingLinks.getCohortArps('recusandae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatum', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0d39b53a..3e5a6d11 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('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dignissimos', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dignissimos', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'cupiditate', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('tenetur', { + * 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( - * 'sint', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c1b8f5ad..0f82f74f 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: 'yblh' }, + * { name: 'aswkgcghxpyuc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 95e64def..3c3098d8 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('fuga'); + 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 236df2ee..b9aae4f6 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: 'dolores', + auth_id: 'iste', + auth_type: 'email_password', + cookies: 'assumenda', customProxy: { host: 'proxy.example.com', - password: 'Z#2`aO', + password: '~d9Y7SQ_R$d', port: 8080, - username: 'ipsum', + username: 'et', }, - email: 'ledner.robb@example.net', + email: 'gideon.schmidt@example.com', force_connect: false, name: 'est', - password: '{A[O$$POZW+9T%#&k4', - proxyCountry: 'gb', - user_agent: 'est', - xbc: 'sunt', + password: '7D/AnQ+EB1,wP?$:=#', + proxyCountry: 'uk', + user_agent: 'fugiat', + xbc: 'ipsum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b159b247..32dab22b 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('rerum', { + 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('rerum', { + 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 7562fa51..74bc0059 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('quibusdam', { 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('quibusdam', { 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('quibusdam', { 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('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..694c42e4 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 1f347b43..8874da2c 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('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('est', { + 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('est', { 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('est', { + const response = await client.posts.comments.list('laborum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..fd74b68f 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 96d399de..b643af69 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 45f78e95..82fbba23 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: ['kodt'] }, + filter: { tags: ['l'] }, 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('optio'); + const responsePromise = client.smartLinks.listClicks('enim'); 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( - 'optio', + 'enim', { 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('voluptatum'); + const responsePromise = client.smartLinks.listConversions('ab'); 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( - 'voluptatum', + 'ab', { 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('exercitationem'); + const responsePromise = client.smartLinks.listFans('inventore'); 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( - 'exercitationem', + 'inventore', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptatum'); + const responsePromise = client.smartLinks.listSpenders('maiores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'maiores', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sunt'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'sunt', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consequatur'); + const responsePromise = client.smartLinks.retrieveStats('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'ab', { 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 f6820a56..a4a0f703 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: 'dsrkdswnkozmswx', tags: ['pooniigsbhj'] }, + filter: { search: 'jtfdtzq', tags: ['e'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dltcawzhryxwbzwymholxj', tags: ['vtvosxy'] }, + filter: { search: 'tdtpeg', tags: ['tjgrcrwuu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lsigzdjbt', - tags: ['vzwcedclxvynjmdderqtf'], + search: 'gkvvibmkxrhhgsibmjzpvt', + tags: ['tdhpabajynifufxqi'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'uxht', - tags: ['kljjznffzzqbpqu'], + search: 'qjplnmxg', + tags: ['gd'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7b006e42..dfeaef0e 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('id', { + 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('id', { + 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('id', { + 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('id', { + 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 578e16b3..10aa5051 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nihil', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nihil', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nihil', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('recusandae', { + 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('eum', { + const response = await client.trackingLinks.getCohortArps('recusandae', { 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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { 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('voluptatum', { + const response = await client.trackingLinks.getStats('aut', { 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 7a523074..d1042a97 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('dignissimos', { 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('dignissimos', { 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('dignissimos', { 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('dignissimos', { 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('cupiditate', { + 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('cupiditate', { + const response = await client.trialLinks.listSubscribers('est', { 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('tenetur', { + 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('tenetur', { + 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,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('unde', { 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('sint', { + const response = await client.trialLinks.retrieveStats('unde', { 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 2d21ef05..f4c3a4ab 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: 'yblh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aswkgcghxpyuc' }); 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: 'yblh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aswkgcghxpyuc' }); }); // Mock server tests are disabled From 873ac7b51bb7b008c5a97394f53caee5d5ec05d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:12:40 +0000 Subject: [PATCH 175/309] 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 | 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 +++--- .../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 | 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, 117 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf85b21a..82c73c68 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e06a01a20591d86482a14d9ae9d556abc3baa777581dcfa3213269aa2f4d52f8.yml -openapi_spec_hash: 71de2fbab6888aae97f293774ac7ccff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6c1a82ed32365b480a79817cbd851df54bd128c094ece4bd0646cb6a2ec55ca7.yml +openapi_spec_hash: be0216cdd580a5f95f5a46a75d05a717 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a9..79c0b56e 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( + * 'deleniti', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2ad..82ab793d 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( + * 'doloribus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 49aeda0d..f18743af 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( - * 'quibusdam', + * 'optio', * { 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( - * 'quibusdam', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bff08deb..496823bb 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( - * 'laborum', + * 'dolor', * { * 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( - * 'laborum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('dolor', { + * 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 e20f70d1..599a9525 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 c9a094cf..2b04cbb2 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 c433eaba..b6cea9dc 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('enim'); + * const response = await client.smartLinks.listClicks( + * 'dolorum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ab', + * 'animi', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'inventore', - * ); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'maiores', + * 'vitae', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('laboriosam'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ab', + * 'fugiat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 78c9b0c5..56a29991 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', + * 'expedita', * { * 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('expedita', { + * 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 d06ea394..36118e4d 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( - * 'nihil', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nihil', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('recusandae', { + * 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( - * 'aut', + * 'iusto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3e5a6d11..6ff724fe 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( - * 'dignissimos', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('vero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dignissimos', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('vero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'ratione', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sapiente', { + * await client.trialLinks.retrieveCohortArps('eveniet', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'unde', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0f82f74f..50ebcdc0 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: 'aswkgcghxpyuc' }, + * { name: 'zoulxacbrbkfc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d8..d9c5fee6 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('deleniti'); 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 b9aae4f6..9263b4f4 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: 'iste', + auth_id: 'doloribus', auth_type: 'email_password', - cookies: 'assumenda', + cookies: 'nihil', customProxy: { host: 'proxy.example.com', - password: '~d9Y7SQ_R$d', + password: "2{4.Cs0J)sB'@C1", port: 8080, - username: 'et', + username: 'fugiat', }, - email: 'gideon.schmidt@example.com', + email: 'rsanford@example.net', force_connect: false, - name: 'est', - password: '7D/AnQ+EB1,wP?$:=#', + name: 'iusto', + password: '7ArF".J3b2=pNigS2i?D', proxyCountry: 'uk', - user_agent: 'fugiat', - xbc: 'ipsum', + user_agent: 'sed', + 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 32dab22b..38b98b46 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('doloribus', { 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('doloribus', { 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 74bc0059..88f30665 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('quibusdam', { + const responsePromise = client.media.vault.lists.media.add('optio', { 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('quibusdam', { + const response = await client.media.vault.lists.media.add('optio', { 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('quibusdam', { + const responsePromise = client.media.vault.lists.media.remove('optio', { 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('quibusdam', { + const response = await client.media.vault.lists.media.remove('optio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8874da2c..1c44ea01 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('dolor', { 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('dolor', { 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('dolor', { 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('dolor', { 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 fd74b68f..8e5b0566 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 b643af69..96d399de 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 6b1dc2fd..d13ad1ce 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 82fbba23..71e6c830 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: ['l'] }, + filter: { tags: ['ebuwupuxcawdetsvp'] }, 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('enim'); + const responsePromise = client.smartLinks.listClicks('dolorum'); 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( - 'enim', + 'dolorum', { 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('ab'); + const responsePromise = client.smartLinks.listConversions('animi'); 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( - 'ab', + 'animi', { 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('inventore'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'inventore', + 'qui', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('maiores'); + const responsePromise = client.smartLinks.listSpenders('vitae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'maiores', + 'vitae', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('laboriosam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'laboriosam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ab'); + const responsePromise = client.smartLinks.retrieveStats('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'fugiat', { 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 a4a0f703..c2489239 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: 'jtfdtzq', tags: ['e'] }, + filter: { search: 'vsupioxsvsbvr', tags: ['brtoiw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tdtpeg', tags: ['tjgrcrwuu'] }, + filter: { search: 'iookktmedcnljelpcwmlpf', tags: ['ldgfvgjafe'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'gkvvibmkxrhhgsibmjzpvt', - tags: ['tdhpabajynifufxqi'], + include_smart_links: false, + search: 'ifnxwwakoamheqqonapooc', + tags: ['ugxeuvfy'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qjplnmxg', - tags: ['gd'], + include_smart_links: false, + search: 'soaticgzsojqoasbxwoalam', + tags: ['qzo'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dfeaef0e..9955bb30 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('expedita', { 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('expedita', { 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('expedita', { 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('expedita', { 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 10aa5051..e865604e 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('nihil', { 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('nihil', { 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('nihil', { 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,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('nihil', { 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('recusandae', { - 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; @@ -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('recusandae', { + const response = await client.trackingLinks.getCohortArps('atque', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('iusto', { 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('aut', { + const response = await client.trackingLinks.getStats('iusto', { 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 d1042a97..80e864c8 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('vero', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('vero', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('vero', { 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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('vero', { 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('ratione', { 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('ratione', { 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('eveniet', { 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('eveniet', { 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('unde', { 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; @@ -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('unde', { + 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 f4c3a4ab..1e8b0bc5 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: 'aswkgcghxpyuc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zoulxacbrbkfc' }); 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: 'aswkgcghxpyuc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zoulxacbrbkfc' }); }); // Mock server tests are disabled From 61fcffa48a2eaf0bfa164627b046647462480e5c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:12:30 +0000 Subject: [PATCH 176/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/fans/summary.ts | 4 +++ src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 9 ++++--- 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 | 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 +- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++++-- 26 files changed, 114 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 82c73c68..d9fd66fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6c1a82ed32365b480a79817cbd851df54bd128c094ece4bd0646cb6a2ec55ca7.yml -openapi_spec_hash: be0216cdd580a5f95f5a46a75d05a717 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2fa831948efa0ddde11aab36ed04ff599593a82273e9dcf70ceb131fe92c5d87.yml +openapi_spec_hash: 97125f53d10af223f1a85fc6c03621b4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 79c0b56e..cac8af64 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( - * 'deleniti', + * 'corporis', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 82ab793d..25ccf203 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( - * 'doloribus', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/fans/summary.ts b/src/resources/fans/summary.ts index 6ffef36d..86d884b7 100644 --- a/src/resources/fans/summary.ts +++ b/src/resources/fans/summary.ts @@ -75,8 +75,12 @@ export interface SummaryGetSummaryResponse { export namespace SummaryGetSummaryResponse { export interface SummaryData { + content_dislikes?: string; + content_preferences?: string; + dos_and_donts?: string; + family_pets?: string; hobbies?: string; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f18743af..963e3a62 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( - * 'optio', + * 'harum', * { 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( - * 'optio', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 496823bb..35689f1c 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( - * 'dolor', + * 'praesentium', * { * 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('dolor', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'praesentium', + * { 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 b6cea9dc..c6489dba 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( - * 'dolorum', + * 'sequi', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'animi', + * 'dignissimos', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * 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( - * 'vitae', + * 'quasi', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('laboriosam'); + * await client.smartLinks.retrieveCohortArps('magni'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'fugiat', + * 'quisquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56a29991..ae4161ef 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( - * 'expedita', + * 'dicta', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('expedita', { + * await client.stories.highlights.removeStory('dicta', { * 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 36118e4d..9890647f 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', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('atque', { + * 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( - * 'iusto', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6ff724fe..b584d4ac 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('vero', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolore', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vero', { + * const trialLink = await client.trialLinks.delete('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ratione', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eveniet', { + * await client.trialLinks.retrieveCohortArps('neque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 50ebcdc0..b73ee702 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: 'zoulxacbrbkfc' }, + * { name: 'ppgpejdjgklkrkljypnzaruva' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d9c5fee6..b618dcfe 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('deleniti'); + const responsePromise = client.accounts.disconnect('corporis'); 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 9263b4f4..47a70dad 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: 'email_password', - cookies: 'nihil', + auth_id: 'aspernatur', + auth_type: 'mobile_app', + cookies: 'ea', customProxy: { host: 'proxy.example.com', - password: "2{4.Cs0J)sB'@C1", + password: 'xYV}WyAzm', port: 8080, - username: 'fugiat', + username: 'nam', }, - email: 'rsanford@example.net', - force_connect: false, - name: 'iusto', - password: '7ArF".J3b2=pNigS2i?D', - proxyCountry: 'uk', - user_agent: 'sed', - xbc: 'ut', + email: 'upton.clarissa@example.com', + force_connect: true, + name: 'sed', + password: 'MG+.!0P', + proxyCountry: 'us', + user_agent: 'tempora', + 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 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 38b98b46..de3bbf1b 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('doloribus', { + const responsePromise = client.engagement.messages.getMessageBuyers('tempora', { 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('doloribus', { + const response = await client.engagement.messages.getMessageBuyers('tempora', { 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 88f30665..04c402d6 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('optio', { + const responsePromise = client.media.vault.lists.media.add('harum', { 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('optio', { + const response = await client.media.vault.lists.media.add('harum', { 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('optio', { + const responsePromise = client.media.vault.lists.media.remove('harum', { 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('optio', { + const response = await client.media.vault.lists.media.remove('harum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1c44ea01..4b5acdc0 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('dolor', { + const responsePromise = client.posts.comments.create('praesentium', { 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('dolor', { + const response = await client.posts.comments.create('praesentium', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('praesentium', { 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('dolor', { + const response = await client.posts.comments.list('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 71e6c830..72fff708 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: ['ebuwupuxcawdetsvp'] }, + filter: { tags: ['fextbq'] }, 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('dolorum'); + const responsePromise = client.smartLinks.listClicks('sequi'); 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( - 'dolorum', + 'sequi', { 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('animi'); + const responsePromise = client.smartLinks.listConversions('dignissimos'); 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( - 'animi', + 'dignissimos', { 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('qui'); + 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( - 'qui', + 'consequatur', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('vitae'); + const responsePromise = client.smartLinks.listSpenders('quasi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'vitae', + 'quasi', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('laboriosam'); + const responsePromise = client.smartLinks.retrieveCohortArps('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'laboriosam', + 'magni', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('fugiat'); + const responsePromise = client.smartLinks.retrieveStats('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'fugiat', + 'quisquam', { 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 c2489239..3546a823 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: 'vsupioxsvsbvr', tags: ['brtoiw'] }, + filter: { search: 'qzviibuhlropwm', tags: ['jinwkbnypxkztbtpygk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'iookktmedcnljelpcwmlpf', tags: ['ldgfvgjafe'] }, + filter: { search: 'zxiaax', tags: ['sckpkfmvfrjfjmfoc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ifnxwwakoamheqqonapooc', - tags: ['ugxeuvfy'], + include_smart_links: true, + search: 'armn', + tags: ['zizsvznneonwpnzqtgi'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'soaticgzsojqoasbxwoalam', - tags: ['qzo'], + include_smart_links: true, + search: 'iuzkitma', + tags: ['lstwdqlssyuup'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9955bb30..2e35cc8c 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('expedita', { + const responsePromise = client.stories.highlights.addStory('dicta', { 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('expedita', { + const response = await client.stories.highlights.addStory('dicta', { 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('expedita', { + const responsePromise = client.stories.highlights.removeStory('dicta', { 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('expedita', { + const response = await client.stories.highlights.removeStory('dicta', { 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 e865604e..07fac7d6 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('quaerat', { 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('quaerat', { 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('quaerat', { 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('quaerat', { 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('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('atque', { + 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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolores', { 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('iusto', { + const response = await client.trackingLinks.getStats('dolores', { 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 80e864c8..90d6f692 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolore', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolore', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolore', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolore', { 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('ratione', { + const responsePromise = client.trialLinks.listSubscribers('quia', { 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('ratione', { + const response = await client.trialLinks.listSubscribers('quia', { 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('eveniet', { + const responsePromise = client.trialLinks.retrieveCohortArps('neque', { 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('eveniet', { + const response = await client.trialLinks.retrieveCohortArps('neque', { 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('voluptatem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('maiores', { 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('voluptatem', { + const response = await client.trialLinks.retrieveStats('maiores', { 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 1e8b0bc5..677017e0 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: 'zoulxacbrbkfc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'ppgpejdjgklkrkljypnzaruva', + }); 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: 'zoulxacbrbkfc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'ppgpejdjgklkrkljypnzaruva', + }); }); // Mock server tests are disabled From 27db2cf5729dbb3765e0afcb0175f5e6a1dc76de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:12:31 +0000 Subject: [PATCH 177/309] 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 +- src/resources/smart-links.ts | 14 +++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 6 ++--- 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 +-- .../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 | 12 ++++----- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 98 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index d9fd66fa..9eb19592 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2fa831948efa0ddde11aab36ed04ff599593a82273e9dcf70ceb131fe92c5d87.yml -openapi_spec_hash: 97125f53d10af223f1a85fc6c03621b4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83e9593ec600f271bb0e17a0bb62da1bfaee097ec0b92569e729c73759961b24.yml +openapi_spec_hash: 06950b40d722d1f1c91d368fa59c83aa config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index cac8af64..6bb6558e 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( - * 'corporis', - * ); + * 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 25ccf203..389aee82 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( - * 'tempora', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 963e3a62..88ae4fb6 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( - * 'harum', + * 'enim', * { 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( - * 'harum', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 35689f1c..c0302435 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( - * 'praesentium', + * 'occaecati', * { * 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( - * 'praesentium', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 c6489dba..3b04b7d5 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( - * 'sequi', + * 'ipsum', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dignissimos', + * 'sapiente', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequatur', - * ); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quasi', + * 'dolorum', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('magni'); + * await client.smartLinks.retrieveCohortArps('rem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quisquam', + * 'totam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ae4161ef..3e3e1c83 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( - * 'dicta', + * 'dolor', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dicta', { + * await client.stories.highlights.removeStory('dolor', { * 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 9890647f..cc2c4a3d 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( - * 'quaerat', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quaerat', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolores', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b584d4ac..bb92a064 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( - * 'dolore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolore', { + * const trialLink = await client.trialLinks.delete('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quia', + * 'minima', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('neque', { + * await client.trialLinks.retrieveCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'maiores', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b73ee702..5e367d22 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: 'ppgpejdjgklkrkljypnzaruva' }, + * { name: 'o' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b618dcfe..5756d5ab 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('corporis'); + 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 47a70dad..747b87b6 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: 'mobile_app', - cookies: 'ea', + auth_id: 'pariatur', + auth_type: 'raw_data', + cookies: 'corrupti', customProxy: { host: 'proxy.example.com', - password: 'xYV}WyAzm', + password: 'bHoHJHvC2Jk%', port: 8080, - username: 'nam', + username: 'nemo', }, - email: 'upton.clarissa@example.com', - force_connect: true, - name: 'sed', - password: 'MG+.!0P', - proxyCountry: 'us', - user_agent: 'tempora', - xbc: 'vel', + email: 'rquitzon@example.net', + force_connect: false, + name: 'sint', + password: 'hu@QU[4Ju6w(bP', + proxyCountry: 'uk', + user_agent: 'ullam', + xbc: 'sit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index de3bbf1b..0b2a1225 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('tempora', { + const responsePromise = client.engagement.messages.getMessageBuyers('vitae', { 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('tempora', { + const response = await client.engagement.messages.getMessageBuyers('vitae', { 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 04c402d6..56699230 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('harum', { + const responsePromise = client.media.vault.lists.media.add('enim', { 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('harum', { + const response = await client.media.vault.lists.media.add('enim', { 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('harum', { + const responsePromise = client.media.vault.lists.media.remove('enim', { 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('harum', { + const response = await client.media.vault.lists.media.remove('enim', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..e56040c2 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 4b5acdc0..fb5350c3 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('praesentium', { + const responsePromise = client.posts.comments.create('occaecati', { 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('praesentium', { + const response = await client.posts.comments.create('occaecati', { 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('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('occaecati', { 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('praesentium', { + const response = await client.posts.comments.list('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..fd74b68f 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 6b1dc2fd..d13ad1ce 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 72fff708..cdcf2a90 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: ['fextbq'] }, + filter: { tags: ['znsgzattbdwfrpadpmawtmuhb'] }, 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('sequi'); + const responsePromise = client.smartLinks.listClicks('ipsum'); 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( - 'sequi', + 'ipsum', { 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('dignissimos'); + const responsePromise = client.smartLinks.listConversions('sapiente'); 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( - 'dignissimos', + 'sapiente', { 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('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( - 'consequatur', + 'et', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quasi'); + const responsePromise = client.smartLinks.listSpenders('dolorum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'quasi', + 'dolorum', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('magni'); + const responsePromise = client.smartLinks.retrieveCohortArps('rem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'magni', + 'rem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quisquam'); + const responsePromise = client.smartLinks.retrieveStats('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'quisquam', + 'totam', { 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 3546a823..ed1915fa 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: 'qzviibuhlropwm', tags: ['jinwkbnypxkztbtpygk'] }, + filter: { search: 'zfdiovhcjhihmk', tags: ['czwnuscpddjhtsyzbafc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zxiaax', tags: ['sckpkfmvfrjfjmfoc'] }, + filter: { search: 'ughvayjm', tags: ['yd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'armn', - tags: ['zizsvznneonwpnzqtgi'], + search: 'yo', + tags: ['eiaeqbbmetjpeemsminlaxrlr'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'iuzkitma', - tags: ['lstwdqlssyuup'], + search: 'ghzibxfawnbpljuezenbybj', + tags: ['wtdrskdsnbixwoq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2e35cc8c..d2929fa3 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('dicta', { + 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('dicta', { + 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('dicta', { + 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('dicta', { + 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 07fac7d6..e7f6541d 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('amet', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('amet', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,7 +92,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('praesentium', { 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('dolores', { + const response = await client.trackingLinks.getStats('praesentium', { 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 90d6f692..10ecd06a 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('quia', { + const responsePromise = client.trialLinks.listSubscribers('minima', { 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('quia', { + const response = await client.trialLinks.listSubscribers('minima', { 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('neque', { + const responsePromise = client.trialLinks.retrieveCohortArps('omnis', { 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('neque', { + const response = await client.trialLinks.retrieveCohortArps('omnis', { 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('maiores', { 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('maiores', { + 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 677017e0..2314150b 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: 'ppgpejdjgklkrkljypnzaruva', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'o' }); 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: 'ppgpejdjgklkrkljypnzaruva', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'o' }); }); // Mock server tests are disabled From d378396db52989a50573241f9a856b0d973b3376 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 19:12:34 +0000 Subject: [PATCH 178/309] 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 | 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 | 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 110 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9eb19592..c2dbe56a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-83e9593ec600f271bb0e17a0bb62da1bfaee097ec0b92569e729c73759961b24.yml -openapi_spec_hash: 06950b40d722d1f1c91d368fa59c83aa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54d3b6e23bd2de9cde8fd6f59b4897de40a4ede649e379cb4b11d9715a3be1d4.yml +openapi_spec_hash: 9b10c6d498a07c80ad95978d8d70456f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..1114e44c 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('aut'); + * const response = await client.accounts.disconnect( + * 'deserunt', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 389aee82..ce0d8c0c 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( - * 'vitae', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 88ae4fb6..82ed43b8 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( - * 'enim', + * '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( - * 'enim', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c0302435..496823bb 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( - * 'occaecati', + * 'dolor', * { * 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( - * 'occaecati', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('dolor', { + * 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 e20f70d1..a9767818 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/smart-links.ts b/src/resources/smart-links.ts index 3b04b7d5..2df568a9 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( - * 'ipsum', - * ); + * const response = await client.smartLinks.listClicks('id'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sapiente', + * 'eos', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'dolorum', - * ); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('rem'); + * await client.smartLinks.retrieveCohortArps('ut'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'totam', + * 'natus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e3e1c83..ad598b9d 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', + * 'ducimus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolor', { + * await client.stories.highlights.removeStory('ducimus', { * 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 cc2c4a3d..5dc70719 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( - * 'amet', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'amet', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'praesentium', - * { 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 bb92a064..2e6f1294 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'repudiandae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'repudiandae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'minima', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('omnis', { + * await client.trialLinks.retrieveCohortArps('provident', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5e367d22..635ded48 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: 'o' }, + * { name: 'sqmwsrhiaubyuadrl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..a1e32c3e 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('deserunt'); 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 747b87b6..f0c0df68 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: 'pariatur', - auth_type: 'raw_data', - cookies: 'corrupti', + auth_id: 'consequuntur', + auth_type: 'email_password', + cookies: 'quod', customProxy: { host: 'proxy.example.com', - password: 'bHoHJHvC2Jk%', + password: '#oVkM?8kd";~V}B', port: 8080, - username: 'nemo', + username: 'ullam', }, - email: 'rquitzon@example.net', - force_connect: false, - name: 'sint', - password: 'hu@QU[4Ju6w(bP', - proxyCountry: 'uk', - user_agent: 'ullam', - xbc: 'sit', + email: 'sage54@example.com', + force_connect: true, + name: 'in', + password: 'auWnTuS;', + proxyCountry: 'us', + user_agent: 'placeat', + xbc: 'rerum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 0b2a1225..956a8a32 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('vitae', { + 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('vitae', { + 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 56699230..02779d6e 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('enim', { + 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('enim', { + 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('enim', { + 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('enim', { + 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 e56040c2..42643a65 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 fb5350c3..1c44ea01 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('occaecati', { + const responsePromise = client.posts.comments.create('dolor', { 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('occaecati', { + const response = await client.posts.comments.create('dolor', { 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('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolor', { 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('occaecati', { + const response = await client.posts.comments.list('dolor', { 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 fd74b68f..4ec8acc7 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 cdcf2a90..77904aef 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: ['znsgzattbdwfrpadpmawtmuhb'] }, + filter: { tags: ['bjhbcnjteisr'] }, 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('ipsum'); + const responsePromise = client.smartLinks.listClicks('id'); 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( - 'ipsum', + 'id', { 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('sapiente'); + const responsePromise = client.smartLinks.listConversions('eos'); 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( - 'sapiente', + 'eos', { 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('et'); + const responsePromise = client.smartLinks.listFans('sed'); 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( - 'et', + 'sed', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolorum'); + const responsePromise = client.smartLinks.listSpenders('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'ea', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('rem'); + const responsePromise = client.smartLinks.retrieveCohortArps('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'ut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('totam'); + const responsePromise = client.smartLinks.retrieveStats('natus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'totam', + '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 ed1915fa..6b0c4ed1 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: 'zfdiovhcjhihmk', tags: ['czwnuscpddjhtsyzbafc'] }, + filter: { search: 'uwiogro', tags: ['luxwuzngwguklyppewzowp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ughvayjm', tags: ['yd'] }, + filter: { search: 'p', tags: ['mgbhsa'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'yo', - tags: ['eiaeqbbmetjpeemsminlaxrlr'], + search: 'nrrodvmfmbu', + tags: ['jhjgcdcemygnwuy'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ghzibxfawnbpljuezenbybj', - tags: ['wtdrskdsnbixwoq'], + search: 'njomyxrbatuoezid', + tags: ['hjackixkuxqmv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d2929fa3..d27cb4df 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('ducimus', { 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('ducimus', { 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('ducimus', { 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('ducimus', { 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 e7f6541d..bed0d3e6 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('amet', { 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('amet', { 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('amet', { 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('amet', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('nisi', { 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('nisi', { 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('praesentium', { 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 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('praesentium', { + 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 10ecd06a..41e5d706 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('qui', { 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('qui', { 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('qui', { 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('qui', { 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('minima', { + const responsePromise = client.trialLinks.listSubscribers('sit', { 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('minima', { + const response = await client.trialLinks.listSubscribers('sit', { 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('omnis', { + const responsePromise = client.trialLinks.retrieveCohortArps('provident', { 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('omnis', { + const response = await client.trialLinks.retrieveCohortArps('provident', { 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('ut', { 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; @@ -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('ut', { + 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 2314150b..ff697ace 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: 'o' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sqmwsrhiaubyuadrl' }); 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: 'o' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sqmwsrhiaubyuadrl' }); }); // Mock server tests are disabled From d6863b6b734fab1c467e555b018920fac0076903 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 20:12:30 +0000 Subject: [PATCH 179/309] 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 ++++------ 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 | 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 +++--- tests/api-resources/profiles.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 23 files changed, 105 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2dbe56a..191e31fc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54d3b6e23bd2de9cde8fd6f59b4897de40a4ede649e379cb4b11d9715a3be1d4.yml -openapi_spec_hash: 9b10c6d498a07c80ad95978d8d70456f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3c58cf3159784ef92e18d7dad42c0907ac3e530eae4b514202a6c8db5025ac4.yml +openapi_spec_hash: 1f762a7e9958679c565f9371c13e85e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1114e44c..dc2c28ba 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( - * 'deserunt', + * 'necessitatibus', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index ce0d8c0c..5a8eca54 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', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 82ed43b8..2f38ae64 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', + * '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( - * 'quis', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 496823bb..185f935b 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( - * 'dolor', - * { - * 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,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('dolor', { + * const comments = await client.posts.comments.list('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 2df568a9..341996f3 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('qui'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eos', + * 'ut', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans('autem'); * ``` */ listFans( @@ -127,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders( + * 'nihil', + * ); * ``` */ listSpenders( @@ -143,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ut'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -165,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'natus', + * 'placeat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ad598b9d..3e57276a 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( - * 'ducimus', + * '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('ducimus', { + * 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 5dc70719..56a740b4 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', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'enim', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nisi', { + * await client.trackingLinks.getCohortArps('enim', { * 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( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 2e6f1294..6dc9472f 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', + * 'labore', * { 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('labore', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'reprehenderit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('provident', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'esse', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 635ded48..e4104f89 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: 'sqmwsrhiaubyuadrl' }, + * { name: 'vedgty' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1e32c3e..3f141528 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('deserunt'); + const responsePromise = client.accounts.disconnect('necessitatibus'); 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 f0c0df68..da89fc09 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: 'quod', + auth_id: 'eos', + auth_type: 'mobile_app', + cookies: 'eum', customProxy: { host: 'proxy.example.com', - password: '#oVkM?8kd";~V}B', + password: '$8%}Ue_i~N$4', port: 8080, - username: 'ullam', + username: 'itaque', }, - email: 'sage54@example.com', + email: 'stoltenberg.jennings@example.org', force_connect: true, - name: 'in', - password: 'auWnTuS;', - proxyCountry: 'us', - user_agent: 'placeat', - xbc: 'rerum', + name: 'ut', + password: '_\\[n { // 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('dolores', { 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('dolores', { 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 02779d6e..19155ed9 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('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('quis', { + 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('quis', { + 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('quis', { + 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 42643a65..25333899 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 1c44ea01..a5ecaaf6 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('dolor', { + 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('dolor', { + 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('dolor', { 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('dolor', { + 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 9bf5999b..ad49ad2e 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 77904aef..4074f148 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: ['bjhbcnjteisr'] }, + filter: { tags: ['qgl'] }, 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('id'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'id', + 'qui', { 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('eos'); + 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( - 'eos', + '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('sed'); + const responsePromise = client.smartLinks.listFans('autem'); 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( - 'sed', + 'autem', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ea'); + const responsePromise = client.smartLinks.listSpenders('nihil'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'nihil', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ut'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('natus'); + const responsePromise = client.smartLinks.retrieveStats('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'placeat', { 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 6b0c4ed1..242575cc 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: 'uwiogro', tags: ['luxwuzngwguklyppewzowp'] }, + filter: { search: 'hsqnuwegbpv', tags: ['utnan'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'p', tags: ['mgbhsa'] }, + filter: { search: 'favwwdswgtvoppddvnzuvw', tags: ['ezwzbvcnsijetucfllwxcv'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nrrodvmfmbu', - tags: ['jhjgcdcemygnwuy'], + include_smart_links: false, + search: 'twbxyogspluu', + tags: ['dxxootgbelyxzccella'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'njomyxrbatuoezid', - tags: ['hjackixkuxqmv'], + include_smart_links: false, + search: 'sobutjunkvl', + tags: ['xhopyzujyyjrhesptzazoinb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d27cb4df..3b4f631b 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('ducimus', { + 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('ducimus', { + 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('ducimus', { + 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('ducimus', { + 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 bed0d3e6..fd865c65 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('quaerat', { 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('quaerat', { 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('quaerat', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('enim', { 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('nisi', { + const response = await client.trackingLinks.getCohortArps('enim', { 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('voluptatem', { 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('voluptatem', { 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 41e5d706..f1af4b0e 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('labore', { 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('labore', { 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('labore', { 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('labore', { 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('sit', { + 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('sit', { + const response = await client.trialLinks.listSubscribers('reprehenderit', { 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('provident', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { 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('provident', { + const response = await client.trialLinks.retrieveCohortArps('et', { 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('esse', { 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; @@ -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('esse', { + 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 ff697ace..60ef1de0 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: 'sqmwsrhiaubyuadrl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vedgty' }); 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: 'sqmwsrhiaubyuadrl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vedgty' }); }); // Mock server tests are disabled From 46bb3108ad58222fabcfd3534a76b890c4bbad49 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 23:12:34 +0000 Subject: [PATCH 180/309] 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 | 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 | 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 +++--- .../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 | 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, 120 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 191e31fc..96166b18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f3c58cf3159784ef92e18d7dad42c0907ac3e530eae4b514202a6c8db5025ac4.yml -openapi_spec_hash: 1f762a7e9958679c565f9371c13e85e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-aadc8db09f16f7e55f02b26c081a0a1a57f0a730c7c96a4edafae3e693f4b002.yml +openapi_spec_hash: 34c9b28dda609f957abbd3d413fe200a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index dc2c28ba..3c4bd801 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( - * 'necessitatibus', - * ); + * const response = await client.accounts.disconnect('natus'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5a8eca54..4a39bd0b 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( - * 'dolores', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..a9b53c10 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 185f935b..1da3469e 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( + * 'impedit', + * { + * 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( + * 'impedit', + * { 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 a9767818..599a9525 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 2b04cbb2..41feb4c0 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 341996f3..d3ab459f 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( + * 'minus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'repellat', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('autem'); + * const response = await client.smartLinks.listFans( + * 'laudantium', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nihil', + * 'dolor', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('tempora'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'placeat', + * 'at', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e57276a..07b058a4 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', + * 'vel', * { * 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('vel', { * 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 56a740b4..251114f1 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( - * 'quaerat', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quaerat', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('enim', { + * 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( - * 'voluptatem', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6dc9472f..3709bd22 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( - * 'labore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('labore', { + * const trialLink = await client.trialLinks.delete('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'reprehenderit', + * 'expedita', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('nobis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'facere', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e4104f89..e641b627 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: 'vedgty' }, + * { name: 'dhhjiudcqfoy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3f141528..7c39ae68 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('necessitatibus'); + const responsePromise = client.accounts.disconnect('natus'); 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 da89fc09..b7df424c 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: 'eos', - auth_type: 'mobile_app', - cookies: 'eum', + auth_id: 'sit', + auth_type: 'raw_data', + cookies: 'animi', customProxy: { host: 'proxy.example.com', - password: '$8%}Ue_i~N$4', + password: 'T+JK4LV-3_3b?`', port: 8080, - username: 'itaque', + username: 'eveniet', }, - email: 'stoltenberg.jennings@example.org', - force_connect: true, - name: 'ut', - password: '_\\[ne&Aj<`%4$7G', + proxyCountry: 'us', + user_agent: 'sed', + xbc: 'cum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 50105978..b251884f 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('dolores', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolorem', { 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('dolores', { + const response = await client.engagement.messages.getMessageBuyers('dolorem', { 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 19155ed9..130dc742 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 25333899..694c42e4 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 a5ecaaf6..bf709685 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('impedit', { 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('impedit', { 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('impedit', { 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('impedit', { 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 4ec8acc7..8e5b0566 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 4074f148..fc90c048 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: ['qgl'] }, + filter: { tags: ['oixuzikzeiobfew'] }, 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('qui'); + const responsePromise = client.smartLinks.listClicks('minus'); 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( - 'qui', + 'minus', { 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('repellat'); 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', + 'repellat', { 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('autem'); + const responsePromise = client.smartLinks.listFans('laudantium'); 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( - 'autem', + 'laudantium', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nihil'); + const responsePromise = client.smartLinks.listSpenders('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'nihil', + 'dolor', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('tempora'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'tempora', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('placeat'); + const responsePromise = client.smartLinks.retrieveStats('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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( - 'placeat', + '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 242575cc..01942c7a 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: 'hsqnuwegbpv', tags: ['utnan'] }, + filter: { search: 'qvtmt', tags: ['rbb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'favwwdswgtvoppddvnzuvw', tags: ['ezwzbvcnsijetucfllwxcv'] }, + filter: { search: 'lcazpaakghxtjqp', tags: ['vhjccgbfuqfghfllnpnf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'twbxyogspluu', - tags: ['dxxootgbelyxzccella'], + include_smart_links: true, + search: 'ymllodsbt', + tags: ['hjaesfntacgfov'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'sobutjunkvl', - tags: ['xhopyzujyyjrhesptzazoinb'], + include_smart_links: true, + search: 'ienxkxvlxswgzkvvzbdzhck', + tags: ['dmhwbkeerohqcdsfsocwyn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b4f631b..a347fadd 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('vel', { 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('vel', { 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('vel', { 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('vel', { 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 fd865c65..870b5a8f 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('atque', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('atque', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('atque', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('enim', { 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; @@ -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('enim', { + const response = await client.trackingLinks.getCohortArps('et', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ipsam', { 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('voluptatem', { + const response = await client.trackingLinks.getStats('ipsam', { 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 f1af4b0e..55a18520 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { 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('expedita', { 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('expedita', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('nobis', { + 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('et', { + const response = await client.trialLinks.retrieveCohortArps('nobis', { 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('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptas', { 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('facere', { + const response = await client.trialLinks.retrieveStats('voluptas', { 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 60ef1de0..8d23398f 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: 'vedgty' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dhhjiudcqfoy' }); 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: 'vedgty' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dhhjiudcqfoy' }); }); // Mock server tests are disabled From 2c214c977e81b568453bedfca9e20ba71eded732 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 01:12:30 +0000 Subject: [PATCH 181/309] 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 | 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 ++++++++-------- 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/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 | 6 +++-- 23 files changed, 103 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index 96166b18..2d51f7f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-aadc8db09f16f7e55f02b26c081a0a1a57f0a730c7c96a4edafae3e693f4b002.yml -openapi_spec_hash: 34c9b28dda609f957abbd3d413fe200a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a281ad8120bcab23714426a32e3b2a2b1f6340101179dd5194f5e13a54c92419.yml +openapi_spec_hash: b0ea15843d5237618d447796c6a1398f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c4bd801..2d703f78 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('natus'); + * 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 4a39bd0b..7e83f2ad 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( - * 'dolorem', - * { 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 a9b53c10..e1713e4e 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', + * '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( - * 'eligendi', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1da3469e..1e5e4ad5 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', + * '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( - * 'impedit', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d3ab459f..91f00e30 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( - * 'minus', + * 'ducimus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'repellat', + * 'quo', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'laudantium', - * ); + * const response = await client.smartLinks.listFans('quae'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolor', + * 'voluptate', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tempora'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'at', + * 'quia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 07b058a4..fdc3bd61 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( - * 'vel', + * 'officia', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('vel', { + * await client.stories.highlights.removeStory('officia', { * 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 251114f1..dd343aed 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( - * 'atque', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'atque', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('molestias', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'ipsam', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3709bd22..8af4c718 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'rerum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { + * const trialLink = await client.trialLinks.delete('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'expedita', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nobis', { + * await client.trialLinks.retrieveCohortArps('nesciunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptas', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e641b627..edc3b527 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: 'dhhjiudcqfoy' }, + * { name: 'vtjdvjrwhcuxvbjwxduwq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7c39ae68..e5ed4ee6 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('natus'); + 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 b7df424c..358e1143 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: 'sit', - auth_type: 'raw_data', - cookies: 'animi', + auth_id: 'quia', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'T+JK4LV-3_3b?`', + password: 'd~e{YFe&Aj<`%4$7G', - proxyCountry: 'us', - user_agent: 'sed', - xbc: 'cum', + name: 'aut', + password: 'r_=Ke0fIkLiK?', + proxyCountry: 'gb', + user_agent: 'doloremque', + 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 229de463..c17a81d6 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 b251884f..32dab22b 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('dolorem', { + 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('dolorem', { + 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 130dc742..aee2c981 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('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('eligendi', { + 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('eligendi', { + 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('eligendi', { + 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 694c42e4..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bf709685..8aee5efa 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('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('impedit', { + 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('impedit', { 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('impedit', { + const response = await client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index fc90c048..95bdabfb 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: ['oixuzikzeiobfew'] }, + filter: { tags: ['ofjmvhr'] }, 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('minus'); + const responsePromise = client.smartLinks.listClicks('ducimus'); 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( - 'minus', + 'ducimus', { 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('repellat'); + const responsePromise = client.smartLinks.listConversions('quo'); 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( - 'repellat', + 'quo', { 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('laudantium'); + const responsePromise = client.smartLinks.listFans('quae'); 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( - 'laudantium', + 'quae', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolor'); + const responsePromise = client.smartLinks.listSpenders('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'dolor', + 'voluptate', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tempora'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'tempora', + 'est', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('at'); + const responsePromise = client.smartLinks.retrieveStats('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 01942c7a..1f9cb810 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: 'qvtmt', tags: ['rbb'] }, + filter: { search: 'ixppgeevgatzepepxifaa', tags: ['euzekzc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lcazpaakghxtjqp', tags: ['vhjccgbfuqfghfllnpnf'] }, + filter: { search: 'fqenxfjbvewiifhgspv', tags: ['acneauhpxuoomwlbstpj'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ymllodsbt', - tags: ['hjaesfntacgfov'], + include_smart_links: false, + search: 'stopvqglkmmpvhgj', + tags: ['ty'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ienxkxvlxswgzkvvzbdzhck', - tags: ['dmhwbkeerohqcdsfsocwyn'], + search: 'bgjxknhiafnbxcxbrapebh', + tags: ['pcyeznwrk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a347fadd..7f74ac59 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('vel', { + 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('vel', { + 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('vel', { + 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('vel', { + 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 870b5a8f..498c53f7 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('facilis', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('facilis', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('facilis', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('facilis', { 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('molestias', { + 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('molestias', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eum', { 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('ipsam', { + const response = await client.trackingLinks.getStats('eum', { 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 55a18520..8620e66f 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('qui', { 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('qui', { 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('qui', { 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('qui', { 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('expedita', { + const responsePromise = client.trialLinks.listSubscribers('voluptas', { 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('expedita', { + const response = await client.trialLinks.listSubscribers('voluptas', { 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('nobis', { + const responsePromise = client.trialLinks.retrieveCohortArps('nesciunt', { 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('nobis', { + const response = await client.trialLinks.retrieveCohortArps('nesciunt', { 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('voluptas', { 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 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptas', { + 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 8d23398f..59c0daf5 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: 'dhhjiudcqfoy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'vtjdvjrwhcuxvbjwxduwq', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'dhhjiudcqfoy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vtjdvjrwhcuxvbjwxduwq' }); }); // Mock server tests are disabled From aeb9cd7289ea350aed75a424f338fa7bc4dc04ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 02:12:29 +0000 Subject: [PATCH 182/309] 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 | 4 +-- 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 | 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 | 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 | 6 ++--- 23 files changed, 106 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2d51f7f3..28ab01ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a281ad8120bcab23714426a32e3b2a2b1f6340101179dd5194f5e13a54c92419.yml -openapi_spec_hash: b0ea15843d5237618d447796c6a1398f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be1f3fec683db5e55b47196d3677cb0502c13822eef2b5fcba723ac701d8745c.yml +openapi_spec_hash: d65f87233bd2b9a082858b75eb2a50d6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2d703f78..cad18534 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('est'); + * const response = await client.accounts.disconnect( + * 'architecto', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2ad..82784beb 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( + * 'placeat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e1713e4e..b79770d4 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', + * 'sapiente', * { 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', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad5..21410b8d 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', + * 'molestias', * { * 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', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 91f00e30..56a13c75 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( - * 'ducimus', + * 'cupiditate', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quo', + * 'quibusdam', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quae'); + * const response = await client.smartLinks.listFans( + * 'voluptatem', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptate', + * 'reprehenderit', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('sapiente'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index fdc3bd61..9878a980 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', + * 'ea', * { * 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('ea', { * 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 dd343aed..a388078a 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( - * 'facilis', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'facilis', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('molestias', { + * await client.trackingLinks.getCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'eum', - * { 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 8af4c718..370a4f1a 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( - * 'rerum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('rerum', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'deleniti', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nesciunt', { + * await client.trialLinks.retrieveCohortArps('odit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sit', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index edc3b527..b2f46df2 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: 'vtjdvjrwhcuxvbjwxduwq' }, + * { name: 'ssvowwfebrcyegebszgh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e5ed4ee6..f9f058f7 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('architecto'); 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 358e1143..bc16f9c2 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: 'quia', - auth_type: 'email_password', - cookies: 'et', + auth_id: 'dolore', + auth_type: 'mobile_app', + cookies: 'harum', customProxy: { host: 'proxy.example.com', - password: 'd~e{YF { 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 32dab22b..ba3ba72d 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('placeat', { 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('placeat', { 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 aee2c981..67caefcf 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('sapiente', { 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('sapiente', { 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('sapiente', { 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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8aee5efa..29c06021 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('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('voluptatem', { + 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('voluptatem', { 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('voluptatem', { + const response = await client.posts.comments.list('molestias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 95bdabfb..693ef3be 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: ['ofjmvhr'] }, + filter: { tags: ['lccakyjmiekyxqxer'] }, 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('ducimus'); + const responsePromise = client.smartLinks.listClicks('cupiditate'); 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( - 'ducimus', + 'cupiditate', { 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('quo'); + const responsePromise = client.smartLinks.listConversions('quibusdam'); 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( - 'quo', + 'quibusdam', { 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('quae'); + const responsePromise = client.smartLinks.listFans('voluptatem'); 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( - 'quae', + 'voluptatem', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptate'); + const responsePromise = client.smartLinks.listSpenders('reprehenderit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + 'reprehenderit', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('sapiente'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'est', + 'sapiente', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quia'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 1f9cb810..fef1d235 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: 'ixppgeevgatzepepxifaa', tags: ['euzekzc'] }, + filter: { search: 'zwwnzjquhesnsgkujxvxqbkxs', tags: ['gzldbmry'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fqenxfjbvewiifhgspv', tags: ['acneauhpxuoomwlbstpj'] }, + filter: { search: 'jzw', tags: ['ohdxotmpncezs'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'stopvqglkmmpvhgj', - tags: ['ty'], + include_smart_links: true, + search: 'vhdwelrzzwnd', + tags: ['vauwevpstygekgzvcgso'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bgjxknhiafnbxcxbrapebh', - tags: ['pcyeznwrk'], + include_smart_links: false, + search: 'jsaat', + tags: ['johzsndvzybeqeldqykeypmw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7f74ac59..3c10d926 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('ea', { 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('ea', { 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('ea', { 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('ea', { 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 498c53f7..b069a210 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('itaque', { 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('itaque', { 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('itaque', { 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('molestias', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('ea', { 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('molestias', { + const response = await client.trackingLinks.getCohortArps('ea', { 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('eum', { 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; @@ -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('eum', { + 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 8620e66f..8a2efaf4 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('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('rerum', { 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('rerum', { 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('rerum', { 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('voluptas', { + 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('voluptas', { + const response = await client.trialLinks.listSubscribers('deleniti', { 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('nesciunt', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('odit', { 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('nesciunt', { + const response = await client.trialLinks.retrieveCohortArps('odit', { 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('sit', { 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('sit', { + 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 59c0daf5..1b965ba6 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: 'vtjdvjrwhcuxvbjwxduwq', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ssvowwfebrcyegebszgh' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'vtjdvjrwhcuxvbjwxduwq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ssvowwfebrcyegebszgh' }); }); // Mock server tests are disabled From 6fc5b34b7d825ddbfd22b842a413fd895b8393f6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 13:12:32 +0000 Subject: [PATCH 183/309] 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 +- src/resources/smart-links.ts | 16 +++++------- .../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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../tracking-links/tracking-links.test.ts | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 23 files changed, 103 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index 28ab01ee..57bde836 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-be1f3fec683db5e55b47196d3677cb0502c13822eef2b5fcba723ac701d8745c.yml -openapi_spec_hash: d65f87233bd2b9a082858b75eb2a50d6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-57b731f396b1e439775537f9de5ab9525ed1ac5c0508abffdbe2f6f9810226f8.yml +openapi_spec_hash: e7b2a3c7f5dc89331cedaa0186015f83 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index cad18534..f564ad54 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( - * 'architecto', - * ); + * const response = await client.accounts.disconnect('quos'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 82784beb..1afec739 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( - * 'placeat', + * 'commodi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b79770d4..8ecd2f5d 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( - * 'sapiente', + * 'modi', * { 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( - * 'sapiente', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 21410b8d..b417287b 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( - * 'molestias', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('illo', { + * 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( - * 'molestias', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('illo', { + * 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 599a9525..09d6973d 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 56a13c75..826b074d 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( - * 'cupiditate', + * 'temporibus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quibusdam', + * 'officiis', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptatem', - * ); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -131,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'reprehenderit', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sapiente'); + * await client.smartLinks.retrieveCohortArps('dicta'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'et', * ); * ``` */ diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index a388078a..a7863531 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( - * 'itaque', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'itaque', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ea', { + * await client.trackingLinks.getCohortArps('est', { * 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( + * 'vel', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 370a4f1a..a52ec087 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( + * 'velit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'deleniti', + * 'iusto', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('odit', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laborum', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b2f46df2..96a4394f 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: 'ssvowwfebrcyegebszgh' }, + * { name: 'iwklqkzdkqvrok' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f9f058f7..d0d2f40c 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('architecto'); + const responsePromise = client.accounts.disconnect('quos'); 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 bc16f9c2..f474eb9f 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: 'dolore', - auth_type: 'mobile_app', - cookies: 'harum', + auth_id: 'libero', + auth_type: 'raw_data', + cookies: 'totam', customProxy: { host: 'proxy.example.com', - password: 'ct?f"}u0', + password: '+gna@1', port: 8080, - username: 'et', + username: 'dicta', }, - email: 'sedrick30@example.org', - force_connect: true, - name: 'assumenda', - password: "iXoC]'~T,d,0$|\\l", - proxyCountry: 'gb', - user_agent: 'culpa', - xbc: 'alias', + email: 'satterfield.maudie@example.net', + force_connect: false, + name: 'suscipit', + password: '3l3Hl<"SL19WR\'3!=G,^', + proxyCountry: 'uk', + user_agent: 'minus', + xbc: 'rerum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ba3ba72d..ff0e839f 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('placeat', { + const responsePromise = client.engagement.messages.getMessageBuyers('commodi', { 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('placeat', { + const response = await client.engagement.messages.getMessageBuyers('commodi', { 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 67caefcf..06456e9f 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('sapiente', { + const responsePromise = client.media.vault.lists.media.add('modi', { 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('sapiente', { + const response = await client.media.vault.lists.media.add('modi', { 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('sapiente', { + const responsePromise = client.media.vault.lists.media.remove('modi', { 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('sapiente', { + const response = await client.media.vault.lists.media.remove('modi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 29c06021..585717a3 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('illo', { 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('illo', { 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('illo', { 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('illo', { 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 8e5b0566..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 693ef3be..f9434425 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: ['lccakyjmiekyxqxer'] }, + filter: { tags: ['gdgu'] }, 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('cupiditate'); + const responsePromise = client.smartLinks.listClicks('temporibus'); 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( - 'cupiditate', + 'temporibus', { 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('quibusdam'); + const responsePromise = client.smartLinks.listConversions('officiis'); 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( - 'quibusdam', + 'officiis', { 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('voluptatem'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'voluptatem', + 'qui', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('reprehenderit'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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( - 'reprehenderit', + 'et', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sapiente'); + const responsePromise = client.smartLinks.retrieveCohortArps('dicta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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( - 'sapiente', + 'dicta', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + '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 fef1d235..72cd13c5 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: 'zwwnzjquhesnsgkujxvxqbkxs', tags: ['gzldbmry'] }, + filter: { search: 'liednkicvyodabidwqopgo', tags: ['sscppzbgunooxljahftvyyagk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jzw', tags: ['ohdxotmpncezs'] }, + filter: { search: 'gblaryl', tags: ['kuwtgjfvofkfapetgwagqidcs'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'vhdwelrzzwnd', - tags: ['vauwevpstygekgzvcgso'], + include_smart_links: false, + search: 'rjm', + tags: ['xugaxzyepbwasek'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jsaat', - tags: ['johzsndvzybeqeldqykeypmw'], + search: 'lhpqbfezllkrrekfozqvfnlxb', + tags: ['xsxfiejbwmhchezfjrr'], }, 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 b069a210..d2887fd1 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('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eos', { 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('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eos', { 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('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eos', { 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('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ea', { 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('ea', { + 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('vel', { 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('vel', { 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 8a2efaf4..99b7e2b8 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('velit', { 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('velit', { 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('velit', { 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('velit', { 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('deleniti', { + 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('deleniti', { + 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('eos', { 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('odit', { + const response = await client.trialLinks.retrieveCohortArps('eos', { 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('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('sequi', { 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('laborum', { + const response = await client.trialLinks.retrieveStats('sequi', { 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 1b965ba6..c0530f8b 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: 'ssvowwfebrcyegebszgh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iwklqkzdkqvrok' }); 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: 'ssvowwfebrcyegebszgh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iwklqkzdkqvrok' }); }); // Mock server tests are disabled From 987d63e4908c296387cd03b34ccd13fe8677d1fc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 15:12:32 +0000 Subject: [PATCH 184/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++-- src/resources/fans/summary.ts | 8 ++++++ src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 13 ++++++---- 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 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 119 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 57bde836..8c23dd09 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-57b731f396b1e439775537f9de5ab9525ed1ac5c0508abffdbe2f6f9810226f8.yml -openapi_spec_hash: e7b2a3c7f5dc89331cedaa0186015f83 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-067f0eaf1a03fe125b2b6be34cc6b15ead1a64ca190d9f93170f71de25af0449.yml +openapi_spec_hash: bb7652334ae94968f633868896ed4e73 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f564ad54..fb5b36c0 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('quos'); + * const response = await client.accounts.disconnect('alias'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1afec739..c626d243 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( - * 'commodi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/fans/summary.ts b/src/resources/fans/summary.ts index 86d884b7..db003eeb 100644 --- a/src/resources/fans/summary.ts +++ b/src/resources/fans/summary.ts @@ -62,6 +62,8 @@ export interface SummaryGenerateSummaryResponse { export interface SummaryGetSummaryResponse { analyzed_message_count?: number; + custom_fields?: Array; + error_message?: string | null; last_analyzed_at?: string; @@ -74,6 +76,12 @@ export interface SummaryGetSummaryResponse { } export namespace SummaryGetSummaryResponse { + export interface CustomField { + key?: string; + + label?: string; + } + export interface SummaryData { content_dislikes?: string; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ecd2f5d..b01e4fef 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( - * 'modi', + * 'esse', * { 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( - * 'modi', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b417287b..12edd193 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('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'nihil', + * { + * 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('illo', { + * const comments = await client.posts.comments.list('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 826b074d..a6649a26 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( - * 'temporibus', - * ); + * const response = await client.smartLinks.listClicks('quis'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'officiis', + * 'harum', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('culpa'); * ``` */ listFans( @@ -129,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'iure', + * ); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dicta'); + * await client.smartLinks.retrieveCohortArps('aliquam'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'laborum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9878a980..2df720e1 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( - * 'ea', + * 'cumque', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ea', { + * await client.stories.highlights.removeStory('cumque', { * 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 a7863531..f5fdbf72 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( - * 'eos', + * 'iure', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eos', + * 'iure', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('est', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'vel', - * { 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 a52ec087..08d015be 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( - * 'velit', - * { 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('velit', { + * 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( - * 'iusto', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('aliquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sequi', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 96a4394f..e561bbb4 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: 'iwklqkzdkqvrok' }, + * { name: 'payd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d0d2f40c..42fe7a50 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('quos'); + const responsePromise = client.accounts.disconnect('alias'); 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 f474eb9f..777e5909 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: 'libero', - auth_type: 'raw_data', - cookies: 'totam', + auth_id: 'molestiae', + auth_type: 'mobile_app', + cookies: 'ipsa', customProxy: { host: 'proxy.example.com', - password: '+gna@1', + password: '#O71A3nR?', port: 8080, - username: 'dicta', + username: 'distinctio', }, - email: 'satterfield.maudie@example.net', + email: 'andreanne.rau@example.com', force_connect: false, - name: 'suscipit', - password: '3l3Hl<"SL19WR\'3!=G,^', - proxyCountry: 'uk', - user_agent: 'minus', - xbc: 'rerum', + name: 'temporibus', + password: 'VYvbo"', + proxyCountry: 'gb', + user_agent: 'expedita', + xbc: 'ad', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ff0e839f..8fed0617 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('commodi', { + const responsePromise = client.engagement.messages.getMessageBuyers('ea', { 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('commodi', { + const response = await client.engagement.messages.getMessageBuyers('ea', { 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 06456e9f..603fde04 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('modi', { + const responsePromise = client.media.vault.lists.media.add('esse', { 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('modi', { + const response = await client.media.vault.lists.media.add('esse', { 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('modi', { + const responsePromise = client.media.vault.lists.media.remove('esse', { 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('modi', { + const response = await client.media.vault.lists.media.remove('esse', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e769f5c8 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 585717a3..3c27d9ed 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('illo', { + 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('illo', { + 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('illo', { 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('illo', { + const response = await client.posts.comments.list('nihil', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 f9434425..05d0e1a7 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: ['gdgu'] }, + filter: { tags: ['tfwbhueavg'] }, 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('temporibus'); + const responsePromise = client.smartLinks.listClicks('quis'); 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( - 'temporibus', + 'quis', { 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('officiis'); + const responsePromise = client.smartLinks.listConversions('harum'); 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( - 'officiis', + 'harum', { 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('qui'); + const responsePromise = client.smartLinks.listFans('culpa'); 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( - 'qui', + 'culpa', { has_messages: true, limit: 100, @@ -189,7 +189,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('iure'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +204,7 @@ describe('resource smartLinks', () => { // 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', + 'iure', { limit: 50, minSpend: 1, @@ -217,7 +217,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dicta'); + const responsePromise = client.smartLinks.retrieveCohortArps('aliquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +232,7 @@ describe('resource smartLinks', () => { // 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', + 'aliquam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +245,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +260,7 @@ describe('resource smartLinks', () => { // 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', + 'laborum', { 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 72cd13c5..81c45d8a 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: 'liednkicvyodabidwqopgo', tags: ['sscppzbgunooxljahftvyyagk'] }, + filter: { search: 'glxykaultyqmdeblrrbvhr', tags: ['xboxgwrkmxqpvervlyayv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gblaryl', tags: ['kuwtgjfvofkfapetgwagqidcs'] }, + filter: { search: 'wjbggjhdraligrxwzfnddvs', tags: ['mqinypjrzuqvqbuc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rjm', - tags: ['xugaxzyepbwasek'], + search: 't', + tags: ['qbwpdbntfop'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lhpqbfezllkrrekfozqvfnlxb', - tags: ['xsxfiejbwmhchezfjrr'], + include_smart_links: true, + search: 'xurnqj', + tags: ['tphhprmwzh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3c10d926..402e57ff 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('ea', { + const responsePromise = client.stories.highlights.addStory('cumque', { 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('ea', { + const response = await client.stories.highlights.addStory('cumque', { 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('ea', { + const responsePromise = client.stories.highlights.removeStory('cumque', { 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('ea', { + const response = await client.stories.highlights.removeStory('cumque', { 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 d2887fd1..0cd67995 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('iure', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('iure', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('iure', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('iure', { 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('aut', { 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('aut', { 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('vel', { 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('vel', { + 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 99b7e2b8..e4e81e03 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('velit', { 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('velit', { 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('velit', { 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('velit', { 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('iusto', { + 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('iusto', { + const response = await client.trialLinks.listSubscribers('ut', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('aliquam', { + 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('eos', { + const response = await client.trialLinks.retrieveCohortArps('aliquam', { 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('sequi', { 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 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('sequi', { + 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 c0530f8b..1df031f4 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: 'iwklqkzdkqvrok' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'payd' }); 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: 'iwklqkzdkqvrok' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'payd' }); }); // Mock server tests are disabled From 4b430d7c5fddde37e4130e8e9eed501d83400a5d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 02:00:28 +0000 Subject: [PATCH 185/309] feat(stlc): configurable CI runner and private-production-repo support in workflow templates --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17658902..2d42c78b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -42,7 +42,7 @@ jobs: build: timeout-minutes: 5 name: build - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') permissions: contents: read @@ -87,7 +87,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 From 869dee73823e8a6076f090742b8f6827dfc591d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 16:12:33 +0000 Subject: [PATCH 186/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- src/resources/chats/chats.ts | 7 +-- src/resources/chats/messages.ts | 2 +- .../engagement/messages/direct-messages.ts | 6 +-- .../engagement/messages/mass-messages.ts | 6 +-- src/resources/engagement/messages/messages.ts | 8 +-- src/resources/fans/fans.ts | 16 +++--- src/resources/mass-messaging.ts | 4 +- src/resources/media/vault/lists/media.ts | 4 +- src/resources/notifications/notifications.ts | 2 +- src/resources/posts/comments.ts | 9 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- .../shared-tracking-links.ts | 31 +++++++++-- .../shared-trial-links/shared-trial-links.ts | 12 +++-- src/resources/smart-links.ts | 19 +++---- src/resources/statistics/reach.ts | 2 +- src/resources/statistics/statements.ts | 13 +++-- src/resources/statistics/statistics.ts | 10 ++-- src/resources/stories/highlights.ts | 4 +- .../tracking-links/tracking-links.ts | 49 +++++++++--------- src/resources/transactions.ts | 2 +- src/resources/trial-links/trial-links.ts | 48 ++++++++++------- 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/payouts.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 +- .../shared-tracking-links.test.ts | 4 ++ .../shared-trial-links.test.ts | 1 + tests/api-resources/smart-links.test.ts | 27 +++++----- .../statistics/statements.test.ts | 3 +- .../statistics/statistics.test.ts | 21 ++++---- tests/api-resources/stored.test.ts | 16 +++--- .../api-resources/stories/highlights.test.ts | 8 +-- .../tracking-links/tracking-links.test.ts | 25 ++++----- tests/api-resources/transactions.test.ts | 2 +- .../trial-links/trial-links.test.ts | 51 +++++++++++-------- .../user-lists/user-lists.test.ts | 4 +- 46 files changed, 268 insertions(+), 218 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8c23dd09..22405e2d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-067f0eaf1a03fe125b2b6be34cc6b15ead1a64ca190d9f93170f71de25af0449.yml -openapi_spec_hash: bb7652334ae94968f633868896ed4e73 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da309dbd1c3d6c45514ff6c1b040914c3cf34cdb03046d7bd35787785e705309.yml +openapi_spec_hash: 18f23f2127e97f6b6510805eec8753b0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fb5b36c0..ff937e16 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('alias'); + * const response = await client.accounts.disconnect( + * 'assumenda', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/chats/chats.ts b/src/resources/chats/chats.ts index 560f791e..d8f32988 100644 --- a/src/resources/chats/chats.ts +++ b/src/resources/chats/chats.ts @@ -1273,7 +1273,8 @@ export interface ChatListParams { query?: string; /** - * Whether to skip user details in response (all or none). Default = all + * Whether to skip user details in the response (`all` or `none`). Defaults to + * `all`. */ skip_users?: 'all' | 'none'; } @@ -1309,8 +1310,8 @@ export interface ChatListMediaParams { offset?: string; /** - * Query param: Whether to skip user details in response (all or none). Default = - * all + * Query param: Whether to skip user details in the response (`all` or `none`). + * Defaults to `all`. */ skip_users?: string; diff --git a/src/resources/chats/messages.ts b/src/resources/chats/messages.ts index 1feab3f5..2736b6c5 100644 --- a/src/resources/chats/messages.ts +++ b/src/resources/chats/messages.ts @@ -853,7 +853,7 @@ export interface MessageListParams { order?: string; /** - * Query param: Whether to skip user details (all or none) + * Query param: Whether to skip user details (`all` or `none`). */ skip_users?: string; } diff --git a/src/resources/engagement/messages/direct-messages.ts b/src/resources/engagement/messages/direct-messages.ts index 94453029..9f617a42 100644 --- a/src/resources/engagement/messages/direct-messages.ts +++ b/src/resources/engagement/messages/direct-messages.ts @@ -329,8 +329,8 @@ export namespace DirectMessageChartResponse { export interface DirectMessageListParams { /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - * `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after + * `startDate` and is also used for pagination. */ endDate?: string; @@ -357,7 +357,7 @@ export interface DirectMessageListParams { export interface DirectMessageChartParams { /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ endDate?: string; diff --git a/src/resources/engagement/messages/mass-messages.ts b/src/resources/engagement/messages/mass-messages.ts index 4cfff425..802d3272 100644 --- a/src/resources/engagement/messages/mass-messages.ts +++ b/src/resources/engagement/messages/mass-messages.ts @@ -231,8 +231,8 @@ export namespace MassMessageChartResponse { export interface MassMessageListParams { /** - * The latest message to retrieve. Keep empty to get all. MUST BE DATE AFTER - * `startDate`. This is also used for pagination. + * The latest message to retrieve. Keep empty to get all. It must be after + * `startDate` and is also used for pagination. */ endDate?: string; @@ -254,7 +254,7 @@ export interface MassMessageListParams { export interface MassMessageChartParams { /** - * End of the chart window in `Y-m-d H:i:s` format. Must be after `startDate`. + * End of the chart window in `Y-m-d H:i:s` format. It must be after `startDate`. */ endDate?: string; diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c626d243..9f8aa938 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('ea', { + * await client.engagement.messages.getMessageBuyers('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -434,7 +434,7 @@ export interface MessageGetMessageBuyersParams { offset?: number; /** - * Query param: Optional flag for subsequent pages (example: all) + * Query param: Optional flag for subsequent pages (example: all). */ skip_users?: string; @@ -446,8 +446,8 @@ export interface MessageGetMessageBuyersParams { export interface MessageGetTopMessageParams { /** - * The end date for the period. Keep empty to retrieve until now. MUST BE DATE - * AFTER `startDate`. + * The end date for the period. Keep empty to retrieve until now. It must be after + * `startDate`. */ endDate?: string; diff --git a/src/resources/fans/fans.ts b/src/resources/fans/fans.ts index d5dc2438..3181f77a 100644 --- a/src/resources/fans/fans.ts +++ b/src/resources/fans/fans.ts @@ -2082,8 +2082,8 @@ export namespace FanListExpiredParams { export interface FanListLatestParams { /** - * End date for filtering (required with start_date). This field is required when - * start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must + * not be greater than 255 characters. */ end_date?: string | null; @@ -2099,8 +2099,8 @@ export interface FanListLatestParams { offset?: number; /** - * Start date for filtering (required with end_date). This field is required when - * end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must + * not be greater than 255 characters. */ start_date?: string | null; @@ -2117,14 +2117,14 @@ export interface FanListTopParams { by?: 'total' | 'subscribes' | 'tips' | 'messages' | 'post' | 'streams' | null; /** - * End date for filtering (required with start_date). This field is required when - * start_date is present. + * End date for filtering (required with start_date). Must be a valid date. Must + * not be greater than 255 characters. */ end_date?: string | null; /** - * Start date for filtering (required with end_date). This field is required when - * end_date is present. + * Start date for filtering (required with end_date). Must be a valid date. Must + * not be greater than 255 characters. */ start_date?: string | null; } diff --git a/src/resources/mass-messaging.ts b/src/resources/mass-messaging.ts index 93673373..61523fcb 100644 --- a/src/resources/mass-messaging.ts +++ b/src/resources/mass-messaging.ts @@ -731,8 +731,8 @@ export interface MassMessagingDeleteParams { export interface MassMessagingRetrieveOverviewParams { /** - * The latest mass message to retrieve. Keep empty to get all. MUST BE DATE AFTER - * `startDate`. This is also used for pagination. + * The latest mass message to retrieve. Keep empty to get all. It must be after + * `startDate` and is also used for pagination. */ endDate?: string; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b01e4fef..9395711e 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( - * 'esse', + * 'odit', * { 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( - * 'esse', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/notifications/notifications.ts b/src/resources/notifications/notifications.ts index f9106609..6e4c520a 100644 --- a/src/resources/notifications/notifications.ts +++ b/src/resources/notifications/notifications.ts @@ -623,7 +623,7 @@ export interface NotificationListParams { limit?: number; /** - * Whether to skip user details. Default `all` + * Whether to skip user details. Defaults to `all`. */ skip_users?: 'all' | 'none'; diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12edd193..0a12a142 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', + * 'magnam', * { * 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( + * 'magnam', + * { 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 09d6973d..a9767818 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 41feb4c0..a84ff073 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/shared-tracking-links/shared-tracking-links.ts b/src/resources/shared-tracking-links/shared-tracking-links.ts index 3dc886c1..a4071c4d 100644 --- a/src/resources/shared-tracking-links/shared-tracking-links.ts +++ b/src/resources/shared-tracking-links/shared-tracking-links.ts @@ -208,20 +208,41 @@ export namespace SharedTrackingLinkRevokeAccessResponse { export interface SharedTrackingLinkListParams { /** - * The number of shared tracking links to return. Default `10` + * The number of shared tracking links to return. Default `10`. Must be at least 1. + * Must not be greater than 100. */ limit?: number; /** - * The offset used for pagination. Default `0` + * The offset used for pagination. Default `0`. Must be at least 0. */ offset?: number; /** - * Wait for the database sync to finish, instead of running it in the background. - * **Will result in longer response times, use with caution**. Default `false` + * Whether pagination metadata is enabled. Default `1`. */ - synchronous?: boolean | null; + pagination?: 0 | 1; + + /** + * Whether deleted links participate in sorting. Default `1`. + */ + sorting_deleted?: 0 | 1; + + /** + * Whether statistics are included. Default `true`. Must not be greater than 10 + * characters. + */ + stats?: string; + + /** + * Wait for the database sync instead of processing it in the background. + */ + synchronous?: boolean; + + /** + * Whether to include deleted shared tracking links. Default `1`. + */ + with_deleted?: 0 | 1; } export interface SharedTrackingLinkRevokeAccessParams { diff --git a/src/resources/shared-trial-links/shared-trial-links.ts b/src/resources/shared-trial-links/shared-trial-links.ts index bf1fa6c3..2935a811 100644 --- a/src/resources/shared-trial-links/shared-trial-links.ts +++ b/src/resources/shared-trial-links/shared-trial-links.ts @@ -209,20 +209,22 @@ export namespace SharedTrialLinkRevokeAccessResponse { export interface SharedTrialLinkListParams { /** - * The number of shared trial links to return. Default `10` + * The number of shared trial links to return. Default `10`. Must be at least 1. + * Must not be greater than 100. */ limit?: number; /** - * The offset used for pagination. Default `0` + * The offset used for pagination. Default `0`. Must be at least 0. */ offset?: number; + pagination?: 0 | 1; + /** - * Wait for the database sync to finish, instead of running it in the background. - * **Will result in longer response times, use with caution**. Default `false` + * Wait for the database sync instead of processing it in the background. */ - synchronous?: boolean | null; + synchronous?: boolean; } export interface SharedTrialLinkRevokeAccessParams { diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index a6649a26..7cc5d2c7 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('quis'); + * const response = await client.smartLinks.listClicks( + * 'minus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'harum', + * 'fugit', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('culpa'); + * const response = await client.smartLinks.listFans('quo'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'iure', + * 'autem', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aliquam'); + * await client.smartLinks.retrieveCohortArps('rerum'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'laborum', + * 'quia', * ); * ``` */ @@ -1081,11 +1083,6 @@ export interface SmartLinkListParams { */ limit?: number; - /** - * Deprecated alias for `pixel_ids`. Comma-separated Pixel IDs to include. - */ - meta_pixel_ids?: string | null; - /** * Filter Smart Links by name. Must not be greater than 255 characters. */ diff --git a/src/resources/statistics/reach.ts b/src/resources/statistics/reach.ts index f5fcbe46..1c97aae6 100644 --- a/src/resources/statistics/reach.ts +++ b/src/resources/statistics/reach.ts @@ -372,7 +372,7 @@ export interface ReachGetProfileVisitorsParams { end_date: string; /** - * The start date for the period + * The start date for the period. */ start_date: string; diff --git a/src/resources/statistics/statements.ts b/src/resources/statistics/statements.ts index 47b62523..50e6cdcf 100644 --- a/src/resources/statistics/statements.ts +++ b/src/resources/statistics/statements.ts @@ -14,7 +14,10 @@ export class Statements extends APIResource { * const response = * await client.statistics.statements.getEarnings( * 'acct_XXXXXXXXXXXXXXX', - * { start_date: '2025-01-01 00:00:00' }, + * { + * end_date: '2025-03-31 23:59:59', + * start_date: '2025-01-01 00:00:00', + * }, * ); * ``` */ @@ -103,14 +106,14 @@ export namespace StatementGetEarningsResponse { export interface StatementGetEarningsParams { /** - * The start date for the period + * The end date for the period. */ - start_date: string; + end_date: string; /** - * The end date for the period. + * The start date for the period. */ - end_date?: string; + start_date: string; /** * Filter by All / Subscriptions / Tips / Posts / Messages / Streams diff --git a/src/resources/statistics/statistics.ts b/src/resources/statistics/statistics.ts index e9efa4d3..42893c0b 100644 --- a/src/resources/statistics/statistics.ts +++ b/src/resources/statistics/statistics.ts @@ -21,16 +21,12 @@ export class Statistics extends APIResource { * const response = * await client.statistics.calculateTotalTransactions( * 'acct_XXXXXXXXXXXXXXX', - * { - * end_date: '2025-03-31 23:59:59', - * start_date: '2025-01-01 00:00:00', - * }, * ); * ``` */ calculateTotalTransactions( account: string, - query: StatisticCalculateTotalTransactionsParams, + query: StatisticCalculateTotalTransactionsParams | null | undefined = {}, options?: RequestOptions, ): APIPromise { return this._client.get(path`/api/${account}/statistics/total-transactions`, { query, ...options }); @@ -390,12 +386,12 @@ export interface StatisticCalculateTotalTransactionsParams { /** * The end date for the period. Keep empty to calculate everything. */ - end_date: string; + end_date?: string; /** * The start date for the period. Keep empty to calculate everything. */ - start_date: string; + start_date?: string; } export interface StatisticGetOverviewParams { diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2df720e1..bbcad046 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( - * 'cumque', + * 'quas', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('cumque', { + * await client.stories.highlights.removeStory('quas', { * 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 f5fdbf72..ff5398d8 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( - * 'iure', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'iure', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * await client.trackingLinks.getCohortArps('ad', { * 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( + * 'vel', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( @@ -822,47 +823,49 @@ export interface TrackingLinkRetrieveParams { export interface TrackingLinkListParams { /** - * The end date for Tracking Links. Keep empty to get all. + * The end date for tracking links. Keep empty to get all. Must not be greater than + * 255 characters. */ endDate?: string | null; /** - * The number of tracking links to return. Default `3` + * The number of tracking links to return. Default `10`. Must be at least 1. Must + * not be greater than 100. */ - limit?: number | null; + limit?: number; /** - * The offset used for pagination. Default `0` + * The offset used for pagination. Default `0`. Must be at least 0. */ - offset?: number | null; + offset?: number; + + pagination?: 0 | 1; /** - * Sort the results. Default `desc` + * Sort direction. Default `desc`. */ - sort?: 'desc' | 'asc' | null; + sort?: 'asc' | 'desc'; /** - * Sort by subscriber count (claims), or creation date + * Sort by subscriber count (`claims`) or creation date (`created_date`). */ - sortby?: 'claims' | 'created_date' | null; + sortby?: 'claims' | 'created_date'; /** - * The start date for Tracking Links. Keep empty to get all. + * The start date for tracking links. Keep empty to get all. Must not be greater + * than 255 characters. */ startDate?: string | null; /** - * Wait for the revenue data to finish processing, instead of processing in the - * background. **Will result in longer response times, use with caution**. Default - * `false` + * Wait for revenue calculation instead of processing it in the background. */ - synchronous?: boolean | null; + synchronous?: boolean; /** - * Whether or not to include deleted tracking links in the response. Default - * `false` + * Whether to include deleted tracking links. Default `true`. */ - with_deleted?: boolean | null; + with_deleted?: 0 | 1; } export interface TrackingLinkDeleteParams { diff --git a/src/resources/transactions.ts b/src/resources/transactions.ts index af9a9107..8f558ab0 100644 --- a/src/resources/transactions.ts +++ b/src/resources/transactions.ts @@ -155,7 +155,7 @@ export interface TransactionListParams { marker?: string; /** - * The start date for transactions list. Default: `-30days` + * The start date for the transactions list. Defaults to 30 days ago. */ startDate?: string; diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 08d015be..d5e9b6b0 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('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -71,13 +71,12 @@ export class TrialLinks extends APIResource { * ```ts * const trialLinks = await client.trialLinks.list( * 'acct_XXXXXXXXXXXXXXX', - * { limit: 10, offset: 0 }, * ); * ``` */ list( account: string, - query: TrialLinkListParams, + query: TrialLinkListParams | null | undefined = {}, options?: RequestOptions, ): APIPromise { return this._client.get(path`/api/${account}/trial-links`, { query, ...options }); @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('est', { + * const trialLink = await client.trialLinks.delete('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'modi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aliquam', { + * await client.trialLinks.retrieveCohortArps('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'inventore', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -1075,31 +1074,42 @@ export interface TrialLinkRetrieveParams { export interface TrialLinkListParams { /** - * The number of trial links to return. Default `10` + * The end date for trial links. Keep empty to get all. Must not be greater than + * 255 characters. */ - limit: number; + endDate?: string | null; /** - * The offset used for pagination. Default `0` + * Field to sort by. Default `create_date`. */ - offset: number; + field?: 'create_date' | 'expire_date' | 'subscribe_counts' | 'subscribe_days' | 'claims_count'; + + /** + * The number of trial links to return. Default `10`. Must be at least 1. Must not + * be greater than 100. + */ + limit?: number; + + /** + * The offset used for pagination. Default `0`. Must be at least 0. + */ + offset?: number; /** - * Sort the results by a field. Default `create_date` + * Sort direction. Default `desc`. */ - field?: 'create_date' | 'expire_date' | 'subscribe_counts' | 'subscribe_days' | 'claims_count' | null; + sort?: 'asc' | 'desc'; /** - * Sort the results. Default `desc` + * The start date for trial links. Keep empty to get all. Must not be greater than + * 255 characters. */ - sort?: 'desc' | 'asc' | null; + startDate?: string | null; /** - * Wait for the revenue data to finish processing, instead of processing in the - * background. **Will result in longer response times, use with caution**. Default - * `false` + * Wait for revenue calculation instead of processing it in the background. */ - synchronous?: boolean | null; + synchronous?: boolean; } export interface TrialLinkDeleteParams { diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e561bbb4..0e8f8c22 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: 'payd' }, + * { name: 'vuvvswwzxd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 42fe7a50..a6ef6a92 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('alias'); + const responsePromise = client.accounts.disconnect('assumenda'); 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 777e5909..a307a391 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: 'molestiae', + auth_id: 'quia', auth_type: 'mobile_app', - cookies: 'ipsa', + cookies: 'sequi', customProxy: { host: 'proxy.example.com', - password: '#O71A3nR?', + password: '\\w7O1<{"v', port: 8080, - username: 'distinctio', + username: 'et', }, - email: 'andreanne.rau@example.com', + email: 'jordon.leffler@example.net', force_connect: false, - name: 'temporibus', - password: 'VYvbo"', - proxyCountry: 'gb', - user_agent: 'expedita', - xbc: 'ad', + name: 'quia', + password: 'K)RXLbI+b9pQAg', + proxyCountry: 'us', + user_agent: 'rerum', + 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 229de463..c17a81d6 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 8fed0617..77125615 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('ea', { + 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('ea', { + 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 603fde04..7323de58 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('esse', { + const responsePromise = client.media.vault.lists.media.add('odit', { 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('esse', { + const response = await client.media.vault.lists.media.add('odit', { 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('esse', { + const responsePromise = client.media.vault.lists.media.remove('odit', { 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('esse', { + const response = await client.media.vault.lists.media.remove('odit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..14dcb2e9 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/payouts.test.ts b/tests/api-resources/payouts.test.ts index aa2c6f83..57cd78fd 100644 --- a/tests/api-resources/payouts.test.ts +++ b/tests/api-resources/payouts.test.ts @@ -79,7 +79,7 @@ describe('resource payouts', () => { await expect( client.payouts.retrieveEarningStatistics( 'acct_XXXXXXXXXXXXXXX', - { endDate: '2025-01-01 00:00:00, +30days', startDate: '2025-01-01 00:00:00, -30days' }, + { endDate: '2025-01-31 23:59:59', startDate: '2025-01-01 00:00:00' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(OnlyFansAPI.NotFoundError); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3c27d9ed..7445bebd 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('magnam', { 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('magnam', { 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('magnam', { 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('magnam', { 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 e2edc676..4ec8acc7 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 c1510622..02883e18 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/shared-tracking-links/shared-tracking-links.test.ts b/tests/api-resources/shared-tracking-links/shared-tracking-links.test.ts index 7586ce3c..f3044576 100644 --- a/tests/api-resources/shared-tracking-links/shared-tracking-links.test.ts +++ b/tests/api-resources/shared-tracking-links/shared-tracking-links.test.ts @@ -29,7 +29,11 @@ describe('resource sharedTrackingLinks', () => { { limit: 10, offset: 0, + pagination: 1, + sorting_deleted: 1, + stats: 'true', synchronous: false, + with_deleted: 1, }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index d72178e6..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,6 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 05d0e1a7..82db290a 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,9 +65,8 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['tfwbhueavg'] }, + filter: { tags: ['bnhxtimiznczqakj'] }, limit: 50, - meta_pixel_ids: '1,2', name: 'Instagram', offset: 0, pixel_ids: '1,2', @@ -91,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quis'); + const responsePromise = client.smartLinks.listClicks('minus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,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( - 'quis', + 'minus', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('harum'); + const responsePromise = client.smartLinks.listConversions('fugit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,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( - 'harum', + 'fugit', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('culpa'); + const responsePromise = client.smartLinks.listFans('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,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( - 'culpa', + 'quo', { has_messages: true, limit: 100, @@ -189,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('iure'); + const responsePromise = client.smartLinks.listSpenders('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'iure', + 'autem', { limit: 50, minSpend: 1, @@ -217,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aliquam'); + const responsePromise = client.smartLinks.retrieveCohortArps('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -232,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'aliquam', + 'rerum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -245,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('laborum'); + const responsePromise = client.smartLinks.retrieveStats('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -260,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'laborum', + '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/statistics/statements.test.ts b/tests/api-resources/statistics/statements.test.ts index 291bfa14..7417a0da 100644 --- a/tests/api-resources/statistics/statements.test.ts +++ b/tests/api-resources/statistics/statements.test.ts @@ -11,6 +11,7 @@ describe('resource statements', () => { // Mock server tests are disabled test.skip('getEarnings: only required params', async () => { const responsePromise = client.statistics.statements.getEarnings('acct_XXXXXXXXXXXXXXX', { + end_date: '2025-03-31 23:59:59', start_date: '2025-01-01 00:00:00', }); const rawResponse = await responsePromise.asResponse(); @@ -25,8 +26,8 @@ describe('resource statements', () => { // Mock server tests are disabled test.skip('getEarnings: required and optional params', async () => { const response = await client.statistics.statements.getEarnings('acct_XXXXXXXXXXXXXXX', { - start_date: '2025-01-01 00:00:00', end_date: '2025-03-31 23:59:59', + start_date: '2025-01-01 00:00:00', type: 'total', }); }); diff --git a/tests/api-resources/statistics/statistics.test.ts b/tests/api-resources/statistics/statistics.test.ts index b464237e..76b1755a 100644 --- a/tests/api-resources/statistics/statistics.test.ts +++ b/tests/api-resources/statistics/statistics.test.ts @@ -9,11 +9,8 @@ const client = new OnlyFansAPI({ describe('resource statistics', () => { // Mock server tests are disabled - test.skip('calculateTotalTransactions: only required params', async () => { - const responsePromise = client.statistics.calculateTotalTransactions('acct_XXXXXXXXXXXXXXX', { - end_date: '2025-03-31 23:59:59', - start_date: '2025-01-01 00:00:00', - }); + test.skip('calculateTotalTransactions', async () => { + const responsePromise = client.statistics.calculateTotalTransactions('acct_XXXXXXXXXXXXXXX'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,11 +21,15 @@ describe('resource statistics', () => { }); // Mock server tests are disabled - test.skip('calculateTotalTransactions: required and optional params', async () => { - const response = await client.statistics.calculateTotalTransactions('acct_XXXXXXXXXXXXXXX', { - end_date: '2025-03-31 23:59:59', - start_date: '2025-01-01 00:00:00', - }); + test.skip('calculateTotalTransactions: 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.statistics.calculateTotalTransactions( + 'acct_XXXXXXXXXXXXXXX', + { end_date: '2025-03-31 23:59:59', start_date: '2025-01-01 00:00:00' }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); // Mock server tests are disabled diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 81c45d8a..d91978d5 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: 'glxykaultyqmdeblrrbvhr', tags: ['xboxgwrkmxqpvervlyayv'] }, + filter: { search: 'zqxquduciiaoqv', tags: ['izeilffinshdaizyrtpl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wjbggjhdraligrxwzfnddvs', tags: ['mqinypjrzuqvqbuc'] }, + filter: { search: 'yyvcu', tags: ['pvtudkw'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 't', - tags: ['qbwpdbntfop'], + include_smart_links: true, + search: 'joqbwofxjgmfykwnka', + tags: ['gtbtqa'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xurnqj', - tags: ['tphhprmwzh'], + include_smart_links: false, + search: 'mwbsiwsweqbpmqztlxxnprh', + tags: ['hms'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 402e57ff..b76ecf2a 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('cumque', { + const responsePromise = client.stories.highlights.addStory('quas', { 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('cumque', { + const response = await client.stories.highlights.addStory('quas', { 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('cumque', { + const responsePromise = client.stories.highlights.removeStory('quas', { 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('cumque', { + const response = await client.stories.highlights.removeStory('quas', { 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 0cd67995..e046e9de 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('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('accusantium', { 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('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -64,14 +64,15 @@ describe('resource trackingLinks', () => { client.trackingLinks.list( 'acct_XXXXXXXXXXXXXXX', { - endDate: '2025-01-01 00:00:00, now', - limit: 3, + endDate: '2025-01-31 23:59:59', + limit: 10, offset: 0, + pagination: 1, sort: 'desc', sortby: 'claims', - startDate: '2025-01-01 00:00:00, -30days', + startDate: '2025-01-01 00:00:00', synchronous: false, - with_deleted: false, + with_deleted: 1, }, { path: '/_stainless_unknown_path' }, ), @@ -80,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('aut', { + const response = await client.trackingLinks.getCohortArps('ad', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +120,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +132,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('vel', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/transactions.test.ts b/tests/api-resources/transactions.test.ts index 80f7709d..8712741f 100644 --- a/tests/api-resources/transactions.test.ts +++ b/tests/api-resources/transactions.test.ts @@ -29,7 +29,7 @@ describe('resource transactions', () => { { limit: 'limit', marker: '1739155047', - startDate: '2025-01-01 00:00:00, -30days', + startDate: '2025-01-01 00:00:00', tipsSource: 'post_all', type: 'tips', }, diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index e4e81e03..a33e7e87 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,12 +49,12 @@ 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled - test.skip('list: only required params', async () => { - const responsePromise = client.trialLinks.list('acct_XXXXXXXXXXXXXXX', { limit: 10, offset: 0 }); + test.skip('list', async () => { + const responsePromise = client.trialLinks.list('acct_XXXXXXXXXXXXXXX'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -65,19 +65,28 @@ describe('resource trialLinks', () => { }); // Mock server tests are disabled - test.skip('list: required and optional params', async () => { - const response = await client.trialLinks.list('acct_XXXXXXXXXXXXXXX', { - limit: 10, - offset: 0, - field: 'create_date', - sort: 'desc', - synchronous: false, - }); + test.skip('list: 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.trialLinks.list( + 'acct_XXXXXXXXXXXXXXX', + { + endDate: '2025-01-31 23:59:59', + field: 'create_date', + limit: 10, + offset: 0, + sort: 'desc', + startDate: '2025-01-01 00:00:00', + synchronous: false, + }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); // 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +98,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +127,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('modi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +143,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('modi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('aliquam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('aliquam', { + const response = await client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +174,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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +186,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('facilis', { 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 1df031f4..676489ff 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: 'payd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vuvvswwzxd' }); 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: 'payd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vuvvswwzxd' }); }); // Mock server tests are disabled From 3ec4e503beaac3988ff69f19e283fbd69f6a8d6d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 23:12:31 +0000 Subject: [PATCH 187/309] 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 | 4 +-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++----- .../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 | 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 +-- .../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 ++++----- .../tracking-links/tracking-links.test.ts | 18 ++++++------- .../trial-links/trial-links.test.ts | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 111 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 22405e2d..bb3a0839 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da309dbd1c3d6c45514ff6c1b040914c3cf34cdb03046d7bd35787785e705309.yml -openapi_spec_hash: 18f23f2127e97f6b6510805eec8753b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c83d011e157cf01b0f121cbb6d59fd74ab5122dd78acd02b3ff051fa7150970.yml +openapi_spec_hash: 03d0968b383d83a28654f111114ef0d2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ff937e16..d646b3bc 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( - * 'assumenda', - * ); + * 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 9f8aa938..2c17c65e 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( + * 'natus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9395711e..42798595 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( - * 'odit', + * 'quasi', * { 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( - * 'odit', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0a12a142..b63ecbcc 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( - * 'magnam', + * '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( - * 'magnam', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 a84ff073..c9a094cf 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 7cc5d2c7..114d6bf9 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( - * 'minus', - * ); + * 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( - * 'fugit', + * 'fugiat', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quo'); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'autem', + * 'rem', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('rerum'); + * await client.smartLinks.retrieveCohortArps('iste'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'magni', * ); * ``` */ diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index ff5398d8..6f26eaf9 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( - * 'accusantium', + * 'quas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'accusantium', + * 'quas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ad', { + * await client.trackingLinks.getCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'vel', - * { 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 d5e9b6b0..94f14d8d 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolorem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dolorem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'modi', + * 'vero', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vel', { + * await client.trialLinks.retrieveCohortArps('explicabo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'facilis', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0e8f8c22..7d402ec8 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: 'vuvvswwzxd' }, + * { name: 'kyxwsana' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a6ef6a92..e63adb9e 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('assumenda'); + 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 a307a391..a0faef78 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: 'quia', - auth_type: 'mobile_app', - cookies: 'sequi', + auth_id: 'optio', + auth_type: 'email_password', + cookies: 'optio', customProxy: { host: 'proxy.example.com', - password: '\\w7O1<{"v', + password: 'b{EE{myHh@r?:/^@5@$', port: 8080, - username: 'et', + username: 'voluptatem', }, - email: 'jordon.leffler@example.net', - force_connect: false, - name: 'quia', - password: 'K)RXLbI+b9pQAg', - proxyCountry: 'us', - user_agent: 'rerum', - xbc: 'quia', + email: 'tavares24@example.net', + force_connect: true, + name: 'distinctio', + password: 'l>Fn"_]C}3E=*Q[Ppk|', + proxyCountry: 'gb', + user_agent: 'voluptatem', + xbc: 'nisi', }, { 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 77125615..48279c7e 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('natus', { 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('natus', { 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 7323de58..3f475430 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('odit', { + const responsePromise = client.media.vault.lists.media.add('quasi', { 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('odit', { + const response = await client.media.vault.lists.media.add('quasi', { 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('odit', { + const responsePromise = client.media.vault.lists.media.remove('quasi', { 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('odit', { + const response = await client.media.vault.lists.media.remove('quasi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7445bebd..c5136422 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('magnam', { + 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('magnam', { + 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('magnam', { 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('magnam', { + 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 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 02883e18..b643af69 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 6b1dc2fd..d13ad1ce 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 82db290a..28ae33e7 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: ['bnhxtimiznczqakj'] }, + filter: { tags: ['agvczvkxrcdjq'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('minus'); + const responsePromise = client.smartLinks.listClicks('enim'); 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( - 'minus', + 'enim', { 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('fugit'); + const responsePromise = client.smartLinks.listConversions('fugiat'); 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( - 'fugit', + 'fugiat', { 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('quo'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'quo', + 'ut', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('autem'); + const responsePromise = client.smartLinks.listSpenders('rem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'autem', + 'rem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('rerum'); + const responsePromise = client.smartLinks.retrieveCohortArps('iste'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'iste', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quia'); + const responsePromise = client.smartLinks.retrieveStats('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 d91978d5..2cf7e1b1 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: 'zqxquduciiaoqv', tags: ['izeilffinshdaizyrtpl'] }, + filter: { search: 'dpqtj', tags: ['amqcfwf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yyvcu', tags: ['pvtudkw'] }, + filter: { search: 's', tags: ['eoethnpgoopmuuayzwrtryztn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'joqbwofxjgmfykwnka', - tags: ['gtbtqa'], + search: 'yimmlinx', + tags: ['mnahgysl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'mwbsiwsweqbpmqztlxxnprh', - tags: ['hms'], + search: 'xtwbftwowonwvsygjr', + tags: ['glnqezh'], }, 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 e046e9de..d8188bcf 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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quas', { 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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ad', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ad', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('vel', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('vel', { + 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 a33e7e87..1b48135b 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('vel', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('modi', { + const responsePromise = client.trialLinks.listSubscribers('vero', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('modi', { + const response = await client.trialLinks.listSubscribers('vero', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('explicabo', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('vel', { + const response = await client.trialLinks.retrieveCohortArps('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('consequatur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('facilis', { + const response = await client.trialLinks.retrieveStats('consequatur', { 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 676489ff..8e82f803 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: 'vuvvswwzxd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kyxwsana' }); 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: 'vuvvswwzxd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kyxwsana' }); }); // Mock server tests are disabled From 2a32b4252053b9cd5ac680dd0296ed5732c46eea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 12:12:31 +0000 Subject: [PATCH 188/309] 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 | 12 ++++----- 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 | 22 ++++++++-------- .../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/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 24 +++++++---------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 117 insertions(+), 123 deletions(-) diff --git a/.stats.yml b/.stats.yml index bb3a0839..0fcca8b2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c83d011e157cf01b0f121cbb6d59fd74ab5122dd78acd02b3ff051fa7150970.yml -openapi_spec_hash: 03d0968b383d83a28654f111114ef0d2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a3538a60a65c2cb998f7fd63dfb64494f6a567cff01f7ae3932d4dde16fe1d1f.yml +openapi_spec_hash: c19092ffdce3e1fc9b7fb7513035ef5e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d646b3bc..cad18534 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( + * 'architecto', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2c17c65e..fe997253 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( - * 'natus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('hic', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 42798595..fb726275 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( - * 'quasi', + * 'recusandae', * { 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( - * 'quasi', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b63ecbcc..ca82093e 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('ut', { + * 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('ut', { + * 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 c9a094cf..a84ff073 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 114d6bf9..10a4f315 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('quia'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'fugiat', + * 'repellendus', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rem', + * 'reprehenderit', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('iste'); + * await client.smartLinks.retrieveCohortArps('quos'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'magni', + * 'saepe', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bbcad046..7b825c39 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( - * 'quas', + * '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('quas', { + * 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 6f26eaf9..6e3959a1 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( - * 'quas', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quas', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('accusantium', { * 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( + * 'saepe', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 94f14d8d..e19acdb2 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( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('nam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('nam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'vero', + * 'distinctio', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('explicabo', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consequatur', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7d402ec8..ef9d6347 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: 'kyxwsana' }, + * { name: 'ykrztpzybclmsxxjwf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e63adb9e..f9f058f7 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('architecto'); 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 a0faef78..3e1aa05b 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: 'optio', - auth_type: 'email_password', - cookies: 'optio', + auth_id: 'accusantium', + auth_type: 'raw_data', + cookies: 'aspernatur', customProxy: { host: 'proxy.example.com', - password: 'b{EE{myHh@r?:/^@5@$', + password: 'dh}b!GbPxMC.', port: 8080, - username: 'voluptatem', + username: 'saepe', }, - email: 'tavares24@example.net', - force_connect: true, - name: 'distinctio', - password: 'l>Fn"_]C}3E=*Q[Ppk|', + email: 'idell.okuneva@example.net', + force_connect: false, + name: 'incidunt', + password: 'x@dO1nnVe_', proxyCountry: 'gb', - user_agent: 'voluptatem', - xbc: 'nisi', + user_agent: 'esse', + xbc: 'dicta', }, { 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 48279c7e..c6b0c485 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('natus', { + const responsePromise = client.engagement.messages.getMessageBuyers('hic', { 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('natus', { + const response = await client.engagement.messages.getMessageBuyers('hic', { 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 3f475430..95d1dbd4 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('quasi', { + const responsePromise = client.media.vault.lists.media.add('recusandae', { 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('quasi', { + const response = await client.media.vault.lists.media.add('recusandae', { 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('quasi', { + const responsePromise = client.media.vault.lists.media.remove('recusandae', { 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('quasi', { + const response = await client.media.vault.lists.media.remove('recusandae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c5136422..548a48cb 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('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('inventore', { + 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('inventore', { 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('inventore', { + 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 ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af69..02883e18 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 28ae33e7..f28c4ca0 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: ['agvczvkxrcdjq'] }, + filter: { tags: ['tiachiihcoi'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('enim'); + const responsePromise = client.smartLinks.listClicks('quia'); 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( - 'enim', + 'quia', { 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('fugiat'); + const responsePromise = client.smartLinks.listConversions('repellendus'); 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( - 'fugiat', + 'repellendus', { 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('ut'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'ut', + 'qui', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('rem'); + const responsePromise = client.smartLinks.listSpenders('reprehenderit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'rem', + 'reprehenderit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('iste'); + const responsePromise = client.smartLinks.retrieveCohortArps('quos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'iste', + 'quos', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('magni'); + const responsePromise = client.smartLinks.retrieveStats('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'saepe', { 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 2cf7e1b1..2d8ed26a 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: 'dpqtj', tags: ['amqcfwf'] }, + filter: { search: 'zaxncrnbetzcpyv', tags: ['r'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 's', tags: ['eoethnpgoopmuuayzwrtryztn'] }, + filter: { search: 'ewtgdftnbnvfmdtc', tags: ['zcfjhzogvljnvc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yimmlinx', - tags: ['mnahgysl'], + include_smart_links: false, + search: 'psciwwwzbwxks', + tags: ['bqdnelcxbcg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'xtwbftwowonwvsygjr', - tags: ['glnqezh'], + include_smart_links: true, + search: 'fxnuzfgkbyeqnpaapuzp', + tags: ['fbmf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b76ecf2a..1b904852 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('quas', { + 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('quas', { + 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('quas', { + 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('quas', { + 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 d8188bcf..77eff3a5 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('quas', { 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quas', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quas', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('accusantium', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,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('saepe', { 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 1b48135b..dcf3b08f 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('nam', { 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('vero', { + const responsePromise = client.trialLinks.listSubscribers('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('vero', { + const response = await client.trialLinks.listSubscribers('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('explicabo', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('explicabo', { + const response = await client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('consequatur', { - 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; @@ -190,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('consequatur', { + 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 8e82f803..31867fc2 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: 'kyxwsana' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ykrztpzybclmsxxjwf' }); 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: 'kyxwsana' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ykrztpzybclmsxxjwf' }); }); // Mock server tests are disabled From aa0d19873f9c3a6b39ced1813d89e3919b743efa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:12:34 +0000 Subject: [PATCH 189/309] 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 | 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 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 124 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0fcca8b2..1925b412 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a3538a60a65c2cb998f7fd63dfb64494f6a567cff01f7ae3932d4dde16fe1d1f.yml -openapi_spec_hash: c19092ffdce3e1fc9b7fb7513035ef5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c3bff053faab91c4b19f9005ee1d08b1c95bbc572b34818b5d6ded6d684bf61.yml +openapi_spec_hash: a00f8341a150e4462efa3b0b5a073fee config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index cad18534..afb19c97 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( - * 'architecto', + * 'eligendi', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fe997253..0fa83961 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('hic', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'magni', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index fb726275..f2f1837f 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( - * 'recusandae', + * 'rerum', * { 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( - * 'recusandae', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..c8b06503 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( + * 'quaerat', + * { + * 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( + * 'quaerat', + * { 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 599a9525..a9767818 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 a84ff073..c9a094cf 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 10a4f315..c0ec137a 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('quia'); + * 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( - * 'repellendus', + * 'veritatis', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('omnis'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'reprehenderit', + * 'numquam', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quos'); + * await client.smartLinks.retrieveCohortArps('dolores'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'saepe', + * 'ad', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 7b825c39..3e56b455 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', + * 'rerum', * { * 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('rerum', { * 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 6e3959a1..36b44b12 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', + * 'a', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'a', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('accusantium', { + * await client.trackingLinks.getCohortArps('fugiat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'saepe', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e19acdb2..db3df9a2 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('nam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'assumenda', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'assumenda', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'distinctio', + * 'quam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'est', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ef9d6347..4a8201f1 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: 'ykrztpzybclmsxxjwf' }, + * { name: 'wg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f9f058f7..a1cc0959 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('architecto'); + const responsePromise = client.accounts.disconnect('eligendi'); 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 3e1aa05b..266d567b 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: 'accusantium', - auth_type: 'raw_data', - cookies: 'aspernatur', + auth_id: 'molestiae', + auth_type: 'mobile_app', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: 'dh}b!GbPxMC.', + password: "aRcXGEP'8Ysj8c|w&", port: 8080, - username: 'saepe', + username: 'eveniet', }, - email: 'idell.okuneva@example.net', + email: 'halvorson.javonte@example.com', force_connect: false, name: 'incidunt', - password: 'x@dO1nnVe_', - proxyCountry: 'gb', - user_agent: 'esse', - xbc: 'dicta', + password: '(&A3awM`CL)N9f8`', + proxyCountry: 'uk', + user_agent: 'magnam', + xbc: 'placeat', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index c6b0c485..fdc7c319 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('hic', { + const responsePromise = client.engagement.messages.getMessageBuyers('magni', { 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('hic', { + const response = await client.engagement.messages.getMessageBuyers('magni', { 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 95d1dbd4..89b269df 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('recusandae', { + const responsePromise = client.media.vault.lists.media.add('rerum', { 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('recusandae', { + const response = await client.media.vault.lists.media.add('rerum', { 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('recusandae', { + const responsePromise = client.media.vault.lists.media.remove('rerum', { 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('recusandae', { + const response = await client.media.vault.lists.media.remove('rerum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..69b39e44 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 548a48cb..da0484d7 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('quaerat', { 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('quaerat', { 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('quaerat', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 8e5b0566..4ec8acc7 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 02883e18..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f28c4ca0..0cc61c58 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: ['tiachiihcoi'] }, + filter: { tags: ['fqgolhsgmalyqvwcr'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quia'); + const responsePromise = client.smartLinks.listClicks('et'); 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( - 'quia', + 'et', { 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('repellendus'); + const responsePromise = client.smartLinks.listConversions('veritatis'); 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( - 'repellendus', + 'veritatis', { 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('qui'); + const responsePromise = client.smartLinks.listFans('omnis'); 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( - 'qui', + 'omnis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('reprehenderit'); + const responsePromise = client.smartLinks.listSpenders('numquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'reprehenderit', + 'numquam', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quos'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quos', + 'dolores', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('saepe'); + const responsePromise = client.smartLinks.retrieveStats('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'saepe', + 'ad', { 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 2d8ed26a..e451ac2e 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: 'zaxncrnbetzcpyv', tags: ['r'] }, + filter: { search: 'nib', tags: ['zhrqvpqp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ewtgdftnbnvfmdtc', tags: ['zcfjhzogvljnvc'] }, + filter: { search: 'xppkhrpdeiqzfbndfgyrgiwse', tags: ['lifwziiqmchfmy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'psciwwwzbwxks', - tags: ['bqdnelcxbcg'], + include_smart_links: true, + search: 'ignhuqdyjmntmw', + tags: ['aiwysckhxvirkdtrsdrcmexc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'fxnuzfgkbyeqnpaapuzp', - tags: ['fbmf'], + search: 'ikqvyamjwczokbwymqy', + 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 1b904852..4d879d85 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('rerum', { 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('rerum', { 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('rerum', { 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('rerum', { 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 77eff3a5..635a8521 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('a', { 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('accusantium', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('fugiat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('accusantium', { + const response = await client.trackingLinks.getCohortArps('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('saepe', { + const response = await client.trackingLinks.getStats('quis', { 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 dcf3b08f..5a71342d 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('nam', { 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('nam', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('quam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('quam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('dolores', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('dolores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,9 @@ 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('voluptatum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +190,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('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 31867fc2..5856b5b0 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: 'ykrztpzybclmsxxjwf' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wg' }); 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: 'ykrztpzybclmsxxjwf' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wg' }); }); // Mock server tests are disabled From e9b60e6b381f666d18746007c2dd51550611e6a6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 15:12:33 +0000 Subject: [PATCH 190/309] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/chats/messages.ts | 8 +++++++ src/resources/engagement/messages/messages.ts | 2 +- src/resources/mass-messaging.ts | 16 ++++++++++++++ src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++--------- src/resources/posts/posts.ts | 16 ++++++++++++++ .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 10 ++++----- 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/chats/messages.test.ts | 1 + tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- tests/api-resources/mass-messaging.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/posts/posts.test.ts | 2 ++ .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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 ++-- 33 files changed, 149 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1925b412..56a3d36d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c3bff053faab91c4b19f9005ee1d08b1c95bbc572b34818b5d6ded6d684bf61.yml -openapi_spec_hash: a00f8341a150e4462efa3b0b5a073fee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2f3054908346ebfa16676ab279293c7425b9babb0870452255c037c15a1d6f9c.yml +openapi_spec_hash: 4c39d709bc6f09eacad77af7cfedaf9b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index afb19c97..dc2c28ba 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( - * 'eligendi', + * 'necessitatibus', * ); * ``` */ diff --git a/src/resources/chats/messages.ts b/src/resources/chats/messages.ts index 2736b6c5..f7db5408 100644 --- a/src/resources/chats/messages.ts +++ b/src/resources/chats/messages.ts @@ -912,6 +912,14 @@ export interface MessageSendParams { */ account: string; + /** + * Body param: Screen `text` for OnlyFans banned words and block the send if any + * are found (returns a 422 listing the offending words). `strict_ban` blocks all + * tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks + * Replace/soften only. Omit to disable screening. + */ + blockBannedWords?: 'strict_ban' | 'risky' | 'replace_soften'; + /** * Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the * Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0fa83961..a1c2aa27 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( - * 'magni', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/mass-messaging.ts b/src/resources/mass-messaging.ts index 61523fcb..d88abfdd 100644 --- a/src/resources/mass-messaging.ts +++ b/src/resources/mass-messaging.ts @@ -676,6 +676,14 @@ export interface MassMessagingUpdateParams { */ text: string; + /** + * Body param: Screen `text` for OnlyFans banned words and block the update if any + * are found (returns a 422 listing the offending words). `strict_ban` blocks all + * tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks + * Replace/soften only. Omit to disable screening. + */ + blockBannedWords?: 'strict_ban' | 'risky' | 'replace_soften'; + /** * Body param: The ID of the Giphy GIF to attach to the message. Get IDs from the * Giphy listing endpoints (`/giphy/trending`, `/giphy/search`). @@ -758,6 +766,14 @@ export interface MassMessagingSendParams { */ text: string; + /** + * Screen `text` for OnlyFans banned words and block the send if any are found + * (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + * `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + * only. Omit to disable screening. + */ + blockBannedWords?: 'strict_ban' | 'risky' | 'replace_soften'; + /** * Array of user list IDs that the mass message will NOT be sent to. */ diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f2f1837f..37254159 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( - * 'rerum', + * 'quae', * { 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( - * 'rerum', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c8b06503..263bf6ad 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( - * 'quaerat', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ea', { + * 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( - * 'quaerat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/posts/posts.ts b/src/resources/posts/posts.ts index bea51422..281afd12 100644 --- a/src/resources/posts/posts.ts +++ b/src/resources/posts/posts.ts @@ -1126,6 +1126,14 @@ export interface PostCreateParams { */ text: string; + /** + * Screen `text` for OnlyFans banned words and block the post if any are found + * (returns a 422 listing the offending words). `strict_ban` blocks all tiers, + * `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften + * only. Omit to disable screening. + */ + blockBannedWords?: 'strict_ban' | 'risky' | 'replace_soften'; + /** * Number of days after which the post will expire. Between 1 and 30 days. Keep * empty for no expiration. @@ -1217,6 +1225,14 @@ export interface PostUpdateParams { */ text: string; + /** + * Body param: Screen `text` for OnlyFans banned words and block the update if any + * are found (returns a 422 listing the offending words). `strict_ban` blocks all + * tiers, `risky` blocks Risky + Replace/soften, `replace_soften` blocks + * Replace/soften only. Omit to disable screening. + */ + blockBannedWords?: 'strict_ban' | 'risky' | 'replace_soften'; + /** * Body param: Number of days after which the post will expire. Between 1 and 30 * days. Keep empty for no expiration. diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..a84ff073 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 c0ec137a..abde924d 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'veritatis', + * 'sed', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('omnis'); + * const response = await client.smartLinks.listFans('quasi'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'numquam', + * 'voluptates', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolores'); + * await client.smartLinks.retrieveCohortArps('ducimus'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ad', + * 'quos', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e56b455..ce63daf1 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( - * 'rerum', + * 'aperiam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('rerum', { + * await client.stories.highlights.removeStory('aperiam', { * 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 36b44b12..864bfb67 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( - * 'a', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'a', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('fugiat', { + * 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( - * 'quis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index db3df9a2..af5ee903 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('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'assumenda', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quam', + * 'occaecati', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolores', { + * await client.trialLinks.retrieveCohortArps('eveniet', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatum', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4a8201f1..5db764dd 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: 'wg' }, + * { name: 'ejps' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1cc0959..3f141528 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('eligendi'); + const responsePromise = client.accounts.disconnect('necessitatibus'); 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 266d567b..b7fd0688 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: 'molestiae', - auth_type: 'mobile_app', - cookies: 'aut', + auth_id: 'sunt', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: "aRcXGEP'8Ysj8c|w&", + password: '@$AALq*,', port: 8080, - username: 'eveniet', + username: 'sed', }, - email: 'halvorson.javonte@example.com', + email: 'dickens.brooklyn@example.com', force_connect: false, - name: 'incidunt', - password: '(&A3awM`CL)N9f8`', + name: 'earum', + password: 'xTwQ]0_OyiB|e2MA', proxyCountry: 'uk', - user_agent: 'magnam', - xbc: 'placeat', + user_agent: 'qui', + xbc: 'voluptates', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/chats/messages.test.ts b/tests/api-resources/chats/messages.test.ts index d33a4619..f8d45cea 100644 --- a/tests/api-resources/chats/messages.test.ts +++ b/tests/api-resources/chats/messages.test.ts @@ -164,6 +164,7 @@ describe('resource messages', () => { test.skip('send: required and optional params', async () => { const response = await client.chats.messages.send('123', { account: 'acct_XXXXXXXXXXXXXXX', + blockBannedWords: 'strict_ban', giphyId: 'WAGC3LeqJvXglm5H7a', lockedText: true, mediaFiles: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index fdc7c319..d0e67171 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('magni', { + const responsePromise = client.engagement.messages.getMessageBuyers('ducimus', { 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('magni', { + const response = await client.engagement.messages.getMessageBuyers('ducimus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/mass-messaging.test.ts b/tests/api-resources/mass-messaging.test.ts index c1d69b78..20ba1639 100644 --- a/tests/api-resources/mass-messaging.test.ts +++ b/tests/api-resources/mass-messaging.test.ts @@ -45,6 +45,7 @@ describe('resource massMessaging', () => { const response = await client.massMessaging.update('id', { account: 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', giphyId: 'WAGC3LeqJvXglm5H7a', lockedText: true, mediaFiles: ['ofapi_media_abc123', 'string'], @@ -130,6 +131,7 @@ describe('resource massMessaging', () => { test.skip('send: required and optional params', async () => { const response = await client.massMessaging.send('acct_XXXXXXXXXXXXXXX', { text: 'Hello!', + blockBannedWords: 'strict_ban', excludedLists: ['fans', 'recent', 'following', 'rebill_off', 'tagged', 'string'], giphyId: 'WAGC3LeqJvXglm5H7a', lockedText: true, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 89b269df..c37b7f3d 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('rerum', { + const responsePromise = client.media.vault.lists.media.add('quae', { 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('rerum', { + const response = await client.media.vault.lists.media.add('quae', { 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('rerum', { + const responsePromise = client.media.vault.lists.media.remove('quae', { 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('rerum', { + const response = await client.media.vault.lists.media.remove('quae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..14dcb2e9 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 da0484d7..91b2d341 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('quaerat', { + const responsePromise = client.posts.comments.create('ea', { 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('quaerat', { + const response = await client.posts.comments.create('ea', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ea', { 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('quaerat', { + const response = await client.posts.comments.list('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/posts/posts.test.ts b/tests/api-resources/posts/posts.test.ts index 737eca89..ab96826e 100644 --- a/tests/api-resources/posts/posts.test.ts +++ b/tests/api-resources/posts/posts.test.ts @@ -24,6 +24,7 @@ describe('resource posts', () => { test.skip('create: required and optional params', async () => { const response = await client.posts.create('acct_XXXXXXXXXXXXXXX', { text: 'Hello!', + blockBannedWords: 'strict_ban', expireDays: 3, fundRaisingTargetAmount: 30, fundRaisingTipsPresets: ['string', 'string', 'string'], @@ -77,6 +78,7 @@ describe('resource posts', () => { const response = await client.posts.update(1234567890, { account: 'acct_XXXXXXXXXXXXXXX', text: 'Hello!', + blockBannedWords: 'strict_ban', expireDays: 3, fundRaisingTargetAmount: 30, fundRaisingTipsPresets: ['string', 'string', 'string'], 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 b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0cc61c58..aa577ff7 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: ['fqgolhsgmalyqvwcr'] }, + filter: { tags: ['j'] }, limit: 50, name: 'Instagram', offset: 0, @@ -121,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('veritatis'); + const responsePromise = client.smartLinks.listConversions('sed'); 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( - 'veritatis', + 'sed', { 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('omnis'); + const responsePromise = client.smartLinks.listFans('quasi'); 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( - 'omnis', + 'quasi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('numquam'); + const responsePromise = client.smartLinks.listSpenders('voluptates'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'numquam', + 'voluptates', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); + const responsePromise = client.smartLinks.retrieveCohortArps('ducimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'dolores', + 'ducimus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ad'); + const responsePromise = client.smartLinks.retrieveStats('quos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ad', + 'quos', { 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 e451ac2e..93934d6e 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: 'nib', tags: ['zhrqvpqp'] }, + filter: { search: 'uqroksrtiabbo', tags: ['ceazzelgytfxvpdibm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xppkhrpdeiqzfbndfgyrgiwse', tags: ['lifwziiqmchfmy'] }, + filter: { search: 'dmflfcx', tags: ['ipuqpryndbwpzv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ignhuqdyjmntmw', - tags: ['aiwysckhxvirkdtrsdrcmexc'], + search: 'p', + tags: ['nphzgfxiwloxsjtxckzcbux'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ikqvyamjwczokbwymqy', - tags: ['f'], + include_smart_links: false, + search: 'etoggjjlfabaxkmxd', + tags: ['qrimgfgmcn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4d879d85..f6644678 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('rerum', { + const responsePromise = client.stories.highlights.addStory('aperiam', { 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('rerum', { + const response = await client.stories.highlights.addStory('aperiam', { 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('rerum', { + const responsePromise = client.stories.highlights.removeStory('aperiam', { 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('rerum', { + const response = await client.stories.highlights.removeStory('aperiam', { 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 635a8521..0fe5eb18 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('a', { 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('a', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('a', { 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('fugiat', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('fugiat', { + const response = await client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quis', { + const response = await client.trackingLinks.getStats('voluptatem', { 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 5a71342d..9a49c40c 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('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('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quam', { + const responsePromise = client.trialLinks.listSubscribers('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quam', { + const response = await client.trialLinks.listSubscribers('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolores', { + const responsePromise = client.trialLinks.retrieveCohortArps('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolores', { + const response = await client.trialLinks.retrieveCohortArps('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +176,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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +188,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('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 5856b5b0..f74ad365 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: 'wg' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ejps' }); 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: 'wg' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ejps' }); }); // Mock server tests are disabled From 08ca12910ff21d6af495d29ee1fdce75acefdcda Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 18:12:34 +0000 Subject: [PATCH 191/309] 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 +- 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 | 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 +-- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 110 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 56a3d36d..d32738c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2f3054908346ebfa16676ab279293c7425b9babb0870452255c037c15a1d6f9c.yml -openapi_spec_hash: 4c39d709bc6f09eacad77af7cfedaf9b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-97902ef4cbb263202ea43da4f6b6111d9dc5788b0d26a8ba55168a8ee461c9e0.yml +openapi_spec_hash: 6cf3c58b05423ebab144e2d351c8fb6c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index dc2c28ba..15b563e7 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( - * 'necessitatibus', - * ); + * const response = await client.accounts.disconnect('eum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a1c2aa27..0547f9af 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( - * 'ducimus', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 37254159..af9ad358 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( - * 'quae', + * '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( - * 'quae', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 263bf6ad..f01248fc 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('ea', { + * const comment = await client.posts.comments.create('eum', { * 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('ea', { + * const comments = await client.posts.comments.list('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 abde924d..5d840d8d 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( + * 'nulla', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sed', + * 'accusantium', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quasi'); + * const response = await client.smartLinks.listFans( + * 'dolorem', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptates', + * 'quia', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ducimus'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quos', + * 'veritatis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ce63daf1..445cba5e 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( - * 'aperiam', + * 'enim', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aperiam', { + * await client.stories.highlights.removeStory('enim', { * 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 864bfb67..fb623129 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', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'non', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iusto', { + * await client.trackingLinks.getCohortArps('natus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatem', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index af5ee903..18e7c9fc 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( + * 'possimus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'possimus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'occaecati', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eveniet', { + * await client.trialLinks.retrieveCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsa', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5db764dd..4e02e8b2 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: 'ejps' }, + * { name: 'inwsuzlzagypi' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3f141528..51e2c867 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('necessitatibus'); + const responsePromise = client.accounts.disconnect('eum'); 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 b7fd0688..c5aabf28 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: 'sunt', - auth_type: 'raw_data', - cookies: 'et', + auth_id: 'qui', + auth_type: 'email_password', + cookies: 'nam', customProxy: { host: 'proxy.example.com', - password: '@$AALq*,', + password: ':^h~ax;auy~N', port: 8080, - username: 'sed', + username: 'illo', }, - email: 'dickens.brooklyn@example.com', - force_connect: false, - name: 'earum', - password: 'xTwQ]0_OyiB|e2MA', + email: 'alvena94@example.org', + force_connect: true, + name: 'porro', + password: '@(}2=3\\^y', proxyCountry: 'uk', - user_agent: 'qui', - xbc: 'voluptates', + user_agent: 'quam', + xbc: 'fugit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 d0e67171..90f3230e 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('ducimus', { + const responsePromise = client.engagement.messages.getMessageBuyers('ipsum', { 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('ducimus', { + const response = await client.engagement.messages.getMessageBuyers('ipsum', { 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 c37b7f3d..e6c1db3e 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('quae', { + 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('quae', { + 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('quae', { + 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('quae', { + 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 14dcb2e9..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91b2d341..4e690631 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('ea', { + const responsePromise = client.posts.comments.create('eum', { 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('ea', { + const response = await client.posts.comments.create('eum', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eum', { 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('ea', { + const response = await client.posts.comments.list('eum', { 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 4ec8acc7..8e5b0566 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index aa577ff7..8523ac15 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: ['j'] }, + filter: { tags: ['qhganjuqcdpzzxmyjckkxrp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('nulla'); 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( - 'et', + 'nulla', { 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('sed'); + const responsePromise = client.smartLinks.listConversions('accusantium'); 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( - 'sed', + 'accusantium', { 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('quasi'); + const responsePromise = client.smartLinks.listFans('dolorem'); 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( - 'quasi', + 'dolorem', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptates'); + const responsePromise = client.smartLinks.listSpenders('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptates', + 'quia', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ducimus'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ducimus', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quos'); + const responsePromise = client.smartLinks.retrieveStats('veritatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quos', + 'veritatis', { 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 93934d6e..3f04e8a4 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: 'uqroksrtiabbo', tags: ['ceazzelgytfxvpdibm'] }, + filter: { search: 'fpqnuildknb', tags: ['nkfvun'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dmflfcx', tags: ['ipuqpryndbwpzv'] }, + filter: { search: 'acqmzfldxvbjoyuqbkw', tags: ['p'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'p', - tags: ['nphzgfxiwloxsjtxckzcbux'], + search: 'nhxvnskhkwgwmssie', + tags: ['puyyilzbghwnurefvljx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'etoggjjlfabaxkmxd', - tags: ['qrimgfgmcn'], + include_smart_links: true, + search: 'wijpxuhariopmcwpbidhfwabl', + tags: ['gzsqk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f6644678..bdebd6b4 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('aperiam', { + const responsePromise = client.stories.highlights.addStory('enim', { 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('aperiam', { + const response = await client.stories.highlights.addStory('enim', { 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('aperiam', { + const responsePromise = client.stories.highlights.removeStory('enim', { 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('aperiam', { + const response = await client.stories.highlights.removeStory('enim', { 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 0fe5eb18..391b8f3a 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('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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('laborum', { 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('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('natus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('excepturi', { 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 9a49c40c..8212d67d 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('possimus', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('occaecati', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('occaecati', { + const response = await client.trialLinks.listSubscribers('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eveniet', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eveniet', { + const response = await client.trialLinks.retrieveCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('repudiandae', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('repudiandae', { 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 f74ad365..5ff6cb46 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: 'ejps' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'inwsuzlzagypi' }); 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: 'ejps' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'inwsuzlzagypi' }); }); // Mock server tests are disabled From 60f7448ee6c34b836224b7d1ee8041bcd0e8e3cd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 19:12:34 +0000 Subject: [PATCH 192/309] 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 ++++++++----- 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 | 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 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- 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 | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 22 files changed, 111 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index d32738c8..ab2b5d70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-97902ef4cbb263202ea43da4f6b6111d9dc5788b0d26a8ba55168a8ee461c9e0.yml -openapi_spec_hash: 6cf3c58b05423ebab144e2d351c8fb6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11a0627173e9c00b01da53d9797226d9df93a606b30d63bbf4fca19f90e870c6.yml +openapi_spec_hash: 65cabda2c9d843f02539f47cd449f62b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 15b563e7..9d2ebb28 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('eum'); + * const response = await client.accounts.disconnect('veniam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0547f9af..9f8aa938 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( - * 'ipsum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..9a03aa26 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', + * 'nostrum', * { 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', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f01248fc..5e6a6409 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('eum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'fugiat', + * { + * 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('eum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'fugiat', + * { 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 5d840d8d..3624f893 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( - * 'nulla', - * ); + * 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( - * 'accusantium', + * 'reprehenderit', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'dolorem', - * ); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'quas', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'veritatis', + * 'ducimus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 445cba5e..e8661886 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( - * 'enim', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('enim', { + * await client.stories.highlights.removeStory('aut', { * 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 fb623129..2a299026 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'laborum', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('natus', { + * await client.trackingLinks.getCohortArps('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'excepturi', - * { 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 18e7c9fc..b8f89f5a 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( - * 'possimus', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'possimus', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'eveniet', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('enim', { + * await client.trialLinks.retrieveCohortArps('incidunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'repudiandae', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4e02e8b2..a13690cb 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: 'inwsuzlzagypi' }, + * { name: 'ibgsmlxuwltrsrdap' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 51e2c867..b00cb79d 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('eum'); + const responsePromise = client.accounts.disconnect('veniam'); 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 c5aabf28..765dccd9 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: 'qui', - auth_type: 'email_password', - cookies: 'nam', + auth_id: 'distinctio', + auth_type: 'mobile_app', + cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: ':^h~ax;auy~N', + password: '5/$+KH1f^t', port: 8080, - username: 'illo', + username: 'pariatur', }, - email: 'alvena94@example.org', - force_connect: true, - name: 'porro', - password: '@(}2=3\\^y', - proxyCountry: 'uk', - user_agent: 'quam', - xbc: 'fugit', + email: 'fiona.schroeder@example.com', + force_connect: false, + name: 'excepturi', + password: '|ZD>q+T]`RE>13V8EfFg', + proxyCountry: 'us', + user_agent: 'enim', + xbc: 'atque', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 90f3230e..77125615 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('ipsum', { + 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('ipsum', { + 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 e6c1db3e..b4b720c0 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('nostrum', { 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('nostrum', { 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('nostrum', { 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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4e690631..17a0ca0e 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('eum', { + const responsePromise = client.posts.comments.create('fugiat', { 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('eum', { + const response = await client.posts.comments.create('fugiat', { 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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('fugiat', { 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('eum', { + const response = await client.posts.comments.list('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 8523ac15..18a0991c 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: ['qhganjuqcdpzzxmyjckkxrp'] }, + filter: { tags: ['byxixchhvsiomrq'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nulla'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'nulla', + 'qui', { 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('accusantium'); + const responsePromise = client.smartLinks.listConversions('reprehenderit'); 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( - 'accusantium', + 'reprehenderit', { 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('dolorem'); + 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( - 'dolorem', + 'et', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quia'); + const responsePromise = client.smartLinks.listSpenders('quas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'quas', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('veritatis'); + const responsePromise = client.smartLinks.retrieveStats('ducimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'veritatis', + 'ducimus', { 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 3f04e8a4..21800c7d 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: 'fpqnuildknb', tags: ['nkfvun'] }, + filter: { search: 'hgeskqdnr', tags: ['vqfgpsbugrpjdl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'acqmzfldxvbjoyuqbkw', tags: ['p'] }, + filter: { search: 'rs', tags: ['lnmgr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nhxvnskhkwgwmssie', - tags: ['puyyilzbghwnurefvljx'], + include_smart_links: false, + search: 'jvurlfrriz', + tags: ['qcozytdqcnxtikmcojxu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'wijpxuhariopmcwpbidhfwabl', - tags: ['gzsqk'], + include_smart_links: false, + search: 'vtfnvysm', + tags: ['bydqrtj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdebd6b4..013f5fda 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('enim', { + const responsePromise = client.stories.highlights.addStory('aut', { 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('enim', { + const response = await client.stories.highlights.addStory('aut', { 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('enim', { + const responsePromise = client.stories.highlights.removeStory('aut', { 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('enim', { + const response = await client.stories.highlights.removeStory('aut', { 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 391b8f3a..dec5e145 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('voluptas', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('natus', { + const response = await client.trackingLinks.getCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('excepturi', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('excepturi', { + 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 8212d67d..f0a65e29 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('provident', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('enim', { + const response = await client.trialLinks.retrieveCohortArps('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('repudiandae', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('repudiandae', { + const response = await client.trialLinks.retrieveStats('mollitia', { 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 5ff6cb46..6d3f4abe 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: 'inwsuzlzagypi' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ibgsmlxuwltrsrdap' }); 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: 'inwsuzlzagypi' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ibgsmlxuwltrsrdap' }); }); // Mock server tests are disabled From 8969b09d7f36c441be1a0c117c375822ed957a0a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 20:12:33 +0000 Subject: [PATCH 193/309] 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 | 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 | 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 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 +-- 25 files changed, 111 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index ab2b5d70..e8903048 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11a0627173e9c00b01da53d9797226d9df93a606b30d63bbf4fca19f90e870c6.yml -openapi_spec_hash: 65cabda2c9d843f02539f47cd449f62b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-39a2103ff4e1500e445e7588d0a44967af270f674815969b620ec187b2756d63.yml +openapi_spec_hash: 8c939d7af4bc22bed15c0b439a427099 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d2ebb28..5ea9ae45 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('veniam'); + * const response = await client.accounts.disconnect('magnam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 9f8aa938..fdc0844e 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( + * 'alias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9a03aa26..66060118 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( - * 'nostrum', + * 'dolores', * { 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( - * 'nostrum', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 5e6a6409..a403256d 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( - * 'fugiat', + * 'eveniet', * { * 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( - * 'fugiat', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..2b04cbb2 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 3624f893..84120db9 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( + * 'nesciunt', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'reprehenderit', + * 'consequuntur', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('nisi'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quas', + * 'pariatur', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('modi'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ducimus', + * 'itaque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..45b669a0 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( - * 'aut', + * 'suscipit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('suscipit', { * 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 2a299026..08bc0d5d 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( - * 'voluptas', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sed', { + * await client.trackingLinks.getCohortArps('facere', { * 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( + * 'minus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b8f89f5a..58b9b711 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( - * 'provident', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'provident', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eveniet', + * 'esse', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('incidunt', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'mollitia', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a13690cb..ab00bc2d 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: 'ibgsmlxuwltrsrdap' }, + * { name: 'mans' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b00cb79d..36b08578 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('veniam'); + const responsePromise = client.accounts.disconnect('magnam'); 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 765dccd9..26306dcc 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: 'distinctio', - auth_type: 'mobile_app', - cookies: 'quo', + auth_id: 'laboriosam', + auth_type: 'raw_data', + cookies: 'rem', customProxy: { host: 'proxy.example.com', - password: '5/$+KH1f^t', + password: '@4)55@b`JxoTYN}:/]uR', port: 8080, - username: 'pariatur', + username: 'dolorem', }, - email: 'fiona.schroeder@example.com', - force_connect: false, - name: 'excepturi', - password: '|ZD>q+T]`RE>13V8EfFg', + email: 'domingo25@example.net', + force_connect: true, + name: 'eaque', + password: 'R:Fj*sL { // 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('alias', { 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('alias', { 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 b4b720c0..273bfa0a 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('nostrum', { + const responsePromise = client.media.vault.lists.media.add('dolores', { 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('nostrum', { + const response = await client.media.vault.lists.media.add('dolores', { 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('nostrum', { + const responsePromise = client.media.vault.lists.media.remove('dolores', { 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('nostrum', { + const response = await client.media.vault.lists.media.remove('dolores', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..7b042946 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 17a0ca0e..adc196dc 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('fugiat', { + const responsePromise = client.posts.comments.create('eveniet', { 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('fugiat', { + const response = await client.posts.comments.create('eveniet', { 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('fugiat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eveniet', { 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('fugiat', { + const response = await client.posts.comments.list('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..96d399de 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 18a0991c..80d3dfaa 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: ['byxixchhvsiomrq'] }, + filter: { tags: ['tiscvamdplvxcwzsnumid'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('qui'); + const responsePromise = client.smartLinks.listClicks('nesciunt'); 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( - 'qui', + 'nesciunt', { 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('reprehenderit'); + const responsePromise = client.smartLinks.listConversions('consequuntur'); 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( - 'reprehenderit', + 'consequuntur', { 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('nisi'); 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', + 'nisi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quas'); + const responsePromise = client.smartLinks.listSpenders('pariatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quas', + 'pariatur', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('modi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'modi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ducimus'); + const responsePromise = client.smartLinks.retrieveStats('itaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ducimus', + 'itaque', { 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 21800c7d..3e753e76 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: 'hgeskqdnr', tags: ['vqfgpsbugrpjdl'] }, + filter: { search: 'dsort', tags: ['ncujgxckrnbqcp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rs', tags: ['lnmgr'] }, + filter: { search: 'p', tags: ['tlczjtblhlugeewpkxi'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'jvurlfrriz', - tags: ['qcozytdqcnxtikmcojxu'], + include_smart_links: true, + search: 'nbefxcvououvyxzzwbsdju', + tags: ['szivxqkdybosdvzwpbvgrkos'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vtfnvysm', - tags: ['bydqrtj'], + include_smart_links: true, + search: 'evreavmtwvhybtjkhjmhvt', + tags: ['ebwpqkczszhiouixncuekos'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..3b6904fe 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('aut', { + const responsePromise = client.stories.highlights.addStory('suscipit', { 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('aut', { + const response = await client.stories.highlights.addStory('suscipit', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('suscipit', { 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('aut', { + const response = await client.stories.highlights.removeStory('suscipit', { 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 dec5e145..eb84e758 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ipsam', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('sed', { + const response = await client.trackingLinks.getCohortArps('facere', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('minus', { 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 f0a65e29..8e5f3a85 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('provident', { 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('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('provident', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('eveniet', { + const responsePromise = client.trialLinks.listSubscribers('esse', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('eveniet', { + const response = await client.trialLinks.listSubscribers('esse', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('incidunt', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('mollitia', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('mollitia', { + 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 6d3f4abe..91ceecde 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: 'ibgsmlxuwltrsrdap' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mans' }); 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: 'ibgsmlxuwltrsrdap' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mans' }); }); // Mock server tests are disabled From 8624c42cc31061225991977ef151fdd9b1bf7085 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:12:32 +0000 Subject: [PATCH 194/309] feat(api): api update --- .stats.yml | 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/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/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 +-- .../shared-trial-links.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 +-- 24 files changed, 111 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index e8903048..7a485235 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-39a2103ff4e1500e445e7588d0a44967af270f674815969b620ec187b2756d63.yml -openapi_spec_hash: 8c939d7af4bc22bed15c0b439a427099 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-94c07edc67437207a1300a1d91c46760682d0f3551bd3379ffd7b643606a5062.yml +openapi_spec_hash: 9cb9eba31f6c564c33f2a1af7353837c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fdc0844e..d9ad63e4 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( - * 'alias', + * 'itaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66060118..fb9054a4 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( - * 'dolores', + * 'sunt', * { 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( - * 'dolores', + * 'sunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a403256d..59dc36ac 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( - * 'eveniet', + * 'alias', * { * 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( - * 'eveniet', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('alias', { + * 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 2b04cbb2..c9a094cf 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 84120db9..9e74d162 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( - * 'nesciunt', + * 'deserunt', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'consequuntur', + * 'molestiae', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nisi'); + * const response = await client.smartLinks.listFans( + * 'laborum', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'pariatur', + * 'perspiciatis', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('modi'); + * await client.smartLinks.retrieveCohortArps('tenetur'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'itaque', + * 'saepe', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 45b669a0..bdf0e650 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( - * 'suscipit', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('suscipit', { + * await client.stories.highlights.removeStory('voluptas', { * 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 08bc0d5d..8b092499 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( - * 'ipsam', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ipsam', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('facere', { + * await client.trackingLinks.getCohortArps('blanditiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'minus', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 58b9b711..858f781d 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( + * 'aliquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'aliquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'esse', + * 'hic', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('maxime', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'esse', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ab00bc2d..aecaaf5b 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: 'mans' }, + * { name: 'jvi' }, * ); * ``` */ diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 26306dcc..6f9499fa 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: 'laboriosam', - auth_type: 'raw_data', - cookies: 'rem', + auth_id: 'molestiae', + auth_type: 'mobile_app', + cookies: 'repellat', customProxy: { host: 'proxy.example.com', - password: '@4)55@b`JxoTYN}:/]uR', + password: 'lBd)mQyE7_y.6\\', port: 8080, - username: 'dolorem', + username: 'sed', }, - email: 'domingo25@example.net', - force_connect: true, - name: 'eaque', - password: 'R:Fj*sL { 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 adec421e..9bb8cbf3 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('alias', { + 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('alias', { + 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 273bfa0a..9b4298b2 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('dolores', { + const responsePromise = client.media.vault.lists.media.add('sunt', { 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('dolores', { + const response = await client.media.vault.lists.media.add('sunt', { 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('dolores', { + const responsePromise = client.media.vault.lists.media.remove('sunt', { 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('dolores', { + const response = await client.media.vault.lists.media.remove('sunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index adc196dc..ea577e06 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('eveniet', { + 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('eveniet', { + 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('eveniet', { 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('eveniet', { + const response = await client.posts.comments.list('alias', { 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 96d399de..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 80d3dfaa..af23e203 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: ['tiscvamdplvxcwzsnumid'] }, + filter: { tags: ['byxnm'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nesciunt'); + const responsePromise = client.smartLinks.listClicks('deserunt'); 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( - 'nesciunt', + 'deserunt', { 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('consequuntur'); + const responsePromise = client.smartLinks.listConversions('molestiae'); 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( - 'consequuntur', + 'molestiae', { 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('nisi'); + const responsePromise = client.smartLinks.listFans('laborum'); 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( - 'nisi', + 'laborum', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('pariatur'); + const responsePromise = client.smartLinks.listSpenders('perspiciatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'pariatur', + 'perspiciatis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('modi'); + const responsePromise = client.smartLinks.retrieveCohortArps('tenetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'modi', + 'tenetur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('itaque'); + const responsePromise = client.smartLinks.retrieveStats('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'itaque', + 'saepe', { 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 3e753e76..a3223dbc 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: 'dsort', tags: ['ncujgxckrnbqcp'] }, + filter: { search: 'vfkassuucyeexecmjufk', tags: ['pujpbmpwvaeddrwgdxjswbt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'p', tags: ['tlczjtblhlugeewpkxi'] }, + filter: { search: 'uzfmzrzdjokfsgfstiexhhc', tags: ['rpexmkrchwuvclmhqzbc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nbefxcvououvyxzzwbsdju', - tags: ['szivxqkdybosdvzwpbvgrkos'], + include_smart_links: false, + search: 'pehiudoksduurubqavmcl', + tags: ['cqmgsyx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'evreavmtwvhybtjkhjmhvt', - tags: ['ebwpqkczszhiouixncuekos'], + include_smart_links: false, + search: 'jftmxkuwgcnigngejnksh', + tags: ['ilrk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b6904fe..54e23fba 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('suscipit', { + const responsePromise = client.stories.highlights.addStory('voluptas', { 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('suscipit', { + const response = await client.stories.highlights.addStory('voluptas', { 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('suscipit', { + const responsePromise = client.stories.highlights.removeStory('voluptas', { 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('suscipit', { + const response = await client.stories.highlights.removeStory('voluptas', { 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 eb84e758..04b8d460 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eos', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('blanditiis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('facere', { + const response = await client.trackingLinks.getCohortArps('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('minus', { + const response = await client.trackingLinks.getStats('voluptate', { 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 8e5f3a85..5efd6cb6 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('aliquam', { 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('esse', { + const responsePromise = client.trialLinks.listSubscribers('hic', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('esse', { + const response = await client.trialLinks.listSubscribers('hic', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('maxime', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('maxime', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ 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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('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 91ceecde..c14a788d 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: 'mans' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jvi' }); 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: 'mans' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jvi' }); }); // Mock server tests are disabled From f93f8b18a19bf2eaf9f64f27105a1a75df13d008 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 14:12:32 +0000 Subject: [PATCH 195/309] 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 | 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 +++--- .../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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 111 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7a485235..07e36940 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-94c07edc67437207a1300a1d91c46760682d0f3551bd3379ffd7b643606a5062.yml -openapi_spec_hash: 9cb9eba31f6c564c33f2a1af7353837c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-465eac4b7df335b90281f9f90f4455eb4567e74f8b592b7c83381153219b3fb2.yml +openapi_spec_hash: 4b0e1da35d79b4463c02c88445d139e4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5ea9ae45..4a2ec1e5 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('magnam'); + * const response = await client.accounts.disconnect('quis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d9ad63e4..80521b78 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( - * 'itaque', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index fb9054a4..27d723d8 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( - * 'sunt', + * 'saepe', * { 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( - * 'sunt', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 59dc36ac..fcd49b25 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', + * 'dolorum', * { * 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( + * 'dolorum', + * { 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..41feb4c0 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 9e74d162..5a339e74 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( - * 'deserunt', + * 'nulla', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'molestiae', + * 'accusantium', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'laborum', - * ); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'perspiciatis', + * 'sunt', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tenetur'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'saepe', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bdf0e650..56d6fde3 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( - * 'voluptas', + * 'beatae', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('voluptas', { + * await client.stories.highlights.removeStory('beatae', { * 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 8b092499..d75ac0be 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( - * 'eos', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eos', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('blanditiis', { + * await client.trackingLinks.getCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptate', + * 'vero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 858f781d..ff50fb33 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( - * 'aliquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('vero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'aliquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('vero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'hic', + * 'officiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('maxime', { + * await client.trialLinks.retrieveCohortArps('modi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorem', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index aecaaf5b..583964a8 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: 'jvi' }, + * { name: 'n' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 36b08578..835393b3 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('magnam'); + const responsePromise = client.accounts.disconnect('quis'); 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 6f9499fa..43139ead 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: 'molestiae', - auth_type: 'mobile_app', - cookies: 'repellat', + auth_id: 'repellat', + auth_type: 'raw_data', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: 'lBd)mQyE7_y.6\\', + password: '*?RMFZ', port: 8080, - username: 'sed', + username: 'molestiae', }, - email: 'russ45@example.com', - force_connect: false, - name: 'corporis', - password: 'Br:YiLm|:=QE:', - proxyCountry: 'us', - user_agent: 'voluptatem', - xbc: 'optio', + email: 'friesen.gustave@example.org', + force_connect: true, + name: 'odio', + password: '{-03rsh', + proxyCountry: 'gb', + user_agent: 'sit', + xbc: 'eligendi', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 9bb8cbf3..778ed3c7 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('dolor', { 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('dolor', { 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 9b4298b2..434a10a8 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('sunt', { + const responsePromise = client.media.vault.lists.media.add('saepe', { 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('sunt', { + const response = await client.media.vault.lists.media.add('saepe', { 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('sunt', { + const responsePromise = client.media.vault.lists.media.remove('saepe', { 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('sunt', { + const response = await client.media.vault.lists.media.remove('saepe', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ea577e06..3e283fa2 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('dolorum', { 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('dolorum', { 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('dolorum', { 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 af23e203..b74df4ea 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: ['byxnm'] }, + filter: { tags: ['frfjiutorogkxjgyriviprd'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('deserunt'); + const responsePromise = client.smartLinks.listClicks('nulla'); 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( - 'deserunt', + 'nulla', { 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('molestiae'); + const responsePromise = client.smartLinks.listConversions('accusantium'); 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( - 'molestiae', + 'accusantium', { 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('laborum'); + const responsePromise = client.smartLinks.listFans('quia'); 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( - 'laborum', + 'quia', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('perspiciatis'); + const responsePromise = client.smartLinks.listSpenders('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'perspiciatis', + 'sunt', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tenetur'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('saepe'); + const responsePromise = client.smartLinks.retrieveStats('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'saepe', + '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 a3223dbc..9c721a03 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: 'vfkassuucyeexecmjufk', tags: ['pujpbmpwvaeddrwgdxjswbt'] }, + filter: { search: 'oimzedrvgqaew', tags: ['sfumtpcygesdospmuxapqfbi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uzfmzrzdjokfsgfstiexhhc', tags: ['rpexmkrchwuvclmhqzbc'] }, + filter: { search: 'dntmkbxvkokdvdoekfgahlkat', tags: ['hopyf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'pehiudoksduurubqavmcl', - tags: ['cqmgsyx'], + include_smart_links: true, + search: 'q', + tags: ['lzgd'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jftmxkuwgcnigngejnksh', - tags: ['ilrk'], + search: 'hzgald', + tags: ['z'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 54e23fba..8fbdecb6 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('voluptas', { + const responsePromise = client.stories.highlights.addStory('beatae', { 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('voluptas', { + const response = await client.stories.highlights.addStory('beatae', { 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('voluptas', { + const responsePromise = client.stories.highlights.removeStory('beatae', { 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('voluptas', { + const response = await client.stories.highlights.removeStory('beatae', { 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 04b8d460..0d674c32 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('libero', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('blanditiis', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('blanditiis', { + const response = await client.trackingLinks.getCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('voluptate', { + const response = await client.trackingLinks.getStats('vero', { 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 5efd6cb6..cf97277e 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('vero', { 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('hic', { + const responsePromise = client.trialLinks.listSubscribers('officiis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('hic', { + const response = await client.trialLinks.listSubscribers('officiis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('maxime', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('maxime', { + const response = await client.trialLinks.retrieveCohortArps('modi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('ipsum', { 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 c14a788d..1a88807b 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: 'jvi' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'n' }); 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: 'jvi' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'n' }); }); // Mock server tests are disabled From b65da15c20c990c6fb8a4d5a925ea61ccae6c042 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:12:33 +0000 Subject: [PATCH 196/309] 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 | 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 ++++++++-------- 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 +-- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 113 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 07e36940..619d91d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-465eac4b7df335b90281f9f90f4455eb4567e74f8b592b7c83381153219b3fb2.yml -openapi_spec_hash: 4b0e1da35d79b4463c02c88445d139e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd199f2ebabf57dcdcb7b1884a8cac0959f8f5d817e8d3560ba85aa01ecfc28c.yml +openapi_spec_hash: 87f391adff299fc8309bc1140f03d145 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4a2ec1e5..8ed50d64 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('quis'); + * const response = await client.accounts.disconnect('beatae'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 80521b78..13e1faf2 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( - * 'dolor', + * 'ratione', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 27d723d8..a9b5c262 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( - * 'saepe', + * '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( - * 'saepe', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fcd49b25..aec783f3 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( - * 'dolorum', + * 'architecto', * { * 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( - * 'dolorum', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 41feb4c0..2b04cbb2 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 5a339e74..0de6b488 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', + * 'voluptatibus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'accusantium', + * 'maiores', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * const response = await client.smartLinks.listFans( + * 'adipisci', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'optio', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('quia'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequatur', + * 'odio', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56d6fde3..dd3bc7c4 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( - * 'beatae', + * 'vero', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('beatae', { + * await client.stories.highlights.removeStory('vero', { * 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 d75ac0be..d20c69ac 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( - * 'libero', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'libero', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quia', { + * await client.trackingLinks.getCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'vero', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ad', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ff50fb33..4e43f350 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('vero', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vero', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'officiis', + * 'architecto', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('modi', { + * await client.trialLinks.retrieveCohortArps('nam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsum', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 583964a8..b45cfdb3 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: 'n' }, + * { name: 'xv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 835393b3..ac0784a3 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('quis'); + const responsePromise = client.accounts.disconnect('beatae'); 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 43139ead..9fbb132b 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: 'repellat', - auth_type: 'raw_data', - cookies: 'aut', + auth_id: 'et', + auth_type: 'mobile_app', + cookies: 'vero', customProxy: { host: 'proxy.example.com', - password: '*?RMFZ', + password: ';!&H0;', port: 8080, - username: 'molestiae', + username: 'laudantium', }, - email: 'friesen.gustave@example.org', + email: 'lubowitz.enid@example.net', force_connect: true, - name: 'odio', - password: '{-03rsh', - proxyCountry: 'gb', - user_agent: 'sit', - xbc: 'eligendi', + name: 'libero', + password: '&/*9g.E5OG', + proxyCountry: 'us', + user_agent: 'neque', + xbc: 'in', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 778ed3c7..1cb7c4dc 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('dolor', { + const responsePromise = client.engagement.messages.getMessageBuyers('ratione', { 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('dolor', { + const response = await client.engagement.messages.getMessageBuyers('ratione', { 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 434a10a8..d51681f5 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('saepe', { + 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('saepe', { + 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('saepe', { + 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('saepe', { + 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 69b39e44..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3e283fa2..221840f1 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('dolorum', { + const responsePromise = client.posts.comments.create('architecto', { 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('dolorum', { + const response = await client.posts.comments.create('architecto', { 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('architecto', { 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('dolorum', { + const response = await client.posts.comments.list('architecto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..fd74b68f 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 c1510622..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index b74df4ea..a102b984 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: ['frfjiutorogkxjgyriviprd'] }, + filter: { tags: ['woct'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nulla'); + const responsePromise = client.smartLinks.listClicks('voluptatibus'); 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( - 'nulla', + 'voluptatibus', { 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('accusantium'); + const responsePromise = client.smartLinks.listConversions('maiores'); 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( - 'accusantium', + 'maiores', { 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('quia'); + const responsePromise = client.smartLinks.listFans('adipisci'); 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( - 'quia', + 'adipisci', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sunt'); + const responsePromise = client.smartLinks.listSpenders('optio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'optio', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'quia', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consequatur'); + const responsePromise = client.smartLinks.retrieveStats('odio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'odio', { 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 9c721a03..e2cc9ab7 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: 'oimzedrvgqaew', tags: ['sfumtpcygesdospmuxapqfbi'] }, + filter: { search: 'ivkyuuntvi', tags: ['qsqzlqzxrcvjsptikjkrhepj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dntmkbxvkokdvdoekfgahlkat', tags: ['hopyf'] }, + filter: { search: 'kbcggfwbqelst', tags: ['fxmstusgr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'q', - tags: ['lzgd'], + search: 'esnk', + tags: ['ppwmzemv'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'hzgald', - tags: ['z'], + include_smart_links: true, + search: 'uvpftsev', + tags: ['suk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 8fbdecb6..e0c384fa 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('beatae', { + 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('beatae', { + 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('beatae', { + 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('beatae', { + 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 0d674c32..07fd47a0 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eveniet', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eveniet', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('vero', { + const response = await client.trackingLinks.getStats('ad', { 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 cf97277e..853ae4eb 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('vero', { 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('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('vero', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('officiis', { + const responsePromise = client.trialLinks.listSubscribers('architecto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('officiis', { + const response = await client.trialLinks.listSubscribers('architecto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('modi', { + const response = await client.trialLinks.retrieveCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ipsum', { 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; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ipsum', { + 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 1a88807b..7c12cd18 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: 'n' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xv' }); 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: 'n' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xv' }); }); // Mock server tests are disabled From d09e99944b3226690bdf6b54fed70de72f04bd23 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:12:33 +0000 Subject: [PATCH 197/309] 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 +++++-------- 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 +++++++------- .../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 +++--- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 24 files changed, 117 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 619d91d0..e14df4c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd199f2ebabf57dcdcb7b1884a8cac0959f8f5d817e8d3560ba85aa01ecfc28c.yml -openapi_spec_hash: 87f391adff299fc8309bc1140f03d145 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fa910a0787aa6bf8fef582b865f8d90b2061db422df6521faf2bf7e7fbd43a5.yml +openapi_spec_hash: 6f04e92de0c0aea8212d3f412620940b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 8ed50d64..245fc5fb 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('beatae'); + * 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 13e1faf2..cfbb6b73 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( - * 'ratione', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a9b5c262..04c550e9 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', + * '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( - * 'velit', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index aec783f3..397584c1 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( - * 'architecto', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('fuga', { + * 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( - * 'architecto', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('fuga', { + * 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 0de6b488..36b1da2e 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( - * 'voluptatibus', - * ); + * const response = await client.smartLinks.listClicks('odit'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'maiores', + * 'libero', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'adipisci', - * ); + * const response = await client.smartLinks.listFans('veniam'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'optio', + * 'blanditiis', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quia'); + * await client.smartLinks.retrieveCohortArps('repellat'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'odio', + * 'voluptate', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index dd3bc7c4..2839b8cd 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', + * 'necessitatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('vero', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'necessitatibus', + * { + * 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 d20c69ac..7339340f 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( - * 'eveniet', + * 'a', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eveniet', + * 'a', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('aliquid', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ad', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'corporis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 4e43f350..e06fb8ba 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', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptatem', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'architecto', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nam', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'hic', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b45cfdb3..cf8fe72f 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: 'xv' }, + * { name: 'pkeskf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ac0784a3..13e5c0c0 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('beatae'); + 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 9fbb132b..2d6e9d58 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: 'asperiores', auth_type: 'mobile_app', - cookies: 'vero', + cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: ';!&H0;', + password: 't;RREZ,D\\P1PY6jz', port: 8080, - username: 'laudantium', + username: 'quia', }, - email: 'lubowitz.enid@example.net', + email: 'elvis.funk@example.net', force_connect: true, - name: 'libero', - password: '&/*9g.E5OG', - proxyCountry: 'us', - user_agent: 'neque', - xbc: 'in', + name: 'ab', + password: 'P1?sfUh7a"OGdHm', + proxyCountry: 'uk', + user_agent: 'deleniti', + xbc: 'voluptates', }, { 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 1cb7c4dc..b159b247 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('ratione', { + const responsePromise = client.engagement.messages.getMessageBuyers('rerum', { 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('ratione', { + const response = await client.engagement.messages.getMessageBuyers('rerum', { 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 d51681f5..8d959ad5 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('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('velit', { + 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('velit', { + 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('velit', { + 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 42643a65..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 221840f1..529baa93 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('architecto', { + const responsePromise = client.posts.comments.create('fuga', { 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('architecto', { + const response = await client.posts.comments.create('fuga', { 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('architecto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('fuga', { 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('architecto', { + const response = await client.posts.comments.list('fuga', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index a102b984..83d1c7ac 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: ['woct'] }, + filter: { tags: ['oxvnjnxixojgca'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatibus'); + const responsePromise = client.smartLinks.listClicks('odit'); 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( - 'voluptatibus', + 'odit', { 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('maiores'); + const responsePromise = client.smartLinks.listConversions('libero'); 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( - 'maiores', + 'libero', { 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('adipisci'); + const responsePromise = client.smartLinks.listFans('veniam'); 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( - 'adipisci', + 'veniam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('optio'); + const responsePromise = client.smartLinks.listSpenders('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'optio', + 'blanditiis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quia'); + const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'repellat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('odio'); + const responsePromise = client.smartLinks.retrieveStats('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'odio', + 'voluptate', { 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 e2cc9ab7..084b47ae 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: 'ivkyuuntvi', tags: ['qsqzlqzxrcvjsptikjkrhepj'] }, + filter: { search: 'uenjvupsjyqef', tags: ['mocnf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kbcggfwbqelst', tags: ['fxmstusgr'] }, + filter: { search: 'hgluurwpvh', tags: ['jcmcqijs'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'esnk', - tags: ['ppwmzemv'], + include_smart_links: false, + search: 'ieiuehis', + tags: ['hnzdcwyvhmckj'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'uvpftsev', - tags: ['suk'], + include_smart_links: false, + search: 'rdybgisaft', + tags: ['nsiwlymqkeyuvqilfbk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e0c384fa..2efe85dc 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('necessitatibus', { 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('necessitatibus', { 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('necessitatibus', { 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('necessitatibus', { 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 07fd47a0..2bc64956 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('a', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('a', { 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('aliquid', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('aliquid', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ad', { + const response = await client.trackingLinks.getStats('corporis', { 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 853ae4eb..201d0557 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('voluptatibus', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('architecto', { + const responsePromise = client.trialLinks.listSubscribers('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('architecto', { + const response = await client.trialLinks.listSubscribers('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nam', { + const response = await client.trialLinks.retrieveCohortArps('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('distinctio', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +190,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('distinctio', { 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 7c12cd18..7c0d6093 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: 'xv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pkeskf' }); 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: 'xv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pkeskf' }); }); // Mock server tests are disabled From cd234d799b97aed2688b2b13f137f7322b68e2f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 18:12:30 +0000 Subject: [PATCH 198/309] 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/posts/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 | 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/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 | 24 +++++++---------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 106 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index e14df4c2..4af35d16 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9fa910a0787aa6bf8fef582b865f8d90b2061db422df6521faf2bf7e7fbd43a5.yml -openapi_spec_hash: 6f04e92de0c0aea8212d3f412620940b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bf35268f3f090f2f6bfb806fd154df9e3957d92e136953bbd37eddd2c795e01a.yml +openapi_spec_hash: 61906e29e65b2ec4d5f7e6ed9f7616b6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..0a7a15b9 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( - * 'voluptatem', + * 'perspiciatis', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index cfbb6b73..20e7e193 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( - * 'rerum', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 04c550e9..cdae0082 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', + * '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( - * 'maxime', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 397584c1..aff2d1fe 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('fuga', { + * const comment = await client.posts.comments.create('iure', { * 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('fuga', { + * const comments = await client.posts.comments.list('iure', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..41feb4c0 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 36b1da2e..e6d14b14 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('odit'); + * const response = await client.smartLinks.listClicks('quis'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'libero', + * 'sint', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('veniam'); + * const response = await client.smartLinks.listFans( + * 'blanditiis', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'blanditiis', + * 'dolores', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('repellat'); + * await client.smartLinks.retrieveCohortArps('porro'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptate', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2839b8cd..28ca01ff 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( - * 'necessitatibus', + * 'inventore', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'necessitatibus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('inventore', { + * 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 7339340f..7f393de0 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( - * 'a', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'a', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aliquid', { + * await client.trackingLinks.getCohortArps('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'corporis', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e06fb8ba..f010585b 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( - * 'voluptatibus', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptatibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('totam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * 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( - * 'distinctio', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index cf8fe72f..5ed10be3 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: 'pkeskf' }, + * { name: 'heiehlytxdhbivvld' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..958468a3 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('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 2d6e9d58..5b727691 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: 'asperiores', - auth_type: 'mobile_app', - cookies: 'quo', + auth_id: 'quam', + auth_type: 'raw_data', + cookies: 'ex', customProxy: { host: 'proxy.example.com', - password: 't;RREZ,D\\P1PY6jz', + password: '99sjPZLj(0(b!', port: 8080, - username: 'quia', + username: 'vel', }, - email: 'elvis.funk@example.net', + email: 'maggio.haylie@example.com', force_connect: true, - name: 'ab', - password: 'P1?sfUh7a"OGdHm', - proxyCountry: 'uk', - user_agent: 'deleniti', - xbc: 'voluptates', + name: 'enim', + password: 'abD.=YX[', + proxyCountry: 'us', + user_agent: 'omnis', + xbc: 'eum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b159b247..784164d2 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('rerum', { + 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('rerum', { + 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 8d959ad5..8cac4fb7 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('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('maxime', { + 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('maxime', { + 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('maxime', { + const response = await client.media.vault.lists.media.remove('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 529baa93..a53ef543 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('fuga', { + const responsePromise = client.posts.comments.create('iure', { 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('fuga', { + const response = await client.posts.comments.create('iure', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('iure', { 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('fuga', { + const response = await client.posts.comments.list('iure', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 83d1c7ac..c330b050 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: ['oxvnjnxixojgca'] }, + filter: { tags: ['nqew'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('odit'); + const responsePromise = client.smartLinks.listClicks('quis'); 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( - 'odit', + 'quis', { 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('libero'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'libero', + 'sint', { 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('veniam'); + const responsePromise = client.smartLinks.listFans('blanditiis'); 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( - 'veniam', + 'blanditiis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('blanditiis'); + const responsePromise = client.smartLinks.listSpenders('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'blanditiis', + 'dolores', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); + const responsePromise = client.smartLinks.retrieveCohortArps('porro'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'repellat', + 'porro', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptate'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + '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 084b47ae..51c969d4 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: 'uenjvupsjyqef', tags: ['mocnf'] }, + filter: { search: 'mhachvseflms', tags: ['nzenhe'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hgluurwpvh', tags: ['jcmcqijs'] }, + filter: { search: 'fzmbcfsplxdx', tags: ['wwzzzfyvzfmhqvhace'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ieiuehis', - tags: ['hnzdcwyvhmckj'], + include_smart_links: true, + search: 'walmwfmrgatzoajwuuerxjqay', + tags: ['js'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rdybgisaft', - tags: ['nsiwlymqkeyuvqilfbk'], + search: 'cpdvwcucezetzuc', + tags: ['uuhv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2efe85dc..8df1bf85 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('necessitatibus', { + const responsePromise = client.stories.highlights.addStory('inventore', { 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('necessitatibus', { + const response = await client.stories.highlights.addStory('inventore', { 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('necessitatibus', { + const responsePromise = client.stories.highlights.removeStory('inventore', { 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('necessitatibus', { + const response = await client.stories.highlights.removeStory('inventore', { 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 2bc64956..fe685492 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('excepturi', { 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aliquid', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('aliquid', { + const response = await client.trackingLinks.getCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('corporis', { + const response = await client.trackingLinks.getStats('provident', { 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 201d0557..98fe413f 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('totam', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sit', { + const responsePromise = client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sit', { + const response = await client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('distinctio', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('distinctio', { + const response = await client.trialLinks.retrieveStats('explicabo', { 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 7c0d6093..90d42ce0 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: 'pkeskf' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'heiehlytxdhbivvld' }); 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: 'pkeskf' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'heiehlytxdhbivvld' }); }); // Mock server tests are disabled From 3140ed05e163af0634af8f1a7c9dbc389467e0b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 11:12:32 +0000 Subject: [PATCH 199/309] 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 | 13 ++++++---- src/resources/smart-links.ts | 25 +++++++++++------- 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 +++--- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 24 files changed, 119 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4af35d16..16f3bf2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bf35268f3f090f2f6bfb806fd154df9e3957d92e136953bbd37eddd2c795e01a.yml -openapi_spec_hash: 61906e29e65b2ec4d5f7e6ed9f7616b6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd5f9eb8881ccbf40e52feb97c1fe147a8a6e38b8c71ce3afffa4779aa2651a2.yml +openapi_spec_hash: 9d488b784a710d4a43fc8e3c754a42cc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0a7a15b9..a8bd812e 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('minus'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 20e7e193..37e7385c 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('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index cdae0082..8ecd2f5d 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', + * 'modi', * { 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', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index aff2d1fe..0cd35aca 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('iure', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'saepe', + * { + * 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('iure', { + * const comments = await client.posts.comments.list('saepe', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index e6d14b14..8b994bc6 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('quis'); + * const response = await client.smartLinks.listClicks( + * 'minima', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sint', + * 'magnam', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'blanditiis', - * ); + * const response = await client.smartLinks.listFans('cum'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolores', + * 'aut', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('porro'); + * await client.smartLinks.retrieveCohortArps('libero'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'culpa', * ); * ``` */ @@ -917,6 +917,8 @@ export namespace SmartLinkListFansResponse { export interface Summary { fans_total?: number; + fans_with_1_plus_messages_total?: number; + fans_with_3_plus_messages_total?: number; revenue_net_total?: number; @@ -1144,7 +1146,12 @@ export interface SmartLinkListConversionsParams { /** * Optional conversion type filter */ - conversion_type?: 'new_subscriber' | 'new_transaction' | 'message_received' | 'fan_sent_3_messages'; + conversion_type?: + | 'new_subscriber' + | 'new_transaction' + | 'message_received' + | 'fan_sent_1_message' + | 'fan_sent_3_messages'; /** * Optional report range end date diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 28ca01ff..3e56b455 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( - * 'inventore', + * 'rerum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('inventore', { + * await client.stories.highlights.removeStory('rerum', { * 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 7f393de0..30cf53e5 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( - * 'excepturi', + * 'minus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'excepturi', + * 'minus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('vel', { + * 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( - * 'provident', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f010585b..26a28e7e 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( - * 'totam', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('totam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'laboriosam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quia', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'explicabo', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5ed10be3..7bde7769 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: 'heiehlytxdhbivvld' }, + * { name: 'qugsdwwq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 958468a3..8da0e5cc 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('minus'); 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 5b727691..548fbb8c 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: 'ex', + auth_id: 'hic', + auth_type: 'mobile_app', + cookies: 'fuga', customProxy: { host: 'proxy.example.com', - password: '99sjPZLj(0(b!', + password: 'WzuNb.[5', port: 8080, - username: 'vel', + username: 'ipsa', }, - email: 'maggio.haylie@example.com', + email: 'mcglynn.anais@example.net', force_connect: true, - name: 'enim', - password: 'abD.=YX[', - proxyCountry: 'us', - user_agent: 'omnis', - xbc: 'eum', + name: 'facilis', + password: ',P]9#B_\\B', + proxyCountry: 'gb', + user_agent: 'dolorem', + xbc: 'quod', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 784164d2..5d39f0e7 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('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('porro', { + 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 8cac4fb7..06456e9f 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('modi', { 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('modi', { 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('modi', { 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('modi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a53ef543..7dc0f06f 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('iure', { + 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('iure', { + 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('iure', { 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('iure', { + const response = await client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c330b050..ef2337c7 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: ['nqew'] }, + filter: { tags: ['uviea'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quis'); + const responsePromise = client.smartLinks.listClicks('minima'); 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( - 'quis', + 'minima', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('magnam'); 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( - 'sint', + 'magnam', { 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('blanditiis'); + const responsePromise = client.smartLinks.listFans('cum'); 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( - 'blanditiis', + 'cum', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolores'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'dolores', + 'aut', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('porro'); + const responsePromise = client.smartLinks.retrieveCohortArps('libero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'porro', + 'libero', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'culpa', { 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 51c969d4..6fcf05e3 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: 'mhachvseflms', tags: ['nzenhe'] }, + filter: { search: 'jkifmkarjaelcoh', tags: ['wqmmprgmjpahckderddjnswu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fzmbcfsplxdx', tags: ['wwzzzfyvzfmhqvhace'] }, + filter: { search: 'sugeavx', tags: ['sbtbdmaqvwnucvwydfxxkn'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'walmwfmrgatzoajwuuerxjqay', - tags: ['js'], + include_smart_links: false, + search: 'szltddhxawbtanb', + tags: ['qgpimatvf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'cpdvwcucezetzuc', - tags: ['uuhv'], + include_smart_links: true, + search: 'megzwsvzrsdytctmnf', + tags: ['hak'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 8df1bf85..4d879d85 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('inventore', { + const responsePromise = client.stories.highlights.addStory('rerum', { 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('inventore', { + const response = await client.stories.highlights.addStory('rerum', { 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('inventore', { + const responsePromise = client.stories.highlights.removeStory('rerum', { 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('inventore', { + const response = await client.stories.highlights.removeStory('rerum', { 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 fe685492..2a7b236f 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('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('minus', { 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('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('vel', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('vel', { + const response = await client.trackingLinks.getCohortArps('atque', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('provident', { + const response = await client.trackingLinks.getStats('excepturi', { 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 98fe413f..9bfc5299 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('laboriosam', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quia', { + const responsePromise = client.trialLinks.listSubscribers('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quia', { + const response = await client.trialLinks.listSubscribers('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('explicabo', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('explicabo', { + 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 90d42ce0..d6369c32 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: 'heiehlytxdhbivvld' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qugsdwwq' }); 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: 'heiehlytxdhbivvld' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qugsdwwq' }); }); // Mock server tests are disabled From 88f35b75602f27ba7892484e974ae39195226048 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:12:38 +0000 Subject: [PATCH 200/309] 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/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 | 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 +++--- 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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 106 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index 16f3bf2c..601a5025 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd5f9eb8881ccbf40e52feb97c1fe147a8a6e38b8c71ce3afffa4779aa2651a2.yml -openapi_spec_hash: 9d488b784a710d4a43fc8e3c754a42cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5575f166374495bdf576019f2cef05ea8482587d161a5c5c095b732f13edf467.yml +openapi_spec_hash: 0b398a29d51d7c33984c69d078183389 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a8bd812e..50028621 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('minus'); + * 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 37e7385c..2ff01af0 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('ut', { + * await client.engagement.messages.getMessageBuyers('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ecd2f5d..a9b5c262 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( - * 'modi', + * '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( - * 'modi', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0cd35aca..ca82093e 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( - * 'saepe', - * { - * 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('saepe', { + * 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 e20f70d1..09d6973d 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 41feb4c0..2b04cbb2 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 8b994bc6..126c1f6d 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( - * 'minima', - * ); + * const response = await client.smartLinks.listClicks('quos'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'magnam', + * 'incidunt', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('cum'); + * const response = await client.smartLinks.listFans( + * 'quaerat', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'corrupti', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('libero'); + * await client.smartLinks.retrieveCohortArps('occaecati'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'culpa', + * 'voluptatibus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e56b455..e7478578 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( - * 'rerum', + * 'ipsum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('rerum', { + * await client.stories.highlights.removeStory('ipsum', { * 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 30cf53e5..883215ee 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( - * 'minus', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'minus', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('atque', { + * await client.trackingLinks.getCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'excepturi', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 26a28e7e..4f628296 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( - * 'laboriosam', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'laboriosam', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'dolor', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('fuga', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7bde7769..7f321f9b 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: 'qugsdwwq' }, + * { name: 'ppxbqqrrjvkyfk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da0e5cc..b5ead1c6 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('minus'); + 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 548fbb8c..7234d988 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: 'hic', + auth_id: 'in', auth_type: 'mobile_app', - cookies: 'fuga', + cookies: 'quidem', customProxy: { host: 'proxy.example.com', - password: 'WzuNb.[5', + password: "4'3[XWPK@\\GU.Ot2ii2", port: 8080, - username: 'ipsa', + username: 'qui', }, - email: 'mcglynn.anais@example.net', - force_connect: true, - name: 'facilis', - password: ',P]9#B_\\B', + email: 'sporer.percival@example.net', + force_connect: false, + name: 'possimus', + password: "7|q-dF-0-S'f", proxyCountry: 'gb', - user_agent: 'dolorem', - xbc: 'quod', + user_agent: 'vel', + 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 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e7..09505ee9 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('sit', { 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('sit', { 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 06456e9f..d51681f5 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('modi', { + 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('modi', { + 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('modi', { + 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('modi', { + const response = await client.media.vault.lists.media.remove('velit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7dc0f06f..548a48cb 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('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('saepe', { + 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('saepe', { 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('saepe', { + const response = await client.posts.comments.list('ut', { 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 fd74b68f..e2edc676 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 c1510622..96d399de 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index ef2337c7..54f93af0 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: ['uviea'] }, + filter: { tags: ['yyaerkqjgfshglohuzm'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('minima'); + const responsePromise = client.smartLinks.listClicks('quos'); 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( - 'minima', + 'quos', { 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('magnam'); + const responsePromise = client.smartLinks.listConversions('incidunt'); 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( - 'magnam', + 'incidunt', { 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('cum'); + const responsePromise = client.smartLinks.listFans('quaerat'); 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( - 'cum', + 'quaerat', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('corrupti'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'corrupti', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('libero'); + const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'occaecati', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('culpa'); + const responsePromise = client.smartLinks.retrieveStats('voluptatibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'culpa', + 'voluptatibus', { 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 6fcf05e3..f152e906 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: 'jkifmkarjaelcoh', tags: ['wqmmprgmjpahckderddjnswu'] }, + filter: { search: 'gallylznkrifrixc', tags: ['vdx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'sugeavx', tags: ['sbtbdmaqvwnucvwydfxxkn'] }, + filter: { search: 'apqbb', tags: ['uzurcjgjkozti'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'szltddhxawbtanb', - tags: ['qgpimatvf'], + include_smart_links: true, + search: 'bhftlq', + tags: ['rawowe'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'megzwsvzrsdytctmnf', - tags: ['hak'], + include_smart_links: false, + search: 'fizrjivpidxddvdkeodkfubwo', + tags: ['wgfzz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4d879d85..533aaea5 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('rerum', { + const responsePromise = client.stories.highlights.addStory('ipsum', { 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('rerum', { + const response = await client.stories.highlights.addStory('ipsum', { 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('rerum', { + const responsePromise = client.stories.highlights.removeStory('ipsum', { 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('rerum', { + const response = await client.stories.highlights.removeStory('ipsum', { 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 2a7b236f..8d7a96e8 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('veniam', { 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('veniam', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('enim', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('excepturi', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('excepturi', { + 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 9bfc5299..e9030cab 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('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('placeat', { 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('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptas', { + const responsePromise = client.trialLinks.listSubscribers('dolor', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptas', { + const response = await client.trialLinks.listSubscribers('dolor', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('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 d6369c32..88199922 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: 'qugsdwwq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ppxbqqrrjvkyfk' }); 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: 'qugsdwwq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ppxbqqrrjvkyfk' }); }); // Mock server tests are disabled From 49ae0d642eed9ce0c95ab8c8ed5e537996ae348b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 17:12:32 +0000 Subject: [PATCH 201/309] 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 ++++++++----- 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 +++--- tests/api-resources/profiles.test.ts | 2 +- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 113 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 601a5025..dfef46ee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5575f166374495bdf576019f2cef05ea8482587d161a5c5c095b732f13edf467.yml -openapi_spec_hash: 0b398a29d51d7c33984c69d078183389 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-86dacbc074afe939b748380749cf4c3a563aa539d716347f6a4b8372c14fed90.yml +openapi_spec_hash: 69618a1c2b6cdbc93a820bb191ccf268 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 50028621..e95da2b0 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('eos'); + * const response = await client.accounts.disconnect('autem'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2ff01af0..422179e1 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'temporibus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a9b5c262..934c6c3b 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', + * '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( - * 'velit', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..1d67b61b 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( + * 'beatae', + * { + * 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( + * 'beatae', + * { 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 126c1f6d..e7ae5434 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('quos'); + * const response = await client.smartLinks.listClicks('enim'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'incidunt', + * 'porro', * ); * ``` */ @@ -112,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'quaerat', + * 'voluptatem', * ); * ``` */ @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'corrupti', + * 'voluptatem', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('occaecati'); + * await client.smartLinks.retrieveCohortArps('atque'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatibus', + * 'qui', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e7478578..c556977f 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( - * 'ipsum', + * '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('ipsum', { + * 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 883215ee..f454dc5e 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( - * 'veniam', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'veniam', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('enim', { + * 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( - * 'maxime', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 4f628296..d44940d2 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( - * 'placeat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'placeat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolor', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('fuga', { + * await client.trialLinks.retrieveCohortArps('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7f321f9b..0083542e 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: 'ppxbqqrrjvkyfk' }, + * { name: 'osofacedbpqnfmbcvvw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b5ead1c6..fb9066e2 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('autem'); 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 7234d988..d231f984 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: 'in', - auth_type: 'mobile_app', - cookies: 'quidem', + auth_id: 'voluptates', + auth_type: 'raw_data', + cookies: 'accusantium', customProxy: { host: 'proxy.example.com', - password: "4'3[XWPK@\\GU.Ot2ii2", + password: 'Pp]h>]-9kMf2@{S0i8!', port: 8080, - username: 'qui', + username: 'aliquam', }, - email: 'sporer.percival@example.net', + email: 'dlind@example.org', force_connect: false, - name: 'possimus', - password: "7|q-dF-0-S'f", - proxyCountry: 'gb', - user_agent: 'vel', - xbc: 'illum', + name: 'ipsum', + password: 'J;~0Jj3FD0G{', + proxyCountry: 'uk', + user_agent: 'amet', + xbc: 'ea', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 09505ee9..b8ae3e8e 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('sit', { + 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('sit', { + 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 d51681f5..9cf5279e 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('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('velit', { + 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('velit', { + 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('velit', { + 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 14dcb2e9..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..715b94db 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('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('ut', { + 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('ut', { 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('ut', { + 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 ad49ad2e..9bf5999b 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 54f93af0..5d764fca 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: ['yyaerkqjgfshglohuzm'] }, + filter: { tags: ['xdcmugxymix'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quos'); + const responsePromise = client.smartLinks.listClicks('enim'); 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( - 'quos', + 'enim', { 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('incidunt'); + const responsePromise = client.smartLinks.listConversions('porro'); 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( - 'incidunt', + 'porro', { 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('quaerat'); + const responsePromise = client.smartLinks.listFans('voluptatem'); 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( - 'quaerat', + 'voluptatem', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('corrupti'); + const responsePromise = client.smartLinks.listSpenders('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'corrupti', + 'voluptatem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); + const responsePromise = client.smartLinks.retrieveCohortArps('atque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'occaecati', + 'atque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatibus'); + const responsePromise = client.smartLinks.retrieveStats('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatibus', + 'qui', { 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 f152e906..91afd4e0 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: 'gallylznkrifrixc', tags: ['vdx'] }, + filter: { search: 'odcdqprycxusk', tags: ['t'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'apqbb', tags: ['uzurcjgjkozti'] }, + filter: { search: 'zurcwgaifungmejugibpwqsrg', tags: ['ebictjohtidbbznnnpoz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bhftlq', - tags: ['rawowe'], + search: 'piszxzcpjzvsqrr', + tags: ['jxinjzlaigtswpgiuoesz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'fizrjivpidxddvdkeodkfubwo', - tags: ['wgfzz'], + include_smart_links: true, + search: 'paglyqgloqmprpffbvuulls', + tags: ['xudynnrbshhchtqtdgqb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 533aaea5..990b3fc7 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('ipsum', { + 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('ipsum', { + 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('ipsum', { + 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('ipsum', { + 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 8d7a96e8..5d74af38 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('illo', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('enim', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('enim', { + const response = await client.trackingLinks.getCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('dolorum', { 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 e9030cab..4f7c30a2 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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('dolor', { + const responsePromise = client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('dolor', { + const response = await client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('ab', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,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('qui', { 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 88199922..4b64e8e5 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: 'ppxbqqrrjvkyfk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'osofacedbpqnfmbcvvw' }); 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: 'ppxbqqrrjvkyfk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'osofacedbpqnfmbcvvw' }); }); // Mock server tests are disabled From 56e07ec66b6dd86d20bf617e7d10a84a584863b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 14:12:32 +0000 Subject: [PATCH 202/309] 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 | 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/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 107 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index dfef46ee..f2a66157 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-86dacbc074afe939b748380749cf4c3a563aa539d716347f6a4b8372c14fed90.yml -openapi_spec_hash: 69618a1c2b6cdbc93a820bb191ccf268 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b373d508b827f74dfea7e42bbcdf19b6a82a04bc6b34f04dc75d678326506607.yml +openapi_spec_hash: b93bd0c5bd3e528ef814ae267651ced5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e95da2b0..4838accc 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('autem'); + * 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 422179e1..7db970d9 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', + * 'corporis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 934c6c3b..da3d0f65 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', + * 'fuga', * { 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', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1d67b61b..0d4e6687 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( - * 'beatae', + * '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( - * 'beatae', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 2b04cbb2..41feb4c0 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 e7ae5434..fc680b71 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('enim'); + * const response = await client.smartLinks.listClicks( + * 'animi', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'porro', + * 'et', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptatem', - * ); + * const response = await client.smartLinks.listFans('esse'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptatem', + * 'possimus', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('atque'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'qui', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..9878a980 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( - * 'sed', + * 'ea', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sed', { + * await client.stories.highlights.removeStory('ea', { * 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 f454dc5e..ebdd9af4 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( - * 'illo', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'illo', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('in', { + * await client.trackingLinks.getCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolorum', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d44940d2..bc782448 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('qui', { + * const trialLink = await client.trialLinks.retrieve('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { + * const trialLink = await client.trialLinks.delete('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'doloremque', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ab', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'qui', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0083542e..de737954 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: 'osofacedbpqnfmbcvvw' }, + * { name: 'eliewjdpzgqfuxzpdlew' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index fb9066e2..ee79bf41 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('autem'); + 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 d231f984..4222ed06 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: 'voluptates', - auth_type: 'raw_data', - cookies: 'accusantium', + auth_id: 'eos', + auth_type: 'mobile_app', + cookies: 'id', customProxy: { host: 'proxy.example.com', - password: 'Pp]h>]-9kMf2@{S0i8!', + password: '^;k,JGLNd<', port: 8080, - username: 'aliquam', + username: 'et', }, - email: 'dlind@example.org', + email: 'boyer.anais@example.com', force_connect: false, - name: 'ipsum', - password: 'J;~0Jj3FD0G{', + name: 'cum', + password: 'w-`?p`-FZp', proxyCountry: 'uk', - user_agent: 'amet', - xbc: 'ea', + user_agent: 'officiis', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b8ae3e8e..d7750d7f 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('corporis', { 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('corporis', { 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 9cf5279e..20fb2d7c 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('fuga', { 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('fuga', { 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('fuga', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..b0d96512 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 715b94db..1142580f 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('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('beatae', { + 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('beatae', { 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('beatae', { + const response = await client.posts.comments.list('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 96d399de..c1510622 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5d764fca..7a51b301 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: ['xdcmugxymix'] }, + filter: { tags: ['idmiuuqgxkqylmno'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('enim'); + const responsePromise = client.smartLinks.listClicks('animi'); 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( - 'enim', + 'animi', { 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('porro'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'porro', + 'et', { 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('voluptatem'); + const responsePromise = client.smartLinks.listFans('esse'); 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( - 'voluptatem', + 'esse', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptatem'); + const responsePromise = client.smartLinks.listSpenders('possimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'possimus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('atque'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('qui'); + const responsePromise = client.smartLinks.retrieveStats('deserunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'qui', + 'deserunt', { 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 91afd4e0..ae18e8ad 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: 'odcdqprycxusk', tags: ['t'] }, + filter: { search: 'lmistdpz', tags: ['xctrjnrveqdjo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zurcwgaifungmejugibpwqsrg', tags: ['ebictjohtidbbznnnpoz'] }, + filter: { search: 'xrwbmw', tags: ['evcmsyx'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'piszxzcpjzvsqrr', - tags: ['jxinjzlaigtswpgiuoesz'], + include_smart_links: false, + search: 'blukazjwjlmatxbcymdhrw', + tags: ['buuwqqatqtlm'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'paglyqgloqmprpffbvuulls', - tags: ['xudynnrbshhchtqtdgqb'], + include_smart_links: false, + search: 'rzlyzzpvxacaptlo', + tags: ['nnsb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..3c10d926 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('sed', { + const responsePromise = client.stories.highlights.addStory('ea', { 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('sed', { + const response = await client.stories.highlights.addStory('ea', { 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('sed', { + const responsePromise = client.stories.highlights.removeStory('ea', { 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('sed', { + const response = await client.stories.highlights.removeStory('ea', { 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 5d74af38..025cf1c9 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('tenetur', { 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('tenetur', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('ea', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dolorum', { + const response = await client.trackingLinks.getStats('consectetur', { 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 4f7c30a2..27bf1686 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sit', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ 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('rerum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('qui', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('qui', { + 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 4b64e8e5..8e7683ff 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: 'osofacedbpqnfmbcvvw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eliewjdpzgqfuxzpdlew' }); 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: 'osofacedbpqnfmbcvvw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eliewjdpzgqfuxzpdlew' }); }); // Mock server tests are disabled From 6f6a22f8841b6103b5e64218f87ba89928cd8c08 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 15:12:33 +0000 Subject: [PATCH 203/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/fans/fans.ts | 78 ++++++++++++++----- 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 | 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 +- 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 | 22 +++--- 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 | 24 +++--- .../user-lists/user-lists.test.ts | 4 +- 28 files changed, 169 insertions(+), 132 deletions(-) diff --git a/.stats.yml b/.stats.yml index f2a66157..602c0849 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b373d508b827f74dfea7e42bbcdf19b6a82a04bc6b34f04dc75d678326506607.yml -openapi_spec_hash: b93bd0c5bd3e528ef814ae267651ced5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-42fa35231d794b0bfd70bc9535f8c7c4de1637f2bf7efab0d20640f55d717daf.yml +openapi_spec_hash: 7c3baec99afe2fe96c534aabaa94b77e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838accc..204a2ddb 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( + * 'laboriosam', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7db970d9..06e3fd76 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( - * 'corporis', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/fans/fans.ts b/src/resources/fans/fans.ts index 3181f77a..6a50de4b 100644 --- a/src/resources/fans/fans.ts +++ b/src/resources/fans/fans.ts @@ -52,7 +52,13 @@ export class Fans extends APIResource { } /** - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by + * following `_pagination.next_page` until it is null (`data.hasMore` is the + * authoritative flag). Do NOT use the page's item count to detect the last page — + * OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + * a non-final page because it filters entries server-side; no fans are skipped. To + * track progress, GET /{account}/me returns data.subscribersCount (the current + * active-subscriber count) as a total. * * @example * ```ts @@ -70,7 +76,11 @@ export class Fans extends APIResource { } /** - * Get a paginated list of fans for an Account. Newest fans are first. + * Get a paginated list of fans for an Account. Newest fans are first. Paginate by + * following `_pagination.next_page` until it is null (`data.hasMore` is the + * authoritative flag). Do NOT use the page's item count to detect the last page — + * OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on + * a non-final page because it filters entries server-side; no fans are skipped. * * @example * ```ts @@ -89,6 +99,11 @@ export class Fans extends APIResource { /** * Get a paginated list of expired fans for an Account. Newest fans are first. + * Paginate by following `_pagination.next_page` until it is null (`data.hasMore` + * is the authoritative flag). Do NOT use the page's item count to detect the last + * page — OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for + * limit=20) on a non-final page because it filters entries server-side; no fans + * are skipped. * * @example * ```ts @@ -1937,8 +1952,8 @@ export interface FanListActiveParams { filter?: FanListActiveParams.Filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater - * than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + * Must be at least 1. Must not be greater than 20. */ limit?: number; @@ -1961,22 +1976,29 @@ export interface FanListActiveParams { export namespace FanListActiveParams { export interface Filter { /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: + * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will + * be ignored. Must be at least 0. */ duration?: number; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: + * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be + * ignored. */ online?: 1 | 0 | null; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form + * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. */ tips?: number; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported + * and will be ignored. Must be at least 0. */ total_spent?: number; } @@ -1986,8 +2008,8 @@ export interface FanListAllParams { filter?: FanListAllParams.Filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater - * than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + * Must be at least 1. Must not be greater than 20. */ limit?: number; @@ -2010,22 +2032,29 @@ export interface FanListAllParams { export namespace FanListAllParams { export interface Filter { /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: + * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will + * be ignored. Must be at least 0. */ duration?: number; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: + * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be + * ignored. */ online?: 1 | 0 | null; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form + * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. */ tips?: number; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported + * and will be ignored. Must be at least 0. */ total_spent?: number; } @@ -2035,8 +2064,8 @@ export interface FanListExpiredParams { filter?: FanListExpiredParams.Filter; /** - * Number of fans to return (1-50). Must be at least 1. Must not be greater - * than 20. + * Number of fans to return (1-20). OnlyFans does not allow more than 20 per page. + * Must be at least 1. Must not be greater than 20. */ limit?: number; @@ -2059,22 +2088,29 @@ export interface FanListExpiredParams { export namespace FanListExpiredParams { export interface Filter { /** - * Filter by minimum subscription duration in months. Must be at least 0. + * Filter by minimum subscription duration in months. Must use bracket syntax: + * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will + * be ignored. Must be at least 0. */ duration?: number; /** - * Filter by online status (`1` for online fans). + * Filter by online status (`1` for online fans). Must use bracket syntax: + * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be + * ignored. */ online?: 1 | 0 | null; /** - * Filter by minimum tips. Must be at least 0. + * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form + * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. */ tips?: number; /** - * Filter by minimum amount total spent by a fan. Must be at least 0. + * Filter by minimum amount total spent by a fan. Must use bracket syntax: + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported + * and will be ignored. Must be at least 0. */ total_spent?: number; } @@ -2089,7 +2125,7 @@ export interface FanListLatestParams { /** * Number of fans to return (1-50). Must be at least 1. Must not be greater - * than 100. + * than 50. */ limit?: number; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index da3d0f65..c785aa16 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( - * 'fuga', + * 'repellendus', * { 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( - * 'fuga', + * 'repellendus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0d4e6687..397584c1 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( - * 'tenetur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('fuga', { + * 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( - * 'tenetur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('fuga', { + * 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 a9767818..599a9525 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 41feb4c0..2b04cbb2 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 fc680b71..b04c870e 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( - * 'animi', + * 'soluta', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('esse'); + * const response = await client.smartLinks.listFans('vero'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'possimus', + * 'sit', * ); * ``` */ @@ -147,7 +147,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps( + * 'exercitationem', + * ); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'deserunt', + * 'voluptatibus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9878a980..3e1c7461 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( - * 'ea', + * '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('ea', { + * 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 ebdd9af4..fe1c573b 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( - * 'tenetur', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'tenetur', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ea', { + * await client.trackingLinks.getCohortArps('eaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'consectetur', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index bc782448..eeaf0633 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'neque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sit', { + * const trialLink = await client.trialLinks.delete('neque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'doloremque', + * 'blanditiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorem', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index de737954..09220de7 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: 'eliewjdpzgqfuxzpdlew' }, + * { name: 'pxtvwfysvmbazvtqlypv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf41..0d21ee9d 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('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 4222ed06..c9a7842f 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: 'eos', + auth_id: 'ea', auth_type: 'mobile_app', - cookies: 'id', + cookies: 'accusantium', customProxy: { host: 'proxy.example.com', - password: '^;k,JGLNd<', + password: "Af'd0*", port: 8080, - username: 'et', + username: 'corrupti', }, - email: 'boyer.anais@example.com', - force_connect: false, - name: 'cum', - password: 'w-`?p`-FZp', - proxyCountry: 'uk', - user_agent: 'officiis', - xbc: 'voluptatem', + email: 'malachi22@example.com', + force_connect: true, + name: 'molestiae', + password: 'US7HYC"C$', + proxyCountry: 'us', + user_agent: 'est', + xbc: 'sit', }, { 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 d7750d7f..07b207cf 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('corporis', { + const responsePromise = client.engagement.messages.getMessageBuyers('quaerat', { 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('corporis', { + const response = await client.engagement.messages.getMessageBuyers('quaerat', { 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 20fb2d7c..64af431b 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('fuga', { + const responsePromise = client.media.vault.lists.media.add('repellendus', { 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('fuga', { + const response = await client.media.vault.lists.media.add('repellendus', { 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('fuga', { + const responsePromise = client.media.vault.lists.media.remove('repellendus', { 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('fuga', { + const response = await client.media.vault.lists.media.remove('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1142580f..529baa93 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('fuga', { 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('fuga', { 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('fuga', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..8e5b0566 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 c1510622..96d399de 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 7a51b301..3b2b78fc 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: ['idmiuuqgxkqylmno'] }, + filter: { tags: ['lfddooixicafwyq'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('animi'); + const responsePromise = client.smartLinks.listClicks('soluta'); 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( - 'animi', + 'soluta', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('esse'); + const responsePromise = client.smartLinks.listFans('vero'); 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( - 'esse', + 'vero', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('possimus'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'possimus', + 'sit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('exercitationem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'exercitationem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('deserunt'); + const responsePromise = client.smartLinks.retrieveStats('voluptatibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'deserunt', + 'voluptatibus', { 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 ae18e8ad..6d4b1271 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: 'lmistdpz', tags: ['xctrjnrveqdjo'] }, + filter: { search: 'nyseq', tags: ['w'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xrwbmw', tags: ['evcmsyx'] }, + filter: { search: 'fdqfbrnsj', tags: ['ewlbesojbzosvrxsavu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'blukazjwjlmatxbcymdhrw', - tags: ['buuwqqatqtlm'], + search: 'ligvzqvzxajuoioeibp', + tags: ['asosgwjsipnafba'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'rzlyzzpvxacaptlo', - tags: ['nnsb'], + include_smart_links: true, + search: 'ginfwebj', + tags: ['vlhsrpmhaqyclsu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3c10d926..c8688ed6 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('ea', { + 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('ea', { + 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('ea', { + 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('ea', { + 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 025cf1c9..7274c5ef 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('tenetur', { 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('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('tenetur', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('tenetur', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ea', { + const response = await client.trackingLinks.getCohortArps('eaque', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('consectetur', { + const response = await client.trackingLinks.getStats('illo', { 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 27bf1686..2411564d 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('neque', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('doloremque', { + const responsePromise = client.trialLinks.listSubscribers('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('doloremque', { + const response = await client.trialLinks.listSubscribers('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('enim', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ 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('temporibus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('temporibus', { 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 8e7683ff..509121b4 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: 'eliewjdpzgqfuxzpdlew' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pxtvwfysvmbazvtqlypv' }); 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: 'eliewjdpzgqfuxzpdlew' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pxtvwfysvmbazvtqlypv' }); }); // Mock server tests are disabled From 37abcf7ea60372babdf15da9e3ec8ff89f9645ba Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 16:12:36 +0000 Subject: [PATCH 204/309] 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 | 4 +-- src/resources/smart-links.ts | 18 ++++++------- src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 13 +++++----- 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 +- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 109 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 602c0849..7d3f9bdb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-42fa35231d794b0bfd70bc9535f8c7c4de1637f2bf7efab0d20640f55d717daf.yml -openapi_spec_hash: 7c3baec99afe2fe96c534aabaa94b77e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c1400f2d2673186ba78e4c245b8a9be95f0838ddeab0aed0113e2b3b7a886a3.yml +openapi_spec_hash: 984f4f233bee708607f2651a31eb5d7f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 204a2ddb..3c4bd801 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('natus'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 06e3fd76..b692ff89 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( - * 'quaerat', - * { 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 c785aa16..febcb2b4 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( - * 'repellendus', + * '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( - * 'repellendus', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 397584c1..263bf6ad 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('fuga', { + * const comment = await client.posts.comments.create('ea', { * 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('fuga', { + * const comments = await client.posts.comments.list('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index b04c870e..b2d293df 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( - * 'soluta', - * ); + * const response = await client.smartLinks.listClicks('ex'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'optio', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('vero'); + * const response = await client.smartLinks.listFans( + * 'pariatur', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'placeat', * ); * ``` */ @@ -147,9 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps( - * 'exercitationem', - * ); + * await client.smartLinks.retrieveCohortArps('enim'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatibus', + * 'delectus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e1c7461..d94695b3 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', + * 'recusandae', * { * 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( + * 'recusandae', + * { + * 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 fe1c573b..eb97df35 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quia', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eaque', { + * await client.trackingLinks.getCohortArps('ipsam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'illo', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index eeaf0633..d773178b 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( - * 'neque', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('neque', { + * const trialLink = await client.trialLinks.delete('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -154,9 +154,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.trialLinks.retrieveCohortArps( + * 'reprehenderit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieveCohortArps( @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'temporibus', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 09220de7..80b3ebb1 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: 'pxtvwfysvmbazvtqlypv' }, + * { name: 'gtyaevtnisqrzebhwcv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0d21ee9d..7c39ae68 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('natus'); 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 c9a7842f..d61617e3 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: 'ea', + auth_id: 'cum', auth_type: 'mobile_app', - cookies: 'accusantium', + cookies: 'minus', customProxy: { host: 'proxy.example.com', - password: "Af'd0*", + password: ',?Gg/{fJzJ`hWB', port: 8080, - username: 'corrupti', + username: 'aut', }, - email: 'malachi22@example.com', - force_connect: true, - name: 'molestiae', - password: 'US7HYC"C$', + email: 'estrella41@example.org', + force_connect: false, + name: 'in', + password: 'ifPGBdJTu9l=Vr*IV', proxyCountry: 'us', - user_agent: 'est', - xbc: 'sit', + user_agent: 'ad', + 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 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 07b207cf..1856b815 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('quaerat', { + 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('quaerat', { + 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 64af431b..2e9728e9 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('repellendus', { + 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('repellendus', { + 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('repellendus', { + 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('repellendus', { + 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 14dcb2e9..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 529baa93..91b2d341 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('fuga', { + const responsePromise = client.posts.comments.create('ea', { 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('fuga', { + const response = await client.posts.comments.create('ea', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ea', { 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('fuga', { + const response = await client.posts.comments.list('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 3b2b78fc..2e1dfeba 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: ['lfddooixicafwyq'] }, + filter: { tags: ['nckuruogmwnnutsfalhydjjwg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('soluta'); + const responsePromise = client.smartLinks.listClicks('ex'); 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( - 'soluta', + 'ex', { 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('et'); + const responsePromise = client.smartLinks.listConversions('optio'); 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( - 'et', + 'optio', { 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('vero'); + const responsePromise = client.smartLinks.listFans('pariatur'); 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( - 'vero', + 'pariatur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'placeat', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('exercitationem'); + const responsePromise = client.smartLinks.retrieveCohortArps('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'enim', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatibus'); + const responsePromise = client.smartLinks.retrieveStats('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatibus', + 'delectus', { 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 6d4b1271..f7aa6264 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: 'nyseq', tags: ['w'] }, + filter: { search: 'frlnpmbhpvqs', tags: ['nqjdiqpahpkodyxgfmcgktm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fdqfbrnsj', tags: ['ewlbesojbzosvrxsavu'] }, + filter: { search: 'lilsjamqhiektgwttlkhi', tags: ['vdboywuxmwrsrnudztpteniv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ligvzqvzxajuoioeibp', - tags: ['asosgwjsipnafba'], + search: 'bufx', + tags: ['tgbnsqwbpihqqwicopwen'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ginfwebj', - tags: ['vlhsrpmhaqyclsu'], + include_smart_links: false, + search: 'wdxydrvvtebompzykb', + tags: ['tghadkrvwwzjaxyrm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c8688ed6..4e0070ff 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('recusandae', { 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('recusandae', { 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('recusandae', { 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('recusandae', { 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 7274c5ef..4a9e56a7 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('voluptas', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('eaque', { + const response = await client.trackingLinks.getCohortArps('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('illo', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('illo', { + 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 2411564d..6e069d82 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('neque', { 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('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('neque', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('reprehenderit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('enim', { + const response = await client.trialLinks.retrieveCohortArps('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('temporibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('temporibus', { + const response = await client.trialLinks.retrieveStats('saepe', { 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 509121b4..072a7d90 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: 'pxtvwfysvmbazvtqlypv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gtyaevtnisqrzebhwcv' }); 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: 'pxtvwfysvmbazvtqlypv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gtyaevtnisqrzebhwcv' }); }); // Mock server tests are disabled From 270dc0a17050b01c3be1bf3176bb2159fc586d9b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 17:12:33 +0000 Subject: [PATCH 205/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 ++- src/resources/fans/fans.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 | 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 +- .../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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 28 files changed, 114 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7d3f9bdb..86a62496 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0c1400f2d2673186ba78e4c245b8a9be95f0838ddeab0aed0113e2b3b7a886a3.yml -openapi_spec_hash: 984f4f233bee708607f2651a31eb5d7f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-445eb492f26fedc978dca7dd3d47bec133960dc431aed4279e2a3587c7250649.yml +openapi_spec_hash: 8216c1487eb858df08449e7b45db8de0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c4bd801..d9519a59 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('natus'); + * const response = await client.accounts.disconnect( + * 'tenetur', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/fans/fans.ts b/src/resources/fans/fans.ts index 6a50de4b..3f23fa8c 100644 --- a/src/resources/fans/fans.ts +++ b/src/resources/fans/fans.ts @@ -57,7 +57,7 @@ export class Fans extends APIResource { * authoritative flag). Do NOT use the page's item count to detect the last page — * OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on * a non-final page because it filters entries server-side; no fans are skipped. To - * track progress, GET /{account}/me returns data.subscribersCount (the current + * track progress, GET `/{account}/me` returns data.subscribersCount (the current * active-subscriber count) as a total. * * @example diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b4..84d93ff5 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', + * 'debitis', * { 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', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 263bf6ad..167db313 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('ea', { + * const comment = await client.posts.comments.create('a', { * 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('ea', { + * const comments = await client.posts.comments.list('a', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..41feb4c0 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 b2d293df..54ab66e5 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('ex'); + * 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( - * 'optio', + * 'quas', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'pariatur', - * ); + * const response = await client.smartLinks.listFans('nisi'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'placeat', + * 'soluta', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('enim'); + * await client.smartLinks.retrieveCohortArps('quas'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'delectus', + * 'voluptas', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index d94695b3..3e1c7461 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( - * 'recusandae', + * 'quidem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'recusandae', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('quidem', { + * 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 eb97df35..62dc847a 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( - * 'voluptas', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ipsam', { + * await client.trackingLinks.getCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fuga', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d773178b..dd9457cc 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( - * 'rerum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('vel', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('rerum', { + * const trialLink = await client.trialLinks.delete('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'blanditiis', + * 'ipsam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,10 +153,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps( - * 'reprehenderit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.trialLinks.retrieveCohortArps('quidem', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieveCohortArps( @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'saepe', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 80b3ebb1..d38cbb2b 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: 'gtyaevtnisqrzebhwcv' }, + * { name: 'xtztgkcrtnrshuysrlypyv' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7c39ae68..80a6dcce 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('natus'); + const responsePromise = client.accounts.disconnect('tenetur'); 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 d61617e3..e0ba5801 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_id: 'et', auth_type: 'mobile_app', - cookies: 'minus', + cookies: 'vitae', customProxy: { host: 'proxy.example.com', - password: ',?Gg/{fJzJ`hWB', + password: 'Plzjy7t_<~k*', port: 8080, - username: 'aut', + username: 'aspernatur', }, - email: 'estrella41@example.org', - force_connect: false, - name: 'in', - password: 'ifPGBdJTu9l=Vr*IV', - proxyCountry: 'us', - user_agent: 'ad', - xbc: 'omnis', + email: 'peter.blanda@example.org', + force_connect: true, + name: 'enim', + password: '+-GG2LN:k\\vj>EK', + proxyCountry: 'gb', + user_agent: 'velit', + xbc: 'at', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 2e9728e9..88a6d45e 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('debitis', { 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('debitis', { 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('debitis', { 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('debitis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91b2d341..c9bc0ab0 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('ea', { + const responsePromise = client.posts.comments.create('a', { 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('ea', { + const response = await client.posts.comments.create('a', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('a', { 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('ea', { + const response = await client.posts.comments.list('a', { 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399de..c1510622 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 2e1dfeba..6adbb16b 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: ['nckuruogmwnnutsfalhydjjwg'] }, + filter: { tags: ['acxuqopzgikrvrjndlkxkb'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ex'); + const responsePromise = client.smartLinks.listClicks('id'); 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( - 'ex', + 'id', { 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('optio'); + const responsePromise = client.smartLinks.listConversions('quas'); 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( - 'optio', + 'quas', { 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('pariatur'); + const responsePromise = client.smartLinks.listFans('nisi'); 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( - 'pariatur', + 'nisi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('placeat'); + const responsePromise = client.smartLinks.listSpenders('soluta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'placeat', + 'soluta', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('enim'); + const responsePromise = client.smartLinks.retrieveCohortArps('quas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'quas', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('delectus'); + const responsePromise = client.smartLinks.retrieveStats('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'delectus', + '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 f7aa6264..885cd364 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: 'frlnpmbhpvqs', tags: ['nqjdiqpahpkodyxgfmcgktm'] }, + filter: { search: 'tsx', tags: ['vuouhmnuxyfwqt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lilsjamqhiektgwttlkhi', tags: ['vdboywuxmwrsrnudztpteniv'] }, + filter: { search: 'zraccufb', tags: ['bikfakajclulyccifqafwqv'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bufx', - tags: ['tgbnsqwbpihqqwicopwen'], + include_smart_links: true, + search: 'cestaxbet', + tags: ['i'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'wdxydrvvtebompzykb', - tags: ['tghadkrvwwzjaxyrm'], + include_smart_links: true, + search: 'haggbmbxmdfuunffbwdb', + tags: ['pptmglyhfygvthjqhqxn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4e0070ff..c8688ed6 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('recusandae', { + 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('recusandae', { + 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('recusandae', { + 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('recusandae', { + 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 4a9e56a7..1fbd87d5 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('neque', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ipsam', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ipsam', { + const response = await client.trackingLinks.getCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('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 6e069d82..0371bcbe 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('blanditiis', { + const responsePromise = client.trialLinks.listSubscribers('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('blanditiis', { + const response = await client.trialLinks.listSubscribers('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('reprehenderit', { + const responsePromise = client.trialLinks.retrieveCohortArps('quidem', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('reprehenderit', { + const response = await client.trialLinks.retrieveCohortArps('quidem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('saepe', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('saepe', { + 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 072a7d90..99fc1b16 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: 'gtyaevtnisqrzebhwcv' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xtztgkcrtnrshuysrlypyv', + }); 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: 'gtyaevtnisqrzebhwcv' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xtztgkcrtnrshuysrlypyv', + }); }); // Mock server tests are disabled From 2e8e9b181be5c729cc18568fec26ed15d1e6f99f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:12:31 +0000 Subject: [PATCH 206/309] 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 | 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 | 20 +++++++------- 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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 122 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 86a62496..b2ca7f4b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-445eb492f26fedc978dca7dd3d47bec133960dc431aed4279e2a3587c7250649.yml -openapi_spec_hash: 8216c1487eb858df08449e7b45db8de0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-472164393adecbcbd3440db6a85eae0183969929872aa88c4f04fe98a0b32211.yml +openapi_spec_hash: ad9388a6b39b592c09d882570d47d170 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d9519a59..d601dc74 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( - * 'tenetur', - * ); + * 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 b692ff89..fe997253 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('est', { + * await client.engagement.messages.getMessageBuyers('hic', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 84d93ff5..ea0a8bb1 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( - * 'debitis', + * 'ipsam', * { 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( - * 'debitis', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 167db313..27b54778 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('a', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'nulla', + * { + * 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('a', { + * const comments = await client.posts.comments.list('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..599a9525 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 41feb4c0..c9a094cf 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 54ab66e5..ed9fc83b 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('id'); + * const response = await client.smartLinks.listClicks( + * 'repudiandae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quas', + * 'nihil', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nisi'); + * const response = await client.smartLinks.listFans( + * 'reprehenderit', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'soluta', + * 'animi', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quas'); + * await client.smartLinks.retrieveCohortArps('quia'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptas', + * 'temporibus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e1c7461..391f277e 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', + * '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('quidem', { - * 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 62dc847a..3245f7c0 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( - * 'neque', + * 'incidunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'neque', + * 'incidunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quia', { + * 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( - * 'voluptates', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index dd9457cc..5a096de6 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'consequuntur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'consequuntur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ipsam', + * 'consectetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quidem', { + * await client.trialLinks.retrieveCohortArps('repellendus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eos', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d38cbb2b..4528001c 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: 'xtztgkcrtnrshuysrlypyv' }, + * { name: 'bsykyiuieejhnohobnfbmpwcw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 80a6dcce..21fceee9 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('tenetur'); + 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 e0ba5801..dd15fd74 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_type: 'mobile_app', - cookies: 'vitae', + auth_id: 'repellat', + auth_type: 'raw_data', + cookies: 'amet', customProxy: { host: 'proxy.example.com', - password: 'Plzjy7t_<~k*', + password: 'o/T@RC/0,9', port: 8080, - username: 'aspernatur', + username: 'sed', }, - email: 'peter.blanda@example.org', + email: 'erling.ryan@example.net', force_connect: true, - name: 'enim', - password: '+-GG2LN:k\\vj>EK', + name: 'sit', + password: "V(76ji9QN'", proxyCountry: 'gb', - user_agent: 'velit', - xbc: 'at', + user_agent: 'nesciunt', + xbc: 'dolorem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1856b815..c6b0c485 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('hic', { 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('hic', { 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 88a6d45e..756c1320 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('debitis', { + const responsePromise = client.media.vault.lists.media.add('ipsam', { 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('debitis', { + const response = await client.media.vault.lists.media.add('ipsam', { 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('debitis', { + const responsePromise = client.media.vault.lists.media.remove('ipsam', { 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('debitis', { + const response = await client.media.vault.lists.media.remove('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c9bc0ab0..8b1fdd78 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('a', { + const responsePromise = client.posts.comments.create('nulla', { 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('a', { + const response = await client.posts.comments.create('nulla', { 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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nulla', { 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('a', { + const response = await client.posts.comments.list('nulla', { 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 e2edc676..8e5b0566 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 c1510622..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 6adbb16b..173a394d 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: ['acxuqopzgikrvrjndlkxkb'] }, + filter: { tags: ['xzxitbflzrfpmscjqi'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('id'); + const responsePromise = client.smartLinks.listClicks('repudiandae'); 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( - 'id', + 'repudiandae', { 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('quas'); + const responsePromise = client.smartLinks.listConversions('nihil'); 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( - 'quas', + 'nihil', { 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('nisi'); + const responsePromise = client.smartLinks.listFans('reprehenderit'); 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( - 'nisi', + 'reprehenderit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('soluta'); + const responsePromise = client.smartLinks.listSpenders('animi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'soluta', + 'animi', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quas'); + const responsePromise = client.smartLinks.retrieveCohortArps('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quas', + 'quia', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptas'); + const responsePromise = client.smartLinks.retrieveStats('temporibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'temporibus', { 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 885cd364..4b53082b 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: 'tsx', tags: ['vuouhmnuxyfwqt'] }, + filter: { search: 'qbdzft', tags: ['qcvl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zraccufb', tags: ['bikfakajclulyccifqafwqv'] }, + filter: { search: 'jgxwjrjkspngkvukookjfqczj', tags: ['c'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cestaxbet', - tags: ['i'], + include_smart_links: false, + search: 'zspopaizfjkv', + tags: ['oxymbyloehygfetfbdhg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'haggbmbxmdfuunffbwdb', - tags: ['pptmglyhfygvthjqhqxn'], + include_smart_links: false, + search: 'ploabynwqytndypwm', + tags: ['vksmqontoemkx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c8688ed6..7167a162 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('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('quidem', { + 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('quidem', { + 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('quidem', { + 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 1fbd87d5..853d0e8e 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('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('incidunt', { 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('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('incidunt', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('error', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('est', { 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 0371bcbe..34b39c21 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('consequuntur', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ipsam', { + const responsePromise = client.trialLinks.listSubscribers('consectetur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ipsam', { + const response = await client.trialLinks.listSubscribers('consectetur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quidem', { + const responsePromise = client.trialLinks.retrieveCohortArps('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quidem', { + const response = await client.trialLinks.retrieveCohortArps('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('unde', { 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 99fc1b16..b0d235af 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: 'xtztgkcrtnrshuysrlypyv', + name: 'bsykyiuieejhnohobnfbmpwcw', }); 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: 'xtztgkcrtnrshuysrlypyv', + name: 'bsykyiuieejhnohobnfbmpwcw', }); }); From e61ad5f0e14e7991085277d49c3e875959b222d7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:12:37 +0000 Subject: [PATCH 207/309] 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 | 14 +++++----- 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 | 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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 117 insertions(+), 124 deletions(-) diff --git a/.stats.yml b/.stats.yml index b2ca7f4b..2d1cda3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-472164393adecbcbd3440db6a85eae0183969929872aa88c4f04fe98a0b32211.yml -openapi_spec_hash: ad9388a6b39b592c09d882570d47d170 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8213256f6e0cc4f6df8d5b934e3da25a285184c159e4efa01820f0eda5624cf7.yml +openapi_spec_hash: 4937641fede443de6a09b5657448b2cb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d601dc74..e1791181 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('omnis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fe997253..d9ad63e4 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('hic', { - * 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 ea0a8bb1..0f98a3ca 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( - * 'ipsam', + * '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( - * 'ipsam', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 27b54778..33a94ac9 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( - * 'nulla', + * 'aspernatur', * { * 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('nulla', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'aspernatur', + * { 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094cf..41feb4c0 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 ed9fc83b..18295870 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( - * 'repudiandae', + * 'commodi', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nihil', + * 'id', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'reprehenderit', + * 'laudantium', * ); * ``` */ @@ -131,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'animi', - * ); + * const response = await client.smartLinks.listSpenders('id'); * ``` */ listSpenders( @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quia'); + * await client.smartLinks.retrieveCohortArps('inventore'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'temporibus', + * 'accusantium', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 391f277e..46c335d7 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', + * 'sit', * { * 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('sit', { + * 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 3245f7c0..dd87d6ec 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( - * 'incidunt', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'incidunt', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('error', { + * 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( - * 'est', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5a096de6..bc303d27 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( - * 'consequuntur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'consequuntur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consectetur', + * 'modi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('repellendus', { + * await client.trialLinks.retrieveCohortArps('quaerat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'unde', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4528001c..b963bb2e 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: 'bsykyiuieejhnohobnfbmpwcw' }, + * { name: 'stz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 21fceee9..c1cb7513 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('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 dd15fd74..5d9adbf7 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: 'repellat', - auth_type: 'raw_data', - cookies: 'amet', + auth_id: 'nisi', + auth_type: 'email_password', + cookies: 'consequuntur', customProxy: { host: 'proxy.example.com', - password: 'o/T@RC/0,9', + password: 'St>PW!evI5"|s|9', port: 8080, - username: 'sed', + username: 'quia', }, - email: 'erling.ryan@example.net', - force_connect: true, - name: 'sit', - password: "V(76ji9QN'", - proxyCountry: 'gb', - user_agent: 'nesciunt', - xbc: 'dolorem', + email: 'ohowell@example.net', + force_connect: false, + name: 'voluptatem', + password: '|,HdT3Q)OWX?5lmI', + proxyCountry: 'us', + user_agent: 'est', + xbc: 'placeat', }, { 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 c6b0c485..9bb8cbf3 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('hic', { + 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('hic', { + 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 756c1320..9c53e9e5 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('ipsam', { + 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('ipsam', { + 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('ipsam', { + 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('ipsam', { + const response = await client.media.vault.lists.media.remove('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8b1fdd78..b5e2ece3 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('nulla', { + 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('nulla', { + 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('nulla', { 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('nulla', { + 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 ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af69..c1510622 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 173a394d..1f7091e4 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: ['xzxitbflzrfpmscjqi'] }, + filter: { tags: ['chnobkhvsziouneyidxdiw'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('repudiandae'); + const responsePromise = client.smartLinks.listClicks('commodi'); 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( - 'repudiandae', + 'commodi', { 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('nihil'); + const responsePromise = client.smartLinks.listConversions('id'); 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( - 'nihil', + 'id', { 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('reprehenderit'); + const responsePromise = client.smartLinks.listFans('laudantium'); 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( - 'reprehenderit', + 'laudantium', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('animi'); + const responsePromise = client.smartLinks.listSpenders('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'animi', + 'id', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quia'); + const responsePromise = client.smartLinks.retrieveCohortArps('inventore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'inventore', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('temporibus'); + const responsePromise = client.smartLinks.retrieveStats('accusantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'temporibus', + 'accusantium', { 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 4b53082b..6acf6509 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: 'qbdzft', tags: ['qcvl'] }, + filter: { search: 'snssbfzaagtgz', tags: ['vkkojbhdqudkhpeamv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jgxwjrjkspngkvukookjfqczj', tags: ['c'] }, + filter: { search: 'voups', tags: ['qgpatmmtuhamsizrquixvhb'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zspopaizfjkv', - tags: ['oxymbyloehygfetfbdhg'], + include_smart_links: true, + search: 'm', + tags: ['l'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ploabynwqytndypwm', - tags: ['vksmqontoemkx'], + include_smart_links: true, + search: 'irmfvvrdowcjasmqoca', + tags: ['bwucywr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7167a162..7eb3d1f5 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('sit', { 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('sit', { 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('sit', { 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('sit', { 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 853d0e8e..94c95f63 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('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('consequatur', { 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('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('consequatur', { 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('reprehenderit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('est', { + const response = await client.trackingLinks.getStats('vel', { 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 34b39c21..b0e3bdbc 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('consequuntur', { 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('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('consequuntur', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('consectetur', { + const responsePromise = client.trialLinks.listSubscribers('modi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('consectetur', { + const response = await client.trialLinks.listSubscribers('modi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('repellendus', { + const responsePromise = client.trialLinks.retrieveCohortArps('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('repellendus', { + const response = await client.trialLinks.retrieveCohortArps('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('unde', { + const response = await client.trialLinks.retrieveStats('eum', { 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 b0d235af..93bed1c1 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: 'bsykyiuieejhnohobnfbmpwcw', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'stz' }); 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: 'bsykyiuieejhnohobnfbmpwcw', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'stz' }); }); // Mock server tests are disabled From 495397f34f312169309ee21c6ceefe6ef59e14e3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:12:31 +0000 Subject: [PATCH 208/309] 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 | 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 ++++++++-------- 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 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 30 files changed, 126 insertions(+), 124 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2d1cda3a..3eb96a8c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8213256f6e0cc4f6df8d5b934e3da25a285184c159e4efa01820f0eda5624cf7.yml -openapi_spec_hash: 4937641fede443de6a09b5657448b2cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d42187bbe311c249da9d900335a3e1cab032e3c291c93083200e7cde0232ea27.yml +openapi_spec_hash: c5fb30fd4724d69ba4b4bd519497bf35 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e1791181..f564ad54 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('quos'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d9ad63e4..3a3ac47e 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('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0f98a3ca..e1bcfb5c 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', + * 'non', * { 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', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a94ac9..ca82093e 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( - * 'aspernatur', - * { - * 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,10 +34,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('ut', { + * 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 09d6973d..e20f70d1 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 41feb4c0..2b04cbb2 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 18295870..7e0e2952 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( - * 'commodi', + * 'iusto', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'id', + * 'quia', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'laudantium', + * 'aperiam', * ); * ``` */ @@ -131,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('id'); + * const response = await client.smartLinks.listSpenders( + * 'quaerat', + * ); * ``` */ listSpenders( @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('inventore'); + * await client.smartLinks.retrieveCohortArps('esse'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'accusantium', + * 'minima', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 46c335d7..213927b2 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( - * 'sit', + * 'ipsam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sit', { + * await client.stories.highlights.removeStory('ipsam', { * 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 dd87d6ec..903f19bd 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( - * 'consequatur', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consequatur', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('reprehenderit', { + * await client.trackingLinks.getCohortArps('fugit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'vel', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index bc303d27..5817ab92 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( + * 'molestias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'molestias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'modi', + * 'animi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quaerat', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eum', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b963bb2e..3959eb41 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: 'stz' }, + * { name: 'igbiekqpqjcrwhkrleaozvktd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1cb7513..d0d2f40c 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('quos'); 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 5d9adbf7..5e9d98c3 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_type: 'email_password', - cookies: 'consequuntur', + auth_id: 'consequatur', + auth_type: 'mobile_app', + cookies: 'sint', customProxy: { host: 'proxy.example.com', - password: 'St>PW!evI5"|s|9', + password: 'EZ5;@rd6ZFj/CG\\x:Y%x', port: 8080, - username: 'quia', + username: 'qui', }, - email: 'ohowell@example.net', + email: 'qschumm@example.com', force_connect: false, - name: 'voluptatem', - password: '|,HdT3Q)OWX?5lmI', - proxyCountry: 'us', - user_agent: 'est', - xbc: 'placeat', + name: 'ratione', + password: 'rc::?<$_K=j', + proxyCountry: 'gb', + user_agent: 'nobis', + xbc: 'temporibus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9bb8cbf3..32dab22b 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('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('itaque', { + 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 9c53e9e5..109a9c1f 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('non', { 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('non', { 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('non', { 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('non', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..7b042946 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 b5e2ece3..548a48cb 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('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('aspernatur', { + 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('aspernatur', { 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('aspernatur', { + 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 9bf5999b..ad49ad2e 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 e2edc676..fd74b68f 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 c1510622..96d399de 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1f7091e4..5343da92 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: ['chnobkhvsziouneyidxdiw'] }, + filter: { tags: ['hzuetrlokqwojagyfemx'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('commodi'); + const responsePromise = client.smartLinks.listClicks('iusto'); 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( - 'commodi', + 'iusto', { 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('id'); + const responsePromise = client.smartLinks.listConversions('quia'); 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( - 'id', + 'quia', { 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('laudantium'); + const responsePromise = client.smartLinks.listFans('aperiam'); 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( - 'laudantium', + 'aperiam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('id'); + const responsePromise = client.smartLinks.listSpenders('quaerat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + 'quaerat', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('inventore'); + const responsePromise = client.smartLinks.retrieveCohortArps('esse'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'inventore', + 'esse', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('accusantium'); + const responsePromise = client.smartLinks.retrieveStats('minima'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'accusantium', + 'minima', { 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 6acf6509..a74f46c6 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: 'snssbfzaagtgz', tags: ['vkkojbhdqudkhpeamv'] }, + filter: { search: 'husyy', tags: ['jkdflckzcqjjzsy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'voups', tags: ['qgpatmmtuhamsizrquixvhb'] }, + filter: { search: 'pg', tags: ['jhkulxzqcvlpvoxmkh'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'm', - tags: ['l'], + search: 'anuukenttclsdhmcpxirxjse', + tags: ['khmsusstabzmjxnneuwripst'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'irmfvvrdowcjasmqoca', - tags: ['bwucywr'], + search: 'gpfei', + tags: ['uxmbzlkxyefvumjrierbiwm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7eb3d1f5..7af9191b 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('sit', { + const responsePromise = client.stories.highlights.addStory('ipsam', { 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('sit', { + const response = await client.stories.highlights.addStory('ipsam', { 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('sit', { + const responsePromise = client.stories.highlights.removeStory('ipsam', { 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('sit', { + const response = await client.stories.highlights.removeStory('ipsam', { 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 94c95f63..42bef59b 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('deleniti', { 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('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('deleniti', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,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('fugit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('vel', { + const response = await client.trackingLinks.getStats('id', { 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 b0e3bdbc..8bc2344d 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('molestias', { 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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('modi', { + const responsePromise = client.trialLinks.listSubscribers('animi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('modi', { + const response = await client.trialLinks.listSubscribers('animi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quaerat', { + const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quaerat', { + const response = await client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('consequuntur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eum', { + const response = await client.trialLinks.retrieveStats('consequuntur', { 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 93bed1c1..def238fc 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: 'stz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'igbiekqpqjcrwhkrleaozvktd', + }); 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: 'stz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'igbiekqpqjcrwhkrleaozvktd', + }); }); // Mock server tests are disabled From cc79dff2e07c30103bf172515605cc1f8dfd1ec2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 07:12:31 +0000 Subject: [PATCH 209/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/chats/messages.ts | 4 +-- src/resources/engagement/messages/messages.ts | 7 ++--- src/resources/mass-messaging.ts | 6 ++--- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 13 ++++++---- 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 | 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/chats/messages.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- tests/api-resources/mass-messaging.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- .../shared-trial-links.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 | 24 +++++++---------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 116 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3eb96a8c..8d1d2029 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d42187bbe311c249da9d900335a3e1cab032e3c291c93083200e7cde0232ea27.yml -openapi_spec_hash: c5fb30fd4724d69ba4b4bd519497bf35 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2589d34f2558e14affdae826ce1c96c76ebf0659c44350e0c9f23a8b74758a68.yml +openapi_spec_hash: e5fc1e707177a3938b504eb815ebc379 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f564ad54..9c98107a 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('quos'); + * const response = await client.accounts.disconnect('illo'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/chats/messages.ts b/src/resources/chats/messages.ts index f7db5408..188b306a 100644 --- a/src/resources/chats/messages.ts +++ b/src/resources/chats/messages.ts @@ -945,8 +945,8 @@ export interface MessageSendParams { previews?: Array; /** - * Body param: Price for paid content (0 or between 3-200). In case this is not - * zero, **mediaFiles** is required + * Body param: Price for paid content in USD (0 or between 3-200). In case this is + * not zero, **mediaFiles** is required */ price?: number; diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a3ac47e..1a76fb07 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( + * 'voluptate', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/mass-messaging.ts b/src/resources/mass-messaging.ts index d88abfdd..c8365d6a 100644 --- a/src/resources/mass-messaging.ts +++ b/src/resources/mass-messaging.ts @@ -709,8 +709,8 @@ export interface MassMessagingUpdateParams { previews?: Array; /** - * Body param: Price for paid content (0 or between 3-200). In case this is not - * zero, **mediaFiles** is required + * Body param: Price for paid content in USD (0 or between 3-200). In case this is + * not zero, **mediaFiles** is required */ price?: number; @@ -804,7 +804,7 @@ export interface MassMessagingSendParams { previews?: Array; /** - * Price for paid content (0 or between 3-200). In case this is not zero, + * Price for paid content in USD (0 or between 3-200). In case this is not zero, * **mediaFiles** is required */ price?: number; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e1bcfb5c..f3d95f1c 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( - * 'non', + * 'qui', * { 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( - * 'non', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..27b54778 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( + * 'nulla', + * { + * 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('ut', { + * const comments = await client.posts.comments.list('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 7e0e2952..0e2bac6d 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( - * 'iusto', + * 'labore', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quia', + * 'unde', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'aperiam', - * ); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quaerat', + * 'reprehenderit', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('esse'); + * await client.smartLinks.retrieveCohortArps('autem'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'minima', + * 'voluptate', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 213927b2..445cba5e 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( - * 'ipsam', + * 'enim', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ipsam', { + * await client.stories.highlights.removeStory('enim', { * 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 903f19bd..f033607b 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( - * 'deleniti', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'deleniti', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('fugit', { + * await client.trackingLinks.getCohortArps('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'laboriosam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5817ab92..b65f1976 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( - * 'molestias', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'molestias', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('culpa', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'animi', + * 'sint', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consequuntur', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3959eb41..541839c5 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: 'igbiekqpqjcrwhkrleaozvktd' }, + * { name: 'yhahkdzarvxodjk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d0d2f40c..0773c38b 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('quos'); + const responsePromise = client.accounts.disconnect('illo'); 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 5e9d98c3..a585ff3b 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: 'consequatur', + auth_id: 'ut', auth_type: 'mobile_app', - cookies: 'sint', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: 'EZ5;@rd6ZFj/CG\\x:Y%x', + password: '&Au{SMGl_gfz', port: 8080, - username: 'qui', + username: 'iste', }, - email: 'qschumm@example.com', - force_connect: false, - name: 'ratione', - password: 'rc::?<$_K=j', + email: 'hgrady@example.com', + force_connect: true, + name: 'vel', + password: '>/9\\b^,F~', proxyCountry: 'gb', - user_agent: 'nobis', - xbc: 'temporibus', + user_agent: 'quisquam', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/chats/messages.test.ts b/tests/api-resources/chats/messages.test.ts index f8d45cea..c7a99ce5 100644 --- a/tests/api-resources/chats/messages.test.ts +++ b/tests/api-resources/chats/messages.test.ts @@ -169,7 +169,7 @@ describe('resource messages', () => { lockedText: true, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], - price: 10, + price: 6.97, replyToMessageId: 123456789, rfGuest: 'rfGuest', rfPartner: 'rfPartner', diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32dab22b..59e8a432 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('voluptate', { 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/mass-messaging.test.ts b/tests/api-resources/mass-messaging.test.ts index 20ba1639..8aafc205 100644 --- a/tests/api-resources/mass-messaging.test.ts +++ b/tests/api-resources/mass-messaging.test.ts @@ -50,7 +50,7 @@ describe('resource massMessaging', () => { lockedText: true, mediaFiles: ['ofapi_media_abc123', 'string'], previews: ['ofapi_media_abc123', 'string'], - price: 100, + price: 6.97, scheduledDate: '2025-01-01T00:00:00.000Z', userIds: ['string'], userLists: ['fans', 'recent', 'following', 'rebill_off', 'tagged', 'string'], @@ -137,7 +137,7 @@ describe('resource massMessaging', () => { lockedText: true, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], - price: 100, + price: 6.97, rfGuest: 'rfGuest', rfPartner: 'rfPartner', rfTag: 'rfTag', diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 109a9c1f..c878a4d7 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('non', { + const responsePromise = client.media.vault.lists.media.add('qui', { 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('non', { + const response = await client.media.vault.lists.media.add('qui', { 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('non', { + const responsePromise = client.media.vault.lists.media.remove('qui', { 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('non', { + const response = await client.media.vault.lists.media.remove('qui', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..8b1fdd78 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('nulla', { 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('nulla', { 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('nulla', { 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('nulla', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5343da92..c602d556 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: ['hzuetrlokqwojagyfemx'] }, + filter: { tags: ['dgwzantvaqmfnjgwwikgltwzf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('iusto'); + const responsePromise = client.smartLinks.listClicks('labore'); 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( - 'iusto', + 'labore', { 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('quia'); + const responsePromise = client.smartLinks.listConversions('unde'); 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( - 'quia', + 'unde', { 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('aperiam'); + const responsePromise = client.smartLinks.listFans('quia'); 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( - 'aperiam', + 'quia', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quaerat'); + const responsePromise = client.smartLinks.listSpenders('reprehenderit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quaerat', + 'reprehenderit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('esse'); + const responsePromise = client.smartLinks.retrieveCohortArps('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'autem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('minima'); + const responsePromise = client.smartLinks.retrieveStats('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'minima', + 'voluptate', { 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 a74f46c6..17e4f18a 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: 'husyy', tags: ['jkdflckzcqjjzsy'] }, + filter: { search: 'yt', tags: ['qhhzt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pg', tags: ['jhkulxzqcvlpvoxmkh'] }, + filter: { search: 'yjfmwfz', tags: ['kfwqvrzfq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'anuukenttclsdhmcpxirxjse', - tags: ['khmsusstabzmjxnneuwripst'], + search: 'e', + tags: ['prhumvzz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'gpfei', - tags: ['uxmbzlkxyefvumjrierbiwm'], + include_smart_links: false, + search: 'ogpjbkuvvjjckogfywjtnxb', + tags: ['lyjdiebkydrufekquu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7af9191b..bdebd6b4 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('ipsam', { + const responsePromise = client.stories.highlights.addStory('enim', { 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('ipsam', { + const response = await client.stories.highlights.addStory('enim', { 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('ipsam', { + const responsePromise = client.stories.highlights.removeStory('enim', { 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('ipsam', { + const response = await client.stories.highlights.removeStory('enim', { 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 42bef59b..6dc8944c 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('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('at', { 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('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('fugit', { + const response = await client.trackingLinks.getCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('id', { + const response = await client.trackingLinks.getStats('laboriosam', { 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 8bc2344d..7ab73e0c 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('molestias', { 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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('molestias', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('animi', { + const responsePromise = client.trialLinks.listSubscribers('sint', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('animi', { + const response = await client.trialLinks.listSubscribers('sint', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('sint', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('consequuntur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('consequuntur', { + const response = await client.trialLinks.retrieveStats('numquam', { 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 def238fc..0e9da816 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: 'igbiekqpqjcrwhkrleaozvktd', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yhahkdzarvxodjk' }); 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: 'igbiekqpqjcrwhkrleaozvktd', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yhahkdzarvxodjk' }); }); // Mock server tests are disabled From 2ef1c9ca97d00f839d2b618e6d79c1b2a95b059d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 08:12:33 +0000 Subject: [PATCH 210/309] 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 +- 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/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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 6 +++-- 25 files changed, 104 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8d1d2029..ca877a6f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2589d34f2558e14affdae826ce1c96c76ebf0659c44350e0c9f23a8b74758a68.yml -openapi_spec_hash: e5fc1e707177a3938b504eb815ebc379 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8617a19243245a950f0ae828b466a20067be8a118712b68264c974c57acfe6a2.yml +openapi_spec_hash: 7052a0a6ed40b45993cdd68cd9c873cc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9c98107a..784fdd20 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('illo'); + * const response = await client.accounts.disconnect('iste'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1a76fb07..9f8aa938 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( - * 'voluptate', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f3d95f1c..498021bb 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( - * 'qui', + * '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( - * 'qui', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 27b54778..c3a5c806 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( - * 'nulla', + * 'culpa', * { * 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('nulla', { + * const comments = await client.posts.comments.list('culpa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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/smart-links.ts b/src/resources/smart-links.ts index 0e2bac6d..ad2421da 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( - * 'labore', - * ); + * 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( - * 'unde', + * 'qui', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'reprehenderit', + * 'odit', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('autem'); + * await client.smartLinks.retrieveCohortArps('nostrum'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptate', + * 'ullam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 445cba5e..3e468636 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( - * 'enim', + * 'in', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('enim', { + * await client.stories.highlights.removeStory('in', { * 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 f033607b..ce9f65df 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( - * 'at', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'at', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nihil', { + * 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( - * 'laboriosam', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b65f1976..8793ce93 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', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('culpa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'eligendi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sint', + * 'iure', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sint', { + * await client.trialLinks.retrieveCohortArps('officiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'numquam', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 541839c5..09c30042 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: 'yhahkdzarvxodjk' }, + * { name: 'quwgwlaqvwpvskghhgsps' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0773c38b..4c7aa452 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('illo'); + const responsePromise = client.accounts.disconnect('iste'); 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 a585ff3b..74e62574 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: 'mobile_app', - cookies: 'odit', + auth_id: 'qui', + auth_type: 'email_password', + cookies: 'debitis', customProxy: { host: 'proxy.example.com', - password: '&Au{SMGl_gfz', + password: 'vQ.;te;`BZzcu&ck]', port: 8080, - username: 'iste', + username: 'quia', }, - email: 'hgrady@example.com', + email: 'xrogahn@example.net', force_connect: true, - name: 'vel', - password: '>/9\\b^,F~', + name: 'est', + password: 'Dp]Y/ { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('voluptate', { + 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('voluptate', { + 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 c878a4d7..7b876bd9 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('qui', { + 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('qui', { + 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('qui', { + 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('qui', { + 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 b0d96512..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8b1fdd78..085c066c 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('nulla', { + const responsePromise = client.posts.comments.create('culpa', { 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('nulla', { + const response = await client.posts.comments.create('culpa', { 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('nulla', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('culpa', { 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('nulla', { + const response = await client.posts.comments.list('culpa', { 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 fd74b68f..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 c602d556..80172074 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: ['dgwzantvaqmfnjgwwikgltwzf'] }, + filter: { tags: ['ymouebckinecbrddylnvgjncl'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('labore'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'labore', + 'aut', { 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('unde'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'unde', + 'qui', { 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('quia'); + 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( - 'quia', + 'est', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('reprehenderit'); + const responsePromise = client.smartLinks.listSpenders('odit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'reprehenderit', + 'odit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('autem'); + const responsePromise = client.smartLinks.retrieveCohortArps('nostrum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'autem', + 'nostrum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptate'); + const responsePromise = client.smartLinks.retrieveStats('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + '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 17e4f18a..f3c74777 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: 'yt', tags: ['qhhzt'] }, + filter: { search: 'qnmyinyrfp', tags: ['oxampcjkkqgbwlr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yjfmwfz', tags: ['kfwqvrzfq'] }, + filter: { search: 'aasbtouibqqffhlfprcgt', tags: ['puwjxhap'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'e', - tags: ['prhumvzz'], + search: 'srmxtrtwyy', + tags: ['tnmew'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ogpjbkuvvjjckogfywjtnxb', - tags: ['lyjdiebkydrufekquu'], + search: 'bvmsdxsunxshvzsbpatp', + tags: ['foslkcsqciovkwrvwjcpia'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdebd6b4..9bbc0c9f 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('enim', { + const responsePromise = client.stories.highlights.addStory('in', { 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('enim', { + const response = await client.stories.highlights.addStory('in', { 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('enim', { + const responsePromise = client.stories.highlights.removeStory('in', { 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('enim', { + const response = await client.stories.highlights.removeStory('in', { 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 6dc8944c..a48729c2 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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('numquam', { 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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nihil', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('nihil', { + const response = await client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('laboriosam', { + const response = await client.trackingLinks.getStats('laborum', { 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 7ab73e0c..6b2a43c8 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('eligendi', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sint', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sint', { + const response = await client.trialLinks.listSubscribers('iure', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('officiis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sint', { + const response = await client.trialLinks.retrieveCohortArps('officiis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('numquam', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('numquam', { + 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 0e9da816..f726d6a6 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: 'yhahkdzarvxodjk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'quwgwlaqvwpvskghhgsps', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'yhahkdzarvxodjk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'quwgwlaqvwpvskghhgsps' }); }); // Mock server tests are disabled From 5192b8b5ecd9af3a7cc6fea97f9dd2c0f069a505 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:12:48 +0000 Subject: [PATCH 211/309] 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/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 +-- .../shared-trial-links.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 +-- 25 files changed, 107 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca877a6f..ffefb493 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8617a19243245a950f0ae828b466a20067be8a118712b68264c974c57acfe6a2.yml -openapi_spec_hash: 7052a0a6ed40b45993cdd68cd9c873cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6f461bdebf5c8d8f2045ebf7cf3ec224d4918ebab907dd862e4cb14d6d558956.yml +openapi_spec_hash: 3192c58a8a2c404c1484b5b42af52a30 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 784fdd20..f4394bbb 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('iste'); + * const response = await client.accounts.disconnect('fugiat'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 9f8aa938..58a8ea91 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( + * 'pariatur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..13f0e898 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', + * 'aspernatur', * { 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', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c3a5c806..9f94b654 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( - * 'culpa', + * 'adipisci', * { * 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('culpa', { - * 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/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..c9a094cf 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 ad2421da..950e2457 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('est'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'debitis', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'odit', + * 'excepturi', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nostrum'); + * await client.smartLinks.retrieveCohortArps('nobis'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ullam', + * 'quam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e468636..651e8fba 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( - * 'in', + * '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('in', { + * 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 ce9f65df..a95c130f 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( - * 'numquam', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'numquam', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('voluptatibus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'laborum', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8793ce93..29982c52 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( - * 'eligendi', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'eligendi', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'iure', + * 'autem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('officiis', { + * await client.trialLinks.retrieveCohortArps('eius', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sit', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 09c30042..6cec9f39 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: 'quwgwlaqvwpvskghhgsps' }, + * { name: 'uopqbezqdvxomnnbvnysw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 4c7aa452..c7f0ff41 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('iste'); + const responsePromise = client.accounts.disconnect('fugiat'); 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 74e62574..6fac7d6e 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: 'qui', - auth_type: 'email_password', - cookies: 'debitis', + auth_id: 'ut', + auth_type: 'raw_data', + cookies: 'molestiae', customProxy: { host: 'proxy.example.com', - password: 'vQ.;te;`BZzcu&ck]', + password: 'vGb.y[}QpQS9vd', port: 8080, - username: 'quia', + username: 'voluptas', }, - email: 'xrogahn@example.net', - force_connect: true, - name: 'est', - password: 'Dp]Y/ { // 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('pariatur', { 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('pariatur', { 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 7b876bd9..50a07269 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('aspernatur', { 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('aspernatur', { 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('aspernatur', { 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('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 085c066c..08ce1092 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('culpa', { + 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('culpa', { + 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('culpa', { 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('culpa', { + const response = await client.posts.comments.list('adipisci', { 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 96d399de..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 80172074..1b1cfee3 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: ['ymouebckinecbrddylnvgjncl'] }, + filter: { tags: ['qzvsqlfitiiqhdyyh'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('est'); 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', + 'est', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('debitis'); 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( - 'qui', + 'debitis', { 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('est'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'est', + 'qui', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('odit'); + const responsePromise = client.smartLinks.listSpenders('excepturi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'excepturi', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nostrum'); + const responsePromise = client.smartLinks.retrieveCohortArps('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'nostrum', + 'nobis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ullam'); + const responsePromise = client.smartLinks.retrieveStats('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ullam', + 'quam', { 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 f3c74777..b213aad2 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: 'qnmyinyrfp', tags: ['oxampcjkkqgbwlr'] }, + filter: { search: 'cxydccyfacpcloyuidqqqwlhb', tags: ['g'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'aasbtouibqqffhlfprcgt', tags: ['puwjxhap'] }, + filter: { search: 'uiwghmqko', tags: ['rawggufhqdycglwpwgrmledbp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'srmxtrtwyy', - tags: ['tnmew'], + include_smart_links: false, + search: 'xcdt', + tags: ['yecwxphakdcygno'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bvmsdxsunxshvzsbpatp', - tags: ['foslkcsqciovkwrvwjcpia'], + include_smart_links: true, + search: 'qjclzdttwk', + tags: ['aoxxxdcdfeddmj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9bbc0c9f..46e853d9 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('in', { + 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('in', { + 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('in', { + 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('in', { + 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 a48729c2..16b3bcd6 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('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('id', { 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('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('id', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('id', { 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('voluptatibus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('laborum', { 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; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('laborum', { + 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 6b2a43c8..3eee9c8f 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('deleniti', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,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('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('eius', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('aperiam', { 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 f726d6a6..e57f2104 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: 'quwgwlaqvwpvskghhgsps', + name: 'uopqbezqdvxomnnbvnysw', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -24,7 +24,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: 'quwgwlaqvwpvskghhgsps' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uopqbezqdvxomnnbvnysw' }); }); // Mock server tests are disabled From 0ef2e1a40a856f93967721e3d6748bb778c83312 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:12:29 +0000 Subject: [PATCH 212/309] 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 +- 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 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 6 ++--- 26 files changed, 100 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index ffefb493..b863200d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6f461bdebf5c8d8f2045ebf7cf3ec224d4918ebab907dd862e4cb14d6d558956.yml -openapi_spec_hash: 3192c58a8a2c404c1484b5b42af52a30 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-446dd37bf3f946b78c1871965d6c8615b1827af5f92cc5827541cebf5b66d2db.yml +openapi_spec_hash: f7cbc12eeba246d3ce34207b61508856 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f4394bbb..ec4d431d 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('fugiat'); + * const response = await client.accounts.disconnect( + * 'tempore', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 58a8ea91..6c3e06de 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( - * 'pariatur', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 13f0e898..0d43daa9 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( - * 'aspernatur', + * 'adipisci', * { 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( - * 'aspernatur', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9f94b654..8fb1c191 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( - * 'adipisci', + * 'facilis', * { * 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( - * 'adipisci', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 950e2457..e8b20e5a 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('est'); + * 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( - * 'debitis', + * 'enim', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('hic'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'excepturi', + * 'quia', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nobis'); + * await client.smartLinks.retrieveCohortArps('ipsa'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quam', + * 'omnis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..06d6d201 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', + * 'harum', * { * 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('harum', { * 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 a95c130f..7e8b8bd8 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( - * 'id', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'id', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptatibus', { + * 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( - * 'molestiae', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 29982c52..fc01e936 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( - * 'deleniti', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'deleniti', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'autem', + * 'magni', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eius', { + * await client.trialLinks.retrieveCohortArps('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aperiam', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6cec9f39..4369e19b 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: 'uopqbezqdvxomnnbvnysw' }, + * { name: 'pmfrvgxsohkgrve' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c7f0ff41..e463f08d 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('fugiat'); + const responsePromise = client.accounts.disconnect('tempore'); 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 6fac7d6e..b7628e5b 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: 'molestiae', + auth_id: 'quibusdam', + auth_type: 'mobile_app', + cookies: 'sint', customProxy: { host: 'proxy.example.com', - password: 'vGb.y[}QpQS9vd', + password: 'Y&,wj82d', port: 8080, - username: 'voluptas', + username: 'praesentium', }, - email: 'gprosacco@example.net', + email: 'botsford.antonio@example.net', force_connect: false, - name: 'in', - password: 'Z!}6;k3$+3@}Ygqyis', + name: 'veritatis', + password: 'Vw%-.U', proxyCountry: 'us', - user_agent: 'ut', - xbc: 'necessitatibus', + user_agent: 'esse', + xbc: 'neque', }, { 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 05e01e39..e8df2506 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('pariatur', { + const responsePromise = client.engagement.messages.getMessageBuyers('libero', { 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('pariatur', { + const response = await client.engagement.messages.getMessageBuyers('libero', { 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 50a07269..3a060828 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('aspernatur', { + const responsePromise = client.media.vault.lists.media.add('adipisci', { 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('aspernatur', { + const response = await client.media.vault.lists.media.add('adipisci', { 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('aspernatur', { + const responsePromise = client.media.vault.lists.media.remove('adipisci', { 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('aspernatur', { + const response = await client.media.vault.lists.media.remove('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 08ce1092..5b087c92 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('facilis', { 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('facilis', { 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('facilis', { 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('facilis', { 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 8e5b0566..fd74b68f 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1b1cfee3..1f4413d4 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: ['qzvsqlfitiiqhdyyh'] }, + filter: { tags: ['xmjaddgbzmmq'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('delectus'); 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( - 'est', + 'delectus', { 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('debitis'); + const responsePromise = client.smartLinks.listConversions('enim'); 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( - 'debitis', + 'enim', { 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('qui'); + const responsePromise = client.smartLinks.listFans('hic'); 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( - 'qui', + 'hic', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('excepturi'); + const responsePromise = client.smartLinks.listSpenders('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'excepturi', + 'quia', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nobis'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'nobis', + 'ipsa', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quam'); + const responsePromise = client.smartLinks.retrieveStats('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quam', + '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 b213aad2..eabeeeed 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: 'cxydccyfacpcloyuidqqqwlhb', tags: ['g'] }, + filter: { search: 'imvuuaakwyh', tags: ['lzuzw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uiwghmqko', tags: ['rawggufhqdycglwpwgrmledbp'] }, + filter: { search: 'cydlolxlvppcl', tags: ['tdrvmm'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'xcdt', - tags: ['yecwxphakdcygno'], + search: 'ifurz', + tags: ['ouwqgxfluznexsy'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'qjclzdttwk', - tags: ['aoxxxdcdfeddmj'], + search: 'nqaqesbuuvfiidsiolvgp', + tags: ['ccwna'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..7847b09d 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('harum', { 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('harum', { 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('harum', { 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('harum', { 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 16b3bcd6..a9fc95ab 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('id', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('id', { 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; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('id', { 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('voluptatibus', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptatibus', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('dolores', { 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 3eee9c8f..c7b2a300 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('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aperiam', { 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('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('deleniti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('autem', { + const responsePromise = client.trialLinks.listSubscribers('magni', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('autem', { + const response = await client.trialLinks.listSubscribers('magni', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ 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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('ipsa', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aperiam', { + const response = await client.trialLinks.retrieveStats('sapiente', { 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 e57f2104..045e4abf 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: 'uopqbezqdvxomnnbvnysw', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pmfrvgxsohkgrve' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'uopqbezqdvxomnnbvnysw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pmfrvgxsohkgrve' }); }); // Mock server tests are disabled From 024e41a0be2fce20ae5c917351a0bb588c7180d5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 00:12:32 +0000 Subject: [PATCH 213/309] 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 | 18 ++++++------- 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 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 16 ++++++------ .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 107 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index b863200d..ad875e50 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-446dd37bf3f946b78c1871965d6c8615b1827af5f92cc5827541cebf5b66d2db.yml -openapi_spec_hash: f7cbc12eeba246d3ce34207b61508856 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-28befbb82cb087540ae046ba8dbad14f696cd9c7b2b3c8398228f0c1779c9e89.yml +openapi_spec_hash: e13fdb92655650972f93ad491a9b4561 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ec4d431d..0859fc30 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( - * 'tempore', + * 'dolores', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6c3e06de..cf541bc7 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( - * 'libero', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0d43daa9..8a89e241 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( - * 'adipisci', + * 'pariatur', * { 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( - * 'adipisci', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 8fb1c191..21410b8d 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( - * 'facilis', + * 'molestias', * { * 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( - * 'facilis', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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 c9a094cf..2b04cbb2 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 e8b20e5a..496189a4 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( - * 'delectus', + * 'voluptatem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'enim', + * 'aut', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('hic'); + * const response = await client.smartLinks.listFans( + * 'molestiae', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'blanditiis', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ipsa'); + * await client.smartLinks.retrieveCohortArps('cupiditate'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'omnis', + * 'accusamus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 06d6d201..9e605c1a 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( - * 'harum', + * 'dolorem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('harum', { + * await client.stories.highlights.removeStory('dolorem', { * 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 7e8b8bd8..1c044c2d 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', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'tempora', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('corporis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolores', + * 'dolore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fc01e936..f42ca37f 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( - * 'aperiam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'aperiam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ipsa', { + * await client.trialLinks.retrieveCohortArps('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sapiente', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4369e19b..0474b9d1 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: 'pmfrvgxsohkgrve' }, + * { name: 'jile' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e463f08d..a2da2466 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('tempore'); + 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 b7628e5b..0e2a20d0 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: 'quibusdam', - auth_type: 'mobile_app', - cookies: 'sint', + auth_id: 'animi', + auth_type: 'email_password', + cookies: 'temporibus', customProxy: { host: 'proxy.example.com', - password: 'Y&,wj82d', + password: 'e?J34`nTd,!i"y', port: 8080, - username: 'praesentium', + username: 'sit', }, - email: 'botsford.antonio@example.net', + email: 'trever05@example.org', force_connect: false, - name: 'veritatis', - password: 'Vw%-.U', + name: 'sit', + password: '"NgX$wz=HAN', proxyCountry: 'us', - user_agent: 'esse', - xbc: 'neque', + user_agent: 'velit', + xbc: 'beatae', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 e8df2506..5de74c35 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('libero', { + const responsePromise = client.engagement.messages.getMessageBuyers('accusamus', { 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('libero', { + const response = await client.engagement.messages.getMessageBuyers('accusamus', { 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 3a060828..5848ba09 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('adipisci', { + const responsePromise = client.media.vault.lists.media.add('pariatur', { 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('adipisci', { + const response = await client.media.vault.lists.media.add('pariatur', { 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('adipisci', { + const responsePromise = client.media.vault.lists.media.remove('pariatur', { 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('adipisci', { + const response = await client.media.vault.lists.media.remove('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 5b087c92..29c06021 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('facilis', { + 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('facilis', { + 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('facilis', { 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('facilis', { + const response = await client.posts.comments.list('molestias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..8e5b0566 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 b643af69..96d399de 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1f4413d4..d37202b6 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: ['xmjaddgbzmmq'] }, + filter: { tags: ['rzwjjfyr'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('delectus'); + const responsePromise = client.smartLinks.listClicks('voluptatem'); 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( - 'delectus', + 'voluptatem', { 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('enim'); + const responsePromise = client.smartLinks.listConversions('aut'); 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( - 'enim', + 'aut', { 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('hic'); + const responsePromise = client.smartLinks.listFans('molestiae'); 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( - 'hic', + 'molestiae', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quia'); + const responsePromise = client.smartLinks.listSpenders('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'blanditiis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); + const responsePromise = client.smartLinks.retrieveCohortArps('cupiditate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsa', + 'cupiditate', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('omnis'); + const responsePromise = client.smartLinks.retrieveStats('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'accusamus', { 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 eabeeeed..586fbb73 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: 'imvuuaakwyh', tags: ['lzuzw'] }, + filter: { search: 'nrdsbga', tags: ['oxttoxbtnxwztdpmlvxu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cydlolxlvppcl', tags: ['tdrvmm'] }, + filter: { search: 'wjlfyyiwnzdblcmgvrugldkwz', tags: ['xe'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ifurz', - tags: ['ouwqgxfluznexsy'], + search: 'phmcqmrvafnquvcofytgxd', + tags: ['hghsqzkelvkgbxgxiyj'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'nqaqesbuuvfiidsiolvgp', - tags: ['ccwna'], + search: 'ljutvxbiwepowrf', + tags: ['gwftakjrpizrddvhj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7847b09d..5c3f89bf 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('harum', { + const responsePromise = client.stories.highlights.addStory('dolorem', { 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('harum', { + const response = await client.stories.highlights.addStory('dolorem', { 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('harum', { + const responsePromise = client.stories.highlights.removeStory('dolorem', { 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('harum', { + const response = await client.stories.highlights.removeStory('dolorem', { 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 a9fc95ab..e642e403 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('ea', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('ea', { 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('corporis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('corporis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dolores', { + const response = await client.trackingLinks.getStats('dolore', { 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 c7b2a300..211a8f36 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('aperiam', { 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('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aperiam', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ipsa', { + const response = await client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('sapiente', { + const response = await client.trialLinks.retrieveStats('magnam', { 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 045e4abf..4e5da3a4 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: 'pmfrvgxsohkgrve' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jile' }); 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: 'pmfrvgxsohkgrve' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jile' }); }); // Mock server tests are disabled From 782dc0dbbf587cd1082c4ce1a6e0d3f64bb33e17 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 05:12:31 +0000 Subject: [PATCH 214/309] 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 | 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 +++--- 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 | 4 +-- 28 files changed, 105 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad875e50..2c89b128 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-28befbb82cb087540ae046ba8dbad14f696cd9c7b2b3c8398228f0c1779c9e89.yml -openapi_spec_hash: e13fdb92655650972f93ad491a9b4561 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7c98fc095cb32510deb3d4cd9aa224171d93cf460e9463eaf197fe2f3f19cff8.yml +openapi_spec_hash: dc682bf7cc4a4368874fe6191fd66287 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0859fc30..21770fad 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('facere'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index cf541bc7..983ec14b 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( - * 'accusamus', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8a89e241..66286110 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( - * 'pariatur', + * 'voluptatem', * { 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( - * 'pariatur', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 21410b8d..ca82093e 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( - * 'molestias', - * { - * 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,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'molestias', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ut', { + * 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 599a9525..e20f70d1 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 2b04cbb2..41feb4c0 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 496189a4..de2b7ebb 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', + * 'nesciunt', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aut', + * 'non', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'molestiae', - * ); + * const response = await client.smartLinks.listFans('sit'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'blanditiis', + * 'occaecati', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('cupiditate'); + * await client.smartLinks.retrieveCohortArps('consectetur'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'accusamus', + * 'consectetur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9e605c1a..c4aa0882 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( - * 'dolorem', + * '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('dolorem', { + * 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 1c044c2d..8ae889fa 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( - * 'ea', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ea', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('corporis', { + * 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( - * 'dolore', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f42ca37f..71fe5b98 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('et', { + * const trialLink = await client.trialLinks.retrieve('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'magni', + * 'maiores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sunt', { + * await client.trialLinks.retrieveCohortArps('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'magnam', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0474b9d1..951efaa6 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: 'jile' }, + * { name: 'abykovvfeteq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a2da2466..2c860f24 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('facere'); 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 0e2a20d0..a6de1621 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: 'animi', - auth_type: 'email_password', - cookies: 'temporibus', + auth_id: 'est', + auth_type: 'raw_data', + cookies: 'illum', customProxy: { host: 'proxy.example.com', - password: 'e?J34`nTd,!i"y', + password: '!idjqr^*mIS~O!3', port: 8080, - username: 'sit', + username: 'temporibus', }, - email: 'trever05@example.org', + email: 'ejaskolski@example.org', force_connect: false, - name: 'sit', - password: '"NgX$wz=HAN', - proxyCountry: 'us', - user_agent: 'velit', - xbc: 'beatae', + name: 'velit', + password: 'p}=irJ!S$6p~*E:]`]oN', + proxyCountry: 'uk', + user_agent: 'numquam', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5de74c35..086a44ab 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('accusamus', { + 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('accusamus', { + 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 5848ba09..157f995e 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('pariatur', { + const responsePromise = client.media.vault.lists.media.add('voluptatem', { 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('pariatur', { + const response = await client.media.vault.lists.media.add('voluptatem', { 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('pariatur', { + const responsePromise = client.media.vault.lists.media.remove('voluptatem', { 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('pariatur', { + const response = await client.media.vault.lists.media.remove('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 29c06021..548a48cb 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('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('molestias', { + 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('molestias', { 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('molestias', { + 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 9bf5999b..ad49ad2e 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 8e5b0566..fd74b68f 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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 d37202b6..fca31d04 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: ['rzwjjfyr'] }, + filter: { tags: ['esx'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatem'); + const responsePromise = client.smartLinks.listClicks('nesciunt'); 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( - 'voluptatem', + 'nesciunt', { 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('aut'); + const responsePromise = client.smartLinks.listConversions('non'); 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( - 'aut', + 'non', { 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('molestiae'); + const responsePromise = client.smartLinks.listFans('sit'); 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( - 'molestiae', + 'sit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('blanditiis'); + const responsePromise = client.smartLinks.listSpenders('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'blanditiis', + 'occaecati', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('cupiditate'); + const responsePromise = client.smartLinks.retrieveCohortArps('consectetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'cupiditate', + 'consectetur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('accusamus'); + const responsePromise = client.smartLinks.retrieveStats('consectetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'accusamus', + 'consectetur', { 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 586fbb73..11dfc5bc 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: 'nrdsbga', tags: ['oxttoxbtnxwztdpmlvxu'] }, + filter: { search: 'nfoczodnpekllp', tags: ['zsgnkqekaxbiyxmsauzbvuohn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wjlfyyiwnzdblcmgvrugldkwz', tags: ['xe'] }, + filter: { search: 'nzmeq', tags: ['yfxdnksreej'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'phmcqmrvafnquvcofytgxd', - tags: ['hghsqzkelvkgbxgxiyj'], + search: 'tyfuckkkyyyqgfktt', + tags: ['prxoznabhwrecydv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ljutvxbiwepowrf', - tags: ['gwftakjrpizrddvhj'], + search: 'ascakqgdro', + tags: ['yzokcbvyklbxcsohp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5c3f89bf..bdf3e67c 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('dolorem', { + 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('dolorem', { + 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('dolorem', { + 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('dolorem', { + 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 e642e403..68cc21b7 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('ea', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ea', { 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; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ea', { 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('corporis', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('corporis', { + const response = await client.trackingLinks.getCohortArps('harum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dolore', { + const response = await client.trackingLinks.getStats('eum', { 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 211a8f36..399b9b19 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('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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('magni', { + const responsePromise = client.trialLinks.listSubscribers('maiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('magni', { + const response = await client.trialLinks.listSubscribers('maiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sunt', { + const response = await client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('magnam', { + const response = await client.trialLinks.retrieveStats('quod', { 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 4e5da3a4..1e5d899e 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: 'jile' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'abykovvfeteq' }); 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: 'jile' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'abykovvfeteq' }); }); // Mock server tests are disabled From fa1a596d5423fdb21a8d8ed08f7a3c0fe2fe9e5b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:12:37 +0000 Subject: [PATCH 215/309] 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/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 | 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 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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 ++-- 27 files changed, 112 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c89b128..32142ff8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7c98fc095cb32510deb3d4cd9aa224171d93cf460e9463eaf197fe2f3f19cff8.yml -openapi_spec_hash: dc682bf7cc4a4368874fe6191fd66287 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b8aa3dc8ecdb7abf50457c39f0ea5f32393832702742ac62df27924edd929acd.yml +openapi_spec_hash: 99c1fa667a4dabaf3eb6d8bb8c874536 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 21770fad..970b646a 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('facere'); + * const response = await client.accounts.disconnect('amet'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 983ec14b..e54cee38 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( - * 'voluptatem', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66286110..4e8e694d 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( - * 'voluptatem', + * '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( - * 'voluptatem', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..a47b35cf 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( + * 'atque', + * { + * 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('ut', { + * const comments = await client.posts.comments.list('atque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 41feb4c0..c9a094cf 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 de2b7ebb..d8e7ccdc 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( - * 'nesciunt', - * ); + * const response = await client.smartLinks.listClicks('quam'); * ``` */ listClicks( @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sit'); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'occaecati', + * 'possimus', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consectetur'); + * await client.smartLinks.retrieveCohortArps('eveniet'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consectetur', + * 'nihil', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c4aa0882..5f1e8eb5 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', + * 'rem', * { * 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('rem', { * 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 8ae889fa..552527f9 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', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('harum', { + * await client.trackingLinks.getCohortArps('eaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eum', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 71fe5b98..05a4853d 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('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'mollitia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'mollitia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'maiores', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sit', { + * await client.trialLinks.retrieveCohortArps('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quod', + * 'minus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 951efaa6..aa490e49 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: 'abykovvfeteq' }, + * { name: 'gayvcxm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2c860f24..06f068cd 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('facere'); + const responsePromise = client.accounts.disconnect('amet'); 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 a6de1621..1b9c2d52 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: 'raw_data', - cookies: 'illum', + auth_id: 'odio', + auth_type: 'email_password', + cookies: 'adipisci', customProxy: { host: 'proxy.example.com', - password: '!idjqr^*mIS~O!3', + password: '`{Y:~5?N6', port: 8080, - username: 'temporibus', + username: 'laborum', }, - email: 'ejaskolski@example.org', + email: 'micah.jaskolski@example.net', force_connect: false, - name: 'velit', - password: 'p}=irJ!S$6p~*E:]`]oN', - proxyCountry: 'uk', - user_agent: 'numquam', - xbc: 'et', + name: 'sed', + password: 'm?5FQ(', + proxyCountry: 'us', + user_agent: 'fuga', + xbc: 'enim', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 086a44ab..f1e0f255 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('labore', { 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('labore', { 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 157f995e..7562fa51 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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 694c42e4..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..748af78d 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('atque', { 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('atque', { 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('atque', { 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('atque', { 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 fd74b68f..e2edc676 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 c1510622..b643af69 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 fca31d04..dd5556b0 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: ['esx'] }, + filter: { tags: ['ansbbaeywmpsm'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nesciunt'); + const responsePromise = client.smartLinks.listClicks('quam'); 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( - 'nesciunt', + 'quam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('sit'); + 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( - 'sit', + 'est', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('occaecati'); + const responsePromise = client.smartLinks.listSpenders('possimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'occaecati', + 'possimus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consectetur'); + const responsePromise = client.smartLinks.retrieveCohortArps('eveniet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'eveniet', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consectetur'); + const responsePromise = client.smartLinks.retrieveStats('nihil'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'consectetur', + 'nihil', { 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 11dfc5bc..5fce4b2f 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: 'nfoczodnpekllp', tags: ['zsgnkqekaxbiyxmsauzbvuohn'] }, + filter: { search: 'p', tags: ['rbaxmgtthaj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nzmeq', tags: ['yfxdnksreej'] }, + filter: { search: 'pygmoevmi', tags: ['uzqgldgcjdm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'tyfuckkkyyyqgfktt', - tags: ['prxoznabhwrecydv'], + include_smart_links: true, + search: 'xagdioeikvz', + tags: ['sy'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ascakqgdro', - tags: ['yzokcbvyklbxcsohp'], + include_smart_links: false, + search: 'rvh', + tags: ['xiktjfr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdf3e67c..ff92fa33 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('rem', { 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('rem', { 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('rem', { 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('rem', { 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 68cc21b7..d3dbb545 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('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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('voluptates', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('eaque', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('eum', { + const response = await client.trackingLinks.getStats('cumque', { 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 399b9b19..247bef30 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('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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('maiores', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('maiores', { + const response = await client.trialLinks.listSubscribers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sit', { 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; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sit', { + const response = await client.trialLinks.retrieveCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quod', { + const response = await client.trialLinks.retrieveStats('minus', { 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 1e5d899e..8fdb9145 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: 'abykovvfeteq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gayvcxm' }); 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: 'abykovvfeteq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gayvcxm' }); }); // Mock server tests are disabled From 580fdf8dc64588806a999891dd725c2a85b294d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 21:12:31 +0000 Subject: [PATCH 216/309] 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/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 | 18 ++++++------- 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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 107 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 32142ff8..da5df7c1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b8aa3dc8ecdb7abf50457c39f0ea5f32393832702742ac62df27924edd929acd.yml -openapi_spec_hash: 99c1fa667a4dabaf3eb6d8bb8c874536 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6da1904c4307508964dcc9f4cced7299a06a93982eceb54f02779ad5f1601f48.yml +openapi_spec_hash: 4cccfe7876171811f8b719a203d45740 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 970b646a..4838accc 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('amet'); + * 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 e54cee38..823e00ca 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( - * 'labore', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4e8e694d..2f38ae64 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', + * '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( - * 'id', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a47b35cf..1080f923 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( - * 'atque', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ipsa', { + * 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('atque', { + * const comments = await client.posts.comments.list('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 c9a094cf..41feb4c0 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 d8e7ccdc..cd7f97fc 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('at'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'non', + * 'repellat', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'possimus', + * 'accusantium', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eveniet'); + * await client.smartLinks.retrieveCohortArps('sequi'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nihil', + * 'omnis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 5f1e8eb5..a9c614a7 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( - * 'rem', + * '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('rem', { + * 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 552527f9..ced4e1d9 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', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptates', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eaque', { + * 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( - * 'cumque', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 05a4853d..af573c33 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( - * 'mollitia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quod', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'mollitia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quod', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('possimus', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'minus', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index aa490e49..fdb9571e 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: 'gayvcxm' }, + * { name: 'csrvcnoyqczdsjbtnqcq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 06f068cd..ee79bf41 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('amet'); + 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 1b9c2d52..3af2a9d6 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: 'odio', - auth_type: 'email_password', - cookies: 'adipisci', + auth_id: 'assumenda', + auth_type: 'mobile_app', + cookies: 'perspiciatis', customProxy: { host: 'proxy.example.com', - password: '`{Y:~5?N6', + password: 'ycWDfIxza', port: 8080, - username: 'laborum', + username: 'voluptatem', }, - email: 'micah.jaskolski@example.net', + email: 'idicki@example.org', force_connect: false, - name: 'sed', - password: 'm?5FQ(', - proxyCountry: 'us', - user_agent: 'fuga', - xbc: 'enim', + name: 'ullam', + password: 'LE.coe0ozQ', + proxyCountry: 'gb', + user_agent: 'dolor', + 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 f1e0f255..50105978 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('labore', { + const responsePromise = client.engagement.messages.getMessageBuyers('dolores', { 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('labore', { + const response = await client.engagement.messages.getMessageBuyers('dolores', { 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 7562fa51..19155ed9 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('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('id', { + 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('id', { + 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('id', { + 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 69b39e44..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 748af78d..d12b69cd 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('atque', { + const responsePromise = client.posts.comments.create('ipsa', { 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('atque', { + const response = await client.posts.comments.create('ipsa', { 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('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ipsa', { 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('atque', { + const response = await client.posts.comments.list('ipsa', { 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 e2edc676..fd74b68f 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 b643af69..c1510622 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index dd5556b0..8116ff60 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: ['ansbbaeywmpsm'] }, + filter: { tags: ['psgtnwkwcqlwvuxcev'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quam'); + const responsePromise = client.smartLinks.listClicks('at'); 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( - 'quam', + 'at', { 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('non'); + const responsePromise = client.smartLinks.listConversions('repellat'); 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( - 'non', + 'repellat', { 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('est'); + 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( - 'est', + 'et', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('possimus'); + const responsePromise = client.smartLinks.listSpenders('accusantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'possimus', + 'accusantium', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eveniet'); + const responsePromise = client.smartLinks.retrieveCohortArps('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'eveniet', + 'sequi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nihil'); + const responsePromise = client.smartLinks.retrieveStats('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'nihil', + '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 5fce4b2f..94bf4b09 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: 'p', tags: ['rbaxmgtthaj'] }, + filter: { search: 'ukhpvjcg', tags: ['fe'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pygmoevmi', tags: ['uzqgldgcjdm'] }, + filter: { search: 'kxevwbmmsclzulzaop', tags: ['idkezxvsqiestnafk'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xagdioeikvz', - tags: ['sy'], + include_smart_links: false, + search: 'rvnaykydejuljkqtx', + tags: ['rfh'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rvh', - tags: ['xiktjfr'], + search: 'wxqzhwpjolkccbdkrmabqrr', + tags: ['bndiyeghlhnwhwqxgkwojhbzg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index ff92fa33..fca45b0b 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('rem', { + 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('rem', { + 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('rem', { + 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('rem', { + 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 d3dbb545..81014310 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('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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eaque', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('eaque', { + const response = await client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('cumque', { + const response = await client.trackingLinks.getStats('harum', { 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 247bef30..6e2bd900 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('quod', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -152,9 +152,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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('aspernatur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('minus', { + const response = await client.trialLinks.retrieveStats('aspernatur', { 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 8fdb9145..3cf0ef9b 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: 'gayvcxm' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'csrvcnoyqczdsjbtnqcq' }); 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: 'gayvcxm' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'csrvcnoyqczdsjbtnqcq' }); }); // Mock server tests are disabled From e5bdf55f24d1119c700471c6c1a86e1796d4cb99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:12:35 +0000 Subject: [PATCH 217/309] 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 +-- 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 | 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 +++--- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 4 +-- 25 files changed, 106 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index da5df7c1..74d0cfe7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6da1904c4307508964dcc9f4cced7299a06a93982eceb54f02779ad5f1601f48.yml -openapi_spec_hash: 4cccfe7876171811f8b719a203d45740 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3253a6d3d8baf9d78a608ca04480fbb714550e48df0ccbe77fdfd94f2aea3e14.yml +openapi_spec_hash: a4e2cf53474c029cc0c3d00922140766 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838accc..b1810840 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( + * 'ratione', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 823e00ca..69754db2 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( - * 'dolores', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..febcb2b4 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', + * '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( - * 'ut', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1080f923..ca82093e 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('ipsa', { + * 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('ipsa', { + * const comments = await client.posts.comments.list('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index cd7f97fc..d66c6701 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('at'); + * const response = await client.smartLinks.listClicks( + * 'rerum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'repellat', + * 'sed', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('vel'); * ``` */ listFans( @@ -127,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'accusantium', - * ); + * const response = await client.smartLinks.listSpenders('ut'); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sequi'); + * await client.smartLinks.retrieveCohortArps('doloribus'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'omnis', + * 'sed', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..e8661886 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', + * 'aut', * { * 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('aut', { * 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 ced4e1d9..e56129a5 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', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'harum', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index af573c33..3bba4e89 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('quod', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'voluptatum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quod', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptatum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'aliquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aspernatur', + * 'cum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fdb9571e..defa5eb0 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: 'csrvcnoyqczdsjbtnqcq' }, + * { name: 'pndccqojudhsazc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf41..cc97b828 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('ratione'); 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 3af2a9d6..26f64e55 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: 'assumenda', - auth_type: 'mobile_app', - cookies: 'perspiciatis', + auth_id: 'enim', + auth_type: 'email_password', + cookies: 'deleniti', customProxy: { host: 'proxy.example.com', - password: 'ycWDfIxza', + password: 'medwd[ocbn~\\G', port: 8080, - username: 'voluptatem', + username: 'architecto', }, - email: 'idicki@example.org', - force_connect: false, - name: 'ullam', - password: 'LE.coe0ozQ', + email: 'bennie18@example.org', + force_connect: true, + name: 'et', + password: '`8FRTV', proxyCountry: 'gb', - user_agent: 'dolor', - xbc: 'et', + user_agent: 'nisi', + xbc: 'magni', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 50105978..b34ff1b6 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('dolores', { + const responsePromise = client.engagement.messages.getMessageBuyers('reprehenderit', { 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('dolores', { + const response = await client.engagement.messages.getMessageBuyers('reprehenderit', { 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 19155ed9..2e9728e9 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('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('ut', { + 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('ut', { + 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('ut', { + 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 e56040c2..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d12b69cd..548a48cb 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('ipsa', { + 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('ipsa', { + 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('ipsa', { 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('ipsa', { + const response = await client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 8116ff60..c6d25e45 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: ['psgtnwkwcqlwvuxcev'] }, + filter: { tags: ['tbohjrttrnbmhfglptupsg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('at'); + const responsePromise = client.smartLinks.listClicks('rerum'); 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( - 'at', + 'rerum', { 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('repellat'); + const responsePromise = client.smartLinks.listConversions('sed'); 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( - 'repellat', + 'sed', { 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('vel'); 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', + 'vel', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('accusantium'); + const responsePromise = client.smartLinks.listSpenders('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'accusantium', + 'ut', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sequi'); + const responsePromise = client.smartLinks.retrieveCohortArps('doloribus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'sequi', + 'doloribus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('omnis'); + const responsePromise = client.smartLinks.retrieveStats('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'sed', { 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 94bf4b09..a238339f 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: 'ukhpvjcg', tags: ['fe'] }, + filter: { search: 'ykata', tags: ['ardlzubhoqnmgmrrlk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kxevwbmmsclzulzaop', tags: ['idkezxvsqiestnafk'] }, + filter: { search: 'dasokq', tags: ['vemkxu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rvnaykydejuljkqtx', - tags: ['rfh'], + search: 'atjro', + tags: ['matxc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'wxqzhwpjolkccbdkrmabqrr', - tags: ['bndiyeghlhnwhwqxgkwojhbzg'], + search: 'dp', + tags: ['mkqcqi'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..013f5fda 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('aut', { 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('aut', { 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('aut', { 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('aut', { 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 81014310..ae4f3245 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('autem', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('autem', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('harum', { + const response = await client.trackingLinks.getStats('praesentium', { 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 6e2bd900..1f433c87 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptatum', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aspernatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('cum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aspernatur', { + const response = await client.trialLinks.retrieveStats('cum', { 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 3cf0ef9b..c06c03df 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: 'csrvcnoyqczdsjbtnqcq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pndccqojudhsazc' }); 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: 'csrvcnoyqczdsjbtnqcq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pndccqojudhsazc' }); }); // Mock server tests are disabled From 56b70f412fbc16fd91626258a24337328a2424a9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:12:33 +0000 Subject: [PATCH 218/309] 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 | 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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 +-- 28 files changed, 120 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 74d0cfe7..534b8305 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3253a6d3d8baf9d78a608ca04480fbb714550e48df0ccbe77fdfd94f2aea3e14.yml -openapi_spec_hash: a4e2cf53474c029cc0c3d00922140766 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd185dcd3e029848734fadcf0fb5188ef04ca2e3c03ac8cf3e9ac0836e381b91.yml +openapi_spec_hash: 764042539e8ad2552aad1095dd8aa57e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index b1810840..3c4bd801 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( - * 'ratione', - * ); + * const response = await client.accounts.disconnect('natus'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 69754db2..20e7e193 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( - * 'reprehenderit', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b4..af9ad358 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', + * '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( - * 'quia', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..27b45cac 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( + * 'expedita', + * { + * 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( + * 'expedita', + * { 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 e20f70d1..a9767818 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 41feb4c0..c9a094cf 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 d66c6701..66e48906 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', + * 'libero', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sed', + * 'quia', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('vel'); + * const response = await client.smartLinks.listFans('quo'); * ``` */ listFans( @@ -129,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ut'); + * const response = await client.smartLinks.listSpenders( + * 'accusamus', + * ); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('doloribus'); + * await client.smartLinks.retrieveCohortArps('aperiam'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sed', + * 'excepturi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..40b1fed8 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( - * 'aut', + * 'officiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('officiis', { * 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 e56129a5..aba087e2 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( - * 'autem', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'autem', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('omnis', { + * await client.trackingLinks.getCohortArps('voluptatum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'praesentium', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3bba4e89..0521adb2 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( - * 'voluptatum', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptatum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('optio', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aliquam', + * 'sequi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sit', { + * await client.trialLinks.retrieveCohortArps('saepe', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'cum', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index defa5eb0..ea54baa0 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: 'pndccqojudhsazc' }, + * { name: 'aackdsxerdq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index cc97b828..7c39ae68 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('ratione'); + const responsePromise = client.accounts.disconnect('natus'); 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 26f64e55..d35dd10c 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: 'enim', - auth_type: 'email_password', - cookies: 'deleniti', + auth_id: 'quia', + auth_type: 'raw_data', + cookies: 'qui', customProxy: { host: 'proxy.example.com', - password: 'medwd[ocbn~\\G', + password: 'kAa/?E,Vq$XqM2uN7', port: 8080, - username: 'architecto', + username: 'distinctio', }, - email: 'bennie18@example.org', - force_connect: true, - name: 'et', - password: '`8FRTV', - proxyCountry: 'gb', - user_agent: 'nisi', - xbc: 'magni', + email: 'weissnat.marian@example.org', + force_connect: false, + name: 'facere', + password: 'RPoFyhZ!2UWUJ_\\<#Hq', + proxyCountry: 'uk', + user_agent: 'reprehenderit', + xbc: 'est', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b34ff1b6..784164d2 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('reprehenderit', { + 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('reprehenderit', { + 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 2e9728e9..e6c1db3e 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('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('quia', { + 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('quia', { + 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('quia', { + 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 69b39e44..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..fc9e066a 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('expedita', { 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('expedita', { 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('expedita', { 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('expedita', { 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 fd74b68f..4ec8acc7 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 c1510622..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c6d25e45..173b58dd 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: ['tbohjrttrnbmhfglptupsg'] }, + filter: { tags: ['vpkjmeshl'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('rerum'); + const responsePromise = client.smartLinks.listClicks('libero'); 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( - 'rerum', + 'libero', { 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('sed'); + const responsePromise = client.smartLinks.listConversions('quia'); 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( - 'sed', + 'quia', { 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('vel'); + const responsePromise = client.smartLinks.listFans('quo'); 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( - 'vel', + 'quo', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ut'); + const responsePromise = client.smartLinks.listSpenders('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'accusamus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('doloribus'); + const responsePromise = client.smartLinks.retrieveCohortArps('aperiam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'doloribus', + 'aperiam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sed'); + const responsePromise = client.smartLinks.retrieveStats('excepturi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'sed', + 'excepturi', { 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 a238339f..e5884272 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: 'ykata', tags: ['ardlzubhoqnmgmrrlk'] }, + filter: { search: 'hglzpcyywbblpipcfypu', tags: ['cllhdpwq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dasokq', tags: ['vemkxu'] }, + filter: { search: 'bcfawfl', tags: ['sai'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'atjro', - tags: ['matxc'], + include_smart_links: true, + search: 'xwgnxdcgodfaluwpybk', + tags: ['mqnlxghiuhlffdmlamthhy'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'dp', - tags: ['mkqcqi'], + include_smart_links: true, + search: 'zuabfhoqcuomesw', + tags: ['oskuelrpdkyt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..14bf7d90 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('aut', { + const responsePromise = client.stories.highlights.addStory('officiis', { 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('aut', { + const response = await client.stories.highlights.addStory('officiis', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('officiis', { 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('aut', { + const response = await client.stories.highlights.removeStory('officiis', { 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 ae4f3245..e7f28191 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('autem', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('autem', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('autem', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('voluptatum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('praesentium', { + const response = await client.trackingLinks.getStats('atque', { 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 1f433c87..ad97940b 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('voluptatum', { 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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptatum', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('aliquam', { + const responsePromise = client.trialLinks.listSubscribers('sequi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('aliquam', { + const response = await client.trialLinks.listSubscribers('sequi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('saepe', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sit', { + const response = await client.trialLinks.retrieveCohortArps('saepe', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('cum', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('cum', { + 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 c06c03df..77e4bb1d 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: 'pndccqojudhsazc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aackdsxerdq' }); 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: 'pndccqojudhsazc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'aackdsxerdq' }); }); // Mock server tests are disabled From af3ad4c1ebacff3450d4f5736a8ff8d9ae5bc00f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:12:34 +0000 Subject: [PATCH 219/309] 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 | 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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 24 ++++++++++------- .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 107 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 534b8305..1be26674 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fd185dcd3e029848734fadcf0fb5188ef04ca2e3c03ac8cf3e9ac0836e381b91.yml -openapi_spec_hash: 764042539e8ad2552aad1095dd8aa57e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49b6717c8c51b0cd59e6b7eae808c6f52be34b403bac095334817be5d2587ab.yml +openapi_spec_hash: 559a822a4edd34a029724b95ac099b19 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c4bd801..0d924e6e 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('natus'); + * const response = await client.accounts.disconnect('iure'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 20e7e193..c295f4b1 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( - * 'porro', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..8d8813e6 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', + * '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( - * 'et', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 27b45cac..b5336b25 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( - * 'expedita', + * 'dolorem', * { * 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( - * 'expedita', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 c9a094cf..2b04cbb2 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 66e48906..0c8fd073 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( - * 'libero', - * ); + * const response = await client.smartLinks.listClicks('est'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quia', + * 'delectus', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quo'); + * const response = await client.smartLinks.listFans('rem'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'accusamus', + * 'odit', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aperiam'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'excepturi', + * 'repellat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 40b1fed8..cd409b55 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( - * 'officiis', + * 'nobis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('officiis', { + * await client.stories.highlights.removeStory('nobis', { * 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 aba087e2..0651eed8 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', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'unde', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptatum', { + * await client.trackingLinks.getCohortArps('illo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'atque', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0521adb2..f02a3d96 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('quod', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('optio', { + * const trialLink = await client.trialLinks.delete('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sequi', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('saepe', { + * await client.trialLinks.retrieveCohortArps('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'id', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ea54baa0..14d6363b 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: 'aackdsxerdq' }, + * { name: 'r' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7c39ae68..3f5a0db6 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('natus'); + const responsePromise = client.accounts.disconnect('iure'); 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 d35dd10c..997b00a1 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -63,21 +63,21 @@ describe('resource authenticate', () => { client.authenticate.start( { auth_id: 'quia', - auth_type: 'raw_data', - cookies: 'qui', + auth_type: 'mobile_app', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: 'kAa/?E,Vq$XqM2uN7', + password: 'LB { // 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('voluptas', { 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('voluptas', { 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 e6c1db3e..6eea7db8 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('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('et', { + 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('et', { + 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('et', { + 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 e769f5c8..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index fc9e066a..7b3f804a 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('expedita', { + const responsePromise = client.posts.comments.create('dolorem', { 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('expedita', { + const response = await client.posts.comments.create('dolorem', { 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('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolorem', { 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('expedita', { + const response = await client.posts.comments.list('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..e2edc676 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 b643af69..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 173b58dd..54dd4171 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: ['vpkjmeshl'] }, + filter: { tags: ['zzgybzuvsf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('libero'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'libero', + 'est', { 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('quia'); + const responsePromise = client.smartLinks.listConversions('delectus'); 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( - 'quia', + 'delectus', { 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('quo'); + const responsePromise = client.smartLinks.listFans('rem'); 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( - 'quo', + 'rem', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('accusamus'); + const responsePromise = client.smartLinks.listSpenders('odit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'accusamus', + 'odit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aperiam'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'aperiam', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('excepturi'); + const responsePromise = client.smartLinks.retrieveStats('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'excepturi', + '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 e5884272..cd35f1f7 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: 'hglzpcyywbblpipcfypu', tags: ['cllhdpwq'] }, + filter: { search: 'quvhkmzqkmbmq', tags: ['cgqbfmokjsarwyhg'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bcfawfl', tags: ['sai'] }, + filter: { search: 'infylebnunldcztbkl', tags: ['ahr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xwgnxdcgodfaluwpybk', - tags: ['mqnlxghiuhlffdmlamthhy'], + include_smart_links: false, + search: 'smjek', + tags: ['z'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'zuabfhoqcuomesw', - tags: ['oskuelrpdkyt'], + search: 'i', + tags: ['rxovectaqzfctspjlxprkse'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 14bf7d90..2327f11e 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('officiis', { + 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('officiis', { + 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('officiis', { + 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('officiis', { + 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 e7f28191..ac7ebc44 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('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('necessitatibus', { + 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('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('necessitatibus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); }); // Mock server tests are disabled @@ -81,7 +85,9 @@ 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('necessitatibus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +99,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('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptatum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +116,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptatum', { + const response = await client.trackingLinks.getCohortArps('illo', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +126,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('atque', { 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; @@ -134,7 +138,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('atque', { + 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 ad97940b..5e1dcaa5 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('quod', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sequi', { + const responsePromise = client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sequi', { + const response = await client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('saepe', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('saepe', { + const response = await client.trialLinks.retrieveCohortArps('ea', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('voluptate', { 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 77e4bb1d..c6074e5d 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: 'aackdsxerdq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'r' }); 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: 'aackdsxerdq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'r' }); }); // Mock server tests are disabled From 86b81e920e43c914adbf33ef58cfd89d27a8f340 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:12:34 +0000 Subject: [PATCH 220/309] 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 | 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 | 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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 24 +++++++---------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 111 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1be26674..846fffba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49b6717c8c51b0cd59e6b7eae808c6f52be34b403bac095334817be5d2587ab.yml -openapi_spec_hash: 559a822a4edd34a029724b95ac099b19 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b99c4e51639a92cd89840429b4660a46c3893970f3a68f7630b7b507e91b4b0.yml +openapi_spec_hash: 0290856c57b56181dd2bb55e45fc0b27 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0d924e6e..d25bbb22 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('iure'); + * 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 c295f4b1..b6dc8846 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( - * 'voluptas', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8d8813e6..498021bb 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', + * '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( - * 'veritatis', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b5336b25..1e5e4ad5 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( - * 'dolorem', + * '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( - * 'dolorem', + * '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 09d6973d..e20f70d1 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 2b04cbb2..c9a094cf 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 0c8fd073..89fb5edb 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('est'); + * 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( - * 'delectus', + * 'totam', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('rem'); + * const response = await client.smartLinks.listFans('sunt'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'odit', + * 'qui', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('recusandae'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'repellat', + * 'quam', * ); * ``` */ @@ -240,7 +242,7 @@ export namespace SmartLinkCreateResponse { name?: string; - revenue?: string | null; + revenue?: string; subscribers_count?: number; diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cd409b55..27cd4271 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', + * '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('nobis', { + * 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 0651eed8..0eeb8b00 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( - * 'necessitatibus', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'necessitatibus', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('illo', { + * await client.trackingLinks.getCohortArps('dolorem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptates', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f02a3d96..3d78ff42 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('quod', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'rerum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quod', { + * const trialLink = await client.trialLinks.delete('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'dignissimos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ea', { + * await client.trialLinks.retrieveCohortArps('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptate', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 14d6363b..0d64d59a 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: 'r' }, + * { name: 'eriklczcla' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3f5a0db6..6877d23c 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('iure'); + 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 997b00a1..1386f56b 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: 'quia', - auth_type: 'mobile_app', - cookies: 'ut', + auth_id: 'est', + auth_type: 'raw_data', + cookies: 'suscipit', customProxy: { host: 'proxy.example.com', - password: 'LB { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('voluptas', { + 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('voluptas', { + 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 6eea7db8..7b876bd9 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('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('veritatis', { + 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('veritatis', { + 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('veritatis', { + 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 70f616cd..69b39e44 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 7b3f804a..8aee5efa 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('dolorem', { + 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('dolorem', { + 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('dolorem', { 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('dolorem', { + 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 9bf5999b..ad49ad2e 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 e2edc676..fd74b68f 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 96d399de..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 54dd4171..e6755fc9 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: ['zzgybzuvsf'] }, + filter: { tags: ['u'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('laudantium'); 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( - 'est', + 'laudantium', { 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('delectus'); + const responsePromise = client.smartLinks.listConversions('totam'); 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( - 'delectus', + 'totam', { 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('rem'); + const responsePromise = client.smartLinks.listFans('sunt'); 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( - 'rem', + 'sunt', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('odit'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('recusandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'recusandae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('repellat'); + const responsePromise = client.smartLinks.retrieveStats('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'quam', { 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 cd35f1f7..f2e8dc3c 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: 'quvhkmzqkmbmq', tags: ['cgqbfmokjsarwyhg'] }, + filter: { search: 'qigbaezppwaclarafmv', tags: ['xxgdosh'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'infylebnunldcztbkl', tags: ['ahr'] }, + filter: { search: 'gz', tags: ['agqocxngk'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'smjek', - tags: ['z'], + include_smart_links: true, + search: 'swniczypnzgjtbmw', + tags: ['fkxxmomptcynxhhvjqqrvzhf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'i', - tags: ['rxovectaqzfctspjlxprkse'], + include_smart_links: false, + search: 'byfmtbybklxl', + tags: ['aneszdz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2327f11e..875fdcfa 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('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('nobis', { + 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('nobis', { + 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('nobis', { + 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 ac7ebc44..09b42197 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('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.retrieve('illo', { 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('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const response = await client.trackingLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -85,9 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -99,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('dolorem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -116,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('illo', { + const response = await client.trackingLinks.getCohortArps('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -126,7 +122,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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -138,7 +134,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('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 5e1dcaa5..36d1d485 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('quod', { 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('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quod', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ea', { + const response = await client.trialLinks.retrieveCohortArps('at', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptate', { + const response = await client.trialLinks.retrieveStats('rerum', { 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 c6074e5d..dcdec028 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: 'r' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eriklczcla' }); 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: 'r' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'eriklczcla' }); }); // Mock server tests are disabled From deed586cf07f491301b374e8e13ee7c2eb72c3c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:12:42 +0000 Subject: [PATCH 221/309] 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 | 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 | 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 | 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 ++-- 29 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 846fffba..a1ad28ba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b99c4e51639a92cd89840429b4660a46c3893970f3a68f7630b7b507e91b4b0.yml -openapi_spec_hash: 0290856c57b56181dd2bb55e45fc0b27 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59066bb8e85159d81a58c0f9d41d712bcc69e6615138b7f5b4daeef6918994c.yml +openapi_spec_hash: e357a369a68b11bca1e506a833b19786 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d25bbb22..67f73932 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('dolor'); + * const response = await client.accounts.disconnect( + * 'consequatur', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b6dc8846..89653296 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( - * 'facilis', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..87c78436 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', + * 'deserunt', * { 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', + * 'deserunt', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad5..3d3d1a80 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', + * 'eligendi', * { * 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', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 c9a094cf..a84ff073 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 89fb5edb..5318e382 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('est'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'totam', + * 'non', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sunt'); + * const response = await client.smartLinks.listFans( + * 'consequatur', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'enim', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('recusandae'); + * await client.smartLinks.retrieveCohortArps('quam'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quam', + * 'sequi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..4fd90847 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', + * 'nihil', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { + * await client.stories.highlights.removeStory('nihil', { * 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 0eeb8b00..e5ccd2ee 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( - * 'illo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'illo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolorem', { + * await client.trackingLinks.getCohortArps('animi', { * 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('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3d78ff42..6007e148 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( - * 'rerum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('vel', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('rerum', { + * const trialLink = await client.trialLinks.delete('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dignissimos', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('at', { + * await client.trialLinks.retrieveCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0d64d59a..291368ca 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: 'eriklczcla' }, + * { name: 'wtlncilabgfoys' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6877d23c..33d4dda5 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('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 1386f56b..2ac4951f 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: 'raw_data', - cookies: 'suscipit', + auth_id: 'numquam', + auth_type: 'mobile_app', + cookies: 'excepturi', customProxy: { host: 'proxy.example.com', - password: 't3dEq{y)=a6&h?', + password: ']v`~UOqaIs`4FK?]', port: 8080, - username: 'nihil', + username: 'qui', }, - email: 'jasen84@example.org', - force_connect: true, - name: 'ea', - password: 'rne?KT', - proxyCountry: 'us', - user_agent: 'tempora', - xbc: 'dicta', + email: 'spadberg@example.com', + force_connect: false, + name: 'repellat', + password: '^XM$kG2l/vos{', + proxyCountry: 'uk', + user_agent: 'cupiditate', + xbc: 'at', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 01499889..16f3d965 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('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('facilis', { + 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 7b876bd9..1ad8dd98 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('deserunt', { 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('deserunt', { 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('deserunt', { 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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..14dcb2e9 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 8aee5efa..2bf8f4c9 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('eligendi', { 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('eligendi', { 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('eligendi', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..e2edc676 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 b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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 e6755fc9..4c7d7e23 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('laudantium'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'laudantium', + 'est', { 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('totam'); + const responsePromise = client.smartLinks.listConversions('non'); 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( - 'totam', + 'non', { 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('sunt'); + const responsePromise = client.smartLinks.listFans('consequatur'); 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( - 'sunt', + 'consequatur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'enim', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('recusandae'); + const responsePromise = client.smartLinks.retrieveCohortArps('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'recusandae', + 'quam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quam'); + const responsePromise = client.smartLinks.retrieveStats('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quam', + 'sequi', { 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 f2e8dc3c..eb76dd69 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: 'qigbaezppwaclarafmv', tags: ['xxgdosh'] }, + filter: { search: 'fzrksitnuv', tags: ['hgxrchsxnkramlzlah'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gz', tags: ['agqocxngk'] }, + filter: { search: 'mishfykivaxfka', tags: ['dgmjwgygrmxycp'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'swniczypnzgjtbmw', - tags: ['fkxxmomptcynxhhvjqqrvzhf'], + search: 'a', + tags: ['fbuzhigacsdwqcw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'byfmtbybklxl', - tags: ['aneszdz'], + search: 'addhuqheefkiitwvqctary', + tags: ['toxpbmjhfyjsvfebmcrqypmb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..3c69ca1a 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('nihil', { 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('nihil', { 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('nihil', { 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('nihil', { 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 09b42197..6b5ae5eb 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('aut', { 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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolorem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('dolorem', { + const response = await client.trackingLinks.getCohortArps('animi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('id', { 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 36d1d485..5346ce15 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('dignissimos', { + const responsePromise = client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('dignissimos', { + const response = await client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('dolores', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('at', { + const response = await client.trialLinks.retrieveCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('rerum', { + const response = await client.trialLinks.retrieveStats('dolores', { 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 dcdec028..49c3b480 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: 'eriklczcla' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wtlncilabgfoys' }); 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: 'eriklczcla' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wtlncilabgfoys' }); }); // Mock server tests are disabled From 9f26b20b4f33f4614f5f1d93be7af8d73db1aa19 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 14:12:34 +0000 Subject: [PATCH 222/309] 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 ++-- 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 | 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 +++---- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 ++++++++--------- 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 ++-- 23 files changed, 106 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index a1ad28ba..0d79350a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e59066bb8e85159d81a58c0f9d41d712bcc69e6615138b7f5b4daeef6918994c.yml -openapi_spec_hash: e357a369a68b11bca1e506a833b19786 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74bb49de83f5f1858c5acc52dae4d1b013631c31577f723654bf55acfd862978.yml +openapi_spec_hash: c44c33499ac6d9987934b2c6821081f1 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 67f73932..4838accc 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('qui'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 89653296..08a451d2 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', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 87c78436..228dd2be 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( - * 'deserunt', + * 'inventore', * { 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( - * 'deserunt', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3d3d1a80..295278c6 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( - * 'eligendi', + * 'dolores', * { * 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( - * 'eligendi', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 5318e382..073cc615 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('est'); + * const response = await client.smartLinks.listClicks( + * 'vitae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'non', + * 'minus', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequatur', - * ); + * 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( - * 'enim', + * 'iusto', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quam'); + * await client.smartLinks.retrieveCohortArps('quis'); * ``` */ retrieveCohortArps( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 4fd90847..43411102 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( - * 'nihil', + * 'voluptatum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nihil', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'voluptatum', + * { + * 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 e5ccd2ee..9c9b060e 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( - * 'aut', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('animi', { + * await client.trackingLinks.getCohortArps('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'est', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6007e148..25c6c578 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('vel', { + * const trialLink = await client.trialLinks.retrieve('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vel', { + * const trialLink = await client.trialLinks.delete('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolores', { + * await client.trialLinks.retrieveCohortArps('officiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolores', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 291368ca..7037870c 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: 'wtlncilabgfoys' }, + * { name: 'xkliqaeucnrgjtd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 33d4dda5..ee79bf41 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('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 2ac4951f..9f623141 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: 'numquam', - auth_type: 'mobile_app', - cookies: 'excepturi', + auth_id: 'deleniti', + auth_type: 'raw_data', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: ']v`~UOqaIs`4FK?]', + password: 'Fvgz4vGs~-vFUBE8P', port: 8080, - username: 'qui', + username: 'reiciendis', }, - email: 'spadberg@example.com', - force_connect: false, - name: 'repellat', - password: '^XM$kG2l/vos{', - proxyCountry: 'uk', - user_agent: 'cupiditate', - xbc: 'at', + email: 'hallie17@example.org', + force_connect: true, + name: 'dolores', + password: 'cbG}"]P', + proxyCountry: 'gb', + user_agent: 'voluptatibus', + 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 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 16f3d965..e9488683 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('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('quia', { + 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 1ad8dd98..52ac0d69 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('deserunt', { + const responsePromise = client.media.vault.lists.media.add('inventore', { 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('deserunt', { + const response = await client.media.vault.lists.media.add('inventore', { 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('deserunt', { + const responsePromise = client.media.vault.lists.media.remove('inventore', { 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('deserunt', { + const response = await client.media.vault.lists.media.remove('inventore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 2bf8f4c9..91e5fe0e 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('eligendi', { + const responsePromise = client.posts.comments.create('dolores', { 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('eligendi', { + const response = await client.posts.comments.create('dolores', { 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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolores', { 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('eligendi', { + const response = await client.posts.comments.list('dolores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 4c7d7e23..1fd16d21 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: ['u'] }, + filter: { tags: ['evwdfubirf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('vitae'); 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( - 'est', + 'vitae', { 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('non'); + const responsePromise = client.smartLinks.listConversions('minus'); 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( - 'non', + 'minus', { 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('consequatur'); + 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( - 'consequatur', + 'et', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('enim'); + const responsePromise = client.smartLinks.listSpenders('iusto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'iusto', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quam'); + const responsePromise = client.smartLinks.retrieveCohortArps('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'quis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index eb76dd69..6e16d240 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: 'fzrksitnuv', tags: ['hgxrchsxnkramlzlah'] }, + filter: { search: 'w', tags: ['wcluupkieqtohpjdyitnvzp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mishfykivaxfka', tags: ['dgmjwgygrmxycp'] }, + filter: { search: 'mawwventxjecbvn', tags: ['oefqvyitxtajbqksy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'a', - tags: ['fbuzhigacsdwqcw'], + include_smart_links: false, + search: 's', + tags: ['ivtycucxumpslkscgfxljv'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'addhuqheefkiitwvqctary', - tags: ['toxpbmjhfyjsvfebmcrqypmb'], + include_smart_links: true, + search: 'ixyonkprpmskvpy', + tags: ['r'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3c69ca1a..f965233d 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('nihil', { + const responsePromise = client.stories.highlights.addStory('voluptatum', { 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('nihil', { + const response = await client.stories.highlights.addStory('voluptatum', { 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('nihil', { + const responsePromise = client.stories.highlights.removeStory('voluptatum', { 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('nihil', { + const response = await client.stories.highlights.removeStory('voluptatum', { 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 6b5ae5eb..0d1368be 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('odit', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('animi', { + const response = await client.trackingLinks.getCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('id', { + const response = await client.trackingLinks.getStats('est', { 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 5346ce15..128c1ca0 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quis', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolores', { + const responsePromise = client.trialLinks.retrieveCohortArps('officiis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolores', { + const response = await client.trialLinks.retrieveCohortArps('officiis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('perspiciatis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dolores', { + const response = await client.trialLinks.retrieveStats('perspiciatis', { 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 49c3b480..02318d1e 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: 'wtlncilabgfoys' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xkliqaeucnrgjtd' }); 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: 'wtlncilabgfoys' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xkliqaeucnrgjtd' }); }); // Mock server tests are disabled From b788b3da30bf45bebfae380ea42df969e60ac239 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:12:40 +0000 Subject: [PATCH 223/309] 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 +++++-------- 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 | 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 +++--- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 +-- 25 files changed, 117 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0d79350a..e2285957 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74bb49de83f5f1858c5acc52dae4d1b013631c31577f723654bf55acfd862978.yml -openapi_spec_hash: c44c33499ac6d9987934b2c6821081f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1c495ff673113b55e9ed3bdccd0a71d5d07ae8cd83570be2d57768d8e605402b.yml +openapi_spec_hash: ac357a40d6a804424720aff7840547c2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838accc..681759cd 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( + * 'molestiae', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 08a451d2..fb08ec2e 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', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 228dd2be..6bc50831 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( - * 'inventore', + * 'explicabo', * { 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( - * 'inventore', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 295278c6..b16584fb 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( - * 'dolores', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('sit', { + * 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( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('sit', { + * 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 073cc615..b550c332 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('rem'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'minus', + * 'vitae', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans( + * 'eveniet', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'iusto', + * 'saepe', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quis'); + * await client.smartLinks.retrieveCohortArps('repellat'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sequi', + * 'sed', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 43411102..3e56b455 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( - * 'voluptatum', + * 'rerum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'voluptatum', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('rerum', { + * 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 9c9b060e..eeb1bc49 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( - * 'odit', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'odit', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('minus', { + * await client.trackingLinks.getCohortArps('maiores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'est', + * 'sunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 25c6c578..080f2861 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('quis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'facilis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'facilis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'repudiandae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('officiis', { + * await client.trialLinks.retrieveCohortArps('laudantium', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'perspiciatis', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7037870c..fbdd0f0c 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: 'xkliqaeucnrgjtd' }, + * { name: 'nbgznywsojqxpdtqlr' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf41..065535d9 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('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 9f623141..b993c8f0 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: 'raw_data', - cookies: 'ut', + auth_id: 'provident', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'Fvgz4vGs~-vFUBE8P', + password: 'CF%y.QQ,:B$$mx/F?', port: 8080, - username: 'reiciendis', + username: 'quo', }, - email: 'hallie17@example.org', - force_connect: true, - name: 'dolores', - password: 'cbG}"]P', - proxyCountry: 'gb', - user_agent: 'voluptatibus', - xbc: 'aut', + email: 'enrico75@example.com', + force_connect: false, + name: 'qui', + password: '=eHms{LjJwIa', + proxyCountry: 'uk', + user_agent: 'perspiciatis', + xbc: 'ipsa', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index e9488683..38b98b46 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('doloribus', { 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('doloribus', { 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 52ac0d69..4a8c93d9 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('inventore', { + const responsePromise = client.media.vault.lists.media.add('explicabo', { 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('inventore', { + const response = await client.media.vault.lists.media.add('explicabo', { 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('inventore', { + const responsePromise = client.media.vault.lists.media.remove('explicabo', { 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('inventore', { + const response = await client.media.vault.lists.media.remove('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91e5fe0e..22e15203 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('dolores', { + const responsePromise = client.posts.comments.create('sit', { 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('dolores', { + const response = await client.posts.comments.create('sit', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sit', { 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('dolores', { + const response = await client.posts.comments.list('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1fd16d21..f3cda5b0 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: ['evwdfubirf'] }, + filter: { tags: ['iqppsoc'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,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('rem'); 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( - 'vitae', + 'rem', { 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('minus'); + const responsePromise = client.smartLinks.listConversions('vitae'); 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( - 'minus', + 'vitae', { 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('eveniet'); 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', + 'eveniet', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('iusto'); + const responsePromise = client.smartLinks.listSpenders('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'iusto', + 'saepe', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quis'); + const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'repellat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sequi'); + const responsePromise = client.smartLinks.retrieveStats('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'sequi', + 'sed', { 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 6e16d240..1596a97c 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: 'w', tags: ['wcluupkieqtohpjdyitnvzp'] }, + filter: { search: 'gmxacxbqjoatgsydemmnkouhh', tags: ['lllhderjyqpfwqqbhobseiecb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mawwventxjecbvn', tags: ['oefqvyitxtajbqksy'] }, + filter: { search: 'evg', tags: ['xapykcvoe'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 's', - tags: ['ivtycucxumpslkscgfxljv'], + include_smart_links: true, + search: 'n', + tags: ['kknatgunivonrnyg'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ixyonkprpmskvpy', - tags: ['r'], + search: 'uunrbkh', + tags: ['jatsthvop'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f965233d..4d879d85 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('voluptatum', { + const responsePromise = client.stories.highlights.addStory('rerum', { 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('voluptatum', { + const response = await client.stories.highlights.addStory('rerum', { 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('voluptatum', { + const responsePromise = client.stories.highlights.removeStory('rerum', { 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('voluptatum', { + const response = await client.stories.highlights.removeStory('rerum', { 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 0d1368be..43b87080 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('odit', { 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('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('odit', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('odit', { 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('maiores', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('minus', { + const response = await client.trackingLinks.getCohortArps('maiores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('est', { + const response = await client.trackingLinks.getStats('sunt', { 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 128c1ca0..482f5b99 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('facilis', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('officiis', { + const responsePromise = client.trialLinks.retrieveCohortArps('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('perspiciatis', { - 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; @@ -190,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('perspiciatis', { + 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 02318d1e..23ed0ebc 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: 'xkliqaeucnrgjtd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nbgznywsojqxpdtqlr' }); 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: 'xkliqaeucnrgjtd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nbgznywsojqxpdtqlr' }); }); // Mock server tests are disabled From ce629ee6c9301c4f995ecc6f759ec78d6bf0cb4b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 16:12:35 +0000 Subject: [PATCH 224/309] 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/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 | 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 +-- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 115 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index e2285957..c153f1b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1c495ff673113b55e9ed3bdccd0a71d5d07ae8cd83570be2d57768d8e605402b.yml -openapi_spec_hash: ac357a40d6a804424720aff7840547c2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-29c14daeff3835032106c1a2a4647cb028a8ff8e09e9d50e63fb2621e3fddb27.yml +openapi_spec_hash: 6cbcad5427abf73d8af31cda86fe9ed2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 681759cd..7ab910c8 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', + * 'nesciunt', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fb08ec2e..a212a9cd 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( - * 'doloribus', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6bc50831..228dd2be 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( - * 'explicabo', + * 'inventore', * { 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( - * 'explicabo', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b16584fb..12957a42 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('sit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'minus', + * { + * 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('sit', { + * const comments = await client.posts.comments.list('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 a84ff073..2b04cbb2 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 b550c332..9fc0e1f8 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('rem'); + * const response = await client.smartLinks.listClicks( + * 'voluptatibus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'vitae', + * 'occaecati', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'eveniet', - * ); + * const response = await client.smartLinks.listFans('nihil'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'saepe', + * 'dolorem', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('repellat'); + * await client.smartLinks.retrieveCohortArps('architecto'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sed', + * 'soluta', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e56b455..27cd4271 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( - * 'rerum', + * '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('rerum', { + * 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 eeb1bc49..255ee1d6 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', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'inventore', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('maiores', { + * await client.trackingLinks.getCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sunt', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 080f2861..52d2447e 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( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quas', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quas', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'repudiandae', + * 'ea', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laudantium', { + * await client.trialLinks.retrieveCohortArps('dolorum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'ad', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fbdd0f0c..fb8fc5eb 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: 'nbgznywsojqxpdtqlr' }, + * { name: 'ancdsugyuqswl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 065535d9..d429a4a5 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('nesciunt'); 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 b993c8f0..3e84befa 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: 'provident', - auth_type: 'email_password', - cookies: 'et', + auth_id: 'sequi', + auth_type: 'mobile_app', + cookies: 'sed', customProxy: { host: 'proxy.example.com', - password: 'CF%y.QQ,:B$$mx/F?', + password: 'M3@OUIQ3O5pzPtcsXS', port: 8080, - username: 'quo', + username: 'omnis', }, - email: 'enrico75@example.com', - force_connect: false, - name: 'qui', - password: '=eHms{LjJwIa', - proxyCountry: 'uk', - user_agent: 'perspiciatis', - xbc: 'ipsa', + email: 'flegros@example.com', + force_connect: true, + name: 'tenetur', + password: 'C2GqMBOe0n9Vqg#', + proxyCountry: 'gb', + user_agent: 'quis', + xbc: 'ut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 38b98b46..31f30cbb 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('doloribus', { + const responsePromise = client.engagement.messages.getMessageBuyers('optio', { 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('doloribus', { + const response = await client.engagement.messages.getMessageBuyers('optio', { 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 4a8c93d9..52ac0d69 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('explicabo', { + const responsePromise = client.media.vault.lists.media.add('inventore', { 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('explicabo', { + const response = await client.media.vault.lists.media.add('inventore', { 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('explicabo', { + const responsePromise = client.media.vault.lists.media.remove('inventore', { 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('explicabo', { + const response = await client.media.vault.lists.media.remove('inventore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 22e15203..45f80c92 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('sit', { + const responsePromise = client.posts.comments.create('minus', { 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('sit', { + const response = await client.posts.comments.create('minus', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('minus', { 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('sit', { + const response = await client.posts.comments.list('minus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..4ec8acc7 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 02883e18..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f3cda5b0..301484d4 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: ['iqppsoc'] }, + filter: { tags: ['uidb'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('rem'); + const responsePromise = client.smartLinks.listClicks('voluptatibus'); 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( - 'rem', + 'voluptatibus', { 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('vitae'); + const responsePromise = client.smartLinks.listConversions('occaecati'); 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( - 'vitae', + 'occaecati', { 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('eveniet'); + const responsePromise = client.smartLinks.listFans('nihil'); 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( - 'eveniet', + 'nihil', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('saepe'); + const responsePromise = client.smartLinks.listSpenders('dolorem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'saepe', + 'dolorem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); + const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'repellat', + 'architecto', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sed'); + const responsePromise = client.smartLinks.retrieveStats('soluta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'sed', + 'soluta', { 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 1596a97c..dbd08523 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: 'gmxacxbqjoatgsydemmnkouhh', tags: ['lllhderjyqpfwqqbhobseiecb'] }, + filter: { search: 'sahxglvsuiebudvidx', tags: ['gqs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'evg', tags: ['xapykcvoe'] }, + filter: { search: 'mroqggdqryqfuapxuow', tags: ['llysqbavs'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'n', - tags: ['kknatgunivonrnyg'], + include_smart_links: false, + search: 'qucdabdtapysvkolxygwvoh', + tags: ['eebtpkgxulesecagzyrtxx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'uunrbkh', - tags: ['jatsthvop'], + search: 'ouxeqhrcqu', + tags: ['dwvhft'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4d879d85..875fdcfa 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('rerum', { + 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('rerum', { + 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('rerum', { + 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('rerum', { + 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 43b87080..da1bc8a3 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('alias', { 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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('maiores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('maiores', { + const response = await client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sunt', { 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; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sunt', { + 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 482f5b99..075b2401 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quas', { 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('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('repudiandae', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('repudiandae', { + const response = await client.trialLinks.listSubscribers('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('laudantium', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('laudantium', { + const response = await client.trialLinks.retrieveCohortArps('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('ad', { 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 23ed0ebc..34c3dc25 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: 'nbgznywsojqxpdtqlr' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ancdsugyuqswl' }); 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: 'nbgznywsojqxpdtqlr' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ancdsugyuqswl' }); }); // Mock server tests are disabled From 3afd6962de92809cc874cc9d7063a582cadeb249 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 8 Aug 2026 19:12:32 +0000 Subject: [PATCH 225/309] 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 | 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/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 | 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 | 4 +-- 27 files changed, 103 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index c153f1b0..9b65f845 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-29c14daeff3835032106c1a2a4647cb028a8ff8e09e9d50e63fb2621e3fddb27.yml -openapi_spec_hash: 6cbcad5427abf73d8af31cda86fe9ed2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6ca07aa83cd98f818f0ef1fbdfe59df8ac9762492be0312474a71f558817c258.yml +openapi_spec_hash: d29549849be6e283ba7316928ce76cde config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7ab910c8..6bfc0cef 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( - * 'nesciunt', - * ); + * const response = await client.accounts.disconnect('quae'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a212a9cd..a03bde98 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( - * 'optio', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 228dd2be..24e617cf 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( - * 'inventore', + * 'natus', * { 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( - * 'inventore', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12957a42..dee0ca84 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( - * 'minus', + * 'excepturi', * { * 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('minus', { - * 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 2b04cbb2..41feb4c0 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 9fc0e1f8..4f108e1c 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( - * 'voluptatibus', - * ); + * 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( - * 'occaecati', + * 'et', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nihil'); + * const response = await client.smartLinks.listFans('eos'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolorem', + * 'vero', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('architecto'); + * await client.smartLinks.retrieveCohortArps('aliquid'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'soluta', + * 'non', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..07b058a4 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', + * 'vel', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { + * await client.stories.highlights.removeStory('vel', { * 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 255ee1d6..c04d2657 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( - * 'alias', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'alias', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('velit', { + * await client.trackingLinks.getCohortArps('impedit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fuga', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 52d2447e..c4ba0cb0 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('quas', { + * const trialLink = await client.trialLinks.retrieve('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quas', { + * const trialLink = await client.trialLinks.delete('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ea', + * 'alias', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolorum', { + * await client.trialLinks.retrieveCohortArps('incidunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ad', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fb8fc5eb..00764628 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: 'ancdsugyuqswl' }, + * { name: 'cudvsctuyhiao' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d429a4a5..65342ac8 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('nesciunt'); + const responsePromise = client.accounts.disconnect('quae'); 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 3e84befa..96477208 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: 'sequi', + auth_id: 'aut', auth_type: 'mobile_app', - cookies: 'sed', + cookies: 'provident', customProxy: { host: 'proxy.example.com', - password: 'M3@OUIQ3O5pzPtcsXS', + password: 'WRMrEnPk{7MLJ', port: 8080, - username: 'omnis', + username: 'et', }, - email: 'flegros@example.com', + email: 'asa55@example.net', force_connect: true, - name: 'tenetur', - password: 'C2GqMBOe0n9Vqg#', - proxyCountry: 'gb', - user_agent: 'quis', - xbc: 'ut', + name: 'dicta', + password: 'ovIWxbCx<8gP"18^/1', + proxyCountry: 'us', + user_agent: 'voluptatibus', + xbc: 'ratione', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 31f30cbb..fbbfdb0f 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('optio', { + 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('optio', { + 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 52ac0d69..5aa3b56d 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('inventore', { + const responsePromise = client.media.vault.lists.media.add('natus', { 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('inventore', { + const response = await client.media.vault.lists.media.add('natus', { 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('inventore', { + const responsePromise = client.media.vault.lists.media.remove('natus', { 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('inventore', { + const response = await client.media.vault.lists.media.remove('natus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 45f80c92..3ae8a5fe 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('minus', { + 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('minus', { + 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('minus', { 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('minus', { + const response = await client.posts.comments.list('excepturi', { 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 4ec8acc7..8e5b0566 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 96d399de..c1510622 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 301484d4..236b70fb 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: ['uidb'] }, + filter: { tags: ['vsrfqqzsuhtxkourt'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatibus'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'voluptatibus', + 'ut', { 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('occaecati'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'occaecati', + 'et', { 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('nihil'); + const responsePromise = client.smartLinks.listFans('eos'); 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( - 'nihil', + 'eos', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolorem'); + const responsePromise = client.smartLinks.listSpenders('vero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'dolorem', + 'vero', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); + const responsePromise = client.smartLinks.retrieveCohortArps('aliquid'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'architecto', + 'aliquid', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('soluta'); + const responsePromise = client.smartLinks.retrieveStats('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'soluta', + '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 dbd08523..9ce4b6d7 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: 'sahxglvsuiebudvidx', tags: ['gqs'] }, + filter: { search: 'kuwdvitivdz', tags: ['scsosenejvzpih'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mroqggdqryqfuapxuow', tags: ['llysqbavs'] }, + filter: { search: 'kksuvhgvnsnfwbfnelduv', tags: ['sdysrzymggjxrwtjwqzq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'qucdabdtapysvkolxygwvoh', - tags: ['eebtpkgxulesecagzyrtxx'], + search: 'mo', + tags: ['qzwfqnbnwpzdvmnfwknqbigbb'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ouxeqhrcqu', - tags: ['dwvhft'], + search: 'cvvplhasaqc', + tags: ['xfmqhqzrc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..a347fadd 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('vel', { 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('vel', { 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('vel', { 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('vel', { 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 da1bc8a3..1b72a6ba 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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptatem', { 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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('impedit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('velit', { + const response = await client.trackingLinks.getCohortArps('impedit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,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('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,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('aspernatur', { 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 075b2401..f0abba89 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('id', { 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('id', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('alias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('alias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolorum', { + const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolorum', { + const response = await client.trialLinks.retrieveCohortArps('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ad', { + const response = await client.trialLinks.retrieveStats('velit', { 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 34c3dc25..b1f08538 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: 'ancdsugyuqswl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cudvsctuyhiao' }); 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: 'ancdsugyuqswl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cudvsctuyhiao' }); }); // Mock server tests are disabled From 89c5e42cef884a79b12f94e46ef57db7fbc0a7ff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 15:13:21 +0000 Subject: [PATCH 226/309] 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 +++++-------- 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 +++--- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 6 +++-- 24 files changed, 107 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9b65f845..784e957d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6ca07aa83cd98f818f0ef1fbdfe59df8ac9762492be0312474a71f558817c258.yml -openapi_spec_hash: d29549849be6e283ba7316928ce76cde +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a25f67524107e11173299b244198d472d7abea586a4179e3838764896d87c555.yml +openapi_spec_hash: 9e6f6ba8dacad12c509462f22278735c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bfc0cef..970b646a 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('quae'); + * const response = await client.accounts.disconnect('amet'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a03bde98..8f24f401 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', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 24e617cf..febcb2b4 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( - * 'natus', + * '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( - * 'natus', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dee0ca84..33a40fdf 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('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( - * 'excepturi', - * { 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/smart-links.ts b/src/resources/smart-links.ts index 4f108e1c..7402c32f 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( + * 'quasi', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'occaecati', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('eos'); + * const response = await client.smartLinks.listFans('libero'); * ``` */ listFans( @@ -127,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'vero', - * ); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aliquid'); + * await client.smartLinks.retrieveCohortArps('earum'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'non', + * 'quod', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 07b058a4..2030df95 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( - * 'vel', + * 'ab', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('vel', { + * await client.stories.highlights.removeStory('ab', { * 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 c04d2657..c54a3a47 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( - * 'voluptatem', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatem', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('impedit', { + * 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( - * 'aspernatur', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c4ba0cb0..80dc3730 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('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolor', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('id', { + * const trialLink = await client.trialLinks.delete('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'alias', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('incidunt', { + * await client.trialLinks.retrieveCohortArps('molestias', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'velit', + * 'ratione', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 00764628..81ea72b4 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: 'cudvsctuyhiao' }, + * { name: 'qmhkontnjbzcsjogqgcez' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 65342ac8..06f068cd 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('quae'); + const responsePromise = client.accounts.disconnect('amet'); 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 96477208..d7aff2ca 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_type: 'mobile_app', - cookies: 'provident', + auth_id: 'delectus', + auth_type: 'email_password', + cookies: 'ipsa', customProxy: { host: 'proxy.example.com', - password: 'WRMrEnPk{7MLJ', + password: '.GE,(O0&Nx', port: 8080, - username: 'et', + username: 'blanditiis', }, - email: 'asa55@example.net', - force_connect: true, - name: 'dicta', - password: 'ovIWxbCx<8gP"18^/1', + email: 'stark.cecil@example.com', + force_connect: false, + name: 'repudiandae', + password: "2:DKY'", proxyCountry: 'us', - user_agent: 'voluptatibus', - xbc: 'ratione', + user_agent: 'nihil', + xbc: 'totam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index fbbfdb0f..0949d534 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('reiciendis', { 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('reiciendis', { 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 5aa3b56d..2e9728e9 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('natus', { + 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('natus', { + 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('natus', { + 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('natus', { + 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 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3ae8a5fe..e56adcd7 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('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('excepturi', { + 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('excepturi', { 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('excepturi', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 236b70fb..18384a8c 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: ['vsrfqqzsuhtxkourt'] }, + filter: { tags: ['welldveqdbji'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('quasi'); 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( - 'ut', + 'quasi', { 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('et'); + const responsePromise = client.smartLinks.listConversions('occaecati'); 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( - 'et', + 'occaecati', { 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('eos'); + const responsePromise = client.smartLinks.listFans('libero'); 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( - 'eos', + 'libero', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('vero'); + const responsePromise = client.smartLinks.listSpenders('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'vero', + 'ea', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aliquid'); + const responsePromise = client.smartLinks.retrieveCohortArps('earum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'aliquid', + 'earum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('non'); + const responsePromise = client.smartLinks.retrieveStats('quod'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'quod', { 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 9ce4b6d7..e2fab308 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: 'kuwdvitivdz', tags: ['scsosenejvzpih'] }, + filter: { search: 'qlxm', tags: ['sytoimwtot'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kksuvhgvnsnfwbfnelduv', tags: ['sdysrzymggjxrwtjwqzq'] }, + filter: { search: 'kuxfzyxpqpghwdhainqy', tags: ['deyyj'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'mo', - tags: ['qzwfqnbnwpzdvmnfwknqbigbb'], + search: 'zg', + tags: ['xbrwlwdiyqhh'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cvvplhasaqc', - tags: ['xfmqhqzrc'], + include_smart_links: false, + search: 'cpnspcjghzakouwqlclsj', + tags: ['qvczeqt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a347fadd..b2f41a50 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('vel', { + const responsePromise = client.stories.highlights.addStory('ab', { 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('vel', { + const response = await client.stories.highlights.addStory('ab', { 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('vel', { + const responsePromise = client.stories.highlights.removeStory('ab', { 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('vel', { + const response = await client.stories.highlights.removeStory('ab', { 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 1b72a6ba..6aa4dffb 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptas', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('impedit', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('impedit', { + const response = await client.trackingLinks.getCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aspernatur', { + const response = await client.trackingLinks.getStats('rerum', { 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 f0abba89..9e301984 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolor', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('alias', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('alias', { + const response = await client.trialLinks.listSubscribers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('incidunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('molestias', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('incidunt', { + const response = await client.trialLinks.retrieveCohortArps('molestias', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ratione', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('velit', { + const response = await client.trialLinks.retrieveStats('ratione', { 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 b1f08538..6f4a857f 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: 'cudvsctuyhiao' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'qmhkontnjbzcsjogqgcez', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'cudvsctuyhiao' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qmhkontnjbzcsjogqgcez' }); }); // Mock server tests are disabled From a0e836d4ce3d6f281480a96f58fca44fd284396c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:12:35 +0000 Subject: [PATCH 227/309] 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 +- 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 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 6 ++--- 26 files changed, 121 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 784e957d..a0b698d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a25f67524107e11173299b244198d472d7abea586a4179e3838764896d87c555.yml -openapi_spec_hash: 9e6f6ba8dacad12c509462f22278735c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ded63088e6c7c224f6f831a5d9c1b038c02a5d631631ad3480ab7052f03d67e.yml +openapi_spec_hash: 7373194c17010bd5d2e58feedf4a37e6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 970b646a..f228af86 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('amet'); + * const response = await client.accounts.disconnect( + * 'laborum', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8f24f401..aac5a0b5 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( - * 'reiciendis', + * 'commodi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b4..79cfcf7a 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', + * 'veniam', * { 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', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..aec783f3 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( + * 'architecto', + * { + * 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( + * 'architecto', + * { 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 599a9525..e20f70d1 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 7402c32f..9d2a6ef0 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( - * 'quasi', + * 'reiciendis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'occaecati', + * 'voluptas', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('libero'); + * const response = await client.smartLinks.listFans( + * 'doloremque', + * ); * ``` */ listFans( @@ -129,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders( + * 'corporis', + * ); * ``` */ listSpenders( @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('earum'); + * await client.smartLinks.retrieveCohortArps('quisquam'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quod', + * 'id', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2030df95..8b0f3c3f 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( - * 'ab', + * 'omnis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ab', { + * await client.stories.highlights.removeStory('omnis', { * 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 c54a3a47..30e5ab21 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( - * 'voluptas', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('in', { + * await client.trackingLinks.getCohortArps('numquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'rerum', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 80dc3730..22cbb215 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( - * 'dolor', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolor', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'accusantium', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'omnis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('molestias', { + * await client.trialLinks.retrieveCohortArps('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ratione', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 81ea72b4..1bf52893 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: 'qmhkontnjbzcsjogqgcez' }, + * { name: 'ioooxdy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 06f068cd..67f99aeb 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('amet'); + const responsePromise = client.accounts.disconnect('laborum'); 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 d7aff2ca..eeb55bf3 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: 'delectus', - auth_type: 'email_password', - cookies: 'ipsa', + auth_id: 'tempore', + auth_type: 'mobile_app', + cookies: 'voluptate', customProxy: { host: 'proxy.example.com', - password: '.GE,(O0&Nx', + password: 'CkYAmvM|', port: 8080, - username: 'blanditiis', + username: 'adipisci', }, - email: 'stark.cecil@example.com', - force_connect: false, - name: 'repudiandae', - password: "2:DKY'", + email: 'dach.brayan@example.org', + force_connect: true, + name: 'explicabo', + password: 'UZ{1GP8u+h$nb/iG.gj', proxyCountry: 'us', - user_agent: 'nihil', - xbc: 'totam', + user_agent: 'sapiente', + xbc: 'officiis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 0949d534..ff0e839f 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('reiciendis', { + const responsePromise = client.engagement.messages.getMessageBuyers('commodi', { 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('reiciendis', { + const response = await client.engagement.messages.getMessageBuyers('commodi', { 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 2e9728e9..d9bfd325 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('veniam', { 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('veniam', { 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('veniam', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..221840f1 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('architecto', { 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('architecto', { 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('architecto', { 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('architecto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..fd74b68f 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 18384a8c..803e944d 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: ['welldveqdbji'] }, + filter: { tags: ['mbijyjgqfwczolfkyvhakp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quasi'); + const responsePromise = client.smartLinks.listClicks('reiciendis'); 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( - 'quasi', + 'reiciendis', { 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('occaecati'); + const responsePromise = client.smartLinks.listConversions('voluptas'); 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( - 'occaecati', + 'voluptas', { 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('libero'); + const responsePromise = client.smartLinks.listFans('doloremque'); 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( - 'libero', + 'doloremque', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ea'); + const responsePromise = client.smartLinks.listSpenders('corporis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'corporis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('earum'); + const responsePromise = client.smartLinks.retrieveCohortArps('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'earum', + 'quisquam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quod'); + const responsePromise = client.smartLinks.retrieveStats('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quod', + 'id', { 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 e2fab308..c0a07ccb 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: 'qlxm', tags: ['sytoimwtot'] }, + filter: { search: 'gnngfoikxbemt', tags: ['ebjzfhhfoahogdtaygfhj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kuxfzyxpqpghwdhainqy', tags: ['deyyj'] }, + filter: { search: 'wftnidmjdeeioksanezdbvmc', tags: ['vpw'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zg', - tags: ['xbrwlwdiyqhh'], + search: 'yjqm', + tags: ['eeagshmhliesyvgidgfs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'cpnspcjghzakouwqlclsj', - tags: ['qvczeqt'], + include_smart_links: true, + search: 'cmnry', + tags: ['xmcbdsskl'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b2f41a50..105df195 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('ab', { + const responsePromise = client.stories.highlights.addStory('omnis', { 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('ab', { + const response = await client.stories.highlights.addStory('omnis', { 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('ab', { + const responsePromise = client.stories.highlights.removeStory('omnis', { 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('ab', { + const response = await client.stories.highlights.removeStory('omnis', { 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 6aa4dffb..d9ccac9b 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('possimus', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('possimus', { 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('numquam', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('numquam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('rerum', { + const response = await client.trackingLinks.getStats('est', { 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 9e301984..9ee9443e 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('accusantium', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('molestias', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('molestias', { + const response = await client.trialLinks.retrieveCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ratione', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ratione', { + 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 6f4a857f..dfd1d520 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: 'qmhkontnjbzcsjogqgcez', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ioooxdy' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'qmhkontnjbzcsjogqgcez' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ioooxdy' }); }); // Mock server tests are disabled From 147758e76eab39656b84c04d4ae34e603c5df1df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 19:12:36 +0000 Subject: [PATCH 228/309] 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 | 16 +++++------- 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 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++++-- 30 files changed, 108 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index a0b698d8..0f9ae5d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9ded63088e6c7c224f6f831a5d9c1b038c02a5d631631ad3480ab7052f03d67e.yml -openapi_spec_hash: 7373194c17010bd5d2e58feedf4a37e6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e4abd4c83686ea74647398a46d6991a121861e309ae311ea7a362c4cc9666a34.yml +openapi_spec_hash: cc4be956948ae5b19f83ad3b6fdb9e8d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f228af86..afb19c97 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( - * 'laborum', + * 'eligendi', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index aac5a0b5..983ec14b 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( - * 'commodi', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 79cfcf7a..6f8aff53 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( - * 'veniam', + * '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( - * 'veniam', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index aec783f3..1e5e4ad5 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( - * 'architecto', + * '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( - * 'architecto', + * '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 e20f70d1..a9767818 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 41feb4c0..2b04cbb2 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 9d2a6ef0..ac2e3255 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( - * 'reiciendis', - * ); + * 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( - * 'voluptas', + * 'a', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'doloremque', - * ); + * const response = await client.smartLinks.listFans('dolor'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'corporis', + * 'autem', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quisquam'); + * await client.smartLinks.retrieveCohortArps('aut'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'id', + * 'eius', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 8b0f3c3f..a9c614a7 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( - * 'omnis', + * '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('omnis', { + * 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 30e5ab21..00a7d5be 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( - * 'possimus', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'possimus', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('numquam', { + * await client.trackingLinks.getCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'est', - * { 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 22cbb215..a68165a8 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( - * 'accusantium', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'accusantium', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'omnis', + * 'quasi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('in', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1bf52893..c3424cc7 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: 'ioooxdy' }, + * { name: 'dybjkxucmthbcfwdltsetdrmk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 67f99aeb..a1cc0959 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('laborum'); + const responsePromise = client.accounts.disconnect('eligendi'); 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 eeb55bf3..7061c2fb 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: 'tempore', - auth_type: 'mobile_app', - cookies: 'voluptate', + auth_id: 'temporibus', + auth_type: 'email_password', + cookies: 'magnam', customProxy: { host: 'proxy.example.com', - password: 'CkYAmvM|', + password: 'R)4wm6N', port: 8080, - username: 'adipisci', + username: 'et', }, - email: 'dach.brayan@example.org', - force_connect: true, - name: 'explicabo', - password: 'UZ{1GP8u+h$nb/iG.gj', + email: 'aleen.bogan@example.org', + force_connect: false, + name: 'veritatis', + password: 'd~NiPl|eM[tQ8k6Hm', proxyCountry: 'us', - user_agent: 'sapiente', - xbc: 'officiis', + user_agent: 'sunt', + 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 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ff0e839f..086a44ab 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('commodi', { + 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('commodi', { + 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 d9bfd325..0195dda8 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('veniam', { + 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('veniam', { + 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('veniam', { + 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('veniam', { + 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 69b39e44..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 221840f1..8aee5efa 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('architecto', { + 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('architecto', { + 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('architecto', { 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('architecto', { + 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 9bf5999b..ad49ad2e 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 fd74b68f..4ec8acc7 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 c1510622..96d399de 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 803e944d..81187bb4 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: ['mbijyjgqfwczolfkyvhakp'] }, + filter: { tags: ['qygeheyalwfygycqjpjmkuclq'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('reiciendis'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'reiciendis', + 'aut', { 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('voluptas'); + const responsePromise = client.smartLinks.listConversions('a'); 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( - 'voluptas', + 'a', { 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('doloremque'); + const responsePromise = client.smartLinks.listFans('dolor'); 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( - 'doloremque', + 'dolor', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('corporis'); + const responsePromise = client.smartLinks.listSpenders('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'corporis', + 'autem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quisquam'); + const responsePromise = client.smartLinks.retrieveCohortArps('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quisquam', + 'aut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('id'); + const responsePromise = client.smartLinks.retrieveStats('eius'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + 'eius', { 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 c0a07ccb..9e0f9412 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: 'gnngfoikxbemt', tags: ['ebjzfhhfoahogdtaygfhj'] }, + filter: { search: 'b', tags: ['onpwuxzmrulamrmuyymhlkzp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wftnidmjdeeioksanezdbvmc', tags: ['vpw'] }, + filter: { search: 'aevvmjdrljdlwjujqwangvkzr', tags: ['esjkltwnvlxqmq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'yjqm', - tags: ['eeagshmhliesyvgidgfs'], + search: 'ekxzdcqnksgvzsou', + tags: ['v'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'cmnry', - tags: ['xmcbdsskl'], + search: 'qlojbg', + tags: ['hgimfghcleawlqqxjq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 105df195..fca45b0b 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('omnis', { + 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('omnis', { + 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('omnis', { + 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('omnis', { + 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 d9ccac9b..d5072049 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sint', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('numquam', { + const responsePromise = client.trackingLinks.getCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('numquam', { + const response = await client.trackingLinks.getCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('est', { 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; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('est', { + 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 9ee9443e..213fe5cb 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('accusantium', { 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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('accusantium', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('omnis', { + const responsePromise = client.trialLinks.listSubscribers('quasi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('omnis', { + const response = await client.trialLinks.listSubscribers('quasi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('in', { + const response = await client.trialLinks.retrieveCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +174,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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('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 dfd1d520..903872e4 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: 'ioooxdy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'dybjkxucmthbcfwdltsetdrmk', + }); 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: 'ioooxdy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'dybjkxucmthbcfwdltsetdrmk', + }); }); // Mock server tests are disabled From bbd60e4b43b5ddb54f016d77f82257c518d5ebd6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 20:12:36 +0000 Subject: [PATCH 229/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- src/resources/chats/messages.ts | 41 ++++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/fans/fans.ts | 141 +++++++++++++++--- src/resources/media/media.ts | 4 +- src/resources/media/uploads.ts | 5 + src/resources/media/vault/lists/media.ts | 4 +- src/resources/media/vault/vault.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 | 4 +- .../tracking-links/tracking-links.ts | 13 +- src/resources/trial-links/trial-links.ts | 15 +- src/resources/user-lists/user-lists.ts | 2 +- src/resources/user-lists/users.ts | 131 ++++++++++++---- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 +-- tests/api-resources/chats/messages.test.ts | 1 + .../engagement/messages/messages.test.ts | 4 +- tests/api-resources/fans/fans.test.ts | 3 + .../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 +- .../shared-trial-links.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 | 16 +- .../trial-links/trial-links.test.ts | 22 +-- .../user-lists/user-lists.test.ts | 8 +- tests/api-resources/user-lists/users.test.ts | 1 + 34 files changed, 392 insertions(+), 171 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0f9ae5d4..4648608c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e4abd4c83686ea74647398a46d6991a121861e309ae311ea7a362c4cc9666a34.yml -openapi_spec_hash: cc4be956948ae5b19f83ad3b6fdb9e8d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-34e6f479a1872e539a6ba6bbd44e66e1a10d978ae34a53a7f7499c4e93bafd2e.yml +openapi_spec_hash: 17e3d768656db29acf3d2068449bfa52 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index afb19c97..af08fbef 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( - * 'eligendi', - * ); + * const response = await client.accounts.disconnect('velit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/chats/messages.ts b/src/resources/chats/messages.ts index 188b306a..823071e0 100644 --- a/src/resources/chats/messages.ts +++ b/src/resources/chats/messages.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../core/resource'; import { APIPromise } from '../../core/api-promise'; +import { buildHeaders } from '../../internal/headers'; import { RequestOptions } from '../../internal/request-options'; import { path } from '../../internal/utils/path'; @@ -123,6 +124,30 @@ export class Messages extends APIResource { /** * Send a new message to a chat. * + * **Idempotency.** Pass an `Idempotency-Key` header to make retries safe. The + * first request with a given key is executed normally and its response is stored + * for **24 hours**; any later request with the same key returns that stored + * response, plus an `Idempotent-Replayed: true` header, without contacting + * OnlyFans and without consuming credits. The replayed body is the original + * response with its `_meta._credits` block rewritten to show `used: 0` and your + * current balance. + * + * Keys are scoped to your team, this endpoint and the account in the URL, so the + * same value can be reused safely against a different account. Use a fresh, unique + * value (a UUID works well) for each message you send; it must be 1-255 printable + * ASCII characters. + * + * - `400 IDEMPOTENCY_KEY_INVALID` — the header value is empty, too long, or + * contains non-ASCII characters. + * - `409 IDEMPOTENCY_CONFLICT` — an earlier request with this key is still + * running. Retry once it finishes. + * - `422 IDEMPOTENCY_KEY_MISMATCH` — this key was already used with a different + * request body or chat. + * + * Responses with a `5xx` status (and `408`/`429`) are never stored, so a failed + * send can be retried with the same key. The header is optional: omit it and the + * endpoint behaves exactly as before. + * * @example * ```ts * const response = await client.chats.messages.send('123', { @@ -131,8 +156,15 @@ export class Messages extends APIResource { * ``` */ send(chatID: string, params: MessageSendParams, options?: RequestOptions): APIPromise { - const { account, ...body } = params; - return this._client.post(path`/api/${account}/chats/${chatID}/messages`, { body, ...options }); + const { account, 'Idempotency-Key': idempotencyKey, ...body } = params; + return this._client.post(path`/api/${account}/chats/${chatID}/messages`, { + body, + ...options, + headers: buildHeaders([ + { ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) }, + options?.headers, + ]), + }); } /** @@ -975,6 +1007,11 @@ export interface MessageSendParams { * Body param: The message text content. Required unless a media file is present. */ text?: string; + + /** + * Header param + */ + 'Idempotency-Key'?: string; } export interface MessageUnlikeParams { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 983ec14b..6e375a4a 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( - * 'voluptatem', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/fans/fans.ts b/src/resources/fans/fans.ts index 3f23fa8c..82d81c3a 100644 --- a/src/resources/fans/fans.ts +++ b/src/resources/fans/fans.ts @@ -60,6 +60,12 @@ export class Fans extends APIResource { * track progress, GET `/{account}/me` returns data.subscribersCount (the current * active-subscriber count) as a total. * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + * who have never spent), which OnlyFans itself cannot do. Those requests are + * answered from OnlyFansAPI's own fan index rather than proxied, so the page is + * limited to fans we have already indexed for this account — see `data._source` in + * the response. + * * @example * ```ts * const response = await client.fans.listActive( @@ -82,6 +88,12 @@ export class Fans extends APIResource { * OnlyFans occasionally returns fewer than `limit` items (e.g. 19 for limit=20) on * a non-final page because it filters entries server-side; no fans are skipped. * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + * who have never spent), which OnlyFans itself cannot do. Those requests are + * answered from OnlyFansAPI's own fan index rather than proxied, so the page is + * limited to fans we have already indexed for this account — see `data._source` in + * the response. + * * @example * ```ts * const response = await client.fans.listAll( @@ -105,6 +117,12 @@ export class Fans extends APIResource { * limit=20) on a non-final page because it filters entries server-side; no fans * are skipped. * + * Supports `filter[max_total_spent]` (e.g. `filter[max_total_spent]=0` for fans + * who have never spent), which OnlyFans itself cannot do. Those requests are + * answered from OnlyFansAPI's own fan index rather than proxied, so the page is + * limited to fans we have already indexed for this account — see `data._source` in + * the response. + * * @example * ```ts * const response = await client.fans.listExpired( @@ -1977,28 +1995,55 @@ export namespace FanListActiveParams { export interface Filter { /** * Filter by minimum subscription duration in months. Must use bracket syntax: - * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will - * be ignored. Must be at least 0. + * filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, + * because PHP rewrites it to `filter_duration` and the filter could not be + * applied. Must be at least 0. */ duration?: number; + /** + * Filter by **maximum** amount total spent by a fan — use + * `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + * `filter[total_spent]` for a range. Must use bracket syntax: + * filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + * rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against + * OnlyFansAPI's own fan index instead of being proxied. The fan objects in + * `data.list` are still fetched live from OnlyFans and are re-checked against your + * filters before being returned, but only fans we have already indexed for this + * account can appear. Each response reports its own coverage under `data._source`; + * when `data._source.is_complete` is `false` a full-base backfill is queued + * automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which + * OnlyFans returned no usable data for on that page (a deleted account, or a + * partial response). They are left out of `data.list` and not revisited later in + * the same walk, so a non-zero value means that page was short — start a fresh + * walk to retry them. Cannot be combined with `filter[online]`. Must be at + * least 0. + */ + max_total_spent?: number; + /** * Filter by online status (`1` for online fans). Must use bracket syntax: - * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be - * ignored. + * filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, + * because PHP rewrites it to `filter_online` and the filter could not be applied. */ online?: 1 | 0 | null; /** * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form - * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. + * (filter.tips=100) is rejected with a 422, because PHP rewrites it to + * `filter_tips` and the filter could not be applied. Must be at least 0. */ tips?: number; /** * Filter by minimum amount total spent by a fan. Must use bracket syntax: - * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported - * and will be ignored. Must be at least 0. + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with + * a 422, because PHP rewrites it to `filter_total_spent` and the filter could not + * be applied. Must be at least 0. */ total_spent?: number; } @@ -2033,28 +2078,55 @@ export namespace FanListAllParams { export interface Filter { /** * Filter by minimum subscription duration in months. Must use bracket syntax: - * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will - * be ignored. Must be at least 0. + * filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, + * because PHP rewrites it to `filter_duration` and the filter could not be + * applied. Must be at least 0. */ duration?: number; + /** + * Filter by **maximum** amount total spent by a fan — use + * `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + * `filter[total_spent]` for a range. Must use bracket syntax: + * filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + * rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against + * OnlyFansAPI's own fan index instead of being proxied. The fan objects in + * `data.list` are still fetched live from OnlyFans and are re-checked against your + * filters before being returned, but only fans we have already indexed for this + * account can appear. Each response reports its own coverage under `data._source`; + * when `data._source.is_complete` is `false` a full-base backfill is queued + * automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which + * OnlyFans returned no usable data for on that page (a deleted account, or a + * partial response). They are left out of `data.list` and not revisited later in + * the same walk, so a non-zero value means that page was short — start a fresh + * walk to retry them. Cannot be combined with `filter[online]`. Must be at + * least 0. + */ + max_total_spent?: number; + /** * Filter by online status (`1` for online fans). Must use bracket syntax: - * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be - * ignored. + * filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, + * because PHP rewrites it to `filter_online` and the filter could not be applied. */ online?: 1 | 0 | null; /** * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form - * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. + * (filter.tips=100) is rejected with a 422, because PHP rewrites it to + * `filter_tips` and the filter could not be applied. Must be at least 0. */ tips?: number; /** * Filter by minimum amount total spent by a fan. Must use bracket syntax: - * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported - * and will be ignored. Must be at least 0. + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with + * a 422, because PHP rewrites it to `filter_total_spent` and the filter could not + * be applied. Must be at least 0. */ total_spent?: number; } @@ -2089,28 +2161,55 @@ export namespace FanListExpiredParams { export interface Filter { /** * Filter by minimum subscription duration in months. Must use bracket syntax: - * filter[duration]=1 — the dot form (filter.duration=1) is NOT supported and will - * be ignored. Must be at least 0. + * filter[duration]=1 — the dot form (filter.duration=1) is rejected with a 422, + * because PHP rewrites it to `filter_duration` and the filter could not be + * applied. Must be at least 0. */ duration?: number; + /** + * Filter by **maximum** amount total spent by a fan — use + * `filter[max_total_spent]=0` to isolate fans who have never spent. Combine with + * `filter[total_spent]` for a range. Must use bracket syntax: + * filter[max_total_spent]=0 — the dot form is rejected with a 422, because PHP + * rewrites it to `filter_max_total_spent` and the filter could not be applied. + * + * OnlyFans itself has no maximum-spend filter, so this one is resolved against + * OnlyFansAPI's own fan index instead of being proxied. The fan objects in + * `data.list` are still fetched live from OnlyFans and are re-checked against your + * filters before being returned, but only fans we have already indexed for this + * account can appear. Each response reports its own coverage under `data._source`; + * when `data._source.is_complete` is `false` a full-base backfill is queued + * automatically, so retry later for a complete answer. + * + * `data._source.omitted_from_page` counts fans that matched your filters but which + * OnlyFans returned no usable data for on that page (a deleted account, or a + * partial response). They are left out of `data.list` and not revisited later in + * the same walk, so a non-zero value means that page was short — start a fresh + * walk to retry them. Cannot be combined with `filter[online]`. Must be at + * least 0. + */ + max_total_spent?: number; + /** * Filter by online status (`1` for online fans). Must use bracket syntax: - * filter[online]=1 — the dot form (filter.online=1) is NOT supported and will be - * ignored. + * filter[online]=1 — the dot form (filter.online=1) is rejected with a 422, + * because PHP rewrites it to `filter_online` and the filter could not be applied. */ online?: 1 | 0 | null; /** * Filter by minimum tips. Must use bracket syntax: filter[tips]=100 — the dot form - * (filter.tips=100) is NOT supported and will be ignored. Must be at least 0. + * (filter.tips=100) is rejected with a 422, because PHP rewrites it to + * `filter_tips` and the filter could not be applied. Must be at least 0. */ tips?: number; /** * Filter by minimum amount total spent by a fan. Must use bracket syntax: - * filter[total_spent]=100 — the dot form (filter.total_spent=100) is NOT supported - * and will be ignored. Must be at least 0. + * filter[total_spent]=100 — the dot form (filter.total_spent=100) is rejected with + * a 422, because PHP rewrites it to `filter_total_spent` and the filter could not + * be applied. Must be at least 0. */ total_spent?: number; } diff --git a/src/resources/media/media.ts b/src/resources/media/media.ts index 6debd803..80790763 100644 --- a/src/resources/media/media.ts +++ b/src/resources/media/media.ts @@ -172,7 +172,9 @@ export interface MediaScrapeParams { export interface MediaUploadParams { /** * Set to `true` to process uploads in the background. Returns a `polling_url` to - * check status. Recommended for large files. + * check status. Recommended for large files. Instead of polling, you can subscribe + * to the `media_uploads.completed` and `media_uploads.failed` webhook events — + * they only fire for async uploads. */ async?: boolean; diff --git a/src/resources/media/uploads.ts b/src/resources/media/uploads.ts index a2c52d62..42b5b0d9 100644 --- a/src/resources/media/uploads.ts +++ b/src/resources/media/uploads.ts @@ -17,6 +17,11 @@ export class Uploads extends APIResource { * - `completed` — Upload finished, `media` and `credits_used` are included * - `failed` — Upload failed, `error` is included * + * Instead of polling, you can subscribe to the `media_uploads.completed` and + * `media_uploads.failed` webhook events. They carry the same fields as this + * endpoint and are only sent for async (`async=true`) uploads — synchronous + * uploads return their result directly. + * * @example * ```ts * const response = await client.media.uploads.getStatus( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6f8aff53..8b9edfb0 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', + * 'cumque', * { 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', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/media/vault/vault.ts b/src/resources/media/vault/vault.ts index dab8621a..43595d4d 100644 --- a/src/resources/media/vault/vault.ts +++ b/src/resources/media/vault/vault.ts @@ -573,7 +573,9 @@ export interface VaultDeleteParams { export interface VaultUploadParams { /** * Set to `true` to process uploads in the background. Returns a `polling_url` to - * check status. Recommended for large files. + * check status. Recommended for large files. Instead of polling, you can subscribe + * to the `media_uploads.completed` and `media_uploads.failed` webhook events — + * they only fire for async uploads. */ async?: boolean; diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad5..7d88b6f3 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( - * 'voluptatem', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('enim', { + * 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( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('enim', { + * 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 2b04cbb2..41feb4c0 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 ac2e3255..e3a1ccf7 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( + * 'quasi', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'a', + * 'et', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dolor'); + * const response = await client.smartLinks.listFans('animi'); * ``` */ listFans( @@ -127,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'autem', - * ); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aut'); + * await client.smartLinks.retrieveCohortArps('ad'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eius', + * 'fuga', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..9a22ea28 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', + * '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('et', { + * 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 00a7d5be..38836aef 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( - * 'sint', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sint', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * await client.trackingLinks.getCohortArps('voluptates', { * 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( + * 'nihil', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a68165a8..61708fae 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', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'numquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('saepe', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quasi', + * 'provident', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c3424cc7..c8ce9a34 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: 'dybjkxucmthbcfwdltsetdrmk' }, + * { name: 'ctxewseyhvrgitxpb' }, * ); * ``` */ diff --git a/src/resources/user-lists/users.ts b/src/resources/user-lists/users.ts index 16bd1e16..f805d454 100644 --- a/src/resources/user-lists/users.ts +++ b/src/resources/user-lists/users.ts @@ -491,49 +491,117 @@ export namespace UserListResponse { } } -export interface UserAddResponse { - _meta?: UserAddResponse._Meta; - - data?: UserAddResponse.Data; -} +/** + * Default: OnlyFans accepted every User ID + */ +export type UserAddResponse = UserAddResponse.UnionMember0 | UserAddResponse.UnionMember1; export namespace UserAddResponse { - export interface _Meta { - _cache?: _Meta._Cache; - - _credits?: _Meta._Credits; + /** + * Default: OnlyFans accepted every User ID + */ + export interface UnionMember0 { + _meta?: UnionMember0._Meta; - _rate_limits?: _Meta._RateLimits; + data?: UnionMember0.Data; } - export namespace _Meta { - export interface _Cache { - is_cached?: boolean; + export namespace UnionMember0 { + export interface _Meta { + _cache?: _Meta._Cache; - note?: string; + _credits?: _Meta._Credits; + + _rate_limits?: _Meta._RateLimits; } - export interface _Credits { - balance?: number; + export namespace _Meta { + export interface _Cache { + is_cached?: boolean; - note?: string; + note?: string; + } - used?: number; - } + export interface _Credits { + balance?: number; - export interface _RateLimits { - limit_day?: number; + note?: string; - limit_minute?: number; + used?: number; + } - remaining_day?: number; + export interface _RateLimits { + limit_day?: number; - remaining_minute?: number; + limit_minute?: number; + + remaining_day?: number; + + remaining_minute?: number; + } + } + + export interface Data { + '1224114714'?: Array; } } - export interface Data { - '1224114714'?: Array; + /** + * With `skip_invalid=true`: the rejected User IDs are reported instead of failing + * the batch + */ + export interface UnionMember1 { + _meta?: UnionMember1._Meta; + + data?: UnionMember1.Data; + } + + export namespace UnionMember1 { + export interface _Meta { + _cache?: _Meta._Cache; + + _credits?: _Meta._Credits; + + _rate_limits?: _Meta._RateLimits; + } + + export namespace _Meta { + export interface _Cache { + is_cached?: boolean; + + note?: string; + } + + export interface _Credits { + balance?: number; + + note?: string; + + used?: number; + } + + export interface _RateLimits { + limit_day?: number; + + limit_minute?: number; + + remaining_day?: number; + + remaining_minute?: number; + } + } + + export interface Data { + added?: Array; + + failed?: Data.Failed; + } + + export namespace Data { + export interface Failed { + '123456'?: string; + } + } } } @@ -1190,6 +1258,17 @@ export interface UserAddParams { * Body param: Array of OnlyFans User IDs to be added into the list */ ids: Array; + + /** + * Body param: Set to `true` to skip the User IDs OnlyFans refuses instead of + * failing the whole batch. We drop the rejected IDs and retry the remainder for + * you (up to 5 OnlyFans attempts, each costing 1 credit), then respond `200` with + * `data.added` (the IDs that made it in) and `data.failed` (an object mapping each + * rejected User ID to the reason OnlyFans gave). Note this changes the shape of + * `data` — see the example responses. Failures that are not about individual users + * (e.g. an invalid or inaccessible list ID) still return the regular `400`. + */ + skip_invalid?: boolean; } export interface UserClearParams { diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1cc0959..c1971d62 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('eligendi'); + const responsePromise = client.accounts.disconnect('velit'); 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 7061c2fb..294bc697 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: 'temporibus', + auth_id: 'ducimus', auth_type: 'email_password', - cookies: 'magnam', + cookies: 'provident', customProxy: { host: 'proxy.example.com', - password: 'R)4wm6N', + password: 'XClg,kE`N{WMv', port: 8080, - username: 'et', + username: 'repudiandae', }, - email: 'aleen.bogan@example.org', - force_connect: false, - name: 'veritatis', - password: 'd~NiPl|eM[tQ8k6Hm', - proxyCountry: 'us', - user_agent: 'sunt', - xbc: 'aut', + email: 'jesse35@example.org', + force_connect: true, + name: 'doloremque', + password: 'B~Y[)bkr-ZvP?,FG', + proxyCountry: 'gb', + user_agent: 'ut', + xbc: 'ratione', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/chats/messages.test.ts b/tests/api-resources/chats/messages.test.ts index c7a99ce5..617a9ab3 100644 --- a/tests/api-resources/chats/messages.test.ts +++ b/tests/api-resources/chats/messages.test.ts @@ -175,6 +175,7 @@ describe('resource messages', () => { rfPartner: 'rfPartner', rfTag: 'rfTag', text: 'Hello!', + 'Idempotency-Key': 'a1b2c3d4-5e6f-4789-a0b1-c2d3e4f5a6b7', }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 086a44ab..a2cf1dd5 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('veniam', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/fans/fans.test.ts b/tests/api-resources/fans/fans.test.ts index 6745d44f..67f33c42 100644 --- a/tests/api-resources/fans/fans.test.ts +++ b/tests/api-resources/fans/fans.test.ts @@ -48,6 +48,7 @@ describe('resource fans', () => { { filter: { duration: 0, + max_total_spent: 0, online: null, tips: 0, total_spent: 0, @@ -83,6 +84,7 @@ describe('resource fans', () => { { filter: { duration: 0, + max_total_spent: 0, online: null, tips: 0, total_spent: 0, @@ -118,6 +120,7 @@ describe('resource fans', () => { { filter: { duration: 0, + max_total_spent: 0, online: null, tips: 0, total_spent: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 0195dda8..b8086966 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('cumque', { 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('cumque', { 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('cumque', { 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('cumque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8aee5efa..ea428640 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('enim', { 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('enim', { 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('enim', { 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('enim', { 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 96d399de..c1510622 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 81187bb4..76b7d1ca 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: ['qygeheyalwfygycqjpjmkuclq'] }, + filter: { tags: ['nkvyyklnijhilxxzddmvbi'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('quasi'); 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', + 'quasi', { 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('a'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'a', + 'et', { 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('dolor'); + const responsePromise = client.smartLinks.listFans('animi'); 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( - 'dolor', + 'animi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('autem'); + const responsePromise = client.smartLinks.listSpenders('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'autem', + 'ea', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aut'); + const responsePromise = client.smartLinks.retrieveCohortArps('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'ad', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eius'); + const responsePromise = client.smartLinks.retrieveStats('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'eius', + 'fuga', { 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 9e0f9412..c24659ee 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: 'b', tags: ['onpwuxzmrulamrmuyymhlkzp'] }, + filter: { search: 'bgzrgocotromkkjvh', tags: ['xbjs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'aevvmjdrljdlwjujqwangvkzr', tags: ['esjkltwnvlxqmq'] }, + filter: { search: 'q', tags: ['hppkr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ekxzdcqnksgvzsou', - tags: ['v'], + include_smart_links: true, + search: 'hwxqske', + tags: ['wactoeaxzoiq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qlojbg', - tags: ['hgimfghcleawlqqxjq'], + include_smart_links: false, + search: 'wenifjifbc', + tags: ['jleapsrx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..06f2e1a2 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('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('et', { + 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('et', { + 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('et', { + 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 d5072049..074a456d 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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('beatae', { 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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolores', { + const responsePromise = client.trackingLinks.getCohortArps('voluptates', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,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('nihil', { 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 213fe5cb..f526cc9c 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('saepe', { 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quasi', { + const responsePromise = client.trialLinks.listSubscribers('provident', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quasi', { + const response = await client.trialLinks.listSubscribers('provident', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eos', { + const response = await client.trialLinks.retrieveCohortArps('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('ea', { 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 903872e4..daf2d361 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: 'dybjkxucmthbcfwdltsetdrmk', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ctxewseyhvrgitxpb' }); 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: 'dybjkxucmthbcfwdltsetdrmk', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ctxewseyhvrgitxpb' }); }); // Mock server tests are disabled diff --git a/tests/api-resources/user-lists/users.test.ts b/tests/api-resources/user-lists/users.test.ts index 0fe19b83..5a0babd9 100644 --- a/tests/api-resources/user-lists/users.test.ts +++ b/tests/api-resources/user-lists/users.test.ts @@ -49,6 +49,7 @@ describe('resource users', () => { const response = await client.userLists.users.add('userListId', { account: 'acct_XXXXXXXXXXXXXXX', ids: ['string', 'string', 'string'], + skip_invalid: true, }); }); From c750efdb9a5de976d683ae46f4eb413c99b93418 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:12:35 +0000 Subject: [PATCH 230/309] 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 +- 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 | 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 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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 | 20 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 109 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4648608c..590627fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-34e6f479a1872e539a6ba6bbd44e66e1a10d978ae34a53a7f7499c4e93bafd2e.yml -openapi_spec_hash: 17e3d768656db29acf3d2068449bfa52 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2ce7e4faeac778d9c957f8bde601d21cd3430eac45582b017e5f9ae1c240426b.yml +openapi_spec_hash: 299b94ff934b6b607f0c539e453a4b41 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index af08fbef..244d145d 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('velit'); + * const response = await client.accounts.disconnect( + * 'provident', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6e375a4a..a97776b8 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( - * 'veniam', + * 'aliquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8b9edfb0..66ab3dcc 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( - * 'cumque', + * 'vitae', * { 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( - * 'cumque', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d88b6f3..9d7c2b24 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('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'doloribus', + * { + * 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('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'doloribus', + * { 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 a9767818..599a9525 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 e3a1ccf7..9ee7869c 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( - * 'quasi', - * ); + * const response = await client.smartLinks.listClicks('non'); * ``` */ listClicks( @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('animi'); + * const response = await client.smartLinks.listFans( + * 'adipisci', + * ); * ``` */ listFans( @@ -129,7 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ad'); + * await client.smartLinks.retrieveCohortArps('hic'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'fuga', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9a22ea28..a9c614a7 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', + * '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('occaecati', { + * 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 38836aef..11ee4f8f 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( - * 'beatae', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'beatae', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptates', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'nihil', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 61708fae..edfc8540 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( - * 'saepe', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('saepe', { + * const trialLink = await client.trialLinks.delete('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'provident', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ea', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c8ce9a34..f7269248 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: 'ctxewseyhvrgitxpb' }, + * { name: 'bixpizxpysrbfvo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1971d62..0c7347ee 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('velit'); + const responsePromise = client.accounts.disconnect('provident'); 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 294bc697..1f574d43 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_id: 'tempora', auth_type: 'email_password', - cookies: 'provident', + cookies: 'omnis', customProxy: { host: 'proxy.example.com', - password: 'XClg,kE`N{WMv', + password: '|u)i+AEpV', port: 8080, - username: 'repudiandae', + username: 'nisi', }, - email: 'jesse35@example.org', + email: 'reggie95@example.org', force_connect: true, - name: 'doloremque', - password: 'B~Y[)bkr-ZvP?,FG', + name: 'mollitia', + password: 'ia4K2HFS-woT9$OgZ}', proxyCountry: 'gb', - user_agent: 'ut', - xbc: 'ratione', + user_agent: 'itaque', + xbc: 'amet', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index a2cf1dd5..c26651ed 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('veniam', { + const responsePromise = client.engagement.messages.getMessageBuyers('aliquam', { 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('veniam', { + const response = await client.engagement.messages.getMessageBuyers('aliquam', { 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 b8086966..ceb8a9dd 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('cumque', { + const responsePromise = client.media.vault.lists.media.add('vitae', { 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('cumque', { + const response = await client.media.vault.lists.media.add('vitae', { 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('cumque', { + const responsePromise = client.media.vault.lists.media.remove('vitae', { 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('cumque', { + const response = await client.media.vault.lists.media.remove('vitae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ea428640..34af9e6c 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('enim', { + const responsePromise = client.posts.comments.create('doloribus', { 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('enim', { + const response = await client.posts.comments.create('doloribus', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('doloribus', { 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('enim', { + const response = await client.posts.comments.list('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 76b7d1ca..f1d0d89d 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: ['nkvyyklnijhilxxzddmvbi'] }, + filter: { tags: ['jjwclpzvuragybffkkscp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quasi'); + const responsePromise = client.smartLinks.listClicks('non'); 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( - 'quasi', + 'non', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('animi'); + const responsePromise = client.smartLinks.listFans('adipisci'); 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( - 'animi', + 'adipisci', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ea'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'et', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ad'); + const responsePromise = client.smartLinks.retrieveCohortArps('hic'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ad', + 'hic', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('fuga'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'fuga', + '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 c24659ee..cfe66a9f 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: 'bgzrgocotromkkjvh', tags: ['xbjs'] }, + filter: { search: 'uqetfktbmhqict', tags: ['ihoejyxc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'q', tags: ['hppkr'] }, + filter: { search: 'em', tags: ['sgiikiqlt'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'hwxqske', - tags: ['wactoeaxzoiq'], + search: 'xpsgxhifjxzqa', + tags: ['jjejvflpptxxpsu'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'wenifjifbc', - tags: ['jleapsrx'], + search: 'gsqsupqbuam', + tags: ['fkmxdguitmjzt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 06f2e1a2..fca45b0b 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('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('occaecati', { + 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('occaecati', { + 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('occaecati', { + 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 074a456d..70782925 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dicta', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptates', { - 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; @@ -112,7 +110,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('nihil', { + const response = await client.trackingLinks.getStats('porro', { 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 f526cc9c..b6dd60da 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quo', { 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('provident', { + const responsePromise = client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('provident', { + const response = await client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { + const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ea', { + const response = await client.trialLinks.retrieveStats('nemo', { 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 daf2d361..b28356d8 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: 'ctxewseyhvrgitxpb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bixpizxpysrbfvo' }); 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: 'ctxewseyhvrgitxpb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bixpizxpysrbfvo' }); }); // Mock server tests are disabled From 689d233e300522110065ec175be643ca2ee4e8e0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 01:12:37 +0000 Subject: [PATCH 231/309] 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 | 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 +++--- .../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 | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 115 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 590627fd..e930aa70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2ce7e4faeac778d9c957f8bde601d21cd3430eac45582b017e5f9ae1c240426b.yml -openapi_spec_hash: 299b94ff934b6b607f0c539e453a4b41 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c5b060da707f4bec752a51c5083de5dc6c62e5bbccb85335295fa6cd4ae565d.yml +openapi_spec_hash: 4bbb78d30cff486200a37644ccc6732c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 244d145d..d601dc74 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( - * 'provident', - * ); + * 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 a97776b8..e1b4d4cc 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( - * 'aliquam', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66ab3dcc..9297f6d6 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( - * 'vitae', + * 'voluptatibus', * { 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( - * 'vitae', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9d7c2b24..59dc36ac 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( - * 'doloribus', + * 'alias', * { * 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( - * 'doloribus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('alias', { + * 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 599a9525..a9767818 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 41feb4c0..2b04cbb2 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 9ee7869c..2b3f0f2a 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('non'); + * const response = await client.smartLinks.listClicks('nam'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'molestiae', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'adipisci', - * ); + * const response = await client.smartLinks.listFans('sunt'); * ``` */ listFans( @@ -129,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'officia', + * ); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('hic'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'id', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..903dabb3 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', + * 'aliquid', * { * 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('aliquid', { * 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 11ee4f8f..1fa6dba2 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( - * 'dicta', + * 'blanditiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dicta', + * 'blanditiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('excepturi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'porro', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index edfc8540..64b2fdea 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('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'doloribus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'doloribus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quia', + * 'quidem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('quasi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nemo', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f7269248..f2ef9330 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: 'bixpizxpysrbfvo' }, + * { name: 'glhesvw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0c7347ee..21fceee9 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('provident'); + 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 1f574d43..911c3502 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: 'omnis', + auth_id: 'fugit', + auth_type: 'mobile_app', + cookies: 'dolore', customProxy: { host: 'proxy.example.com', - password: '|u)i+AEpV', + password: 'l$M`~[AuAfIK', port: 8080, - username: 'nisi', + username: 'et', }, - email: 'reggie95@example.org', - force_connect: true, - name: 'mollitia', - password: 'ia4K2HFS-woT9$OgZ}', - proxyCountry: 'gb', - user_agent: 'itaque', - xbc: 'amet', + email: 'rachel.cummerata@example.com', + force_connect: false, + name: 'dolores', + password: 'O"6M.1\'zk2', + proxyCountry: 'us', + user_agent: 'exercitationem', + xbc: 'cupiditate', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index c26651ed..228253e8 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('aliquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('expedita', { 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('aliquam', { + const response = await client.engagement.messages.getMessageBuyers('expedita', { 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 ceb8a9dd..8ba3d1d5 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('vitae', { + const responsePromise = client.media.vault.lists.media.add('voluptatibus', { 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('vitae', { + const response = await client.media.vault.lists.media.add('voluptatibus', { 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('vitae', { + const responsePromise = client.media.vault.lists.media.remove('voluptatibus', { 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('vitae', { + const response = await client.media.vault.lists.media.remove('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 34af9e6c..ea577e06 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('doloribus', { + 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('doloribus', { + 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('doloribus', { 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('doloribus', { + const response = await client.posts.comments.list('alias', { 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 8e5b0566..4ec8acc7 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 c1510622..96d399de 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 6b1dc2fd..d13ad1ce 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 f1d0d89d..d9126569 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: ['jjwclpzvuragybffkkscp'] }, + filter: { tags: ['q'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('non'); + const responsePromise = client.smartLinks.listClicks('nam'); 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( - 'non', + 'nam', { 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('et'); + const responsePromise = client.smartLinks.listConversions('molestiae'); 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( - 'et', + 'molestiae', { 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('adipisci'); + const responsePromise = client.smartLinks.listFans('sunt'); 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( - 'adipisci', + 'sunt', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('officia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'officia', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('hic'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'hic', + 'est', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'id', { 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 cfe66a9f..4c001e81 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: 'uqetfktbmhqict', tags: ['ihoejyxc'] }, + filter: { search: 'kurwuytwmpubwhhallswydwo', tags: ['ubaskblgbenbgb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'em', tags: ['sgiikiqlt'] }, + filter: { search: 'kkhuyhyhbmpjzwluiy', tags: ['pqm'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'xpsgxhifjxzqa', - tags: ['jjejvflpptxxpsu'], + search: 'wwneiprsb', + tags: ['xoxiukq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gsqsupqbuam', - tags: ['fkmxdguitmjzt'], + include_smart_links: true, + search: 'mbgefwoiwnicnyylcivnxdyy', + tags: ['vxhthnylpsp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..37d3683f 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('aliquid', { 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('aliquid', { 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('aliquid', { 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('aliquid', { 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 70782925..7392f78e 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('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('blanditiis', { 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('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('blanditiis', { 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('excepturi', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('porro', { + const response = await client.trackingLinks.getStats('nihil', { 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 b6dd60da..d0ca0fe0 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('doloribus', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quia', { + const responsePromise = client.trialLinks.listSubscribers('quidem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quia', { + const response = await client.trialLinks.listSubscribers('quidem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('quasi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('quasi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nemo', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nemo', { + 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 b28356d8..30dcda07 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: 'bixpizxpysrbfvo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'glhesvw' }); 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: 'bixpizxpysrbfvo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'glhesvw' }); }); // Mock server tests are disabled From 31ed2877f1d4402b4754a182aa5879aab7bd385a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 18:12:37 +0000 Subject: [PATCH 232/309] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/data-exports.ts | 16 +++++++++---- 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 | 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 +++++++++---------- 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 +- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 18 +++++++------- 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 ++-- 30 files changed, 115 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index e930aa70..60420b5b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2c5b060da707f4bec752a51c5083de5dc6c62e5bbccb85335295fa6cd4ae565d.yml -openapi_spec_hash: 4bbb78d30cff486200a37644ccc6732c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15697c64ce0e5f2b490492854e85471ddc66ec9593502b053b6c21fc78baff51.yml +openapi_spec_hash: 09ce808b20cd019e2feddd877f251c82 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d601dc74..3803959b 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('vel'); + * const response = await client.accounts.disconnect( + * 'exercitationem', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/data-exports.ts b/src/resources/data-exports.ts index c1631a20..141f35e0 100644 --- a/src/resources/data-exports.ts +++ b/src/resources/data-exports.ts @@ -537,7 +537,8 @@ export interface DataExportCreateParams { /** * The output file format. Supported formats vary by export type: `csv` or `xlsx` * for transactions, chat_messages, trial_links, tracking_links, smart_links, - * payouts, chargebacks, public_profiles, fans, followings; `zip` for media_vault. + * payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` + * for media_vault. */ file_type: 'csv' | 'xlsx' | 'zip'; @@ -547,7 +548,9 @@ export interface DataExportCreateParams { start_date: string; /** - * The type of data to export + * The type of data to export. `profile_visitors` returns one row per account per + * day, scraped one day at a time so the daily numbers are not aggregated away by + * OnlyFans. */ type: | 'transactions' @@ -560,7 +563,8 @@ export interface DataExportCreateParams { | 'chargebacks' | 'public_profiles' | 'fans' - | 'followings'; + | 'followings' + | 'profile_visitors'; /** * Array of account prefixed IDs to export data from. Not required for @@ -647,9 +651,13 @@ export interface DataExportListParams { | 'media_vault' | 'trial_links' | 'tracking_links' + | 'smart_links' | 'payouts' | 'chargebacks' - | 'public_profiles'; + | 'public_profiles' + | 'fans' + | 'followings' + | 'profile_visitors'; } export declare namespace DataExports { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e1b4d4cc..14598ac7 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( - * 'expedita', + * 'vero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 9297f6d6..d62bfa6c 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( - * 'voluptatibus', + * '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( - * 'voluptatibus', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 59dc36ac..873c6a38 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', + * 'fugit', * { * 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('alias', { + * const comments = await client.posts.comments.list('fugit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..09d6973d 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 2b04cbb2..41feb4c0 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 2b3f0f2a..559eb7f1 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('nam'); + * const response = await client.smartLinks.listClicks('est'); * ``` */ listClicks( @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sunt'); + * const response = await client.smartLinks.listFans( + * 'consequatur', + * ); * ``` */ listFans( @@ -127,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'officia', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'id', + * 'magni', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 903dabb3..0315effe 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( - * 'aliquid', + * 'vitae', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aliquid', { + * await client.stories.highlights.removeStory('vitae', { * 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 1fa6dba2..38dce592 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( - * 'blanditiis', + * 'ad', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'blanditiis', + * 'ad', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('excepturi', { + * await client.trackingLinks.getCohortArps('tempore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'nihil', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ea', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 64b2fdea..3e3f27ea 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( - * 'doloribus', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'doloribus', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quidem', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quasi', { + * await client.trialLinks.retrieveCohortArps('explicabo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorum', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f2ef9330..a640c3c8 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: 'glhesvw' }, + * { name: 'i' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 21fceee9..953f1f68 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('exercitationem'); 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 911c3502..720e6669 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: 'fugit', - auth_type: 'mobile_app', - cookies: 'dolore', + auth_id: 'amet', + auth_type: 'raw_data', + cookies: 'eius', customProxy: { host: 'proxy.example.com', - password: 'l$M`~[AuAfIK', + password: 'Yo!3!F;"qF%(', port: 8080, - username: 'et', + username: 'rerum', }, - email: 'rachel.cummerata@example.com', - force_connect: false, - name: 'dolores', - password: 'O"6M.1\'zk2', - proxyCountry: 'us', - user_agent: 'exercitationem', - xbc: 'cupiditate', + email: 'velma.kling@example.com', + force_connect: true, + name: 'qui', + password: '+h+s^79Uu%y!M=', + proxyCountry: 'uk', + user_agent: 'dolorem', + xbc: 'suscipit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 228253e8..42e437ca 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('expedita', { + const responsePromise = client.engagement.messages.getMessageBuyers('vero', { 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('expedita', { + const response = await client.engagement.messages.getMessageBuyers('vero', { 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 8ba3d1d5..b67c2a66 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('voluptatibus', { + 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('voluptatibus', { + 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('voluptatibus', { + 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('voluptatibus', { + const response = await client.media.vault.lists.media.remove('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ea577e06..82fa2093 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('fugit', { 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('fugit', { 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('fugit', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..e2edc676 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 96d399de..c1510622 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d9126569..9c9f4d0d 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: ['q'] }, + filter: { tags: ['jhyjnfspmdel'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nam'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'nam', + 'est', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('sunt'); + const responsePromise = client.smartLinks.listFans('consequatur'); 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( - 'sunt', + 'consequatur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('officia'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'officia', + 'et', { limit: 50, minSpend: 1, @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('id'); + const responsePromise = client.smartLinks.retrieveStats('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + '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 4c001e81..d190dbe7 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: 'kurwuytwmpubwhhallswydwo', tags: ['ubaskblgbenbgb'] }, + filter: { search: 'mymstyaishowzgtcmvbz', tags: ['dow'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kkhuyhyhbmpjzwluiy', tags: ['pqm'] }, + filter: { search: 'dhimipa', tags: ['uejkdgkjfdqt'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'wwneiprsb', - tags: ['xoxiukq'], + search: 'yleyhvepnvixnvz', + tags: ['upj'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'mbgefwoiwnicnyylcivnxdyy', - tags: ['vxhthnylpsp'], + search: 'jmiyhiwoqs', + tags: ['creggetfgqmeczszfl'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 37d3683f..34f3d5a7 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('aliquid', { + const responsePromise = client.stories.highlights.addStory('vitae', { 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('aliquid', { + const response = await client.stories.highlights.addStory('vitae', { 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('aliquid', { + const responsePromise = client.stories.highlights.removeStory('vitae', { 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('aliquid', { + const response = await client.stories.highlights.removeStory('vitae', { 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 7392f78e..84c3b950 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('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ad', { 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('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('excepturi', { + const responsePromise = client.trackingLinks.getCohortArps('tempore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('excepturi', { + const response = await client.trackingLinks.getCohortArps('tempore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('nihil', { + const response = await client.trackingLinks.getStats('ea', { 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 d0ca0fe0..63a97f19 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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eveniet', { 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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quidem', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quidem', { + const response = await client.trialLinks.listSubscribers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quasi', { + const responsePromise = client.trialLinks.retrieveCohortArps('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quasi', { + const response = await client.trialLinks.retrieveCohortArps('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('sed', { 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 30dcda07..758bd31d 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: 'glhesvw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'i' }); 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: 'glhesvw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'i' }); }); // Mock server tests are disabled From 3e0a345062bac966959f3b7721f0406ff69fdab5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 19:14:17 +0000 Subject: [PATCH 233/309] 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 | 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 +++--- 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 112 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60420b5b..73ae68b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-15697c64ce0e5f2b490492854e85471ddc66ec9593502b053b6c21fc78baff51.yml -openapi_spec_hash: 09ce808b20cd019e2feddd877f251c82 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0051b267b340d73100cc82c613c23c169ec33f841a3fcf6246bf80a16ff1394c.yml +openapi_spec_hash: c026386eab286b73bfd3b742a83be83d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3803959b..6bb6558e 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( - * 'exercitationem', - * ); + * 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 14598ac7..59e1dffc 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( - * 'vero', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d62bfa6c..b4f8cba9 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', + * 'vel', * { 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', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 873c6a38..766446df 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( - * 'fugit', + * 'laboriosam', * { * 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('fugit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'laboriosam', + * { 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 09d6973d..a9767818 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 41feb4c0..2b04cbb2 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 559eb7f1..c470160d 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('est'); + * const response = await client.smartLinks.listClicks( + * 'culpa', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'molestiae', + * 'voluptatem', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'consequatur', + * 'maiores', * ); * ``` */ @@ -129,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'dignissimos', + * ); * ``` */ listSpenders( @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('eum'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'magni', + * 'quisquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 0315effe..e5655b14 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( - * 'vitae', + * 'quam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('vitae', { + * await client.stories.highlights.removeStory('quam', { * 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 38dce592..5ba24f5e 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( - * 'ad', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ad', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('tempore', { + * await client.trackingLinks.getCohortArps('consequatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'ducimus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3e3f27ea..0930735a 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( - * 'eveniet', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'eveniet', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'magni', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('explicabo', { + * await client.trialLinks.retrieveCohortArps('quibusdam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sed', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a640c3c8..9c4fd820 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: 'i' }, + * { name: 'nrmxdeecfdtvk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 953f1f68..5756d5ab 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('exercitationem'); + 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 720e6669..5451ab13 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: 'amet', - auth_type: 'raw_data', - cookies: 'eius', + auth_id: 'neque', + auth_type: 'mobile_app', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: 'Yo!3!F;"qF%(', + password: 'j77&|r8;8K^*0S', port: 8080, - username: 'rerum', + username: 'quis', }, - email: 'velma.kling@example.com', + email: 'hoeger.curt@example.com', force_connect: true, - name: 'qui', - password: '+h+s^79Uu%y!M=', - proxyCountry: 'uk', - user_agent: 'dolorem', - xbc: 'suscipit', + name: 'error', + password: 'cr<@uML?]9', + proxyCountry: 'us', + user_agent: 'ad', + 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 42e437ca..338c9dac 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('vero', { + const responsePromise = client.engagement.messages.getMessageBuyers('qui', { 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('vero', { + const response = await client.engagement.messages.getMessageBuyers('qui', { 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 b67c2a66..b27b7737 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('vel', { 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('vel', { 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 82fa2093..c61da0f4 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('fugit', { + const responsePromise = client.posts.comments.create('laboriosam', { 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('fugit', { + const response = await client.posts.comments.create('laboriosam', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('laboriosam', { 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('fugit', { + const response = await client.posts.comments.list('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 c1510622..96d399de 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 9c9f4d0d..4e7de545 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: ['jhyjnfspmdel'] }, + filter: { tags: ['cmaxvxnrrbviacotv'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('culpa'); 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( - 'est', + 'culpa', { 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('molestiae'); + const responsePromise = client.smartLinks.listConversions('voluptatem'); 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( - 'molestiae', + 'voluptatem', { 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('consequatur'); + const responsePromise = client.smartLinks.listFans('maiores'); 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( - 'consequatur', + 'maiores', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('dignissimos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'dignissimos', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'est', + 'eum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('magni'); + const responsePromise = client.smartLinks.retrieveStats('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'quisquam', { 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 d190dbe7..5140bceb 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: 'mymstyaishowzgtcmvbz', tags: ['dow'] }, + filter: { search: 'uwnjoxnqvpixtj', tags: ['fmjqspwcttmvvf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dhimipa', tags: ['uejkdgkjfdqt'] }, + filter: { search: 'odycuklxbwgykzolkmxjdqla', tags: ['ubfzyquctn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'yleyhvepnvixnvz', - tags: ['upj'], + search: 'qaaepqnrethkl', + tags: ['iafiytwsycdmln'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'jmiyhiwoqs', - tags: ['creggetfgqmeczszfl'], + search: 'b', + tags: ['ktntpbycprcqnk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 34f3d5a7..762c57bf 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('vitae', { + const responsePromise = client.stories.highlights.addStory('quam', { 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('vitae', { + const response = await client.stories.highlights.addStory('quam', { 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('vitae', { + const responsePromise = client.stories.highlights.removeStory('quam', { 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('vitae', { + const response = await client.stories.highlights.removeStory('quam', { 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 84c3b950..990f216d 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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('autem', { 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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('tempore', { + const responsePromise = client.trackingLinks.getCohortArps('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('tempore', { + const response = await client.trackingLinks.getCohortArps('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ea', { + const response = await client.trackingLinks.getStats('ducimus', { 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 63a97f19..43714cbd 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('praesentium', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('magni', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('magni', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('explicabo', { + const responsePromise = client.trialLinks.retrieveCohortArps('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('explicabo', { + const response = await client.trialLinks.retrieveCohortArps('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('sed', { + const response = await client.trialLinks.retrieveStats('suscipit', { 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 758bd31d..405d8c16 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: 'i' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrmxdeecfdtvk' }); 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: 'i' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrmxdeecfdtvk' }); }); // Mock server tests are disabled From ec2634a995a791f6ccddc7b67f7d4c6d1bb8f7e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:12:37 +0000 Subject: [PATCH 234/309] 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 +- .../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 | 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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 112 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index 73ae68b0..da2ced40 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0051b267b340d73100cc82c613c23c169ec33f841a3fcf6246bf80a16ff1394c.yml -openapi_spec_hash: c026386eab286b73bfd3b742a83be83d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-901d18ae0073230cbc072f729528c17043fde31d4a7a993dd1d1ed1a786e9dce.yml +openapi_spec_hash: ed64e03b24764680ba2d50c82d9cb426 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..3d2901a9 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('quam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 59e1dffc..15922dc3 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('qui', { + * await client.engagement.messages.getMessageBuyers('ex', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b4f8cba9..af9ad358 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( - * 'vel', + * '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( - * 'vel', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 766446df..9156b3b0 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( - * 'laboriosam', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('quia', { + * 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( - * 'laboriosam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('quia', { + * 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 a9767818..e20f70d1 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 2b04cbb2..41feb4c0 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 c470160d..94a62fc9 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('est'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptatem', + * 'qui', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'maiores', - * ); + * const response = await client.smartLinks.listFans('sunt'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dignissimos', + * 'omnis', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eum'); + * await client.smartLinks.retrieveCohortArps('ut'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quisquam', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e5655b14..40b1fed8 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( - * 'quam', + * 'officiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quam', { + * await client.stories.highlights.removeStory('officiis', { * 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 5ba24f5e..a3aad44a 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( - * 'autem', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'autem', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('consequatur', { + * 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( - * 'ducimus', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0930735a..098a0ee8 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( - * 'praesentium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('eius', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'praesentium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('eius', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'magni', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quibusdam', { + * await client.trialLinks.retrieveCohortArps('reiciendis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'suscipit', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9c4fd820..5542f947 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: 'nrmxdeecfdtvk' }, + * { name: 'btsxknjjwrgwukfe' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..72523658 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('quam'); 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 5451ab13..df92030d 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: 'neque', + auth_id: 'non', auth_type: 'mobile_app', - cookies: 'est', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'j77&|r8;8K^*0S', + password: "YGO<(w'", port: 8080, - username: 'quis', + username: 'voluptatum', }, - email: 'hoeger.curt@example.com', - force_connect: true, - name: 'error', - password: 'cr<@uML?]9', - proxyCountry: 'us', - user_agent: 'ad', - xbc: 'nobis', + email: 'marquis.brekke@example.com', + force_connect: false, + name: 'totam', + password: 'LP,:xl`z/S1%/wy', + proxyCountry: 'uk', + user_agent: 'et', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 338c9dac..169f226e 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('qui', { + const responsePromise = client.engagement.messages.getMessageBuyers('ex', { 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('qui', { + const response = await client.engagement.messages.getMessageBuyers('ex', { 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 b27b7737..e6c1db3e 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('vel', { + 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('vel', { + 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('vel', { + 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('vel', { + 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 e56040c2..42643a65 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 c61da0f4..db4e8976 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('laboriosam', { + const responsePromise = client.posts.comments.create('quia', { 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('laboriosam', { + const response = await client.posts.comments.create('quia', { 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('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quia', { 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('laboriosam', { + const response = await client.posts.comments.list('quia', { 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 4ec8acc7..fd74b68f 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 4e7de545..8d1b78f1 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: ['cmaxvxnrrbviacotv'] }, + filter: { tags: ['ezelqjxmjimobf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('culpa'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'culpa', + 'est', { 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('voluptatem'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'voluptatem', + 'qui', { 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('maiores'); + const responsePromise = client.smartLinks.listFans('sunt'); 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( - 'maiores', + 'sunt', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dignissimos'); + const responsePromise = client.smartLinks.listSpenders('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'dignissimos', + 'omnis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eum'); + const responsePromise = client.smartLinks.retrieveCohortArps('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'ut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quisquam'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quisquam', + '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 5140bceb..22b08f57 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: 'uwnjoxnqvpixtj', tags: ['fmjqspwcttmvvf'] }, + filter: { search: 'kk', tags: ['hbuhiyzwt'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'odycuklxbwgykzolkmxjdqla', tags: ['ubfzyquctn'] }, + filter: { search: 'gtkafsbfedgs', tags: ['jptykqgptz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qaaepqnrethkl', - tags: ['iafiytwsycdmln'], + include_smart_links: false, + search: 'fsucqeolxriyl', + tags: ['ivxssdjtavrrpoymokbxmxjyq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'b', - tags: ['ktntpbycprcqnk'], + include_smart_links: false, + search: 'lsieaypdykcbi', + tags: ['dmfqnjtq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 762c57bf..14bf7d90 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('quam', { + const responsePromise = client.stories.highlights.addStory('officiis', { 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('quam', { + const response = await client.stories.highlights.addStory('officiis', { 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('quam', { + const responsePromise = client.stories.highlights.removeStory('officiis', { 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('quam', { + const response = await client.stories.highlights.removeStory('officiis', { 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 990f216d..70ccce48 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('pariatur', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('consequatur', { + const responsePromise = client.trackingLinks.getCohortArps('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('consequatur', { + const response = await client.trackingLinks.getCohortArps('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ducimus', { + const response = await client.trackingLinks.getStats('nostrum', { 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 43714cbd..9df0160c 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('praesentium', { 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('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('praesentium', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('magni', { + const responsePromise = client.trialLinks.listSubscribers('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('magni', { + const response = await client.trialLinks.listSubscribers('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quibusdam', { + const responsePromise = client.trialLinks.retrieveCohortArps('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('suscipit', { + const response = await client.trialLinks.retrieveStats('labore', { 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 405d8c16..051ff912 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: 'nrmxdeecfdtvk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'btsxknjjwrgwukfe' }); 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: 'nrmxdeecfdtvk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'btsxknjjwrgwukfe' }); }); // Mock server tests are disabled From 272c179ea75ee89878cdcb266cdab091da482665 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 03:12:38 +0000 Subject: [PATCH 235/309] 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 | 14 +++++----- src/resources/statistics/statistics.ts | 6 +++++ 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 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- .../statistics/statistics.test.ts | 1 + 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 +-- 29 files changed, 122 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index da2ced40..c8a9d548 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-901d18ae0073230cbc072f729528c17043fde31d4a7a993dd1d1ed1a786e9dce.yml -openapi_spec_hash: ed64e03b24764680ba2d50c82d9cb426 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7fb04b7318a956be18b88bb8ec2c972ef3225505d36876b1cabd703546d81590.yml +openapi_spec_hash: 4d67fe9decba5dca8538c3a8e5bd584f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3d2901a9..ca6cda03 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('quam'); + * 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 15922dc3..ce7a4d9d 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('ex', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'velit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..66ab3dcc 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', + * 'vitae', * { 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', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9156b3b0..fb4ca00b 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('quia', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'corporis', + * { + * 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('quia', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'corporis', + * { 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 e20f70d1..a9767818 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/smart-links.ts b/src/resources/smart-links.ts index 94a62fc9..1a3bf5b8 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('quia'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'ut', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sunt'); + * const response = await client.smartLinks.listFans( + * 'repellat', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'omnis', + * 'unde', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ut'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'quae', * ); * ``` */ diff --git a/src/resources/statistics/statistics.ts b/src/resources/statistics/statistics.ts index 42893c0b..9f91810e 100644 --- a/src/resources/statistics/statistics.ts +++ b/src/resources/statistics/statistics.ts @@ -428,6 +428,12 @@ export interface StatisticGetSubscriberMetricsParams { * time out if timeframe is too large. Default = `false` */ detailed?: boolean | null; + + /** + * Use only with `detailed=true` - otherwise, it has no effect. Filter the + * subscriber statistics (default = total) + */ + detailed_type?: 'total' | 'renew' | 'new' | null; } Statistics.Statements = Statements; diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 40b1fed8..a9c614a7 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( - * 'officiis', + * '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('officiis', { + * 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 a3aad44a..d03f191a 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( - * 'pariatur', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'pariatur', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('temporibus', { + * 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( - * 'nostrum', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 098a0ee8..9e176bc2 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('eius', { + * const trialLink = await client.trialLinks.retrieve('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eius', { + * const trialLink = await client.trialLinks.delete('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sit', + * 'inventore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('reiciendis', { + * await client.trialLinks.retrieveCohortArps('tempore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'labore', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5542f947..ca171d25 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: 'btsxknjjwrgwukfe' }, + * { name: 'kc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 72523658..8da98ca8 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('quam'); + 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 df92030d..98ce3dca 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: 'mobile_app', - cookies: 'et', + auth_id: 'eius', + auth_type: 'raw_data', + cookies: 'quia', customProxy: { host: 'proxy.example.com', - password: "YGO<(w'", + password: '2)LeU\\G/G', port: 8080, - username: 'voluptatum', + username: 'aut', }, - email: 'marquis.brekke@example.com', - force_connect: false, - name: 'totam', - password: 'LP,:xl`z/S1%/wy', - proxyCountry: 'uk', - user_agent: 'et', - xbc: 'voluptatem', + email: 'yschmitt@example.net', + force_connect: true, + name: 'mollitia', + password: "0,N%='Vj@=]l^E", + proxyCountry: 'gb', + user_agent: 'amet', + 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 169f226e..e5d04d9a 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('ex', { + const responsePromise = client.engagement.messages.getMessageBuyers('velit', { 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('ex', { + const response = await client.engagement.messages.getMessageBuyers('velit', { 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 e6c1db3e..ceb8a9dd 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('vitae', { 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('vitae', { 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('vitae', { 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('vitae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..25333899 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 db4e8976..ac741150 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('quia', { + const responsePromise = client.posts.comments.create('corporis', { 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('quia', { + const response = await client.posts.comments.create('corporis', { 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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('corporis', { 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('quia', { + const response = await client.posts.comments.list('corporis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..4ec8acc7 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 8d1b78f1..f5d56129 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: ['ezelqjxmjimobf'] }, + filter: { tags: ['jksptgcxn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('quia'); 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( - 'est', + 'quia', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('ut'); 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( - 'qui', + 'ut', { 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('sunt'); + const responsePromise = client.smartLinks.listFans('repellat'); 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( - 'sunt', + 'repellat', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('omnis'); + const responsePromise = client.smartLinks.listSpenders('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'omnis', + 'unde', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ut'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('quae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'quae', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/statistics/statistics.test.ts b/tests/api-resources/statistics/statistics.test.ts index 76b1755a..5452ad63 100644 --- a/tests/api-resources/statistics/statistics.test.ts +++ b/tests/api-resources/statistics/statistics.test.ts @@ -81,6 +81,7 @@ describe('resource statistics', () => { end_date: '2025-03-31 23:59:59', start_date: '2025-01-01 00:00:00', detailed: false, + detailed_type: 'total', }); }); }); diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 22b08f57..08d6f956 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: 'kk', tags: ['hbuhiyzwt'] }, + filter: { search: 'byvpxkmqtacabqtt', tags: ['lxtterp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gtkafsbfedgs', tags: ['jptykqgptz'] }, + filter: { search: 'onwwkqvik', tags: ['j'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'fsucqeolxriyl', - tags: ['ivxssdjtavrrpoymokbxmxjyq'], + include_smart_links: true, + search: 'xaedhzfepfeaovnnihtrxqxd', + tags: ['ztsgjacndpflmdrxpoyiudrl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'lsieaypdykcbi', - tags: ['dmfqnjtq'], + search: 'bdkcpdadsq', + tags: ['ochojeodrutkwpizbbig'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 14bf7d90..fca45b0b 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('officiis', { + 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('officiis', { + 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('officiis', { + 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('officiis', { + 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 70ccce48..8815f584 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('rem', { 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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('temporibus', { + const responsePromise = client.trackingLinks.getCohortArps('ratione', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,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('ratione', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('nostrum', { + const response = await client.trackingLinks.getStats('aspernatur', { 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 9df0160c..6facedb6 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('enim', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sit', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sit', { + const response = await client.trialLinks.listSubscribers('inventore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('reiciendis', { + const responsePromise = client.trialLinks.retrieveCohortArps('tempore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('reiciendis', { + const response = await client.trialLinks.retrieveCohortArps('tempore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('labore', { + const response = await client.trialLinks.retrieveStats('suscipit', { 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 051ff912..166fa613 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: 'btsxknjjwrgwukfe' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kc' }); 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: 'btsxknjjwrgwukfe' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kc' }); }); // Mock server tests are disabled From 5b0665890241f975296e598ba372798e2503c50e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 05:12:36 +0000 Subject: [PATCH 236/309] 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/posts/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 | 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 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 28 files changed, 118 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8a9d548..fb85fa7b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7fb04b7318a956be18b88bb8ec2c972ef3225505d36876b1cabd703546d81590.yml -openapi_spec_hash: 4d67fe9decba5dca8538c3a8e5bd584f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26d242bf8bba4ea78c767ab736c06cf502c13ee0ec7423b5719b5c4858e163ea.yml +openapi_spec_hash: 87dff8cf9517213ce7c5a4521c9d7e08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda03..88da1ab7 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('id'); + * const response = await client.accounts.disconnect('sunt'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index ce7a4d9d..c99831a8 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( - * 'velit', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66ab3dcc..60d2df49 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( - * 'vitae', + * 'rem', * { 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( - * 'vitae', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fb4ca00b..2895b0f0 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( - * 'corporis', + * 'dignissimos', * { * 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( - * 'corporis', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..2b04cbb2 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 1a3bf5b8..3d80f906 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( + * 'doloremque', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'eius', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'repellat', + * 'suscipit', * ); * ``` */ @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'unde', + * 'provident', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('perferendis'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quae', + * 'quia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..91024512 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', + * 'consequuntur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'consequuntur', + * { + * 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 d03f191a..7fff06be 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( - * 'rem', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rem', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ratione', { + * await client.trackingLinks.getCohortArps('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aspernatur', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9e176bc2..dd827b4c 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('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'asperiores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'asperiores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'inventore', + * 'quo', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('tempore', { + * await client.trialLinks.retrieveCohortArps('nesciunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'suscipit', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ca171d25..e04157b7 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: 'kc' }, + * { name: 'zrdnpftdmggmcikmpsvipan' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca8..26b92210 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('sunt'); 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 98ce3dca..c07df9c2 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: 'eius', - auth_type: 'raw_data', - cookies: 'quia', + auth_id: 'et', + auth_type: 'mobile_app', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: '2)LeU\\G/G', + password: '6t/6/12YB{l1]8', port: 8080, - username: 'aut', + username: 'delectus', }, - email: 'yschmitt@example.net', + email: 'sauer.gideon@example.org', force_connect: true, - name: 'mollitia', - password: "0,N%='Vj@=]l^E", - proxyCountry: 'gb', - user_agent: 'amet', - xbc: 'qui', + name: 'nam', + password: 'P"-cez', + proxyCountry: 'uk', + user_agent: 'minima', + xbc: 'perferendis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 e5d04d9a..c425956a 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('velit', { + const responsePromise = client.engagement.messages.getMessageBuyers('accusantium', { 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('velit', { + const response = await client.engagement.messages.getMessageBuyers('accusantium', { 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 ceb8a9dd..f74e4edc 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('vitae', { + const responsePromise = client.media.vault.lists.media.add('rem', { 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('vitae', { + const response = await client.media.vault.lists.media.add('rem', { 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('vitae', { + const responsePromise = client.media.vault.lists.media.remove('rem', { 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('vitae', { + const response = await client.media.vault.lists.media.remove('rem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ac741150..a0fd3c5c 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('corporis', { + const responsePromise = client.posts.comments.create('dignissimos', { 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('corporis', { + const response = await client.posts.comments.create('dignissimos', { 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('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dignissimos', { 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('corporis', { + const response = await client.posts.comments.list('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..96d399de 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f5d56129..d42958fa 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: ['jksptgcxn'] }, + filter: { tags: ['ulalpvjh'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quia'); + const responsePromise = client.smartLinks.listClicks('doloremque'); 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( - 'quia', + 'doloremque', { 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('ut'); + const responsePromise = client.smartLinks.listConversions('eius'); 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( - 'ut', + 'eius', { 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('repellat'); + const responsePromise = client.smartLinks.listFans('suscipit'); 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( - 'repellat', + 'suscipit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('unde'); + const responsePromise = client.smartLinks.listSpenders('provident'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'unde', + 'provident', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('perferendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'perferendis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quae'); + const responsePromise = client.smartLinks.retrieveStats('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quae', + '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 08d6f956..23ed5caf 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: 'byvpxkmqtacabqtt', tags: ['lxtterp'] }, + filter: { search: 'icplsmfctmfnrttw', tags: ['f'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'onwwkqvik', tags: ['j'] }, + filter: { search: 'mrooljactvjimkjrvfk', tags: ['fhyxjmzfkeudflwupkt'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'xaedhzfepfeaovnnihtrxqxd', - tags: ['ztsgjacndpflmdrxpoyiudrl'], + search: 'dnwouvihznylvtmxskj', + tags: ['qvsygtbumsmao'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bdkcpdadsq', - tags: ['ochojeodrutkwpizbbig'], + include_smart_links: true, + search: 'wvtdsbehawdpsk', + tags: ['yj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..7432ade3 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('consequuntur', { 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('consequuntur', { 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('consequuntur', { 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('consequuntur', { 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 8815f584..aa5e8abc 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('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ut', { 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('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ratione', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('nulla', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,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('nulla', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aspernatur', { 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; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aspernatur', { + 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 6facedb6..9d7bfe24 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('asperiores', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('quo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('quo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('tempore', { + const responsePromise = client.trialLinks.retrieveCohortArps('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('tempore', { + const response = await client.trialLinks.retrieveCohortArps('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('vitae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('suscipit', { + const response = await client.trialLinks.retrieveStats('vitae', { 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 166fa613..fea20eef 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: 'kc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'zrdnpftdmggmcikmpsvipan', + }); 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: 'kc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'zrdnpftdmggmcikmpsvipan', + }); }); // Mock server tests are disabled From 417ad1be06dca832aaa46e36381283a7aafb0ee5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 14:12:38 +0000 Subject: [PATCH 237/309] 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 +++---- 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 | 25 +++++++++--------- 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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 25 files changed, 112 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb85fa7b..41a52929 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-26d242bf8bba4ea78c767ab736c06cf502c13ee0ec7423b5719b5c4858e163ea.yml -openapi_spec_hash: 87dff8cf9517213ce7c5a4521c9d7e08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-613af136f5c7dc6e23778725bbc12bcb401c4c6b9ea23a39f1829a0a78f765c0.yml +openapi_spec_hash: a29028052b286ae5243ff22ec8222806 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 88da1ab7..fa59de7c 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('sunt'); + * const response = await client.accounts.disconnect( + * 'repellendus', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c99831a8..a218cad4 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( - * 'accusantium', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 60d2df49..a0e5582a 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( - * 'rem', + * 'omnis', * { 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( - * 'rem', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 2895b0f0..12edd193 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( - * 'dignissimos', + * '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( - * 'dignissimos', - * { 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/smart-links.ts b/src/resources/smart-links.ts index 3d80f906..549493ab 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( - * 'doloremque', + * 'velit', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eius', + * 'molestiae', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'suscipit', - * ); + * const response = await client.smartLinks.listFans('ut'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'provident', + * 'rerum', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('perferendis'); + * await client.smartLinks.retrieveCohortArps('harum'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 91024512..9878a980 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( - * 'consequuntur', + * 'ea', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequuntur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('ea', { + * 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 7fff06be..a98b0883 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( - * 'ut', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ut', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nulla', { + * await client.trackingLinks.getCohortArps('veniam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'molestiae', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index dd827b4c..62f0edd2 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( - * 'asperiores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('a', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'asperiores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('a', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quo', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,9 +153,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nesciunt', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.trialLinks.retrieveCohortArps( + * 'necessitatibus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieveCohortArps( @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'vitae', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e04157b7..e0bd9482 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: 'zrdnpftdmggmcikmpsvipan' }, + * { name: 'qofnodruutfxhcz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 26b92210..1d28b386 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('sunt'); + const responsePromise = client.accounts.disconnect('repellendus'); 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 c07df9c2..d817a133 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_type: 'mobile_app', - cookies: 'aut', + auth_id: 'consequatur', + auth_type: 'raw_data', + cookies: 'fugiat', customProxy: { host: 'proxy.example.com', - password: '6t/6/12YB{l1]8', + password: '5qOVik++h_^28gV!,M7r', port: 8080, - username: 'delectus', + username: 'nulla', }, - email: 'sauer.gideon@example.org', - force_connect: true, - name: 'nam', - password: 'P"-cez', - proxyCountry: 'uk', - user_agent: 'minima', - xbc: 'perferendis', + email: 'austin.king@example.net', + force_connect: false, + name: 'maiores', + password: 'YT6Par_yUd~>?TF[gp', + proxyCountry: 'us', + user_agent: 'sunt', + xbc: 'repellendus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index c425956a..437aaaa2 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('accusantium', { + const responsePromise = client.engagement.messages.getMessageBuyers('omnis', { 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('accusantium', { + const response = await client.engagement.messages.getMessageBuyers('omnis', { 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 f74e4edc..68cadb73 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('rem', { + const responsePromise = client.media.vault.lists.media.add('omnis', { 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('rem', { + const response = await client.media.vault.lists.media.add('omnis', { 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('rem', { + const responsePromise = client.media.vault.lists.media.remove('omnis', { 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('rem', { + const response = await client.media.vault.lists.media.remove('omnis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a0fd3c5c..3c27d9ed 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('dignissimos', { + 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('dignissimos', { + 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('dignissimos', { 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('dignissimos', { + 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 9bf5999b..ad49ad2e 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d42958fa..c77aaf59 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: ['ulalpvjh'] }, + filter: { tags: ['d'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('doloremque'); + const responsePromise = client.smartLinks.listClicks('velit'); 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( - 'doloremque', + 'velit', { 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('eius'); + const responsePromise = client.smartLinks.listConversions('molestiae'); 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( - 'eius', + 'molestiae', { 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('suscipit'); + const responsePromise = client.smartLinks.listFans('ut'); 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( - 'suscipit', + 'ut', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('provident'); + const responsePromise = client.smartLinks.listSpenders('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'rerum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('perferendis'); + const responsePromise = client.smartLinks.retrieveCohortArps('harum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'perferendis', + 'harum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quia'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 23ed5caf..69ad5b55 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: 'icplsmfctmfnrttw', tags: ['f'] }, + filter: { search: 'aluxp', tags: ['btqpbzmafkbvtsww'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mrooljactvjimkjrvfk', tags: ['fhyxjmzfkeudflwupkt'] }, + filter: { search: 'ebsydpxhqr', tags: ['ttthpntd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'dnwouvihznylvtmxskj', - tags: ['qvsygtbumsmao'], + search: 'k', + tags: ['tr'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'wvtdsbehawdpsk', - tags: ['yj'], + search: 'kwpihf', + tags: ['aijeizvsztsojhxpmejhdvv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7432ade3..3c10d926 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('consequuntur', { + const responsePromise = client.stories.highlights.addStory('ea', { 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('consequuntur', { + const response = await client.stories.highlights.addStory('ea', { 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('consequuntur', { + const responsePromise = client.stories.highlights.removeStory('ea', { 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('consequuntur', { + const response = await client.stories.highlights.removeStory('ea', { 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 aa5e8abc..79a9062b 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('reiciendis', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nulla', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('nulla', { + const response = await client.trackingLinks.getCohortArps('veniam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('dolorem', { 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 9d7bfe24..f4623a3e 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('asperiores', { 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('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('asperiores', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quo', { + const responsePromise = client.trialLinks.listSubscribers('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quo', { + const response = await client.trialLinks.listSubscribers('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nesciunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nesciunt', { + const response = await client.trialLinks.retrieveCohortArps('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('vitae', { 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; @@ -188,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('vitae', { + 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 fea20eef..fc5050e7 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: 'zrdnpftdmggmcikmpsvipan', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qofnodruutfxhcz' }); 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: 'zrdnpftdmggmcikmpsvipan', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qofnodruutfxhcz' }); }); // Mock server tests are disabled From b1713128fa95a05720ed334d86b6857879d24e11 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 16 Aug 2026 03:12:39 +0000 Subject: [PATCH 238/309] 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 | 10 ++++---- 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 | 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 +++---- .../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 | 22 ++++++++--------- 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 ++-- 27 files changed, 110 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 41a52929..48394c7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-613af136f5c7dc6e23778725bbc12bcb401c4c6b9ea23a39f1829a0a78f765c0.yml -openapi_spec_hash: a29028052b286ae5243ff22ec8222806 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9211f591b9039824ae8fe2671723b7c1d92e0fba48b5ccc1609904535787fee2.yml +openapi_spec_hash: 4f46a9fe89ae6b600a9f629b5fd06b85 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fa59de7c..06d37c8b 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( - * 'repellendus', - * ); + * 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 a218cad4..e54cee38 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( - * 'omnis', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0e5582a..37254159 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( - * 'omnis', + * 'quae', * { 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( - * 'omnis', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12edd193..b63ecbcc 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', + * 'inventore', * { * 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( + * 'inventore', + * { 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 a9767818..e20f70d1 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 2b04cbb2..c9a094cf 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 549493ab..7bcb9eaa 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( - * 'velit', + * 'laboriosam', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ut'); + * 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( - * 'rerum', + * 'nulla', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('harum'); + * await client.smartLinks.retrieveCohortArps('numquam'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'quisquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9878a980..93381125 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( - * 'ea', + * 'accusantium', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'accusantium', + * { + * 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 a98b0883..213fa75c 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( - * 'reiciendis', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'reiciendis', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('veniam', { + * 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( - * 'dolorem', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 62f0edd2..a5ce8f91 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('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('a', { + * const trialLink = await client.trialLinks.delete('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'illum', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,10 +153,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps( - * 'necessitatibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.trialLinks.retrieveCohortArps('iste', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieveCohortArps( @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'ab', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e0bd9482..9ba92d14 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: 'qofnodruutfxhcz' }, + * { name: 'tpepavyd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1d28b386..44b93157 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('repellendus'); + 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 d817a133..dcf3ebf7 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: 'consequatur', - auth_type: 'raw_data', - cookies: 'fugiat', + auth_id: 'cumque', + auth_type: 'mobile_app', + cookies: 'dolor', customProxy: { host: 'proxy.example.com', - password: '5qOVik++h_^28gV!,M7r', + password: 'd*vLI0>#h9', port: 8080, - username: 'nulla', + username: 'et', }, - email: 'austin.king@example.net', - force_connect: false, - name: 'maiores', - password: 'YT6Par_yUd~>?TF[gp', - proxyCountry: 'us', - user_agent: 'sunt', - xbc: 'repellendus', + email: 'toy.laron@example.net', + force_connect: true, + name: 'consequuntur', + password: '(Ivq:7|x"Gf', + proxyCountry: 'uk', + user_agent: 'fugit', + xbc: 'voluptate', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 437aaaa2..f1e0f255 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('omnis', { + const responsePromise = client.engagement.messages.getMessageBuyers('labore', { 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('omnis', { + const response = await client.engagement.messages.getMessageBuyers('labore', { 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 68cadb73..c37b7f3d 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('omnis', { + const responsePromise = client.media.vault.lists.media.add('quae', { 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('omnis', { + const response = await client.media.vault.lists.media.add('quae', { 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('omnis', { + const responsePromise = client.media.vault.lists.media.remove('quae', { 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('omnis', { + const response = await client.media.vault.lists.media.remove('quae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3c27d9ed..c5136422 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('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('nihil', { + 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('nihil', { 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('nihil', { + const response = await client.posts.comments.list('inventore', { 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 4ec8acc7..fd74b68f 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 96d399de..b643af69 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 d13ad1ce..6b1dc2fd 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 c77aaf59..92aa5b29 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: ['d'] }, + filter: { tags: ['okykacneryoekoaps'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('velit'); + const responsePromise = client.smartLinks.listClicks('laboriosam'); 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( - 'velit', + 'laboriosam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('ut'); + 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( - 'ut', + 'est', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('rerum'); + const responsePromise = client.smartLinks.listSpenders('nulla'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'rerum', + 'nulla', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('harum'); + const responsePromise = client.smartLinks.retrieveCohortArps('numquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'harum', + 'numquam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'quisquam', { 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 69ad5b55..8d42db23 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: 'aluxp', tags: ['btqpbzmafkbvtsww'] }, + filter: { search: 'fgnrjidfnkcaqskvzaya', tags: ['xsor'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ebsydpxhqr', tags: ['ttthpntd'] }, + filter: { search: 'jszczeyyd', tags: ['bmyqsuaqorggnqzfkvmj'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'k', - tags: ['tr'], + include_smart_links: false, + search: 'atohswlhx', + tags: ['khvydisoyzgqybffhnunjtrf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kwpihf', - tags: ['aijeizvsztsojhxpmejhdvv'], + include_smart_links: false, + search: 'gdodefsdsydkwkmkzmhxf', + tags: ['dbinnfhpsgzfutg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3c10d926..81f64a21 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('ea', { + const responsePromise = client.stories.highlights.addStory('accusantium', { 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('ea', { + const response = await client.stories.highlights.addStory('accusantium', { 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('ea', { + const responsePromise = client.stories.highlights.removeStory('accusantium', { 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('ea', { + const response = await client.stories.highlights.removeStory('accusantium', { 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 79a9062b..3e69fa7a 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ipsam', { 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('veniam', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('veniam', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dolorem', { + const response = await client.trackingLinks.getStats('quasi', { 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 f4623a3e..d1a3c630 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('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('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('iste', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +174,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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +186,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('ab', { 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 fc5050e7..6cc56ab1 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: 'qofnodruutfxhcz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tpepavyd' }); 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: 'qofnodruutfxhcz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'tpepavyd' }); }); // Mock server tests are disabled From 2d64f1c452749123bedd72bfa483ddc8581040a7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 22:12:37 +0000 Subject: [PATCH 239/309] 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 | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 10 ++++----- 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 ++-- .../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 ++-- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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 +++++-- 29 files changed, 114 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48394c7e..612bd15d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9211f591b9039824ae8fe2671723b7c1d92e0fba48b5ccc1609904535787fee2.yml -openapi_spec_hash: 4f46a9fe89ae6b600a9f629b5fd06b85 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7e3e550412c99358098687ea8efec491c92578ed5817d0a81b97aa95b4650140.yml +openapi_spec_hash: 3518dea1c76095b666e7e8f04ef0dc05 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8b..c012ec59 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('et'); + * 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 e54cee38..105f7d7a 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( - * 'labore', - * { 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 37254159..bb20f6f5 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( - * 'quae', + * 'illum', * { 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( - * 'quae', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b63ecbcc..bca70eaa 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( - * 'inventore', + * '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( - * 'inventore', + * '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 e20f70d1..09d6973d 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 c9a094cf..2b04cbb2 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 7bcb9eaa..80fc19e3 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( - * 'laboriosam', + * 'provident', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'molestiae', + * 'aut', * ); * ``` */ @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nulla', + * 'libero', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('numquam'); + * await client.smartLinks.retrieveCohortArps('nobis'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quisquam', + * 'minima', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 93381125..56a29991 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( - * 'accusantium', + * 'expedita', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'accusantium', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('expedita', { + * 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 213fa75c..4ea4660e 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( - * 'ipsam', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ipsam', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quasi', + * 'blanditiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a5ce8f91..15216416 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( + * 'beatae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('at', { + * const trialLink = await client.trialLinks.delete('beatae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'eius', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('iste', { + * await client.trialLinks.retrieveCohortArps('voluptatum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ab', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9ba92d14..0c5dc077 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: 'tpepavyd' }, + * { name: 'cuatcmrijdfxdezfermnbfpic' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b93157..b930587d 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('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 dcf3ebf7..4fab753f 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: 'mobile_app', - cookies: 'dolor', + auth_id: 'sit', + auth_type: 'raw_data', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: 'd*vLI0>#h9', + password: 'h4T;>=FH', port: 8080, - username: 'et', + username: 'ea', }, - email: 'toy.laron@example.net', + email: 'watson.rath@example.com', force_connect: true, - name: 'consequuntur', - password: '(Ivq:7|x"Gf', + name: 'at', + password: '~_)9[f', proxyCountry: 'uk', - user_agent: 'fugit', - xbc: 'voluptate', + user_agent: 'nam', + xbc: 'ipsam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 f1e0f255..afbb8ebf 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('labore', { + 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('labore', { + 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 c37b7f3d..c7188182 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('quae', { + const responsePromise = client.media.vault.lists.media.add('illum', { 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('quae', { + const response = await client.media.vault.lists.media.add('illum', { 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('quae', { + const responsePromise = client.media.vault.lists.media.remove('illum', { 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('quae', { + const response = await client.media.vault.lists.media.remove('illum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c5136422..ec0bb295 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('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('inventore', { + 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('inventore', { 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('inventore', { + const response = await client.posts.comments.list('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 fd74b68f..e2edc676 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 b643af69..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 92aa5b29..63169d8a 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: ['okykacneryoekoaps'] }, + filter: { tags: ['hg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('laboriosam'); + const responsePromise = client.smartLinks.listClicks('provident'); 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( - 'laboriosam', + 'provident', { 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('molestiae'); + const responsePromise = client.smartLinks.listConversions('aut'); 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( - 'molestiae', + 'aut', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nulla'); + const responsePromise = client.smartLinks.listSpenders('libero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'nulla', + 'libero', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('numquam'); + const responsePromise = client.smartLinks.retrieveCohortArps('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'numquam', + 'nobis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quisquam'); + const responsePromise = client.smartLinks.retrieveStats('minima'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quisquam', + 'minima', { 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 8d42db23..f5c1a5bb 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: 'fgnrjidfnkcaqskvzaya', tags: ['xsor'] }, + filter: { search: 'kiptnfuyesvwd', tags: ['rnwvoztowhqduxw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jszczeyyd', tags: ['bmyqsuaqorggnqzfkvmj'] }, + filter: { search: 'rst', tags: ['cmjlluoybzgmljnbwkqyktc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'atohswlhx', - tags: ['khvydisoyzgqybffhnunjtrf'], + include_smart_links: true, + search: 'ecohi', + tags: ['htqphhdqlxknllut'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'gdodefsdsydkwkmkzmhxf', - tags: ['dbinnfhpsgzfutg'], + search: 'rquvmbmnvxwphlenxicolj', + tags: ['msgkkdnmxi'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 81f64a21..9955bb30 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('accusantium', { + const responsePromise = client.stories.highlights.addStory('expedita', { 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('accusantium', { + const response = await client.stories.highlights.addStory('expedita', { 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('accusantium', { + const responsePromise = client.stories.highlights.removeStory('expedita', { 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('accusantium', { + const response = await client.stories.highlights.removeStory('expedita', { 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 3e69fa7a..361a1e07 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('saepe', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('saepe', { 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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('quia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quasi', { + const response = await client.trackingLinks.getStats('blanditiis', { 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 d1a3c630..09d69bc2 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('beatae', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('eius', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('eius', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('iste', { 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; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('iste', { + const response = await client.trialLinks.retrieveCohortArps('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ab', { + const response = await client.trialLinks.retrieveStats('rerum', { 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 6cc56ab1..9b99cd3d 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: 'tpepavyd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'cuatcmrijdfxdezfermnbfpic', + }); 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: 'tpepavyd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'cuatcmrijdfxdezfermnbfpic', + }); }); // Mock server tests are disabled From 5aa40521b3ce9da183fd4a085e212a9e9ceeb9dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 23:12:40 +0000 Subject: [PATCH 240/309] 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/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/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 +- .../shared-trial-links.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 | 8 ++---- 28 files changed, 101 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 612bd15d..aed49705 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7e3e550412c99358098687ea8efec491c92578ed5817d0a81b97aa95b4650140.yml -openapi_spec_hash: 3518dea1c76095b666e7e8f04ef0dc05 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d405ec53846be49bd1a6484b0af2fb42e46b3d1f700eba30d689da5cac3ce71c.yml +openapi_spec_hash: 106c4b2587de1b257da1e8773985ea43 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c012ec59..fa59de7c 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( - * 'dignissimos', + * 'repellendus', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 105f7d7a..37e7385c 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('vel', { + * 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 bb20f6f5..ac5f3fc8 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( - * 'illum', + * 'in', * { 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( - * 'illum', + * 'in', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bca70eaa..432dff9f 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( - * 'laudantium', + * 'reiciendis', * { * 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( - * 'laudantium', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..a84ff073 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 80fc19e3..3014717e 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( - * 'provident', - * ); + * const response = await client.smartLinks.listClicks('nam'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aut', + * 'et', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'libero', + * 'ipsam', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nobis'); + * await client.smartLinks.retrieveCohortArps('aut'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'minima', + * 'ut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56a29991..e9eae13b 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( - * 'expedita', + * '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('expedita', { + * 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 4ea4660e..7f8d7a05 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( - * 'saepe', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'saepe', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quia', { + * 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( - * 'blanditiis', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 15216416..9f3b6ae8 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( - * 'beatae', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('beatae', { + * const trialLink = await client.trialLinks.delete('culpa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eius', + * 'eaque', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatum', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'quos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 0c5dc077..2fb505d9 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: 'cuatcmrijdfxdezfermnbfpic' }, + * { name: 'rfunebjtmxkcx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b930587d..1d28b386 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('repellendus'); 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 4fab753f..4a3923a9 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: 'sit', + auth_id: 'quasi', auth_type: 'raw_data', - cookies: 'odit', + cookies: 'omnis', customProxy: { host: 'proxy.example.com', - password: 'h4T;>=FH', + password: 'o(Mx/i*', port: 8080, - username: 'ea', + username: 'qui', }, - email: 'watson.rath@example.com', + email: 'monserrat54@example.com', force_connect: true, - name: 'at', - password: '~_)9[f', - proxyCountry: 'uk', - user_agent: 'nam', - xbc: 'ipsam', + name: 'illo', + password: '}xSuFB', + proxyCountry: 'us', + user_agent: 'et', + xbc: 'aspernatur', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 afbb8ebf..5d39f0e7 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('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('vel', { + 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 c7188182..4ab44e87 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('illum', { + const responsePromise = client.media.vault.lists.media.add('in', { 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('illum', { + const response = await client.media.vault.lists.media.add('in', { 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('illum', { + const responsePromise = client.media.vault.lists.media.remove('in', { 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('illum', { + const response = await client.media.vault.lists.media.remove('in', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ec0bb295..15f4e8e7 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('reiciendis', { 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('reiciendis', { 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('reiciendis', { 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 96d399de..02883e18 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 63169d8a..f7bf102f 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: ['hg'] }, + filter: { tags: ['acxqmgykwfnqzuhboiqetxsj'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('provident'); + const responsePromise = client.smartLinks.listClicks('nam'); 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( - 'provident', + 'nam', { 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('aut'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'aut', + 'et', { 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('est'); + const responsePromise = client.smartLinks.listFans('qui'); 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( - 'est', + 'qui', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('libero'); + const responsePromise = client.smartLinks.listSpenders('ipsam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'libero', + 'ipsam', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nobis'); + const responsePromise = client.smartLinks.retrieveCohortArps('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'nobis', + 'aut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('minima'); + const responsePromise = client.smartLinks.retrieveStats('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'minima', + '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 f5c1a5bb..3c913a72 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: 'kiptnfuyesvwd', tags: ['rnwvoztowhqduxw'] }, + filter: { search: 'zelprabexgxprovprlmvtkn', tags: ['i'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rst', tags: ['cmjlluoybzgmljnbwkqyktc'] }, + filter: { search: 'rjmtwooeymd', tags: ['fzof'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ecohi', - tags: ['htqphhdqlxknllut'], + include_smart_links: false, + search: 'joxmsjqaoemfryahenkwa', + tags: ['kbedgqugpoiqwmzh'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'rquvmbmnvxwphlenxicolj', - tags: ['msgkkdnmxi'], + include_smart_links: true, + search: 'zvdsepuaic', + tags: ['hyutmekgocphlnqnceysw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9955bb30..b1a18626 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('expedita', { + 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('expedita', { + 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('expedita', { + 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('expedita', { + 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 361a1e07..7effe71a 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('harum', { 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('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('harum', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('blanditiis', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('blanditiis', { + 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 09d69bc2..c20739ce 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('beatae', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('beatae', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('eius', { + const responsePromise = client.trialLinks.listSubscribers('eaque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('eius', { + const response = await client.trialLinks.listSubscribers('eaque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('rerum', { + const response = await client.trialLinks.retrieveStats('quos', { 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 9b99cd3d..01fdb65c 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: 'cuatcmrijdfxdezfermnbfpic', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rfunebjtmxkcx' }); 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: 'cuatcmrijdfxdezfermnbfpic', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rfunebjtmxkcx' }); }); // Mock server tests are disabled From 38520d5a53aee50ab5e63fd681dbe41f60975e32 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 00:12:38 +0000 Subject: [PATCH 241/309] 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 | 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 +-- 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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 110 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index aed49705..570fba11 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d405ec53846be49bd1a6484b0af2fb42e46b3d1f700eba30d689da5cac3ce71c.yml -openapi_spec_hash: 106c4b2587de1b257da1e8773985ea43 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23242adeafcf47de7fa93b9f3ca5c97663bd58039566842a69c640967cebed1a.yml +openapi_spec_hash: 8af32fd575ba1dce811202ad05432f84 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fa59de7c..50c3bbd1 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( - * 'repellendus', + * 'excepturi', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 37e7385c..e4a82f72 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( + * 'fugit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ac5f3fc8..66060118 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( - * 'in', + * 'dolores', * { 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( - * 'in', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 432dff9f..b5336b25 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( - * 'reiciendis', + * 'dolorem', * { * 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( - * 'reiciendis', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 a84ff073..2b04cbb2 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 3014717e..e17fc832 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('nam'); + * const response = await client.smartLinks.listClicks('ad'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'aut', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans( + * 'consequuntur', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ipsam', + * 'sit', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aut'); + * await client.smartLinks.retrieveCohortArps('ducimus'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ut', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e9eae13b..de557f5a 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', + * 'fugit', * { * 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('fugit', { * 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 7f8d7a05..20316b6f 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( - * 'harum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'harum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sit', { + * await client.trackingLinks.getCohortArps('enim', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'qui', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9f3b6ae8..93f8b61b 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', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('culpa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'accusamus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eaque', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quos', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2fb505d9..87657f83 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: 'rfunebjtmxkcx' }, + * { name: 'qqyvncwahrgdpaeaadk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1d28b386..4475909b 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('repellendus'); + const responsePromise = client.accounts.disconnect('excepturi'); 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 4a3923a9..5e6431e6 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: 'quasi', - auth_type: 'raw_data', - cookies: 'omnis', + auth_id: 'aspernatur', + auth_type: 'mobile_app', + cookies: 'eaque', customProxy: { host: 'proxy.example.com', - password: 'o(Mx/i*', + password: "4&>J>su?F':Fn.0Id", port: 8080, - username: 'qui', + username: 'atque', }, - email: 'monserrat54@example.com', - force_connect: true, - name: 'illo', - password: '}xSuFB', - proxyCountry: 'us', - user_agent: 'et', - xbc: 'aspernatur', + email: 'ssteuber@example.net', + force_connect: false, + name: 'esse', + password: '/1X-2"D)Y', + proxyCountry: 'uk', + user_agent: 'dolorem', + 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 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e7..8d60b30b 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('fugit', { 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('fugit', { 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 4ab44e87..273bfa0a 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('in', { + const responsePromise = client.media.vault.lists.media.add('dolores', { 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('in', { + const response = await client.media.vault.lists.media.add('dolores', { 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('in', { + const responsePromise = client.media.vault.lists.media.remove('dolores', { 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('in', { + const response = await client.media.vault.lists.media.remove('dolores', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 15f4e8e7..7b3f804a 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('reiciendis', { + const responsePromise = client.posts.comments.create('dolorem', { 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('reiciendis', { + const response = await client.posts.comments.create('dolorem', { 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolorem', { 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('reiciendis', { + const response = await client.posts.comments.list('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 e2edc676..4ec8acc7 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 02883e18..96d399de 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 f7bf102f..915f0faa 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: ['acxqmgykwfnqzuhboiqetxsj'] }, + filter: { tags: ['unhvmeoqfjwzhyakrbpgje'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nam'); + const responsePromise = client.smartLinks.listClicks('ad'); 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( - 'nam', + 'ad', { 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('et'); + const responsePromise = client.smartLinks.listConversions('aut'); 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( - 'et', + 'aut', { 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('qui'); + const responsePromise = client.smartLinks.listFans('consequuntur'); 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( - 'qui', + 'consequuntur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ipsam'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsam', + 'sit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aut'); + const responsePromise = client.smartLinks.retrieveCohortArps('ducimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'ducimus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ut'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 3c913a72..1b4f2b01 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: 'zelprabexgxprovprlmvtkn', tags: ['i'] }, + filter: { search: 'ymnoqla', tags: ['mitgiazldi'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rjmtwooeymd', tags: ['fzof'] }, + filter: { search: 'fypiy', tags: ['wljhkoxybjdfvp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'joxmsjqaoemfryahenkwa', - tags: ['kbedgqugpoiqwmzh'], + include_smart_links: true, + search: 'rbe', + tags: ['reulawlbqidykxuc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'zvdsepuaic', - tags: ['hyutmekgocphlnqnceysw'], + search: 'vh', + tags: ['avzubqpscpmijwgb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b1a18626..594163ab 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('fugit', { 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('fugit', { 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('fugit', { 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('fugit', { 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 7effe71a..cf621567 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('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptatem', { 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('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptatem', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('enim', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('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 c20739ce..97e5a5c2 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('accusamus', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('eaque', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('eaque', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('eum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quos', { + const response = await client.trialLinks.retrieveStats('numquam', { 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 01fdb65c..6d4cf849 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: 'rfunebjtmxkcx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qqyvncwahrgdpaeaadk' }); 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: 'rfunebjtmxkcx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qqyvncwahrgdpaeaadk' }); }); // Mock server tests are disabled From 1d9a0c5912229874240e0d908027166e3ecaaede Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 12:12:47 +0000 Subject: [PATCH 242/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/engagement/messages/messages.ts | 7 +++-- src/resources/following.ts | 17 +++++++++--- 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 | 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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 31 files changed, 124 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index 570fba11..fb88c543 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23242adeafcf47de7fa93b9f3ca5c97663bd58039566842a69c640967cebed1a.yml -openapi_spec_hash: 8af32fd575ba1dce811202ad05432f84 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a2d5f52ed1f85349c85e1d5e456592651e902edad67d67c38c9c704edb60af74.yml +openapi_spec_hash: 610275aba2d84b6adbb63416c2d03a07 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 50c3bbd1..eddbf5fc 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( - * 'excepturi', - * ); + * const response = await client.accounts.disconnect('nam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e4a82f72..108d3854 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( - * 'fugit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/following.ts b/src/resources/following.ts index 86149cf8..6bedb869 100644 --- a/src/resources/following.ts +++ b/src/resources/following.ts @@ -10,7 +10,9 @@ import { path } from '../internal/utils/path'; */ export class Following extends APIResource { /** - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. OnlyFans returns this list + * newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + * list does not share this order, so do not assume it applies there. * * @example * ```ts @@ -28,7 +30,9 @@ export class Following extends APIResource { } /** - * Get a paginated list of followings for an Account. Newest followings are first. + * Get a paginated list of followings for an Account. OnlyFans returns this list + * newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired + * list does not share this order, so do not assume it applies there. * * @example * ```ts @@ -46,8 +50,13 @@ export class Following extends APIResource { } /** - * Get a paginated list of expired followings for an Account. Newest followings are - * first. + * Get a paginated list of expired followings for an Account. This list has no + * order guarantee. Unlike the all and active lists, it is sorted by neither + * `subscribedByData.subscribeAt` nor `subscribedByData.expiredAt`. To poll for new + * expirations, page through the full list each cycle (`limit=50`, follow + * `_pagination.next_page` until it is null) and diff it against your own store + * using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you + * have already seen, as that can silently skip real expirations. * * @example * ```ts diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66060118..a85c6b6e 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( - * 'dolores', + * 'sint', * { 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( - * 'dolores', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b5336b25..dee0ca84 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( - * 'dolorem', + * 'excepturi', * { * 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( - * 'dolorem', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 2b04cbb2..a84ff073 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 e17fc832..5dd3a959 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('ad'); + * 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( - * 'aut', + * 'at', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequuntur', - * ); + * const response = await client.smartLinks.listFans('sit'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'distinctio', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ducimus'); + * await client.smartLinks.retrieveCohortArps('ullam'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'occaecati', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index de557f5a..f8c6ce98 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( - * 'fugit', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('fugit', { + * await client.stories.highlights.removeStory('illum', { * 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 20316b6f..46bb6d49 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( - * 'voluptatem', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatem', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('enim', { + * await client.trackingLinks.getCohortArps('earum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quia', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 93f8b61b..c29eb313 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( - * 'accusamus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'accusamus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'similique', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eum', { + * await client.trialLinks.retrieveCohortArps('harum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'numquam', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 87657f83..1a8eaaa0 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: 'qqyvncwahrgdpaeaadk' }, + * { name: 'werwytboubtrvievkh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 4475909b..2c419d92 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('excepturi'); + const responsePromise = client.accounts.disconnect('nam'); 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 5e6431e6..148ddf8a 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: 'mobile_app', - cookies: 'eaque', + auth_id: 'architecto', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: "4&>J>su?F':Fn.0Id", + password: 'Fs`88MG3ijUFxTI', port: 8080, - username: 'atque', + username: 'id', }, - email: 'ssteuber@example.net', + email: 'kayden.trantow@example.org', force_connect: false, - name: 'esse', - password: '/1X-2"D)Y', - proxyCountry: 'uk', - user_agent: 'dolorem', - xbc: 'qui', + name: 'consequuntur', + password: 'stojg=g8"0', + proxyCountry: 'us', + user_agent: 'debitis', + xbc: 'nisi', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 8d60b30b..b2058d8d 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('fugit', { + const responsePromise = client.engagement.messages.getMessageBuyers('non', { 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('fugit', { + const response = await client.engagement.messages.getMessageBuyers('non', { 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 273bfa0a..c9fd281d 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('dolores', { + const responsePromise = client.media.vault.lists.media.add('sint', { 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('dolores', { + const response = await client.media.vault.lists.media.add('sint', { 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('dolores', { + const responsePromise = client.media.vault.lists.media.remove('sint', { 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('dolores', { + const response = await client.media.vault.lists.media.remove('sint', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7b3f804a..3ae8a5fe 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('dolorem', { + 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('dolorem', { + 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('dolorem', { 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('dolorem', { + const response = await client.posts.comments.list('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 96d399de..02883e18 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 915f0faa..162875ba 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: ['unhvmeoqfjwzhyakrbpgje'] }, + filter: { tags: ['ddtfnelafcbcg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ad'); + const responsePromise = client.smartLinks.listClicks('id'); 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( - 'ad', + 'id', { 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('aut'); + const responsePromise = client.smartLinks.listConversions('at'); 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( - 'aut', + 'at', { 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('consequuntur'); + const responsePromise = client.smartLinks.listFans('sit'); 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( - 'consequuntur', + 'sit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('distinctio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'distinctio', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ducimus'); + const responsePromise = client.smartLinks.retrieveCohortArps('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ducimus', + 'ullam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'occaecati', { 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 1b4f2b01..154a8981 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: 'ymnoqla', tags: ['mitgiazldi'] }, + filter: { search: 'ewqigpmk', tags: ['idph'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fypiy', tags: ['wljhkoxybjdfvp'] }, + filter: { search: 'bqqxjyjcfwkzzpujuda', tags: ['htc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'rbe', - tags: ['reulawlbqidykxuc'], + include_smart_links: false, + search: 'u', + tags: ['uvlz'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vh', - tags: ['avzubqpscpmijwgb'], + search: 'ummhkywplyyuzhnynwsafrruk', + tags: ['bwhisnwscpmir'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 594163ab..854f824a 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('fugit', { + const responsePromise = client.stories.highlights.addStory('illum', { 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('fugit', { + const response = await client.stories.highlights.addStory('illum', { 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('fugit', { + const responsePromise = client.stories.highlights.removeStory('illum', { 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('fugit', { + const response = await client.stories.highlights.removeStory('illum', { 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 cf621567..25af6e69 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ut', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('enim', { + const response = await client.trackingLinks.getCohortArps('earum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('voluptatem', { 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 97e5a5c2..3b19e7bf 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('harum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eum', { + const response = await client.trialLinks.retrieveCohortArps('harum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('numquam', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('numquam', { + 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 6d4cf849..c2267267 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: 'qqyvncwahrgdpaeaadk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'werwytboubtrvievkh' }); 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: 'qqyvncwahrgdpaeaadk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'werwytboubtrvievkh' }); }); // Mock server tests are disabled From fff844158588c4f46f2852dde860146665c9fc3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 14:12:37 +0000 Subject: [PATCH 243/309] 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 | 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/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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 29 files changed, 114 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb88c543..c617ea48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a2d5f52ed1f85349c85e1d5e456592651e902edad67d67c38c9c704edb60af74.yml -openapi_spec_hash: 610275aba2d84b6adbb63416c2d03a07 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3e41fe0e34300060c6b811748d8c6d41c25296780772981088799f57f3a62620.yml +openapi_spec_hash: 1fef4a251599b597914b6e44589ec522 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index eddbf5fc..662ce68c 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('nam'); + * const response = await client.accounts.disconnect('sint'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 108d3854..230dad34 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('non', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'sint', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a85c6b6e..0d5be001 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( - * 'sint', + * 'nobis', * { 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( - * 'sint', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dee0ca84..aec783f3 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( - * 'excepturi', + * 'architecto', * { * 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( - * 'excepturi', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 5dd3a959..d8d264ec 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('iste'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'at', + * 'voluptas', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sit'); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'distinctio', + * 'culpa', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ullam'); + * await client.smartLinks.retrieveCohortArps('ratione'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'occaecati', + * 'sint', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index f8c6ce98..a9c614a7 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( - * 'illum', + * '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('illum', { + * 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 46bb6d49..c88831e5 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( - * 'ut', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ut', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('earum', { + * await client.trackingLinks.getCohortArps('ipsum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatem', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c29eb313..e8ae7803 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'culpa', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { + * const trialLink = await client.trialLinks.delete('culpa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'similique', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('harum', { + * await client.trialLinks.retrieveCohortArps('nobis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'assumenda', + * 'iusto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1a8eaaa0..96d54fcd 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: 'werwytboubtrvievkh' }, + * { name: 'isfkhsndbcnwtcefzbnzqx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2c419d92..55a8da83 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('nam'); + const responsePromise = client.accounts.disconnect('sint'); 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 148ddf8a..4669831e 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: 'architecto', - auth_type: 'raw_data', - cookies: 'et', + auth_id: 'odio', + auth_type: 'mobile_app', + cookies: 'tempora', customProxy: { host: 'proxy.example.com', - password: 'Fs`88MG3ijUFxTI', + password: 'yLUj}dhnk\\y@4s?Y2z', port: 8080, - username: 'id', + username: 'doloribus', }, - email: 'kayden.trantow@example.org', - force_connect: false, - name: 'consequuntur', - password: 'stojg=g8"0', - proxyCountry: 'us', - user_agent: 'debitis', - xbc: 'nisi', + email: 'pinkie37@example.org', + force_connect: true, + name: 'qui', + password: 'Q.eq=X\\un|C[BeFC\\', + proxyCountry: 'uk', + user_agent: 'ut', + xbc: 'molestias', }, { 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 b2058d8d..7b6f3dae 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('non', { + const responsePromise = client.engagement.messages.getMessageBuyers('sint', { 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('non', { + const response = await client.engagement.messages.getMessageBuyers('sint', { 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 c9fd281d..df43bb54 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('sint', { + const responsePromise = client.media.vault.lists.media.add('nobis', { 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('sint', { + const response = await client.media.vault.lists.media.add('nobis', { 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('sint', { + const responsePromise = client.media.vault.lists.media.remove('nobis', { 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('sint', { + const response = await client.media.vault.lists.media.remove('nobis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3ae8a5fe..221840f1 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('architecto', { 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('architecto', { 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('architecto', { 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('architecto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 162875ba..c31b313e 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: ['ddtfnelafcbcg'] }, + filter: { tags: ['zwlvnthqluhbdydpukgggpluf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('id'); + const responsePromise = client.smartLinks.listClicks('iste'); 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( - 'id', + 'iste', { 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('at'); + const responsePromise = client.smartLinks.listConversions('voluptas'); 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( - 'at', + 'voluptas', { 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('sit'); + const responsePromise = client.smartLinks.listFans('sed'); 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( - 'sit', + 'sed', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('distinctio'); + const responsePromise = client.smartLinks.listSpenders('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'distinctio', + 'culpa', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ullam'); + const responsePromise = client.smartLinks.retrieveCohortArps('ratione'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ullam', + 'ratione', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('occaecati'); + const responsePromise = client.smartLinks.retrieveStats('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'occaecati', + '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 154a8981..a289b683 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: 'ewqigpmk', tags: ['idph'] }, + filter: { search: 'cowcnvfoyzgkbr', tags: ['thylo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bqqxjyjcfwkzzpujuda', tags: ['htc'] }, + filter: { search: 'm', tags: ['juosglzjnkgnnkyxvxzmrgm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'u', - tags: ['uvlz'], + include_smart_links: true, + search: 'vhorhty', + tags: ['cxrkgfmfqiopndjxrfhd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ummhkywplyyuzhnynwsafrruk', - tags: ['bwhisnwscpmir'], + include_smart_links: false, + search: 'apoxygemhfoudmfathtw', + tags: ['pfuuvtodeflxnug'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 854f824a..fca45b0b 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('illum', { + 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('illum', { + 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('illum', { + 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('illum', { + 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 25af6e69..9ccc0dfa 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('ut', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ut', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ut', { 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('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('earum', { + const response = await client.trackingLinks.getCohortArps('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('magnam', { 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 3b19e7bf..48036137 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('qui', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('qui', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('harum', { + const responsePromise = client.trialLinks.retrieveCohortArps('nobis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('harum', { + const response = await client.trialLinks.retrieveCohortArps('nobis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('iusto', { 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 c2267267..7750be33 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: 'werwytboubtrvievkh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'isfkhsndbcnwtcefzbnzqx', + }); 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: 'werwytboubtrvievkh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'isfkhsndbcnwtcefzbnzqx', + }); }); // Mock server tests are disabled From 5cfd59461d7c5dab03b9494ae7fed050d32245af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:12:39 +0000 Subject: [PATCH 244/309] 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 +- .../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 | 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 +- .../shared-trial-links.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 ++---- 29 files changed, 114 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index c617ea48..8da4e8f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3e41fe0e34300060c6b811748d8c6d41c25296780772981088799f57f3a62620.yml -openapi_spec_hash: 1fef4a251599b597914b6e44589ec522 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3a681811f9dca9fafb1afffb864339f1522537aee190126620680aeca3803358.yml +openapi_spec_hash: 1b0a40a3f83009a9b99ea771335d528f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 662ce68c..99d90ec6 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('sint'); + * const response = await client.accounts.disconnect('at'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 230dad34..357f56ed 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( - * 'sint', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0d5be001..66286110 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( - * 'nobis', + * 'voluptatem', * { 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( - * 'nobis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index aec783f3..33a40fdf 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( - * 'architecto', - * { - * 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( - * 'architecto', - * { 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/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 41feb4c0..2b04cbb2 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 d8d264ec..00611184 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('iste'); + * const response = await client.smartLinks.listClicks( + * 'repudiandae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptas', + * 'natus', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans('amet'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'culpa', + * 'veritatis', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ratione'); + * await client.smartLinks.retrieveCohortArps('dolores'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sint', + * 'accusamus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..c4aa0882 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', + * '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('et', { + * 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 c88831e5..c2f20d94 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', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloribus', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ipsum', { + * await client.trackingLinks.getCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'magnam', - * { 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 e8ae7803..43f2a0ce 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', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('culpa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dolorum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'velit', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nobis', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'iusto', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 96d54fcd..67421fe9 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: 'isfkhsndbcnwtcefzbnzqx' }, + * { name: 'nbkdeagayzijsh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 55a8da83..2b6b3c47 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('sint'); + const responsePromise = client.accounts.disconnect('at'); 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 4669831e..94d39b86 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: 'odio', - auth_type: 'mobile_app', - cookies: 'tempora', + auth_id: 'modi', + auth_type: 'raw_data', + cookies: 'commodi', customProxy: { host: 'proxy.example.com', - password: 'yLUj}dhnk\\y@4s?Y2z', + password: ']Shxu\\', port: 8080, - username: 'doloribus', + username: 'quisquam', }, - email: 'pinkie37@example.org', - force_connect: true, - name: 'qui', - password: 'Q.eq=X\\un|C[BeFC\\', + email: 'hills.marques@example.net', + force_connect: false, + name: 'est', + password: '3O)l.[n,a;wMpwRT8Y>', proxyCountry: 'uk', - user_agent: 'ut', - xbc: 'molestias', + user_agent: 'qui', + xbc: 'esse', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 7b6f3dae..b1a0ecbb 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('sint', { + const responsePromise = client.engagement.messages.getMessageBuyers('veritatis', { 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('sint', { + const response = await client.engagement.messages.getMessageBuyers('veritatis', { 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 df43bb54..157f995e 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('nobis', { + const responsePromise = client.media.vault.lists.media.add('voluptatem', { 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('nobis', { + const response = await client.media.vault.lists.media.add('voluptatem', { 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('nobis', { + const responsePromise = client.media.vault.lists.media.remove('voluptatem', { 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('nobis', { + const response = await client.media.vault.lists.media.remove('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 221840f1..e56adcd7 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('architecto', { + 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('architecto', { + 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('architecto', { 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('architecto', { + const response = await client.posts.comments.list('aut', { 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 e2edc676..fd74b68f 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 c1510622..96d399de 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c31b313e..7775ec60 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: ['zwlvnthqluhbdydpukgggpluf'] }, + filter: { tags: ['vijlzegwf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('iste'); + const responsePromise = client.smartLinks.listClicks('repudiandae'); 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( - 'iste', + 'repudiandae', { 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('voluptas'); + const responsePromise = client.smartLinks.listConversions('natus'); 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( - 'voluptas', + 'natus', { 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('sed'); + const responsePromise = client.smartLinks.listFans('amet'); 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( - 'sed', + 'amet', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('culpa'); + const responsePromise = client.smartLinks.listSpenders('veritatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'veritatis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ratione'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ratione', + 'dolores', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sint'); + const responsePromise = client.smartLinks.retrieveStats('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'accusamus', { 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 a289b683..f1284a21 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: 'cowcnvfoyzgkbr', tags: ['thylo'] }, + filter: { search: 'iggxxamskaeznl', tags: ['pmdsklnywhipknxxrcdy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'm', tags: ['juosglzjnkgnnkyxvxzmrgm'] }, + filter: { search: 'ku', tags: ['rei'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vhorhty', - tags: ['cxrkgfmfqiopndjxrfhd'], + search: 'krnctelvnfawrdlsd', + tags: ['xoaoiyfshwhuohjnc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'apoxygemhfoudmfathtw', - tags: ['pfuuvtodeflxnug'], + search: 'buobyvlzqlbssdyicgyieuenj', + tags: ['oajjidv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..bdf3e67c 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('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('et', { + 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('et', { + 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('et', { + 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 9ccc0dfa..748cecba 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('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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ipsum', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ipsum', { + const response = await client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('magnam', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('magnam', { + 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 48036137..c686e499 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('dolorum', { 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nobis', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nobis', { + const response = await client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('iusto', { + const response = await client.trialLinks.retrieveStats('delectus', { 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 7750be33..809b4c70 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: 'isfkhsndbcnwtcefzbnzqx', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nbkdeagayzijsh' }); 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: 'isfkhsndbcnwtcefzbnzqx', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nbkdeagayzijsh' }); }); // Mock server tests are disabled From 9ce2aa6f721ac0d29e9df40842d73b31e79ff1dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 23:12:32 +0000 Subject: [PATCH 245/309] 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 | 12 ++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 11 ++++---- 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 +-- .../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 | 12 ++++----- .../trial-links/trial-links.test.ts | 24 ++++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 110 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8da4e8f3..986ed842 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3a681811f9dca9fafb1afffb864339f1522537aee190126620680aeca3803358.yml -openapi_spec_hash: 1b0a40a3f83009a9b99ea771335d528f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d77c40bb8d593aea1bef6ab925354c00f69d9f92c1e67a8965997e6d363237a9.yml +openapi_spec_hash: 79ccca3bec6097941e6b20ab10a3b09e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 99d90ec6..2b466a67 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('at'); + * const response = await client.accounts.disconnect('odit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 357f56ed..59e1dffc 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( - * 'veritatis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66286110..2f38ae64 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( - * 'voluptatem', + * '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( - * 'voluptatem', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..7ddb0649 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( + * 'error', + * { + * 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('aut', { + * const comments = await client.posts.comments.list('error', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 2b04cbb2..41feb4c0 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 00611184..d40be1a2 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( - * 'repudiandae', + * 'sapiente', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'natus', + * 'architecto', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('amet'); + * const response = await client.smartLinks.listFans('magni'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'veritatis', + * 'esse', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolores'); + * await client.smartLinks.retrieveCohortArps('ab'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'accusamus', + * 'quod', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c4aa0882..eef96d3c 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', + * 'eum', * { * 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('eum', { * 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 c2f20d94..163086ad 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', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'qui', * { 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( + * 'libero', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 43f2a0ce..cec6deb3 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( - * 'dolorum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'dolorum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'ipsum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('placeat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'delectus', + * 'laudantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 67421fe9..facbcc17 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: 'nbkdeagayzijsh' }, + * { name: 'fzqezaenenscbqdhjo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2b6b3c47..7e86ed8c 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('at'); + const responsePromise = client.accounts.disconnect('odit'); 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 94d39b86..b9fd4fc7 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: 'modi', - auth_type: 'raw_data', - cookies: 'commodi', + auth_id: 'architecto', + auth_type: 'mobile_app', + cookies: 'placeat', customProxy: { host: 'proxy.example.com', - password: ']Shxu\\', + password: "'[;q;Z~6FqomM5", port: 8080, - username: 'quisquam', + username: 'ab', }, - email: 'hills.marques@example.net', - force_connect: false, - name: 'est', - password: '3O)l.[n,a;wMpwRT8Y>', + email: 'ava15@example.com', + force_connect: true, + name: 'reprehenderit', + password: 'j" { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('veritatis', { + const responsePromise = client.engagement.messages.getMessageBuyers('qui', { 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('veritatis', { + const response = await client.engagement.messages.getMessageBuyers('qui', { 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 157f995e..19155ed9 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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 b0d96512..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..b00cc334 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('error', { 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('error', { 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('error', { 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('error', { 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 fd74b68f..4ec8acc7 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 96d399de..c1510622 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 7775ec60..5f795780 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: ['vijlzegwf'] }, + filter: { tags: ['iagjbibujmbrfj'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('repudiandae'); + const responsePromise = client.smartLinks.listClicks('sapiente'); 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( - 'repudiandae', + 'sapiente', { 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('natus'); + const responsePromise = client.smartLinks.listConversions('architecto'); 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( - 'natus', + 'architecto', { 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('amet'); + const responsePromise = client.smartLinks.listFans('magni'); 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( - 'amet', + 'magni', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('veritatis'); + const responsePromise = client.smartLinks.listSpenders('esse'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'veritatis', + 'esse', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); + const responsePromise = client.smartLinks.retrieveCohortArps('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'dolores', + 'ab', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('accusamus'); + const responsePromise = client.smartLinks.retrieveStats('quod'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'accusamus', + 'quod', { 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 f1284a21..e0dd6294 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: 'iggxxamskaeznl', tags: ['pmdsklnywhipknxxrcdy'] }, + filter: { search: 'xrho', tags: ['yrijvvykpelpyszb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ku', tags: ['rei'] }, + filter: { search: 'ixcexrtbrlndykk', tags: ['nlyezkevnvxmlylbtq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'krnctelvnfawrdlsd', - tags: ['xoaoiyfshwhuohjnc'], + search: 'mmperewfynhkshvxgagla', + tags: ['iwkfbadxicatpid'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'buobyvlzqlbssdyicgyieuenj', - tags: ['oajjidv'], + search: 'hiuuwqvbuivmxscpcwj', + tags: ['ljyv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdf3e67c..ecc46199 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('eum', { 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('eum', { 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('eum', { 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('eum', { 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 748cecba..ac2c3182 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('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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,7 +93,7 @@ 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -120,7 +120,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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('libero', { 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 c686e499..a8122b94 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('dolorum', { 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolorum', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('placeat', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('placeat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('laudantium', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('delectus', { + const response = await client.trialLinks.retrieveStats('laudantium', { 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 809b4c70..943f763f 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: 'nbkdeagayzijsh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fzqezaenenscbqdhjo' }); 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: 'nbkdeagayzijsh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fzqezaenenscbqdhjo' }); }); // Mock server tests are disabled From 4c7a93f8c606efc8af1526c6f48cb7c89c36be2e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 16:12:33 +0000 Subject: [PATCH 246/309] 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 | 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 | 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 +++--- 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 | 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 | 24 +++++++---------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 107 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 986ed842..2ddb459b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d77c40bb8d593aea1bef6ab925354c00f69d9f92c1e67a8965997e6d363237a9.yml -openapi_spec_hash: 79ccca3bec6097941e6b20ab10a3b09e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f64ed313defbcde810e1a8d9a094e06799e72d0d1d29c6a0c0e7917f8020642f.yml +openapi_spec_hash: d508d92cc5afbca8b9fb3c20b0fee10b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2b466a67..fcdc00c7 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('odit'); + * const response = await client.accounts.disconnect( + * 'occaecati', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 59e1dffc..819948b6 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'illum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..a85c6b6e 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', + * 'sint', * { 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', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7ddb0649..9f6dd5a4 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( - * 'error', - * { - * 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,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('error', { + * const comments = await client.posts.comments.list('amet', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..e20f70d1 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 41feb4c0..2b04cbb2 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 d40be1a2..6f9df069 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( - * 'sapiente', + * 'dolore', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'architecto', + * 'minima', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('magni'); + * const response = await client.smartLinks.listFans('enim'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'esse', + * 'vel', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ab'); + * await client.smartLinks.retrieveCohortArps('omnis'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quod', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index eef96d3c..e75e4e97 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( - * 'eum', + * 'deserunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eum', { + * await client.stories.highlights.removeStory('deserunt', { * 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 163086ad..0ff7c489 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', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('veritatis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'libero', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cec6deb3..476a7224 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', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptatem', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ipsum', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('placeat', { + * await client.trialLinks.retrieveCohortArps('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laudantium', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index facbcc17..2f3dc87f 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: 'fzqezaenenscbqdhjo' }, + * { name: 'lwpqwwwqqffdonvikp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7e86ed8c..b0891f2a 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('odit'); + const responsePromise = client.accounts.disconnect('occaecati'); 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 b9fd4fc7..7a050544 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: 'architecto', + auth_id: 'iste', auth_type: 'mobile_app', - cookies: 'placeat', + cookies: 'voluptatem', customProxy: { host: 'proxy.example.com', - password: "'[;q;Z~6FqomM5", + password: '!I4Eg1NzM[>G$9Z%(', port: 8080, - username: 'ab', + username: 'corporis', }, - email: 'ava15@example.com', - force_connect: true, - name: 'reprehenderit', - password: 'j" { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('qui', { + const responsePromise = client.engagement.messages.getMessageBuyers('illum', { 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('qui', { + const response = await client.engagement.messages.getMessageBuyers('illum', { 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 19155ed9..c9fd281d 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('sint', { 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('sint', { 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('sint', { 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('sint', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b00cc334..f27e4722 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('error', { + 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('error', { + 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('error', { 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('error', { + 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 4ec8acc7..fd74b68f 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 c1510622..96d399de 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 5f795780..f52e60bf 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: ['iagjbibujmbrfj'] }, + filter: { tags: ['qty'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sapiente'); + const responsePromise = client.smartLinks.listClicks('dolore'); 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( - 'sapiente', + 'dolore', { 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('architecto'); + const responsePromise = client.smartLinks.listConversions('minima'); 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( - 'architecto', + 'minima', { 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('magni'); + const responsePromise = client.smartLinks.listFans('enim'); 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( - 'magni', + 'enim', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('esse'); + const responsePromise = client.smartLinks.listSpenders('vel'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'esse', + 'vel', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ab'); + const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'omnis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quod'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quod', + '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 e0dd6294..8ad145fd 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: 'xrho', tags: ['yrijvvykpelpyszb'] }, + filter: { search: 'bgaonlgjj', tags: ['qwmnhswbocbrwyzmtneha'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ixcexrtbrlndykk', tags: ['nlyezkevnvxmlylbtq'] }, + filter: { search: 'uffegxbbnxob', tags: ['enbwof'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'mmperewfynhkshvxgagla', - tags: ['iwkfbadxicatpid'], + include_smart_links: false, + search: 'zkbzrdbyfvgdeban', + tags: ['xoaswtcgdhrwrpsnogw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'hiuuwqvbuivmxscpcwj', - tags: ['ljyv'], + search: 'widzwerqijicuin', + tags: ['yzuzrcmjetykfjencjbidnqxg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index ecc46199..93556107 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('eum', { + const responsePromise = client.stories.highlights.addStory('deserunt', { 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('eum', { + const response = await client.stories.highlights.addStory('deserunt', { 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('eum', { + const responsePromise = client.stories.highlights.removeStory('deserunt', { 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('eum', { + const response = await client.stories.highlights.removeStory('deserunt', { 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 ac2c3182..0d615852 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('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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ 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('quia', { 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('veritatis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('libero', { + const response = await client.trackingLinks.getStats('quis', { 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 a8122b94..9d7ec33c 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('reiciendis', { 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ipsum', { + const responsePromise = client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ipsum', { + const response = await client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('placeat', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('placeat', { + const response = await client.trialLinks.retrieveCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('laudantium', { - 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; @@ -190,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('laudantium', { + 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 943f763f..f167f952 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: 'fzqezaenenscbqdhjo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lwpqwwwqqffdonvikp' }); 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: 'fzqezaenenscbqdhjo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lwpqwwwqqffdonvikp' }); }); // Mock server tests are disabled From 2cbabdb14ea2688c82f44997f135f0a72dc2d16e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 23 Aug 2026 21:12:33 +0000 Subject: [PATCH 247/309] 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 | 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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 29 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2ddb459b..1aca34c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f64ed313defbcde810e1a8d9a094e06799e72d0d1d29c6a0c0e7917f8020642f.yml -openapi_spec_hash: d508d92cc5afbca8b9fb3c20b0fee10b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-02449c7bd0ee06a1b5581c42d74655e56bd85c35f6d15f866331750c288a3221.yml +openapi_spec_hash: 9d4de106d4e6df753ada574f4c637d28 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fcdc00c7..26d0afeb 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( - * 'occaecati', - * ); + * 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 819948b6..5afbfa9f 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( - * 'illum', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a85c6b6e..60d2df49 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( - * 'sint', + * 'rem', * { 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( - * 'sint', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9f6dd5a4..072d758d 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('amet', { + * const comment = await client.posts.comments.create('nisi', { * 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('amet', { + * const comments = await client.posts.comments.list('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 2b04cbb2..a84ff073 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 6f9df069..211d837d 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( - * 'dolore', + * 'voluptatem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'minima', + * 'itaque', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('enim'); + * const response = await client.smartLinks.listFans( + * 'doloremque', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'vel', + * 'sit', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('omnis'); + * await client.smartLinks.retrieveCohortArps('sequi'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'iure', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e75e4e97..e8661886 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( - * 'deserunt', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('deserunt', { + * await client.stories.highlights.removeStory('aut', { * 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 0ff7c489..930e7ca7 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', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quia', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('veritatis', { + * 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( - * 'quis', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 476a7224..5685cd6f 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( - * 'reiciendis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'reiciendis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sit', { + * await client.trialLinks.retrieveCohortArps('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'id', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2f3dc87f..ca506ea5 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: 'lwpqwwwqqffdonvikp' }, + * { name: 'xvntzgfveqrouznemdtwig' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b0891f2a..328f1caf 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('occaecati'); + 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 7a050544..6cfdbad6 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: 'iste', + auth_id: 'asperiores', auth_type: 'mobile_app', - cookies: 'voluptatem', + cookies: 'autem', customProxy: { host: 'proxy.example.com', - password: '!I4Eg1NzM[>G$9Z%(', + password: '&}#1#sdFK[X|fVkt`5#|', port: 8080, - username: 'corporis', + username: 'ut', }, - email: 'raleigh81@example.com', - force_connect: false, - name: 'beatae', - password: 'nN^&m?X+~Hc**Z', - proxyCountry: 'uk', - user_agent: 'molestiae', - xbc: 'voluptatibus', + email: 'douglas.schaefer@example.net', + force_connect: true, + name: 'eum', + password: '\\&@i@u(FN{x4h|2qrZLE', + proxyCountry: 'us', + user_agent: 'nam', + xbc: 'labore', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 624744b1..02eef5b7 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('illum', { + const responsePromise = client.engagement.messages.getMessageBuyers('maiores', { 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('illum', { + const response = await client.engagement.messages.getMessageBuyers('maiores', { 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 c9fd281d..f74e4edc 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('sint', { + const responsePromise = client.media.vault.lists.media.add('rem', { 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('sint', { + const response = await client.media.vault.lists.media.add('rem', { 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('sint', { + const responsePromise = client.media.vault.lists.media.remove('rem', { 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('sint', { + const response = await client.media.vault.lists.media.remove('rem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..7b042946 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 f27e4722..82e0bda5 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('nisi', { 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('nisi', { 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('nisi', { 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('nisi', { 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 fd74b68f..e2edc676 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 96d399de..02883e18 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f52e60bf..0cb466d3 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: ['qty'] }, + filter: { tags: ['rqxssyy'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('dolore'); + const responsePromise = client.smartLinks.listClicks('voluptatem'); 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( - 'dolore', + 'voluptatem', { 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('minima'); + const responsePromise = client.smartLinks.listConversions('itaque'); 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( - 'minima', + 'itaque', { 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('enim'); + const responsePromise = client.smartLinks.listFans('doloremque'); 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( - 'enim', + 'doloremque', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('vel'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'sit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); + const responsePromise = client.smartLinks.retrieveCohortArps('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'omnis', + 'sequi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('iure'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'iure', { 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 8ad145fd..296da7e8 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: 'bgaonlgjj', tags: ['qwmnhswbocbrwyzmtneha'] }, + filter: { search: 'ptrfd', tags: ['zw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uffegxbbnxob', tags: ['enbwof'] }, + filter: { search: 'jsmazp', tags: ['gdyflvjhpfmhkf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zkbzrdbyfvgdeban', - tags: ['xoaswtcgdhrwrpsnogw'], + include_smart_links: true, + search: 'glgtfnknygsghuv', + tags: ['nsipbeapoiokwha'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'widzwerqijicuin', - tags: ['yzuzrcmjetykfjencjbidnqxg'], + search: 'ffhedwfczlsraryjdeqmz', + tags: ['mdedjimeudkcqqvkofngnso'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 93556107..013f5fda 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('deserunt', { + const responsePromise = client.stories.highlights.addStory('aut', { 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('deserunt', { + const response = await client.stories.highlights.addStory('aut', { 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('deserunt', { + const responsePromise = client.stories.highlights.removeStory('aut', { 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('deserunt', { + const response = await client.stories.highlights.removeStory('aut', { 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 0d615852..f33612dd 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('veritatis', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('veritatis', { + const response = await client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quis', { 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; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quis', { + 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 9d7ec33c..cf82e37e 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aut', { 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('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sit', { 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; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sit', { + const response = await client.trialLinks.retrieveCohortArps('nisi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,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('eum', { 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 f167f952..430071a6 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: 'lwpqwwwqqffdonvikp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xvntzgfveqrouznemdtwig', + }); 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: 'lwpqwwwqqffdonvikp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xvntzgfveqrouznemdtwig', + }); }); // Mock server tests are disabled From 337f7a2125ea799932b78e9ed9ae1ccada65c579 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 00:12:33 +0000 Subject: [PATCH 248/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 ++--- src/resources/mass-messaging.ts | 9 ++++-- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 13 +++++---- src/resources/queue.ts | 28 +++++++++++-------- .../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 ++++++------- 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 +- tests/api-resources/queue.test.ts | 4 +-- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 16 +++++------ .../trial-links/trial-links.test.ts | 24 +++++++++------- .../user-lists/user-lists.test.ts | 6 ++-- 32 files changed, 140 insertions(+), 130 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1aca34c8..593b3843 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-02449c7bd0ee06a1b5581c42d74655e56bd85c35f6d15f866331750c288a3221.yml -openapi_spec_hash: 9d4de106d4e6df753ada574f4c637d28 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f140a250991f032346b7608fc1537772544176a5415f903ea8c1575bd526f21c.yml +openapi_spec_hash: 8d2af7aeb4b1adf6e44d2314ff7cab03 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 26d0afeb..ca6cda03 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('quo'); + * 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 5afbfa9f..32c60dae 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( - * 'maiores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/mass-messaging.ts b/src/resources/mass-messaging.ts index c8365d6a..baa72f97 100644 --- a/src/resources/mass-messaging.ts +++ b/src/resources/mass-messaging.ts @@ -7,7 +7,8 @@ import { path } from '../internal/utils/path'; export class MassMessaging extends APIResource { /** - * Get the content of a mass message. + * Get the content and settings of a mass message, including a message scheduled + * for later. * * @example * ```ts @@ -27,7 +28,8 @@ export class MassMessaging extends APIResource { } /** - * Update a mass message. + * Update the content, recipients, media, price, or scheduled send time of an + * existing mass message. * * @example * ```ts @@ -47,7 +49,8 @@ export class MassMessaging extends APIResource { } /** - * List the pending or recently sent mass messages in the message queue. + * List pending, scheduled, and recently sent mass messages. Use an item ID to + * retrieve, update, reschedule, delete, or unsend the message. * * @example * ```ts diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 60d2df49..ae616ee2 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( - * 'rem', + * '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( - * 'rem', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 072d758d..e1526dec 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('nisi', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'illum', + * { + * 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('nisi', { + * const comments = await client.posts.comments.list('illum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/queue.ts b/src/resources/queue.ts index 86b5a584..4b2a6f2c 100644 --- a/src/resources/queue.ts +++ b/src/resources/queue.ts @@ -7,14 +7,14 @@ import { path } from '../internal/utils/path'; export class Queue extends APIResource { /** - * List posts and messages in the queue. + * List scheduled posts and mass messages for a date range. Use the type filter to + * return only posts, messages, or both. * * @example * ```ts * const queues = await client.queue.list( * 'acct_XXXXXXXXXXXXXXX', * { - * limit: 20, * publishDateEnd: '2025-01-01', * publishDateStart: '2025-01-01', * timezone: 'Europe/Prague', @@ -308,25 +308,31 @@ export namespace QueuePublishResponse { export interface QueueListParams { /** - * Maximum number of queue items to return (default = 20) - */ - limit: number; - - /** - * Latest publish date to return + * Latest publish date to return. Must be a valid date. Must be a valid date. Must + * be a date after or equal to publishDateStart. */ publishDateEnd: string; /** - * Earliest publish date to return (must be at least today) + * Earliest publish date to return (must be at least today). Must be a valid date. + * Must be a valid date. Must be a date after or equal to today. */ publishDateStart: string; /** - * Time timezone of the provided dates. - * [View available timezone values](https://www.php.net/manual/en/timezones.php) + * Timezone of the provided dates. + * [View available timezone values](https://www.php.net/manual/en/timezones.php). + * Must be a valid time zone, such as Africa/Accra. */ timezone: string; + + /** + * Maximum number of queue items to return (default 20). Must be at least 1. Must + * not be greater than 100. + */ + limit?: number; + + type?: Array<'chat' | 'post'>; } export interface QueueCountParams { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 a84ff073..c9a094cf 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 211d837d..2c19ef46 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', + * 'blanditiis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'itaque', + * 'ut', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'doloremque', - * ); + * const response = await client.smartLinks.listFans('velit'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'velit', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sequi'); + * await client.smartLinks.retrieveCohortArps('ipsum'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'iure', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..662f02d7 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( - * 'aut', + * 'accusamus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('accusamus', { * 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 930e7ca7..0a71e6cd 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( - * 'vel', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'vel', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('ad', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'reiciendis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ad', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5685cd6f..b0024bd5 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('aut', { + * const trialLink = await client.trialLinks.retrieve('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('aut', { + * const trialLink = await client.trialLinks.delete('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'dolores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nisi', { + * await client.trialLinks.retrieveCohortArps('consectetur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eum', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ca506ea5..17cee395 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: 'xvntzgfveqrouznemdtwig' }, + * { name: 'bdqaozoqrnmisspdfdifh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 328f1caf..8da98ca8 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('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 6cfdbad6..79c4f33e 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: 'asperiores', + auth_id: 'necessitatibus', auth_type: 'mobile_app', - cookies: 'autem', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '&}#1#sdFK[X|fVkt`5#|', + password: '9MJ#od)P(AV', port: 8080, - username: 'ut', + username: 'dolor', }, - email: 'douglas.schaefer@example.net', + email: 'roscoe46@example.com', force_connect: true, - name: 'eum', - password: '\\&@i@u(FN{x4h|2qrZLE', - proxyCountry: 'us', - user_agent: 'nam', - xbc: 'labore', + name: 'consequatur', + password: 'yb}Uh^', + proxyCountry: 'gb', + user_agent: 'sunt', + xbc: 'sed', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 02eef5b7..24eafa3e 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('maiores', { + 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('maiores', { + 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 f74e4edc..afbf4c8c 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('rem', { + 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('rem', { + 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('rem', { + 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('rem', { + 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 7b042946..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 82e0bda5..c58dd531 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('nisi', { + const responsePromise = client.posts.comments.create('illum', { 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('nisi', { + const response = await client.posts.comments.create('illum', { 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('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('illum', { 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('nisi', { + const response = await client.posts.comments.list('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index cc42819e..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -11,7 +11,6 @@ describe('resource queue', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { const responsePromise = client.queue.list('acct_XXXXXXXXXXXXXXX', { - limit: 20, publishDateEnd: '2025-01-01', publishDateStart: '2025-01-01', timezone: 'Europe/Prague', @@ -28,10 +27,11 @@ describe('resource queue', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { const response = await client.queue.list('acct_XXXXXXXXXXXXXXX', { - limit: 20, publishDateEnd: '2025-01-01', publishDateStart: '2025-01-01', timezone: 'Europe/Prague', + limit: 20, + type: ['post'], }); }); 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 e2edc676..fd74b68f 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 02883e18..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0cb466d3..980bd6b4 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: ['rqxssyy'] }, + filter: { tags: ['uvxtseimknpzix'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatem'); + const responsePromise = client.smartLinks.listClicks('blanditiis'); 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( - 'voluptatem', + 'blanditiis', { 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('itaque'); + const responsePromise = client.smartLinks.listConversions('ut'); 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( - 'itaque', + 'ut', { 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('doloremque'); + const responsePromise = client.smartLinks.listFans('velit'); 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( - 'doloremque', + 'velit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'velit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sequi'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'sequi', + 'ipsum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('iure'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'iure', + '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 296da7e8..f7d1d1eb 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: 'ptrfd', tags: ['zw'] }, + filter: { search: 'dvwbz', tags: ['bbh'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jsmazp', tags: ['gdyflvjhpfmhkf'] }, + filter: { search: 'ieqitbvrigfzlrapnuv', tags: ['yybzmtltlrnmy'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'glgtfnknygsghuv', - tags: ['nsipbeapoiokwha'], + search: 'jzjaucvoclvaozt', + tags: ['vrrwahe'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ffhedwfczlsraryjdeqmz', - tags: ['mdedjimeudkcqqvkofngnso'], + include_smart_links: true, + search: 'tpuuzkym', + tags: ['ysiyeyjxezjffmlmxn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..1fc9f79e 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('aut', { + const responsePromise = client.stories.highlights.addStory('accusamus', { 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('aut', { + const response = await client.stories.highlights.addStory('accusamus', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('accusamus', { 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('aut', { + const response = await client.stories.highlights.removeStory('accusamus', { 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 f33612dd..4021d307 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dolorum', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dolorum', { 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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('ad', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('ad', { 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 cf82e37e..1a0c21c3 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('qui', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptas', { + const responsePromise = client.trialLinks.listSubscribers('dolores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptas', { + const response = await client.trialLinks.listSubscribers('dolores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('consectetur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nisi', { + const response = await client.trialLinks.retrieveCohortArps('consectetur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('consequatur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eum', { + const response = await client.trialLinks.retrieveStats('consequatur', { 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 430071a6..b276d49a 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: 'xvntzgfveqrouznemdtwig', + name: 'bdqaozoqrnmisspdfdifh', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -24,9 +24,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: 'xvntzgfveqrouznemdtwig', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'bdqaozoqrnmisspdfdifh' }); }); // Mock server tests are disabled From 69a949ec387188986067a1bdf170c493ff28c726 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 15:12:35 +0000 Subject: [PATCH 249/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- src/resources/engagement/messages/messages.ts | 7 +- src/resources/following.ts | 72 +++++++++++++++++-- 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 | 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 +++--- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +- tests/api-resources/following.test.ts | 6 ++ .../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 +- .../shared-trial-links.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 | 6 +- 29 files changed, 192 insertions(+), 125 deletions(-) diff --git a/.stats.yml b/.stats.yml index 593b3843..b12d9a09 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f140a250991f032346b7608fc1537772544176a5415f903ea8c1575bd526f21c.yml -openapi_spec_hash: 8d2af7aeb4b1adf6e44d2314ff7cab03 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2981bb00d5867ed47941041f5cf03f89c9b8886804df5861b6ced90a57e4b284.yml +openapi_spec_hash: 9bf4bd2681b9df87f9a020cfe5d547a3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda03..22f33241 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( + * 'cupiditate', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 32c60dae..357f56ed 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('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'veritatis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/following.ts b/src/resources/following.ts index 6bedb869..956eee44 100644 --- a/src/resources/following.ts +++ b/src/resources/following.ts @@ -10,9 +10,11 @@ import { path } from '../internal/utils/path'; */ export class Following extends APIResource { /** - * Get a paginated list of followings for an Account. OnlyFans returns this list - * newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - * list does not share this order, so do not assume it applies there. + * Get a paginated list of followings for an Account. By default OnlyFans returns + * this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + * expired list does not share this order, so do not assume it applies there. Pass + * `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + * description for the caveat that OnlyFans persists the chosen order account-wide. * * @example * ```ts @@ -30,9 +32,11 @@ export class Following extends APIResource { } /** - * Get a paginated list of followings for an Account. OnlyFans returns this list - * newest-first, sorted by `subscribedByData.subscribeAt` descending. The expired - * list does not share this order, so do not assume it applies there. + * Get a paginated list of followings for an Account. By default OnlyFans returns + * this list newest-first, sorted by `subscribedByData.subscribeAt` descending. The + * expired list does not share this order, so do not assume it applies there. Pass + * `sort` (optionally with `sortDirection`) to reorder the list — see the parameter + * description for the caveat that OnlyFans persists the chosen order account-wide. * * @example * ```ts @@ -56,7 +60,10 @@ export class Following extends APIResource { * expirations, page through the full list each cycle (`limit=50`, follow * `_pagination.next_page` until it is null) and diff it against your own store * using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - * have already seen, as that can silently skip real expirations. + * have already seen, as that can silently skip real expirations. Pass + * `sort=expire_date` (optionally with `sortDirection`) to get a deterministic + * order instead — see the parameter description for the caveat that OnlyFans + * persists the chosen order account-wide. * * @example * ```ts @@ -896,6 +903,23 @@ export interface FollowingListActiveParams { * Search within following name/username. */ query?: string | null; + + /** + * Order the list by `last_activity` (the followed creator's last activity), + * `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + * `is_expired` (expired first — OnlyFans only offers this one on the expired + * list). Omit it to keep whichever order is currently stored for the account. + * **Note:** OnlyFans persists this order account-wide, so it also applies to later + * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + * changed again. This field is required when sortDirection is + * present. + */ + sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + */ + sortDirection?: 'asc' | 'desc' | null; } export namespace FollowingListActiveParams { @@ -930,6 +954,23 @@ export interface FollowingListAllParams { * Search within following name/username. */ query?: string | null; + + /** + * Order the list by `last_activity` (the followed creator's last activity), + * `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + * `is_expired` (expired first — OnlyFans only offers this one on the expired + * list). Omit it to keep whichever order is currently stored for the account. + * **Note:** OnlyFans persists this order account-wide, so it also applies to later + * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + * changed again. This field is required when sortDirection is + * present. + */ + sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + */ + sortDirection?: 'asc' | 'desc' | null; } export namespace FollowingListAllParams { @@ -964,6 +1005,23 @@ export interface FollowingListExpiredParams { * Search within following name/username. */ query?: string | null; + + /** + * Order the list by `last_activity` (the followed creator's last activity), + * `expire_date` (subscription expiry), `subscribe_date` (subscription start) or + * `is_expired` (expired first — OnlyFans only offers this one on the expired + * list). Omit it to keep whichever order is currently stored for the account. + * **Note:** OnlyFans persists this order account-wide, so it also applies to later + * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is + * changed again. This field is required when sortDirection is + * present. + */ + sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; + + /** + * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + */ + sortDirection?: 'asc' | 'desc' | null; } export namespace FollowingListExpiredParams { diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ae616ee2..ddfd3d9e 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', + * 'necessitatibus', * { 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', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e1526dec..0b5fb77e 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( - * 'illum', - * { - * 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,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('illum', { + * const comments = await client.posts.comments.list('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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/smart-links.ts b/src/resources/smart-links.ts index 2c19ef46..55a1ece5 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( - * 'blanditiis', + * 'voluptatibus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'nam', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('velit'); + * const response = await client.smartLinks.listFans( + * 'delectus', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'velit', + * 'sit', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ipsum'); + * await client.smartLinks.retrieveCohortArps('repellat'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'ad', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 662f02d7..e6a4043e 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( - * 'accusamus', + * 'natus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('accusamus', { + * await client.stories.highlights.removeStory('natus', { * 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 0a71e6cd..54d880d8 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( - * 'dolorum', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolorum', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ad', { + * await client.trackingLinks.getCohortArps('corrupti', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ad', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'totam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b0024bd5..6155156a 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolores', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('consectetur', { + * await client.trialLinks.retrieveCohortArps('laudantium', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consequatur', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 17cee395..39230e3b 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: 'bdqaozoqrnmisspdfdifh' }, + * { name: 'ffckfyolvlbkmim' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca8..239a4297 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('cupiditate'); 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 79c4f33e..3d7de8b6 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: 'necessitatibus', - auth_type: 'mobile_app', - cookies: 'et', + auth_id: 'qui', + auth_type: 'email_password', + cookies: 'aliquid', customProxy: { host: 'proxy.example.com', - password: '9MJ#od)P(AV', + password: '=@+fxN`EC@aB2.', port: 8080, - username: 'dolor', + username: 'impedit', }, - email: 'roscoe46@example.com', + email: 'rippin.lura@example.org', force_connect: true, - name: 'consequatur', - password: 'yb}Uh^', - proxyCountry: 'gb', - user_agent: 'sunt', - xbc: 'sed', + name: 'minima', + password: '~9@)vE1wMD/MH6{hRJ', + proxyCountry: 'us', + user_agent: 'rerum', + xbc: 'dolor', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 24eafa3e..b1a0ecbb 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('veritatis', { 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('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/following.test.ts b/tests/api-resources/following.test.ts index 0647920c..c2cb7d1f 100644 --- a/tests/api-resources/following.test.ts +++ b/tests/api-resources/following.test.ts @@ -31,6 +31,8 @@ describe('resource following', () => { limit: 10, offset: 0, query: 'john', + sort: 'subscribe_date', + sortDirection: 'desc', }, { path: '/_stainless_unknown_path' }, ), @@ -60,6 +62,8 @@ describe('resource following', () => { limit: 10, offset: 0, query: 'john', + sort: 'subscribe_date', + sortDirection: 'desc', }, { path: '/_stainless_unknown_path' }, ), @@ -89,6 +93,8 @@ describe('resource following', () => { limit: 10, offset: 0, query: 'john', + sort: 'subscribe_date', + sortDirection: 'desc', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index afbf4c8c..b57a0ba0 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('necessitatibus', { 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('necessitatibus', { 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('necessitatibus', { 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('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c58dd531..1f347b43 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('illum', { + 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('illum', { + 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('illum', { 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('illum', { + 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 ad49ad2e..9bf5999b 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 fd74b68f..4ec8acc7 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 980bd6b4..894a7966 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: ['uvxtseimknpzix'] }, + filter: { tags: ['amdpaulqoziiqlfipiy'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('blanditiis'); + const responsePromise = client.smartLinks.listClicks('voluptatibus'); 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( - 'blanditiis', + 'voluptatibus', { 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('ut'); + const responsePromise = client.smartLinks.listConversions('nam'); 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( - 'ut', + 'nam', { 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('velit'); + const responsePromise = client.smartLinks.listFans('delectus'); 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( - 'velit', + 'delectus', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('velit'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'sit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ipsum'); + const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsum', + 'repellat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'ad', { 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 f7d1d1eb..6d8d3604 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: 'dvwbz', tags: ['bbh'] }, + filter: { search: 'szumoecyoo', tags: ['wyxgubcnqntanuerkcslefaou'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ieqitbvrigfzlrapnuv', tags: ['yybzmtltlrnmy'] }, + filter: { search: 'bdkzbud', tags: ['ga'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jzjaucvoclvaozt', - tags: ['vrrwahe'], + include_smart_links: false, + search: 'vktzylgkakrqnt', + tags: ['hupqbipo'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'tpuuzkym', - tags: ['ysiyeyjxezjffmlmxn'], + include_smart_links: false, + search: 'rnenf', + tags: ['bcdkxxpvgwtvfyar'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1fc9f79e..4660d05c 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('accusamus', { + const responsePromise = client.stories.highlights.addStory('natus', { 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('accusamus', { + const response = await client.stories.highlights.addStory('natus', { 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('accusamus', { + const responsePromise = client.stories.highlights.removeStory('natus', { 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('accusamus', { + const response = await client.stories.highlights.removeStory('natus', { 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 4021d307..1ebf68b9 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('dolorum', { 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('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dolorum', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dolorum', { 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('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('corrupti', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ad', { + const response = await client.trackingLinks.getCohortArps('corrupti', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ad', { + const response = await client.trackingLinks.getStats('totam', { 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 1a0c21c3..59d64aa5 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptates', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('dolores', { + const responsePromise = client.trialLinks.listSubscribers('cum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('dolores', { + const response = await client.trialLinks.listSubscribers('cum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('consectetur', { + const responsePromise = client.trialLinks.retrieveCohortArps('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('consectetur', { + const response = await client.trialLinks.retrieveCohortArps('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('consequatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('consequatur', { + const response = await client.trialLinks.retrieveStats('libero', { 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 b276d49a..d75007cb 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: 'bdqaozoqrnmisspdfdifh', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ffckfyolvlbkmim' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'bdqaozoqrnmisspdfdifh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ffckfyolvlbkmim' }); }); // Mock server tests are disabled From fb5c3dfd7fa7624e9374447708c5d5e6855727b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 16:12:49 +0000 Subject: [PATCH 250/309] 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 +- .../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 | 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 +++--- tests/api-resources/queue.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 110 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index b12d9a09..ebf847c6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2981bb00d5867ed47941041f5cf03f89c9b8886804df5861b6ced90a57e4b284.yml -openapi_spec_hash: 9bf4bd2681b9df87f9a020cfe5d547a3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e51a86ed2d022a357a3c23d6131e7ef5dc02e6eed7938a2194636c0af981b1a2.yml +openapi_spec_hash: 6193cd485cc05096d76def90c29701a0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 22f33241..50c3bbd1 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( - * 'cupiditate', + * 'excepturi', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 357f56ed..41ef2418 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( - * 'veritatis', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ddfd3d9e..daa37b53 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( - * 'necessitatibus', + * '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( - * 'necessitatibus', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0b5fb77e..a403256d 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( + * 'eveniet', + * { + * 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( + * 'eveniet', + * { 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 a9767818..09d6973d 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 c9a094cf..2b04cbb2 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 55a1ece5..77c10b33 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', + * 'quibusdam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nam', + * 'quia', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'delectus', + * 'tempora', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'rerum', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('repellat'); + * await client.smartLinks.retrieveCohortArps('eum'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ad', + * 'quibusdam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e6a4043e..a9c614a7 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( - * 'natus', + * '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('natus', { + * 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 54d880d8..655ef756 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', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('corrupti', { + * await client.trackingLinks.getCohortArps('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'totam', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6155156a..fabceff9 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( - * 'voluptates', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptates', + * 'delectus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'cum', + * 'impedit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laudantium', { + * await client.trialLinks.retrieveCohortArps('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'libero', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 39230e3b..49c4bb96 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: 'ffckfyolvlbkmim' }, + * { name: 'sqofdvxjl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 239a4297..4475909b 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('cupiditate'); + const responsePromise = client.accounts.disconnect('excepturi'); 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 3d7de8b6..7a178da8 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: 'qui', - auth_type: 'email_password', - cookies: 'aliquid', + auth_id: 'et', + auth_type: 'mobile_app', + cookies: 'illum', customProxy: { host: 'proxy.example.com', - password: '=@+fxN`EC@aB2.', + password: '"!2[jgi>5opCJNij\'&', port: 8080, - username: 'impedit', + username: 'quas', }, - email: 'rippin.lura@example.org', - force_connect: true, - name: 'minima', - password: '~9@)vE1wMD/MH6{hRJ', + email: 'zoey67@example.net', + force_connect: false, + name: 'ut', + password: 'C)bRA80X', proxyCountry: 'us', - user_agent: 'rerum', - xbc: 'dolor', + user_agent: 'consequatur', + xbc: 'tempore', }, { 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 b1a0ecbb..ee0907b9 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('veritatis', { + const responsePromise = client.engagement.messages.getMessageBuyers('asperiores', { 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('veritatis', { + const response = await client.engagement.messages.getMessageBuyers('asperiores', { 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 b57a0ba0..6989253d 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('necessitatibus', { + 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('necessitatibus', { + 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('necessitatibus', { + 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('necessitatibus', { + 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 e769f5c8..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1f347b43..adc196dc 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('eveniet', { 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('eveniet', { 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('eveniet', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 4ec8acc7..e2edc676 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 b643af69..96d399de 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 d13ad1ce..6b1dc2fd 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 894a7966..69d96c3a 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: ['amdpaulqoziiqlfipiy'] }, + filter: { tags: ['mfysmhgmplrkea'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatibus'); + const responsePromise = client.smartLinks.listClicks('quibusdam'); 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( - 'voluptatibus', + 'quibusdam', { 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('nam'); + const responsePromise = client.smartLinks.listConversions('quia'); 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( - 'nam', + 'quia', { 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('delectus'); + const responsePromise = client.smartLinks.listFans('tempora'); 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( - 'delectus', + 'tempora', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'rerum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('repellat'); + const responsePromise = client.smartLinks.retrieveCohortArps('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'repellat', + 'eum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ad'); + const responsePromise = client.smartLinks.retrieveStats('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ad', + 'quibusdam', { 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 6d8d3604..ec400de2 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: 'szumoecyoo', tags: ['wyxgubcnqntanuerkcslefaou'] }, + filter: { search: 'nzyu', tags: ['nyppoctwckxxpnnau'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bdkzbud', tags: ['ga'] }, + filter: { search: 'ogawofckdgfni', tags: ['xavcixqhfssaqbns'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'vktzylgkakrqnt', - tags: ['hupqbipo'], + search: 'ljseacxzujwooto', + tags: ['ydgx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rnenf', - tags: ['bcdkxxpvgwtvfyar'], + search: 'xolibyhdqxzszdvaygvsfnavs', + tags: ['qugkgcyyoxpfqhehw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4660d05c..fca45b0b 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('natus', { + 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('natus', { + 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('natus', { + 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('natus', { + 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 1ebf68b9..1d225bfc 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('similique', { 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('corrupti', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('corrupti', { + const response = await client.trackingLinks.getCohortArps('quis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('totam', { + const response = await client.trackingLinks.getStats('quaerat', { 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 59d64aa5..7f89546e 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('delectus', { 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('cum', { + const responsePromise = client.trialLinks.listSubscribers('impedit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('cum', { + const response = await client.trialLinks.listSubscribers('impedit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('laudantium', { + const responsePromise = client.trialLinks.retrieveCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('laudantium', { + const response = await client.trialLinks.retrieveCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('error', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('libero', { + const response = await client.trialLinks.retrieveStats('error', { 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 d75007cb..e4a54a09 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: 'ffckfyolvlbkmim' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sqofdvxjl' }); 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: 'ffckfyolvlbkmim' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sqofdvxjl' }); }); // Mock server tests are disabled From 62a9f53e829445b3b556bc7293decbd358917437 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 05:12:39 +0000 Subject: [PATCH 251/309] 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/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 | 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/queue.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 23 files changed, 100 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index ebf847c6..2282b87f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e51a86ed2d022a357a3c23d6131e7ef5dc02e6eed7938a2194636c0af981b1a2.yml -openapi_spec_hash: 6193cd485cc05096d76def90c29701a0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0f5b27a377922abdbb2e57feb12601f2d92833cefaad9e301ad09a9972ea72c2.yml +openapi_spec_hash: 57c96cc1e38a5988580696892c0ce585 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 50c3bbd1..d1cabc19 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( - * 'excepturi', + * 'incidunt', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 41ef2418..38234eb5 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( - * 'asperiores', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index daa37b53..6fc5ef69 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', + * 'ducimus', * { 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', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 77c10b33..debb8554 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( - * 'quibusdam', - * ); + * 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( - * 'quia', + * 'voluptatum', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'tempora', - * ); + * const response = await client.smartLinks.listFans('nulla'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'rerum', + * 'soluta', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eum'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quibusdam', + * 'velit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..98ac1bdd 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', + * 'laboriosam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'laboriosam', + * { + * 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 655ef756..e2738c20 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( - * 'similique', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'similique', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quis', { + * await client.trackingLinks.getCohortArps('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quaerat', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fabceff9..a190824e 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( - * 'delectus', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'delectus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('earum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'impedit', + * 'quos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('possimus', { + * await client.trialLinks.retrieveCohortArps('quasi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'error', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 49c4bb96..bd0802d5 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: 'sqofdvxjl' }, + * { name: 'kdgreiataph' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 4475909b..90957d52 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('excepturi'); + const responsePromise = client.accounts.disconnect('incidunt'); 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 7a178da8..cd3198a3 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_type: 'mobile_app', - cookies: 'illum', + auth_id: 'sed', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '"!2[jgi>5opCJNij\'&', + password: 'Q.5Fr$NJQ0WfAv', port: 8080, - username: 'quas', + username: 'quia', }, - email: 'zoey67@example.net', + email: 'cartwright.dena@example.com', force_connect: false, - name: 'ut', - password: 'C)bRA80X', - proxyCountry: 'us', - user_agent: 'consequatur', - xbc: 'tempore', + name: 'ab', + password: 'yc`=qUZF1h[', + proxyCountry: 'uk', + user_agent: 'necessitatibus', + xbc: 'quae', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ee0907b9..de3bbf1b 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('asperiores', { + const responsePromise = client.engagement.messages.getMessageBuyers('tempora', { 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('asperiores', { + const response = await client.engagement.messages.getMessageBuyers('tempora', { 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 6989253d..31cf4c63 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('ducimus', { 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('ducimus', { 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('ducimus', { 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('ducimus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 69d96c3a..44305920 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: ['mfysmhgmplrkea'] }, + filter: { tags: ['rjyqgoshkztmneg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quibusdam'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'quibusdam', + 'qui', { 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('quia'); + const responsePromise = client.smartLinks.listConversions('voluptatum'); 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( - 'quia', + 'voluptatum', { 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('tempora'); + const responsePromise = client.smartLinks.listFans('nulla'); 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( - 'tempora', + 'nulla', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('rerum'); + const responsePromise = client.smartLinks.listSpenders('soluta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'rerum', + 'soluta', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eum'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quibusdam'); + const responsePromise = client.smartLinks.retrieveStats('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quibusdam', + 'velit', { 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 ec400de2..fce6daea 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: 'nzyu', tags: ['nyppoctwckxxpnnau'] }, + filter: { search: 'eeqphejptgpx', tags: ['ucothogjwsivkr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ogawofckdgfni', tags: ['xavcixqhfssaqbns'] }, + filter: { search: 'qaewcbalxwpwj', tags: ['uqenubo'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ljseacxzujwooto', - tags: ['ydgx'], + search: 'fdwuimmjhgheqeunjyuu', + tags: ['gibswfgslrtvtccmrkd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'xolibyhdqxzszdvaygvsfnavs', - tags: ['qugkgcyyoxpfqhehw'], + include_smart_links: true, + search: 'ijcdvxaukimmosvvcsdaq', + tags: ['axpueb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..dc730189 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('laboriosam', { 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('laboriosam', { 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('laboriosam', { 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('laboriosam', { 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 1d225bfc..4d9de1ac 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('perspiciatis', { + 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +83,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +95,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quis', { + const response = await client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quaerat', { 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; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quaerat', { + 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 7f89546e..ea9f1913 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('delectus', { 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('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('delectus', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('delectus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('impedit', { + const responsePromise = client.trialLinks.listSubscribers('quos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('impedit', { + const response = await client.trialLinks.listSubscribers('quos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('possimus', { + const responsePromise = client.trialLinks.retrieveCohortArps('quasi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('quasi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('error', { + const response = await client.trialLinks.retrieveStats('enim', { 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 e4a54a09..284c2cc6 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: 'sqofdvxjl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kdgreiataph' }); 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: 'sqofdvxjl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kdgreiataph' }); }); // Mock server tests are disabled From 192f58c964898b8fb203ba707c3df8185274987c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 06:12:38 +0000 Subject: [PATCH 252/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 4 +- src/resources/data-exports.ts | 53 +++-- src/resources/engagement/messages/messages.ts | 7 +- src/resources/media/vault/lists/lists.ts | 216 +++++++++++++----- 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 | 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/lists.test.ts | 1 + .../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 +- .../shared-trial-links.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 | 20 +- .../trial-links/trial-links.test.ts | 20 +- .../user-lists/user-lists.test.ts | 4 +- 32 files changed, 303 insertions(+), 192 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2282b87f..410df9e4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0f5b27a377922abdbb2e57feb12601f2d92833cefaad9e301ad09a9972ea72c2.yml -openapi_spec_hash: 57c96cc1e38a5988580696892c0ce585 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b7eaf3aea520bc245be9b93991257f9c1b5ad2ebad57eb17e80ac97fbdc66a4.yml +openapi_spec_hash: c6cfa0dc8655e915bd8f945d84121803 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d1cabc19..2d703f78 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( - * 'incidunt', - * ); + * const response = await client.accounts.disconnect('est'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/data-exports.ts b/src/resources/data-exports.ts index 141f35e0..c88cdde2 100644 --- a/src/resources/data-exports.ts +++ b/src/resources/data-exports.ts @@ -536,9 +536,9 @@ export interface DataExportCreateParams { /** * The output file format. Supported formats vary by export type: `csv` or `xlsx` - * for transactions, chat_messages, trial_links, tracking_links, smart_links, - * payouts, chargebacks, public_profiles, fans, followings, profile_visitors; `zip` - * for media_vault. + * for transactions, chat_messages, fansly_chat_messages, trial_links, + * tracking_links, smart_links, payouts, chargebacks, public_profiles, fans, + * followings, profile_visitors; `zip` for media_vault. */ file_type: 'csv' | 'xlsx' | 'zip'; @@ -548,9 +548,10 @@ export interface DataExportCreateParams { start_date: string; /** - * The type of data to export. `profile_visitors` returns one row per account per - * day, scraped one day at a time so the daily numbers are not aggregated away by - * OnlyFans. + * The type of data to export. Use `fansly_chat_messages` to export Fansly chat + * messages (all other types are OnlyFans). `profile_visitors` returns one row per + * account per day, scraped one day at a time so the daily numbers are not + * aggregated away by OnlyFans. */ type: | 'transactions' @@ -564,11 +565,13 @@ export interface DataExportCreateParams { | 'public_profiles' | 'fans' | 'followings' - | 'profile_visitors'; + | 'profile_visitors' + | 'fansly_chat_messages'; /** * Array of account prefixed IDs to export data from. Not required for - * `public_profiles` type. + * `public_profiles` type. For `fansly_chat_messages`, pass Fansly account prefixed + * IDs (`fansly_acct_...`); all other types take OnlyFans account IDs. */ account_ids?: Array; @@ -588,20 +591,23 @@ export interface DataExportCreateParams { * account, max 10,000,000), `maxChats` (optional per-account chat scrape limit), * `skipMassMessages` (optional, bool), `chatIds` (optional array of numeric * fan/chat IDs; filters output and can drastically reduce totals). For - * `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, `video`, - * `audio`). For `fans`: `type` (required, one of: `all`, `active`, `expired`, - * `latest`). For `followings`: `type` (required, one of: `all`, `active`, - * `expired`). For `public_profiles`: `query` (optional, full-text search), - * `gender` (optional, filter: male, female, trans, couple), `minSubscribePrice` - * (optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional), - * `minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum - * photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount` - * (optional, minimum subscribers), `maxSubscribersCount` (optional, maximum - * subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt` - * (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile - * added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB - * before), `instagram` (optional), `twitter` (optional), `tiktok` (optional), - * `maxResults` (optional, limit results). + * `fansly_chat_messages`: `maxMessages` (required per account, max 10,000,000), + * `maxChats` (optional per-account chat scrape limit), `chatIds` (optional array + * of Fansly group ID strings; filters output and can drastically reduce totals). + * For `media_vault`: `mediaType` (required, one of: `all`, `photo`, `gif`, + * `video`, `audio`). For `fans`: `type` (required, one of: `all`, `active`, + * `expired`, `latest`). For `followings`: `type` (required, one of: `all`, + * `active`, `expired`). For `public_profiles`: `query` (optional, full-text + * search), `gender` (optional, filter: male, female, trans, couple), + * `minSubscribePrice` (optional, USD), `maxSubscribePrice` (optional, USD), + * `location` (optional), `minPostsCount` (optional, minimum posts), + * `minPhotosCount` (optional, minimum photos), `minVideosCount` (optional, minimum + * videos), `minSubscribersCount` (optional, minimum subscribers), + * `maxSubscribersCount` (optional, maximum subscribers), `minJoinDate` (optional, + * ISO 8601 date), `minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` + * (optional, ISO 8601 date, profile added to DB after), `createdAtTo` (optional, + * ISO 8601 date, profile added to DB before), `instagram` (optional), `twitter` + * (optional), `tiktok` (optional), `maxResults` (optional, limit results). */ options?: { [key: string]: unknown }; } @@ -657,7 +663,8 @@ export interface DataExportListParams { | 'public_profiles' | 'fans' | 'followings' - | 'profile_visitors'; + | 'profile_visitors' + | 'fansly_chat_messages'; } export declare namespace DataExports { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 38234eb5..105f7d7a 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( - * 'tempora', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('vel', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/lists.ts b/src/resources/media/vault/lists/lists.ts index 57026c25..736cea07 100644 --- a/src/resources/media/vault/lists/lists.ts +++ b/src/resources/media/vault/lists/lists.ts @@ -70,6 +70,20 @@ export class Lists extends APIResource { /** * List your Vault lists (categories). * + * Every response carries an `ETag` computed over the `data` payload. Send it back + * as `If-None-Match` on your next call and you will get a `304 Not Modified` with + * an empty body when nothing changed, so you can keep serving your cached copy + * instead of re-parsing the full list. Credits are debited either way — we still + * have to ask OnlyFans for the current state to know whether it changed. + * + * The `ETag` covers `data` only, never `_meta` — your credits balance changes on + * every call, so including it would mean the `ETag` never matches. Because a `304` + * has no body, it also has no `_meta`: read the current credits and rate-limit + * counters from the `X-OFAPI-Credits-Used`, `X-OFAPI-Credits-Balance`, + * `X-Rate-Limit-Limit-Minute` and `X-Rate-Limit-Remaining-Minute` response + * headers, which are sent on `304` responses too. The `_meta` inside a body you + * cached earlier is stale by definition. + * * @example * ```ts * const lists = await client.media.vault.lists.list( @@ -299,104 +313,191 @@ export namespace ListUpdateResponse { } } -export interface ListListResponse { - _meta?: ListListResponse._Meta; - - data?: ListListResponse.Data; -} +/** + * Success + */ +export type ListListResponse = ListListResponse.UnionMember0 | ListListResponse.UnionMember1; export namespace ListListResponse { - export interface _Meta { - _cache?: _Meta._Cache; - - _credits?: _Meta._Credits; + /** + * Success + */ + export interface UnionMember0 { + _meta?: UnionMember0._Meta; - _rate_limits?: _Meta._RateLimits; + data?: UnionMember0.Data; } - export namespace _Meta { - export interface _Cache { - is_cached?: boolean; + export namespace UnionMember0 { + export interface _Meta { + _cache?: _Meta._Cache; - note?: string; + _credits?: _Meta._Credits; + + _rate_limits?: _Meta._RateLimits; } - export interface _Credits { - balance?: number; + export namespace _Meta { + export interface _Cache { + is_cached?: boolean; - note?: string; + note?: string; + } - used?: number; + export interface _Credits { + balance?: number; + + note?: string; + + used?: number; + } + + export interface _RateLimits { + limit_day?: number; + + limit_minute?: number; + + remaining_day?: number; + + remaining_minute?: number; + } } - export interface _RateLimits { - limit_day?: number; + export interface Data { + all?: Data.All; - limit_minute?: number; + canCreateVaultLists?: boolean; - remaining_day?: number; + hasMore?: boolean; - remaining_minute?: number; + list?: Array; + + order?: string; + + sort?: string; } - } - export interface Data { - all?: Data.All; + export namespace Data { + export interface All { + audiosCount?: number; - canCreateVaultLists?: boolean; + gifsCount?: number; - hasMore?: boolean; + medias?: Array; - list?: Array; + photosCount?: number; - order?: string; + videosCount?: number; + } + + export namespace All { + export interface Media { + type?: string; + + url?: string; + } + } + + export interface List { + id?: number; + + audiosCount?: number; + + canDelete?: boolean; + + canUpdate?: boolean; + + gifsCount?: number; + + hasMedia?: boolean; - sort?: string; + medias?: Array; + + name?: string; + + photosCount?: number; + + type?: string; + + videosCount?: number; + } + } } - export namespace Data { - export interface All { - audiosCount?: number; + /** + * Success (lightweight=true) + */ + export interface UnionMember1 { + _meta?: UnionMember1._Meta; - gifsCount?: number; + data?: UnionMember1.Data; + } - medias?: Array; + export namespace UnionMember1 { + export interface _Meta { + _cache?: _Meta._Cache; - photosCount?: number; + _credits?: _Meta._Credits; - videosCount?: number; + _rate_limits?: _Meta._RateLimits; } - export namespace All { - export interface Media { - type?: string; + export namespace _Meta { + export interface _Cache { + is_cached?: boolean; + + note?: string; + } + + export interface _Credits { + balance?: number; - url?: string; + note?: string; + + used?: number; + } + + export interface _RateLimits { + limit_day?: number; + + limit_minute?: number; + + remaining_day?: number; + + remaining_minute?: number; } } - export interface List { - id?: number; + export interface Data { + all?: Data.All; - audiosCount?: number; + canCreateVaultLists?: boolean; - canDelete?: boolean; + hasMore?: boolean; - canUpdate?: boolean; + list?: Array; - gifsCount?: number; + order?: string; - hasMedia?: boolean; + sort?: string; + } - medias?: Array; + export namespace Data { + export interface All { + mediaCount?: number; + } - name?: string; + export interface List { + id?: number; - photosCount?: number; + canUpdate?: boolean; - type?: string; + mediaCount?: number; - videosCount?: number; + name?: string; + + type?: string; + } } } } @@ -475,6 +576,13 @@ export interface ListUpdateParams { } export interface ListListParams { + /** + * Set to `true` to return only `id`, `name`, `type`, `canUpdate` and a rolled-up + * `mediaCount` per list, dropping the `medias` previews. Much smaller payload — + * ideal for rendering a folder picker. Default: `false` + */ + lightweight?: boolean; + /** * Number of media to return per page. Default: `24` */ diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6fc5ef69..85f0ee28 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( - * 'ducimus', + * 'facere', * { 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( - * 'ducimus', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a403256d..873c6a38 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( - * 'eveniet', + * 'fugit', * { * 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( - * 'eveniet', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('fugit', { + * 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 09d6973d..599a9525 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 2b04cbb2..41feb4c0 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 debb8554..769bea5d 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( + * 'molestiae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptatum', + * 'rerum', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nulla'); + * const response = await client.smartLinks.listFans('dolor'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'soluta', + * 'sint', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'velit', + * 'cumque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 98ac1bdd..3f9bae82 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( - * 'laboriosam', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -149,7 +149,7 @@ export class Highlights extends APIResource { * ```ts * const response = * await client.stories.highlights.removeStory( - * 'laboriosam', + * 'consequatur', * { * 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 e2738c20..e8a4b4e9 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( - * 'perspiciatis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'perspiciatis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iste', { + * await client.trackingLinks.getCohortArps('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tempore', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a190824e..e5f6e8cd 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('sint', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('earum', { + * const trialLink = await client.trialLinks.delete('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quos', + * 'dolorum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quasi', { + * await client.trialLinks.retrieveCohortArps('quidem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'enim', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index bd0802d5..f1e341c3 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: 'kdgreiataph' }, + * { name: 'djinyxqtyxdktwmewn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 90957d52..e5ed4ee6 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('incidunt'); + 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 cd3198a3..2c59c321 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: 'sint', auth_type: 'raw_data', - cookies: 'et', + cookies: 'neque', customProxy: { host: 'proxy.example.com', - password: 'Q.5Fr$NJQ0WfAv', + password: "oHv'cd2Gqw`", port: 8080, - username: 'quia', + username: 'in', }, - email: 'cartwright.dena@example.com', - force_connect: false, - name: 'ab', - password: 'yc`=qUZF1h[', - proxyCountry: 'uk', - user_agent: 'necessitatibus', - xbc: 'quae', + email: 'wpouros@example.net', + force_connect: true, + name: 'ratione', + password: ' { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index de3bbf1b..afbb8ebf 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('tempora', { + 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('tempora', { + const response = await client.engagement.messages.getMessageBuyers('vel', { 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 5731d552..53b39cf1 100644 --- a/tests/api-resources/media/vault/lists/lists.test.ts +++ b/tests/api-resources/media/vault/lists/lists.test.ts @@ -84,6 +84,7 @@ describe('resource lists', () => { client.media.vault.lists.list( 'acct_XXXXXXXXXXXXXXX', { + lightweight: true, limit: 24, offset: 0, query: 'My list name', diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 31cf4c63..f788d813 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('ducimus', { + const responsePromise = client.media.vault.lists.media.add('facere', { 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('ducimus', { + const response = await client.media.vault.lists.media.add('facere', { 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('ducimus', { + const responsePromise = client.media.vault.lists.media.remove('facere', { 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('ducimus', { + const response = await client.media.vault.lists.media.remove('facere', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index adc196dc..82fa2093 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('eveniet', { + const responsePromise = client.posts.comments.create('fugit', { 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('eveniet', { + const response = await client.posts.comments.create('fugit', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('fugit', { 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('eveniet', { + const response = await client.posts.comments.list('fugit', { 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 e2edc676..8e5b0566 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 44305920..8742a0ae 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: ['rjyqgoshkztmneg'] }, + filter: { tags: ['scvppxnx'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('qui'); + const responsePromise = client.smartLinks.listClicks('molestiae'); 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( - 'qui', + 'molestiae', { 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('voluptatum'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'voluptatum', + 'rerum', { 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('nulla'); + const responsePromise = client.smartLinks.listFans('dolor'); 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( - 'nulla', + 'dolor', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('soluta'); + const responsePromise = client.smartLinks.listSpenders('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'soluta', + 'sint', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('velit'); + const responsePromise = client.smartLinks.retrieveStats('cumque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'velit', + 'cumque', { 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 fce6daea..f4d2bc58 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: 'eeqphejptgpx', tags: ['ucothogjwsivkr'] }, + filter: { search: 'vwlhysdsdhhsfplqylypvu', tags: ['xwz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qaewcbalxwpwj', tags: ['uqenubo'] }, + filter: { search: 'ndxr', tags: ['yduje'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'fdwuimmjhgheqeunjyuu', - tags: ['gibswfgslrtvtccmrkd'], + search: 'zfz', + tags: ['riisnybn'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ijcdvxaukimmosvvcsdaq', - tags: ['axpueb'], + search: 'qvssvqhiuhhlhsgjedl', + tags: ['mjidphitcakqzyqvsgbtiiy'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dc730189..b692edc7 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('laboriosam', { + const responsePromise = client.stories.highlights.addStory('consequatur', { 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('laboriosam', { + const response = await client.stories.highlights.addStory('consequatur', { 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('laboriosam', { + const responsePromise = client.stories.highlights.removeStory('consequatur', { 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('laboriosam', { + const response = await client.stories.highlights.removeStory('consequatur', { 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 4d9de1ac..9b395096 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('perspiciatis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.retrieve('voluptatem', { 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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -69,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -83,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -95,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iste', { + const response = await client.trackingLinks.getCohortArps('minima', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('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 ea9f1913..b269fa09 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('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('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quos', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quos', { + const response = await client.trialLinks.listSubscribers('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quasi', { + const responsePromise = client.trialLinks.retrieveCohortArps('quidem', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quasi', { + const response = await client.trialLinks.retrieveCohortArps('quidem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('enim', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('enim', { + 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 284c2cc6..0a4f7ed2 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: 'kdgreiataph' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'djinyxqtyxdktwmewn' }); 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: 'kdgreiataph' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'djinyxqtyxdktwmewn' }); }); // Mock server tests are disabled From a5222cef4658f92d1ae7d43187ca41125be95d3c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 07:12:37 +0000 Subject: [PATCH 253/309] 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 | 16 +- src/resources/stories/highlights.ts | 13 +- src/resources/stories/stories.ts | 276 +++++++++++++++++- .../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 +- .../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 +- tests/api-resources/stories/stories.test.ts | 29 ++ .../tracking-links/tracking-links.test.ts | 18 +- .../trial-links/trial-links.test.ts | 22 +- .../user-lists/user-lists.test.ts | 4 +- 29 files changed, 411 insertions(+), 123 deletions(-) diff --git a/.stats.yml b/.stats.yml index 410df9e4..d4b3109f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b7eaf3aea520bc245be9b93991257f9c1b5ad2ebad57eb17e80ac97fbdc66a4.yml -openapi_spec_hash: c6cfa0dc8655e915bd8f945d84121803 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-edfaafe1957998ebfbda2d08eaaa72e8c2d00323ae5d025bd86083a71b7d6612.yml +openapi_spec_hash: abf7eda561eb13076e85063eb92088ba config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2d703f78..50028621 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('eos'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 105f7d7a..41ef2418 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( + * 'asperiores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 85f0ee28..c91cb463 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( - * 'facere', + * 'error', * { 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( - * 'facere', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 873c6a38..37ab2387 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( - * 'fugit', + * 'nesciunt', * { * 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('fugit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'nesciunt', + * { 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 599a9525..e20f70d1 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 769bea5d..5c28215d 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( - * 'molestiae', - * ); + * 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( - * 'rerum', + * 'quasi', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dolor'); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'sint', - * ); + * const response = await client.smartLinks.listSpenders('ea'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('quibusdam'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'cumque', + * 'eveniet', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3f9bae82..445cba5e 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( - * 'consequatur', + * 'enim', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'consequatur', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('enim', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/stories/stories.ts b/src/resources/stories/stories.ts index 459671f8..5d920772 100644 --- a/src/resources/stories/stories.ts +++ b/src/resources/stories/stories.ts @@ -30,7 +30,9 @@ export class Stories extends APIResource { highlights: HighlightsAPI.Highlights = new HighlightsAPI.Highlights(this._client); /** - * Post a new media or vault file to your story. + * Post a new media or vault file to your story, optionally with text overlays, + * @mentions, and a question sticker. Overlay elements are rendered by OnlyFans on + * top of your story media at view time. * * @example * ```ts @@ -228,6 +230,10 @@ export namespace StoryCreateResponse { canDelete?: boolean; + canvasHeight?: number; + + canvasWidth?: number; + commentsCount?: number; createdAt?: string; @@ -246,9 +252,11 @@ export namespace StoryCreateResponse { media?: Array; - question?: string | null; + question?: Data.Question; - releaseForms?: Array; + releaseForms?: Array; + + texts?: Array; tipsAmount?: string; @@ -311,6 +319,114 @@ export namespace StoryCreateResponse { } } } + + export interface Question { + entity?: Question.Entity; + + positions?: Question.Positions; + + type?: string; + } + + export namespace Question { + export interface Entity { + id?: number; + + createdAt?: string; + + text?: string; + } + + export interface Positions { + angle?: number; + + color?: string; + + height?: number; + + left?: number; + + top?: number; + + width?: number; + + x?: string | null; + + y?: string | null; + + zIndex?: number; + } + } + + export interface ReleaseForm { + id?: number; + + name?: string; + + partnerSource?: string; + + type?: string; + + user?: ReleaseForm.User; + } + + export namespace ReleaseForm { + export interface User { + id?: number; + + avatar?: string | null; + + avatarThumbs?: string | null; + + isFromGuest?: boolean; + + isIdentityVerified?: boolean; + + ivStatus?: string; + + name?: string; + + username?: string; + + view?: string; + } + } + + export interface Text { + angle?: number; + + bgColor?: string; + + color?: string; + + fontFamily?: string; + + fontSize?: string; + + fontStyle?: string | null; + + fontWeight?: number; + + left?: number; + + scale?: number; + + text?: string; + + textAlign?: string; + + textHeight?: number; + + textWidth?: number; + + top?: number; + + type?: string; + + users?: Array; + + zIndex?: number; + } } } @@ -1232,10 +1348,160 @@ export namespace StoryRetrieveStatsResponse { export interface StoryCreateParams { /** - * Array of media file upload prefixed_ids, or OF media IDs (required if price is - * not 0). + * Array of media file upload prefixed_ids, or OF vault media IDs. */ mediaFiles: Array; + + /** + * Canvas height overlay positions are relative to. Default `1920`. + */ + canvasHeight?: number; + + /** + * Canvas width overlay positions are relative to. Default `1080`. + */ + canvasWidth?: number; + + /** + * Interactive question sticker viewers can answer. + */ + question?: StoryCreateParams.Question; + + /** + * Text and @mention overlays. + */ + texts?: Array; +} + +export namespace StoryCreateParams { + /** + * Interactive question sticker viewers can answer. + */ + export interface Question { + /** + * Sticker accent color (hex). Default `#FF51DC`. + */ + color?: string; + + /** + * Sticker height in canvas px. Default `160`. + */ + height?: number; + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + left?: number; + + /** + * The question to ask. + */ + text?: string; + + /** + * Vertical position as a percentage of the canvas height (0-100). Default `30`. + */ + top?: number; + + /** + * Sticker width in canvas px. Default `257`. + */ + width?: number; + } + + export interface Text { + /** + * The overlay text. For mentions this must be the `@username` to mention (OnlyFans + * resolves the user and adds them to the story's release forms). + */ + text: string; + + /** + * Rotation in degrees. Default `0`. + */ + angle?: number; + + /** + * Background color (hex, `#00000000` = transparent). Native editor palette: + * #FFFFFF #000000 #69818C #FF51DC #FF4081 #FA3240 #FF8040 #FCA800 #70CF27 #00C864 + * #00B1CC #2196F3 #7953F5 #A832BF. Default: transparent for texts, white for + * mentions. + */ + bgColor?: string; + + /** + * Text color (hex). Defaults to the native editor behavior: white on a colored + * background, black on a white background (mentions: OnlyFans blue `#0091EA` on + * white). + */ + color?: string; + + /** + * Font family. Families support specific weights only: Roboto (400/500/700), + * PTMono (400), ShantellSans (400), SofiaSans (400, renders uppercase), + * YanoneKaffeesatz (700), RubikMedium (500), RubikBlack (700). Default `Roboto`. + * Ignored for mentions (always Roboto 500). + */ + fontFamily?: + | 'Roboto' + | 'PTMono' + | 'ShantellSans' + | 'SofiaSans' + | 'YanoneKaffeesatz' + | 'RubikMedium' + | 'RubikBlack'; + + /** + * Font size in canvas px (8-100). The native editor uses 9-36. Default `20`. + */ + fontSize?: number; + + /** + * Font weight; must match the chosen family (see `fontFamily`). + */ + fontWeight?: 400 | 500 | 700; + + /** + * Horizontal position as a percentage of the canvas width (0-100). Default `25`. + */ + left?: number; + + /** + * Scale factor. Default `1`. + */ + scale?: number; + + /** + * Text alignment. Default `left`. + */ + textAlign?: 'left' | 'center' | 'right'; + + /** + * Rendered text box height in canvas px. Estimated automatically when omitted. + */ + textHeight?: number; + + /** + * Rendered text box width in canvas px. Estimated automatically when omitted. + */ + textWidth?: number; + + /** + * Vertical position as a percentage of the canvas height (0-100). Defaults stagger + * each overlay below the previous one. + */ + top?: number; + + /** + * Overlay type. Default `text`. + */ + type?: 'text' | 'mention'; + + /** + * Stacking order. Defaults to placement order. + */ + zIndex?: number; + } } export interface StoryRetrieveParams { diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index e8a4b4e9..557e8b86 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( - * 'voluptatem', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatem', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('minima', { + * 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( - * 'qui', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e5f6e8cd..95213893 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('sint', { + * const trialLink = await client.trialLinks.retrieve('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sint', { + * const trialLink = await client.trialLinks.delete('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolorum', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quidem', { + * await client.trialLinks.retrieveCohortArps('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quasi', + * 'alias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f1e341c3..d9e2c626 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: 'djinyxqtyxdktwmewn' }, + * { name: 'whwktrmekficw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e5ed4ee6..b5ead1c6 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('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 2c59c321..593bd1e4 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: 'sint', - auth_type: 'raw_data', - cookies: 'neque', + auth_id: 'repellendus', + auth_type: 'email_password', + cookies: 'pariatur', customProxy: { host: 'proxy.example.com', - password: "oHv'cd2Gqw`", + password: "Ipau-'T$Ke7Az;BrfGd)", port: 8080, - username: 'in', + username: 'id', }, - email: 'wpouros@example.net', - force_connect: true, - name: 'ratione', - 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index afbb8ebf..ee0907b9 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('asperiores', { 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('asperiores', { 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 f788d813..3a7e5bcc 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('facere', { + const responsePromise = client.media.vault.lists.media.add('error', { 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('facere', { + const response = await client.media.vault.lists.media.add('error', { 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('facere', { + const responsePromise = client.media.vault.lists.media.remove('error', { 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('facere', { + const response = await client.media.vault.lists.media.remove('error', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..14dcb2e9 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 82fa2093..30bdae61 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('fugit', { + const responsePromise = client.posts.comments.create('nesciunt', { 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('fugit', { + const response = await client.posts.comments.create('nesciunt', { 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('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nesciunt', { 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('fugit', { + const response = await client.posts.comments.list('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 8e5b0566..fd74b68f 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 d13ad1ce..6b1dc2fd 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 8742a0ae..1f2e874f 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: ['scvppxnx'] }, + filter: { tags: ['iyifnd'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('molestiae'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'molestiae', + 'ut', { 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('rerum'); + const responsePromise = client.smartLinks.listConversions('quasi'); 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( - 'rerum', + 'quasi', { 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('dolor'); + const responsePromise = client.smartLinks.listFans('quia'); 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( - 'dolor', + 'quia', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sint'); + const responsePromise = client.smartLinks.listSpenders('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'ea', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'quibusdam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('cumque'); + const responsePromise = client.smartLinks.retrieveStats('eveniet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'cumque', + 'eveniet', { 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 f4d2bc58..5290c9c3 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: 'vwlhysdsdhhsfplqylypvu', tags: ['xwz'] }, + filter: { search: 'mpfcyvlrzkhzlfod', tags: ['bujzmjwjfhuvitrgvwebukm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ndxr', tags: ['yduje'] }, + filter: { search: 'yclihieijc', tags: ['jjjhqcnp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zfz', - tags: ['riisnybn'], + include_smart_links: true, + search: 'egkqomvmyajbmtrsuz', + tags: ['tgjnxf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qvssvqhiuhhlhsgjedl', - tags: ['mjidphitcakqzyqvsgbtiiy'], + include_smart_links: false, + search: 'dbdfzetymdkcbmfsiohqa', + tags: ['jgiexrokracuawwbitjn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b692edc7..bdebd6b4 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('consequatur', { + const responsePromise = client.stories.highlights.addStory('enim', { 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('consequatur', { + const response = await client.stories.highlights.addStory('enim', { 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('consequatur', { + const responsePromise = client.stories.highlights.removeStory('enim', { 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('consequatur', { + const response = await client.stories.highlights.removeStory('enim', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/stories/stories.test.ts b/tests/api-resources/stories/stories.test.ts index 32b2000d..b42de5a5 100644 --- a/tests/api-resources/stories/stories.test.ts +++ b/tests/api-resources/stories/stories.test.ts @@ -26,6 +26,35 @@ describe('resource stories', () => { test.skip('create: required and optional params', async () => { const response = await client.stories.create('acct_XXXXXXXXXXXXXXX', { mediaFiles: ['ofapi_media_abc123', 'string'], + canvasHeight: 1920, + canvasWidth: 1080, + question: { + color: '#FF51DC', + height: 160, + left: 25, + text: 'Ask me anything!', + top: 30, + width: 257, + }, + texts: [ + { + text: 'New drop today!', + angle: 0, + bgColor: '#FF51DC', + color: '#FFFFFF', + fontFamily: 'ShantellSans', + fontSize: 24, + fontWeight: 400, + left: 30.5, + scale: 1, + textAlign: 'center', + textHeight: 36, + textWidth: 140, + top: 60, + type: 'text', + zIndex: 8, + }, + ], }); }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 9b395096..2c6682c2 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('veniam', { 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('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('minima', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('minima', { + const response = await client.trackingLinks.getCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('architecto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('architecto', { 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 b269fa09..7c3496de 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('id', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quidem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quidem', { + const response = await client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('alias', { 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 0a4f7ed2..0d87f2dd 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: 'djinyxqtyxdktwmewn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'whwktrmekficw' }); 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: 'djinyxqtyxdktwmewn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'whwktrmekficw' }); }); // Mock server tests are disabled From 3d296dbdabc88d9cbc48cc7bf51f0f21862cc248 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 08:12:38 +0000 Subject: [PATCH 254/309] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/following.ts | 68 +++++++++++++++++-- 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 | 18 +++-- 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 +++--- 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/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +- .../saved-for-later/posts/settings.test.ts | 4 +- .../shared-trial-links.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 +- 30 files changed, 183 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index d4b3109f..a48b1ad0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-edfaafe1957998ebfbda2d08eaaa72e8c2d00323ae5d025bd86083a71b7d6612.yml -openapi_spec_hash: abf7eda561eb13076e85063eb92088ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-adc2248fbfadd296a372e1cfaa0f2017dfa4a0d611edea0a6006264d4328cada.yml +openapi_spec_hash: 1986e762bd172ac144a57ea678357cad config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 50028621..d075293d 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('eos'); + * const response = await client.accounts.disconnect('neque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 41ef2418..c295f4b1 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( - * 'asperiores', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/following.ts b/src/resources/following.ts index 956eee44..8337b8c3 100644 --- a/src/resources/following.ts +++ b/src/resources/following.ts @@ -15,6 +15,11 @@ export class Following extends APIResource { * expired list does not share this order, so do not assume it applies there. Pass * `sort` (optionally with `sortDirection`) to reorder the list — see the parameter * description for the caveat that OnlyFans persists the chosen order account-wide. + * An empty page is not the end of the list: OnlyFans applies `offset` to the whole + * following collection before filtering it down to the requested list, so a page + * can come back empty while more results follow. Keep following + * `_pagination.next_page` until it is `null` instead of stopping at the first + * empty page. * * @example * ```ts @@ -37,6 +42,11 @@ export class Following extends APIResource { * expired list does not share this order, so do not assume it applies there. Pass * `sort` (optionally with `sortDirection`) to reorder the list — see the parameter * description for the caveat that OnlyFans persists the chosen order account-wide. + * An empty page is not the end of the list: OnlyFans applies `offset` to the whole + * following collection before filtering it down to the requested list, so a page + * can come back empty while more results follow. Keep following + * `_pagination.next_page` until it is `null` instead of stopping at the first + * empty page. * * @example * ```ts @@ -60,10 +70,18 @@ export class Following extends APIResource { * expirations, page through the full list each cycle (`limit=50`, follow * `_pagination.next_page` until it is null) and diff it against your own store * using `subscribedByData.expiredAt`. Do NOT stop early at the first entry you - * have already seen, as that can silently skip real expirations. Pass - * `sort=expire_date` (optionally with `sortDirection`) to get a deterministic - * order instead — see the parameter description for the caveat that OnlyFans - * persists the chosen order account-wide. + * have already seen, as that can silently skip real expirations. An empty page is + * not the end of the list either: OnlyFans applies `offset` to the whole following + * collection and only then filters that window down to expired subscriptions, so + * early pages can come back empty while hundreds of expired rows still follow. + * Keep following `_pagination.next_page` until it is `null` instead of stopping at + * the first empty page. Pass `sort=expire_date` (optionally with `sortDirection`) + * to get a deterministic order instead — see the parameter description for the + * caveat that OnlyFans persists the chosen order account-wide. Ordering by expiry + * descending puts the still-active subscriptions first and moves the expired rows + * to the tail of the collection, so prefer `sortDirection=asc` or + * `sort=is_expired` for expired-first results; for that reason `sort=expire_date` + * defaults to `asc` on this list when no `sortDirection` is given. * * @example * ```ts @@ -911,13 +929,25 @@ export interface FollowingListActiveParams { * list). Omit it to keep whichever order is currently stored for the account. * **Note:** OnlyFans persists this order account-wide, so it also applies to later * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - * changed again. This field is required when sortDirection is + * changed again. **Expired list:** OnlyFans applies `offset` to the whole + * following collection and only then filters it down to expired subscriptions, so + * ordering by expiry descending puts the still-active subscriptions first and + * moves the expired rows to the tail of the collection — the first several hundred + * offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + * get expired-first results. For that reason `sort=expire_date` on the expired + * list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + * Whatever order you pick, an empty page is **not** the end of the list: keep + * following `_pagination.next_page` until it is `null` rather than stopping at the + * first empty page. This field is required when sortDirection is * present. */ sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; /** * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + * Exception: `sort=expire_date` on the expired list defaults to `asc`, because + * `desc` moves the expired rows to the tail of the underlying collection and + * leaves the early pages empty. Passing `sortDirection` explicitly always wins. */ sortDirection?: 'asc' | 'desc' | null; } @@ -962,13 +992,25 @@ export interface FollowingListAllParams { * list). Omit it to keep whichever order is currently stored for the account. * **Note:** OnlyFans persists this order account-wide, so it also applies to later * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - * changed again. This field is required when sortDirection is + * changed again. **Expired list:** OnlyFans applies `offset` to the whole + * following collection and only then filters it down to expired subscriptions, so + * ordering by expiry descending puts the still-active subscriptions first and + * moves the expired rows to the tail of the collection — the first several hundred + * offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + * get expired-first results. For that reason `sort=expire_date` on the expired + * list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + * Whatever order you pick, an empty page is **not** the end of the list: keep + * following `_pagination.next_page` until it is `null` rather than stopping at the + * first empty page. This field is required when sortDirection is * present. */ sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; /** * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + * Exception: `sort=expire_date` on the expired list defaults to `asc`, because + * `desc` moves the expired rows to the tail of the underlying collection and + * leaves the early pages empty. Passing `sortDirection` explicitly always wins. */ sortDirection?: 'asc' | 'desc' | null; } @@ -1013,13 +1055,25 @@ export interface FollowingListExpiredParams { * list). Omit it to keep whichever order is currently stored for the account. * **Note:** OnlyFans persists this order account-wide, so it also applies to later * requests that omit `sort` and to the creator's own onlyfans.com UI, until it is - * changed again. This field is required when sortDirection is + * changed again. **Expired list:** OnlyFans applies `offset` to the whole + * following collection and only then filters it down to expired subscriptions, so + * ordering by expiry descending puts the still-active subscriptions first and + * moves the expired rows to the tail of the collection — the first several hundred + * offsets then come back empty. Use `sortDirection=asc` or `sort=is_expired` to + * get expired-first results. For that reason `sort=expire_date` on the expired + * list defaults to `asc` instead of `desc` when you do not pass `sortDirection`. + * Whatever order you pick, an empty page is **not** the end of the list: keep + * following `_pagination.next_page` until it is `null` rather than stopping at the + * first empty page. This field is required when sortDirection is * present. */ sort?: 'last_activity' | 'expire_date' | 'subscribe_date' | 'is_expired' | null; /** * Direction for `sort`: `desc` (default) or `asc`. Requires `sort` to be set. + * Exception: `sort=expire_date` on the expired list defaults to `asc`, because + * `desc` moves the expired rows to the tail of the underlying collection and + * leaves the early pages empty. Passing `sortDirection` explicitly always wins. */ sortDirection?: 'asc' | 'desc' | null; } diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c91cb463..2f38ae64 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( - * 'error', + * '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( - * 'error', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 37ab2387..7d88b6f3 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( - * 'nesciunt', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('enim', { + * 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( - * 'nesciunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('enim', { + * 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 e20f70d1..599a9525 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 41feb4c0..c9a094cf 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 5c28215d..8a51e474 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( + * 'reprehenderit', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quasi', + * 'eos', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * const response = await client.smartLinks.listFans( + * 'numquam', + * ); * ``` */ listFans( @@ -127,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ea'); + * const response = await client.smartLinks.listSpenders( + * 'facilis', + * ); * ``` */ listSpenders( @@ -143,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quibusdam'); + * await client.smartLinks.retrieveCohortArps('sunt'); * ``` */ retrieveCohortArps( @@ -165,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eveniet', + * 'incidunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 445cba5e..aeddc58d 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( - * 'enim', + * 'reiciendis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('enim', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'reiciendis', + * { + * 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 557e8b86..4335d60a 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( - * 'veniam', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'veniam', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sit', { + * await client.trackingLinks.getCohortArps('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'architecto', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 95213893..29fae83f 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('id', { + * const trialLink = await client.trialLinks.retrieve('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('id', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vel', { + * await client.trialLinks.retrieveCohortArps('natus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'alias', + * 'saepe', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d9e2c626..a640c3c8 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: 'whwktrmekficw' }, + * { name: 'i' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b5ead1c6..10e215b3 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('neque'); 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 593bd1e4..14025b7b 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: 'repellendus', - auth_type: 'email_password', - cookies: 'pariatur', + auth_id: 'veniam', + auth_type: 'raw_data', + cookies: 'similique', customProxy: { host: 'proxy.example.com', - password: "Ipau-'T$Ke7Az;BrfGd)", + password: 'tJgR777<:=}', port: 8080, - username: 'id', + username: 'aut', }, - email: 'sipes.garry@example.com', + email: 'erica25@example.org', force_connect: false, - name: 'a', - password: 'Gl,]M9', - proxyCountry: 'uk', - user_agent: 'magni', - xbc: 'aperiam', + name: 'laborum', + password: "=!(\\63~z^?$Z'&", + proxyCountry: 'gb', + user_agent: 'nulla', + xbc: 'temporibus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ee0907b9..0bdc12a8 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('asperiores', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptas', { 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('asperiores', { + const response = await client.engagement.messages.getMessageBuyers('voluptas', { 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 3a7e5bcc..19155ed9 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('error', { + 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('error', { + 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('error', { + 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('error', { + 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 14dcb2e9..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 30bdae61..ea428640 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('nesciunt', { + const responsePromise = client.posts.comments.create('enim', { 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('nesciunt', { + const response = await client.posts.comments.create('enim', { 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('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('enim', { 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('nesciunt', { + const response = await client.posts.comments.list('enim', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..8e5b0566 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 c1510622..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 1f2e874f..0f1f3fd3 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: ['iyifnd'] }, + filter: { tags: ['zyckorazykqzmhp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('reprehenderit'); 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( - 'ut', + 'reprehenderit', { 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('quasi'); + const responsePromise = client.smartLinks.listConversions('eos'); 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( - 'quasi', + 'eos', { 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('quia'); + const responsePromise = client.smartLinks.listFans('numquam'); 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( - 'quia', + 'numquam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ea'); + const responsePromise = client.smartLinks.listSpenders('facilis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ea', + 'facilis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quibusdam'); + const responsePromise = client.smartLinks.retrieveCohortArps('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quibusdam', + 'sunt', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eveniet'); + const responsePromise = client.smartLinks.retrieveStats('incidunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'eveniet', + 'incidunt', { 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 5290c9c3..53174015 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: 'mpfcyvlrzkhzlfod', tags: ['bujzmjwjfhuvitrgvwebukm'] }, + filter: { search: 'uuvgytadbqohslscf', tags: ['kpplkccmcknfujztase'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yclihieijc', tags: ['jjjhqcnp'] }, + filter: { search: 'rac', tags: ['p'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'egkqomvmyajbmtrsuz', - tags: ['tgjnxf'], + search: 'dwmyugpjlvochsqhpuh', + tags: ['eshegajbbu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'dbdfzetymdkcbmfsiohqa', - tags: ['jgiexrokracuawwbitjn'], + include_smart_links: true, + search: 'sgjpxvqss', + tags: ['blunzvbjmnhaam'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdebd6b4..034c6b27 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('enim', { + const responsePromise = client.stories.highlights.addStory('reiciendis', { 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('enim', { + const response = await client.stories.highlights.addStory('reiciendis', { 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('enim', { + const responsePromise = client.stories.highlights.removeStory('reiciendis', { 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('enim', { + const response = await client.stories.highlights.removeStory('reiciendis', { 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 2c6682c2..fe0f9c58 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('vel', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('vel', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('quis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('architecto', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('architecto', { + 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 7c3496de..ec9cad6d 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('id', { 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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('id', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('natus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('vel', { + const response = await client.trialLinks.retrieveCohortArps('natus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('alias', { + const response = await client.trialLinks.retrieveStats('saepe', { 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 0d87f2dd..758bd31d 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: 'whwktrmekficw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'i' }); 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: 'whwktrmekficw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'i' }); }); // Mock server tests are disabled From 9d1bb6ad180f82f8a5c66db91aeabb1ca2a553a7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 11:12:42 +0000 Subject: [PATCH 255/309] 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 | 16 +++++------- 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 | 11 ++++++-- 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 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 10 ++++--- 28 files changed, 123 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index a48b1ad0..0751bec3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-adc2248fbfadd296a372e1cfaa0f2017dfa4a0d611edea0a6006264d4328cada.yml -openapi_spec_hash: 1986e762bd172ac144a57ea678357cad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5ac36f138ceb953477f1830fb90a8455ee5fb60bb00b79351f49a0d930a7bb44.yml +openapi_spec_hash: 4925a6c29f19d5958094e6a45fb3cd5a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d075293d..d9ebe1eb 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('neque'); + * const response = await client.accounts.disconnect('in'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c295f4b1..50b26aaf 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( - * 'voluptas', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..f3d95f1c 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', + * 'qui', * { 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', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d88b6f3..95bf943a 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('enim', { + * const comment = await client.posts.comments.create('quis', { * 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('enim', { + * const comments = await client.posts.comments.list('quis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 c9a094cf..a84ff073 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 8a51e474..927f5251 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( - * 'reprehenderit', - * ); + * const response = await client.smartLinks.listClicks('eum'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eos', + * 'quia', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'numquam', - * ); + * const response = await client.smartLinks.listFans('totam'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'facilis', + * 'enim', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sunt'); + * await client.smartLinks.retrieveCohortArps('beatae'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'incidunt', + * 'nisi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index aeddc58d..a35dcf96 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( - * 'reiciendis', + * 'saepe', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'reiciendis', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('saepe', { + * 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 4335d60a..da6b382e 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( - * 'vel', + * 'quidem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'vel', + * 'quidem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quis', { + * 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( - * 'velit', - * { 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 29fae83f..f926fc5c 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( + * 'veniam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('veniam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'quaerat', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('natus', { + * await client.trialLinks.retrieveCohortArps('deleniti', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'saepe', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a640c3c8..f2396880 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: 'i' }, + * { name: 'llscmhd' }, * ); * ``` */ @@ -87,7 +87,8 @@ export class UserLists extends APIResource { } /** - * Get a list of OnlyFans Collections - User Lists + * Get a list of OnlyFans Collections - User Lists. If you only want to get User + * Lists available for sending a Mass-Message, use `?view=queue` * * @example * ```ts @@ -552,6 +553,12 @@ export interface UserListListParams { * Must be at least 0. */ offset?: number | null; + + /** + * How to return the results. `queue` returns the user lists that are available for + * Mass-Messaging. + */ + view?: 'queue'; } export interface UserListDeleteParams { diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 10e215b3..a7a3b9d2 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('neque'); + const responsePromise = client.accounts.disconnect('in'); 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 14025b7b..225764d4 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: 'veniam', - auth_type: 'raw_data', - cookies: 'similique', + auth_id: 'saepe', + auth_type: 'email_password', + cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: 'tJgR777<:=}', + password: '|ERoQ6&{BX>acrc# { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('voluptas', { + const responsePromise = client.engagement.messages.getMessageBuyers('ipsa', { 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('voluptas', { + const response = await client.engagement.messages.getMessageBuyers('ipsa', { 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 19155ed9..c878a4d7 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('qui', { 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('qui', { 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('qui', { 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('qui', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ea428640..86baf48c 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('enim', { + const responsePromise = client.posts.comments.create('quis', { 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('enim', { + const response = await client.posts.comments.create('quis', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quis', { 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('enim', { + const response = await client.posts.comments.list('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 8e5b0566..fd74b68f 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 b643af69..02883e18 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0f1f3fd3..7748ea7a 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: ['zyckorazykqzmhp'] }, + filter: { tags: ['hqmoevvvhvcxcpieoxusxgky'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('reprehenderit'); + const responsePromise = client.smartLinks.listClicks('eum'); 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( - 'reprehenderit', + 'eum', { 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('eos'); + const responsePromise = client.smartLinks.listConversions('quia'); 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( - 'eos', + 'quia', { 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('numquam'); + const responsePromise = client.smartLinks.listFans('totam'); 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( - 'numquam', + 'totam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('facilis'); + const responsePromise = client.smartLinks.listSpenders('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'facilis', + 'enim', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sunt'); + const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'sunt', + 'beatae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('incidunt'); + const responsePromise = client.smartLinks.retrieveStats('nisi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'incidunt', + 'nisi', { 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 53174015..4bd6b557 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: 'uuvgytadbqohslscf', tags: ['kpplkccmcknfujztase'] }, + filter: { search: 'etpxkefmygguhwtxlclwp', tags: ['mskbijtxogqcuqlxz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rac', tags: ['p'] }, + filter: { search: 'zzpcveugjmw', tags: ['yjegxgarvpgvqppuoeqik'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'dwmyugpjlvochsqhpuh', - tags: ['eshegajbbu'], + search: 'nfjcbmlmeumt', + tags: ['bmbydwjli'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'sgjpxvqss', - tags: ['blunzvbjmnhaam'], + include_smart_links: false, + search: 'lifift', + tags: ['gsmh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 034c6b27..1611c1fc 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('reiciendis', { + const responsePromise = client.stories.highlights.addStory('saepe', { 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('reiciendis', { + const response = await client.stories.highlights.addStory('saepe', { 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('reiciendis', { + const responsePromise = client.stories.highlights.removeStory('saepe', { 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('reiciendis', { + const response = await client.stories.highlights.removeStory('saepe', { 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 fe0f9c58..224a8227 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('vel', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('vel', { 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('quis', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quis', { + const response = await client.trackingLinks.getCohortArps('quasi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('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 ec9cad6d..ecb1c632 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('veniam', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('natus', { + const responsePromise = client.trialLinks.retrieveCohortArps('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('natus', { + const response = await client.trialLinks.retrieveCohortArps('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('saepe', { + const response = await client.trialLinks.retrieveStats('quis', { 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 758bd31d..c293eedf 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: 'i' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'llscmhd' }); 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: 'i' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'llscmhd' }); }); // Mock server tests are disabled @@ -84,7 +84,11 @@ describe('resource userLists', () => { await expect( client.userLists.list( 'acct_XXXXXXXXXXXXXXX', - { limit: 10, offset: 0 }, + { + limit: 10, + offset: 0, + view: 'queue', + }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(OnlyFansAPI.NotFoundError); From f00ecc30014ab7a63a181befc844c94237501f41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 22:12:40 +0000 Subject: [PATCH 256/309] 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 | 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 +++--- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 110 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0751bec3..b4e1ccfa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5ac36f138ceb953477f1830fb90a8455ee5fb60bb00b79351f49a0d930a7bb44.yml -openapi_spec_hash: 4925a6c29f19d5958094e6a45fb3cd5a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7bbc566a667d002998f62a2ead5d071d3803200182459c19b174753d4d951df7.yml +openapi_spec_hash: 252d524c2fdbe68efba24e778a099f21 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d9ebe1eb..9d0ee721 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('in'); + * 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 50b26aaf..bcf47f65 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( - * 'ipsa', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('cum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f3d95f1c..45bf8e79 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( - * 'qui', + * 'porro', * { 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( - * 'qui', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95bf943a..185f935b 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('quis', { + * const comment = await client.posts.comments.create('et', { * 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('quis', { + * const comments = await client.posts.comments.list('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 927f5251..a162c350 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('eum'); + * 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( - * 'quia', + * 'reiciendis', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('totam'); + * const response = await client.smartLinks.listFans('fugit'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'enim', + * 'eos', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('beatae'); + * await client.smartLinks.retrieveCohortArps('temporibus'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nisi', + * 'alias', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a35dcf96..cb1227ab 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( - * 'saepe', + * 'incidunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('saepe', { + * await client.stories.highlights.removeStory('incidunt', { * 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 da6b382e..02ad4b26 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', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quidem', + * 'totam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quasi', { + * await client.trackingLinks.getCohortArps('magnam', { * 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( + * 'totam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f926fc5c..41433b15 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( - * 'veniam', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('veniam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'reprehenderit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quaerat', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('deleniti', { + * await client.trialLinks.retrieveCohortArps('deserunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quis', + * 'odit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f2396880..4e9b3465 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: 'llscmhd' }, + * { name: 'pvtlupjyhgc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a7a3b9d2..37a21a65 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('in'); + 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 225764d4..dd2abdce 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_type: 'email_password', - cookies: 'quo', + auth_id: 'animi', + auth_type: 'raw_data', + cookies: 'fugiat', customProxy: { host: 'proxy.example.com', - password: '|ERoQ6&{BX>acrc# { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ipsa', { + const responsePromise = client.engagement.messages.getMessageBuyers('cum', { 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('ipsa', { + const response = await client.engagement.messages.getMessageBuyers('cum', { 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 c878a4d7..1359007f 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('qui', { + const responsePromise = client.media.vault.lists.media.add('porro', { 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('qui', { + const response = await client.media.vault.lists.media.add('porro', { 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('qui', { + const responsePromise = client.media.vault.lists.media.remove('porro', { 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('qui', { + const response = await client.media.vault.lists.media.remove('porro', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 86baf48c..a5ecaaf6 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('quis', { + 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('quis', { + 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('quis', { 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('quis', { + const response = await client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..e2edc676 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7748ea7a..e59abe90 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: ['hqmoevvvhvcxcpieoxusxgky'] }, + filter: { tags: ['fnpnoihiiwqt'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('eum'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'eum', + 'est', { 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('quia'); + const responsePromise = client.smartLinks.listConversions('reiciendis'); 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( - 'quia', + 'reiciendis', { 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('totam'); + const responsePromise = client.smartLinks.listFans('fugit'); 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( - 'totam', + 'fugit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('enim'); + const responsePromise = client.smartLinks.listSpenders('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'eos', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); + const responsePromise = client.smartLinks.retrieveCohortArps('temporibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'temporibus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nisi'); + const responsePromise = client.smartLinks.retrieveStats('alias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'nisi', + 'alias', { 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 4bd6b557..6971a195 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: 'etpxkefmygguhwtxlclwp', tags: ['mskbijtxogqcuqlxz'] }, + filter: { search: 'bkvvaxlsckivoteqdegeibj', tags: ['bb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zzpcveugjmw', tags: ['yjegxgarvpgvqppuoeqik'] }, + filter: { search: 'dmmaclh', tags: ['nvo'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'nfjcbmlmeumt', - tags: ['bmbydwjli'], + include_smart_links: false, + search: 'dqdpybkwo', + tags: ['oorxhxhrhrejrgjs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lifift', - tags: ['gsmh'], + include_smart_links: true, + search: 'yelcikeuwntwwua', + tags: ['vjphtdsazlybvvzbifyen'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1611c1fc..3c93b41e 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('saepe', { + const responsePromise = client.stories.highlights.addStory('incidunt', { 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('saepe', { + const response = await client.stories.highlights.addStory('incidunt', { 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('saepe', { + const responsePromise = client.stories.highlights.removeStory('incidunt', { 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('saepe', { + const response = await client.stories.highlights.removeStory('incidunt', { 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 224a8227..d02c89e8 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('totam', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('totam', { 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('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('magnam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('totam', { 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 ecb1c632..8c398cfa 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('reprehenderit', { 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('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quis', { + const response = await client.trialLinks.retrieveStats('odit', { 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 c293eedf..fadbb86a 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: 'llscmhd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pvtlupjyhgc' }); 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: 'llscmhd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pvtlupjyhgc' }); }); // Mock server tests are disabled From 8f8fe16deb2de4e410c4979ff5bd248f9deab6df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 00:12:37 +0000 Subject: [PATCH 257/309] 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 | 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 +- tests/api-resources/queue.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 117 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index b4e1ccfa..9de66767 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7bbc566a667d002998f62a2ead5d071d3803200182459c19b174753d4d951df7.yml -openapi_spec_hash: 252d524c2fdbe68efba24e778a099f21 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-846e2b6fbe85ba8ec5298948062fa7f4779763b23c7c25bbffd63db7753b99e5.yml +openapi_spec_hash: eb91e0e9a3fd8fdd9f173f0d9525b96c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d0ee721..50028621 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('eos'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index bcf47f65..a78c0831 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('cum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'amet', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 45bf8e79..f2f1837f 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( - * 'porro', + * 'rerum', * { 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( - * 'porro', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935b..a403256d 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( + * 'eveniet', + * { + * 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( + * 'eveniet', + * { 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 09d6973d..e20f70d1 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 41feb4c0..c9a094cf 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 a162c350..d9986ab8 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('est'); + * const response = await client.smartLinks.listClicks( + * 'voluptatibus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'reiciendis', + * 'molestiae', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugit'); + * const response = await client.smartLinks.listFans('quas'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eos', + * 'cupiditate', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('temporibus'); + * await client.smartLinks.retrieveCohortArps('similique'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'alias', + * 'unde', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cb1227ab..82a24efc 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( - * 'incidunt', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('incidunt', { + * await client.stories.highlights.removeStory('velit', { * 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 02ad4b26..451c258c 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( - * 'totam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'totam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('magnam', { + * await client.trackingLinks.getCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'totam', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 41433b15..b72a269f 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( - * 'reprehenderit', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'reprehenderit', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'reprehenderit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('deserunt', { + * await client.trialLinks.retrieveCohortArps('consequatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'odit', + * 'fugit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4e9b3465..029bae23 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: 'pvtlupjyhgc' }, + * { name: 'hefrwqlzk' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 37a21a65..b5ead1c6 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('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 dd2abdce..c6fa362c 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: 'animi', - auth_type: 'raw_data', - cookies: 'fugiat', + auth_id: 'dolor', + auth_type: 'mobile_app', + cookies: 'quia', customProxy: { host: 'proxy.example.com', - password: '8!3J1Xh";mc\'bA"', + password: "O&'{Xrg@oYs", port: 8080, - username: 'dolorum', + username: 'qui', }, - email: 'ydaniel@example.net', + email: 'reynolds.marcia@example.org', force_connect: true, - name: 'quidem', - password: '/.gO\\gswn/p', - proxyCountry: 'us', - user_agent: 'consectetur', - xbc: 'facilis', + name: 'pariatur', + password: 'XbA=~W8C', + proxyCountry: 'uk', + user_agent: 'dignissimos', + 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 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index dd2ff7f3..32e9581c 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('cum', { + const responsePromise = client.engagement.messages.getMessageBuyers('amet', { 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('cum', { + const response = await client.engagement.messages.getMessageBuyers('amet', { 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 1359007f..89b269df 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('porro', { + const responsePromise = client.media.vault.lists.media.add('rerum', { 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('porro', { + const response = await client.media.vault.lists.media.add('rerum', { 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('porro', { + const responsePromise = client.media.vault.lists.media.remove('rerum', { 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('porro', { + const response = await client.media.vault.lists.media.remove('rerum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a5ecaaf6..adc196dc 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('eveniet', { 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('eveniet', { 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('eveniet', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 e2edc676..fd74b68f 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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 e59abe90..b7e8a65f 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: ['fnpnoihiiwqt'] }, + filter: { tags: ['lrrstkjpokdsoftoujwcw'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('voluptatibus'); 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( - 'est', + 'voluptatibus', { 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('reiciendis'); + const responsePromise = client.smartLinks.listConversions('molestiae'); 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( - 'reiciendis', + 'molestiae', { 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('fugit'); + const responsePromise = client.smartLinks.listFans('quas'); 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( - 'fugit', + 'quas', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eos'); + const responsePromise = client.smartLinks.listSpenders('cupiditate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'cupiditate', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('temporibus'); + const responsePromise = client.smartLinks.retrieveCohortArps('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'similique', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('alias'); + const responsePromise = client.smartLinks.retrieveStats('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'alias', + 'unde', { 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 6971a195..39e91f8a 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: 'bkvvaxlsckivoteqdegeibj', tags: ['bb'] }, + filter: { search: 'rdv', tags: ['odlvrwxvlqubjupx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dmmaclh', tags: ['nvo'] }, + filter: { search: 'fyrjdvakv', tags: ['ewmqahyhrxy'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'dqdpybkwo', - tags: ['oorxhxhrhrejrgjs'], + search: 'ryritroxjqtqb', + tags: ['k'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yelcikeuwntwwua', - tags: ['vjphtdsazlybvvzbifyen'], + include_smart_links: false, + search: 'szf', + tags: ['rj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3c93b41e..cbd39d79 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('incidunt', { + const responsePromise = client.stories.highlights.addStory('velit', { 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('incidunt', { + const response = await client.stories.highlights.addStory('velit', { 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('incidunt', { + const responsePromise = client.stories.highlights.removeStory('velit', { 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('incidunt', { + const response = await client.stories.highlights.removeStory('velit', { 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 d02c89e8..463f5d13 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ut', { 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('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('magnam', { + const response = await client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('totam', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('totam', { + 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 8c398cfa..1e9ca791 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('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('praesentium', { 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('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('deserunt', { + const responsePromise = client.trialLinks.retrieveCohortArps('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('deserunt', { + const response = await client.trialLinks.retrieveCohortArps('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('odit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('fugit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('odit', { + const response = await client.trialLinks.retrieveStats('fugit', { 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 fadbb86a..8a3ca15e 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: 'pvtlupjyhgc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hefrwqlzk' }); 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: 'pvtlupjyhgc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hefrwqlzk' }); }); // Mock server tests are disabled From b6cf87a37941f0680d384189070b5644a6b65b0c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 01:12:37 +0000 Subject: [PATCH 258/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++-- src/resources/mass-messaging.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 | 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 +-- tests/api-resources/mass-messaging.test.ts | 1 + .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/queue.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 120 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9de66767..7a85964b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-846e2b6fbe85ba8ec5298948062fa7f4779763b23c7c25bbffd63db7753b99e5.yml -openapi_spec_hash: eb91e0e9a3fd8fdd9f173f0d9525b96c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ee3ec858d804ef061f16c0ed92826155b0875396152993584ec5b24af4cecf97.yml +openapi_spec_hash: bbc46199a22b45892ab9f39a70b19878 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 50028621..6bb6558e 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('eos'); + * 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 a78c0831..1b01bbf6 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( - * 'amet', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('sed', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/mass-messaging.ts b/src/resources/mass-messaging.ts index baa72f97..afe1be74 100644 --- a/src/resources/mass-messaging.ts +++ b/src/resources/mass-messaging.ts @@ -837,6 +837,13 @@ export interface MassMessagingSendParams { */ scheduledDate?: string; + /** + * Only send to fans who subscribed within the last N calendar days (1-30, + * including today). Can be combined with `userLists` and `userIds`. Cannot be + * combined with `scheduledDate` or `saveForLater`. + */ + subscribedWithinLastDays?: number; + /** * Array of user IDs that the mass message will be sent to. */ diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f2f1837f..2f38ae64 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( - * 'rerum', + * '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( - * 'rerum', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a403256d..1044e7ec 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( - * 'eveniet', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('sed', { + * 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( - * 'eveniet', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('sed', { + * 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 e20f70d1..a9767818 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 c9a094cf..2b04cbb2 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 d9986ab8..edd3f0d4 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', + * 'dolore', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'molestiae', + * 'et', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quas'); + * const response = await client.smartLinks.listFans( + * 'voluptatem', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'cupiditate', + * 'quis', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('similique'); + * await client.smartLinks.retrieveCohortArps('labore'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'unde', + * 'quis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 82a24efc..ce63daf1 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( - * 'velit', + * 'aperiam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('velit', { + * await client.stories.highlights.removeStory('aperiam', { * 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 451c258c..dff0f648 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( - * 'ut', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ut', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('velit', { + * 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( - * 'rem', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b72a269f..5ed6a718 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( - * 'praesentium', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'praesentium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('optio', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'reprehenderit', + * 'libero', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('consequatur', { + * await client.trialLinks.retrieveCohortArps('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'fugit', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 029bae23..b07f93bf 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: 'hefrwqlzk' }, + * { name: 'mqeegcxkluke' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b5ead1c6..5756d5ab 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('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 c6fa362c..9e521c1b 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_id: 'nostrum', auth_type: 'mobile_app', - cookies: 'quia', + cookies: 'molestias', customProxy: { host: 'proxy.example.com', - password: "O&'{Xrg@oYs", + password: '&f"Iu0jgy>3a2"hS{Zu0', port: 8080, - username: 'qui', + username: 'pariatur', }, - email: 'reynolds.marcia@example.org', - force_connect: true, - name: 'pariatur', - password: 'XbA=~W8C', - proxyCountry: 'uk', - user_agent: 'dignissimos', - xbc: 'quia', + email: 'cristobal44@example.com', + force_connect: false, + name: 'tenetur', + password: "E:B'PbX*", + proxyCountry: 'us', + user_agent: 'sunt', + xbc: 'vero', }, { 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 32e9581c..d6801448 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('amet', { + const responsePromise = client.engagement.messages.getMessageBuyers('sed', { 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('amet', { + const response = await client.engagement.messages.getMessageBuyers('sed', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/mass-messaging.test.ts b/tests/api-resources/mass-messaging.test.ts index 8aafc205..090e9109 100644 --- a/tests/api-resources/mass-messaging.test.ts +++ b/tests/api-resources/mass-messaging.test.ts @@ -143,6 +143,7 @@ describe('resource massMessaging', () => { rfTag: 'rfTag', saveForLater: true, scheduledDate: '2025-01-01T00:00:00.000Z', + subscribedWithinLastDays: 0, userIds: ['string'], userLists: ['fans', 'recent', 'following', 'rebill_off', 'tagged', 'string'], }); diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 89b269df..19155ed9 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('rerum', { + 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('rerum', { + 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('rerum', { + 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('rerum', { + 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 7b042946..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index adc196dc..25a7cac1 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('eveniet', { + const responsePromise = client.posts.comments.create('sed', { 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('eveniet', { + const response = await client.posts.comments.create('sed', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sed', { 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('eveniet', { + const response = await client.posts.comments.list('sed', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..4ec8acc7 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 b643af69..96d399de 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 d13ad1ce..6b1dc2fd 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 b7e8a65f..8b247a4d 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: ['lrrstkjpokdsoftoujwcw'] }, + filter: { tags: ['gtduizdllifmtu'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatibus'); + const responsePromise = client.smartLinks.listClicks('dolore'); 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( - 'voluptatibus', + 'dolore', { 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('molestiae'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'molestiae', + 'et', { 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('quas'); + const responsePromise = client.smartLinks.listFans('voluptatem'); 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( - 'quas', + 'voluptatem', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('cupiditate'); + const responsePromise = client.smartLinks.listSpenders('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'cupiditate', + 'quis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('similique'); + const responsePromise = client.smartLinks.retrieveCohortArps('labore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'similique', + 'labore', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('unde'); + const responsePromise = client.smartLinks.retrieveStats('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'unde', + '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 39e91f8a..a3b03551 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: 'rdv', tags: ['odlvrwxvlqubjupx'] }, + filter: { search: 'yn', tags: ['hhprhknellywujvgtsepsxbpu'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fyrjdvakv', tags: ['ewmqahyhrxy'] }, + filter: { search: 'vrs', tags: ['ykayvjczkxqrhopakdmygymx'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ryritroxjqtqb', - tags: ['k'], + include_smart_links: true, + search: 'gsaiteltpudlauz', + tags: ['ekzv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'szf', - tags: ['rj'], + search: 'oxiwcfkxycrcpoxz', + tags: ['twvzwdsbazwx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index cbd39d79..f6644678 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('velit', { + const responsePromise = client.stories.highlights.addStory('aperiam', { 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('velit', { + const response = await client.stories.highlights.addStory('aperiam', { 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('velit', { + const responsePromise = client.stories.highlights.removeStory('aperiam', { 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('velit', { + const response = await client.stories.highlights.removeStory('aperiam', { 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 463f5d13..d109a342 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('ut', { 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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ut', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ut', { 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('velit', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('velit', { + const response = await client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('hic', { 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 1e9ca791..4d6ea0da 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('praesentium', { 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('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('praesentium', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('libero', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('libero', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('consequatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('consequatur', { + const response = await client.trialLinks.retrieveCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('fugit', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('fugit', { + 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 8a3ca15e..c1dd778c 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: 'hefrwqlzk' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mqeegcxkluke' }); 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: 'hefrwqlzk' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mqeegcxkluke' }); }); // Mock server tests are disabled From 7b11647efd4ba6b17397a296dcd6bb96ce6fa4df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 16:12:40 +0000 Subject: [PATCH 259/309] 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 +- .../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 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 8 ++++-- 30 files changed, 124 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7a85964b..6a6f61bc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ee3ec858d804ef061f16c0ed92826155b0875396152993584ec5b24af4cecf97.yml -openapi_spec_hash: bbc46199a22b45892ab9f39a70b19878 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef46e532f4e3aae2cf8c23bde1b34d28ffb0daf8840311b46b80721f47568638.yml +openapi_spec_hash: 02cad71d190a494a666ef976503fd0a5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..3c5ed4a9 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('quia'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1b01bbf6..b692ff89 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('sed', { + * await client.engagement.messages.getMessageBuyers('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae64..5f8527cb 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', + * 'perferendis', * { 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', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1044e7ec..f2a03716 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'cumque', + * { + * 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'cumque', + * { 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 a9767818..e20f70d1 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 2b04cbb2..c9a094cf 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 edd3f0d4..587bb370 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( - * 'dolore', + * 'dolor', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'voluptatem', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptatem', - * ); + * const response = await client.smartLinks.listFans('dolore'); * ``` */ listFans( @@ -131,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'quis', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('labore'); + * await client.smartLinks.retrieveCohortArps('possimus'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quis', + * 'earum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ce63daf1..a9c614a7 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( - * 'aperiam', + * '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('aperiam', { + * 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 dff0f648..85697b83 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', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * 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( - * 'hic', - * { 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 5ed6a718..a1000ce8 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', + * 'corrupti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('optio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'corrupti', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'libero', + * 'corporis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quod', { + * await client.trialLinks.retrieveCohortArps('molestiae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b07f93bf..2245d690 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: 'mqeegcxkluke' }, + * { name: 'pjqjaeieqgflbwgebgtdjc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..3c3098d8 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('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 9e521c1b..5dfdb708 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: 'nostrum', - auth_type: 'mobile_app', - cookies: 'molestias', + auth_id: 'veritatis', + auth_type: 'raw_data', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: '&f"Iu0jgy>3a2"hS{Zu0', + password: '1H^78D(TXAV@]/gx{', port: 8080, - username: 'pariatur', + username: 'doloremque', }, - email: 'cristobal44@example.com', + email: 'hjones@example.net', force_connect: false, - name: 'tenetur', - password: "E:B'PbX*", + name: 'ratione', + password: 'v5Ys(eCLSV[$c7>u', proxyCountry: 'us', - user_agent: 'sunt', - xbc: 'vero', + user_agent: 'ipsum', + 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 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index d6801448..1856b815 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('sed', { + 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('sed', { + 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 19155ed9..ef3d8a41 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('perferendis', { 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('perferendis', { 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('perferendis', { 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('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 25a7cac1..ddce1f1d 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('sed', { + const responsePromise = client.posts.comments.create('cumque', { 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('sed', { + const response = await client.posts.comments.create('cumque', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('cumque', { 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('sed', { + const response = await client.posts.comments.list('cumque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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 96d399de..b643af69 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 8b247a4d..c5cd196a 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: ['gtduizdllifmtu'] }, + filter: { tags: ['bgrgbbmcetwgynw'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('dolore'); + 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( - 'dolore', + '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('et'); + const responsePromise = client.smartLinks.listConversions('voluptatem'); 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( - 'et', + 'voluptatem', { 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('voluptatem'); + const responsePromise = client.smartLinks.listFans('dolore'); 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( - 'voluptatem', + 'dolore', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quis'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quis', + 'et', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('labore'); + const responsePromise = client.smartLinks.retrieveCohortArps('possimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'labore', + 'possimus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quis'); + const responsePromise = client.smartLinks.retrieveStats('earum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'earum', { 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 a3b03551..eedcb001 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: 'yn', tags: ['hhprhknellywujvgtsepsxbpu'] }, + filter: { search: 'xlkojz', tags: ['ndxartyzryuzyq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'vrs', tags: ['ykayvjczkxqrhopakdmygymx'] }, + filter: { search: 'khranzhkgmeldqhxx', tags: ['ge'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'gsaiteltpudlauz', - tags: ['ekzv'], + include_smart_links: false, + search: 'mbkbidhu', + tags: ['xxvbpqaorchgswelgcpvpt'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'oxiwcfkxycrcpoxz', - tags: ['twvzwdsbazwx'], + include_smart_links: true, + search: 'urktyuzoytg', + tags: ['gqbyvuuneu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f6644678..fca45b0b 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('aperiam', { + 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('aperiam', { + 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('aperiam', { + 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('aperiam', { + 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 d109a342..5967b2ca 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('porro', { 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('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('porro', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('hic', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('hic', { + 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 4d6ea0da..2a0b04b4 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('corrupti', { 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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('libero', { + const responsePromise = client.trialLinks.listSubscribers('corporis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('libero', { + const response = await client.trialLinks.listSubscribers('corporis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('molestiae', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quod', { + const response = await client.trialLinks.retrieveCohortArps('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('pariatur', { 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 c1dd778c..f1af607e 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: 'mqeegcxkluke' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'pjqjaeieqgflbwgebgtdjc', + }); 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: 'mqeegcxkluke' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'pjqjaeieqgflbwgebgtdjc', + }); }); // Mock server tests are disabled From 58f7b05ddf001c0edf8cb69e384f39fe6bb38a46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 19:12:39 +0000 Subject: [PATCH 260/309] 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 | 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 | 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 +++--- 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 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 29 files changed, 114 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6a6f61bc..46515033 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef46e532f4e3aae2cf8c23bde1b34d28ffb0daf8840311b46b80721f47568638.yml -openapi_spec_hash: 02cad71d190a494a666ef976503fd0a5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6d33cf1159c7634114130156748a149ec279065dfaefb220776dd47b98c004a4.yml +openapi_spec_hash: c5460ad2baef90965b29ec7f87b6b61c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a9..2dd7042a 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('quia'); + * const response = await client.accounts.disconnect('nisi'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b692ff89..949c4fc6 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( + * 'iusto', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5f8527cb..a85c6b6e 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( - * 'perferendis', + * 'sint', * { 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( - * 'perferendis', + * 'sint', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f2a03716..14943aa0 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( - * 'cumque', + * 'cupiditate', * { * 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( - * 'cumque', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 c9a094cf..a84ff073 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 587bb370..59b7223d 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', + * 'dolorem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptatem', + * 'rerum', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dolore'); + * const response = await client.smartLinks.listFans( + * 'voluptate', + * ); * ``` */ listFans( @@ -129,7 +131,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'qui', + * ); * ``` */ listSpenders( @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('possimus'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'earum', + * 'enim', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..651e8fba 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', + * '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('et', { + * 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 85697b83..6f0ba048 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( - * 'porro', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'porro', + * 'voluptatum', * { 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,7 +133,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('et', { + * const response = await client.trackingLinks.getStats('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a1000ce8..877ac02a 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( - * 'corrupti', + * 'aliquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'corrupti', + * 'aliquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'corporis', + * 'sapiente', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('molestiae', { + * await client.trialLinks.retrieveCohortArps('similique', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'pariatur', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2245d690..52a6602c 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: 'pjqjaeieqgflbwgebgtdjc' }, + * { name: 'dxqiowryebl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d8..47861256 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('nisi'); 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 5dfdb708..d46500e7 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: 'veritatis', + auth_id: 'sunt', auth_type: 'raw_data', - cookies: 'est', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: '1H^78D(TXAV@]/gx{', + password: '^b967GjD3m*', port: 8080, - username: 'doloremque', + username: 'omnis', }, - email: 'hjones@example.net', - force_connect: false, - name: 'ratione', - password: 'v5Ys(eCLSV[$c7>u', - proxyCountry: 'us', - user_agent: 'ipsum', - xbc: 'non', + email: 'hheaney@example.org', + force_connect: true, + name: 'ducimus', + password: 'Jn}hZy', + proxyCountry: 'gb', + user_agent: 'quae', + xbc: 'quia', }, { 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 1856b815..5185477a 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('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('est', { + 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 ef3d8a41..c9fd281d 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('perferendis', { + const responsePromise = client.media.vault.lists.media.add('sint', { 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('perferendis', { + const response = await client.media.vault.lists.media.add('sint', { 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('perferendis', { + const responsePromise = client.media.vault.lists.media.remove('sint', { 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('perferendis', { + const response = await client.media.vault.lists.media.remove('sint', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ddce1f1d..bf831d2c 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('cumque', { + const responsePromise = client.posts.comments.create('cupiditate', { 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('cumque', { + const response = await client.posts.comments.create('cupiditate', { 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('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('cupiditate', { 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('cumque', { + const response = await client.posts.comments.list('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..4ec8acc7 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 b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c5cd196a..332533dc 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: ['bgrgbbmcetwgynw'] }, + filter: { tags: ['mkblpnzfuppkeinp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('dolorem'); 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', + 'dolorem', { 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('voluptatem'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'voluptatem', + 'rerum', { 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('dolore'); + const responsePromise = client.smartLinks.listFans('voluptate'); 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( - 'dolore', + 'voluptate', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('possimus'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'possimus', + 'est', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('earum'); + const responsePromise = client.smartLinks.retrieveStats('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'earum', + 'enim', { 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 eedcb001..efd36095 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: 'xlkojz', tags: ['ndxartyzryuzyq'] }, + filter: { search: 'klvy', tags: ['hv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'khranzhkgmeldqhxx', tags: ['ge'] }, + filter: { search: 'gmnehghvoxlmms', tags: ['qsrmstbr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'mbkbidhu', - tags: ['xxvbpqaorchgswelgcpvpt'], + search: 'ibcfxbhue', + tags: ['fompidcpbronfmufktzvisx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'urktyuzoytg', - tags: ['gqbyvuuneu'], + include_smart_links: false, + search: 'vmk', + tags: ['hslhvhfxmprixz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..46e853d9 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('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('et', { + 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('et', { + 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('et', { + 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 5967b2ca..6268a85d 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('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptatum', { 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('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('porro', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptatum', { 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; @@ -110,7 +112,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', @@ -120,7 +122,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('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,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('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 2a0b04b4..a5090ec8 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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aliquam', { 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('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('corporis', { + const responsePromise = client.trialLinks.listSubscribers('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('corporis', { + const response = await client.trialLinks.listSubscribers('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('molestiae', { + const responsePromise = client.trialLinks.retrieveCohortArps('similique', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('molestiae', { + const response = await client.trialLinks.retrieveCohortArps('similique', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptates', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +190,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('pariatur', { + const response = await client.trialLinks.retrieveStats('voluptates', { 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 f1af607e..aa963f8d 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: 'pjqjaeieqgflbwgebgtdjc', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxqiowryebl' }); 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: 'pjqjaeieqgflbwgebgtdjc', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxqiowryebl' }); }); // Mock server tests are disabled From c68358e391ce5e376e2cbc085657bba13fbd7aec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 16:13:04 +0000 Subject: [PATCH 261/309] 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 | 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 | 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 ++-- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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, 100 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 46515033..3222cd7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-6d33cf1159c7634114130156748a149ec279065dfaefb220776dd47b98c004a4.yml -openapi_spec_hash: c5460ad2baef90965b29ec7f87b6b61c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fc5a6862b5dfb40cd7c5647b68fbf998a278c8b432b1652c45787d81d5e3daba.yml +openapi_spec_hash: cf33c0c4ad441ff6b540ee6b2f1a9d99 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2dd7042a..245fc5fb 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('nisi'); + * 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 949c4fc6..dd555129 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', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a85c6b6e..fcb7629f 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( - * 'sint', + * 'placeat', * { 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( - * 'sint', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 14943aa0..1d67b61b 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( - * 'cupiditate', + * '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( - * 'cupiditate', + * '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 a9767818..e20f70d1 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 a84ff073..c9a094cf 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 59b7223d..f19d73d5 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'enim', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptate', - * ); + * const response = await client.smartLinks.listFans('eius'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'veniam', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('unde'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'enim', + * 'fuga', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..6ca30230 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', + * 'molestiae', * { * 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('molestiae', { * 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 6f0ba048..4d4ce14f 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( - * 'voluptatum', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatum', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * await client.trackingLinks.getCohortArps('eligendi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,7 +133,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ut', { + * const response = await client.trackingLinks.getStats('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 877ac02a..7e4006a2 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( - * 'aliquam', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'aliquam', + * 'quaerat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sapiente', + * 'perspiciatis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('similique', { + * await client.trialLinks.retrieveCohortArps('voluptas', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptates', + * 'corporis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 52a6602c..5d2cd08b 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: 'dxqiowryebl' }, + * { name: 'ap' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 47861256..13e5c0c0 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('nisi'); + 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 d46500e7..3027d8cc 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: 'sunt', - auth_type: 'raw_data', - cookies: 'aut', + auth_id: 'libero', + auth_type: 'mobile_app', + cookies: 'incidunt', customProxy: { host: 'proxy.example.com', - password: '^b967GjD3m*', + password: "-5P3bow4 { // 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('dignissimos', { 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('dignissimos', { 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 c9fd281d..a31442ac 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('sint', { + const responsePromise = client.media.vault.lists.media.add('placeat', { 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('sint', { + const response = await client.media.vault.lists.media.add('placeat', { 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('sint', { + const responsePromise = client.media.vault.lists.media.remove('placeat', { 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('sint', { + const response = await client.media.vault.lists.media.remove('placeat', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bf831d2c..715b94db 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('cupiditate', { + 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('cupiditate', { + 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('cupiditate', { 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('cupiditate', { + 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 ad49ad2e..9bf5999b 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 4ec8acc7..fd74b68f 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 02883e18..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 332533dc..c9b4c3c1 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: ['mkblpnzfuppkeinp'] }, + filter: { tags: ['tndhfjdnsolqtvgbxjaxidn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -121,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('rerum'); + const responsePromise = client.smartLinks.listConversions('enim'); 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( - 'rerum', + 'enim', { 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('voluptate'); + const responsePromise = client.smartLinks.listFans('eius'); 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( - 'voluptate', + 'eius', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('veniam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'veniam', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'est', + 'unde', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('enim'); + const responsePromise = client.smartLinks.retrieveStats('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'enim', + 'fuga', { 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 efd36095..8c269784 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: 'klvy', tags: ['hv'] }, + filter: { search: 'sbfnjpddgx', tags: ['nwttypsdtdoafe'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gmnehghvoxlmms', tags: ['qsrmstbr'] }, + filter: { search: 'rwwg', tags: ['cubznfxvxvtgf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ibcfxbhue', - tags: ['fompidcpbronfmufktzvisx'], + include_smart_links: true, + search: 'k', + tags: ['qk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vmk', - tags: ['hslhvhfxmprixz'], + include_smart_links: true, + search: 'lpqiedwtcbzyrkkajdeowfrxf', + tags: ['yqvkcudwcitydckltyanu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..5570dcf1 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('molestiae', { 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('molestiae', { 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('molestiae', { 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('molestiae', { 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 6268a85d..1b87a04c 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('voluptatum', { 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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptatum', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptatum', { 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('dolores', { + const responsePromise = client.trackingLinks.getCohortArps('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,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('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,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('id', { 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 a5090ec8..9b318e3b 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quaerat', { 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('similique', { + const responsePromise = client.trialLinks.retrieveCohortArps('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('similique', { + const response = await client.trialLinks.retrieveCohortArps('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptates', { - 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; @@ -190,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptates', { + 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 aa963f8d..82a77060 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: 'dxqiowryebl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ap' }); 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: 'dxqiowryebl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ap' }); }); // Mock server tests are disabled From 44b45d61afec8819406fdd26cc993bc4092f91a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 17:45:40 +0000 Subject: [PATCH 262/309] 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 | 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 | 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 | 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 | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 114 insertions(+), 121 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3222cd7e..90b4c95c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fc5a6862b5dfb40cd7c5647b68fbf998a278c8b432b1652c45787d81d5e3daba.yml -openapi_spec_hash: cf33c0c4ad441ff6b540ee6b2f1a9d99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a13141dc9cb81754e0ced17ccc6e05d039584b7402c2b0b147116f86f1da8334.yml +openapi_spec_hash: ad6bb71288733627ce3bc9823ea09f05 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5fb..c012ec59 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( - * 'voluptatem', + * 'dignissimos', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index dd555129..6bd2bf1f 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( - * 'dignissimos', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('nam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index fcb7629f..bbd381db 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( - * 'placeat', + * '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( - * 'placeat', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1d67b61b..05489a52 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( - * 'beatae', + * 'dicta', * { * 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( - * 'beatae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('dicta', { + * 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 e20f70d1..09d6973d 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 c9a094cf..a84ff073 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 f19d73d5..f2cf5f0c 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( - * 'dolorem', - * ); + * 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( - * 'enim', + * 'harum', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('eius'); + * const response = await client.smartLinks.listFans('quasi'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'veniam', + * 'facilis', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('unde'); + * await client.smartLinks.retrieveCohortArps('dolores'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'fuga', + * 'quam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 6ca30230..ce63daf1 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( - * 'molestiae', + * 'aperiam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('molestiae', { + * await client.stories.highlights.removeStory('aperiam', { * 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 4d4ce14f..85e8c859 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', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quis', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eligendi', { + * await client.trackingLinks.getCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('id', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'eaque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 7e4006a2..9f943d78 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( - * 'quaerat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('enim', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'quaerat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('enim', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'perspiciatis', + * 'reprehenderit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptas', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'corporis', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 5d2cd08b..ccefe007 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: 'ap' }, + * { name: 'ymrynwustomzwvl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c0..b930587d 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('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 3027d8cc..5d110bb6 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: 'libero', - auth_type: 'mobile_app', - cookies: 'incidunt', + auth_id: 'maiores', + auth_type: 'raw_data', + cookies: 'voluptatem', customProxy: { host: 'proxy.example.com', - password: "-5P3bow4g4IPtA9bGQ,\\e', port: 8080, - username: 'id', + username: 'qui', }, - email: 'kellen18@example.net', + email: 'hettinger.waylon@example.com', force_connect: true, - name: 'esse', - password: '-|?Ei$kRFDEfc:A78', - proxyCountry: 'gb', - user_agent: 'id', - xbc: 'maxime', + name: 'dolore', + password: 'suad*;kZ>"mJN6DPu&qd', + proxyCountry: 'uk', + user_agent: 'qui', + xbc: 'illo', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 c3b05a0a..98695334 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('dignissimos', { + const responsePromise = client.engagement.messages.getMessageBuyers('nam', { 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('dignissimos', { + const response = await client.engagement.messages.getMessageBuyers('nam', { 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 a31442ac..bb0d086f 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('placeat', { + 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('placeat', { + 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('placeat', { + 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('placeat', { + const response = await client.media.vault.lists.media.remove('quod', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 715b94db..933738e9 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('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('beatae', { + 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('beatae', { 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('beatae', { + const response = await client.posts.comments.list('dicta', { 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 fd74b68f..e2edc676 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 b643af69..02883e18 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 6b1dc2fd..d13ad1ce 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 c9b4c3c1..ffed6694 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: ['tndhfjdnsolqtvgbxjaxidn'] }, + filter: { tags: ['cdllwgyugobfy'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('dolorem'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'dolorem', + 'qui', { 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('enim'); + const responsePromise = client.smartLinks.listConversions('harum'); 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( - 'enim', + 'harum', { 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('eius'); + const responsePromise = client.smartLinks.listFans('quasi'); 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( - 'eius', + 'quasi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('veniam'); + const responsePromise = client.smartLinks.listSpenders('facilis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'veniam', + 'facilis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('unde'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'unde', + 'dolores', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('fuga'); + const responsePromise = client.smartLinks.retrieveStats('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'fuga', + 'quam', { 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 8c269784..fddc8da2 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: 'sbfnjpddgx', tags: ['nwttypsdtdoafe'] }, + filter: { search: 'tvkmuwsbtdm', tags: ['x'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rwwg', tags: ['cubznfxvxvtgf'] }, + filter: { search: 'zjiattpyvdymjnvv', tags: ['t'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'k', - tags: ['qk'], + include_smart_links: false, + search: 'paxywpamjhirfj', + tags: ['fotwmphmnmdrsgnwa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lpqiedwtcbzyrkkajdeowfrxf', - tags: ['yqvkcudwcitydckltyanu'], + search: 'mrdh', + tags: ['xlv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5570dcf1..f6644678 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('molestiae', { + const responsePromise = client.stories.highlights.addStory('aperiam', { 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('molestiae', { + const response = await client.stories.highlights.addStory('aperiam', { 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('molestiae', { + const responsePromise = client.stories.highlights.removeStory('aperiam', { 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('molestiae', { + const response = await client.stories.highlights.removeStory('aperiam', { 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 1b87a04c..afba545c 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('beatae', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eligendi', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('eligendi', { + const response = await client.trackingLinks.getCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('id', { + const response = await client.trackingLinks.getStats('eaque', { 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 9b318e3b..71872595 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('enim', { 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('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quaerat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('perspiciatis', { + const responsePromise = client.trialLinks.listSubscribers('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('perspiciatis', { + const response = await client.trialLinks.listSubscribers('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptas', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptas', { + const response = await client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ 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('aspernatur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('aspernatur', { 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 82a77060..6a1023e2 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: 'ap' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ymrynwustomzwvl' }); 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: 'ap' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ymrynwustomzwvl' }); }); // Mock server tests are disabled From a641d4f8fcaa58b4b6a7881042350c4ea21c6c78 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 18:38:57 +0000 Subject: [PATCH 263/309] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/engagement/messages/messages.ts | 7 ++--- src/resources/media/uploads.ts | 26 ++++++++++++++----- 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 | 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 | 22 +++++++--------- .../user-lists/user-lists.test.ts | 6 +++-- 30 files changed, 132 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index 90b4c95c..f8258274 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a13141dc9cb81754e0ced17ccc6e05d039584b7402c2b0b147116f86f1da8334.yml -openapi_spec_hash: ad6bb71288733627ce3bc9823ea09f05 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-281efdce42680c00db4dbe3a4c400f2b58279e10050fd9763aa89d697a964473.yml +openapi_spec_hash: c0bc54d040790001fe98b77bb2363bd5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c012ec59..21770fad 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('facere'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6bd2bf1f..e32b300d 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('nam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'assumenda', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/uploads.ts b/src/resources/media/uploads.ts index 42b5b0d9..91c04eb5 100644 --- a/src/resources/media/uploads.ts +++ b/src/resources/media/uploads.ts @@ -47,7 +47,8 @@ export type UploadGetStatusResponse = | UploadGetStatusResponse.UnionMember0 | UploadGetStatusResponse.UnionMember1 | UploadGetStatusResponse.UnionMember2 - | UploadGetStatusResponse.UnionMember3; + | UploadGetStatusResponse.UnionMember3 + | UploadGetStatusResponse.UnionMember4; export namespace UploadGetStatusResponse { /** @@ -71,19 +72,30 @@ export namespace UploadGetStatusResponse { } /** - * Completed POST /media/vault upload + * Upload rejected by OnlyFans — `error` carries the upstream reason verbatim */ export interface UnionMember2 { + error?: string; + + prefixed_id?: string; + + status?: string; + } + + /** + * Completed POST /media/vault upload + */ + export interface UnionMember3 { credits_used?: number; - media?: UnionMember2.Media; + media?: UnionMember3.Media; prefixed_id?: string; status?: string; } - export namespace UnionMember2 { + export namespace UnionMember3 { export interface Media { id?: number; @@ -138,17 +150,17 @@ export namespace UploadGetStatusResponse { /** * Completed POST /media/upload upload */ - export interface UnionMember3 { + export interface UnionMember4 { credits_used?: number; - media?: UnionMember3.Media; + media?: UnionMember4.Media; prefixed_id?: string; status?: string; } - export namespace UnionMember3 { + export namespace UnionMember4 { export interface Media { additional?: Media.Additional; diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index bbd381db..c91cb463 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', + * 'error', * { 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', + * 'error', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 05489a52..1044e7ec 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( - * 'dicta', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('sed', { + * 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('dicta', { + * const comments = await client.posts.comments.list('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 a84ff073..2b04cbb2 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 f2cf5f0c..10a5a5b3 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('qui'); + * 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( - * 'harum', + * 'debitis', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quasi'); + * const response = await client.smartLinks.listFans( + * 'corporis', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'facilis', + * 'ducimus', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolores'); + * await client.smartLinks.retrieveCohortArps('non'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quam', + * 'vero', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ce63daf1..c556977f 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( - * 'aperiam', + * '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('aperiam', { + * 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 85e8c859..5738f93c 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( - * 'beatae', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'beatae', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aut', { + * 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( - * 'eaque', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9f943d78..2913e940 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('enim', { + * const trialLink = await client.trialLinks.retrieve('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('enim', { + * const trialLink = await client.trialLinks.delete('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'reprehenderit', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aspernatur', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ccefe007..1fb8e0a6 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: 'ymrynwustomzwvl' }, + * { name: 'zljbdnxmhnligvplrmxiy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b930587d..2c860f24 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('facere'); 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 5d110bb6..2cbb6808 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: 'maiores', - auth_type: 'raw_data', - cookies: 'voluptatem', + auth_id: 'delectus', + auth_type: 'mobile_app', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: '`B>g4IPtA9bGQ,\\e', + password: 'R^B:\\UVI2u^)?BE7jI`0', port: 8080, - username: 'qui', + username: 'maxime', }, - email: 'hettinger.waylon@example.com', - force_connect: true, - name: 'dolore', - password: 'suad*;kZ>"mJN6DPu&qd', - proxyCountry: 'uk', - user_agent: 'qui', - xbc: 'illo', + email: 'wmurray@example.net', + force_connect: false, + name: 'quas', + password: '^L1B1J', + proxyCountry: 'us', + user_agent: 'delectus', + xbc: 'velit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 98695334..3c84d10f 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('nam', { + const responsePromise = client.engagement.messages.getMessageBuyers('assumenda', { 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('nam', { + const response = await client.engagement.messages.getMessageBuyers('assumenda', { 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 bb0d086f..3a7e5bcc 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('error', { 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('error', { 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('error', { 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('error', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..694c42e4 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 933738e9..25a7cac1 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('sed', { 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('sed', { 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('sed', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..fd74b68f 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 02883e18..96d399de 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 d13ad1ce..6b1dc2fd 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 ffed6694..08572ce8 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: ['cdllwgyugobfy'] }, + filter: { tags: ['oln'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('qui'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'qui', + 'est', { 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('harum'); + const responsePromise = client.smartLinks.listConversions('debitis'); 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( - 'harum', + 'debitis', { 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('quasi'); + const responsePromise = client.smartLinks.listFans('corporis'); 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( - 'quasi', + 'corporis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('facilis'); + const responsePromise = client.smartLinks.listSpenders('ducimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'facilis', + 'ducimus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); + const responsePromise = client.smartLinks.retrieveCohortArps('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'dolores', + 'non', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quam'); + const responsePromise = client.smartLinks.retrieveStats('vero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'quam', + 'vero', { 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 fddc8da2..08c5f1e8 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: 'tvkmuwsbtdm', tags: ['x'] }, + filter: { search: 'axddhhahnwoaxowvxbltyfqpa', tags: ['azb'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zjiattpyvdymjnvv', tags: ['t'] }, + filter: { search: 'qvowjmxsxwqfemvq', tags: ['ifduaagmwugblltdtfe'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'paxywpamjhirfj', - tags: ['fotwmphmnmdrsgnwa'], + search: 'lumufahmckjuowtocbtdjiy', + tags: ['ufkjmnkqqwvidafcsbeidm'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'mrdh', - tags: ['xlv'], + search: 'aurqhwjah', + tags: ['wsfaqiupreooluq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f6644678..990b3fc7 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('aperiam', { + 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('aperiam', { + 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('aperiam', { + 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('aperiam', { + 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 afba545c..32f51241 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('beatae', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('beatae', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('beatae', { 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('aut', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('aut', { + const response = await client.trackingLinks.getCohortArps('maxime', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('eaque', { + const response = await client.trackingLinks.getStats('tempora', { 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 71872595..e16e26d9 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('iste', { 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('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { 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; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aspernatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aspernatur', { + const response = await client.trialLinks.retrieveStats('natus', { 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 6a1023e2..8949e956 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: 'ymrynwustomzwvl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'zljbdnxmhnligvplrmxiy', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'ymrynwustomzwvl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zljbdnxmhnligvplrmxiy' }); }); // Mock server tests are disabled From 905eab1e668773fa567ce2d8cf8a83fc88841115 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 22:14:00 +0000 Subject: [PATCH 264/309] 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/posts/settings.ts | 2 +- src/resources/smart-link-postbacks.ts | 19 ++++++++++++- src/resources/smart-links.ts | 28 +++++++++++++------ 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 | 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 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------ .../trial-links/trial-links.test.ts | 20 ++++++------- .../user-lists/user-lists.test.ts | 6 ++-- 30 files changed, 144 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index f8258274..64b8c6fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-281efdce42680c00db4dbe3a4c400f2b58279e10050fd9763aa89d697a964473.yml -openapi_spec_hash: c0bc54d040790001fe98b77bb2363bd5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-339fbf6c8027a1fd27bc9054b8b4f13d5551a40afd752d1ef90f2ef420f9f201.yml +openapi_spec_hash: 65f71fc1e1e9ca176f3c8d5a5cdd9497 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 21770fad..fcdc00c7 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('facere'); + * const response = await client.accounts.disconnect( + * 'occaecati', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e32b300d..ce7a4d9d 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( - * 'assumenda', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c91cb463..cfee71f8 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( - * 'error', + * 'ab', * { 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( - * 'error', + * 'ab', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1044e7ec..ab309e8a 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('sed', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'ipsam', + * { + * 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('sed', { + * const comments = await client.posts.comments.list('ipsam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..41feb4c0 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-link-postbacks.ts b/src/resources/smart-link-postbacks.ts index 255e9d2d..43a3ff0a 100644 --- a/src/resources/smart-link-postbacks.ts +++ b/src/resources/smart-link-postbacks.ts @@ -140,6 +140,10 @@ export namespace SmartLinkPostbackCreateResponse { smart_links?: Array; + traffic_source_ids?: Array; + + traffic_sources?: Array; + updated_at?: string; url?: string; @@ -204,6 +208,10 @@ export namespace SmartLinkPostbackRetrieveResponse { smart_links?: Array; + traffic_source_ids?: Array; + + traffic_sources?: Array; + updated_at?: string; url?: string; @@ -278,6 +286,10 @@ export namespace SmartLinkPostbackUpdateResponse { smart_links?: Array; + traffic_source_ids?: Array; + + traffic_sources?: Array; + updated_at?: string; url?: string; @@ -352,6 +364,10 @@ export namespace SmartLinkPostbackListResponse { smart_links?: Array; + traffic_source_ids?: Array; + + traffic_sources?: Array; + updated_at?: string; url?: string; @@ -410,7 +426,8 @@ export interface SmartLinkPostbackCreateParams { /** * The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, - * `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + * `{gclid}`, `{gbraid}`, `{wbraid}`, `{ttclid}`, and `{sccid}` are replaced when + * the postback is dispatched. */ url: string; diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 10a5a5b3..2a96aca5 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('est'); + * const response = await client.smartLinks.listClicks( + * 'velit', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'debitis', + * 'et', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'corporis', - * ); + * const response = await client.smartLinks.listFans('quasi'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ducimus', + * 'modi', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('non'); + * await client.smartLinks.retrieveCohortArps('occaecati'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'vero', + * 'fugit', * ); * ``` */ @@ -607,6 +607,8 @@ export namespace SmartLinkListClicksResponse { fbclid?: string | null; + gbraid?: string | null; + gclid?: string; gross_clicks?: number; @@ -619,6 +621,8 @@ export namespace SmartLinkListClicksResponse { referrer?: string; + sccid?: string | null; + ttclid?: string; user_agent?: string; @@ -632,6 +636,8 @@ export namespace SmartLinkListClicksResponse { utm_source?: string; utm_term?: string; + + wbraid?: string | null; } export interface Summary { @@ -750,6 +756,8 @@ export namespace SmartLinkListConversionsResponse { fbclid?: string | null; + gbraid?: string | null; + gclid?: string; gross_clicks?: number; @@ -762,6 +770,8 @@ export namespace SmartLinkListConversionsResponse { referrer?: string; + sccid?: string | null; + ttclid?: string; user_agent?: string; @@ -775,6 +785,8 @@ export namespace SmartLinkListConversionsResponse { utm_source?: string; utm_term?: string; + + wbraid?: string | null; } export interface Fan { diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c556977f..e8661886 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( - * 'sed', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sed', { + * await client.stories.highlights.removeStory('aut', { * 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 5738f93c..84c9091f 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', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('maxime', { + * await client.trackingLinks.getCohortArps('repellat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tempora', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 2913e940..25f0b3cd 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('iste', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'magni', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('iste', { + * const trialLink = await client.trialLinks.delete('magni', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'velit', + * 'enim', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'natus', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1fb8e0a6..dfaff80e 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: 'zljbdnxmhnligvplrmxiy' }, + * { name: 'fwo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2c860f24..b0891f2a 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('facere'); + const responsePromise = client.accounts.disconnect('occaecati'); 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 2cbb6808..724b9b9c 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: 'delectus', + auth_id: 'esse', auth_type: 'mobile_app', - cookies: 'ut', + cookies: 'ex', customProxy: { host: 'proxy.example.com', - password: 'R^B:\\UVI2u^)?BE7jI`0', + password: 'P@i;qXp9', port: 8080, - username: 'maxime', + username: 'officia', }, - email: 'wmurray@example.net', + email: 'oconnell.barry@example.com', force_connect: false, - name: 'quas', - password: '^L1B1J', + name: 'voluptas', + password: 'D:]6_>1W', proxyCountry: 'us', - user_agent: 'delectus', - xbc: 'velit', + user_agent: 'dolores', + xbc: 'minus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 3c84d10f..e5d04d9a 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('assumenda', { + const responsePromise = client.engagement.messages.getMessageBuyers('velit', { 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('assumenda', { + const response = await client.engagement.messages.getMessageBuyers('velit', { 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 3a7e5bcc..fd54dee6 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('error', { + const responsePromise = client.media.vault.lists.media.add('ab', { 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('error', { + const response = await client.media.vault.lists.media.add('ab', { 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('error', { + const responsePromise = client.media.vault.lists.media.remove('ab', { 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('error', { + const response = await client.media.vault.lists.media.remove('ab', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 25a7cac1..b5f6dece 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('sed', { + const responsePromise = client.posts.comments.create('ipsam', { 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('sed', { + const response = await client.posts.comments.create('ipsam', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ipsam', { 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('sed', { + const response = await client.posts.comments.list('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 96d399de..c1510622 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 08572ce8..7cde9159 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: ['oln'] }, + filter: { tags: ['woooujhjvkmjn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('velit'); 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( - 'est', + 'velit', { 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('debitis'); + const responsePromise = client.smartLinks.listConversions('et'); 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( - 'debitis', + 'et', { 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('corporis'); + const responsePromise = client.smartLinks.listFans('quasi'); 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( - 'corporis', + 'quasi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ducimus'); + const responsePromise = client.smartLinks.listSpenders('modi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ducimus', + 'modi', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('non'); + const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'occaecati', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('vero'); + const responsePromise = client.smartLinks.retrieveStats('fugit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'vero', + 'fugit', { 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 08c5f1e8..3c6d417d 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: 'axddhhahnwoaxowvxbltyfqpa', tags: ['azb'] }, + filter: { search: 'hpxphoqgykrychr', tags: ['gjsomvhow'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qvowjmxsxwqfemvq', tags: ['ifduaagmwugblltdtfe'] }, + filter: { search: 'kefpnbuyyj', tags: ['xnmaazqkhymlnrcndplrv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'lumufahmckjuowtocbtdjiy', - tags: ['ufkjmnkqqwvidafcsbeidm'], + search: 'rmxxoefpvngukb', + tags: ['sclceakmucaxatmkwllnv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'aurqhwjah', - tags: ['wsfaqiupreooluq'], + search: 'cudlhkcmzzpiuz', + tags: ['ehdcigdu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 990b3fc7..013f5fda 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('sed', { + const responsePromise = client.stories.highlights.addStory('aut', { 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('sed', { + const response = await client.stories.highlights.addStory('aut', { 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('sed', { + const responsePromise = client.stories.highlights.removeStory('aut', { 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('sed', { + const response = await client.stories.highlights.removeStory('aut', { 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 32f51241..3489e37a 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('voluptas', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('voluptas', { 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('repellat', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('repellat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('tempora', { + const response = await client.trackingLinks.getStats('aut', { 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 e16e26d9..12da72ae 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('magni', { 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('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('enim', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('enim', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('eos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('natus', { 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; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('natus', { + 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 8949e956..73edc893 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: 'zljbdnxmhnligvplrmxiy', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fwo' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'zljbdnxmhnligvplrmxiy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fwo' }); }); // Mock server tests are disabled From a7d36e3f72d5f916ed4521bdd378f41db8f384c4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 23:12:46 +0000 Subject: [PATCH 265/309] 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/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 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 6 +++-- 26 files changed, 109 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 64b8c6fd..fb530dc8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-339fbf6c8027a1fd27bc9054b8b4f13d5551a40afd752d1ef90f2ef420f9f201.yml -openapi_spec_hash: 65f71fc1e1e9ca176f3c8d5a5cdd9497 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ee69bbaf59c66689dc8ae3a8265c1e1e6681381978e2d6e8f476ae33dba1f5d.yml +openapi_spec_hash: 49e769ffc51179a8bf3aa3efbfd52b96 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fcdc00c7..6c0bc8d9 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( - * 'occaecati', - * ); + * const response = await client.accounts.disconnect('fugit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index ce7a4d9d..d9643be4 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( - * 'velit', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index cfee71f8..cdae0082 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( - * 'ab', + * '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( - * 'ab', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ab309e8a..308ae596 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( - * 'ipsam', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('vel', { + * 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('ipsam', { + * const comments = await client.posts.comments.list('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..a84ff073 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 2a96aca5..572f8fcb 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( - * 'velit', - * ); + * const response = await client.smartLinks.listClicks('sunt'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'et', + * 'nisi', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quasi'); + * const response = await client.smartLinks.listFans( + * 'pariatur', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'modi', + * 'nostrum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('occaecati'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'fugit', + * 'neque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e8661886..cd1270bc 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( - * 'aut', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aut', { + * await client.stories.highlights.removeStory('cum', { * 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 84c9091f..9171c199 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( - * 'voluptas', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptas', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repellat', { + * 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( - * 'aut', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 25f0b3cd..17dfc602 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( - * 'magni', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sunt', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('magni', { + * const trialLink = await client.trialLinks.delete('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'enim', + * 'quidem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eos', { + * await client.trialLinks.retrieveCohortArps('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nihil', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index dfaff80e..a86e06cd 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: 'fwo' }, + * { name: 'jgblyigwmkrlqjuhpwiqq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b0891f2a..c8db5da1 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('occaecati'); + const responsePromise = client.accounts.disconnect('fugit'); 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 724b9b9c..e100b5f1 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: 'mobile_app', - cookies: 'ex', + auth_id: 'odio', + auth_type: 'email_password', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: 'P@i;qXp9', + password: 'N2~/Xg83fb`p(LQ8Dp>', port: 8080, - username: 'officia', + username: 'delectus', }, - email: 'oconnell.barry@example.com', - force_connect: false, - name: 'voluptas', - password: 'D:]6_>1W', + email: 'elisa12@example.org', + force_connect: true, + name: 'cumque', + password: 'qm\\"C$LWV', proxyCountry: 'us', - user_agent: 'dolores', - xbc: 'minus', + user_agent: 'quia', + xbc: 'optio', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 e5d04d9a..022977e9 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('velit', { + 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('velit', { + 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 fd54dee6..8cac4fb7 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('ab', { + 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('ab', { + 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('ab', { + 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('ab', { + const response = await client.media.vault.lists.media.remove('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d96512..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b5f6dece..9b7aaa77 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('ipsam', { + const responsePromise = client.posts.comments.create('vel', { 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('ipsam', { + const response = await client.posts.comments.create('vel', { 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('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('vel', { 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('ipsam', { + const response = await client.posts.comments.list('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 c1510622..02883e18 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7cde9159..7b221ca6 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: ['woooujhjvkmjn'] }, + filter: { tags: ['rngp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('velit'); + const responsePromise = client.smartLinks.listClicks('sunt'); 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( - 'velit', + 'sunt', { 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('et'); + const responsePromise = client.smartLinks.listConversions('nisi'); 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( - 'et', + 'nisi', { 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('quasi'); + const responsePromise = client.smartLinks.listFans('pariatur'); 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( - 'quasi', + 'pariatur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('modi'); + const responsePromise = client.smartLinks.listSpenders('nostrum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'modi', + 'nostrum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('occaecati'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'occaecati', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('fugit'); + const responsePromise = client.smartLinks.retrieveStats('neque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'fugit', + 'neque', { 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 3c6d417d..9cdc03ea 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: 'hpxphoqgykrychr', tags: ['gjsomvhow'] }, + filter: { search: 'klkfnjh', tags: ['wkqcqczfezdxmqstucaqnvcr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kefpnbuyyj', tags: ['xnmaazqkhymlnrcndplrv'] }, + filter: { search: 'gmlkdnuxgwzu', tags: ['uhndrgymnhmlamkm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'rmxxoefpvngukb', - tags: ['sclceakmucaxatmkwllnv'], + include_smart_links: true, + search: 'wu', + tags: ['wjiqsihqcxxxxqieuhd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cudlhkcmzzpiuz', - tags: ['ehdcigdu'], + include_smart_links: false, + search: 'kxxekrsudkcjaryx', + tags: ['sdapbdkh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 013f5fda..2e8a335d 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('aut', { + const responsePromise = client.stories.highlights.addStory('cum', { 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('aut', { + const response = await client.stories.highlights.addStory('cum', { 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('aut', { + const responsePromise = client.stories.highlights.removeStory('cum', { 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('aut', { + const response = await client.stories.highlights.removeStory('cum', { 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 3489e37a..1d4983ee 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('voluptas', { 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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptas', { 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; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptas', { 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('repellat', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('repellat', { + const response = await client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aut', { 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; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aut', { + 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 12da72ae..c7e06b9d 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('magni', { 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('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('magni', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('enim', { + const responsePromise = client.trialLinks.listSubscribers('quidem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('enim', { + const response = await client.trialLinks.listSubscribers('quidem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eos', { 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; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eos', { + const response = await client.trialLinks.retrieveCohortArps('ab', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,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('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,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('earum', { 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 73edc893..227e7dcb 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: 'fwo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jgblyigwmkrlqjuhpwiqq', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'fwo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'jgblyigwmkrlqjuhpwiqq' }); }); // Mock server tests are disabled From 493f801f4b21bd5ee26815332f97c7f93abfbba8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 00:12:41 +0000 Subject: [PATCH 266/309] 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 | 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 +++--- tests/api-resources/profiles.test.ts | 2 +- .../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 | 22 +++++++++------- .../user-lists/user-lists.test.ts | 6 +++-- 25 files changed, 120 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb530dc8..95202430 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4ee69bbaf59c66689dc8ae3a8265c1e1e6681381978e2d6e8f476ae33dba1f5d.yml -openapi_spec_hash: 49e769ffc51179a8bf3aa3efbfd52b96 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5fe5e7c851b6589a0e9dbbd6d3291aefe3062c36445a50c21d2f1464c26c68fb.yml +openapi_spec_hash: 0365a3289a582ef679147016b0f393ed config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6c0bc8d9..d25bbb22 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('fugit'); + * 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 d9643be4..3a3ac47e 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( - * 'officia', - * { 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 cdae0082..5a539cd3 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', + * 'sit', * { 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', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 308ae596..1d67b61b 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'beatae', + * { + * 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'beatae', + * { 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 572f8fcb..530f40be 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('sunt'); + * const response = await client.smartLinks.listClicks( + * 'beatae', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nisi', + * 'perspiciatis', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'pariatur', + * 'voluptas', * ); * ``` */ @@ -129,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'nostrum', - * ); + * const response = await client.smartLinks.listSpenders('ab'); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('neque'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'neque', + * 'tempora', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cd1270bc..78c9b0c5 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( - * 'cum', + * '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('cum', { - * 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 9171c199..1d0888bf 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', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'explicabo', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 17dfc602..524d2214 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('sunt', { + * const trialLink = await client.trialLinks.retrieve('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sunt', { + * const trialLink = await client.trialLinks.delete('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quidem', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ab', { + * await client.trialLinks.retrieveCohortArps('doloribus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'earum', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a86e06cd..b4eff4c9 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: 'jgblyigwmkrlqjuhpwiqq' }, + * { name: 'jpptvlimjyniyademhobpnu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c8db5da1..6877d23c 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('fugit'); + 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 e100b5f1..d88621bd 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: 'odio', - auth_type: 'email_password', - cookies: 'est', + auth_id: 'incidunt', + auth_type: 'raw_data', + cookies: 'dignissimos', customProxy: { host: 'proxy.example.com', - password: 'N2~/Xg83fb`p(LQ8Dp>', + password: '8_H]xqIT#Jo%g>9t\\x[h', port: 8080, - username: 'delectus', + username: 'corporis', }, - email: 'elisa12@example.org', + email: 'dreinger@example.org', force_connect: true, - name: 'cumque', - password: 'qm\\"C$LWV', - proxyCountry: 'us', - user_agent: 'quia', - xbc: 'optio', + name: 'veritatis', + password: ".4zBI)$[F!H'", + proxyCountry: 'gb', + user_agent: 'pariatur', + xbc: 'iusto', }, { 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 022977e9..32dab22b 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('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('officia', { + 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 8cac4fb7..5c545e30 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('sit', { 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('sit', { 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('sit', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9b7aaa77..715b94db 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('vel', { + 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('vel', { + 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('vel', { 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('vel', { + 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 ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7b221ca6..fdad50cb 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: ['rngp'] }, + filter: { tags: ['vecbbcevtnzylwtxllbuel'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sunt'); + const responsePromise = client.smartLinks.listClicks('beatae'); 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( - 'sunt', + 'beatae', { 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('nisi'); + const responsePromise = client.smartLinks.listConversions('perspiciatis'); 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( - 'nisi', + 'perspiciatis', { 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('pariatur'); + const responsePromise = client.smartLinks.listFans('voluptas'); 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( - 'pariatur', + 'voluptas', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nostrum'); + const responsePromise = client.smartLinks.listSpenders('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'nostrum', + 'ab', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('neque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'neque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('neque'); + const responsePromise = client.smartLinks.retrieveStats('tempora'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'neque', + 'tempora', { 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 9cdc03ea..20967847 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: 'klkfnjh', tags: ['wkqcqczfezdxmqstucaqnvcr'] }, + filter: { search: 'wtifxntpz', tags: ['gzohueiokxrgvwgodotzvvp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gmlkdnuxgwzu', tags: ['uhndrgymnhmlamkm'] }, + filter: { search: 'ysoivs', tags: ['ol'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'wu', - tags: ['wjiqsihqcxxxxqieuhd'], + include_smart_links: false, + search: 'lbbqnnemayeschqkfaqqf', + tags: ['rpkzmjcwvcklxxglnsu'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'kxxekrsudkcjaryx', - tags: ['sdapbdkh'], + search: 'smctbju', + tags: ['mnhhlnc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2e8a335d..dfeaef0e 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('cum', { + 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('cum', { + 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('cum', { + 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('cum', { + 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 1d4983ee..9b7581f2 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('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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('qui', { 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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('eos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('sit', { 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 c7e06b9d..4e243a6e 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('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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quidem', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quidem', { + const response = await client.trialLinks.listSubscribers('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ 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('doloribus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('earum', { + const response = await client.trialLinks.retrieveStats('rerum', { 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 227e7dcb..404c6f31 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: 'jgblyigwmkrlqjuhpwiqq', + name: 'jpptvlimjyniyademhobpnu', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -24,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: 'jgblyigwmkrlqjuhpwiqq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jpptvlimjyniyademhobpnu', + }); }); // Mock server tests are disabled From f2a81829408791c7ffa3a2ad47aa78dd3d67b280 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 03:12:39 +0000 Subject: [PATCH 267/309] 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 | 18 ++++++------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 13 +++++----- 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 +-- .../shared-trial-links.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 | 16 ++++++------ .../user-lists/user-lists.test.ts | 8 ++---- 29 files changed, 113 insertions(+), 121 deletions(-) diff --git a/.stats.yml b/.stats.yml index 95202430..777a4dbf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5fe5e7c851b6589a0e9dbbd6d3291aefe3062c36445a50c21d2f1464c26c68fb.yml -openapi_spec_hash: 0365a3289a582ef679147016b0f393ed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d0a148cf2a9e0d5a0522e06e5ecc0088c65824e4b5b93cd1e8a748b2fe061e60.yml +openapi_spec_hash: f8b73b2050e8283f79d1e76051649eed config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d25bbb22..396b2255 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('eaque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a3ac47e..dd555129 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( + * 'dignissimos', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5a539cd3..08ef9907 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( - * 'sit', + * '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( - * 'sit', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1d67b61b..1db600f1 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( - * 'beatae', + * 'perspiciatis', * { * 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( - * 'beatae', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..09d6973d 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 41feb4c0..2b04cbb2 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 530f40be..4f3d9c98 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( - * 'beatae', - * ); + * const response = await client.smartLinks.listClicks('est'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'perspiciatis', + * 'repellendus', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptas', - * ); + * const response = await client.smartLinks.listFans('culpa'); * ``` */ listFans( @@ -131,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ab'); + * const response = await client.smartLinks.listSpenders( + * 'qui', + * ); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('neque'); + * await client.smartLinks.retrieveCohortArps('quae'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'tempora', + * 'sequi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 78c9b0c5..3e56b455 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', + * 'rerum', * { * 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('rerum', { + * 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 1d0888bf..db5b9c58 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', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eos', { + * await client.trackingLinks.getCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'sit', - * { 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 524d2214..514f906e 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( + * 'autem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quia', { + * const trialLink = await client.trialLinks.delete('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consequatur', + * 'in', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'ad', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b4eff4c9..382c5eff 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: 'jpptvlimjyniyademhobpnu' }, + * { name: 'zsqmgyge' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6877d23c..6f1d8f3f 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('eaque'); 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 d88621bd..ed3d224c 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: 'incidunt', - auth_type: 'raw_data', - cookies: 'dignissimos', + auth_id: 'vero', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '8_H]xqIT#Jo%g>9t\\x[h', + password: '#qmHPh<_,Ux%*Vp$~', proxyCountry: 'gb', - user_agent: 'pariatur', - xbc: 'iusto', + user_agent: 'earum', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 32dab22b..c3b05a0a 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('dignissimos', { 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('dignissimos', { 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 5c545e30..4683978a 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('sit', { + 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('sit', { + 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('sit', { + 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('sit', { + 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 70f616cd..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 715b94db..bef68d36 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('perspiciatis', { 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('perspiciatis', { 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('perspiciatis', { 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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 fd74b68f..e2edc676 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 c1510622..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index fdad50cb..0268ceb0 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: ['vecbbcevtnzylwtxllbuel'] }, + filter: { tags: ['auxogjrllp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('beatae'); + const responsePromise = client.smartLinks.listClicks('est'); 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( - 'beatae', + 'est', { 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('perspiciatis'); + const responsePromise = client.smartLinks.listConversions('repellendus'); 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( - 'perspiciatis', + 'repellendus', { 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('voluptas'); + const responsePromise = client.smartLinks.listFans('culpa'); 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( - 'voluptas', + 'culpa', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ab'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'qui', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('neque'); + const responsePromise = client.smartLinks.retrieveCohortArps('quae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'neque', + 'quae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('tempora'); + const responsePromise = client.smartLinks.retrieveStats('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'tempora', + 'sequi', { 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 20967847..6513a6be 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: 'wtifxntpz', tags: ['gzohueiokxrgvwgodotzvvp'] }, + filter: { search: 'xaofzjghqpcklbjf', tags: ['odsjnlhrp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ysoivs', tags: ['ol'] }, + filter: { search: 'vvrtbas', tags: ['javcc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'lbbqnnemayeschqkfaqqf', - tags: ['rpkzmjcwvcklxxglnsu'], + search: 'r', + tags: ['tkbiefkyvmqfbqldvfpq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'smctbju', - tags: ['mnhhlnc'], + include_smart_links: true, + search: 'vdomrrmiv', + tags: ['vs'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dfeaef0e..4d879d85 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('rerum', { 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('rerum', { 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('rerum', { 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('rerum', { 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 9b7581f2..d40dfa8d 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('velit', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('velit', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sit', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sit', { + 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 4e243a6e..9390bb20 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('autem', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('in', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('in', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ad', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('rerum', { + const response = await client.trialLinks.retrieveStats('ad', { 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 404c6f31..ba1f9fc6 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: 'jpptvlimjyniyademhobpnu', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zsqmgyge' }); 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: 'jpptvlimjyniyademhobpnu', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zsqmgyge' }); }); // Mock server tests are disabled From f889ebc0653e173b528e13b32b7fcbb96bf83740 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 13:12:43 +0000 Subject: [PATCH 268/309] 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 +- .../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 | 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/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 115 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 777a4dbf..c87bc9c6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d0a148cf2a9e0d5a0522e06e5ecc0088c65824e4b5b93cd1e8a748b2fe061e60.yml -openapi_spec_hash: f8b73b2050e8283f79d1e76051649eed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5925ea7e3937e246f4d5f0d05d3d5d63289ef7732540cf4309ae7de25272a58e.yml +openapi_spec_hash: e706e176f314f49fb518746db4850a47 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 396b2255..925565da 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('eaque'); + * 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 dd555129..c295f4b1 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( - * 'dignissimos', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 08ef9907..18403fb9 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', + * 'numquam', * { 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', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1db600f1..95bf943a 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( - * 'perspiciatis', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('quis', { + * 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( - * 'perspiciatis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('quis', { + * 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 09d6973d..e20f70d1 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 2b04cbb2..c9a094cf 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 4f3d9c98..a04b4f2c 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('ipsa'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'repellendus', + * 'consequatur', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('culpa'); + * const response = await client.smartLinks.listFans('veniam'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'nesciunt', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quae'); + * await client.smartLinks.retrieveCohortArps('blanditiis'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sequi', + * 'accusantium', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e56b455..45b669a0 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( - * 'rerum', + * 'suscipit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('rerum', { + * await client.stories.highlights.removeStory('suscipit', { * 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 db5b9c58..ec4f4d33 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( - * 'velit', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'velit', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('impedit', { * 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( + * 'magni', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 514f906e..3168e77b 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( - * 'autem', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('autem', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptatibus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'in', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('doloribus', { + * await client.trialLinks.retrieveCohortArps('nobis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ad', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 382c5eff..84040f5c 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: 'zsqmgyge' }, + * { name: 'rgcupuzfgoumqiezkme' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6f1d8f3f..139b3a7c 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('eaque'); + 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 ed3d224c..7f0a6822 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: 'vero', + auth_id: 'quisquam', auth_type: 'email_password', - cookies: 'et', + cookies: 'dolorem', customProxy: { host: 'proxy.example.com', - password: '#qmHPh<_,Ux%*Vp$~', - proxyCountry: 'gb', - user_agent: 'earum', - xbc: 'voluptatem', + email: 'telly70@example.org', + force_connect: true, + name: 'repudiandae', + password: 'FWGk5U$', + proxyCountry: 'us', + user_agent: 'aliquam', + xbc: 'doloremque', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 c3b05a0a..0bdc12a8 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('dignissimos', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptas', { 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('dignissimos', { + const response = await client.engagement.messages.getMessageBuyers('voluptas', { 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 4683978a..6f43b30e 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('numquam', { 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('numquam', { 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('numquam', { 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('numquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bef68d36..86baf48c 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('perspiciatis', { + const responsePromise = client.posts.comments.create('quis', { 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('perspiciatis', { + const response = await client.posts.comments.create('quis', { 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('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quis', { 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('perspiciatis', { + const response = await client.posts.comments.list('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 e2edc676..fd74b68f 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 96d399de..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0268ceb0..453a88dd 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: ['auxogjrllp'] }, + filter: { tags: ['ajmmpekytjnnfujvwb'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('ipsa'); 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( - 'est', + 'ipsa', { 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('repellendus'); + const responsePromise = client.smartLinks.listConversions('consequatur'); 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( - 'repellendus', + 'consequatur', { 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('culpa'); + const responsePromise = client.smartLinks.listFans('veniam'); 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( - 'culpa', + 'veniam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('nesciunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'nesciunt', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quae'); + const responsePromise = client.smartLinks.retrieveCohortArps('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quae', + 'blanditiis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sequi'); + const responsePromise = client.smartLinks.retrieveStats('accusantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'sequi', + 'accusantium', { 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 6513a6be..759d9be5 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: 'xaofzjghqpcklbjf', tags: ['odsjnlhrp'] }, + filter: { search: 'qejefbopxmhjmcubcgxoles', tags: ['ijctgbdhdl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'vvrtbas', tags: ['javcc'] }, + filter: { search: 'rguhafdjqcfwjs', tags: ['g'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'r', - tags: ['tkbiefkyvmqfbqldvfpq'], + search: 'jgsdi', + tags: ['zkkfs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'vdomrrmiv', - tags: ['vs'], + include_smart_links: false, + search: 'flduclkqskcwnaijxcvxb', + tags: ['dumxoylxf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 4d879d85..3b6904fe 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('rerum', { + const responsePromise = client.stories.highlights.addStory('suscipit', { 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('rerum', { + const response = await client.stories.highlights.addStory('suscipit', { 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('rerum', { + const responsePromise = client.stories.highlights.removeStory('suscipit', { 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('rerum', { + const response = await client.stories.highlights.removeStory('suscipit', { 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 d40dfa8d..d8d7ad7d 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('velit', { 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('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('velit', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('velit', { 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('impedit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('impedit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,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('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,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('magni', { 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 9390bb20..61bfc386 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptatibus', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('in', { + const responsePromise = client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('in', { + const response = await client.trialLinks.listSubscribers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { + const responsePromise = client.trialLinks.retrieveCohortArps('nobis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('nobis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ad', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ad', { + 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 ba1f9fc6..1ca87f2a 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: 'zsqmgyge' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rgcupuzfgoumqiezkme' }); 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: 'zsqmgyge' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rgcupuzfgoumqiezkme' }); }); // Mock server tests are disabled From a574d06c31db307fd5edf3e80eb6a77dc91ac7b1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 15:12:45 +0000 Subject: [PATCH 269/309] 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 +- 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 ++++++++-------- 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/queue.test.ts | 2 +- .../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 | 4 +-- 27 files changed, 108 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index c87bc9c6..1651635e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5925ea7e3937e246f4d5f0d05d3d5d63289ef7732540cf4309ae7de25272a58e.yml -openapi_spec_hash: e706e176f314f49fb518746db4850a47 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f29a2ad5fb95504c3abe9319a2cce6874863e10b15f59875ff459f10febb4060.yml +openapi_spec_hash: d04cc8bc9b6bb53c117582b6061a4bc8 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 925565da..98150914 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( + * 'asperiores', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index c295f4b1..13e1faf2 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( - * 'voluptas', + * 'ratione', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 18403fb9..84719ef3 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( - * 'numquam', + * 'perspiciatis', * { 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( - * 'numquam', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 95bf943a..c7acc9ed 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('quis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'rerum', + * { + * 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('quis', { + * const comments = await client.posts.comments.list('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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/smart-links.ts b/src/resources/smart-links.ts index a04b4f2c..8359bf4d 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('ipsa'); + * const response = await client.smartLinks.listClicks( + * 'corrupti', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'consequatur', + * 'assumenda', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('veniam'); + * const response = await client.smartLinks.listFans('alias'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nesciunt', + * 'delectus', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('blanditiis'); + * await client.smartLinks.retrieveCohortArps('placeat'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'accusantium', + * 'aspernatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 45b669a0..a35dcf96 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( - * 'suscipit', + * 'saepe', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('suscipit', { + * await client.stories.highlights.removeStory('saepe', { * 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 ec4f4d33..c5900c16 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', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'natus', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('impedit', { + * await client.trackingLinks.getCohortArps('earum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'magni', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3168e77b..59046dc5 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( - * 'voluptatibus', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptatibus', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quia', + * 'temporibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nobis', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'omnis', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 84040f5c..aa364f2d 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: 'rgcupuzfgoumqiezkme' }, + * { name: 'cemc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 139b3a7c..04ac84e8 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('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 7f0a6822..fc45f50b 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: 'quisquam', + auth_id: 'id', auth_type: 'email_password', - cookies: 'dolorem', + cookies: 'odio', customProxy: { host: 'proxy.example.com', - password: '7*9Q<}5X)Y{6@}', + password: '%\'8rvA6_0&*Di.nAO"_', port: 8080, - username: 'est', + username: 'ad', }, - email: 'telly70@example.org', - force_connect: true, - name: 'repudiandae', - password: 'FWGk5U$', - proxyCountry: 'us', - user_agent: 'aliquam', - xbc: 'doloremque', + email: 'kjacobson@example.org', + force_connect: false, + name: 'aut', + password: '>:S$MCo3TFbW2GT"', + proxyCountry: 'gb', + user_agent: 'atque', + xbc: 'ipsam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 0bdc12a8..1cb7c4dc 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('voluptas', { + const responsePromise = client.engagement.messages.getMessageBuyers('ratione', { 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('voluptas', { + const response = await client.engagement.messages.getMessageBuyers('ratione', { 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 6f43b30e..5d864cbe 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('numquam', { + const responsePromise = client.media.vault.lists.media.add('perspiciatis', { 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('numquam', { + const response = await client.media.vault.lists.media.add('perspiciatis', { 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('numquam', { + const responsePromise = client.media.vault.lists.media.remove('perspiciatis', { 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('numquam', { + const response = await client.media.vault.lists.media.remove('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 86baf48c..93ed1fe7 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('quis', { + const responsePromise = client.posts.comments.create('rerum', { 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('quis', { + const response = await client.posts.comments.create('rerum', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('rerum', { 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('quis', { + const response = await client.posts.comments.list('rerum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 fd74b68f..4ec8acc7 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 453a88dd..8d9b5acc 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: ['ajmmpekytjnnfujvwb'] }, + filter: { tags: ['dnyslqtagtzbfyuoo'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ipsa'); + const responsePromise = client.smartLinks.listClicks('corrupti'); 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( - 'ipsa', + 'corrupti', { 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('consequatur'); + const responsePromise = client.smartLinks.listConversions('assumenda'); 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( - 'consequatur', + 'assumenda', { 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('veniam'); + const responsePromise = client.smartLinks.listFans('alias'); 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( - 'veniam', + 'alias', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nesciunt'); + const responsePromise = client.smartLinks.listSpenders('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'nesciunt', + 'delectus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('blanditiis'); + const responsePromise = client.smartLinks.retrieveCohortArps('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'blanditiis', + 'placeat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('accusantium'); + const responsePromise = client.smartLinks.retrieveStats('aspernatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'accusantium', + 'aspernatur', { 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 759d9be5..c7f646fb 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: 'qejefbopxmhjmcubcgxoles', tags: ['ijctgbdhdl'] }, + filter: { search: 'tsmpotibdhcqaltoagvthw', tags: ['jqmdr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rguhafdjqcfwjs', tags: ['g'] }, + filter: { search: 'oletvr', tags: ['tiacw'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'jgsdi', - tags: ['zkkfs'], + search: 'orffeydqbzpjqxuufgzegga', + tags: ['vezhuizwnzmlzc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'flduclkqskcwnaijxcvxb', - tags: ['dumxoylxf'], + search: 'towqtkovywhphjnwpfkzyp', + tags: ['ulbasfxdnyeemn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b6904fe..1611c1fc 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('suscipit', { + const responsePromise = client.stories.highlights.addStory('saepe', { 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('suscipit', { + const response = await client.stories.highlights.addStory('saepe', { 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('suscipit', { + const responsePromise = client.stories.highlights.removeStory('saepe', { 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('suscipit', { + const response = await client.stories.highlights.removeStory('saepe', { 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 d8d7ad7d..fff93384 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('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('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('impedit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('impedit', { + const response = await client.trackingLinks.getCohortArps('earum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('magni', { + const response = await client.trackingLinks.getStats('praesentium', { 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 61bfc386..7bb6e9b4 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('voluptatibus', { 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('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptatibus', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quia', { + const responsePromise = client.trialLinks.listSubscribers('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quia', { + const response = await client.trialLinks.listSubscribers('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nobis', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nobis', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('molestias', { 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 1ca87f2a..840b31a1 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: 'rgcupuzfgoumqiezkme' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cemc' }); 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: 'rgcupuzfgoumqiezkme' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cemc' }); }); // Mock server tests are disabled From c4ae3cb4ef846f5424a4b561a18273a39103e8d0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 18:15:25 +0000 Subject: [PATCH 270/309] 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 | 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 +- tests/api-resources/queue.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 | 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 +-- 29 files changed, 111 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1651635e..21336655 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f29a2ad5fb95504c3abe9319a2cce6874863e10b15f59875ff459f10febb4060.yml -openapi_spec_hash: d04cc8bc9b6bb53c117582b6061a4bc8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-664ad434b9b4a88114f5f15b2aabcae9086c972fdbba878d585aade843aa0b0b.yml +openapi_spec_hash: 6eac51372e7e59c79f7b88771542bc1e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 98150914..f0d6d027 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( - * 'asperiores', - * ); + * const response = await client.accounts.disconnect('libero'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 13e1faf2..b6dc8846 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( - * 'ratione', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 84719ef3..66286110 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( - * 'perspiciatis', + * 'voluptatem', * { 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( - * 'perspiciatis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c7acc9ed..295278c6 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( - * 'rerum', + * 'dolores', * { * 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('rerum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'dolores', + * { 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 a9767818..599a9525 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 c9a094cf..2b04cbb2 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 8359bf4d..bc4c83cc 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( - * 'corrupti', + * 'ipsum', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'assumenda', + * 'reiciendis', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('alias'); + * const response = await client.smartLinks.listFans( + * 'voluptas', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'delectus', + * 'sit', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('placeat'); + * await client.smartLinks.retrieveCohortArps('praesentium'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aspernatur', + * 'ex', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a35dcf96..23cc3390 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( - * 'saepe', + * 'quibusdam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('saepe', { + * await client.stories.highlights.removeStory('quibusdam', { * 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 c5900c16..6ff229b0 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', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'placeat', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('earum', { + * await client.trackingLinks.getCohortArps('quam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'praesentium', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 59046dc5..98af87bb 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( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'temporibus', + * 'sint', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'molestias', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index aa364f2d..201fc0fc 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: 'cemc' }, + * { name: 'nybwrooeeqypmzfxy' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 04ac84e8..e725eedf 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('libero'); 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 fc45f50b..d6aa9543 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: 'id', - auth_type: 'email_password', - cookies: 'odio', + auth_id: 'dolores', + auth_type: 'raw_data', + cookies: 'blanditiis', customProxy: { host: 'proxy.example.com', - password: '%\'8rvA6_0&*Di.nAO"_', + password: '4e&p<>$VPWv.>|m*i', port: 8080, - username: 'ad', + username: 'ut', }, - email: 'kjacobson@example.org', + email: 'elijah55@example.com', force_connect: false, - name: 'aut', - password: '>:S$MCo3TFbW2GT"', + name: 'ut', + password: '{5L8w6O0SSUX)5x', proxyCountry: 'gb', - user_agent: 'atque', - xbc: 'ipsam', + user_agent: 'eum', + xbc: 'unde', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 1cb7c4dc..01499889 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('ratione', { + 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('ratione', { + 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 5d864cbe..157f995e 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.add('voluptatem', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.add('voluptatem', { 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.remove('voluptatem', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.remove('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 93ed1fe7..91e5fe0e 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('rerum', { + const responsePromise = client.posts.comments.create('dolores', { 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('rerum', { + const response = await client.posts.comments.create('dolores', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolores', { 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('rerum', { + const response = await client.posts.comments.list('dolores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 4ec8acc7..8e5b0566 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 b643af69..96d399de 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 8d9b5acc..2316547e 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: ['dnyslqtagtzbfyuoo'] }, + filter: { tags: ['t'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('corrupti'); + const responsePromise = client.smartLinks.listClicks('ipsum'); 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( - 'corrupti', + 'ipsum', { 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('assumenda'); + const responsePromise = client.smartLinks.listConversions('reiciendis'); 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( - 'assumenda', + 'reiciendis', { 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('alias'); + const responsePromise = client.smartLinks.listFans('voluptas'); 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( - 'alias', + 'voluptas', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('delectus'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'delectus', + 'sit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('placeat'); + const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'placeat', + 'praesentium', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aspernatur'); + const responsePromise = client.smartLinks.retrieveStats('ex'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'aspernatur', + 'ex', { 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 c7f646fb..5e329109 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: 'tsmpotibdhcqaltoagvthw', tags: ['jqmdr'] }, + filter: { search: 'dnuxhldwbkqntje', tags: ['zznqzwcsxzfxipmfjxzzxc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oletvr', tags: ['tiacw'] }, + filter: { search: 'bpluxnkagann', tags: ['srbjlktgtkgjclghsfoizco'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'orffeydqbzpjqxuufgzegga', - tags: ['vezhuizwnzmlzc'], + include_smart_links: true, + search: 'zq', + tags: ['tflnwhj'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'towqtkovywhphjnwpfkzyp', - tags: ['ulbasfxdnyeemn'], + include_smart_links: true, + search: 'tchrjxct', + tags: ['vvwbukz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1611c1fc..1b9f36a6 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('saepe', { + const responsePromise = client.stories.highlights.addStory('quibusdam', { 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('saepe', { + const response = await client.stories.highlights.addStory('quibusdam', { 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('saepe', { + const responsePromise = client.stories.highlights.removeStory('quibusdam', { 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('saepe', { + const response = await client.stories.highlights.removeStory('quibusdam', { 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 fff93384..0b707e84 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('hic', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('earum', { + const response = await client.trackingLinks.getCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('praesentium', { + const response = await client.trackingLinks.getStats('dicta', { 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 7bb6e9b4..f28ba205 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('quo', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('temporibus', { + const responsePromise = client.trialLinks.listSubscribers('sint', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('temporibus', { + const response = await client.trialLinks.listSubscribers('sint', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('molestias', { 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; @@ -186,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('molestias', { + 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 840b31a1..d2e8699e 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: 'cemc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nybwrooeeqypmzfxy' }); 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: 'cemc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nybwrooeeqypmzfxy' }); }); // Mock server tests are disabled From 9f58d7d2f16795ea0c8032507a888b1820aba184 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 21:12:41 +0000 Subject: [PATCH 271/309] 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 | 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 | 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 | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 28 files changed, 115 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 21336655..203bf1e1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-664ad434b9b4a88114f5f15b2aabcae9086c972fdbba878d585aade843aa0b0b.yml -openapi_spec_hash: 6eac51372e7e59c79f7b88771542bc1e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd410c8d2420626ba2a6fae9c77ff5cc15006015a1dbe93b7a1406826d91eb1d.yml +openapi_spec_hash: a476e19b411572cc5fee1fa461d9e9ca config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f0d6d027..88da1ab7 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('libero'); + * const response = await client.accounts.disconnect('sunt'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b6dc8846..983ec14b 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( - * 'facilis', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 66286110..498021bb 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( - * 'voluptatem', + * '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( - * 'voluptatem', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 295278c6..7b1c22c5 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( - * 'dolores', + * 'possimus', * { * 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( - * 'dolores', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..a9767818 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 2b04cbb2..c9a094cf 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 bc4c83cc..465284ea 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( - * 'ipsum', - * ); + * const response = await client.smartLinks.listClicks('unde'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'reiciendis', + * 'omnis', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptas', - * ); + * const response = await client.smartLinks.listFans('fugiat'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'quidem', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('praesentium'); + * await client.smartLinks.retrieveCohortArps('cupiditate'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ex', + * 'eum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 23cc3390..651e8fba 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( - * 'quibusdam', + * '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('quibusdam', { + * 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 6ff229b0..b0c6d5d7 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( - * 'hic', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'hic', + * 'excepturi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quam', { + * await client.trackingLinks.getCohortArps('consequuntur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dicta', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 98af87bb..58892504 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('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sint', + * 'quaerat', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('in', { + * await client.trialLinks.retrieveCohortArps('blanditiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nostrum', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 201fc0fc..b1ee9013 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: 'nybwrooeeqypmzfxy' }, + * { name: 'azxovsnngilndjcrsufxawqft' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e725eedf..26b92210 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('libero'); + const responsePromise = client.accounts.disconnect('sunt'); 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 d6aa9543..d6ad0479 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: 'dolores', - auth_type: 'raw_data', - cookies: 'blanditiis', + auth_id: 'quia', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '4e&p<>$VPWv.>|m*i', + password: '1g?5Ss,', port: 8080, username: 'ut', }, - email: 'elijah55@example.com', - force_connect: false, - name: 'ut', - password: '{5L8w6O0SSUX)5x', - proxyCountry: 'gb', - user_agent: 'eum', - xbc: 'unde', + email: 'bailey.nicolas@example.org', + force_connect: true, + name: 'optio', + password: ')EI;4!m_AZl_wd', + proxyCountry: 'us', + user_agent: 'laborum', + xbc: 'consequatur', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 01499889..086a44ab 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('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('facilis', { + 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 157f995e..7b876bd9 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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('voluptatem', { + 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 e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91e5fe0e..fada9872 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('dolores', { + const responsePromise = client.posts.comments.create('possimus', { 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('dolores', { + const response = await client.posts.comments.create('possimus', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('possimus', { 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('dolores', { + const response = await client.posts.comments.list('possimus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..4ec8acc7 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 96d399de..b643af69 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 2316547e..082fc800 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: ['t'] }, + filter: { tags: ['nihxkmrfurjpiozstrsairr'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ipsum'); + const responsePromise = client.smartLinks.listClicks('unde'); 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( - 'ipsum', + 'unde', { 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('reiciendis'); + const responsePromise = client.smartLinks.listConversions('omnis'); 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( - 'reiciendis', + 'omnis', { 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('voluptas'); + const responsePromise = client.smartLinks.listFans('fugiat'); 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( - 'voluptas', + 'fugiat', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('quidem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'quidem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); + const responsePromise = client.smartLinks.retrieveCohortArps('cupiditate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'cupiditate', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ex'); + const responsePromise = client.smartLinks.retrieveStats('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ex', + 'eum', { 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 5e329109..7b78250e 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: 'dnuxhldwbkqntje', tags: ['zznqzwcsxzfxipmfjxzzxc'] }, + filter: { search: 'fkpbegypah', tags: ['bkajfegjimmnust'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bpluxnkagann', tags: ['srbjlktgtkgjclghsfoizco'] }, + filter: { search: 'bmgutgzlf', tags: ['tzrcxuyuovuoycwurgoeicjap'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zq', - tags: ['tflnwhj'], + include_smart_links: false, + search: 'alblvxba', + tags: ['smcinw'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tchrjxct', - tags: ['vvwbukz'], + search: 'teevhjrroqsjva', + tags: ['bylfzbdjgwnz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1b9f36a6..46e853d9 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('quibusdam', { + 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('quibusdam', { + 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('quibusdam', { + 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('quibusdam', { + 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 0b707e84..89ed2194 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('excepturi', { 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('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('consequuntur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quam', { + const response = await client.trackingLinks.getCohortArps('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dicta', { 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; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dicta', { + 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 f28ba205..de1e5282 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptates', { 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('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sint', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sint', { + const response = await client.trialLinks.listSubscribers('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('blanditiis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('in', { + const response = await client.trialLinks.retrieveCohortArps('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('dicta', { 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 d2e8699e..be87e64b 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: 'nybwrooeeqypmzfxy' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'azxovsnngilndjcrsufxawqft', + }); 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: 'nybwrooeeqypmzfxy' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'azxovsnngilndjcrsufxawqft', + }); }); // Mock server tests are disabled From 005cae94d28d256cd957ef3814b8cf780465977c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 00:26:50 +0000 Subject: [PATCH 272/309] 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 | 16 +++++++----- 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 +++++++------- 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 +++--- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 106 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 203bf1e1..049dd015 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cd410c8d2420626ba2a6fae9c77ff5cc15006015a1dbe93b7a1406826d91eb1d.yml -openapi_spec_hash: a476e19b411572cc5fee1fa461d9e9ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4161f3ddb4165b96921294441e3faf5580bec5db815160a954f0246fd1ef4e7d.yml +openapi_spec_hash: 8d26aa16610a2bd828b44717c69963d8 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 88da1ab7..6bb6558e 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('sunt'); + * 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 983ec14b..59e1dffc 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('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021bb..a9b53c10 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', + * '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( - * 'aut', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7b1c22c5..36ae6c40 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( - * 'possimus', + * 'repellat', * { * 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( - * 'possimus', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 c9a094cf..41feb4c0 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 465284ea..0d529cae 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('unde'); + * const response = await client.smartLinks.listClicks( + * 'veniam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'omnis', + * 'architecto', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugiat'); + * const response = await client.smartLinks.listFans( + * 'officiis', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quidem', + * 'nihil', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('cupiditate'); + * await client.smartLinks.retrieveCohortArps('est'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eum', + * 'pariatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..3a0bb8a1 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', + * 'odit', * { * 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('odit', { * 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 b0c6d5d7..a41757ae 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( - * 'excepturi', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'excepturi', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('consequuntur', { + * await client.trackingLinks.getCohortArps('repudiandae', { * 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 58892504..26571bbb 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( - * 'voluptates', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptates', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quaerat', + * 'a', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('blanditiis', { + * await client.trialLinks.retrieveCohortArps('quo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dicta', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b1ee9013..4a63bd02 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: 'azxovsnngilndjcrsufxawqft' }, + * { name: 'cnejtznretujepeqfwvp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 26b92210..5756d5ab 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('sunt'); + 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 d6ad0479..b3552e9e 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: 'quia', + auth_id: 'saepe', auth_type: 'email_password', - cookies: 'et', + cookies: 'neque', customProxy: { host: 'proxy.example.com', - password: '1g?5Ss,', + password: ' { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 086a44ab..338c9dac 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('qui', { 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('qui', { 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 7b876bd9..130dc742 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('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('aut', { + 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('aut', { + 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('aut', { + const response = await client.media.vault.lists.media.remove('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index fada9872..0144bc2d 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('possimus', { + const responsePromise = client.posts.comments.create('repellat', { 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('possimus', { + const response = await client.posts.comments.create('repellat', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('repellat', { 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('possimus', { + const response = await client.posts.comments.list('repellat', { 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 4ec8acc7..8e5b0566 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 b643af69..c1510622 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 6b1dc2fd..d13ad1ce 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 082fc800..c3e9cf5c 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: ['nihxkmrfurjpiozstrsairr'] }, + filter: { tags: ['z'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('unde'); + const responsePromise = client.smartLinks.listClicks('veniam'); 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( - 'unde', + 'veniam', { 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('omnis'); + const responsePromise = client.smartLinks.listConversions('architecto'); 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( - 'omnis', + 'architecto', { 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('fugiat'); + const responsePromise = client.smartLinks.listFans('officiis'); 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( - 'fugiat', + 'officiis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quidem'); + const responsePromise = client.smartLinks.listSpenders('nihil'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quidem', + 'nihil', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('cupiditate'); + const responsePromise = client.smartLinks.retrieveCohortArps('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'cupiditate', + 'est', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eum'); + const responsePromise = client.smartLinks.retrieveStats('pariatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'eum', + 'pariatur', { 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 7b78250e..bf529407 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: 'fkpbegypah', tags: ['bkajfegjimmnust'] }, + filter: { search: 'zfqimpyisxjuxoclgfj', tags: ['dmquj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bmgutgzlf', tags: ['tzrcxuyuovuoycwurgoeicjap'] }, + filter: { search: 'yhyemy', tags: ['gpvmrmjohigxzfq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'alblvxba', - tags: ['smcinw'], + search: 'ahhxswvnftvwlqhee', + tags: ['qrzgqzpefcfjomunllhfbp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'teevhjrroqsjva', - tags: ['bylfzbdjgwnz'], + search: 'lqryfhschpaob', + tags: ['hrunflvn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..a87dbbb9 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('odit', { 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('odit', { 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('odit', { 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('odit', { 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 89ed2194..51d2adfb 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('excepturi', { 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('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('excepturi', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('excepturi', { 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('consequuntur', { + const responsePromise = client.trackingLinks.getCohortArps('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('consequuntur', { + const response = await client.trackingLinks.getCohortArps('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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; @@ -134,7 +134,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 de1e5282..7f028e57 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('accusantium', { 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('a', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('a', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('blanditiis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('blanditiis', { + const response = await client.trialLinks.retrieveCohortArps('quo', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dicta', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dicta', { + 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 be87e64b..6359e49d 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: 'azxovsnngilndjcrsufxawqft', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cnejtznretujepeqfwvp' }); 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: 'azxovsnngilndjcrsufxawqft', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cnejtznretujepeqfwvp' }); }); // Mock server tests are disabled From e2dbf119a2686aa6eb23895b1b978cc17eb3d29a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 01:12:39 +0000 Subject: [PATCH 273/309] 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 | 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 | 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 +-- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 115 insertions(+), 123 deletions(-) diff --git a/.stats.yml b/.stats.yml index 049dd015..c8919379 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4161f3ddb4165b96921294441e3faf5580bec5db815160a954f0246fd1ef4e7d.yml -openapi_spec_hash: 8d26aa16610a2bd828b44717c69963d8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-756f9352bc31d2c500714acca3510be9e1c85b17d6d6f9227fd66cda4182556a.yml +openapi_spec_hash: 9bceb2fc55b3736c2903a87fa22c24ac config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..43007427 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('quasi'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 59e1dffc..3e98cfef 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'quisquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a9b53c10..c4d27efa 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', + * 'aliquam', * { 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', + * 'aliquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 36ae6c40..b417287b 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( - * 'repellat', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('illo', { + * 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( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('illo', { + * 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..2b04cbb2 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 0d529cae..7529d103 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( - * 'veniam', - * ); + * const response = await client.smartLinks.listClicks('at'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'architecto', + * 'non', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'officiis', + * 'voluptatem', * ); * ``` */ @@ -131,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'nihil', - * ); + * const response = await client.smartLinks.listSpenders('id'); * ``` */ listSpenders( @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('est'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'pariatur', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3a0bb8a1..ae4161ef 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( - * 'odit', + * 'dicta', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('odit', { + * await client.stories.highlights.removeStory('dicta', { * 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 a41757ae..7f323b1f 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', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repudiandae', { + * await client.trackingLinks.getCohortArps('facilis', { * 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( + * 'beatae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 26571bbb..0d65c27d 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( - * 'accusantium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('esse', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'accusantium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('esse', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'a', + * 'sunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quo', { + * await client.trialLinks.retrieveCohortArps('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4a63bd02..9cf9784b 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: 'cnejtznretujepeqfwvp' }, + * { name: 'kfqxyhxiiwynetpjidr' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..6650891a 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('quasi'); 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 b3552e9e..2922e23a 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_type: 'email_password', - cookies: 'neque', + auth_id: 'sed', + auth_type: 'mobile_app', + cookies: 'velit', customProxy: { host: 'proxy.example.com', - password: ' { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('qui', { + const responsePromise = client.engagement.messages.getMessageBuyers('quisquam', { 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('qui', { + const response = await client.engagement.messages.getMessageBuyers('quisquam', { 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 130dc742..2d516138 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('aliquam', { 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('aliquam', { 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('aliquam', { 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('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..694c42e4 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 0144bc2d..585717a3 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('repellat', { + const responsePromise = client.posts.comments.create('illo', { 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('repellat', { + const response = await client.posts.comments.create('illo', { 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('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('illo', { 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('repellat', { + const response = await client.posts.comments.list('illo', { 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c3e9cf5c..f6e123a7 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: ['z'] }, + filter: { tags: ['zuptrqjqgbc'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('veniam'); + const responsePromise = client.smartLinks.listClicks('at'); 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( - 'veniam', + 'at', { 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('architecto'); + const responsePromise = client.smartLinks.listConversions('non'); 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( - 'architecto', + 'non', { 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('officiis'); + const responsePromise = client.smartLinks.listFans('voluptatem'); 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( - 'officiis', + 'voluptatem', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nihil'); + const responsePromise = client.smartLinks.listSpenders('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'nihil', + 'id', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('est'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'est', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('pariatur'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'pariatur', + '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 bf529407..40751bc6 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: 'zfqimpyisxjuxoclgfj', tags: ['dmquj'] }, + filter: { search: 'bbrqhbeeuvoitfdnyhnss', tags: ['oexrthtzctoffsluev'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yhyemy', tags: ['gpvmrmjohigxzfq'] }, + filter: { search: 'fnoipzdaua', tags: ['ewlemuj'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ahhxswvnftvwlqhee', - tags: ['qrzgqzpefcfjomunllhfbp'], + include_smart_links: true, + search: 'apu', + tags: ['oar'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lqryfhschpaob', - tags: ['hrunflvn'], + search: 'surdzuoghqqeulyjd', + tags: ['nxbsljg'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a87dbbb9..2e35cc8c 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('odit', { + const responsePromise = client.stories.highlights.addStory('dicta', { 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('odit', { + const response = await client.stories.highlights.addStory('dicta', { 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('odit', { + const responsePromise = client.stories.highlights.removeStory('dicta', { 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('odit', { + const response = await client.stories.highlights.removeStory('dicta', { 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 51d2adfb..18ef3e0b 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('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('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('repudiandae', { + const responsePromise = client.trackingLinks.getCohortArps('facilis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('repudiandae', { + const response = await client.trackingLinks.getCohortArps('facilis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,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('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 7f028e57..13c68800 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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('esse', { 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('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('accusantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('a', { + const responsePromise = client.trialLinks.listSubscribers('sunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('a', { + const response = await client.trialLinks.listSubscribers('sunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quo', { + const response = await client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,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('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,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('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 6359e49d..7c8f0e32 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: 'cnejtznretujepeqfwvp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kfqxyhxiiwynetpjidr' }); 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: 'cnejtznretujepeqfwvp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kfqxyhxiiwynetpjidr' }); }); // Mock server tests are disabled From f9a031ebc6dca5941112d5fb26aadea0322d8596 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 02:12:39 +0000 Subject: [PATCH 274/309] 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 | 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 +++--- tests/api-resources/queue.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 | 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 +-- 28 files changed, 120 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8919379..cf723ae9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-756f9352bc31d2c500714acca3510be9e1c85b17d6d6f9227fd66cda4182556a.yml -openapi_spec_hash: 9bceb2fc55b3736c2903a87fa22c24ac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49a3cd4822ac90c739f7fece82aea680518f6f22f656ce5bcad5770a0233de8.yml +openapi_spec_hash: 997c6593cc8b930ef49ebc806e9a8f20 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 43007427..a90889c0 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('quasi'); + * const response = await client.accounts.disconnect('enim'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3e98cfef..59e1dffc 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( - * 'quisquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c4d27efa..84719ef3 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( - * 'aliquam', + * 'perspiciatis', * { 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( - * 'aliquam', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b417287b..b63ecbcc 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('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'inventore', + * { + * 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('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'inventore', + * { 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 09d6973d..e20f70d1 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 2b04cbb2..c9a094cf 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 7529d103..7253c348 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('at'); + * const response = await client.smartLinks.listClicks('a'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'non', + * 'a', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptatem', - * ); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -129,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('id'); + * const response = await client.smartLinks.listSpenders( + * 'nobis', + * ); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'nostrum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ae4161ef..46c335d7 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( - * 'dicta', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dicta', { + * await client.stories.highlights.removeStory('sit', { * 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 7f323b1f..aa67f57b 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', + * 'in', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ducimus', + * 'in', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('facilis', { + * 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( - * 'beatae', + * 'ratione', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0d65c27d..8f0c8f19 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('esse', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'minus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('esse', { + * const trialLink = await client.trialLinks.delete('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sunt', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sunt', { + * await client.trialLinks.retrieveCohortArps('voluptate', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eos', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9cf9784b..d333205f 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: 'kfqxyhxiiwynetpjidr' }, + * { name: 'krevowlaorierrdqgn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6650891a..25d55f3d 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('quasi'); + const responsePromise = client.accounts.disconnect('enim'); 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 2922e23a..23f7d19a 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,21 +62,21 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'sed', - auth_type: 'mobile_app', - cookies: 'velit', + auth_id: 'eaque', + auth_type: 'email_password', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: '0colAc.A^oY$?g/[tvQ%', + password: "^W''6.K?[0[", port: 8080, - username: 'qui', + username: 'quia', }, - email: 'sam.hill@example.org', - force_connect: true, - name: 'laborum', - password: 'Lm]BX%W}Y|', - proxyCountry: 'uk', - user_agent: 'optio', + email: 'scarlett.greenholt@example.org', + force_connect: false, + name: 'occaecati', + password: 'g+Pxe!4', + proxyCountry: 'gb', + user_agent: 'sint', 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 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index e7bee51e..338c9dac 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('quisquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('qui', { 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('quisquam', { + const response = await client.engagement.messages.getMessageBuyers('qui', { 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 2d516138..5d864cbe 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('aliquam', { + const responsePromise = client.media.vault.lists.media.add('perspiciatis', { 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('aliquam', { + const response = await client.media.vault.lists.media.add('perspiciatis', { 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('aliquam', { + const responsePromise = client.media.vault.lists.media.remove('perspiciatis', { 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('aliquam', { + const response = await client.media.vault.lists.media.remove('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e769f5c8 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 585717a3..c5136422 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('illo', { + 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('illo', { + 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('illo', { 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('illo', { + const response = await client.posts.comments.list('inventore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 e2edc676..fd74b68f 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 96d399de..b643af69 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 f6e123a7..49e2ea1a 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: ['zuptrqjqgbc'] }, + filter: { tags: ['kvdtsytjpdhkohztv'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('at'); + const responsePromise = client.smartLinks.listClicks('a'); 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( - 'at', + 'a', { 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('non'); + const responsePromise = client.smartLinks.listConversions('a'); 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( - 'non', + 'a', { 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('voluptatem'); + 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( - 'voluptatem', + 'et', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('id'); + const responsePromise = client.smartLinks.listSpenders('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'id', + 'nobis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('nostrum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'nostrum', { 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 40751bc6..8d0e5858 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: 'bbrqhbeeuvoitfdnyhnss', tags: ['oexrthtzctoffsluev'] }, + filter: { search: 'ghwfrivmbuyejmpa', tags: ['uhggldbhqnljfhdxbz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fnoipzdaua', tags: ['ewlemuj'] }, + filter: { search: 'pl', tags: ['qreawmkdjhgfpqp'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'apu', - tags: ['oar'], + include_smart_links: false, + search: 'lzkn', + tags: ['ioxatu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'surdzuoghqqeulyjd', - tags: ['nxbsljg'], + include_smart_links: false, + search: 'zxrbthvqqifcyqqnaimjmfdra', + tags: ['heiiqthkvgfvhqaidokkzuuq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2e35cc8c..7eb3d1f5 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('dicta', { + const responsePromise = client.stories.highlights.addStory('sit', { 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('dicta', { + const response = await client.stories.highlights.addStory('sit', { 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('dicta', { + const responsePromise = client.stories.highlights.removeStory('sit', { 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('dicta', { + const response = await client.stories.highlights.removeStory('sit', { 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 18ef3e0b..9f0fcaf1 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('in', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('facilis', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('facilis', { + const response = await client.trackingLinks.getCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ 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('ratione', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('ratione', { 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 13c68800..bd8d9767 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('minus', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sunt', { + const responsePromise = client.trialLinks.listSubscribers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sunt', { + const response = await client.trialLinks.listSubscribers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptate', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sunt', { + const response = await client.trialLinks.retrieveCohortArps('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('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 7c8f0e32..69136383 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: 'kfqxyhxiiwynetpjidr' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'krevowlaorierrdqgn' }); 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: 'kfqxyhxiiwynetpjidr' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'krevowlaorierrdqgn' }); }); // Mock server tests are disabled From c2841f3ce1e2abfa30b7e781222c63b713693606 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 05:12:40 +0000 Subject: [PATCH 275/309] 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 | 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/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 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 +-- 30 files changed, 111 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index cf723ae9..a5e6d2e0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d49a3cd4822ac90c739f7fece82aea680518f6f22f656ce5bcad5770a0233de8.yml -openapi_spec_hash: 997c6593cc8b930ef49ebc806e9a8f20 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-24dba39012bc0cb5b65de98233c8a493327487f2434125ab294dd2d4c0f4c9fe.yml +openapi_spec_hash: ab318184b73f25c0e55ebc6de03310eb config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a90889c0..6c0bc8d9 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('enim'); + * const response = await client.accounts.disconnect('fugit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 59e1dffc..a2214060 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'consequuntur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 84719ef3..18403fb9 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( - * 'perspiciatis', + * 'numquam', * { 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( - * 'perspiciatis', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b63ecbcc..a0f5e087 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( - * 'inventore', + * 'doloremque', * { * 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( - * 'inventore', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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 c9a094cf..a84ff073 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 7253c348..6f9626cd 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('a'); + * const response = await client.smartLinks.listClicks('ut'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'a', + * 'rerum', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('sint'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nobis', + * 'fugit', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('ipsa'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nostrum', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 46c335d7..de557f5a 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( - * 'sit', + * 'fugit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sit', { + * await client.stories.highlights.removeStory('fugit', { * 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 aa67f57b..158a4ea9 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( - * 'in', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'in', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('est', { + * await client.trackingLinks.getCohortArps('sapiente', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'ratione', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8f0c8f19..48e07ef5 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( - * 'minus', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('minus', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'consectetur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatem', + * 'asperiores', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptate', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sit', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d333205f..33566638 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: 'krevowlaorierrdqgn' }, + * { name: 'lucetcjfyp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 25d55f3d..c8db5da1 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('enim'); + const responsePromise = client.accounts.disconnect('fugit'); 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 23f7d19a..150f99a9 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: 'eaque', - auth_type: 'email_password', - cookies: 'est', + auth_id: 'rerum', + auth_type: 'mobile_app', + cookies: 'magnam', customProxy: { host: 'proxy.example.com', - password: "^W''6.K?[0[", + password: "'2|j|15 { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 338c9dac..45e37efd 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('qui', { + const responsePromise = client.engagement.messages.getMessageBuyers('consequuntur', { 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('qui', { + const response = await client.engagement.messages.getMessageBuyers('consequuntur', { 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 5d864cbe..6f43b30e 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.add('numquam', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.add('numquam', { 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.remove('numquam', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.remove('numquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c8..14dcb2e9 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 c5136422..f9ab1f14 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('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('inventore', { + 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('inventore', { 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('inventore', { + 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 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..8e5b0566 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 b643af69..02883e18 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 49e2ea1a..309fe6ac 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: ['kvdtsytjpdhkohztv'] }, + filter: { tags: ['hbpkupiokytqycalt'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('a'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'a', + 'ut', { 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('a'); + const responsePromise = client.smartLinks.listConversions('rerum'); 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( - 'a', + 'rerum', { 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('sint'); 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', + 'sint', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nobis'); + const responsePromise = client.smartLinks.listSpenders('fugit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'fugit', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'ipsa', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nostrum'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'nostrum', + '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 8d0e5858..895ab428 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: 'ghwfrivmbuyejmpa', tags: ['uhggldbhqnljfhdxbz'] }, + filter: { search: 'ulrtjrfibd', tags: ['yxikdmkvzyudclgepltj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pl', tags: ['qreawmkdjhgfpqp'] }, + filter: { search: 'tbclucqpcwkxcqvekmfbzvp', tags: ['qh'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lzkn', - tags: ['ioxatu'], + include_smart_links: true, + search: 'satsvesibdsrqydvpp', + tags: ['drfs'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zxrbthvqqifcyqqnaimjmfdra', - tags: ['heiiqthkvgfvhqaidokkzuuq'], + search: 'u', + tags: ['wcqxvumimtzerppje'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7eb3d1f5..594163ab 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('sit', { + const responsePromise = client.stories.highlights.addStory('fugit', { 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('sit', { + const response = await client.stories.highlights.addStory('fugit', { 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('sit', { + const responsePromise = client.stories.highlights.removeStory('fugit', { 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('sit', { + const response = await client.stories.highlights.removeStory('fugit', { 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 9f0fcaf1..80802875 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('in', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('in', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('in', { 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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('sapiente', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ratione', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ratione', { + const response = await client.trackingLinks.getStats('numquam', { 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 bd8d9767..639d9d2d 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('consectetur', { 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptatem', { + const responsePromise = client.trialLinks.listSubscribers('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptatem', { + const response = await client.trialLinks.listSubscribers('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptate', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptate', { + const response = await client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,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('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('adipisci', { 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 69136383..6d14744d 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: 'krevowlaorierrdqgn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lucetcjfyp' }); 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: 'krevowlaorierrdqgn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lucetcjfyp' }); }); // Mock server tests are disabled From 0b6215cc98b68b7f505624c951cb03f99b8257ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 06:14:39 +0000 Subject: [PATCH 276/309] 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 | 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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 107 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index a5e6d2e0..93699510 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-24dba39012bc0cb5b65de98233c8a493327487f2434125ab294dd2d4c0f4c9fe.yml -openapi_spec_hash: ab318184b73f25c0e55ebc6de03310eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8a8634913c414a024c0708dad90fa94d609cd8e70c4ac39d3c519dc655ba49d7.yml +openapi_spec_hash: 24e6975456c62685b0a9e5458f46cc7a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6c0bc8d9..c9346c8f 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('fugit'); + * 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 a2214060..69754db2 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( - * 'consequuntur', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 18403fb9..b4f8cba9 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( - * 'numquam', + * 'vel', * { 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( - * 'numquam', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a0f5e087..432dff9f 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', + * 'reiciendis', * { * 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', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..a9767818 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 a84ff073..41feb4c0 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: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 6f9626cd..39f9fd43 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( + * 'mollitia', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'quibusdam', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sint'); + * const response = await client.smartLinks.listFans( + * 'corrupti', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'fugit', + * 'aut', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ipsa'); + * await client.smartLinks.retrieveCohortArps('cum'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'iure', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index de557f5a..41a56c13 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( - * 'fugit', + * 'doloribus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('fugit', { + * await client.stories.highlights.removeStory('doloribus', { * 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 158a4ea9..f27465ca 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', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'asperiores', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sapiente', { + * await client.trackingLinks.getCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'numquam', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 48e07ef5..c291d34c 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( - * 'consectetur', + * 'quibusdam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'consectetur', + * 'quibusdam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'asperiores', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'adipisci', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 33566638..b7a3c127 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: 'lucetcjfyp' }, + * { name: 'wgdfwg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c8db5da1..7f7f9364 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('fugit'); + 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 150f99a9..315b463b 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: 'rerum', + auth_id: 'dignissimos', auth_type: 'mobile_app', - cookies: 'magnam', + cookies: 'veritatis', customProxy: { host: 'proxy.example.com', - password: "'2|j|15 { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 45e37efd..b34ff1b6 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('consequuntur', { + const responsePromise = client.engagement.messages.getMessageBuyers('reprehenderit', { 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('consequuntur', { + const response = await client.engagement.messages.getMessageBuyers('reprehenderit', { 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 6f43b30e..b27b7737 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('numquam', { + const responsePromise = client.media.vault.lists.media.add('vel', { 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('numquam', { + const response = await client.media.vault.lists.media.add('vel', { 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('numquam', { + const responsePromise = client.media.vault.lists.media.remove('vel', { 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('numquam', { + const response = await client.media.vault.lists.media.remove('vel', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..25333899 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 f9ab1f14..15f4e8e7 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('reiciendis', { 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('reiciendis', { 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('reiciendis', { 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('reiciendis', { 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 8e5b0566..4ec8acc7 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 02883e18..c1510622 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: 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: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 309fe6ac..54c29508 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: ['hbpkupiokytqycalt'] }, + filter: { tags: ['nrzghshknf'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('mollitia'); 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( - 'ut', + 'mollitia', { 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('rerum'); + const responsePromise = client.smartLinks.listConversions('quibusdam'); 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( - 'rerum', + 'quibusdam', { 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('sint'); + const responsePromise = client.smartLinks.listFans('corrupti'); 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( - 'sint', + 'corrupti', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('fugit'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'fugit', + 'aut', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ipsa'); + const responsePromise = client.smartLinks.retrieveCohortArps('cum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsa', + 'cum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('iure'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'iure', { 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 895ab428..ef082f14 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: 'ulrtjrfibd', tags: ['yxikdmkvzyudclgepltj'] }, + filter: { search: 'pynmkhmqcowaorifxff', tags: ['pekyjuvyx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tbclucqpcwkxcqvekmfbzvp', tags: ['qh'] }, + filter: { search: 'nnhbevsfoikhoojpbwmthno', tags: ['qertvmpsikzs'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'satsvesibdsrqydvpp', - tags: ['drfs'], + search: 'xnuwfjyvshrxzwukprvwqtdw', + tags: ['n'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'u', - tags: ['wcqxvumimtzerppje'], + include_smart_links: true, + search: 'szonikwzrjmdcp', + tags: ['rfnlrkxarf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 594163ab..df512f0b 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('fugit', { + const responsePromise = client.stories.highlights.addStory('doloribus', { 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('fugit', { + const response = await client.stories.highlights.addStory('doloribus', { 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('fugit', { + const responsePromise = client.stories.highlights.removeStory('doloribus', { 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('fugit', { + const response = await client.stories.highlights.removeStory('doloribus', { 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 80802875..a5d24da1 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('esse', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sapiente', { + const responsePromise = client.trackingLinks.getCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('sapiente', { + const response = await client.trackingLinks.getCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('numquam', { + const response = await client.trackingLinks.getStats('magnam', { 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 639d9d2d..cab9723a 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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quibusdam', { 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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('asperiores', { + const responsePromise = client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('asperiores', { + const response = await client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { 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; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('adipisci', { + const response = await client.trialLinks.retrieveStats('rerum', { 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 6d14744d..60475498 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: 'lucetcjfyp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wgdfwg' }); 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: 'lucetcjfyp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wgdfwg' }); }); // Mock server tests are disabled From 970f3f4d95b07dee453b6fa18a18cb5757f87d4e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 07:12:39 +0000 Subject: [PATCH 277/309] 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 | 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 +++--- 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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 103 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 93699510..0663587a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8a8634913c414a024c0708dad90fa94d609cd8e70c4ac39d3c519dc655ba49d7.yml -openapi_spec_hash: 24e6975456c62685b0a9e5458f46cc7a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4547d1ea16467987f9394930dd6b160dc7835475b88713dd92ef18e3065f7f83.yml +openapi_spec_hash: cb145fff326ee69616dc4955bdb48c9d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8f..ddc3babb 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( + * 'sapiente', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 69754db2..d3921951 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( - * 'reprehenderit', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b4f8cba9..af9ad358 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( - * 'vel', + * '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( - * 'vel', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 432dff9f..7d1b2d65 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( - * 'reiciendis', + * '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( - * 'reiciendis', - * { 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 a9767818..599a9525 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 41feb4c0..2b04cbb2 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 39f9fd43..17984457 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( - * 'mollitia', + * 'alias', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quibusdam', + * 'in', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'corrupti', - * ); + * const response = await client.smartLinks.listFans('ad'); * ``` */ listFans( @@ -131,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'aut', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('cum'); + * await client.smartLinks.retrieveCohortArps('vitae'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'iure', + * 'porro', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 41a56c13..1247b169 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( - * 'doloribus', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('doloribus', { + * await client.stories.highlights.removeStory('non', { * 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 f27465ca..c24f7c78 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( - * 'esse', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'esse', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * await client.trackingLinks.getCohortArps('inventore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'magnam', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c291d34c..b67440ca 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( - * 'quibusdam', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'quibusdam', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'quam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('velit', { + * await client.trialLinks.retrieveCohortArps('quae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b7a3c127..c2f7ffd4 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: 'wgdfwg' }, + * { name: 'kfdfn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f9364..3657e352 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('sapiente'); 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 315b463b..38aa8b0b 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: 'dignissimos', + auth_id: 'distinctio', auth_type: 'mobile_app', - cookies: 'veritatis', + cookies: 'omnis', customProxy: { host: 'proxy.example.com', - password: '"[jc~:aXZ|#P,if<$', + password: ';. { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('reprehenderit', { + 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('reprehenderit', { + 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 b27b7737..e6c1db3e 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('vel', { + 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('vel', { + 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('vel', { + 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('vel', { + 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 25333899..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 15f4e8e7..03ab8700 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('reiciendis', { + 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('reiciendis', { + 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('reiciendis', { 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('reiciendis', { + 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 ad49ad2e..9bf5999b 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 4ec8acc7..8e5b0566 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 c1510622..96d399de 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 54c29508..623be77b 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: ['nrzghshknf'] }, + filter: { tags: ['mlvbnnefqrg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('mollitia'); + const responsePromise = client.smartLinks.listClicks('alias'); 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( - 'mollitia', + 'alias', { 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('quibusdam'); + const responsePromise = client.smartLinks.listConversions('in'); 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( - 'quibusdam', + 'in', { 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('corrupti'); + const responsePromise = client.smartLinks.listFans('ad'); 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( - 'corrupti', + 'ad', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'et', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('cum'); + const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'cum', + 'vitae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('iure'); + const responsePromise = client.smartLinks.retrieveStats('porro'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'iure', + 'porro', { 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 ef082f14..2a902a71 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: 'pynmkhmqcowaorifxff', tags: ['pekyjuvyx'] }, + filter: { search: 'vdfvko', tags: ['utxmpktaapxzvrphnqxit'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nnhbevsfoikhoojpbwmthno', tags: ['qertvmpsikzs'] }, + filter: { search: 'lhavrhkgnxmklfhv', tags: ['cqrrjnkowsojw'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'xnuwfjyvshrxzwukprvwqtdw', - tags: ['n'], + search: 'gwkfhcbrpw', + tags: ['cwleltkzypsdg'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'szonikwzrjmdcp', - tags: ['rfnlrkxarf'], + search: 'aihvaznpdublsuhskeerf', + tags: ['adcljdugrdxgqfeklqdyjyosk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index df512f0b..12a9c816 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('doloribus', { + const responsePromise = client.stories.highlights.addStory('non', { 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('doloribus', { + const response = await client.stories.highlights.addStory('non', { 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('doloribus', { + const responsePromise = client.stories.highlights.removeStory('non', { 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('doloribus', { + const response = await client.stories.highlights.removeStory('non', { 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 a5d24da1..6a1b7d4c 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('esse', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('esse', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('esse', { 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('dolores', { + const responsePromise = client.trackingLinks.getCohortArps('inventore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,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('inventore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('magnam', { + const response = await client.trackingLinks.getStats('aut', { 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 cab9723a..25739e60 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('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eveniet', { 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('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('quam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('quam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('velit', { - 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; @@ -166,7 +164,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('quae', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('rerum', { + const response = await client.trialLinks.retrieveStats('modi', { 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 60475498..12ee410d 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: 'wgdfwg' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kfdfn' }); 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: 'wgdfwg' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kfdfn' }); }); // Mock server tests are disabled From 3844bbe2ec05baae1dec0c56eb629ac7a5cf90f2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 08:12:40 +0000 Subject: [PATCH 278/309] 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 | 18 +++++++------ src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 6 ++--- 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 +++--- 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 +- .../shared-trial-links.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 | 16 +++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 106 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0663587a..355f06be 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4547d1ea16467987f9394930dd6b160dc7835475b88713dd92ef18e3065f7f83.yml -openapi_spec_hash: cb145fff326ee69616dc4955bdb48c9d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c1d33135116e08ec3b210fdbbffdd0e092fe4e795e59a07b81904070277734a8.yml +openapi_spec_hash: 75fc795d55198b00b2ad3fdd3e49b738 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ddc3babb..78e692a7 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( - * 'sapiente', + * 'tempora', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d3921951..e748261d 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', + * 'soluta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..ee9b874f 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', + * 'suscipit', * { 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', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d1b2d65..d41a403f 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', + * 'labore', * { * 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( + * 'labore', + * { 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 599a9525..a9767818 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 2b04cbb2..c9a094cf 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 17984457..01958967 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( - * 'alias', - * ); + * const response = await client.smartLinks.listClicks('vel'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'in', + * 'ex', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ad'); + * const response = await client.smartLinks.listFans( + * 'consequatur', + * ); * ``` */ listFans( @@ -129,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'commodi', + * ); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('vitae'); + * await client.smartLinks.retrieveCohortArps('dolores'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'porro', + * 'tempore', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 1247b169..cd1270bc 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( - * 'non', + * 'cum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('non', { + * await client.stories.highlights.removeStory('cum', { * 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 c24f7c78..5ba38f42 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', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'cupiditate', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('inventore', { + * await client.trackingLinks.getCohortArps('cum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b67440ca..3829fe28 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( - * 'eveniet', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'eveniet', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quam', + * 'est', * { * 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('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'modi', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c2f7ffd4..e5b725ba 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: 'kfdfn' }, + * { name: 'saqguaffcklfhzdh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3657e352..724aa7e6 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('sapiente'); + const responsePromise = client.accounts.disconnect('tempora'); 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 38aa8b0b..8e66455c 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: 'distinctio', - auth_type: 'mobile_app', - cookies: 'omnis', + auth_id: 'nam', + auth_type: 'email_password', + cookies: 'distinctio', customProxy: { host: 'proxy.example.com', - password: ';.y;\'2v`>6.{|"', proxyCountry: 'uk', - user_agent: 'eos', - xbc: 'nisi', + user_agent: 'repellat', + xbc: 'rerum', }, { 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 51602476..1a37c80b 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('soluta', { 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('soluta', { 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 e6c1db3e..627236d0 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('suscipit', { 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('suscipit', { 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('suscipit', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 03ab8700..382fcc0c 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('labore', { 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('labore', { 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('labore', { 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('labore', { 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 8e5b0566..4ec8acc7 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 96d399de..b643af69 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 623be77b..abc451a9 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: ['mlvbnnefqrg'] }, + filter: { tags: ['xamrvlxqsbbpu'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('alias'); + const responsePromise = client.smartLinks.listClicks('vel'); 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( - 'alias', + 'vel', { 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('in'); + const responsePromise = client.smartLinks.listConversions('ex'); 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( - 'in', + 'ex', { 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('ad'); + const responsePromise = client.smartLinks.listFans('consequatur'); 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( - 'ad', + 'consequatur', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('commodi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'commodi', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'dolores', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('porro'); + const responsePromise = client.smartLinks.retrieveStats('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'porro', + 'tempore', { 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 2a902a71..8ec69d54 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: 'vdfvko', tags: ['utxmpktaapxzvrphnqxit'] }, + filter: { search: 'sgkmrkqyyeoqtfq', tags: ['uqcqcyughbvdvs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lhavrhkgnxmklfhv', tags: ['cqrrjnkowsojw'] }, + filter: { search: 'qam', tags: ['rydlnlneszpyjcarhag'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'gwkfhcbrpw', - tags: ['cwleltkzypsdg'], + search: 'tr', + tags: ['mfc'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'aihvaznpdublsuhskeerf', - tags: ['adcljdugrdxgqfeklqdyjyosk'], + include_smart_links: false, + search: 'iswliqnlxibabuxom', + tags: ['fvwcyzbrduumixmwzjzyxa'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 12a9c816..2e8a335d 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('non', { + const responsePromise = client.stories.highlights.addStory('cum', { 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('non', { + const response = await client.stories.highlights.addStory('cum', { 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('non', { + const responsePromise = client.stories.highlights.removeStory('cum', { 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('non', { + const response = await client.stories.highlights.removeStory('cum', { 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 6a1b7d4c..e86bb707 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('aut', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('inventore', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('cum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('inventore', { + const response = await client.trackingLinks.getCohortArps('cum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_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 25739e60..b64a7dfb 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('suscipit', { 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('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eveniet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quam', { + const responsePromise = client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quam', { + const response = await client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('ea', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('modi', { 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; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('modi', { + 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 12ee410d..f036137c 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: 'kfdfn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'saqguaffcklfhzdh' }); 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: 'kfdfn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'saqguaffcklfhzdh' }); }); // Mock server tests are disabled From 61713fa30b530675bc926f819d2b9d2ed3e2b62b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 09:12:39 +0000 Subject: [PATCH 279/309] 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 | 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 | 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 +-- .../shared-trial-links.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 +-- 29 files changed, 112 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 355f06be..fa367ad5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c1d33135116e08ec3b210fdbbffdd0e092fe4e795e59a07b81904070277734a8.yml -openapi_spec_hash: 75fc795d55198b00b2ad3fdd3e49b738 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb70cf652fc602d4a06860ab504d285242cdb3fddf244bb0deff71263cc0fde0.yml +openapi_spec_hash: 92b18a71a228a2b555648212bd27889f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 78e692a7..ca6cda03 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( - * 'tempora', - * ); + * 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 e748261d..82720bf3 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( - * 'soluta', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ee9b874f..2797b69c 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( - * 'suscipit', + * 'earum', * { 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( - * 'suscipit', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index d41a403f..295278c6 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( - * 'labore', + * 'dolores', * { * 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( - * 'labore', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a9767818..599a9525 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 c9a094cf..41feb4c0 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 01958967..43102db3 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('vel'); + * const response = await client.smartLinks.listClicks( + * 'quidem', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ex', + * 'quasi', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequatur', - * ); + * const response = await client.smartLinks.listFans('non'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'commodi', + * 'magni', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolores'); + * await client.smartLinks.retrieveCohortArps('perferendis'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'tempore', + * 'nisi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cd1270bc..651e8fba 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( - * 'cum', + * '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('cum', { + * 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 5ba38f42..a7a92600 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( - * 'aut', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'aut', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('cum', { + * await client.trackingLinks.getCohortArps('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aut', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3829fe28..878365e8 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( - * 'suscipit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('quis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'suscipit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('quis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ea', { + * await client.trialLinks.retrieveCohortArps('eligendi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'doloremque', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e5b725ba..6aa46ab1 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: 'saqguaffcklfhzdh' }, + * { name: 'cjzxbjdmqotqtnpgbji' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 724aa7e6..8da98ca8 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('tempora'); + 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 8e66455c..c8531313 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: 'nam', - auth_type: 'email_password', - cookies: 'distinctio', + auth_id: 'qui', + auth_type: 'mobile_app', + cookies: 'consequuntur', customProxy: { host: 'proxy.example.com', - password: 'Cy;\'2v`>6.{|"', - proxyCountry: 'uk', - user_agent: 'repellat', - xbc: 'rerum', + name: 'repudiandae', + password: '"!nSQ1z>_boCTlwV,_', + proxyCountry: 'us', + user_agent: 'adipisci', + xbc: 'aliquid', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1a37c80b..41ed5ddc 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('soluta', { + const responsePromise = client.engagement.messages.getMessageBuyers('fuga', { 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('soluta', { + const response = await client.engagement.messages.getMessageBuyers('fuga', { 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 627236d0..9776529d 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('suscipit', { + const responsePromise = client.media.vault.lists.media.add('earum', { 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('suscipit', { + const response = await client.media.vault.lists.media.add('earum', { 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('suscipit', { + const responsePromise = client.media.vault.lists.media.remove('earum', { 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('suscipit', { + const response = await client.media.vault.lists.media.remove('earum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..7b042946 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: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 382fcc0c..91e5fe0e 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('labore', { + const responsePromise = client.posts.comments.create('dolores', { 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('labore', { + const response = await client.posts.comments.create('dolores', { 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('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolores', { 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('labore', { + const response = await client.posts.comments.list('dolores', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 4ec8acc7..8e5b0566 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 b643af69..c1510622 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index abc451a9..0d03f57a 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: ['xamrvlxqsbbpu'] }, + filter: { tags: ['fm'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('vel'); + const responsePromise = client.smartLinks.listClicks('quidem'); 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( - 'vel', + 'quidem', { 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('ex'); + const responsePromise = client.smartLinks.listConversions('quasi'); 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( - 'ex', + 'quasi', { 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('consequatur'); + const responsePromise = client.smartLinks.listFans('non'); 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( - 'consequatur', + 'non', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('commodi'); + const responsePromise = client.smartLinks.listSpenders('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'commodi', + 'magni', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolores'); + const responsePromise = client.smartLinks.retrieveCohortArps('perferendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'dolores', + 'perferendis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('tempore'); + const responsePromise = client.smartLinks.retrieveStats('nisi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'nisi', { 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 8ec69d54..b6f7eea7 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: 'sgkmrkqyyeoqtfq', tags: ['uqcqcyughbvdvs'] }, + filter: { search: 'arli', tags: ['bwynlnhskytcih'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qam', tags: ['rydlnlneszpyjcarhag'] }, + filter: { search: 'tqgrsmivvwioiyz', tags: ['nreucafusdhxfc'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'tr', - tags: ['mfc'], + include_smart_links: false, + search: 'fdkbvmvhlcbt', + tags: ['enhwx'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'iswliqnlxibabuxom', - tags: ['fvwcyzbrduumixmwzjzyxa'], + include_smart_links: true, + search: 'fovcbktlznv', + tags: ['ciwnzfobepnmjdw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2e8a335d..46e853d9 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('cum', { + 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('cum', { + 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('cum', { + 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('cum', { + 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 e86bb707..fa5a2a1a 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('aut', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('aut', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('aut', { 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('cum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('cum', { + const response = await client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aut', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aut', { + 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 b64a7dfb..fd7f5249 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quis', { 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('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('suscipit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('eligendi', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ea', { + const response = await client.trialLinks.retrieveCohortArps('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('doloremque', { + const responsePromise = client.trialLinks.retrieveStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -188,7 +190,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('consequatur', { 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 f036137c..757cbf18 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: 'saqguaffcklfhzdh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cjzxbjdmqotqtnpgbji' }); 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: 'saqguaffcklfhzdh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cjzxbjdmqotqtnpgbji' }); }); // Mock server tests are disabled From e1231449cce515de8d5492124cfa72979810b298 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 10:12:42 +0000 Subject: [PATCH 280/309] 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/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 | 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/queue.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 | 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, 104 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index fa367ad5..5dab440c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fb70cf652fc602d4a06860ab504d285242cdb3fddf244bb0deff71263cc0fde0.yml -openapi_spec_hash: 92b18a71a228a2b555648212bd27889f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed1a08586492e95a29be4a3951f1dc245a71fcb713eb2df2f7987557360f3550.yml +openapi_spec_hash: c40dbaaf8304a47a1c231c0ca6d3ca85 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda03..d9ebe1eb 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('id'); + * const response = await client.accounts.disconnect('in'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 82720bf3..45a182b9 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( - * 'fuga', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2797b69c..84719ef3 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( - * 'earum', + * 'perspiciatis', * { 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( - * 'earum', + * 'perspiciatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 295278c6..bd3a9869 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( - * 'dolores', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('nemo', { + * 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( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('nemo', { + * 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 41feb4c0..c9a094cf 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 43102db3..b31f85d6 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('ut'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quasi', + * 'illo', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('non'); + * const response = await client.smartLinks.listFans( + * 'debitis', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'magni', + * 'laborum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('perferendis'); + * await client.smartLinks.retrieveCohortArps('atque'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nisi', + * 'tempora', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..c795ca95 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', + * 'id', * { * 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('id', { * 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 a7a92600..d45ccea2 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', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'omnis', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iste', { + * await client.trackingLinks.getCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sed', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 878365e8..159da0ee 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('quis', { + * const trialLink = await client.trialLinks.retrieve('nemo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quis', { + * const trialLink = await client.trialLinks.delete('nemo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'nostrum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eligendi', { + * await client.trialLinks.retrieveCohortArps('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consequatur', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6aa46ab1..95d49697 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: 'cjzxbjdmqotqtnpgbji' }, + * { name: 'ptwxiyohogifyz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca8..a7a3b9d2 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('in'); 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 c8531313..f0353b28 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -64,20 +64,20 @@ describe('resource authenticate', () => { { auth_id: 'qui', auth_type: 'mobile_app', - cookies: 'consequuntur', + cookies: 'sequi', customProxy: { host: 'proxy.example.com', - password: ':DZ$N#_SGsMG^mJ', + password: '1!c!hVEC\\HogH5', port: 8080, - username: 'aut', + username: 'ipsa', }, - email: 'kreynolds@example.net', - force_connect: false, - name: 'repudiandae', - password: '"!nSQ1z>_boCTlwV,_', + email: 'vito96@example.net', + force_connect: true, + name: 'earum', + password: 'Tezbl6c&+xDM', proxyCountry: 'us', - user_agent: 'adipisci', - xbc: 'aliquid', + user_agent: 'dolor', + xbc: 'minus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 41ed5ddc..1bf6241e 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('fuga', { + 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('fuga', { + 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 9776529d..5d864cbe 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('earum', { + const responsePromise = client.media.vault.lists.media.add('perspiciatis', { 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('earum', { + const response = await client.media.vault.lists.media.add('perspiciatis', { 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('earum', { + const responsePromise = client.media.vault.lists.media.remove('perspiciatis', { 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('earum', { + const response = await client.media.vault.lists.media.remove('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91e5fe0e..0126401f 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('dolores', { + const responsePromise = client.posts.comments.create('nemo', { 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('dolores', { + const response = await client.posts.comments.create('nemo', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nemo', { 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('dolores', { + const response = await client.posts.comments.list('nemo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 0d03f57a..f33687af 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: ['fm'] }, + filter: { tags: ['kanofumlhdt'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quidem'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'quidem', + 'ut', { 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('quasi'); + const responsePromise = client.smartLinks.listConversions('illo'); 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( - 'quasi', + 'illo', { 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('non'); + const responsePromise = client.smartLinks.listFans('debitis'); 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( - 'non', + 'debitis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('magni'); + const responsePromise = client.smartLinks.listSpenders('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'magni', + 'laborum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('perferendis'); + const responsePromise = client.smartLinks.retrieveCohortArps('atque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'perferendis', + 'atque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nisi'); + const responsePromise = client.smartLinks.retrieveStats('tempora'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'nisi', + 'tempora', { 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 b6f7eea7..16af7622 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: 'arli', tags: ['bwynlnhskytcih'] }, + filter: { search: 'mcs', tags: ['fcrhjomiakubpftdnnzlekuz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tqgrsmivvwioiyz', tags: ['nreucafusdhxfc'] }, + filter: { search: 'kuajjoigeyyvzqc', tags: ['zsn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'fdkbvmvhlcbt', - tags: ['enhwx'], + search: 'zwpnwdrvlhb', + tags: ['flfqihimwaglyjw'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'fovcbktlznv', - tags: ['ciwnzfobepnmjdw'], + include_smart_links: false, + search: 'awtczyfngdaqqiuxy', + tags: ['mrunyddefhpfzyeoyvs'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..7b006e42 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('id', { 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('id', { 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('id', { 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('id', { 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 fa5a2a1a..d4029aa9 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('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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iste', { + const response = await client.trackingLinks.getCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('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 fd7f5249..aabfc477 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('nemo', { 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('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eligendi', { + const responsePromise = client.trialLinks.retrieveCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eligendi', { + const response = await client.trialLinks.retrieveCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,9 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('consequatur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -190,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('consequatur', { + const response = await client.trialLinks.retrieveStats('atque', { 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 757cbf18..16f5fedf 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: 'cjzxbjdmqotqtnpgbji' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ptwxiyohogifyz' }); 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: 'cjzxbjdmqotqtnpgbji' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ptwxiyohogifyz' }); }); // Mock server tests are disabled From 8824606bff272556da8254269911652611c6494f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 11:12:39 +0000 Subject: [PATCH 281/309] 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 | 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 | 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 | 18 ++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 104 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5dab440c..54f4c827 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ed1a08586492e95a29be4a3951f1dc245a71fcb713eb2df2f7987557360f3550.yml -openapi_spec_hash: c40dbaaf8304a47a1c231c0ca6d3ca85 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c58e6f0586345e4cbe47b5b92fcce3a3201fe69fbd9a6475bbbabe2ae28aa13a.yml +openapi_spec_hash: 088cc8752593039178c7fe2b0e1ae96f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d9ebe1eb..918969ad 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('in'); + * const response = await client.accounts.disconnect('harum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 45a182b9..266129f7 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( - * 'quis', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 84719ef3..228dd2be 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( - * 'perspiciatis', + * 'inventore', * { 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( - * 'perspiciatis', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bd3a9869..b417287b 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('nemo', { + * const comment = await client.posts.comments.create('illo', { * 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('nemo', { + * const comments = await client.posts.comments.list('illo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..e20f70d1 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 c9a094cf..2b04cbb2 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 b31f85d6..ce7c5566 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( + * 'illum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'illo', + * 'qui', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'debitis', - * ); + * const response = await client.smartLinks.listFans('nam'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'laborum', + * 'qui', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('atque'); + * await client.smartLinks.retrieveCohortArps('debitis'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'tempora', + * 'non', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c795ca95..67f64ceb 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( - * 'id', + * '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('id', { + * 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 d45ccea2..c4e0a7d5 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', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'perferendis', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('id', { + * await client.trackingLinks.getCohortArps('iure', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'possimus', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 159da0ee..65318a42 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('nemo', { + * const trialLink = await client.trialLinks.retrieve('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nemo', { + * const trialLink = await client.trialLinks.delete('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'nostrum', + * 'sequi', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ullam', { + * await client.trialLinks.retrieveCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'atque', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 95d49697..c9e62c19 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: 'ptwxiyohogifyz' }, + * { name: 'ftsxjhqhalfjzp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a7a3b9d2..a2675e34 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('in'); + const responsePromise = client.accounts.disconnect('harum'); 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 f0353b28..326608f1 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: 'qui', - auth_type: 'mobile_app', - cookies: 'sequi', + auth_id: 'nobis', + auth_type: 'email_password', + cookies: 'excepturi', customProxy: { host: 'proxy.example.com', - password: '1!c!hVEC\\HogH5', + password: 'O1%8|:rdZzG{$rIUI', port: 8080, - username: 'ipsa', + username: 'reiciendis', }, - email: 'vito96@example.net', - force_connect: true, - name: 'earum', - password: 'Tezbl6c&+xDM', + email: 'florian.legros@example.net', + force_connect: false, + name: 'enim', + password: 'Q{u+wTJ', proxyCountry: 'us', - user_agent: 'dolor', - xbc: 'minus', + user_agent: 'repellat', + xbc: 'rem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 1bf6241e..0de2d174 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('quasi', { 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('quasi', { 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 5d864cbe..52ac0d69 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.add('inventore', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.add('inventore', { 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('perspiciatis', { + const responsePromise = client.media.vault.lists.media.remove('inventore', { 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('perspiciatis', { + const response = await client.media.vault.lists.media.remove('inventore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 0126401f..585717a3 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('nemo', { + const responsePromise = client.posts.comments.create('illo', { 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('nemo', { + const response = await client.posts.comments.create('illo', { 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('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('illo', { 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('nemo', { + const response = await client.posts.comments.list('illo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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 8e5b0566..fd74b68f 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 b643af69..96d399de 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 f33687af..ad9dba8a 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: ['kanofumlhdt'] }, + filter: { tags: ['ffaffygejufjofiocmue'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('illum'); 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( - 'ut', + 'illum', { 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('illo'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'illo', + 'qui', { 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('debitis'); + const responsePromise = client.smartLinks.listFans('nam'); 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( - 'debitis', + 'nam', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('laborum'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'qui', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('atque'); + const responsePromise = client.smartLinks.retrieveCohortArps('debitis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'debitis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('tempora'); + const responsePromise = client.smartLinks.retrieveStats('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'tempora', + '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 16af7622..51a611c7 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: 'mcs', tags: ['fcrhjomiakubpftdnnzlekuz'] }, + filter: { search: 'xejahgyobdijduowxmsgxhkva', tags: ['kwpnnoyngpvijrhrtestbs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kuajjoigeyyvzqc', tags: ['zsn'] }, + filter: { search: 'nnftly', tags: ['bhgjmocodqrrytssygwio'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zwpnwdrvlhb', - tags: ['flfqihimwaglyjw'], + include_smart_links: true, + search: 'i', + tags: ['mgllqetlegbfgqhpcuuh'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'awtczyfngdaqqiuxy', - tags: ['mrunyddefhpfzyeoyvs'], + search: 'gwjcammdymyklcjagq', + tags: ['jfmveritbdljmbhwrworyoxkj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7b006e42..58129b14 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('id', { + 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('id', { + 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('id', { + 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('id', { + 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 d4029aa9..2e8d9f8c 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('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('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('id', { + const response = await client.trackingLinks.getCohortArps('iure', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('non', { 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 aabfc477..5eaa93a1 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('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aut', { 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('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('sequi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('sequi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('dolore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('dolore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('atque', { + const response = await client.trialLinks.retrieveStats('eum', { 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 16f5fedf..236b7c1f 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: 'ptwxiyohogifyz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ftsxjhqhalfjzp' }); 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: 'ptwxiyohogifyz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ftsxjhqhalfjzp' }); }); // Mock server tests are disabled From 87db0e87c1940c5a141ae30927935909075e2cc6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:12:42 +0000 Subject: [PATCH 282/309] 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 +- .../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 | 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/queue.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 112 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 54f4c827..0bb636da 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c58e6f0586345e4cbe47b5b92fcce3a3201fe69fbd9a6475bbbabe2ae28aa13a.yml -openapi_spec_hash: 088cc8752593039178c7fe2b0e1ae96f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23262eef0efd9f54797f726227d49099c415819219d3fd62ac49fa2ed4cfc901.yml +openapi_spec_hash: f0ae272c5978427db3c632075fe8ffcc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 918969ad..e61493a1 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('harum'); + * 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 266129f7..297b6190 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( - * 'quasi', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 228dd2be..c0e56046 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( - * 'inventore', + * 'nisi', * { 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( - * 'inventore', + * 'nisi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b417287b..1d67b61b 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('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'beatae', + * { + * 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('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'beatae', + * { 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 e20f70d1..09d6973d 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 2b04cbb2..41feb4c0 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 ce7c5566..7d4c2aef 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', + * 'optio', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'a', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nam'); + * const response = await client.smartLinks.listFans( + * 'deleniti', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'molestiae', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('debitis'); + * await client.smartLinks.retrieveCohortArps('eum'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'non', + * 'molestias', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 67f64ceb..56a29991 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', + * 'expedita', * { * 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('expedita', { * 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 c4e0a7d5..ae6339d4 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', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloremque', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iure', { + * await client.trackingLinks.getCohortArps('eius', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'non', + * 'architecto', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 65318a42..f967a02b 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('aut', { + * const trialLink = await client.trialLinks.retrieve('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('aut', { + * const trialLink = await client.trialLinks.delete('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sequi', + * 'deserunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolore', { + * await client.trialLinks.retrieveCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eum', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index c9e62c19..4076aa76 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: 'ftsxjhqhalfjzp' }, + * { name: 'snnwoficnihcdigclz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a2675e34..9ae9b59b 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('harum'); + 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 326608f1..d1729b73 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: 'email_password', - cookies: 'excepturi', + auth_id: 'temporibus', + auth_type: 'raw_data', + cookies: 'voluptatem', customProxy: { host: 'proxy.example.com', - password: 'O1%8|:rdZzG{$rIUI', + password: 'I/o#q@$&16Ri@?r', port: 8080, - username: 'reiciendis', + username: 'numquam', }, - email: 'florian.legros@example.net', + email: 'heathcote.green@example.net', force_connect: false, - name: 'enim', - password: 'Q{u+wTJ', - proxyCountry: 'us', - user_agent: 'repellat', - xbc: 'rem', + name: 'et', + password: 'c0$<^1', + proxyCountry: 'uk', + user_agent: 'rerum', + xbc: 'alias', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 0de2d174..5d136c77 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('quasi', { + const responsePromise = client.engagement.messages.getMessageBuyers('illo', { 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('quasi', { + const response = await client.engagement.messages.getMessageBuyers('illo', { 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 52ac0d69..837525dd 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('inventore', { + const responsePromise = client.media.vault.lists.media.add('nisi', { 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('inventore', { + const response = await client.media.vault.lists.media.add('nisi', { 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('inventore', { + const responsePromise = client.media.vault.lists.media.remove('nisi', { 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('inventore', { + const response = await client.media.vault.lists.media.remove('nisi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 585717a3..715b94db 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('illo', { + 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('illo', { + 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('illo', { 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('illo', { + const response = await client.posts.comments.list('beatae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..e2edc676 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 96d399de..c1510622 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 ad9dba8a..4466b979 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: ['ffaffygejufjofiocmue'] }, + filter: { tags: ['rmtlrozippbwmn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('illum'); + const responsePromise = client.smartLinks.listClicks('optio'); 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( - 'illum', + 'optio', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('a'); 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( - 'qui', + 'a', { 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('nam'); + const responsePromise = client.smartLinks.listFans('deleniti'); 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( - 'nam', + 'deleniti', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('molestiae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'molestiae', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('debitis'); + const responsePromise = client.smartLinks.retrieveCohortArps('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'debitis', + 'eum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('non'); + const responsePromise = client.smartLinks.retrieveStats('molestias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 51a611c7..90b23132 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: 'xejahgyobdijduowxmsgxhkva', tags: ['kwpnnoyngpvijrhrtestbs'] }, + filter: { search: 'fyisiawxs', tags: ['snbgkaj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nnftly', tags: ['bhgjmocodqrrytssygwio'] }, + filter: { search: 'hmuzdfpgfiiiygsydchexzl', tags: ['ejgq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'i', - tags: ['mgllqetlegbfgqhpcuuh'], + search: 'bsmoumzlxunwnadcjs', + tags: ['y'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gwjcammdymyklcjagq', - tags: ['jfmveritbdljmbhwrworyoxkj'], + include_smart_links: true, + search: 'ipyyngzu', + tags: ['zdsphhjqsatmkezlsvwcqkq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 58129b14..9955bb30 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('expedita', { 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('expedita', { 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('expedita', { 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('expedita', { 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 2e8d9f8c..07b7527f 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('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('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iure', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iure', { + const response = await client.trackingLinks.getCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('architecto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('non', { + const response = await client.trackingLinks.getStats('architecto', { 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 5eaa93a1..930297cf 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('aut', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aut', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sequi', { + const responsePromise = client.trialLinks.listSubscribers('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sequi', { + const response = await client.trialLinks.listSubscribers('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolore', { + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolore', { + const response = await client.trialLinks.retrieveCohortArps('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eum', { + const response = await client.trialLinks.retrieveStats('quod', { 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 236b7c1f..ef4f892e 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: 'ftsxjhqhalfjzp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'snnwoficnihcdigclz' }); 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: 'ftsxjhqhalfjzp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'snnwoficnihcdigclz' }); }); // Mock server tests are disabled From 2c9a767c308cefb16cdd1faabdc5732962dddee3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 04:12:39 +0000 Subject: [PATCH 283/309] 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/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 | 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/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 106 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bb636da..4ac91119 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-23262eef0efd9f54797f726227d49099c415819219d3fd62ac49fa2ed4cfc901.yml -openapi_spec_hash: f0ae272c5978427db3c632075fe8ffcc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8f3847b927b03e0868697fadf576685dce8f2f0ca0a0111fb041b1a9e9be402f.yml +openapi_spec_hash: 355eb44117c3a4bb8110467a40947d8c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e61493a1..7145e6dd 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('quas'); + * const response = await client.accounts.disconnect('nulla'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 297b6190..3e98cfef 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( - * 'illo', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index c0e56046..0d5d57f9 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( - * 'nisi', + * 'ea', * { 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( - * 'nisi', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1d67b61b..b16584fb 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('sit', { + * 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('sit', { + * 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 41feb4c0..a84ff073 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 7d4c2aef..0e5ab5dd 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( - * 'optio', - * ); + * const response = await client.smartLinks.listClicks('eius'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'a', + * 'officiis', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'deleniti', - * ); + * const response = await client.smartLinks.listFans('non'); * ``` */ listFans( @@ -131,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'molestiae', - * ); + * const response = await client.smartLinks.listSpenders('ut'); * ``` */ listSpenders( @@ -149,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eum'); + * await client.smartLinks.retrieveCohortArps('earum'); * ``` */ retrieveCohortArps( @@ -171,7 +165,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 56a29991..9a94ec5a 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( - * 'expedita', + * 'facere', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('expedita', { + * await client.stories.highlights.removeStory('facere', { * 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 ae6339d4..1142baa8 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', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'inventore', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eius', { + * await client.trackingLinks.getCohortArps('dignissimos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'architecto', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f967a02b..54e5da23 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('sunt', { + * const trialLink = await client.trialLinks.retrieve('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sunt', { + * const trialLink = await client.trialLinks.delete('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'deserunt', + * 'delectus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatem', { + * await client.trialLinks.retrieveCohortArps('inventore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quod', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4076aa76..9cc3b880 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: 'snnwoficnihcdigclz' }, + * { name: 'cmxptjkjegfscta' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 9ae9b59b..347c5888 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('nulla'); 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 d1729b73..50e0ba89 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: 'temporibus', + auth_id: 'dicta', auth_type: 'raw_data', - cookies: 'voluptatem', + cookies: 'perspiciatis', customProxy: { host: 'proxy.example.com', - password: 'I/o#q@$&16Ri@?r', + password: 'Rf-weV4C(V9TiySR$EMD', port: 8080, - username: 'numquam', + username: 'ut', }, - email: 'heathcote.green@example.net', - force_connect: false, + email: 'boyer.noelia@example.com', + force_connect: true, name: 'et', - password: 'c0$<^1', - proxyCountry: 'uk', - user_agent: 'rerum', - xbc: 'alias', + password: '". { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('illo', { + const responsePromise = client.engagement.messages.getMessageBuyers('quisquam', { 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('illo', { + const response = await client.engagement.messages.getMessageBuyers('quisquam', { 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 837525dd..ff15c6c7 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('nisi', { + const responsePromise = client.media.vault.lists.media.add('ea', { 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('nisi', { + const response = await client.media.vault.lists.media.add('ea', { 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('nisi', { + const responsePromise = client.media.vault.lists.media.remove('ea', { 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('nisi', { + const response = await client.media.vault.lists.media.remove('ea', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 715b94db..22e15203 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('sit', { 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('sit', { 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('sit', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 c1510622..02883e18 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 4466b979..74a500c0 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: ['rmtlrozippbwmn'] }, + filter: { tags: ['jg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('optio'); + const responsePromise = client.smartLinks.listClicks('eius'); 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( - 'optio', + 'eius', { 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('a'); + const responsePromise = client.smartLinks.listConversions('officiis'); 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( - 'a', + 'officiis', { 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('deleniti'); + const responsePromise = client.smartLinks.listFans('non'); 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( - 'deleniti', + 'non', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('molestiae'); + const responsePromise = client.smartLinks.listSpenders('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'molestiae', + 'ut', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eum'); + const responsePromise = client.smartLinks.retrieveCohortArps('earum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'earum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,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; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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 90b23132..8f18007c 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: 'fyisiawxs', tags: ['snbgkaj'] }, + filter: { search: 'agusupwecs', tags: ['qvdreserxsawpnicrziie'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hmuzdfpgfiiiygsydchexzl', tags: ['ejgq'] }, + filter: { search: 'krbfmgfcfknhxsinl', tags: ['cvpcajohzqhfplci'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bsmoumzlxunwnadcjs', - tags: ['y'], + search: 'kvra', + tags: ['ngdhxbtnugjhnl'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ipyyngzu', - tags: ['zdsphhjqsatmkezlsvwcqkq'], + include_smart_links: false, + search: 'zmknnywho', + tags: ['wmzwnmplcmeftc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9955bb30..0d264da9 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('expedita', { + const responsePromise = client.stories.highlights.addStory('facere', { 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('expedita', { + const response = await client.stories.highlights.addStory('facere', { 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('expedita', { + const responsePromise = client.stories.highlights.removeStory('facere', { 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('expedita', { + const response = await client.stories.highlights.removeStory('facere', { 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 07b7527f..37f09273 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('sit', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('dignissimos', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('eius', { + const response = await client.trackingLinks.getCohortArps('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('architecto', { 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; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('architecto', { + 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 930297cf..9fa87c30 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('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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('delectus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('delectus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatem', { + const responsePromise = client.trialLinks.retrieveCohortArps('inventore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptatem', { + const response = await client.trialLinks.retrieveCohortArps('inventore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quod', { + const response = await client.trialLinks.retrieveStats('voluptate', { 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 ef4f892e..3f46b9e4 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: 'snnwoficnihcdigclz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cmxptjkjegfscta' }); 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: 'snnwoficnihcdigclz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'cmxptjkjegfscta' }); }); // Mock server tests are disabled From 36aef4d8ffb785813184c5c13ead1c0959ef7c46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 07:12:40 +0000 Subject: [PATCH 284/309] 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 | 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 +++--- tests/api-resources/profiles.test.ts | 2 +- tests/api-resources/queue.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 109 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4ac91119..9f4fd26b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8f3847b927b03e0868697fadf576685dce8f2f0ca0a0111fb041b1a9e9be402f.yml -openapi_spec_hash: 355eb44117c3a4bb8110467a40947d8c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b52fb1d479e2e26f56a40a1d2cb137cecef4a154fcdc3a578f2b53649d34634.yml +openapi_spec_hash: b0d2d9cddfbc87f3b6d341f9e39b83fc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7145e6dd..f41cce05 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('nulla'); + * 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 3e98cfef..59e1dffc 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( - * 'quisquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0d5d57f9..a0e5582a 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( - * 'ea', + * 'omnis', * { 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( - * 'ea', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b16584fb..f01248fc 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('sit', { + * const comment = await client.posts.comments.create('eum', { * 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('sit', { + * const comments = await client.posts.comments.list('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 a84ff073..c9a094cf 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 0e5ab5dd..43b285e4 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('eius'); + * const response = await client.smartLinks.listClicks('aut'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'officiis', + * 'nemo', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('non'); + * const response = await client.smartLinks.listFans('dolor'); * ``` */ listFans( @@ -127,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ut'); + * const response = await client.smartLinks.listSpenders( + * 'perspiciatis', + * ); * ``` */ listSpenders( @@ -143,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('earum'); + * await client.smartLinks.retrieveCohortArps('voluptatem'); * ``` */ retrieveCohortArps( @@ -165,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'similique', + * 'doloremque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9a94ec5a..27cd4271 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( - * 'facere', + * '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('facere', { + * 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 1142baa8..455c1e26 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( - * 'sit', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sit', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dignissimos', { + * await client.trackingLinks.getCohortArps('voluptatum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'eligendi', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 54e5da23..957bf7f9 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( + * 'autem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('non', { + * const trialLink = await client.trialLinks.delete('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'delectus', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('inventore', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptate', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9cc3b880..1aa0b64f 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: 'cmxptjkjegfscta' }, + * { name: 'fe' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 347c5888..3b4e8eca 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('nulla'); + 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 50e0ba89..35ff8e3c 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: 'dicta', - auth_type: 'raw_data', - cookies: 'perspiciatis', + auth_id: 'et', + auth_type: 'mobile_app', + cookies: 'autem', customProxy: { host: 'proxy.example.com', - password: 'Rf-weV4C(V9TiySR$EMD', + password: 'tlMluL6:Hx92hb-CsX', port: 8080, - username: 'ut', + username: 'rerum', }, - email: 'boyer.noelia@example.com', - force_connect: true, - name: 'et', - password: '". { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quisquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('qui', { 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('quisquam', { + const response = await client.engagement.messages.getMessageBuyers('qui', { 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 ff15c6c7..68cadb73 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('ea', { + const responsePromise = client.media.vault.lists.media.add('omnis', { 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('ea', { + const response = await client.media.vault.lists.media.add('omnis', { 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('ea', { + const responsePromise = client.media.vault.lists.media.remove('omnis', { 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('ea', { + const response = await client.media.vault.lists.media.remove('omnis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 22e15203..4e690631 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('sit', { + const responsePromise = client.posts.comments.create('eum', { 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('sit', { + const response = await client.posts.comments.create('eum', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eum', { 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('sit', { + const response = await client.posts.comments.list('eum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 e2edc676..fd74b68f 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 02883e18..b643af69 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 d13ad1ce..6b1dc2fd 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 74a500c0..75314657 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: ['jg'] }, + filter: { tags: ['iusyisbwuioazpbv'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('eius'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'eius', + 'aut', { 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('officiis'); + const responsePromise = client.smartLinks.listConversions('nemo'); 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( - 'officiis', + 'nemo', { 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('non'); + const responsePromise = client.smartLinks.listFans('dolor'); 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( - 'non', + 'dolor', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ut'); + const responsePromise = client.smartLinks.listSpenders('perspiciatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'perspiciatis', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('earum'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'earum', + 'voluptatem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('similique'); + const responsePromise = client.smartLinks.retrieveStats('doloremque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 8f18007c..628a65b3 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: 'agusupwecs', tags: ['qvdreserxsawpnicrziie'] }, + filter: { search: 'syjta', tags: ['bou'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'krbfmgfcfknhxsinl', tags: ['cvpcajohzqhfplci'] }, + filter: { search: 'ubssywc', tags: ['qrxxsqlut'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kvra', - tags: ['ngdhxbtnugjhnl'], + include_smart_links: false, + search: 'axwichziyqxirp', + tags: ['uljgiakdaphxlnnywvsl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zmknnywho', - tags: ['wmzwnmplcmeftc'], + search: 'nmgksolmyyxdiihxegbyzvw', + tags: ['kr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 0d264da9..875fdcfa 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('facere', { + 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('facere', { + 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('facere', { + 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('facere', { + 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 37f09273..f64efaa5 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dolores', { 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('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dignissimos', { + const responsePromise = client.trackingLinks.getCohortArps('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('dignissimos', { + const response = await client.trackingLinks.getCohortArps('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,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('tempora', { 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 9fa87c30..0880a5a7 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('autem', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('delectus', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('delectus', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('inventore', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('inventore', { + const response = await client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptate', { + const response = await client.trialLinks.retrieveStats('molestiae', { 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 3f46b9e4..1433f26e 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: 'cmxptjkjegfscta' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fe' }); 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: 'cmxptjkjegfscta' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'fe' }); }); // Mock server tests are disabled From 60a12b7b75674ce51d75070e1099a5985ad0301f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 18:12:41 +0000 Subject: [PATCH 285/309] 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 | 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/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/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 | 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 +-- 26 files changed, 112 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9f4fd26b..8b98e531 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5b52fb1d479e2e26f56a40a1d2cb137cecef4a154fcdc3a578f2b53649d34634.yml -openapi_spec_hash: b0d2d9cddfbc87f3b6d341f9e39b83fc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3924f9b4ce51521776eb598cfeeaf01ca99dbf03fb6ae6797d8600633ec90da1.yml +openapi_spec_hash: 32c55c0f2317f6bee68119644785b202 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f41cce05..3ed20e70 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('rem'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 59e1dffc..5512630a 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('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'nobis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0e5582a..2bc2566c 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( - * 'omnis', + * 'possimus', * { 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( - * 'omnis', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f01248fc..dc342846 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('eum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'eaque', + * { + * 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('eum', { + * const comments = await client.posts.comments.list('eaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 c9a094cf..41feb4c0 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 43b285e4..e0246a69 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('enim'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nemo', + * 'incidunt', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dolor'); + * const response = await client.smartLinks.listFans('quasi'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'perspiciatis', + * 'fuga', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptatem'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'doloremque', + * 'cum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd4271..651e8fba 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', + * '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('ut', { + * 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 455c1e26..b469f5d1 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( - * 'dolores', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolores', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptatum', { + * await client.trackingLinks.getCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tempora', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 957bf7f9..714f245f 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( - * 'autem', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('autem', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'temporibus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('voluptates', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'molestiae', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1aa0b64f..f7eabe4e 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: 'fe' }, + * { name: 'padmizgwhnyhbktjz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3b4e8eca..0b8491a6 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('rem'); 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 35ff8e3c..b1ad5a80 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -63,21 +63,21 @@ describe('resource authenticate', () => { client.authenticate.start( { auth_id: 'et', - auth_type: 'mobile_app', - cookies: 'autem', + auth_type: 'email_password', + cookies: 'qui', customProxy: { host: 'proxy.example.com', - password: 'tlMluL6:Hx92hb-CsX', + password: 'duOft@@jK', port: 8080, - username: 'rerum', + username: 'neque', }, - email: 'ernser.shayna@example.org', + email: 'emelia74@example.org', force_connect: false, - name: 'quo', - password: "El2%{Jc{ub,4ZZdF%'", + name: 'dolorum', + password: 'jd<9IDZ83CuP^*hYyM*;', proxyCountry: 'us', - user_agent: 'modi', - xbc: 'officia', + user_agent: 'iste', + xbc: 'velit', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 338c9dac..c7355d47 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('qui', { + const responsePromise = client.engagement.messages.getMessageBuyers('nobis', { 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('qui', { + const response = await client.engagement.messages.getMessageBuyers('nobis', { 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 68cadb73..66a1f9a9 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('omnis', { + const responsePromise = client.media.vault.lists.media.add('possimus', { 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('omnis', { + const response = await client.media.vault.lists.media.add('possimus', { 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('omnis', { + const responsePromise = client.media.vault.lists.media.remove('possimus', { 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('omnis', { + const response = await client.media.vault.lists.media.remove('possimus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4e690631..cc2feef2 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('eum', { + const responsePromise = client.posts.comments.create('eaque', { 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('eum', { + const response = await client.posts.comments.create('eaque', { 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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eaque', { 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('eum', { + const response = await client.posts.comments.list('eaque', { 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 fd74b68f..4ec8acc7 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 b643af69..c1510622 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 75314657..072847db 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: ['iusyisbwuioazpbv'] }, + filter: { tags: ['pjno'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('enim'); 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', + 'enim', { 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('nemo'); + const responsePromise = client.smartLinks.listConversions('incidunt'); 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( - 'nemo', + 'incidunt', { 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('dolor'); + const responsePromise = client.smartLinks.listFans('quasi'); 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( - 'dolor', + 'quasi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('perspiciatis'); + const responsePromise = client.smartLinks.listSpenders('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'perspiciatis', + 'fuga', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptatem'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('doloremque'); + const responsePromise = client.smartLinks.retrieveStats('cum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'cum', { 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 628a65b3..8f15388f 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: 'syjta', tags: ['bou'] }, + filter: { search: 'cajs', tags: ['y'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ubssywc', tags: ['qrxxsqlut'] }, + filter: { search: 'qtnciibvcinjpxdi', tags: ['hjnyjmgewcuqidbnvfasr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'axwichziyqxirp', - tags: ['uljgiakdaphxlnnywvsl'], + include_smart_links: true, + search: 'vnqhdorisv', + tags: ['gqcyf'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nmgksolmyyxdiihxegbyzvw', - tags: ['kr'], + include_smart_links: true, + search: 'bvszrwxm', + tags: ['xuepewwnocrddjxexjah'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcfa..46e853d9 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('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('ut', { + 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('ut', { + 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('ut', { + 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 f64efaa5..5c6b2f0a 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quam', { 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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptatum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptatum', { + const response = await client.trackingLinks.getCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('tempora', { + const response = await client.trackingLinks.getStats('aliquid', { 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 0880a5a7..d08a3e9c 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('temporibus', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptates', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('voluptates', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('molestiae', { + const response = await client.trialLinks.retrieveStats('magni', { 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 1433f26e..47286f51 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: 'fe' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'padmizgwhnyhbktjz' }); 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: 'fe' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'padmizgwhnyhbktjz' }); }); // Mock server tests are disabled From 32a2de499831f648826e8beddc398476bba76b38 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 20:12:40 +0000 Subject: [PATCH 286/309] 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 | 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 +++++++------- .../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/queue.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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 116 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8b98e531..adb96028 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3924f9b4ce51521776eb598cfeeaf01ca99dbf03fb6ae6797d8600633ec90da1.yml -openapi_spec_hash: 32c55c0f2317f6bee68119644785b202 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-332df4369b2c4dc26beba9b30d348a417af1b35608589c4d0d2a792907cffdbd.yml +openapi_spec_hash: 9dfae3e42c24efe0f3f568a812dbd9c0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3ed20e70..fea649df 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('rem'); + * 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 5512630a..0547f9af 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( - * 'nobis', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2bc2566c..60a2b02a 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( - * 'possimus', + * 'eveniet', * { 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( - * 'possimus', + * 'eveniet', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dc342846..3d3d1a80 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( - * 'eaque', + * 'eligendi', * { * 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('eaque', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'eligendi', + * { 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 a9767818..599a9525 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 41feb4c0..c9a094cf 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 e0246a69..e6d7022f 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('enim'); + * const response = await client.smartLinks.listClicks( + * 'soluta', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'incidunt', + * 'iusto', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quasi'); + * const response = await client.smartLinks.listFans( + * 'excepturi', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'fuga', + * 'aperiam', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('consequatur'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'cum', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..f7d28e78 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', + * '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('qui', { - * 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 b469f5d1..18d34d27 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( - * 'quam', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quam', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('velit', { + * 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( - * 'aliquid', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 714f245f..a9405dd7 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( - * 'temporibus', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'temporibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('autem', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptates', { + * await client.trialLinks.retrieveCohortArps('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'magni', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f7eabe4e..26391f54 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: 'padmizgwhnyhbktjz' }, + * { name: 'ysmkndlhbyuoukiovo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0b8491a6..11e9246d 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('rem'); + 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 b1ad5a80..9d661190 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: 'hic', auth_type: 'email_password', - cookies: 'qui', + cookies: 'dolore', customProxy: { host: 'proxy.example.com', - password: 'duOft@@jK', + password: "#.'$0i148|KFEXc", port: 8080, - username: 'neque', + username: 'eius', }, - email: 'emelia74@example.org', + email: 'izabella.kessler@example.net', force_connect: false, - name: 'dolorum', - password: 'jd<9IDZ83CuP^*hYyM*;', - proxyCountry: 'us', - user_agent: 'iste', - xbc: 'velit', + name: 'voluptates', + password: 'n4V2:^d]WQ$I1852y=rC', + proxyCountry: 'gb', + user_agent: 'recusandae', + xbc: 'alias', }, { 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 c7355d47..90f3230e 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('nobis', { + const responsePromise = client.engagement.messages.getMessageBuyers('ipsum', { 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('nobis', { + const response = await client.engagement.messages.getMessageBuyers('ipsum', { 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 66a1f9a9..3e77c3c9 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('possimus', { + const responsePromise = client.media.vault.lists.media.add('eveniet', { 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('possimus', { + const response = await client.media.vault.lists.media.add('eveniet', { 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('possimus', { + const responsePromise = client.media.vault.lists.media.remove('eveniet', { 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('possimus', { + const response = await client.media.vault.lists.media.remove('eveniet', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..25333899 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 cc2feef2..2bf8f4c9 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('eaque', { + const responsePromise = client.posts.comments.create('eligendi', { 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('eaque', { + const response = await client.posts.comments.create('eligendi', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eligendi', { 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('eaque', { + const response = await client.posts.comments.list('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 4ec8acc7..8e5b0566 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 072847db..7bdc6017 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: ['pjno'] }, + filter: { tags: ['a'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('enim'); + const responsePromise = client.smartLinks.listClicks('soluta'); 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( - 'enim', + 'soluta', { 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('incidunt'); + const responsePromise = client.smartLinks.listConversions('iusto'); 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( - 'incidunt', + 'iusto', { 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('quasi'); + const responsePromise = client.smartLinks.listFans('excepturi'); 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( - 'quasi', + 'excepturi', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('fuga'); + const responsePromise = client.smartLinks.listSpenders('aperiam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'fuga', + 'aperiam', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'consequatur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('cum'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'cum', + '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 8f15388f..3c90a5f9 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: 'cajs', tags: ['y'] }, + filter: { search: 'brhehyprozhirve', tags: ['ttn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qtnciibvcinjpxdi', tags: ['hjnyjmgewcuqidbnvfasr'] }, + filter: { search: 'r', tags: ['pykikisavhcekplvanwuz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vnqhdorisv', - tags: ['gqcyf'], + search: 'qajqtffcslxpfalpiscsqx', + tags: ['vpmhtccpmzpgbzqnvr'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bvszrwxm', - tags: ['xuepewwnocrddjxexjah'], + include_smart_links: false, + search: 'jp', + tags: ['ffes'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..672b9492 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('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('qui', { + 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('qui', { + 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('qui', { + 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 5c6b2f0a..16f1e3a5 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('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('provident', { 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('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('velit', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('velit', { + const response = await client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aliquid', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aliquid', { + const response = await client.trackingLinks.getStats('aut', { 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 d08a3e9c..a7289e9e 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('autem', { 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('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptates', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolor', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptates', { + const response = await client.trialLinks.retrieveCohortArps('dolor', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('magni', { + const response = await client.trialLinks.retrieveStats('ipsum', { 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 47286f51..2c2ad889 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: 'padmizgwhnyhbktjz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ysmkndlhbyuoukiovo' }); 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: 'padmizgwhnyhbktjz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ysmkndlhbyuoukiovo' }); }); // Mock server tests are disabled From d038dccb3bdfc62607294da36196ecb7ed63a345 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 23:12:39 +0000 Subject: [PATCH 287/309] 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 | 16 +++++------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 13 +++++----- 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 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 16 ++++++------ .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 111 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index adb96028..19d13c3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-332df4369b2c4dc26beba9b30d348a417af1b35608589c4d0d2a792907cffdbd.yml -openapi_spec_hash: 9dfae3e42c24efe0f3f568a812dbd9c0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-feb8dcc3bd88bc49beefb388810f8ccd767736d288aeef26104be2cd657914e1.yml +openapi_spec_hash: 741743d20cd2855fd2bd21e398704ba3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fea649df..4838accc 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('cumque'); + * 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 0547f9af..3a3ac47e 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( - * 'ipsum', - * { 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 60a2b02a..2a29f7dc 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( - * 'eveniet', + * 'eum', * { 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( - * 'eveniet', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3d3d1a80..7d1b2d65 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( - * 'eligendi', + * '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( - * 'eligendi', - * { 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 599a9525..e20f70d1 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 e6d7022f..72a0be98 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( - * 'soluta', - * ); + * 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( - * 'iusto', + * 'enim', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'excepturi', - * ); + * const response = await client.smartLinks.listFans('vitae'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aperiam', + * 'sint', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consequatur'); + * await client.smartLinks.retrieveCohortArps('omnis'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'sequi', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index f7d28e78..651e8fba 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', + * 'qui', * { * 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('qui', { + * 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 18d34d27..6148222d 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( - * 'provident', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'provident', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('nesciunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aut', + * 'corrupti', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a9405dd7..c7b1d901 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( - * 'autem', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('autem', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'accusamus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolor', { + * await client.trialLinks.retrieveCohortArps('doloribus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsum', + * 'at', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 26391f54..127eeef3 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: 'ysmkndlhbyuoukiovo' }, + * { name: 'btnxbvditss' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 11e9246d..ee79bf41 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('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 9d661190..90bf6bb6 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: 'hic', - auth_type: 'email_password', - cookies: 'dolore', + auth_id: 'quaerat', + auth_type: 'mobile_app', + cookies: 'harum', customProxy: { host: 'proxy.example.com', - password: "#.'$0i148|KFEXc", + password: 'r.Hw}qy:xL9$', port: 8080, - username: 'eius', + username: 'atque', }, - email: 'izabella.kessler@example.net', - force_connect: false, - name: 'voluptates', - password: 'n4V2:^d]WQ$I1852y=rC', - proxyCountry: 'gb', - user_agent: 'recusandae', - xbc: 'alias', + email: 'eleanora38@example.net', + force_connect: true, + name: 'vel', + password: '$iKf}nFS', + proxyCountry: 'us', + user_agent: 'libero', + xbc: 'sed', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 90f3230e..32dab22b 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('ipsum', { + 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('ipsum', { + 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 3e77c3c9..79f29d71 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('eveniet', { + const responsePromise = client.media.vault.lists.media.add('eum', { 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('eveniet', { + const response = await client.media.vault.lists.media.add('eum', { 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('eveniet', { + const responsePromise = client.media.vault.lists.media.remove('eum', { 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('eveniet', { + const response = await client.media.vault.lists.media.remove('eum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..7b042946 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 2bf8f4c9..03ab8700 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('eligendi', { + 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('eligendi', { + 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('eligendi', { 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('eligendi', { + 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 9bf5999b..ad49ad2e 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 8e5b0566..fd74b68f 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7bdc6017..847a00da 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: ['a'] }, + filter: { tags: ['odlmsnewpmfmfksfxpb'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('soluta'); + const responsePromise = client.smartLinks.listClicks('et'); 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( - 'soluta', + 'et', { 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('iusto'); + const responsePromise = client.smartLinks.listConversions('enim'); 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( - 'iusto', + 'enim', { 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('excepturi'); + const responsePromise = client.smartLinks.listFans('vitae'); 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( - 'excepturi', + 'vitae', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aperiam'); + const responsePromise = client.smartLinks.listSpenders('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'aperiam', + 'sint', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); + const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'omnis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'sequi', { 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 3c90a5f9..0b4e444a 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: 'brhehyprozhirve', tags: ['ttn'] }, + filter: { search: 'uzaygdgtsktakkojbujzhf', tags: ['a'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'r', tags: ['pykikisavhcekplvanwuz'] }, + filter: { search: 'do', tags: ['kb'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qajqtffcslxpfalpiscsqx', - tags: ['vpmhtccpmzpgbzqnvr'], + include_smart_links: false, + search: 'frm', + tags: ['ctgym'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'jp', - tags: ['ffes'], + include_smart_links: true, + search: 'ugmvyvuzkwgdqvfwoehsfyi', + tags: ['cqnjgqwag'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 672b9492..46e853d9 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('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('perferendis', { + 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('perferendis', { + 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('perferendis', { + 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 16f1e3a5..997f834e 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('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('esse', { 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('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('provident', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('esse', { 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('nesciunt', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aut', { + const response = await client.trackingLinks.getStats('corrupti', { 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 a7289e9e..8e213fa1 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('accusamus', { 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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolor', { + const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolor', { + const response = await client.trialLinks.retrieveCohortArps('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ipsum', { + const response = await client.trialLinks.retrieveStats('at', { 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 2c2ad889..7868af38 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: 'ysmkndlhbyuoukiovo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'btnxbvditss' }); 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: 'ysmkndlhbyuoukiovo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'btnxbvditss' }); }); // Mock server tests are disabled From 4fbb859afb5187affb78d8da08e0e80ac9b88f08 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 00:12:39 +0000 Subject: [PATCH 288/309] 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 +- 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 ++++++++-------- 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 +- tests/api-resources/queue.test.ts | 2 +- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 108 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 19d13c3a..5abcb69a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-feb8dcc3bd88bc49beefb388810f8ccd767736d288aeef26104be2cd657914e1.yml -openapi_spec_hash: 741743d20cd2855fd2bd21e398704ba3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-48eb3bf50d534d26ebb9a3456aa3863af8d26d9fcecefa2c29009658d396d7b4.yml +openapi_spec_hash: 569eca698faec645d1e7ad6842ce0057 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838accc..57b8b381 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( + * 'nostrum', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a3ac47e..9f8aa938 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('et', { + * 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 2a29f7dc..77850abf 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( - * 'eum', + * '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( - * 'eum', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d1b2d65..c2aa86c1 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( - * 'autem', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('in', { + * 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('autem', { + * const comments = await client.posts.comments.list('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..599a9525 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/smart-links.ts b/src/resources/smart-links.ts index 72a0be98..d0938450 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( + * 'nostrum', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'enim', + * 'esse', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('vitae'); + * const response = await client.smartLinks.listFans('iure'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sint', + * 'tempore', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('omnis'); + * await client.smartLinks.retrieveCohortArps('ab'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sequi', + * 'eius', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..56a29991 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', + * 'expedita', * { * 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('expedita', { * 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 6148222d..f415401f 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( - * 'esse', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'esse', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nesciunt', { + * await client.trackingLinks.getCohortArps('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'corrupti', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c7b1d901..c1f39d2b 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( - * 'accusamus', + * 'eaque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'accusamus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('eaque', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'autem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('doloribus', { + * await client.trialLinks.retrieveCohortArps('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'at', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 127eeef3..a1889941 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: 'btnxbvditss' }, + * { name: 'vtwmfwkqxxcjr' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf41..63463688 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('nostrum'); 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 90bf6bb6..5374622f 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: 'quaerat', - auth_type: 'mobile_app', - cookies: 'harum', + auth_id: 'iste', + auth_type: 'raw_data', + cookies: 'blanditiis', customProxy: { host: 'proxy.example.com', - password: 'r.Hw}qy:xL9$', + password: 'M4%_&-u"YEL', port: 8080, - username: 'atque', + username: 'temporibus', }, - email: 'eleanora38@example.net', + email: 'gordon.mcdermott@example.net', force_connect: true, - name: 'vel', - password: '$iKf}nFS', - proxyCountry: 'us', - user_agent: 'libero', - xbc: 'sed', + name: 'explicabo', + password: 'URs5@i', + proxyCountry: 'uk', + user_agent: 'dicta', + xbc: 'autem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..229de463 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 32dab22b..77125615 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('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('et', { + 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 79f29d71..e74ef6cc 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('eum', { + 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('eum', { + 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('eum', { + 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('eum', { + 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 7b042946..70f616cd 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 03ab8700..5ab44413 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('in', { 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('in', { 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('in', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 fd74b68f..8e5b0566 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 847a00da..0c49e817 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: ['odlmsnewpmfmfksfxpb'] }, + filter: { tags: ['gtxyvorrsxmwkhacri'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('nostrum'); 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( - 'et', + 'nostrum', { 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('enim'); + const responsePromise = client.smartLinks.listConversions('esse'); 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( - 'enim', + 'esse', { 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('vitae'); + const responsePromise = client.smartLinks.listFans('iure'); 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( - 'vitae', + 'iure', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sint'); + const responsePromise = client.smartLinks.listSpenders('tempore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'tempore', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); + const responsePromise = client.smartLinks.retrieveCohortArps('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'omnis', + 'ab', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sequi'); + const responsePromise = client.smartLinks.retrieveStats('eius'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'sequi', + 'eius', { 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 0b4e444a..d353c64d 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: 'uzaygdgtsktakkojbujzhf', tags: ['a'] }, + filter: { search: 'aqunnoctysciuqxnyyiauil', tags: ['uuryomofvk'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'do', tags: ['kb'] }, + filter: { search: 'ussgymgunuyucpepjctmkhs', tags: ['lizigedvrgilqptf'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'frm', - tags: ['ctgym'], + search: 'qmpyprstvleifdsqrvcr', + tags: ['vdqhaoehnjgacybem'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ugmvyvuzkwgdqvfwoehsfyi', - tags: ['cqnjgqwag'], + search: 'clfhorm', + tags: ['cssebbavobejqfdgaktneo'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..9955bb30 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('expedita', { 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('expedita', { 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('expedita', { 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('expedita', { 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 997f834e..da55c686 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('fuga', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nesciunt', { + const responsePromise = client.trackingLinks.getCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('nesciunt', { + const response = await client.trackingLinks.getCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('corrupti', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('corrupti', { + const response = await client.trackingLinks.getStats('officiis', { 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 8e213fa1..531fb5e2 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eaque', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { + const responsePromise = client.trialLinks.retrieveCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('ullam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('at', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('at', { + 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 7868af38..d7394697 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: 'btnxbvditss' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vtwmfwkqxxcjr' }); 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: 'btnxbvditss' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vtwmfwkqxxcjr' }); }); // Mock server tests are disabled From aa4aa540d93c20e31b576057e1e581310c3cfa69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 02:12:40 +0000 Subject: [PATCH 289/309] 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 | 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 +++--- tests/api-resources/profiles.test.ts | 2 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 29 files changed, 118 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5abcb69a..a26ac46c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-48eb3bf50d534d26ebb9a3456aa3863af8d26d9fcecefa2c29009658d396d7b4.yml -openapi_spec_hash: 569eca698faec645d1e7ad6842ce0057 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d3d19639fb70f147be68623c03a8b6e1001388baedae79d9ebc59e2f29276b6f.yml +openapi_spec_hash: e32335aa8a3dea2085336637eecf62ad config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 57b8b381..1114e44c 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( - * 'nostrum', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 9f8aa938..cfbb6b73 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( + * 'rerum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 77850abf..072b256c 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', + * 'beatae', * { 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', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c2aa86c1..146ae602 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('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'exercitationem', + * { + * 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('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'exercitationem', + * { 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 599a9525..a9767818 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 c9a094cf..41feb4c0 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 d0938450..ff52944d 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( - * 'nostrum', + * 'delectus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'esse', + * 'veniam', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('iure'); + * const response = await client.smartLinks.listFans('velit'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'tempore', + * 'quia', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ab'); + * await client.smartLinks.retrieveCohortArps('saepe'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eius', + * 'minima', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56a29991..05444c83 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( - * 'expedita', + * 'eius', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('expedita', { + * await client.stories.highlights.removeStory('eius', { * 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 f415401f..b4e9ad05 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( - * 'fuga', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'fuga', + * 'ipsum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('possimus', { + * await client.trackingLinks.getCohortArps('esse', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'officiis', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c1f39d2b..cb18c618 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( - * 'eaque', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eaque', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'accusamus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'autem', + * 'ab', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ullam', { + * await client.trialLinks.retrieveCohortArps('numquam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'inventore', + * 'ab', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a1889941..b4b01539 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: 'vtwmfwkqxxcjr' }, + * { name: 'abdzadcopewjotd' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 63463688..a1e32c3e 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('nostrum'); + const responsePromise = client.accounts.disconnect('deserunt'); 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 5374622f..54d2fa78 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: 'iste', + auth_id: 'dolor', auth_type: 'raw_data', - cookies: 'blanditiis', + cookies: 'sit', customProxy: { host: 'proxy.example.com', - password: 'M4%_&-u"YEL', + password: '$OBnsAF?}\\wR6L@5', port: 8080, - username: 'temporibus', + username: 'mollitia', }, - email: 'gordon.mcdermott@example.net', - force_connect: true, - name: 'explicabo', - password: 'URs5@i', - proxyCountry: 'uk', - user_agent: 'dicta', - xbc: 'autem', + email: 'areynolds@example.com', + force_connect: false, + name: 'quia', + password: 'G7ShD`[G`', + proxyCountry: 'us', + user_agent: 'facilis', + xbc: 'dolores', }, { 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 77125615..b159b247 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('rerum', { 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('rerum', { 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 e74ef6cc..fcfa5f54 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('beatae', { 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('beatae', { 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('beatae', { 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('beatae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..b0d96512 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 5ab44413..58c439b7 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('in', { + const responsePromise = client.posts.comments.create('exercitationem', { 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('in', { + const response = await client.posts.comments.create('exercitationem', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('exercitationem', { 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('in', { + const response = await client.posts.comments.list('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 8e5b0566..4ec8acc7 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 b643af69..c1510622 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0c49e817..f785b2a6 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: ['gtxyvorrsxmwkhacri'] }, + filter: { tags: ['dagdqc'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nostrum'); + const responsePromise = client.smartLinks.listClicks('delectus'); 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( - 'nostrum', + 'delectus', { 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('esse'); + const responsePromise = client.smartLinks.listConversions('veniam'); 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( - 'esse', + 'veniam', { 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('iure'); + const responsePromise = client.smartLinks.listFans('velit'); 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( - 'iure', + 'velit', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('tempore'); + const responsePromise = client.smartLinks.listSpenders('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'tempore', + 'quia', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ab'); + const responsePromise = client.smartLinks.retrieveCohortArps('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + 'saepe', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eius'); + const responsePromise = client.smartLinks.retrieveStats('minima'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'eius', + 'minima', { 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 d353c64d..4d5b0ff6 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: 'aqunnoctysciuqxnyyiauil', tags: ['uuryomofvk'] }, + filter: { search: 'svyrogyrchzufumzcgrw', tags: ['revrofdxjni'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ussgymgunuyucpepjctmkhs', tags: ['lizigedvrgilqptf'] }, + filter: { search: 'pntrpztzqctghlu', tags: ['fz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'qmpyprstvleifdsqrvcr', - tags: ['vdqhaoehnjgacybem'], + include_smart_links: true, + search: 'l', + tags: ['odxkckxykpuymxt'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'clfhorm', - tags: ['cssebbavobejqfdgaktneo'], + include_smart_links: false, + search: 'yatfs', + tags: ['n'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9955bb30..6cf0ee49 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('expedita', { + const responsePromise = client.stories.highlights.addStory('eius', { 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('expedita', { + const response = await client.stories.highlights.addStory('eius', { 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('expedita', { + const responsePromise = client.stories.highlights.removeStory('eius', { 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('expedita', { + const response = await client.stories.highlights.removeStory('eius', { 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 da55c686..65d34076 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ipsum', { 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('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('possimus', { - 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; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('possimus', { + const response = await client.trackingLinks.getCohortArps('esse', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('officiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('officiis', { + const response = await client.trackingLinks.getStats('est', { 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 531fb5e2..082e85a0 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('accusamus', { 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('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('autem', { + const responsePromise = client.trialLinks.listSubscribers('ab', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('autem', { + const response = await client.trialLinks.listSubscribers('ab', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('numquam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,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('numquam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('ab', { 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 d7394697..905e6fac 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: 'vtwmfwkqxxcjr' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'abdzadcopewjotd' }); 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: 'vtwmfwkqxxcjr' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'abdzadcopewjotd' }); }); // Mock server tests are disabled From 4e91ca8fa4a834aafc43098531fba13d3674c034 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 03:12:38 +0000 Subject: [PATCH 290/309] 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 | 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 +++---- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../shared-trial-links.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 22 +++++++++---------- 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, 101 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index a26ac46c..b2682f30 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d3d19639fb70f147be68623c03a8b6e1001388baedae79d9ebc59e2f29276b6f.yml -openapi_spec_hash: e32335aa8a3dea2085336637eecf62ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-70b0e619ac2d17c678a1c707b2d05e8ced3f3ab61439fbade489dab840f567d9.yml +openapi_spec_hash: cd5a58f2abbb9b1b20dec20fbc3a45e9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1114e44c..06d37c8b 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( - * 'deserunt', - * ); + * 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 cfbb6b73..4585de2b 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( - * 'rerum', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 072b256c..af9ad358 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( - * 'beatae', + * '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( - * 'beatae', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 146ae602..496823bb 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( - * 'exercitationem', + * 'dolor', * { * 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( - * 'exercitationem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('dolor', { + * 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 a9767818..e20f70d1 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 ff52944d..9698fb99 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('qui'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'veniam', + * 'dicta', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('velit'); + * const response = await client.smartLinks.listFans('quod'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quia', + * 'voluptatem', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('saepe'); + * await client.smartLinks.retrieveCohortArps('harum'); * ``` */ retrieveCohortArps( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 05444c83..3f70024f 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( - * 'eius', + * 'nam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eius', { + * await client.stories.highlights.removeStory('nam', { * 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 b4e9ad05..631b0572 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( - * 'ipsum', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ipsum', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('esse', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'est', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cb18c618..d519809e 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( - * 'accusamus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'accusamus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ab', + * 'tempore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('numquam', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ab', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b4b01539..79627cf9 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: 'abdzadcopewjotd' }, + * { name: 'thww' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1e32c3e..44b93157 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('deserunt'); + 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 54d2fa78..dbfadd6e 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_id: 'ullam', auth_type: 'raw_data', - cookies: 'sit', + cookies: 'alias', customProxy: { host: 'proxy.example.com', - password: '$OBnsAF?}\\wR6L@5', + password: '+ZV1?~&.k', port: 8080, - username: 'mollitia', + username: 'autem', }, - email: 'areynolds@example.com', - force_connect: false, - name: 'quia', - password: 'G7ShD`[G`', - proxyCountry: 'us', - user_agent: 'facilis', - xbc: 'dolores', + email: 'ubalistreri@example.com', + force_connect: true, + name: 'modi', + password: 'mF*DW&1q?m>yP', + proxyCountry: 'gb', + user_agent: 'omnis', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b159b247..87988d85 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('rerum', { + const responsePromise = client.engagement.messages.getMessageBuyers('mollitia', { 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('rerum', { + const response = await client.engagement.messages.getMessageBuyers('mollitia', { 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 fcfa5f54..e6c1db3e 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('beatae', { + 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('beatae', { + 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('beatae', { + 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('beatae', { + 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 b0d96512..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 58c439b7..1c44ea01 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('exercitationem', { + const responsePromise = client.posts.comments.create('dolor', { 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('exercitationem', { + const response = await client.posts.comments.create('dolor', { 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('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dolor', { 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('exercitationem', { + const response = await client.posts.comments.list('dolor', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 4ec8acc7..fd74b68f 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index f785b2a6..cd8822f9 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: ['dagdqc'] }, + filter: { tags: ['kddnevbaxkwn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('delectus'); + const responsePromise = client.smartLinks.listClicks('qui'); 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( - 'delectus', + 'qui', { 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('veniam'); + const responsePromise = client.smartLinks.listConversions('dicta'); 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( - 'veniam', + 'dicta', { 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('velit'); + const responsePromise = client.smartLinks.listFans('quod'); 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( - 'velit', + 'quod', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quia'); + const responsePromise = client.smartLinks.listSpenders('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'voluptatem', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('saepe'); + const responsePromise = client.smartLinks.retrieveCohortArps('harum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'saepe', + 'harum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 4d5b0ff6..cdcbf4d0 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: 'svyrogyrchzufumzcgrw', tags: ['revrofdxjni'] }, + filter: { search: 'drsubtuzumpsrvorrj', tags: ['wsq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pntrpztzqctghlu', tags: ['fz'] }, + filter: { search: 'uwpvkyxtwzjtzbtim', tags: ['rgqtysi'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'l', - tags: ['odxkckxykpuymxt'], + search: 'yhfsnskxljdhr', + tags: ['bjzwbsvgdxauerkaix'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'yatfs', - tags: ['n'], + search: 'emeoxcwuvrqiwcuqyvc', + tags: ['inqeh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 6cf0ee49..17e1205b 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('eius', { + const responsePromise = client.stories.highlights.addStory('nam', { 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('eius', { + const response = await client.stories.highlights.addStory('nam', { 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('eius', { + const responsePromise = client.stories.highlights.removeStory('nam', { 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('eius', { + const response = await client.stories.highlights.removeStory('nam', { 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 65d34076..177aff71 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('ipsum', { 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('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ipsum', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ipsum', { 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('esse', { 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; @@ -110,7 +110,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('est', { + const response = await client.trackingLinks.getStats('laboriosam', { 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 082e85a0..08e0152f 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('aut', { 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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('accusamus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ab', { + const responsePromise = client.trialLinks.listSubscribers('tempore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ab', { + const response = await client.trialLinks.listSubscribers('tempore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('numquam', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('numquam', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ab', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ab', { + 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 905e6fac..b683e0d5 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: 'abdzadcopewjotd' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'thww' }); 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: 'abdzadcopewjotd' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'thww' }); }); // Mock server tests are disabled From 83e3d6cfeca9fa359cc23e382a3b64246bda8850 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 07:12:38 +0000 Subject: [PATCH 291/309] 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 | 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 | 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 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 6 +++-- 29 files changed, 118 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index b2682f30..23aac199 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-70b0e619ac2d17c678a1c707b2d05e8ced3f3ab61439fbade489dab840f567d9.yml -openapi_spec_hash: cd5a58f2abbb9b1b20dec20fbc3a45e9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b42da883f5072373eedc63a0efa59458e9b251d082b180bf3e617fbb4f5e9c71.yml +openapi_spec_hash: d5f924a5466c1ade914b7a7dc4562a41 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8b..9c7d825f 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('et'); + * const response = await client.accounts.disconnect( + * 'temporibus', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 4585de2b..2db8d2cc 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( - * 'mollitia', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..4462fe17 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', + * 'consequuntur', * { 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', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 496823bb..dc342846 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( - * 'dolor', + * 'eaque', * { * 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('dolor', { + * const comments = await client.posts.comments.list('eaque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d1..a9767818 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 41feb4c0..c9a094cf 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 9698fb99..2fe01854 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( + * 'magnam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dicta', + * 'sint', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quod'); + * const response = await client.smartLinks.listFans( + * 'possimus', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptatem', + * 'totam', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('harum'); + * await client.smartLinks.retrieveCohortArps('voluptate'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'minima', + * 'consectetur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3f70024f..726b57b4 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( - * 'nam', + * 'tenetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nam', { + * await client.stories.highlights.removeStory('tenetur', { * 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 631b0572..684b7bb1 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', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ducimus', + * 'mollitia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * 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( - * 'laboriosam', + * 'aliquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d519809e..fe9c6b14 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('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dolores', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'tempore', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quam', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 79627cf9..3e9d6448 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: 'thww' }, + * { name: 'acenvtvjomqiunmnwajgx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b93157..2e26665d 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('temporibus'); 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 dbfadd6e..12ad1993 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: 'ullam', - auth_type: 'raw_data', - cookies: 'alias', + auth_id: 'qui', + auth_type: 'email_password', + cookies: 'quidem', customProxy: { host: 'proxy.example.com', - password: '+ZV1?~&.k', + password: "{o?'60r;M/__$FvH!YV", port: 8080, - username: 'autem', + username: 'fuga', }, - email: 'ubalistreri@example.com', - force_connect: true, - name: 'modi', - password: 'mF*DW&1q?m>yP', - proxyCountry: 'gb', - user_agent: 'omnis', - xbc: 'voluptatem', + email: 'sienna.lang@example.com', + force_connect: false, + name: 'explicabo', + password: ';/HNO^OM { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 87988d85..eebe8fde 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('mollitia', { + const responsePromise = client.engagement.messages.getMessageBuyers('consectetur', { 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('mollitia', { + const response = await client.engagement.messages.getMessageBuyers('consectetur', { 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 e6c1db3e..723d0d9a 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('consequuntur', { 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('consequuntur', { 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('consequuntur', { 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('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..e769f5c8 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: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1c44ea01..cc2feef2 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('dolor', { + const responsePromise = client.posts.comments.create('eaque', { 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('dolor', { + const response = await client.posts.comments.create('eaque', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eaque', { 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('dolor', { + const response = await client.posts.comments.list('eaque', { 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 fd74b68f..4ec8acc7 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index cd8822f9..e7ba0a03 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: ['kddnevbaxkwn'] }, + filter: { tags: ['htpwojr'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('qui'); + const responsePromise = client.smartLinks.listClicks('magnam'); 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( - 'qui', + 'magnam', { 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('dicta'); + const responsePromise = client.smartLinks.listConversions('sint'); 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( - 'dicta', + 'sint', { 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('quod'); + const responsePromise = client.smartLinks.listFans('possimus'); 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( - 'quod', + 'possimus', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptatem'); + const responsePromise = client.smartLinks.listSpenders('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptatem', + 'totam', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('harum'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'harum', + 'voluptate', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('minima'); + const responsePromise = client.smartLinks.retrieveStats('consectetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'minima', + 'consectetur', { 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 cdcbf4d0..4e4de481 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: 'drsubtuzumpsrvorrj', tags: ['wsq'] }, + filter: { search: 'ujhqyh', tags: ['mqwpbeze'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uwpvkyxtwzjtzbtim', tags: ['rgqtysi'] }, + filter: { search: 'nzjikpriolcacsxszzvuygvyc', tags: ['bteicvbaxmzkkfik'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yhfsnskxljdhr', - tags: ['bjzwbsvgdxauerkaix'], + include_smart_links: false, + search: 'lwrghxtyduvwwujwvatkphl', + tags: ['taaiobauhg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'emeoxcwuvrqiwcuqyvc', - tags: ['inqeh'], + include_smart_links: true, + search: 'uqqphhadgcmmpewfjtcenhl', + tags: ['oqksmwlssfxnv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 17e1205b..2c83162f 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('nam', { + const responsePromise = client.stories.highlights.addStory('tenetur', { 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('nam', { + const response = await client.stories.highlights.addStory('tenetur', { 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('nam', { + const responsePromise = client.stories.highlights.removeStory('tenetur', { 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('nam', { + const response = await client.stories.highlights.removeStory('tenetur', { 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 177aff71..70eae41e 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('mollitia', { 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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('mollitia', { 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('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('alias', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('laboriosam', { + const response = await client.trackingLinks.getStats('aliquam', { 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 08e0152f..9665549e 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('aut', { 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('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('aut', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ 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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +174,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +186,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('rerum', { 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 b683e0d5..eaa433e6 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: 'thww' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'acenvtvjomqiunmnwajgx', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'thww' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'acenvtvjomqiunmnwajgx' }); }); // Mock server tests are disabled From 6138edbfd3ca4b4aa4849c256e25c822bb49d096 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 08:12:39 +0000 Subject: [PATCH 292/309] 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 | 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 +++--- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 6 ++--- 28 files changed, 113 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index 23aac199..157fb3ca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b42da883f5072373eedc63a0efa59458e9b251d082b180bf3e617fbb4f5e9c71.yml -openapi_spec_hash: d5f924a5466c1ade914b7a7dc4562a41 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-214c0aeefea0208206b2761b2370cb777136e4d95bf6ce97ad48e8a38e7ace07.yml +openapi_spec_hash: db9333d3fde0276a01057dd8bd07a1ca config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9c7d825f..6bfc0cef 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( - * 'temporibus', - * ); + * const response = await client.accounts.disconnect('quae'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2db8d2cc..37e7385c 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( - * 'consectetur', - * { 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 4462fe17..0338921d 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( - * 'consequuntur', + * '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( - * 'consequuntur', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dc342846..e04dc919 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( - * 'eaque', + * '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('eaque', { - * 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 a9767818..599a9525 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 c9a094cf..41feb4c0 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 2fe01854..d2231349 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( - * 'magnam', + * 'nulla', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sint', + * 'eos', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'possimus', - * ); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'totam', + * 'illo', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptate'); + * await client.smartLinks.retrieveCohortArps('sit'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consectetur', + * 'reprehenderit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 726b57b4..b20c9f18 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( - * 'tenetur', + * 'repellat', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('tenetur', { + * await client.stories.highlights.removeStory('repellat', { * 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 684b7bb1..40e7dc2b 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( - * 'mollitia', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'mollitia', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('alias', { + * await client.trackingLinks.getCohortArps('facilis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aliquam', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fe9c6b14..2865be8f 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( - * 'dolores', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,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('libero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('consequuntur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'rerum', + * 'ea', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3e9d6448..d5516b10 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: 'acenvtvjomqiunmnwajgx' }, + * { name: 'rlpushcdhtintjlecz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2e26665d..65342ac8 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('temporibus'); + const responsePromise = client.accounts.disconnect('quae'); 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 12ad1993..a699cc6a 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: 'qui', - auth_type: 'email_password', - cookies: 'quidem', + auth_id: 'doloribus', + auth_type: 'mobile_app', + cookies: 'rerum', customProxy: { host: 'proxy.example.com', - password: "{o?'60r;M/__$FvH!YV", + password: 'y#\\_F-N!69lg', port: 8080, - username: 'fuga', + username: 'labore', }, - email: 'sienna.lang@example.com', + email: 'leonardo.buckridge@example.org', force_connect: false, - name: 'explicabo', - password: ';/HNO^OM { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('consectetur', { + 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('consectetur', { + 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 723d0d9a..c9be7945 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('consequuntur', { + 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('consequuntur', { + 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('consequuntur', { + 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('consequuntur', { + 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 e769f5c8..69b39e44 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: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index cc2feef2..d7ebd33b 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('eaque', { + 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('eaque', { + 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('eaque', { 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('eaque', { + const response = await client.posts.comments.list('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 4ec8acc7..8e5b0566 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 b643af69..c1510622 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index e7ba0a03..2ae58bd5 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: ['htpwojr'] }, + filter: { tags: ['zod'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('magnam'); + const responsePromise = client.smartLinks.listClicks('nulla'); 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( - 'magnam', + 'nulla', { 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('sint'); + const responsePromise = client.smartLinks.listConversions('eos'); 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( - 'sint', + 'eos', { 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('possimus'); + 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( - 'possimus', + 'est', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('totam'); + const responsePromise = client.smartLinks.listSpenders('illo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'illo', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptate'); + const responsePromise = client.smartLinks.retrieveCohortArps('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + 'sit', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consectetur'); + const responsePromise = client.smartLinks.retrieveStats('reprehenderit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'consectetur', + '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 4e4de481..205007e5 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: 'ujhqyh', tags: ['mqwpbeze'] }, + filter: { search: 'gnwuhtozllr', tags: ['kqge'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nzjikpriolcacsxszzvuygvyc', tags: ['bteicvbaxmzkkfik'] }, + filter: { search: 'f', tags: ['fszyjujochfjjefkmj'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lwrghxtyduvwwujwvatkphl', - tags: ['taaiobauhg'], + include_smart_links: true, + search: 'bs', + tags: ['qnmtt'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'uqqphhadgcmmpewfjtcenhl', - tags: ['oqksmwlssfxnv'], + search: 'lq', + tags: ['d'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2c83162f..e41cf252 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('tenetur', { + 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('tenetur', { + 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('tenetur', { + 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('tenetur', { + 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 70eae41e..c47b8cbe 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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nihil', { 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('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nihil', { 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('facilis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,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('facilis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aliquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aliquam', { + const response = await client.trackingLinks.getStats('quasi', { 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 9665549e..85c87149 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('libero', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptas', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptas', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('consequuntur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('rerum', { + const response = await client.trialLinks.retrieveStats('ea', { 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 eaa433e6..d1853d11 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: 'acenvtvjomqiunmnwajgx', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rlpushcdhtintjlecz' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'acenvtvjomqiunmnwajgx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rlpushcdhtintjlecz' }); }); // Mock server tests are disabled From 4506117f2093186adb059dff68bd87ea28a83d16 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:12:38 +0000 Subject: [PATCH 293/309] 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 +- .../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 ++++++++-------- 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/queue.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 | 8 ++++-- 29 files changed, 114 insertions(+), 119 deletions(-) diff --git a/.stats.yml b/.stats.yml index 157fb3ca..dd7a330d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-214c0aeefea0208206b2761b2370cb777136e4d95bf6ce97ad48e8a38e7ace07.yml -openapi_spec_hash: db9333d3fde0276a01057dd8bd07a1ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eb189c7418509c807d8e117a1c2a4cea6384b829e03369e0064f3784375dfab0.yml +openapi_spec_hash: 2fe19ff8bf58b7e1e8504bf36c8bddb1 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bfc0cef..bc786487 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('quae'); + * const response = await client.accounts.disconnect('sit'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 37e7385c..120ae8e6 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('ut', { + * await client.engagement.messages.getMessageBuyers('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0338921d..66ab3dcc 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', + * 'vitae', * { 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', + * 'vitae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e04dc919..0fc61881 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('quam', { + * 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('quam', { + * 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 599a9525..09d6973d 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/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c0..2b04cbb2 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 d2231349..41b38e70 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', + * 'sapiente', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eos', + * 'qui', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('hic'); * ``` */ listFans( @@ -129,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'illo', - * ); + * const response = await client.smartLinks.listSpenders('at'); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sit'); + * await client.smartLinks.retrieveCohortArps('fugiat'); * ``` */ retrieveCohortArps( @@ -169,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 b20c9f18..e61412d7 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', + * 'quasi', * { * 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('quasi', { * 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 40e7dc2b..a17cc528 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( - * 'nihil', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nihil', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('facilis', { + * await client.trackingLinks.getCohortArps('dolor', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quasi', + * 'aperiam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 2865be8f..d0dc56ac 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( - * 'libero', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('libero', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'possimus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'necessitatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('consequuntur', { + * await client.trialLinks.retrieveCohortArps('odio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ea', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d5516b10..d5af9f8e 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: 'rlpushcdhtintjlecz' }, + * { name: 'cuzouygejitzsdqeeyfqvdpt' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 65342ac8..d9ec9a26 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('quae'); + const responsePromise = client.accounts.disconnect('sit'); 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 a699cc6a..96b54cdd 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: 'mobile_app', - cookies: 'rerum', + auth_id: 'saepe', + auth_type: 'raw_data', + cookies: 'dolorem', customProxy: { host: 'proxy.example.com', - password: 'y#\\_F-N!69lg', + password: 'iqDS8t/DQ"f5]h]H', port: 8080, - username: 'labore', + username: 'delectus', }, - email: 'leonardo.buckridge@example.org', + email: 'lindsay.frami@example.net', force_connect: false, - name: 'omnis', - password: 'i#:6y%xKvK\\#q-4', - proxyCountry: 'gb', - user_agent: 'quasi', - xbc: 'labore', + name: 'cum', + password: 'f}bVJ1eiX>4:', + proxyCountry: 'us', + user_agent: 'commodi', + xbc: 'mollitia', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..c17a81d6 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 5d39f0e7..84d654c4 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('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('ut', { + 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 c9be7945..ceb8a9dd 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('vitae', { 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('vitae', { 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('vitae', { 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('vitae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d7ebd33b..a89f0e39 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('quam', { 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('quam', { 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('quam', { 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('quam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 8e5b0566..e2edc676 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/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c1510622..96d399de 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 d13ad1ce..6b1dc2fd 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 2ae58bd5..630ac591 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: ['zod'] }, + filter: { tags: ['ec'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nulla'); + const responsePromise = client.smartLinks.listClicks('sapiente'); 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( - 'nulla', + 'sapiente', { 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('eos'); + const responsePromise = client.smartLinks.listConversions('qui'); 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( - 'eos', + 'qui', { 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('est'); + const responsePromise = client.smartLinks.listFans('hic'); 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( - 'est', + 'hic', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('illo'); + const responsePromise = client.smartLinks.listSpenders('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'illo', + 'at', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sit'); + const responsePromise = client.smartLinks.retrieveCohortArps('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'sit', + 'fugiat', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,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; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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 205007e5..5507610c 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: 'gnwuhtozllr', tags: ['kqge'] }, + filter: { search: 'gsopuodppuazpdvjejgesk', tags: ['korldo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'f', tags: ['fszyjujochfjjefkmj'] }, + filter: { search: 'xvmke', tags: ['s'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bs', - tags: ['qnmtt'], + include_smart_links: false, + search: 'jlohqccz', + tags: ['idzcndi'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lq', - tags: ['d'], + search: 'bxkhyctdvaqpiy', + tags: ['cbdwgdsepkfeei'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e41cf252..396ca635 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('quasi', { 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('quasi', { 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('quasi', { 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('quasi', { 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 c47b8cbe..2c5a6a9c 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptate', { 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('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('facilis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('facilis', { + const response = await client.trackingLinks.getCohortArps('dolor', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quasi', { 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; @@ -134,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quasi', { + 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 85c87149..4e214f03 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('possimus', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('consequuntur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('consequuntur', { + const response = await client.trialLinks.retrieveCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ea', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ea', { + 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 d1853d11..5af11eba 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: 'rlpushcdhtintjlecz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'cuzouygejitzsdqeeyfqvdpt', + }); 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: 'rlpushcdhtintjlecz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'cuzouygejitzsdqeeyfqvdpt', + }); }); // Mock server tests are disabled From e3b66fe32d50aea4cb31cf3c38366b2b73800057 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:12:38 +0000 Subject: [PATCH 294/309] 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 | 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 | 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 +-- .../shared-trial-links.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 +-- 27 files changed, 110 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index dd7a330d..d1f4f8ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eb189c7418509c807d8e117a1c2a4cea6384b829e03369e0064f3784375dfab0.yml -openapi_spec_hash: 2fe19ff8bf58b7e1e8504bf36c8bddb1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-00f73e1786807cd28fec23d01613e0d3f02c01649d48c8a738fbce235de87249.yml +openapi_spec_hash: 2925179e6cb8a682f1b91b06e26f6479 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index bc786487..c0b1f550 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('sit'); + * const response = await client.accounts.disconnect( + * 'accusamus', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 120ae8e6..d9ad63e4 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('id', { - * 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 66ab3dcc..af9ad358 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( - * 'vitae', + * '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( - * 'vitae', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0fc61881..9ddb3928 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('quam', { + * const comment = await client.posts.comments.create('odio', { * 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('quam', { + * const comments = await client.posts.comments.list('odio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..a9767818 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 2b04cbb2..c9a094cf 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 41b38e70..5d0bf032 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( - * 'sapiente', + * 'numquam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'sapiente', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('hic'); + * const response = await client.smartLinks.listFans('omnis'); * ``` */ listFans( @@ -129,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('at'); + * const response = await client.smartLinks.listSpenders( + * 'earum', + * ); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('fugiat'); + * await client.smartLinks.retrieveCohortArps('nemo'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'voluptatum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e61412d7..88b22326 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( - * 'quasi', + * 'porro', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quasi', { + * await client.stories.highlights.removeStory('porro', { * 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 a17cc528..363d5e3b 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( - * 'voluptate', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptate', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolor', { + * await client.trackingLinks.getCohortArps('illum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aperiam', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d0dc56ac..e0e7e8d5 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( - * 'possimus', + * 'commodi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'possimus', + * 'commodi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'necessitatibus', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('odio', { + * await client.trialLinks.retrieveCohortArps('saepe', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nesciunt', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d5af9f8e..23f22b3c 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: 'cuzouygejitzsdqeeyfqvdpt' }, + * { name: 'eqcwehrlenihhhotpsjqwmzb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d9ec9a26..cba64f6d 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('sit'); + const responsePromise = client.accounts.disconnect('accusamus'); 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 96b54cdd..f1844101 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: 'error', auth_type: 'raw_data', - cookies: 'dolorem', + cookies: 'repellat', customProxy: { host: 'proxy.example.com', - password: 'iqDS8t/DQ"f5]h]H', + password: 'xB;whh~C', port: 8080, - username: 'delectus', + username: 'cupiditate', }, - email: 'lindsay.frami@example.net', - force_connect: false, - name: 'cum', - password: 'f}bVJ1eiX>4:', - proxyCountry: 'us', - user_agent: 'commodi', - xbc: 'mollitia', + email: 'jeramie36@example.org', + force_connect: true, + name: 'vero', + password: 'P7B+M*', + proxyCountry: 'gb', + user_agent: 'odit', + xbc: 'velit', }, { 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 84d654c4..9bb8cbf3 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('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('id', { + 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 ceb8a9dd..e6c1db3e 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('vitae', { + 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('vitae', { + 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('vitae', { + 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('vitae', { + 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 42643a65..25333899 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 a89f0e39..d34fc3c9 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('quam', { + const responsePromise = client.posts.comments.create('odio', { 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('quam', { + const response = await client.posts.comments.create('odio', { 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('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('odio', { 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('quam', { + const response = await client.posts.comments.list('odio', { 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 e2edc676..4ec8acc7 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 96d399de..b643af69 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 630ac591..b490f24d 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: ['ec'] }, + filter: { tags: ['pcmuxcvkgmrlnuezuljrwcsmg'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sapiente'); + const responsePromise = client.smartLinks.listClicks('numquam'); 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( - 'sapiente', + 'numquam', { 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('qui'); + const responsePromise = client.smartLinks.listConversions('sapiente'); 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( - 'qui', + 'sapiente', { 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('hic'); + const responsePromise = client.smartLinks.listFans('omnis'); 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( - 'hic', + 'omnis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('at'); + const responsePromise = client.smartLinks.listSpenders('earum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'at', + 'earum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('fugiat'); + const responsePromise = client.smartLinks.retrieveCohortArps('nemo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'fugiat', + 'nemo', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 5507610c..414b2292 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: 'gsopuodppuazpdvjejgesk', tags: ['korldo'] }, + filter: { search: 'qwjzwqgvgrkqkrtwgwklb', tags: ['ierepwvtimcx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xvmke', tags: ['s'] }, + filter: { search: 'atrplulevxayplamsz', tags: ['boequnppizvytxsyjodfb'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'jlohqccz', - tags: ['idzcndi'], + include_smart_links: true, + search: 'vcfgpjftxkxfiml', + tags: ['xgeofngpt'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bxkhyctdvaqpiy', - tags: ['cbdwgdsepkfeei'], + search: 'ijdkzkteqrdahcfovc', + tags: ['lucdrvwoh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 396ca635..81711f71 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('quasi', { + const responsePromise = client.stories.highlights.addStory('porro', { 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('quasi', { + const response = await client.stories.highlights.addStory('porro', { 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('quasi', { + const responsePromise = client.stories.highlights.removeStory('porro', { 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('quasi', { + const response = await client.stories.highlights.removeStory('porro', { 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 2c5a6a9c..a8de6eaf 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('sed', { 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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('dolor', { + const response = await client.trackingLinks.getCohortArps('illum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('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 4e214f03..2a1411fe 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('commodi', { 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('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('necessitatibus', { + const responsePromise = client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('necessitatibus', { + const response = await client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('saepe', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('odio', { + const response = await client.trialLinks.retrieveCohortArps('saepe', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('dolores', { 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 5af11eba..4d031bdc 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: 'cuzouygejitzsdqeeyfqvdpt', + name: 'eqcwehrlenihhhotpsjqwmzb', }); 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: 'cuzouygejitzsdqeeyfqvdpt', + name: 'eqcwehrlenihhhotpsjqwmzb', }); }); From a6414f263b35e28e282fcf7224441f0466c91a2d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:12:42 +0000 Subject: [PATCH 295/309] 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 | 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/queue.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 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 29 files changed, 115 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index d1f4f8ce..ffbca103 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-00f73e1786807cd28fec23d01613e0d3f02c01649d48c8a738fbce235de87249.yml -openapi_spec_hash: 2925179e6cb8a682f1b91b06e26f6479 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54523481562279a6bf23bd113b5763d09daf9e4a5659d431386b5de79a42d098.yml +openapi_spec_hash: b6c20c5dec8672ebfe91e83f616265c8 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c0b1f550..e1791181 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( - * 'accusamus', - * ); + * 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 d9ad63e4..cfbb6b73 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( - * 'itaque', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..b01e4fef 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', + * 'esse', * { 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', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9ddb3928..9d7c2b24 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('odio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'doloribus', + * { + * 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('odio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'doloribus', + * { 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 a9767818..e20f70d1 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 c9a094cf..2b04cbb2 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 5d0bf032..a6f27139 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( - * 'numquam', + * 'deleniti', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sapiente', + * 'asperiores', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('omnis'); + * const response = await client.smartLinks.listFans('sint'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'earum', + * 'vel', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nemo'); + * await client.smartLinks.retrieveCohortArps('consequatur'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatum', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 88b22326..74eaf4fe 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( - * 'porro', + * 'culpa', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('porro', { + * await client.stories.highlights.removeStory('culpa', { * 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 363d5e3b..ee0b4d12 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( - * 'sed', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'sed', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('illum', { + * await client.trackingLinks.getCohortArps('praesentium', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'beatae', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e0e7e8d5..a291d4fe 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( - * 'commodi', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'commodi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('libero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'veniam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('saepe', { + * await client.trialLinks.retrieveCohortArps('error', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolores', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 23f22b3c..9d1fbfce 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: 'eqcwehrlenihhhotpsjqwmzb' }, + * { name: 'wrzsqylanxp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index cba64f6d..c1cb7513 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('accusamus'); + 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 f1844101..a1ba7b39 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: 'error', - auth_type: 'raw_data', - cookies: 'repellat', + auth_id: 'non', + auth_type: 'mobile_app', + cookies: 'dolor', customProxy: { host: 'proxy.example.com', - password: 'xB;whh~C', + password: 'M`9Jn~WH.%Z\\*', port: 8080, - username: 'cupiditate', + username: 'enim', }, - email: 'jeramie36@example.org', + email: 'schuster.leanna@example.org', force_connect: true, - name: 'vero', - password: 'P7B+M*', + name: 'id', + password: 'gpgtT\\oN/W}6sSzbk@R8', proxyCountry: 'gb', - user_agent: 'odit', - xbc: 'velit', + user_agent: 'nemo', + xbc: 'dolorem', }, { 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 9bb8cbf3..b159b247 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('rerum', { 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('rerum', { 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 e6c1db3e..603fde04 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('esse', { 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('esse', { 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('esse', { 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('esse', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 25333899..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d34fc3c9..34af9e6c 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('odio', { + const responsePromise = client.posts.comments.create('doloribus', { 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('odio', { + const response = await client.posts.comments.create('doloribus', { 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('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('doloribus', { 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('odio', { + const response = await client.posts.comments.list('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 4ec8acc7..fd74b68f 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 b643af69..96d399de 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index b490f24d..f32c87c6 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: ['pcmuxcvkgmrlnuezuljrwcsmg'] }, + filter: { tags: ['wvyozqzggoffp'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('numquam'); + const responsePromise = client.smartLinks.listClicks('deleniti'); 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( - 'numquam', + 'deleniti', { 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('sapiente'); + const responsePromise = client.smartLinks.listConversions('asperiores'); 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( - 'sapiente', + 'asperiores', { 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('omnis'); + const responsePromise = client.smartLinks.listFans('sint'); 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( - 'omnis', + 'sint', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('earum'); + const responsePromise = client.smartLinks.listSpenders('vel'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'earum', + 'vel', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nemo'); + const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'nemo', + 'consequatur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatum'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 414b2292..c969630d 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: 'qwjzwqgvgrkqkrtwgwklb', tags: ['ierepwvtimcx'] }, + filter: { search: 'wvikcsmznbozxqnnfd', tags: ['nctikjbek'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'atrplulevxayplamsz', tags: ['boequnppizvytxsyjodfb'] }, + filter: { search: 'zjzxzuncpbgaighcqqf', tags: ['fsh'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vcfgpjftxkxfiml', - tags: ['xgeofngpt'], + search: 'blzlrrdxoipgdgyinufj', + tags: ['diubermviym'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ijdkzkteqrdahcfovc', - tags: ['lucdrvwoh'], + include_smart_links: false, + search: 'lfqkyhsmpdwjtsjdpnz', + tags: ['mhhwp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 81711f71..14df1b81 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('porro', { + const responsePromise = client.stories.highlights.addStory('culpa', { 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('porro', { + const response = await client.stories.highlights.addStory('culpa', { 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('porro', { + const responsePromise = client.stories.highlights.removeStory('culpa', { 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('porro', { + const response = await client.stories.highlights.removeStory('culpa', { 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 a8de6eaf..aa581944 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nobis', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('praesentium', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('illum', { + const response = await client.trackingLinks.getCohortArps('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ 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('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,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('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 2a1411fe..bf3b2d7b 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('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('libero', { 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('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('veniam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('veniam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('saepe', { + const responsePromise = client.trialLinks.retrieveCohortArps('error', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('saepe', { + const response = await client.trialLinks.retrieveCohortArps('error', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dolores', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dolores', { + 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 4d031bdc..066b4182 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: 'eqcwehrlenihhhotpsjqwmzb', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wrzsqylanxp' }); 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: 'eqcwehrlenihhhotpsjqwmzb', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wrzsqylanxp' }); }); // Mock server tests are disabled From 4ee500fa05f6b57589247227e377be2215b1665b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 19:12:38 +0000 Subject: [PATCH 296/309] 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 +- .../saved-for-later/posts/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 | 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/queue.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 | 22 ++++++++--------- 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 | 6 +++-- 27 files changed, 115 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index ffbca103..3ffd23d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-54523481562279a6bf23bd113b5763d09daf9e4a5659d431386b5de79a42d098.yml -openapi_spec_hash: b6c20c5dec8672ebfe91e83f616265c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b9c6a945597d22e38691667dfa24635915cb1f4b7fee3f08de507ece6fbc90fb.yml +openapi_spec_hash: efd4f7e4a51f79cc451e59a49f09671c config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e1791181..fea649df 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('cumque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index cfbb6b73..97f9508f 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( - * 'rerum', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index b01e4fef..8ef9d599 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( - * 'esse', + * '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( - * 'esse', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9d7c2b24..308ae596 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( - * 'doloribus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('vel', { + * 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( - * 'doloribus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('vel', { + * 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 e20f70d1..599a9525 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 2b04cbb2..41feb4c0 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 a6f27139..6087ec62 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( - * 'deleniti', - * ); + * const response = await client.smartLinks.listClicks('non'); * ``` */ listClicks( @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sint'); + * const response = await client.smartLinks.listFans( + * 'accusamus', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'vel', + * 'est', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consequatur'); + * await client.smartLinks.retrieveCohortArps('ipsum'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'est', + * 'libero', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 74eaf4fe..354755e2 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( - * 'culpa', + * 'reprehenderit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('culpa', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'reprehenderit', + * { + * 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 ee0b4d12..e649c94a 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( - * 'nobis', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nobis', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('praesentium', { + * await client.trackingLinks.getCohortArps('excepturi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quia', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a291d4fe..50d133ff 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( - * 'libero', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('amet', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('libero', { + * const trialLink = await client.trialLinks.delete('amet', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'veniam', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('error', { + * await client.trialLinks.retrieveCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'harum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9d1fbfce..6b97aec2 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: 'wrzsqylanxp' }, + * { name: 'wkiyutfpcwvrhmnhqhvpm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1cb7513..11e9246d 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('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 a1ba7b39..0e63e0ad 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: 'mobile_app', - cookies: 'dolor', + auth_id: 'sequi', + auth_type: 'raw_data', + cookies: 'recusandae', customProxy: { host: 'proxy.example.com', - password: 'M`9Jn~WH.%Z\\*', + password: 'A_L[GJA%++w2"', port: 8080, - username: 'enim', + username: 'illum', }, - email: 'schuster.leanna@example.org', - force_connect: true, - name: 'id', - password: 'gpgtT\\oN/W}6sSzbk@R8', - proxyCountry: 'gb', - user_agent: 'nemo', - xbc: 'dolorem', + email: 'wava65@example.net', + force_connect: false, + name: 'dicta', + password: 'nogGu^)tHK', + proxyCountry: 'uk', + user_agent: 'expedita', + xbc: 'blanditiis', }, { 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 b159b247..9b363f6f 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('rerum', { + 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('rerum', { + 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 603fde04..a65d65ec 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('esse', { + 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('esse', { + 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('esse', { + 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('esse', { + 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 70f616cd..42643a65 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: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 34af9e6c..9b7aaa77 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('doloribus', { + const responsePromise = client.posts.comments.create('vel', { 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('doloribus', { + const response = await client.posts.comments.create('vel', { 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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('vel', { 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('doloribus', { + const response = await client.posts.comments.list('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 fd74b68f..8e5b0566 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 96d399de..c1510622 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 f32c87c6..60813fd2 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: ['wvyozqzggoffp'] }, + filter: { tags: ['lkfgwkbqouxlaoefhflkvw'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('deleniti'); + const responsePromise = client.smartLinks.listClicks('non'); 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( - 'deleniti', + 'non', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('sint'); + const responsePromise = client.smartLinks.listFans('accusamus'); 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( - 'sint', + 'accusamus', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('vel'); + const responsePromise = client.smartLinks.listSpenders('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'est', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); + const responsePromise = client.smartLinks.retrieveCohortArps('ipsum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'ipsum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('libero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 c969630d..41caa710 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: 'wvikcsmznbozxqnnfd', tags: ['nctikjbek'] }, + filter: { search: 'ltqgmm', tags: ['ykhxdpxejsaqllesyozo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zjzxzuncpbgaighcqqf', tags: ['fsh'] }, + filter: { search: 'jknlyszpviedhbntec', tags: ['uiundgwwxfjnfdtnnmaqssm'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'blzlrrdxoipgdgyinufj', - tags: ['diubermviym'], + search: 'cohfq', + tags: ['ipyehbxaizllhgmqpbanq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'lfqkyhsmpdwjtsjdpnz', - tags: ['mhhwp'], + include_smart_links: true, + search: 'ovhjclizq', + tags: ['svjoxehwdubqqjkjqhfbwppzd'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 14df1b81..594b98ef 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('culpa', { + const responsePromise = client.stories.highlights.addStory('reprehenderit', { 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('culpa', { + const response = await client.stories.highlights.addStory('reprehenderit', { 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('culpa', { + const responsePromise = client.stories.highlights.removeStory('reprehenderit', { 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('culpa', { + const response = await client.stories.highlights.removeStory('reprehenderit', { 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 aa581944..98cba109 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dicta', { 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('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('praesentium', { + const responsePromise = client.trackingLinks.getCohortArps('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('praesentium', { + const response = await client.trackingLinks.getCohortArps('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,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('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +134,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('voluptate', { 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 bf3b2d7b..00728171 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('amet', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('veniam', { + const responsePromise = client.trialLinks.listSubscribers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('veniam', { + const response = await client.trialLinks.listSubscribers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('error', { + const responsePromise = client.trialLinks.retrieveCohortArps('dolore', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('error', { + const response = await client.trialLinks.retrieveCohortArps('dolore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('harum', { 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 066b4182..97fff036 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: 'wrzsqylanxp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'wkiyutfpcwvrhmnhqhvpm', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,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: 'wrzsqylanxp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'wkiyutfpcwvrhmnhqhvpm' }); }); // Mock server tests are disabled From d3a1a78dbe6800f3c034a2d8cce76b5ac5f087b1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 02:12:39 +0000 Subject: [PATCH 297/309] 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/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 +- .../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/queue.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 | 14 +++++----- .../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 | 6 ++--- 27 files changed, 115 insertions(+), 121 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ffd23d7..58fdc0db 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b9c6a945597d22e38691667dfa24635915cb1f4b7fee3f08de507ece6fbc90fb.yml -openapi_spec_hash: efd4f7e4a51f79cc451e59a49f09671c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fde1538b3660cf3169847059843c62824c7d00c05da0aa089b1d99baabdcb978.yml +openapi_spec_hash: 9e8ba04fb2d0ed74fb6ebbbbe0d9fb54 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fea649df..007c7078 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('cumque'); + * const response = await client.accounts.disconnect('error'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 97f9508f..76c5fd8c 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', + * 'dolore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ef9d599..a7994fcb 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', + * 'cum', * { 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', + * 'cum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 308ae596..9d7c2b24 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'doloribus', + * { + * 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'doloribus', + * { 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 41feb4c0..c9a094cf 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 6087ec62..c754a96a 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('non'); + * const response = await client.smartLinks.listClicks('vel'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'asperiores', + * 'nemo', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'accusamus', - * ); + * const response = await client.smartLinks.listFans('velit'); * ``` */ 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('ipsum'); + * await client.smartLinks.retrieveCohortArps('sint'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'libero', + * 'ut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 354755e2..46c335d7 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( - * 'reprehenderit', + * 'sit', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'reprehenderit', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('sit', { + * 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 e649c94a..528c7c2c 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( - * 'dicta', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dicta', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('excepturi', { + * await client.trackingLinks.getCohortArps('maiores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'voluptate', - * { 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 50d133ff..e7344dd5 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('amet', { + * const trialLink = await client.trialLinks.retrieve('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('amet', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatem', + * 'laboriosam', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolore', { + * await client.trialLinks.retrieveCohortArps('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'harum', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6b97aec2..95766821 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: 'wkiyutfpcwvrhmnhqhvpm' }, + * { name: 'iasfqjfh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 11e9246d..09f159a0 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('error'); 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 0e63e0ad..5c9bd2c2 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: 'sequi', + auth_id: 'reiciendis', auth_type: 'raw_data', - cookies: 'recusandae', + cookies: 'nostrum', customProxy: { host: 'proxy.example.com', - password: 'A_L[GJA%++w2"', + password: '*r?N[6t$1+:3r;d', port: 8080, - username: 'illum', + username: 'ut', }, - email: 'wava65@example.net', - force_connect: false, - name: 'dicta', - password: 'nogGu^)tHK', + email: 'kulas.ellie@example.com', + force_connect: true, + name: 'blanditiis', + password: 'Mc:3r/S7Ks(ubGNXq#', proxyCountry: 'uk', - user_agent: 'expedita', - xbc: 'blanditiis', + user_agent: 'at', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d6..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9b363f6f..afa43692 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('dolore', { 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('dolore', { 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 a65d65ec..8020146d 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('cum', { 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('cum', { 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('cum', { 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('cum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a65..14dcb2e9 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: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 9b7aaa77..34af9e6c 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('vel', { + const responsePromise = client.posts.comments.create('doloribus', { 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('vel', { + const response = await client.posts.comments.create('doloribus', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('doloribus', { 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('vel', { + const response = await client.posts.comments.list('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 c1510622..b643af69 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/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1ce..6b1dc2fd 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 60813fd2..eced5030 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: ['lkfgwkbqouxlaoefhflkvw'] }, + filter: { tags: ['a'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('non'); + const responsePromise = client.smartLinks.listClicks('vel'); 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( - 'non', + 'vel', { 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('asperiores'); + const responsePromise = client.smartLinks.listConversions('nemo'); 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( - 'asperiores', + 'nemo', { 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('accusamus'); + const responsePromise = client.smartLinks.listFans('velit'); 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( - 'accusamus', + 'velit', { has_messages: true, limit: 100, @@ -188,7 +188,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; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ipsum'); + const responsePromise = client.smartLinks.retrieveCohortArps('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ipsum', + 'sint', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('libero'); + const responsePromise = client.smartLinks.retrieveStats('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 41caa710..547f586f 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: 'ltqgmm', tags: ['ykhxdpxejsaqllesyozo'] }, + filter: { search: 'dsekfcneofhgnlwh', tags: ['eggchoaxwsuf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jknlyszpviedhbntec', tags: ['uiundgwwxfjnfdtnnmaqssm'] }, + filter: { search: 'oohyjnwwafuiqz', tags: ['vjf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cohfq', - tags: ['ipyehbxaizllhgmqpbanq'], + include_smart_links: false, + search: 'hmjosbhaciarmevicodhlbp', + tags: ['vijradkzop'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ovhjclizq', - tags: ['svjoxehwdubqqjkjqhfbwppzd'], + search: 'pajvejnywhoz', + tags: ['rcmbmunlvphkpaz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 594b98ef..7eb3d1f5 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('reprehenderit', { + const responsePromise = client.stories.highlights.addStory('sit', { 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('reprehenderit', { + const response = await client.stories.highlights.addStory('sit', { 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('reprehenderit', { + const responsePromise = client.stories.highlights.removeStory('sit', { 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('reprehenderit', { + const response = await client.stories.highlights.removeStory('sit', { 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 98cba109..9a7d9aa6 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('dicta', { 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('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dicta', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dicta', { 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('excepturi', { + const responsePromise = client.trackingLinks.getCohortArps('maiores', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('excepturi', { + const response = await client.trackingLinks.getCohortArps('maiores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('voluptate', { 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; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('voluptate', { + 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 00728171..90b85dc0 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('amet', { 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('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('amet', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptatem', { + const responsePromise = client.trialLinks.listSubscribers('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptatem', { + const response = await client.trialLinks.listSubscribers('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolore', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolore', { + const response = await client.trialLinks.retrieveCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('cupiditate', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('harum', { + const response = await client.trialLinks.retrieveStats('cupiditate', { 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 97fff036..31a0f300 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: 'wkiyutfpcwvrhmnhqhvpm', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iasfqjfh' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,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: 'wkiyutfpcwvrhmnhqhvpm' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iasfqjfh' }); }); // Mock server tests are disabled From 26bfd2f4fa3ec0dac275ad7118b76c23e0ed6795 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 07:12:37 +0000 Subject: [PATCH 298/309] 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 | 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 | 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 +- tests/api-resources/queue.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 | 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 | 8 ++++-- 27 files changed, 116 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index 58fdc0db..9eb3ad29 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-fde1538b3660cf3169847059843c62824c7d00c05da0aa089b1d99baabdcb978.yml -openapi_spec_hash: 9e8ba04fb2d0ed74fb6ebbbbe0d9fb54 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c5c818de3fd3d821922e34b78517664e693318483af9ce1b693ee9169e0944b.yml +openapi_spec_hash: 5351897a61c6ed17afb34b621655fab1 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 007c7078..45eea12d 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('error'); + * const response = await client.accounts.disconnect('minima'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 76c5fd8c..d8e44573 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( - * 'dolore', + * 'aliquid', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a7994fcb..0f98a3ca 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( - * 'cum', + * '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( - * 'cum', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9d7c2b24..1044e7ec 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( - * 'doloribus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('sed', { + * 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( - * 'doloribus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('sed', { + * 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 599a9525..09d6973d 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 c754a96a..f105811b 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('vel'); + * const response = await client.smartLinks.listClicks( + * 'fugit', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nemo', + * 'ducimus', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('velit'); + * const response = await client.smartLinks.listFans('enim'); * ``` */ 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( + * 'minus', + * ); * ``` */ listSpenders( @@ -143,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sint'); + * await client.smartLinks.retrieveCohortArps('ex'); * ``` */ retrieveCohortArps( @@ -165,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ut', + * 'dicta', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 46c335d7..c1319d5d 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( - * 'sit', + * 'excepturi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sit', { + * await client.stories.highlights.removeStory('excepturi', { * 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 528c7c2c..cd411eb9 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', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'facere', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('maiores', { + * await client.trackingLinks.getCohortArps('ipsam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,7 +133,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('in', { + * const response = await client.trackingLinks.getStats('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e7344dd5..db7606ed 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( + * 'deserunt', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'deserunt', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'laboriosam', + * 'voluptas', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sint', { + * await client.trialLinks.retrieveCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'cupiditate', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 95766821..61832a12 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: 'iasfqjfh' }, + * { name: 'wfpjzauizqnxqdflaqydas' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 09f159a0..727ee3f6 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('error'); + const responsePromise = client.accounts.disconnect('minima'); 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 5c9bd2c2..d5ef7337 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: 'reiciendis', + auth_id: 'et', auth_type: 'raw_data', - cookies: 'nostrum', + cookies: 'odit', customProxy: { host: 'proxy.example.com', - password: '*r?N[6t$1+:3r;d', + password: '"Q\\SA+/qkm.`', port: 8080, - username: 'ut', + username: 'quaerat', }, - email: 'kulas.ellie@example.com', + email: 'xkassulke@example.org', force_connect: true, - name: 'blanditiis', - password: 'Mc:3r/S7Ks(ubGNXq#', + name: 'maiores', + password: 'X%XK=M', proxyCountry: 'uk', - user_agent: 'at', - xbc: 'et', + user_agent: 'vel', + xbc: 'sint', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index afa43692..9c75b059 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('dolore', { + const responsePromise = client.engagement.messages.getMessageBuyers('aliquid', { 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('dolore', { + const response = await client.engagement.messages.getMessageBuyers('aliquid', { 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 8020146d..9c53e9e5 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('cum', { + 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('cum', { + 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('cum', { + 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('cum', { + const response = await client.media.vault.lists.media.remove('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e9..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 34af9e6c..25a7cac1 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('doloribus', { + const responsePromise = client.posts.comments.create('sed', { 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('doloribus', { + const response = await client.posts.comments.create('sed', { 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('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sed', { 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('doloribus', { + const response = await client.posts.comments.list('sed', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 8e5b0566..e2edc676 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index eced5030..4669b557 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: ['a'] }, + filter: { tags: ['qybkqzvowuzqatceghir'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('vel'); + const responsePromise = client.smartLinks.listClicks('fugit'); 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( - 'vel', + 'fugit', { 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('nemo'); + const responsePromise = client.smartLinks.listConversions('ducimus'); 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( - 'nemo', + 'ducimus', { 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('velit'); + const responsePromise = client.smartLinks.listFans('enim'); 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( - 'velit', + 'enim', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('minus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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', + 'minus', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sint'); + const responsePromise = client.smartLinks.retrieveCohortArps('ex'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'sint', + 'ex', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ut'); + const responsePromise = client.smartLinks.retrieveStats('dicta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'dicta', { 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 547f586f..718fedde 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: 'dsekfcneofhgnlwh', tags: ['eggchoaxwsuf'] }, + filter: { search: 'tdgbdxbcmmtugcspcr', tags: ['z'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oohyjnwwafuiqz', tags: ['vjf'] }, + filter: { search: 'aprrzgtkfmjevxmokexp', tags: ['uj'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'hmjosbhaciarmevicodhlbp', - tags: ['vijradkzop'], + search: 'bs', + tags: ['hwuixyqlibftwefgeprem'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'pajvejnywhoz', - tags: ['rcmbmunlvphkpaz'], + search: 'yxlamitwnqgmqdlpjxpcuzylr', + tags: ['dmgyvuqiqxvmjwlslv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7eb3d1f5..311190de 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('sit', { + const responsePromise = client.stories.highlights.addStory('excepturi', { 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('sit', { + const response = await client.stories.highlights.addStory('excepturi', { 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('sit', { + const responsePromise = client.stories.highlights.removeStory('excepturi', { 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('sit', { + const response = await client.stories.highlights.removeStory('excepturi', { 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 9a7d9aa6..5ebebb09 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('nam', { 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,14 +93,12 @@ 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('maiores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('maiores', { + const response = await client.trackingLinks.getCohortArps('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,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('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('at', { 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 90b85dc0..b93ad84b 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('deserunt', { 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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('laboriosam', { + const responsePromise = client.trialLinks.listSubscribers('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('laboriosam', { + const response = await client.trialLinks.listSubscribers('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sint', { + const response = await client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('cupiditate', { - 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('cupiditate', { + 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 31a0f300..34e3d44b 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: 'iasfqjfh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'wfpjzauizqnxqdflaqydas', + }); 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: 'iasfqjfh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'wfpjzauizqnxqdflaqydas', + }); }); // Mock server tests are disabled From 54d9204d9e9b9f7dd0df69b1eefb7ffe9fd115c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 22:12:38 +0000 Subject: [PATCH 299/309] 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 | 4 +-- .../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 | 20 +++++++------- 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 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- 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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 27 files changed, 115 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9eb3ad29..048c06c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-4c5c818de3fd3d821922e34b78517664e693318483af9ce1b693ee9169e0944b.yml -openapi_spec_hash: 5351897a61c6ed17afb34b621655fab1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-59f6ed5f969ed093a6cad718e002edd9b104afe6adba3e72ea61c853d66b39ed.yml +openapi_spec_hash: b8f10e85607e9b2809210f4481efae3f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 45eea12d..df8ece79 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('minima'); + * const response = await client.accounts.disconnect( + * 'expedita', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d8e44573..3a3ac47e 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( - * 'aliquid', - * { 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 0f98a3ca..ac5f3fc8 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', + * 'in', * { 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', + * 'in', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1044e7ec..8ef94b71 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('sed', { + * const comment = await client.posts.comments.create('quas', { * 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('sed', { + * const comments = await client.posts.comments.list('quas', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973d..e20f70d1 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 c9a094cf..2b04cbb2 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 f105811b..ef0cae0d 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( - * 'fugit', + * 'optio', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ducimus', + * 'quos', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('enim'); + * const response = await client.smartLinks.listFans('vel'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'minus', + * 'pariatur', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ex'); + * await client.smartLinks.retrieveCohortArps('fuga'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dicta', + * 'suscipit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c1319d5d..209a377c 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( - * 'excepturi', + * '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('excepturi', { + * 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 cd411eb9..10505b3d 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( - * 'nam', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nam', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ipsam', { + * await client.trackingLinks.getCohortArps('iste', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('at', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'dolorem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index db7606ed..7d8fda22 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( - * 'deserunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('illo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,10 +87,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'deserunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('illo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptas', + * 'facilis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('et', { + * await client.trialLinks.retrieveCohortArps('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsam', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 61832a12..bf7156d8 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: 'wfpjzauizqnxqdflaqydas' }, + * { name: 'flsuldej' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 727ee3f6..50bb25fb 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('minima'); + const responsePromise = client.accounts.disconnect('expedita'); 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 d5ef7337..58af8f13 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_type: 'raw_data', - cookies: 'odit', + auth_id: 'consequatur', + auth_type: 'email_password', + cookies: 'nihil', customProxy: { host: 'proxy.example.com', - password: '"Q\\SA+/qkm.`', + password: 's!kez.F', port: 8080, - username: 'quaerat', + username: 'autem', }, - email: 'xkassulke@example.org', - force_connect: true, - name: 'maiores', - password: 'X%XK=M', - proxyCountry: 'uk', - user_agent: 'vel', - xbc: 'sint', + email: 'lewis82@example.net', + force_connect: false, + name: 'saepe', + password: ',7u(pyX~|qk]N(', + proxyCountry: 'gb', + user_agent: 'et', + xbc: 'provident', }, { 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 9c75b059..32dab22b 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('aliquid', { + 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('aliquid', { + 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 9c53e9e5..4ab44e87 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('in', { 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('in', { 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('in', { 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('in', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..42643a65 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 25a7cac1..cfbd67f6 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('sed', { + const responsePromise = client.posts.comments.create('quas', { 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('sed', { + const response = await client.posts.comments.create('quas', { 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('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quas', { 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('sed', { + const response = await client.posts.comments.list('quas', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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 e2edc676..fd74b68f 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 b643af69..96d399de 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 4669b557..852ecdf9 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: ['qybkqzvowuzqatceghir'] }, + filter: { tags: ['xtospycopfhyouuiknw'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('fugit'); + const responsePromise = client.smartLinks.listClicks('optio'); 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( - 'fugit', + 'optio', { 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('ducimus'); + const responsePromise = client.smartLinks.listConversions('quos'); 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( - 'ducimus', + 'quos', { 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('enim'); + const responsePromise = client.smartLinks.listFans('vel'); 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( - 'enim', + 'vel', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('minus'); + const responsePromise = client.smartLinks.listSpenders('pariatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'minus', + 'pariatur', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ex'); + const responsePromise = client.smartLinks.retrieveCohortArps('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'ex', + 'fuga', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dicta'); + const responsePromise = client.smartLinks.retrieveStats('suscipit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'dicta', + 'suscipit', { 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 718fedde..f26764b4 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: 'tdgbdxbcmmtugcspcr', tags: ['z'] }, + filter: { search: 'efsmqwogksqnavsbg', tags: ['oankopjeulxipwotpm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'aprrzgtkfmjevxmokexp', tags: ['uj'] }, + filter: { search: 'pquhriihifnhfkycwhpeg', tags: ['drtqmoycmaqydh'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bs', - tags: ['hwuixyqlibftwefgeprem'], + include_smart_links: true, + search: 'vkrbixwxgnkgbdaxqlz', + tags: ['kqvnxojkwhsklg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'yxlamitwnqgmqdlpjxpcuzylr', - tags: ['dmgyvuqiqxvmjwlslv'], + include_smart_links: false, + search: 'akhzljfjsaebttgz', + tags: ['stneostzbqjecfxxxujd'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 311190de..f95a25b0 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('excepturi', { + 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('excepturi', { + 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('excepturi', { + 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('excepturi', { + 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 5ebebb09..52d34366 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('libero', { 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('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ipsam', { + const response = await client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('at', { + const response = await client.trackingLinks.getStats('dolorem', { 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 b93ad84b..982e590a 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('deserunt', { 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('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('deserunt', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptas', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptas', { + const response = await client.trialLinks.listSubscribers('facilis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('minima', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('et', { + const response = await client.trialLinks.retrieveCohortArps('minima', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ipsam', { + const response = await client.trialLinks.retrieveStats('quae', { 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 34e3d44b..5965419a 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: 'wfpjzauizqnxqdflaqydas', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'flsuldej' }); 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: 'wfpjzauizqnxqdflaqydas', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'flsuldej' }); }); // Mock server tests are disabled From 86dcb4aae6c967c4f3aed9042601d443afd669d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 01:12:36 +0000 Subject: [PATCH 300/309] 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 ++++++++-------- 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/queue.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 +- .../shared-trial-links.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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 4 +-- 30 files changed, 116 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 048c06c2..c0a0a997 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-59f6ed5f969ed093a6cad718e002edd9b104afe6adba3e72ea61c853d66b39ed.yml -openapi_spec_hash: b8f10e85607e9b2809210f4481efae3f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c3de17b22d9196b7a0ae64443eddbe189ed8d759712960b5ded40063fc6a1183.yml +openapi_spec_hash: c6f494bdf360eccf1c59eb4763a2902b config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index df8ece79..396b2255 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( - * 'expedita', - * ); + * const response = await client.accounts.disconnect('eaque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a3ac47e..120ae8e6 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('et', { + * await client.engagement.messages.getMessageBuyers('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ac5f3fc8..685b16a6 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( - * 'in', + * '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( - * 'in', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 8ef94b71..3d3d1a80 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('quas', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'eligendi', + * { + * 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('quas', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'eligendi', + * { 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 e20f70d1..599a9525 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 2b04cbb2..a84ff073 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 ef0cae0d..240ddf70 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( - * 'optio', + * 'velit', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quos', + * 'perferendis', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('vel'); + * 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( - * 'pariatur', + * 'quos', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('fuga'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -168,9 +168,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats( - * 'suscipit', - * ); + * const response = await client.smartLinks.retrieveStats('a'); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 209a377c..201d4506 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', + * 'quisquam', * { * 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('quisquam', { * 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 10505b3d..91ca0969 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( - * 'libero', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'libero', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iste', { + * await client.trackingLinks.getCohortArps('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'dolorem', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 7d8fda22..f8a55c1f 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( + * 'omnis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('illo', { + * const trialLink = await client.trialLinks.delete('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'facilis', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('minima', { + * await client.trialLinks.retrieveCohortArps('alias', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quae', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index bf7156d8..9be9fa1d 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: 'flsuldej' }, + * { name: 'chnpxpginacelm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 50bb25fb..6f1d8f3f 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('expedita'); + const responsePromise = client.accounts.disconnect('eaque'); 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 58af8f13..f5920e56 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: 'consequatur', - auth_type: 'email_password', - cookies: 'nihil', + auth_id: 'et', + auth_type: 'raw_data', + cookies: 'rerum', customProxy: { host: 'proxy.example.com', - password: 's!kez.F', + password: 'a~&,cjRZnBa!HpzZ8Zp', port: 8080, - username: 'autem', + username: 'atque', }, - email: 'lewis82@example.net', + email: 'jovanny.dickens@example.net', force_connect: false, - name: 'saepe', - password: ',7u(pyX~|qk]N(', - proxyCountry: 'gb', - user_agent: 'et', - xbc: 'provident', + name: 'et', + password: ',#(yZg@3ul5', + proxyCountry: 'uk', + user_agent: 'quo', + xbc: 'voluptatem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32dab22b..84d654c4 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('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('et', { + 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 4ab44e87..1697eb4a 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('in', { + 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('in', { + 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('in', { + 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('in', { + 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 42643a65..69b39e44 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 cfbd67f6..2bf8f4c9 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('quas', { + const responsePromise = client.posts.comments.create('eligendi', { 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('quas', { + const response = await client.posts.comments.create('eligendi', { 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('quas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eligendi', { 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('quas', { + const response = await client.posts.comments.list('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 fd74b68f..8e5b0566 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 96d399de..02883e18 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 6b1dc2fd..d13ad1ce 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 852ecdf9..a0661a62 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: ['xtospycopfhyouuiknw'] }, + filter: { tags: ['ikhrkuvuokiviobyjd'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('optio'); + const responsePromise = client.smartLinks.listClicks('velit'); 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( - 'optio', + 'velit', { 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('quos'); + const responsePromise = client.smartLinks.listConversions('perferendis'); 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( - 'quos', + 'perferendis', { 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('vel'); + 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( - 'vel', + 'et', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('pariatur'); + const responsePromise = client.smartLinks.listSpenders('quos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'pariatur', + 'quos', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('fuga'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'fuga', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('suscipit'); + const responsePromise = client.smartLinks.retrieveStats('a'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'suscipit', + '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 f26764b4..e2872c3d 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: 'efsmqwogksqnavsbg', tags: ['oankopjeulxipwotpm'] }, + filter: { search: 'xuiavmsiakiytchnglihyrtr', tags: ['yibgbjnscbw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'pquhriihifnhfkycwhpeg', tags: ['drtqmoycmaqydh'] }, + filter: { search: 'cosshxcwxadfjoycajuusrux', tags: ['mgjyzqgtm'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'vkrbixwxgnkgbdaxqlz', - tags: ['kqvnxojkwhsklg'], + include_smart_links: false, + search: 'mzkjakugdurwru', + tags: ['lfglcfnoibcvtbjtli'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'akhzljfjsaebttgz', - tags: ['stneostzbqjecfxxxujd'], + include_smart_links: true, + search: 'opjioqymafdvzfzfme', + tags: ['hpvmdawensqabgekn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f95a25b0..61ba21c9 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('quisquam', { 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('quisquam', { 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('quisquam', { 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('quisquam', { 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 52d34366..f07ca065 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eum', { 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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iste', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iste', { + const response = await client.trackingLinks.getCohortArps('sint', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('dolorem', { 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; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('dolorem', { + 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 982e590a..52db3dba 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('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('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('eos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('eos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('minima', { + const responsePromise = client.trialLinks.retrieveCohortArps('alias', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('minima', { + const response = await client.trialLinks.retrieveCohortArps('alias', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quae', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quae', { + 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 5965419a..aae71bdb 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: 'flsuldej' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'chnpxpginacelm' }); 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: 'flsuldej' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'chnpxpginacelm' }); }); // Mock server tests are disabled From 42e360e01891aa83c6094b5818a20d47661c9c5b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 02:12:38 +0000 Subject: [PATCH 301/309] 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 | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 13 +++++----- 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 | 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 | 16 ++++++------ .../user-lists/user-lists.test.ts | 8 ++++-- 26 files changed, 110 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index c0a0a997..fc29c023 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c3de17b22d9196b7a0ae64443eddbe189ed8d759712960b5ded40063fc6a1183.yml -openapi_spec_hash: c6f494bdf360eccf1c59eb4763a2902b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9398642e6c26364b71f9cb6e90cd98f170857ca20d7af2fc583c4f6d6604eab.yml +openapi_spec_hash: 89fd9e3730232343cc2cff2e9a4bfb67 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 396b2255..67f73932 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('eaque'); + * const response = await client.accounts.disconnect( + * 'consequatur', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 120ae8e6..3a3ac47e 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('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 685b16a6..2a29f7dc 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', + * 'eum', * { 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', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3d3d1a80..185f935b 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( - * 'eligendi', - * { - * 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( - * 'eligendi', - * { 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/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..2b04cbb2 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 240ddf70..c26ba164 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( - * 'velit', + * 'numquam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'perferendis', + * 'eum', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quos', + * 'consequatur', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('architecto'); * ``` */ retrieveCohortArps( @@ -168,7 +168,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats('a'); + * const response = await client.smartLinks.retrieveStats( + * 'voluptate', + * ); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 201d4506..dd3bc7c4 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( - * 'quisquam', + * 'vero', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quisquam', { + * await client.stories.highlights.removeStory('vero', { * 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 91ca0969..6c404e89 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( - * 'eum', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eum', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sint', { + * 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( - * 'fuga', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f8a55c1f..84f0e10a 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( - * 'omnis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('vel', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('omnis', { + * const trialLink = await client.trialLinks.delete('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('alias', { + * await client.trialLinks.retrieveCohortArps('dicta', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nostrum', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9be9fa1d..8beae228 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: 'chnpxpginacelm' }, + * { name: 'hqtllzuuivcezsonbpdvxfp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6f1d8f3f..33d4dda5 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('eaque'); + 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 f5920e56..8c1a10dd 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: 'deserunt', auth_type: 'raw_data', - cookies: 'rerum', + cookies: 'numquam', customProxy: { host: 'proxy.example.com', - password: 'a~&,cjRZnBa!HpzZ8Zp', + password: '3XB$G=(', port: 8080, - username: 'atque', + username: 'repellendus', }, - email: 'jovanny.dickens@example.net', - force_connect: false, - name: 'et', - password: ',#(yZg@3ul5', - proxyCountry: 'uk', - user_agent: 'quo', - xbc: 'voluptatem', + email: 'rheller@example.com', + force_connect: true, + name: 'sit', + password: 'V)k9]IqzD%ITRR`t^', + proxyCountry: 'us', + user_agent: 'id', + xbc: 'beatae', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..229de463 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: 'gb', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 84d654c4..32dab22b 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('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('id', { + 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 1697eb4a..79f29d71 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('eum', { 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('eum', { 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('eum', { 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('eum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e44..b0d96512 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: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 2bf8f4c9..a5ecaaf6 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('eligendi', { + 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('eligendi', { + 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('eligendi', { 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('eligendi', { + 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 ad49ad2e..9bf5999b 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/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e18..96d399de 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 a0661a62..3af642b0 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: ['ikhrkuvuokiviobyjd'] }, + filter: { tags: ['lruzkwjzidqfxyyogyvpgu'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('velit'); + const responsePromise = client.smartLinks.listClicks('numquam'); 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( - 'velit', + 'numquam', { 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('perferendis'); + 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( - 'perferendis', + '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('sed'); 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', + 'sed', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quos'); + const responsePromise = client.smartLinks.listSpenders('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'quos', + 'consequatur', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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', + 'architecto', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('a'); + const responsePromise = client.smartLinks.retrieveStats('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'voluptate', { 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 e2872c3d..a9b7544a 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: 'xuiavmsiakiytchnglihyrtr', tags: ['yibgbjnscbw'] }, + filter: { search: 'kbivfcatxghw', tags: ['vndfl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cosshxcwxadfjoycajuusrux', tags: ['mgjyzqgtm'] }, + filter: { search: 'inlhqxzdrtlhpfvkha', tags: ['aicszy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'mzkjakugdurwru', - tags: ['lfglcfnoibcvtbjtli'], + include_smart_links: true, + search: 'qbbezktuqgmpbomdkj', + tags: ['clidxrxvxo'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'opjioqymafdvzfzfme', - tags: ['hpvmdawensqabgekn'], + search: 'efjromqbt', + tags: ['adfnxr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 61ba21c9..e0c384fa 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('quisquam', { + 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('quisquam', { + 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('quisquam', { + 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('quisquam', { + 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 f07ca065..3dce3297 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('eum', { 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('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('eum', { 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; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('eum', { 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('sint', { 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; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('sint', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,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('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,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('libero', { 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 52db3dba..ccea257d 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -152,7 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('alias', { + const responsePromise = client.trialLinks.retrieveCohortArps('dicta', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -166,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('alias', { + const response = await client.trialLinks.retrieveCohortArps('dicta', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +176,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('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +188,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('dicta', { 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 aae71bdb..64b7b408 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: 'chnpxpginacelm' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'hqtllzuuivcezsonbpdvxfp', + }); 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: 'chnpxpginacelm' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'hqtllzuuivcezsonbpdvxfp', + }); }); // Mock server tests are disabled From b6faa832a3256aff91e88d97f7f4a84010af5e8b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 03:12:36 +0000 Subject: [PATCH 302/309] 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 | 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 | 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/queue.test.ts | 2 +- .../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 | 16 ++++++------ .../trial-links/trial-links.test.ts | 24 ++++++++--------- .../user-lists/user-lists.test.ts | 8 ++---- 26 files changed, 117 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index fc29c023..3af835da 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f9398642e6c26364b71f9cb6e90cd98f170857ca20d7af2fc583c4f6d6604eab.yml -openapi_spec_hash: 89fd9e3730232343cc2cff2e9a4bfb67 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-49fc77c46028d9dbd0bb60cf7119d7b31b9932f4d43833a4d34d8a982ecc21bf.yml +openapi_spec_hash: 8790d1a8a24eeb347d22f42e151a7b62 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 67f73932..06d37c8b 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('et'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 3a3ac47e..45a182b9 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( + * 'quis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2a29f7dc..6f8aff53 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( - * 'eum', + * '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( - * 'eum', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935b..7ba24347 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( + * 'omnis', + * { + * 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('et', { + * const comments = await client.posts.comments.list('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb2..a84ff073 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 c26ba164..6a51d688 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( - * 'numquam', + * 'voluptas', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eum', + * 'iste', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans( + * 'similique', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'consequatur', + * 'eveniet', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('architecto'); + * await client.smartLinks.retrieveCohortArps('a'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptate', + * 'quo', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index dd3bc7c4..bbdfc78b 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', + * 'quaerat', * { * 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('quaerat', { * 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 6c404e89..e7fd1829 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', + * 'nisi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'nisi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'libero', + * 'recusandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 84f0e10a..a5d78918 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('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'repellat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'repellat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eos', + * 'autem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dicta', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dicta', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8beae228..fcfdb47b 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: 'hqtllzuuivcezsonbpdvxfp' }, + * { name: 'zqjvvpbothufkwgde' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 33d4dda5..44b93157 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('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 8c1a10dd..1fc5cad5 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_type: 'raw_data', - cookies: 'numquam', + auth_id: 'ipsam', + auth_type: 'email_password', + cookies: 'aspernatur', customProxy: { host: 'proxy.example.com', - password: '3XB$G=(', + password: "C1@ZC=vVpTy:#'8`<(", port: 8080, - username: 'repellendus', + username: 'vel', }, - email: 'rheller@example.com', - force_connect: true, - name: 'sit', - password: 'V)k9]IqzD%ITRR`t^', - proxyCountry: 'us', - user_agent: 'id', - xbc: 'beatae', + email: 'gage.reilly@example.org', + force_connect: false, + name: 'voluptatem', + password: 'f81xfw', + proxyCountry: 'gb', + user_agent: 'et', + 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 32dab22b..1bf6241e 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('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('et', { + 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 79f29d71..0195dda8 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('eum', { + 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('eum', { + 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('eum', { + 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('eum', { + 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 b0d96512..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a5ecaaf6..94652680 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('omnis', { 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('omnis', { 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('omnis', { 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('omnis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 96d399de..02883e18 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 3af642b0..e4676221 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: ['lruzkwjzidqfxyyogyvpgu'] }, + filter: { tags: ['ogn'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('numquam'); + const responsePromise = client.smartLinks.listClicks('voluptas'); 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( - 'numquam', + 'voluptas', { 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('eum'); + const responsePromise = client.smartLinks.listConversions('iste'); 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( - 'eum', + 'iste', { 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('sed'); + const responsePromise = client.smartLinks.listFans('similique'); 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( - 'sed', + 'similique', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('consequatur'); + const responsePromise = client.smartLinks.listSpenders('eveniet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'consequatur', + 'eveniet', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('architecto'); + const responsePromise = client.smartLinks.retrieveCohortArps('a'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'architecto', + 'a', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptate'); + const responsePromise = client.smartLinks.retrieveStats('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'voluptate', + '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 a9b7544a..ae0b0efc 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: 'kbivfcatxghw', tags: ['vndfl'] }, + filter: { search: 'xbhdanaxifkzay', tags: ['tkezmvib'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'inlhqxzdrtlhpfvkha', tags: ['aicszy'] }, + filter: { search: 'jbzvlicrclkcqvbmpnumlkjti', tags: ['rbgyffrjhyxqxfvgrcpxjnoy'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'qbbezktuqgmpbomdkj', - tags: ['clidxrxvxo'], + search: 'bpggmosbnsmpb', + tags: ['gjydvdcyhsa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'efjromqbt', - tags: ['adfnxr'], + search: 'qrrowduzokvikfanvbjaje', + tags: ['kaffogmmyvwzaexgebgvyjqa'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e0c384fa..457290bf 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('quaerat', { 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('quaerat', { 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('quaerat', { 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('quaerat', { 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 3dce3297..2f649a3c 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('nisi', { 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('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,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('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('nisi', { 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('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('libero', { + const response = await client.trackingLinks.getStats('recusandae', { 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 ccea257d..a2f216c5 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('vel', { 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('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('vel', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('eos', { + const responsePromise = client.trialLinks.listSubscribers('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('eos', { + const response = await client.trialLinks.listSubscribers('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dicta', { - 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; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dicta', { + const response = await client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dicta', { 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; @@ -188,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dicta', { + 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 64b7b408..ea24616c 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: 'hqtllzuuivcezsonbpdvxfp', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zqjvvpbothufkwgde' }); 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: 'hqtllzuuivcezsonbpdvxfp', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zqjvvpbothufkwgde' }); }); // Mock server tests are disabled From 5fcccc3983bc22bbed85d777bd3e531d001e158a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 05:12:48 +0000 Subject: [PATCH 303/309] 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 ++++--- 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 +-- .../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 | 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 +-- 24 files changed, 107 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3af835da..859a5f56 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-49fc77c46028d9dbd0bb60cf7119d7b31b9932f4d43833a4d34d8a982ecc21bf.yml -openapi_spec_hash: 8790d1a8a24eeb347d22f42e151a7b62 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-06db74523f03042c5ff1ceca061f414c94e4425fcde24f73c1a3af3e445695bf.yml +openapi_spec_hash: 30b6996d3ac8cf110fd723be0a4ea15d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8b..6bb6558e 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('aut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 45a182b9..a385f3e0 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( - * 'quis', + * 'laudantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6f8aff53..5fc5386b 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', + * 'officiis', * { 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', + * 'officiis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7ba24347..bca70eaa 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( - * 'omnis', + * 'laudantium', * { * 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('omnis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'laudantium', + * { 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 6a51d688..56e2904f 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( - * 'voluptas', + * 'dolor', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'iste', + * 'facere', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'similique', + * 'doloribus', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eveniet', + * 'explicabo', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('a'); + * await client.smartLinks.retrieveCohortArps('nihil'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quo', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index bbdfc78b..56ecbee2 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( - * 'quaerat', + * 'doloremque', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quaerat', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'doloremque', + * { + * 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 e7fd1829..f82e6b83 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( - * 'nisi', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nisi', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'recusandae', + * 'vel', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a5d78918..b1f40c21 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', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('dolor', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'autem', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consectetur', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fcfdb47b..8b9be943 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: 'zqjvvpbothufkwgde' }, + * { name: 'dmgscsbdpgtavz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b93157..5756d5ab 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('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 1fc5cad5..41b19271 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: 'ipsam', + auth_id: 'porro', auth_type: 'email_password', - cookies: 'aspernatur', + cookies: 'cum', customProxy: { host: 'proxy.example.com', - password: "C1@ZC=vVpTy:#'8`<(", + password: 'Yzt#*/.yl8&5q"', port: 8080, - username: 'vel', + username: 'ipsum', }, - email: 'gage.reilly@example.org', - force_connect: false, - name: 'voluptatem', - password: 'f81xfw', + email: 'brown.letitia@example.com', + force_connect: true, + name: 'mollitia', + password: 'X$j^/M { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1bf6241e..909985e6 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('laudantium', { 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('laudantium', { 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 0195dda8..feefdd64 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('officiis', { 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('officiis', { 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('officiis', { 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('officiis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616cd..7b042946 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 94652680..ec0bb295 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('omnis', { + 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('omnis', { + 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('omnis', { 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('omnis', { + const response = await client.posts.comments.list('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index e4676221..c929f75a 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: ['ogn'] }, + filter: { tags: ['rupnxpib'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptas'); + 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( - 'voluptas', + '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('iste'); + const responsePromise = client.smartLinks.listConversions('facere'); 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( - 'iste', + 'facere', { 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('similique'); + const responsePromise = client.smartLinks.listFans('doloribus'); 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( - 'similique', + 'doloribus', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eveniet'); + const responsePromise = client.smartLinks.listSpenders('explicabo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'eveniet', + 'explicabo', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('a'); + const responsePromise = client.smartLinks.retrieveCohortArps('nihil'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'a', + 'nihil', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quo'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + '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 ae0b0efc..745530d0 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: 'xbhdanaxifkzay', tags: ['tkezmvib'] }, + filter: { search: 'cnrobehtylcf', tags: ['pbbhejchtyvrps'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jbzvlicrclkcqvbmpnumlkjti', tags: ['rbgyffrjhyxqxfvgrcpxjnoy'] }, + filter: { search: 'jomlhvcwgyjfzatsvhstc', tags: ['pamltz'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bpggmosbnsmpb', - tags: ['gjydvdcyhsa'], + include_smart_links: false, + search: 'di', + tags: ['dwbyrkd'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'qrrowduzokvikfanvbjaje', - tags: ['kaffogmmyvwzaexgebgvyjqa'], + include_smart_links: false, + search: 'ubqhljjtuq', + tags: ['mnctxjo'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 457290bf..5897fa10 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('quaerat', { + const responsePromise = client.stories.highlights.addStory('doloremque', { 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('quaerat', { + const response = await client.stories.highlights.addStory('doloremque', { 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('quaerat', { + const responsePromise = client.stories.highlights.removeStory('doloremque', { 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('quaerat', { + const response = await client.stories.highlights.removeStory('doloremque', { 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 2f649a3c..aa78dd82 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('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('maiores', { 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('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('maiores', { 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('dolore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,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('dolore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('recusandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('recusandae', { + const response = await client.trackingLinks.getStats('vel', { 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 a2f216c5..bb22d1cb 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('dolor', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('autem', { + const responsePromise = client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('autem', { + const response = await client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +164,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('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,9 +174,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('veritatis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -188,7 +186,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('veritatis', { 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 ea24616c..752b00ca 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: 'zqjvvpbothufkwgde' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dmgscsbdpgtavz' }); 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: 'zqjvvpbothufkwgde' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dmgscsbdpgtavz' }); }); // Mock server tests are disabled From bea549cdb8bbc70102d7a003a34d7531267cf977 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 16:12:37 +0000 Subject: [PATCH 304/309] 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/posts/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 | 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 +- tests/api-resources/queue.test.ts | 2 +- .../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 | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 109 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 859a5f56..bf758013 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-06db74523f03042c5ff1ceca061f414c94e4425fcde24f73c1a3af3e445695bf.yml -openapi_spec_hash: 30b6996d3ac8cf110fd723be0a4ea15d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b04a88151c1d610986044ff1bcde2b6227e4259920c9a4689ef8e78c38cb39e.yml +openapi_spec_hash: 72f9eb954f74cbbd8a065fba31c15589 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558e..c9346c8f 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('ut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a385f3e0..a78c0831 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( - * 'laudantium', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 5fc5386b..dc2f7405 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( - * 'officiis', + * 'ipsa', * { 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( - * 'officiis', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bca70eaa..e8e37e0d 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( - * 'laudantium', + * 'provident', * { * 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( - * 'laudantium', + * 'provident', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..c9a094cf 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 56e2904f..07a74dc3 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', + * 'maiores', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'facere', + * 'vero', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'doloribus', - * ); + * const response = await client.smartLinks.listFans('dicta'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'explicabo', + * 'tenetur', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nihil'); + * await client.smartLinks.retrieveCohortArps('recusandae'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'ab', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 56ecbee2..651e8fba 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( - * 'doloremque', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'doloremque', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('qui', { + * 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 f82e6b83..9701566f 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( - * 'maiores', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'maiores', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolore', { + * 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( - * 'vel', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b1f40c21..ce299537 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( - * 'dolor', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dolor', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptates', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'accusamus', * { * 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('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'veritatis', + * 'eum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8b9be943..553af9bb 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: 'dmgscsbdpgtavz' }, + * { name: 'prmnvxz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5ab..7f7f9364 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('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 41b19271..ecdd936f 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: 'porro', - auth_type: 'email_password', - cookies: 'cum', + auth_id: 'magnam', + auth_type: 'raw_data', + cookies: 'dolorem', customProxy: { host: 'proxy.example.com', - password: 'Yzt#*/.yl8&5q"', + password: 'D\\,0`j-"eegYip\\k)N5q', port: 8080, - username: 'ipsum', + username: 'optio', }, - email: 'brown.letitia@example.com', - force_connect: true, - name: 'mollitia', - password: 'X$j^/M { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('laudantium', { + const responsePromise = client.engagement.messages.getMessageBuyers('amet', { 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('laudantium', { + const response = await client.engagement.messages.getMessageBuyers('amet', { 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 feefdd64..ff55cff9 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('officiis', { + const responsePromise = client.media.vault.lists.media.add('ipsa', { 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('officiis', { + const response = await client.media.vault.lists.media.add('ipsa', { 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('officiis', { + const responsePromise = client.media.vault.lists.media.remove('ipsa', { 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('officiis', { + const response = await client.media.vault.lists.media.remove('ipsa', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b042946..e769f5c8 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 ec0bb295..bf977877 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('provident', { 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('provident', { 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('provident', { 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('provident', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 02883e18..b643af69 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 c929f75a..c1f2a865 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: ['rupnxpib'] }, + filter: { tags: ['xxvmuyss'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('maiores'); 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', + 'maiores', { 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('facere'); + const responsePromise = client.smartLinks.listConversions('vero'); 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( - 'facere', + 'vero', { 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('doloribus'); + const responsePromise = client.smartLinks.listFans('dicta'); 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( - 'doloribus', + 'dicta', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('explicabo'); + const responsePromise = client.smartLinks.listSpenders('tenetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'explicabo', + 'tenetur', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nihil'); + const responsePromise = client.smartLinks.retrieveCohortArps('recusandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'nihil', + 'recusandae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'ab', { 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 745530d0..f120248d 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: 'cnrobehtylcf', tags: ['pbbhejchtyvrps'] }, + filter: { search: 'ewzou', tags: ['bcvgxmsmgletl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jomlhvcwgyjfzatsvhstc', tags: ['pamltz'] }, + filter: { search: 'nbxvrjkwzbzfjjllop', tags: ['dkrsq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'di', - tags: ['dwbyrkd'], + search: 'nlmrrhjvcitqusmzkgcb', + tags: ['bajs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ubqhljjtuq', - tags: ['mnctxjo'], + include_smart_links: true, + search: 'fnbkspfxaqueygknvytiyebu', + tags: ['d'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5897fa10..46e853d9 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('doloremque', { + 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('doloremque', { + 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('doloremque', { + 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('doloremque', { + 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 aa78dd82..9947f39f 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('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dolorem', { 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('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolore', { 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; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('dolore', { + const response = await client.trackingLinks.getCohortArps('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('vel', { 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; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('vel', { + 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 bb22d1cb..34df5e7e 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptates', { 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('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,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; @@ -164,7 +166,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', @@ -174,7 +176,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('veritatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('veritatis', { + const response = await client.trialLinks.retrieveStats('eum', { 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 752b00ca..557e0c61 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: 'dmgscsbdpgtavz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'prmnvxz' }); 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: 'dmgscsbdpgtavz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'prmnvxz' }); }); // Mock server tests are disabled From e6a3744a49c67c07a13b754da25f966dd575fb8f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 08:12:37 +0000 Subject: [PATCH 305/309] 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 | 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 | 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 +++--- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 112 insertions(+), 122 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf758013..f66c4ccd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0b04a88151c1d610986044ff1bcde2b6227e4259920c9a4689ef8e78c38cb39e.yml -openapi_spec_hash: 72f9eb954f74cbbd8a065fba31c15589 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ee4c9f16bc07c5b25c42b031bf03df0474b2d2532ae2aa2203ce6c426705733.yml +openapi_spec_hash: 6fd03e8ebe5db6e03a33a2ef406f1546 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8f..27c98d67 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( + * 'facilis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a78c0831..105f7d7a 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( - * 'amet', - * { 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 dc2f7405..af9ad358 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( - * 'ipsa', + * '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( - * 'ipsa', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e8e37e0d..ca82093e 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( - * 'provident', - * { - * 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,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'provident', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ut', { + * 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 c9a094cf..a84ff073 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 07a74dc3..0aaa0764 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( - * 'maiores', - * ); + * 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( - * 'vero', + * 'dolores', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('dicta'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'tenetur', + * 'eum', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('recusandae'); + * await client.smartLinks.retrieveCohortArps('hic'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ab', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fba..a9c614a7 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 9701566f..2bc95269 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( - * 'dolorem', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolorem', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('laudantium', { + * await client.trackingLinks.getCohortArps('totam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'qui', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ce299537..1a33ddef 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( - * 'voluptates', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -88,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptates', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('neque', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'accusamus', + * 'deleniti', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('possimus', { + * await client.trialLinks.retrieveCohortArps('ex', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eum', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 553af9bb..12680ef3 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: 'prmnvxz' }, + * { name: 'rn' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f9364..a13ef7ff 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('facilis'); 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 ecdd936f..142b7087 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: 'magnam', - auth_type: 'raw_data', - cookies: 'dolorem', + auth_id: 'aperiam', + auth_type: 'email_password', + cookies: 'sint', customProxy: { host: 'proxy.example.com', - password: 'D\\,0`j-"eegYip\\k)N5q', + password: 'g|&2?B*(]B7M', port: 8080, - username: 'optio', + username: 'neque', }, - email: 'donald.paucek@example.com', - force_connect: false, - name: 'ex', - password: 'Vu6l/NnZ?2Ro', - proxyCountry: 'uk', - user_agent: 'molestiae', - xbc: 'totam', + email: 'baylee.kuhn@example.net', + force_connect: true, + name: 'et', + password: '_pc9{x|f9ujZ8kv-]', + proxyCountry: 'us', + user_agent: 'consectetur', + xbc: 'ut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 9c8f1bea..c17a81d6 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: 'gb', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32e9581c..afbb8ebf 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('amet', { + 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('amet', { + 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 ff55cff9..e6c1db3e 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('ipsa', { + 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('ipsa', { + 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('ipsa', { + 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('ipsa', { + 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 e769f5c8..694c42e4 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: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bf977877..548a48cb 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('provident', { + 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('provident', { + 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('provident', { 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('provident', { + const response = await client.posts.comments.list('ut', { 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 b643af69..02883e18 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 d13ad1ce..6b1dc2fd 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c1f2a865..2598f460 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: ['xxvmuyss'] }, + filter: { tags: ['bgjhxpxplr'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('maiores'); + const responsePromise = client.smartLinks.listClicks('ut'); 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( - 'maiores', + 'ut', { 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('vero'); + const responsePromise = client.smartLinks.listConversions('dolores'); 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( - 'vero', + 'dolores', { 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('dicta'); + const responsePromise = client.smartLinks.listFans('aut'); 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( - 'dicta', + 'aut', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('tenetur'); + const responsePromise = client.smartLinks.listSpenders('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'tenetur', + 'eum', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('recusandae'); + const responsePromise = client.smartLinks.retrieveCohortArps('hic'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'recusandae', + 'hic', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ab'); + const responsePromise = client.smartLinks.retrieveStats('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ab', + '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 f120248d..69aa255c 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: 'ewzou', tags: ['bcvgxmsmgletl'] }, + filter: { search: 'wbuixhasxhcyiqw', tags: ['egalznoocwsmwptuafqcsnubc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nbxvrjkwzbzfjjllop', tags: ['dkrsq'] }, + filter: { search: 'v', tags: ['owpet'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'nlmrrhjvcitqusmzkgcb', - tags: ['bajs'], + search: 'oq', + tags: ['lfdtvdasbrcuuonwwpgfnhlg'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'fnbkspfxaqueygknvytiyebu', - tags: ['d'], + include_smart_links: false, + search: 'gxqilmmwisbjphvrp', + tags: ['hszno'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d9..fca45b0b 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 9947f39f..d52b024d 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('dolorem', { 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('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dolorem', { 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; @@ -93,14 +93,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dolorem', { 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('laudantium', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -112,7 +110,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('totam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +120,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('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -134,7 +132,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('occaecati', { 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 34df5e7e..a3aee399 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('neque', { 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('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('accusamus', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('accusamus', { + const response = await client.trialLinks.listSubscribers('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,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('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,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('ex', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('eum', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eum', { + 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 557e0c61..6f09bfde 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: 'prmnvxz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rn' }); 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: 'prmnvxz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'rn' }); }); // Mock server tests are disabled From 4f6a4b1123fbd30d6dea9fe29d8097c66dbd56b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 12:12:41 +0000 Subject: [PATCH 306/309] 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 | 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 +-- .../shared-trial-links.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 +-- 26 files changed, 105 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index f66c4ccd..1ebf8db4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ee4c9f16bc07c5b25c42b031bf03df0474b2d2532ae2aa2203ce6c426705733.yml -openapi_spec_hash: 6fd03e8ebe5db6e03a33a2ef406f1546 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-09f81c61819f76944d3f0997ad1706ffe6a3594ae5fb4128184ef722d4afba89.yml +openapi_spec_hash: 1bf8237ed66ac12d1a9205d0c81bd524 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 27c98d67..1114e44c 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( - * 'facilis', + * 'deserunt', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 105f7d7a..0f8f8815 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('vel', { + * await client.engagement.messages.getMessageBuyers('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad358..49aeda0d 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', + * 'quibusdam', * { 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', + * 'quibusdam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093e..33a40fdf 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('ut', { + * const comment = await client.posts.comments.create('aut', { * 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('ut', { + * const comments = await client.posts.comments.list('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a9525..09d6973d 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 0aaa0764..434611e0 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('aut'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolores', + * 'aut', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans( + * 'reiciendis', + * ); * ``` */ listFans( @@ -127,9 +129,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'eum', - * ); + * const response = await client.smartLinks.listSpenders('ex'); * ``` */ listSpenders( @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('hic'); + * await client.smartLinks.retrieveCohortArps('quia'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequatur', + * 'placeat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a7..46c335d7 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', + * 'sit', * { * 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('sit', { * 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 2bc95269..3374c5e0 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', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('totam', { + * await client.trackingLinks.getCohortArps('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'occaecati', + * 'libero', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 1a33ddef..6e38633d 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( - * 'neque', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -88,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('neque', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'deleniti', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ex', { + * await client.trialLinks.retrieveCohortArps('repellendus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 12680ef3..58d7a7a5 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: 'rn' }, + * { name: 'vxcjmrriez' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a13ef7ff..a1e32c3e 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('facilis'); + const responsePromise = client.accounts.disconnect('deserunt'); 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 142b7087..7e175cdb 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: 'aperiam', - auth_type: 'email_password', - cookies: 'sint', + auth_id: 'enim', + auth_type: 'mobile_app', + cookies: 'similique', customProxy: { host: 'proxy.example.com', - password: 'g|&2?B*(]B7M', + password: '\\d|zBN { 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 afbb8ebf..8fed0617 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('ea', { 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('ea', { 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 e6c1db3e..74bc0059 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('quibusdam', { 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('quibusdam', { 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('quibusdam', { 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('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e4..e56040c2 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: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48cb..e56adcd7 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('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('ut', { + 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('ut', { 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('ut', { + const response = await client.posts.comments.list('aut', { 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 8e5b0566..e2edc676 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index 7233346f..cd4ccc25 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 1, + pagination: 0, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 2598f460..ece01115 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: ['bgjhxpxplr'] }, + filter: { tags: ['jvbkuvdchxe'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('aut'); 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( - 'ut', + 'aut', { 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('dolores'); + const responsePromise = client.smartLinks.listConversions('aut'); 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( - 'dolores', + 'aut', { 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('aut'); + const responsePromise = client.smartLinks.listFans('reiciendis'); 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( - 'aut', + 'reiciendis', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eum'); + const responsePromise = client.smartLinks.listSpenders('ex'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'eum', + 'ex', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('hic'); + const responsePromise = client.smartLinks.retrieveCohortArps('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'hic', + 'quia', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consequatur'); + const responsePromise = client.smartLinks.retrieveStats('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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', + 'placeat', { 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 69aa255c..7789d489 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: 'wbuixhasxhcyiqw', tags: ['egalznoocwsmwptuafqcsnubc'] }, + filter: { search: 'olwylhlyc', tags: ['awgxbfqvqnnwqpzwuwxa'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'v', tags: ['owpet'] }, + filter: { search: 'flyijujcwwtrzd', tags: ['bkfjhxs'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'oq', - tags: ['lfdtvdasbrcuuonwwpgfnhlg'], + search: 'nw', + tags: ['gbigoeunpvijyqgz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gxqilmmwisbjphvrp', - tags: ['hszno'], + include_smart_links: true, + search: 'rgkluckuobbtoonclorkzpil', + tags: ['eljyfylgwmhycvanlmlgf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0b..7eb3d1f5 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('sit', { 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('sit', { 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('sit', { 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('sit', { 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 d52b024d..85ea8997 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('voluptatum', { 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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('totam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +110,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('totam', { + const response = await client.trackingLinks.getCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +132,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('occaecati', { + const response = await client.trackingLinks.getStats('libero', { 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 a3aee399..8be60a19 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('neque', { 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('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('neque', { 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; @@ -98,7 +98,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('neque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('deleniti', { + const responsePromise = 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('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('deleniti', { + const response = await client.trialLinks.listSubscribers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('repellendus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ex', { + const response = await client.trialLinks.retrieveCohortArps('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('earum', { 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 6f09bfde..c45e8d3e 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: 'rn' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vxcjmrriez' }); 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: 'rn' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vxcjmrriez' }); }); // Mock server tests are disabled From aba20a2a3bb3ee1c0042d788444fd028177bbad2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:12:39 +0000 Subject: [PATCH 307/309] 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 | 18 +++++++------ 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 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- .../shared-trial-links.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 | 20 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 108 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1ebf8db4..bb555898 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-09f81c61819f76944d3f0997ad1706ffe6a3594ae5fb4128184ef722d4afba89.yml -openapi_spec_hash: 1bf8237ed66ac12d1a9205d0c81bd524 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f63683848824ec57fae74e6bafecf16320e54ec98eb9b544d1dc0cc7e9b04a3c.yml +openapi_spec_hash: 8d3db141fd5186f373526bcc3fb8f3ba config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1114e44c..a42955ed 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( - * 'deserunt', + * 'aliquid', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0f8f8815..fdc0844e 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'alias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 49aeda0d..f3d95f1c 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( - * 'quibusdam', + * 'qui', * { 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( - * 'quibusdam', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fdf..263bf6ad 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('aut', { + * const comment = await client.posts.comments.create('ea', { * 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('aut', { + * const comments = await client.posts.comments.list('ea', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff073..2b04cbb2 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 434611e0..86d5438d 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( + * 'aliquid', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aut', + * 'numquam', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'reiciendis', - * ); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -129,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ex'); + * const response = await client.smartLinks.listSpenders( + * 'unde', + * ); * ``` */ listSpenders( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quia'); + * await client.smartLinks.retrieveCohortArps('aliquam'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'placeat', + * 'ducimus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 46c335d7..62984c5e 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( - * 'sit', + * 'eos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sit', { + * await client.stories.highlights.removeStory('eos', { * 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 3374c5e0..8e7f96bd 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( - * 'voluptatum', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptatum', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('minus', { + * await client.trackingLinks.getCohortArps('sapiente', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'libero', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6e38633d..fe25a66e 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('et', { + * const trialLink = await client.trialLinks.retrieve('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -87,7 +87,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { + * const trialLink = await client.trialLinks.delete('sunt', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -127,7 +127,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'explicabo', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +153,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('repellendus', { + * await client.trialLinks.retrieveCohortArps('vel', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +178,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'earum', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 58d7a7a5..60d8d7b3 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: 'vxcjmrriez' }, + * { name: 'mgcbihwwijjz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a1e32c3e..9084e56e 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('deserunt'); + const responsePromise = client.accounts.disconnect('aliquid'); 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 7e175cdb..2d666d60 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: 'enim', - auth_type: 'mobile_app', - cookies: 'similique', + auth_id: 'ea', + auth_type: 'email_password', + cookies: 'a', customProxy: { host: 'proxy.example.com', - password: '\\d|zBN { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ea', { + const responsePromise = client.engagement.messages.getMessageBuyers('alias', { 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('ea', { + const response = await client.engagement.messages.getMessageBuyers('alias', { 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 74bc0059..c878a4d7 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('quibusdam', { + const responsePromise = client.media.vault.lists.media.add('qui', { 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('quibusdam', { + const response = await client.media.vault.lists.media.add('qui', { 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('quibusdam', { + const responsePromise = client.media.vault.lists.media.remove('qui', { 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('quibusdam', { + const response = await client.media.vault.lists.media.remove('qui', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c2..70f616cd 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: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd7..91b2d341 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('ea', { 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('ea', { 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('ea', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2e..9bf5999b 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/queue.test.ts b/tests/api-resources/queue.test.ts index a80ba1da..497c7cb1 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['chat'], + type: ['post'], }); }); 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 02883e18..96d399de 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/shared-trial-links/shared-trial-links.test.ts b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts index cd4ccc25..7233346f 100644 --- a/tests/api-resources/shared-trial-links/shared-trial-links.test.ts +++ b/tests/api-resources/shared-trial-links/shared-trial-links.test.ts @@ -29,7 +29,7 @@ describe('resource sharedTrialLinks', () => { { limit: 10, offset: 0, - pagination: 0, + pagination: 1, synchronous: false, }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index ece01115..be28ac58 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: ['jvbkuvdchxe'] }, + filter: { tags: ['m'] }, limit: 50, name: 'Instagram', offset: 0, @@ -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('aliquid'); 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', + 'aliquid', { 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('aut'); + const responsePromise = client.smartLinks.listConversions('numquam'); 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( - 'aut', + 'numquam', { 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('reiciendis'); + const responsePromise = client.smartLinks.listFans('quia'); 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( - 'reiciendis', + 'quia', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ex'); + const responsePromise = client.smartLinks.listSpenders('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'ex', + 'unde', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quia'); + const responsePromise = client.smartLinks.retrieveCohortArps('aliquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'quia', + 'aliquam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('placeat'); + const responsePromise = client.smartLinks.retrieveStats('ducimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'placeat', + 'ducimus', { 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 7789d489..612d23ac 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: 'olwylhlyc', tags: ['awgxbfqvqnnwqpzwuwxa'] }, + filter: { search: 'uoyyatufucfxopsvee', tags: ['izewkf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'flyijujcwwtrzd', tags: ['bkfjhxs'] }, + filter: { search: 'dkdttxaq', tags: ['wipn'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'nw', - tags: ['gbigoeunpvijyqgz'], + include_smart_links: true, + search: 'axeazwublhxizftirdwivba', + tags: ['pggnscgb'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'rgkluckuobbtoonclorkzpil', - tags: ['eljyfylgwmhycvanlmlgf'], + search: 'usrk', + tags: ['slwasoctymcesfxlarqezvc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7eb3d1f5..303341f0 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('sit', { + const responsePromise = client.stories.highlights.addStory('eos', { 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('sit', { + const response = await client.stories.highlights.addStory('eos', { 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('sit', { + const responsePromise = client.stories.highlights.removeStory('eos', { 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('sit', { + const response = await client.stories.highlights.removeStory('eos', { 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 85ea8997..b119feac 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('voluptatum', { 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; @@ -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('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 1, + pagination: 0, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptatum', { 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; @@ -93,12 +93,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptatum', { 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('minus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('sapiente', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -110,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('minus', { + const response = await client.trackingLinks.getCohortArps('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -120,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('libero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -132,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('libero', { + const response = await client.trackingLinks.getStats('aut', { 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 8be60a19..0d7ebb43 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('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('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,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('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,9 +152,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('repellendus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -166,7 +164,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('repellendus', { + const response = await client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -176,7 +174,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('earum', { 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; @@ -188,7 +186,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('earum', { + 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 c45e8d3e..720476eb 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: 'vxcjmrriez' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mgcbihwwijjz' }); 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: 'vxcjmrriez' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mgcbihwwijjz' }); }); // Mock server tests are disabled From bcb433306b894fa441069b82ada209f8b69cdaf0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:12:43 +0000 Subject: [PATCH 308/309] 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/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 | 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 +- tests/api-resources/queue.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- 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, 118 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index bb555898..d44c6514 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 265 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f63683848824ec57fae74e6bafecf16320e54ec98eb9b544d1dc0cc7e9b04a3c.yml -openapi_spec_hash: 8d3db141fd5186f373526bcc3fb8f3ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-136aa659b2d54ff3c25f6b35164a84db20dba3a7b513bf2c72544bbdb13ce6c1.yml +openapi_spec_hash: 94a889e758a4baf8e3b699a6cbe17d01 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a42955ed..48987d7b 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( - * 'aliquid', + * 'pariatur', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fdc0844e..08a451d2 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( - * 'alias', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f3d95f1c..d62bfa6c 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( - * 'qui', + * '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( - * 'qui', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 263bf6ad..36ae6c40 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'repellat', + * { + * 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('ea', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'repellat', + * { 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 2b04cbb2..41feb4c0 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 86d5438d..36b175de 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( - * 'aliquid', + * 'dolorem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'numquam', + * 'a', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * const response = await client.smartLinks.listFans('libero'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'unde', + * 'sed', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aliquam'); + * await client.smartLinks.retrieveCohortArps('omnis'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ducimus', + * 'in', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 62984c5e..190efad0 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( - * 'eos', + * 'commodi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('eos', { + * await client.stories.highlights.removeStory('commodi', { * 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 8e7f96bd..6ed89cd0 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', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'praesentium', + * 'similique', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sapiente', { + * await client.trackingLinks.getCohortArps('repellat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aut', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fe25a66e..9cc790a5 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( + * 'consectetur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -87,9 +88,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sunt', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'consectetur', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -127,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'explicabo', + * 'incidunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -153,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vel', { + * await client.trialLinks.retrieveCohortArps('dolore', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -178,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'id', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 60d8d7b3..b2ca7853 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: 'mgcbihwwijjz' }, + * { name: 'pplc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 9084e56e..530921ea 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('aliquid'); + const responsePromise = client.accounts.disconnect('pariatur'); 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 2d666d60..b383d593 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: 'ea', - auth_type: 'email_password', - cookies: 'a', + auth_id: 'nesciunt', + auth_type: 'mobile_app', + cookies: 'aperiam', customProxy: { host: 'proxy.example.com', - password: "?rmu'%A}Yt_", + password: '9<*H%e|y}d]=)bU1<', port: 8080, - username: 'id', + username: 'molestiae', }, - email: 'gleichner.easter@example.com', + email: 'labernathy@example.org', force_connect: true, - name: 'eos', - password: 'z*I4"gX$_JY67', - proxyCountry: 'uk', - user_agent: 'aut', - xbc: 'suscipit', + name: 'debitis', + password: '#913++lRIwb', + proxyCountry: 'gb', + user_agent: 'explicabo', + xbc: 'officiis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de463..9c8f1bea 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: 'gb', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index adec421e..e9488683 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('alias', { + 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('alias', { + 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 c878a4d7..b67c2a66 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('qui', { + 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('qui', { + 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('qui', { + 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('qui', { + 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 70f616cd..25333899 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: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 91b2d341..0144bc2d 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('ea', { + const responsePromise = client.posts.comments.create('repellat', { 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('ea', { + const response = await client.posts.comments.create('repellat', { 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('ea', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('repellat', { 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('ea', { + const response = await client.posts.comments.list('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999b..ad49ad2e 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/queue.test.ts b/tests/api-resources/queue.test.ts index 497c7cb1..a80ba1da 100644 --- a/tests/api-resources/queue.test.ts +++ b/tests/api-resources/queue.test.ts @@ -31,7 +31,7 @@ describe('resource queue', () => { publishDateStart: '2025-01-01', timezone: 'Europe/Prague', limit: 20, - type: ['post'], + type: ['chat'], }); }); 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 96d399de..c1510622 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 be28ac58..108f5efa 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: ['m'] }, + filter: { tags: ['i'] }, limit: 50, name: 'Instagram', offset: 0, @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('aliquid'); + const responsePromise = client.smartLinks.listClicks('dolorem'); 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( - 'aliquid', + 'dolorem', { 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('numquam'); + const responsePromise = client.smartLinks.listConversions('a'); 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( - 'numquam', + 'a', { 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('quia'); + const responsePromise = client.smartLinks.listFans('libero'); 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( - 'quia', + 'libero', { has_messages: true, limit: 100, @@ -188,7 +188,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('unde'); + const responsePromise = client.smartLinks.listSpenders('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -203,7 +203,7 @@ describe('resource smartLinks', () => { // 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( - 'unde', + 'sed', { limit: 50, minSpend: 1, @@ -216,7 +216,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aliquam'); + const responsePromise = client.smartLinks.retrieveCohortArps('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -231,7 +231,7 @@ describe('resource smartLinks', () => { // 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( - 'aliquam', + 'omnis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -244,7 +244,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ducimus'); + const responsePromise = client.smartLinks.retrieveStats('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -259,7 +259,7 @@ describe('resource smartLinks', () => { // 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( - 'ducimus', + 'in', { 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 612d23ac..d1fa49fe 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: 'uoyyatufucfxopsvee', tags: ['izewkf'] }, + filter: { search: 'pgstt', tags: ['lesgwiehozbjtqubznijzetuq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dkdttxaq', tags: ['wipn'] }, + filter: { search: 'vnnufloxlvajlaldbxbpdhq', tags: ['gjf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'axeazwublhxizftirdwivba', - tags: ['pggnscgb'], + include_smart_links: false, + search: 'czleulihk', + tags: ['tykxnvkiggxelefwfyctwv'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'usrk', - tags: ['slwasoctymcesfxlarqezvc'], + include_smart_links: false, + search: 'zyhaiutqpl', + tags: ['uddtuliiikxvhswkqz'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 303341f0..f2ac4a3b 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('eos', { + const responsePromise = client.stories.highlights.addStory('commodi', { 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('eos', { + const response = await client.stories.highlights.addStory('commodi', { 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('eos', { + const responsePromise = client.stories.highlights.removeStory('commodi', { 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('eos', { + const response = await client.stories.highlights.removeStory('commodi', { 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 b119feac..b1bc125f 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('similique', { 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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -67,7 +67,7 @@ describe('resource trackingLinks', () => { endDate: '2025-01-31 23:59:59', limit: 10, offset: 0, - pagination: 0, + pagination: 1, sort: 'desc', sortby: 'claims', startDate: '2025-01-01 00:00:00', @@ -81,7 +81,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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,12 +93,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('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sapiente', { + const responsePromise = client.trackingLinks.getCohortArps('repellat', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -112,7 +112,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('sapiente', { + const response = await client.trackingLinks.getCohortArps('repellat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aut', { 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; @@ -134,7 +134,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aut', { + 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 0d7ebb43..84f79285 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('consectetur', { 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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -86,7 +86,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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -98,7 +98,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('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -127,7 +127,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('explicabo', { + const responsePromise = client.trialLinks.listSubscribers('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('explicabo', { + const response = await client.trialLinks.listSubscribers('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -152,7 +152,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('vel', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('dolore', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('vel', { + const response = await client.trialLinks.retrieveCohortArps('dolore', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -174,7 +176,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('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -186,7 +188,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('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 720476eb..6828ffa8 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: 'mgcbihwwijjz' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pplc' }); 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: 'mgcbihwwijjz' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'pplc' }); }); // Mock server tests are disabled From bc8397374c31a2100f8e0a00e5e82b96b555c908 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:15:10 +0000 Subject: [PATCH 309/309] release: 0.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 309 ++++++++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 312 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2be9c43c..0ee8c012 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 fbadecd7..a85d2758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,314 @@ # Changelog +## 0.3.0 (2026-09-08) + +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 ([bcb4333](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/bcb433306b894fa441069b82ada209f8b69cdaf0)) +* **api:** api update ([aba20a2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/aba20a2a3bb3ee1c0042d788444fd028177bbad2)) +* **api:** api update ([4f6a4b1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4f6a4b1123fbd30d6dea9fe29d8097c66dbd56b9)) +* **api:** api update ([e6a3744](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e6a3744a49c67c07a13b754da25f966dd575fb8f)) +* **api:** api update ([bea549c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/bea549cdb8bbc70102d7a003a34d7531267cf977)) +* **api:** api update ([5fcccc3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5fcccc3983bc22bbed85d777bd3e531d001e158a)) +* **api:** api update ([b6faa83](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b6faa832a3256aff91e88d97f7f4a84010af5e8b)) +* **api:** api update ([42e360e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/42e360e01891aa83c6094b5818a20d47661c9c5b)) +* **api:** api update ([86dcb4a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/86dcb4aae6c967c4f3aed9042601d443afd669d2)) +* **api:** api update ([54d9204](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/54d9204d9e9b9f7dd0df69b1eefb7ffe9fd115c3)) +* **api:** api update ([26bfd2f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/26bfd2f4fa3ec0dac275ad7118b76c23e0ed6795)) +* **api:** api update ([d3a1a78](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d3a1a78dbe6800f3c034a2d8cce76b5ac5f087b1)) +* **api:** api update ([4ee500f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4ee500fa05f6b57589247227e377be2215b1665b)) +* **api:** api update ([a6414f2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a6414f263b35e28e282fcf7224441f0466c91a2d)) +* **api:** api update ([e3b66fe](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e3b66fe32d50aea4cb31cf3c38366b2b73800057)) +* **api:** api update ([4506117](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4506117f2093186adb059dff68bd87ea28a83d16)) +* **api:** api update ([6138edb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6138edbfd3ca4b4aa4849c256e25c822bb49d096)) +* **api:** api update ([83e3d6c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/83e3d6cfeca9fa359cc23e382a3b64246bda8850)) +* **api:** api update ([4e91ca8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4e91ca8fa4a834aafc43098531fba13d3674c034)) +* **api:** api update ([aa4aa54](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/aa4aa540d93c20e31b576057e1e581310c3cfa69)) +* **api:** api update ([4fbb859](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4fbb859afb5187affb78d8da08e0e80ac9b88f08)) +* **api:** api update ([d038dcc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d038dccb3bdfc62607294da36196ecb7ed63a345)) +* **api:** api update ([32a2de4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/32a2de499831f648826e8beddc398476bba76b38)) +* **api:** api update ([60a12b7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/60a12b7b75674ce51d75070e1099a5985ad0301f)) +* **api:** api update ([36aef4d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/36aef4d8ffb785813184c5c13ead1c0959ef7c46)) +* **api:** api update ([2c9a767](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2c9a767c308cefb16cdd1faabdc5732962dddee3)) +* **api:** api update ([87db0e8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/87db0e87c1940c5a141ae30927935909075e2cc6)) +* **api:** api update ([8824606](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8824606bff272556da8254269911652611c6494f)) +* **api:** api update ([e123144](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e1231449cce515de8d5492124cfa72979810b298)) +* **api:** api update ([61713fa](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/61713fa30b530675bc926f819d2b9d2ed3e2b62b)) +* **api:** api update ([3844bbe](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3844bbe2ec05baae1dec0c56eb629ac7a5cf90f2)) +* **api:** api update ([970f3f4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/970f3f4d95b07dee453b6fa18a18cb5757f87d4e)) +* **api:** api update ([0b6215c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0b6215cc98b68b7f505624c951cb03f99b8257ef)) +* **api:** api update ([c2841f3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c2841f3ce1e2abfa30b7e781222c63b713693606)) +* **api:** api update ([f9a031e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f9a031ebc6dca5941112d5fb26aadea0322d8596)) +* **api:** api update ([e2dbf11](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e2dbf119a2686aa6eb23895b1b978cc17eb3d29a)) +* **api:** api update ([005cae9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/005cae94d28d256cd957ef3814b8cf780465977c)) +* **api:** api update ([9f58d7d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9f58d7d2f16795ea0c8032507a888b1820aba184)) +* **api:** api update ([c4ae3cb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c4ae3cb4ef846f5424a4b561a18273a39103e8d0)) +* **api:** api update ([a574d06](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a574d06c31db307fd5edf3e80eb6a77dc91ac7b1)) +* **api:** api update ([f889ebc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f889ebc0653e173b528e13b32b7fcbb96bf83740)) +* **api:** api update ([f2a8182](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f2a81829408791c7ffa3a2ad47aa78dd3d67b280)) +* **api:** api update ([493f801](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/493f801f4b21bd5ee26815332f97c7f93abfbba8)) +* **api:** api update ([a7d36e3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a7d36e3f72d5f916ed4521bdd378f41db8f384c4)) +* **api:** api update ([905eab1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/905eab1e668773fa567ce2d8cf8a83fc88841115)) +* **api:** api update ([a641d4f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a641d4f8fcaa58b4b6a7881042350c4ea21c6c78)) +* **api:** api update ([44b45d6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/44b45d61afec8819406fdd26cc993bc4092f91a8)) +* **api:** api update ([c68358e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c68358e391ce5e376e2cbc085657bba13fbd7aec)) +* **api:** api update ([58f7b05](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/58f7b05ddf001c0edf8cb69e384f39fe6bb38a46)) +* **api:** api update ([7b11647](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/7b11647efd4ba6b17397a296dcd6bb96ce6fa4df)) +* **api:** api update ([b6cf87a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b6cf87a37941f0680d384189070b5644a6b65b0c)) +* **api:** api update ([8f8fe16](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8f8fe16deb2de4e410c4979ff5bd248f9deab6df)) +* **api:** api update ([f00ecc3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f00ecc30014ab7a63a181befc844c94237501f41)) +* **api:** api update ([9d1bb6a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9d1bb6ad180f82f8a5c66db91aeabb1ca2a553a7)) +* **api:** api update ([3d296db](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3d296dbdabc88d9cbc48cc7bf51f0f21862cc248)) +* **api:** api update ([a5222ce](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a5222cef4658f92d1ae7d43187ca41125be95d3c)) +* **api:** api update ([192f58c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/192f58c964898b8fb203ba707c3df8185274987c)) +* **api:** api update ([62a9f53](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/62a9f53e829445b3b556bc7293decbd358917437)) +* **api:** api update ([fb5c3df](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/fb5c3dfd7fa7624e9374447708c5d5e6855727b6)) +* **api:** api update ([69a949e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/69a949ec387188986067a1bdf170c493ff28c726)) +* **api:** api update ([337f7a2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/337f7a2125ea799932b78e9ed9ae1ccada65c579)) +* **api:** api update ([2cbabdb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2cbabdb14ea2688c82f44997f135f0a72dc2d16e)) +* **api:** api update ([4c7a93f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4c7a93f8c606efc8af1526c6f48cb7c89c36be2e)) +* **api:** api update ([9ce2aa6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9ce2aa6f721ac0d29e9df40842d73b31e79ff1dd)) +* **api:** api update ([5cfd594](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5cfd59461d7c5dab03b9494ae7fed050d32245af)) +* **api:** api update ([fff8441](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/fff844158588c4f46f2852dde860146665c9fc3a)) +* **api:** api update ([1d9a0c5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/1d9a0c5912229874240e0d908027166e3ecaaede)) +* **api:** api update ([38520d5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/38520d5a53aee50ab5e63fd681dbe41f60975e32)) +* **api:** api update ([5aa4052](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5aa40521b3ce9da183fd4a085e212a9e9ceeb9dc)) +* **api:** api update ([2d64f1c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2d64f1c452749123bedd72bfa483ddc8581040a7)) +* **api:** api update ([b171312](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b1713128fa95a05720ed334d86b6857879d24e11)) +* **api:** api update ([417ad1b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/417ad1be06dca832aaa46e36381283a7aafb0ee5)) +* **api:** api update ([5b06658](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5b0665890241f975296e598ba372798e2503c50e)) +* **api:** api update ([272c179](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/272c179ea75ee89878cdcb266cdab091da482665)) +* **api:** api update ([ec2634a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ec2634a995a791f6ccddc7b67f7d4c6d1bb8f7e6)) +* **api:** api update ([3e0a345](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3e0a345062bac966959f3b7721f0406ff69fdab5)) +* **api:** api update ([31ed287](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/31ed2877f1d4402b4754a182aa5879aab7bd385a)) +* **api:** api update ([689d233](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/689d233e300522110065ec175be643ca2ee4e8e0)) +* **api:** api update ([c750efd](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c750efdb9a5de976d683ae46f4eb413c99b93418)) +* **api:** api update ([bbd60e4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/bbd60e4b43b5ddb54f016d77f82257c518d5ebd6)) +* **api:** api update ([147758e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/147758e76eab39656b84c04d4ae34e603c5df1df)) +* **api:** api update ([a0e836d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a0e836d4ce3d6f281480a96f58fca44fd284396c)) +* **api:** api update ([89c5e42](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/89c5e42cef884a79b12f94e46ef57db7fbc0a7ff)) +* **api:** api update ([3afd696](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3afd6962de92809cc874cc9d7063a582cadeb249)) +* **api:** api update ([ce629ee](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ce629ee6c9301c4f995ecc6f759ec78d6bf0cb4b)) +* **api:** api update ([b788b3d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b788b3da30bf45bebfae380ea42df969e60ac239)) +* **api:** api update ([9f26b20](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9f26b20b4f33f4614f5f1d93be7af8d73db1aa19)) +* **api:** api update ([deed586](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/deed586cf07f491301b374e8e13ee7c2eb72c3c6)) +* **api:** api update ([86b81e9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/86b81e920e43c914adbf33ef58cfd89d27a8f340)) +* **api:** api update ([af3ad4c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/af3ad4c1ebacff3450d4f5736a8ff8d9ae5bc00f)) +* **api:** api update ([56b70f4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/56b70f412fbc16fd91626258a24337328a2424a9)) +* **api:** api update ([e5bdf55](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e5bdf55f24d1119c700471c6c1a86e1796d4cb99)) +* **api:** api update ([580fdf8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/580fdf8dc64588806a999891dd725c2a85b294d4)) +* **api:** api update ([fa1a596](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/fa1a596d5423fdb21a8d8ed08f7a3c0fe2fe9e5b)) +* **api:** api update ([782dc0d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/782dc0dbbf587cd1082c4ce1a6e0d3f64bb33e17)) +* **api:** api update ([024e41a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/024e41a0be2fce20ae5c917351a0bb588c7180d5)) +* **api:** api update ([0ef2e1a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0ef2e1a40a856f93967721e3d6748bb778c83312)) +* **api:** api update ([5192b8b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5192b8b5ecd9af3a7cc6fea97f9dd2c0f069a505)) +* **api:** api update ([2ef1c9c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2ef1c9ca97d00f839d2b618e6d79c1b2a95b059d)) +* **api:** api update ([cc79dff](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/cc79dff2e07c30103bf172515605cc1f8dfd1ec2)) +* **api:** api update ([495397f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/495397f34f312169309ee21c6ceefe6ef59e14e3)) +* **api:** api update ([e61ad5f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e61ad5f0e14e7991085277d49c3e875959b222d7)) +* **api:** api update ([2e8e9b1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2e8e9b181be5c729cc18568fec26ed15d1e6f99f)) +* **api:** api update ([270dc0a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/270dc0a17050b01c3be1bf3176bb2159fc586d9b)) +* **api:** api update ([37abcf7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/37abcf7ea60372babdf15da9e3ec8ff89f9645ba)) +* **api:** api update ([6f6a22f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6f6a22f8841b6103b5e64218f87ba89928cd8c08)) +* **api:** api update ([56e07ec](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/56e07ec66b6dd86d20bf617e7d10a84a584863b2)) +* **api:** api update ([49ae0d6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/49ae0d642eed9ce0c95ab8c8ed5e537996ae348b)) +* **api:** api update ([88f35b7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/88f35b75602f27ba7892484e974ae39195226048)) +* **api:** api update ([3140ed0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3140ed05e163af0634af8f1a7c9dbc389467e0b7)) +* **api:** api update ([cd234d7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/cd234d799b97aed2688b2b13f137f7322b68e2f0)) +* **api:** api update ([d09e999](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d09e99944b3226690bdf6b54fed70de72f04bd23)) +* **api:** api update ([b65da15](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b65da15c20c990c6fb8a4d5a925ea61ccae6c042)) +* **api:** api update ([f93f8b1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f93f8b18a19bf2eaf9f64f27105a1a75df13d008)) +* **api:** api update ([8624c42](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8624c42cc31061225991977ef151fdd9b1bf7085)) +* **api:** api update ([8969b09](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8969b09d7f36c441be1a0c117c375822ed957a0a)) +* **api:** api update ([60f7448](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/60f7448ee6c34b836224b7d1ee8041bcd0e8e3cd)) +* **api:** api update ([08ca129](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/08ca12910ff21d6af495d29ee1fdce75acefdcda)) +* **api:** api update ([e9b60e6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e9b60e6b381f666d18746007c2dd51550611e6a6)) +* **api:** api update ([aa0d198](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/aa0d19873f9c3a6b39ced1813d89e3919b743efa)) +* **api:** api update ([2a32b42](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2a32b4252053b9cd5ac680dd0296ed5732c46eea)) +* **api:** api update ([3ec4e50](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3ec4e503beaac3988ff69f19e283fbd69f6a8d6d)) +* **api:** api update ([869dee7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/869dee73823e8a6076f090742b8f6827dfc591d2)) +* **api:** api update ([987d63e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/987d63e4908c296387cd03b34ccd13fe8677d1fc)) +* **api:** api update ([6fc5b34](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6fc5b34b7d825ddbfd22b842a413fd895b8393f6)) +* **api:** api update ([aeb9cd7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/aeb9cd7289ea350aed75a424f338fa7bc4dc04ab)) +* **api:** api update ([2c214c9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2c214c977e81b568453bedfca9e20ba71eded732)) +* **api:** api update ([46bb310](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/46bb3108ad58222fabcfd3534a76b890c4bbad49)) +* **api:** api update ([d6863b6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d6863b6b734fab1c467e555b018920fac0076903)) +* **api:** api update ([d378396](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d378396db52989a50573241f9a856b0d973b3376)) +* **api:** api update ([27db2cf](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/27db2cf5729dbb3765e0afcb0175f5e6a1dc76de)) +* **api:** api update ([61fcffa](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/61fcffa48a2eaf0bfa164627b046647462480e5c)) +* **api:** api update ([873ac7b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/873ac7b51bb7b008c5a97394f53caee5d5ec05d4)) +* **api:** api update ([f76a4bd](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f76a4bd2540fb40cb5d7e4db915d1872d97c9db8)) +* **api:** api update ([8f2145c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8f2145c25ae5cd41c17329a14316beb4eca2976b)) +* **api:** api update ([60fc089](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/60fc0896052523b9940304ab45e2715a77792075)) +* **api:** api update ([5847a3c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5847a3c64f544bdecb9d71e842d159845733eb9e)) +* **api:** api update ([56ece82](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/56ece823f9f9910690d12902501dd5b6dde76cfb)) +* **api:** api update ([8bce9f2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8bce9f27a81899c50c0b58b6c561fc365ad0ae64)) +* **api:** api update ([a641005](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a6410058d0a2b910ba4a5c164e587d880ef77847)) +* **api:** api update ([00d94b2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/00d94b24bb5fc7293f037723ed5cc24f729e6f0f)) +* **api:** api update ([a4d1f39](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a4d1f392afd9e3a2e3d642d7c1efcf0e0d5b3597)) +* **api:** api update ([44bece2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/44bece23d2e3864b19f6ef18f33357dba26bd391)) +* **api:** api update ([8d91b47](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8d91b47ac5079a7a3b6d4335fdd136cd8b37b465)) +* **api:** api update ([51c1702](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/51c1702a88ef83bf91f55c6233a08a733fb99182)) +* **api:** api update ([1a1c5d2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/1a1c5d2895fccf54710292faf345c839efc21910)) +* **api:** api update ([0729449](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/07294490fa8a639ae9cd7afae4e99cc6ad73716c)) +* **api:** api update ([1c8ed61](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/1c8ed614ee0a88bbaa8fd04da0c83be0b9e6086f)) +* **api:** api update ([09a7095](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/09a70956c32f0f132d7efc68eb3aa42719035ea7)) +* **api:** api update ([6110f07](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6110f07a409b9fb1ea72f6947484295a4b6ec1cb)) +* **api:** api update ([ccab2a9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ccab2a9e458023e5a5455d0e51a0f2792a4b7d6a)) +* **api:** api update ([c667de1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c667de1845506fe11beec46e6cea9acf9923d9e6)) +* **api:** api update ([ca3fa7d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ca3fa7ddbcd49c8605d373b58ba67b8274e15d12)) +* **api:** api update ([f69e7eb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f69e7eb681f044222c5782ef01a64602fdf6c6ab)) +* **api:** api update ([ce1a135](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ce1a135817d04e5c3117460575c6020b04abffb1)) +* **api:** api update ([683e0b1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/683e0b105d4102f1bd666ae01daed62ac7c8790b)) +* **api:** api update ([fbf7e77](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/fbf7e77f0d648207ee5fc2d9bb71aee2b62a02e2)) +* **api:** api update ([838cd76](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/838cd7643d9b8deacf7791e53832be01e406b8b2)) +* **api:** api update ([b6c0885](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b6c0885f19707df9d98c54b6f373e6df0fe4a798)) +* **api:** api update ([de18ad7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/de18ad7686fff09d042877f87f0b6916ed9f850d)) +* **api:** api update ([1860995](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/186099583e86b9c51d6816952ec7b5e587868857)) +* **api:** api update ([057e021](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/057e021b08ec70e5fb1a0dc1c90e1ee893d9bdd9)) +* **api:** api update ([f219bef](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f219bef63b654d615304ee680f4fad139fbc049a)) +* **api:** api update ([9eb0b72](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9eb0b72e2dbd58b45ff9fb8dcc584d1c81df100f)) +* **api:** api update ([2e87746](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2e87746284c269b0315ccea719df1c52acf9e2ee)) +* **api:** api update ([a933eb6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a933eb65500d19109bedc378d3f3c1798bc27327)) +* **api:** api update ([78a6086](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/78a6086fd29d9f7f05a2aceb3398c98cd088662f)) +* **api:** api update ([6cfc271](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6cfc2713a3bc70d590ae9108034fb0ef0cf91efd)) +* **api:** api update ([9fe6eae](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9fe6eaeca808b011253e00774430bc183c67f9e8)) +* **api:** api update ([5ddb40a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5ddb40a3dbd792ee33ab4e16d3bfa71459fdb0c0)) +* **api:** api update ([4760ed2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4760ed26064c793f74b4bf703af45d7fd29c87b1)) +* **api:** api update ([97fa1f7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/97fa1f7abc78795df6a97f76803ea98e0464f73a)) +* **api:** api update ([f64165c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f64165c927f64b9a71efa777cc9db3017b8be03b)) +* **api:** api update ([97c4d97](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/97c4d977ffa0de991bb420ab5227e0de2ce608f8)) +* **api:** api update ([148c5be](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/148c5be9ecaf607a045aaa8de69b445b32b42579)) +* **api:** api update ([66e3ff6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/66e3ff6099d06788a97beb18b25f81ace59f621a)) +* **api:** api update ([e4b6686](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e4b66860a66a2041ffbf5ea8a389e3f1381c812e)) +* **api:** api update ([3038a94](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3038a9435ec5a252da6402c6086a48de0f2f9e8a)) +* **api:** api update ([8b69c42](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8b69c4237e6944a1a70dab3bbdd860084565d8b7)) +* **api:** api update ([2afbb35](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2afbb351ea9dc6775eaf9d153287c5f2c0f3db8f)) +* **api:** api update ([56e0cc3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/56e0cc3c3854b1d5c5b6c5bc4a7efb1374778459)) +* **api:** api update ([3238886](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/32388862eff60330248c922e532ab55ad96f56fb)) +* **api:** api update ([23a3de0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/23a3de0f20ebb26e5f465052efa8b6150f23eee1)) +* **api:** api update ([2644339](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/264433997b883b834866128e11a1c82ccd34e029)) +* **api:** api update ([d9d3274](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d9d3274e6e95514d06931ce67e32857537395713)) +* **api:** api update ([955f228](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/955f228cb735459ac88dc456e0c3cc373875eba4)) +* **api:** api update ([8674431](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8674431ec34f4908501f16a06ca18e3578b62bb0)) +* **api:** api update ([2410b93](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2410b936bb45023df611d5d8413e00f1ee48f8c0)) +* **api:** api update ([abf8dba](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/abf8dba90fb21497883acf3603107a8eaec6181a)) +* **api:** api update ([98972c7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/98972c77e930a545b38bd36266cf4f698d6c54ea)) +* **api:** api update ([a613f4c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a613f4c7ef30e0ae4ba0535b69b09ddb1f9bcfbd)) +* **api:** api update ([c4e478e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c4e478e44edaa13dae27abc3d12c31efa90cee4d)) +* **api:** api update ([95f1dfb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/95f1dfbb8dc2d031124c0cdd4a88f9b0b03fc7bf)) +* **api:** api update ([778f909](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/778f909697924ee12cde9d3e077b06d50be2e6c2)) +* **api:** api update ([8eb5a2c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8eb5a2cebf48c593a0bcb678f932079c9a21b40a)) +* **api:** api update ([a235e0f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a235e0f9f69796efa1dae6706a0aab68691d5e82)) +* **api:** api update ([f9a5724](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f9a5724970299d7be7ac5ed5e9f006413deb455f)) +* **api:** api update ([ee2c0d7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ee2c0d776f70e34442181bb355bccda787a756b9)) +* **api:** api update ([6b4c186](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6b4c186dec4378e46c32c7f27948f5699c6a80fd)) +* **api:** api update ([86f8ba8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/86f8ba812c11263ecd6c6e207ea255fcbc9d0ff0)) +* **api:** api update ([3b4c759](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3b4c759f314a0f6ca3dc79a0e7880db08bf0b02b)) +* **api:** api update ([316d824](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/316d82489708356f77ff704c63fd5130d9f8254e)) +* **api:** api update ([58d1f67](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/58d1f67f10575b1d9bc3fa50ae9dbb03c38ed255)) +* **api:** api update ([c55e299](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c55e2999f032401ef6cba186e6cfd05153b61e6a)) +* **api:** api update ([8829b3d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8829b3d3a3539a166c1cb62d1c350736121cf57c)) +* **api:** api update ([37d10c0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/37d10c068743a3535f8677cd0903ba3fb74f1d29)) +* **api:** api update ([c4bd5b1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c4bd5b1fb739e27c9f3fc9fb56c023961f203598)) +* **api:** api update ([b7c1073](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b7c10733fedd5451641f86bb5110b4e961fc0d72)) +* **api:** api update ([4977171](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/497717178c8f21ac5d53cd649935e386943c7001)) +* **api:** api update ([c2716dd](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c2716dd0d249e110eda8fceacb15ecf62226c6a0)) +* **api:** api update ([e99b7a5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e99b7a5e42bf4401462d1857df9c7dd2818259c6)) +* **api:** api update ([d40bc24](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d40bc248e2007524825da5e11411937106e84ae5)) +* **api:** api update ([ea37ee1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ea37ee11911649f40b998d54dd4a8b7ac584eef5)) +* **api:** api update ([38a5647](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/38a56478411ff2974e676c6d1ca82d16eff698a0)) +* **api:** api update ([f7ee288](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f7ee2880456193addd601b5c5688cdba838bc66e)) +* **api:** api update ([20e3d06](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/20e3d06c1ace9398301ba5453afe10f7304f524e)) +* **api:** api update ([8e3cd6f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8e3cd6f63633c2099203013eab8adfd00993b510)) +* **api:** api update ([16bb725](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/16bb72544eedd4aea207360fbafaef6b2a022984)) +* **api:** api update ([7e379ae](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/7e379ae329d208fb7dec30a45a90575e8b2556bb)) +* **api:** api update ([bf50100](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/bf50100ec625d9b035aa16871e9281b13cc2e037)) +* **api:** api update ([880fdc1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/880fdc106d2ffecd7d9167d24279707fbe4b141e)) +* **api:** api update ([9897ca1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9897ca1b62bc83e7275c43f960682253265cfd21)) +* **api:** api update ([203522d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/203522d703c42cdb8c03e1e2e134b1fb0b36790e)) +* **api:** api update ([c85defa](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c85defafcf6fcb645823f6af12b1df6dc3231f51)) +* **api:** api update ([37abea6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/37abea676a67e8b07ecdee2ae967bbbc57e328ec)) +* **api:** api update ([dc7480e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/dc7480e8cef2e141df3f6bbc1aae1d3da10d7b8c)) +* **api:** api update ([9aae0b0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9aae0b0ce7271c4d0f37d9e42457cbed86552a17)) +* **api:** api update ([f3b60cf](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f3b60cf920fcdb2779315eaa49a94b3030b8bbb4)) +* **api:** api update ([d5a171e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/d5a171e03d462137a5b217891711ff938e5f1700)) +* **api:** api update ([85c1517](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/85c1517138e5dc37a56f405d31363d9b2a9dee89)) +* **api:** api update ([8bed78d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8bed78da3c4bd1f286aa441b65576dafbd985ae6)) +* **api:** api update ([e928819](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e9288199b8a3ea07445850bfb8ab109a5611f2ff)) +* **api:** api update ([e8f55e4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e8f55e499778343f80fc11b423598ea1148f0881)) +* **api:** api update ([b1d6f19](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b1d6f198688ba2d1b5aef8d12b65376ea431178f)) +* **api:** api update ([0e64ad9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0e64ad9145eab434d84cda92853ad4812e94f661)) +* **api:** api update ([5f32ddc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5f32ddcd443c1de9485003e8a1e9661781903bee)) +* **api:** api update ([a2eea78](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a2eea789ebbd99a4e4869d3abb5a227e4f8d6629)) +* **api:** api update ([212f078](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/212f078a3fffc70ede17b3e4de23903d14178086)) +* **api:** api update ([41b02ef](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/41b02efb70098a498ae0639a9b75e5f5450f81f0)) +* **api:** api update ([2db03f5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2db03f51d66f3af287a0a20fae080b38474ac952)) +* **api:** api update ([e4dd2dd](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e4dd2ddb74ae17f1abdf3baea48da5ff680f3d40)) +* **api:** api update ([0073ccc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0073ccce57bb70a2a33ac9f25eaa3f02c5947143)) +* **api:** api update ([93b27d8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/93b27d8d781b405d7bed40880c4552423dd2de9a)) +* **api:** api update ([c4048c4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c4048c43712afebfbf52d6afa8ff0d9f61fa65eb)) +* **api:** api update ([07e7142](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/07e7142105072534c10d8a6f293ddb1540200039)) +* **api:** api update ([14b9f56](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/14b9f56d6162a62e5555d6727b9bac9a75aab24a)) +* **api:** api update ([891a201](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/891a20154858e332f6965a897a11c1e3eb60d46d)) +* **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)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([4b430d7](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4b430d7c5fddde37e4130e8e9eed501d83400a5d)) + + +### Bug Fixes + +* **ci:** bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 ([3547c2a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3547c2afac2f2460d46c51a0624868f7c5a8c111)) +* **client:** send content-type header for requests with an omitted optional body ([4f2d93e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4f2d93e20ba3469807891876d90405abac984b85)) + ## 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 481865bc..7dcb9bdf 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 bade2ffc..88f4d403 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