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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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/163] 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 c9710327930744b379a472ba9e8626511f2068c9 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:02:02 +0000 Subject: [PATCH 163/163] release: 0.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 166 ++++++++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 169 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..6e15564d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,171 @@ # Changelog +## 0.3.0 (2026-07-11) + +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 ([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)) +* **api:** api update ([efe94c1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/efe94c163c71dbf361316438c01dff00fb2d87d8)) +* **api:** api update ([2894f2a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2894f2a7ecb37a33faf9f9e7b128c14e9bb0c518)) +* **api:** api update ([7466589](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/74665892091c8009dc04edf23fea6acb36eda70d)) + + +### 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