@neynar/nodejs-sdk 2.46.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/api.d.ts +4 -3
- package/build/api/api.js +4 -3
- package/build/api/apis/action-api.d.ts +8 -8
- package/build/api/apis/action-api.js +8 -8
- package/build/api/apis/agents-api.d.ts +51 -20
- package/build/api/apis/agents-api.js +49 -22
- package/build/api/apis/app-host-api.d.ts +71 -32
- package/build/api/apis/app-host-api.js +64 -31
- package/build/api/apis/auth-address-api.d.ts +205 -0
- package/build/api/apis/auth-address-api.js +230 -0
- package/build/api/apis/ban-api.d.ts +16 -16
- package/build/api/apis/ban-api.js +13 -13
- package/build/api/apis/block-api.d.ts +16 -16
- package/build/api/apis/block-api.js +13 -13
- package/build/api/apis/cast-api.d.ts +272 -103
- package/build/api/apis/cast-api.js +223 -68
- package/build/api/apis/channel-api.d.ts +57 -42
- package/build/api/apis/channel-api.js +53 -39
- package/build/api/apis/feed-api.d.ts +225 -181
- package/build/api/apis/feed-api.js +160 -112
- package/build/api/apis/fname-api.d.ts +3 -3
- package/build/api/apis/fname-api.js +4 -4
- package/build/api/apis/follows-api.d.ts +72 -57
- package/build/api/apis/follows-api.js +51 -37
- package/build/api/apis/frame-api.d.ts +144 -61
- package/build/api/apis/frame-api.js +127 -51
- package/build/api/apis/login-api.d.ts +3 -3
- package/build/api/apis/login-api.js +4 -4
- package/build/api/apis/metrics-api.d.ts +16 -16
- package/build/api/apis/metrics-api.js +11 -11
- package/build/api/apis/mute-api.d.ts +16 -16
- package/build/api/apis/mute-api.js +13 -13
- package/build/api/apis/notifications-api.d.ts +43 -32
- package/build/api/apis/notifications-api.js +58 -41
- package/build/api/apis/onchain-api.d.ts +265 -45
- package/build/api/apis/onchain-api.js +253 -38
- package/build/api/apis/reaction-api.d.ts +46 -29
- package/build/api/apis/reaction-api.js +39 -23
- package/build/api/apis/signer-api.d.ts +30 -24
- package/build/api/apis/signer-api.js +30 -24
- package/build/api/apis/storage-api.d.ts +9 -9
- package/build/api/apis/storage-api.js +10 -10
- package/build/api/apis/subscribers-api.d.ts +55 -35
- package/build/api/apis/subscribers-api.js +39 -20
- package/build/api/apis/user-api.d.ts +223 -305
- package/build/api/apis/user-api.js +192 -274
- package/build/api/apis/webhook-api.d.ts +3 -3
- package/build/api/apis/webhook-api.js +9 -9
- package/build/api/base.d.ts +3 -3
- package/build/api/base.js +4 -4
- package/build/api/common.d.ts +3 -3
- package/build/api/common.js +3 -3
- package/build/api/configuration.d.ts +3 -3
- package/build/api/configuration.js +3 -3
- package/build/api/index.d.ts +3 -3
- package/build/api/index.js +3 -3
- package/build/api/models/add-verification-req-body.d.ts +3 -3
- package/build/api/models/add-verification-req-body.js +3 -3
- package/build/api/models/address-balance-verified-address.d.ts +3 -3
- package/build/api/models/address-balance-verified-address.js +3 -3
- package/build/api/models/address-balance.d.ts +3 -3
- package/build/api/models/address-balance.js +3 -3
- package/build/api/models/app-host-event-type.d.ts +3 -3
- package/build/api/models/app-host-event-type.js +3 -3
- package/build/api/models/app-host-get-event-response-notification-details.d.ts +3 -3
- package/build/api/models/app-host-get-event-response-notification-details.js +3 -3
- package/build/api/models/app-host-get-event-response.d.ts +3 -3
- package/build/api/models/app-host-get-event-response.js +3 -3
- package/build/api/models/app-host-post-event-req-body-one-of-signed-message-one-of.d.ts +36 -0
- package/build/api/models/{app-host-post-event-body.js → app-host-post-event-req-body-one-of-signed-message-one-of.js} +3 -3
- package/build/api/models/app-host-post-event-req-body-one-of-signed-message.d.ts +18 -0
- package/build/api/models/{app-host-post-event-body-one-of.js → app-host-post-event-req-body-one-of-signed-message.js} +3 -3
- package/build/api/models/app-host-post-event-req-body-one-of.d.ts +31 -0
- package/build/api/models/{cast-with-interactions-all-of.js → app-host-post-event-req-body-one-of.js} +3 -3
- package/build/api/models/{app-host-post-event-body-one-of1.d.ts → app-host-post-event-req-body-one-of1.d.ts} +9 -9
- package/build/api/models/{app-host-post-event-body-one-of1.js → app-host-post-event-req-body-one-of1.js} +3 -3
- package/build/api/models/app-host-post-event-req-body.d.ts +19 -0
- package/build/api/models/app-host-post-event-req-body.js +15 -0
- package/build/api/models/app-host-post-event-response.d.ts +3 -3
- package/build/api/models/app-host-post-event-response.js +3 -3
- package/build/api/models/app-host-user-state-response-notifications-enabled-inner.d.ts +3 -3
- package/build/api/models/app-host-user-state-response-notifications-enabled-inner.js +3 -3
- package/build/api/models/app-host-user-state-response.d.ts +3 -3
- package/build/api/models/app-host-user-state-response.js +3 -3
- package/build/api/models/authorization-url-response.d.ts +3 -3
- package/build/api/models/authorization-url-response.js +3 -3
- package/build/api/models/balance-response-user-balance.d.ts +3 -3
- package/build/api/models/balance-response-user-balance.js +3 -3
- package/build/api/models/balance-response.d.ts +3 -3
- package/build/api/models/balance-response.js +3 -3
- package/build/api/models/ban-list-response.d.ts +3 -3
- package/build/api/models/ban-list-response.js +3 -3
- package/build/api/models/ban-record.d.ts +3 -3
- package/build/api/models/ban-record.js +3 -3
- package/build/api/models/ban-req-body.d.ts +3 -3
- package/build/api/models/ban-req-body.js +3 -3
- package/build/api/models/ban-response.d.ts +3 -3
- package/build/api/models/ban-response.js +3 -3
- package/build/api/models/best-friends-response-users-inner.d.ts +36 -0
- package/build/api/models/best-friends-response-users-inner.js +15 -0
- package/build/api/models/best-friends-response.d.ts +32 -0
- package/build/api/models/best-friends-response.js +15 -0
- package/build/api/models/block-list-response.d.ts +3 -3
- package/build/api/models/block-list-response.js +3 -3
- package/build/api/models/block-record.d.ts +3 -3
- package/build/api/models/block-record.js +3 -3
- package/build/api/models/block-req-body.d.ts +3 -3
- package/build/api/models/block-req-body.js +3 -3
- package/build/api/models/bulk-casts-response.d.ts +6 -6
- package/build/api/models/bulk-casts-response.js +3 -3
- package/build/api/models/bulk-follow-response.d.ts +3 -3
- package/build/api/models/bulk-follow-response.js +3 -3
- package/build/api/models/bulk-users-by-address-response.d.ts +3 -3
- package/build/api/models/bulk-users-by-address-response.js +3 -3
- package/build/api/models/bulk-users-response.d.ts +3 -3
- package/build/api/models/bulk-users-response.js +3 -3
- package/build/api/models/buy-storage-req-body.d.ts +3 -3
- package/build/api/models/buy-storage-req-body.js +3 -3
- package/build/api/models/cast-and-conversations-ref.d.ts +179 -0
- package/build/api/models/cast-and-conversations-ref.js +19 -0
- package/build/api/models/cast-and-conversations.d.ts +180 -0
- package/build/api/models/cast-and-conversations.js +19 -0
- package/build/api/models/cast-composer-actions-list-response-actions-inner-action.d.ts +3 -3
- package/build/api/models/cast-composer-actions-list-response-actions-inner-action.js +3 -3
- package/build/api/models/cast-composer-actions-list-response-actions-inner.d.ts +3 -3
- package/build/api/models/cast-composer-actions-list-response-actions-inner.js +3 -3
- package/build/api/models/cast-composer-actions-list-response.d.ts +3 -3
- package/build/api/models/cast-composer-actions-list-response.js +3 -3
- package/build/api/models/cast-dehydrated.d.ts +3 -3
- package/build/api/models/cast-dehydrated.js +3 -3
- package/build/api/models/cast-embed-crawl-response.d.ts +3 -3
- package/build/api/models/cast-embed-crawl-response.js +3 -3
- package/build/api/models/cast-embedded-parent-author.d.ts +3 -3
- package/build/api/models/cast-embedded-parent-author.js +3 -3
- package/build/api/models/cast-embedded.d.ts +3 -10
- package/build/api/models/cast-embedded.js +3 -3
- package/build/api/models/cast-id.d.ts +3 -3
- package/build/api/models/cast-id.js +3 -3
- package/build/api/models/cast-notification-type.d.ts +3 -3
- package/build/api/models/cast-notification-type.js +3 -3
- package/build/api/models/{cast-with-interactions-reactions.d.ts → cast-reactions.d.ts} +9 -9
- package/build/api/models/cast-reactions.js +15 -0
- package/build/api/models/cast-replies.d.ts +24 -0
- package/build/api/models/cast-replies.js +15 -0
- package/build/api/models/cast-response.d.ts +6 -6
- package/build/api/models/cast-response.js +3 -3
- package/build/api/models/cast-viewer-context.d.ts +3 -3
- package/build/api/models/cast-viewer-context.js +3 -3
- package/build/api/models/cast.d.ts +77 -3
- package/build/api/models/cast.js +3 -3
- package/build/api/models/casts-metrics-response.d.ts +3 -3
- package/build/api/models/casts-metrics-response.js +3 -3
- package/build/api/models/casts-metrics.d.ts +3 -3
- package/build/api/models/casts-metrics.js +3 -3
- package/build/api/models/casts-response-result.d.ts +6 -6
- package/build/api/models/casts-response-result.js +3 -3
- package/build/api/models/casts-response.d.ts +3 -3
- package/build/api/models/casts-response.js +3 -3
- package/build/api/models/casts-search-response.d.ts +6 -6
- package/build/api/models/casts-search-response.js +3 -3
- package/build/api/models/channel-activity.d.ts +3 -3
- package/build/api/models/channel-activity.js +3 -3
- package/build/api/models/channel-dehydrated.d.ts +3 -3
- package/build/api/models/channel-dehydrated.js +3 -3
- package/build/api/models/channel-external-link.d.ts +3 -3
- package/build/api/models/channel-external-link.js +3 -3
- package/build/api/models/channel-follow-req-body.d.ts +3 -3
- package/build/api/models/channel-follow-req-body.js +3 -3
- package/build/api/models/channel-list-response.d.ts +3 -3
- package/build/api/models/channel-list-response.js +3 -3
- package/build/api/models/channel-member-channel.d.ts +3 -3
- package/build/api/models/channel-member-channel.js +3 -3
- package/build/api/models/channel-member-invite-list-response.d.ts +3 -3
- package/build/api/models/channel-member-invite-list-response.js +3 -3
- package/build/api/models/channel-member-invite.d.ts +3 -3
- package/build/api/models/channel-member-invite.js +3 -3
- package/build/api/models/channel-member-list-response.d.ts +3 -3
- package/build/api/models/channel-member-list-response.js +3 -3
- package/build/api/models/channel-member-role.d.ts +4 -3
- package/build/api/models/channel-member-role.js +5 -4
- package/build/api/models/channel-member-user.d.ts +3 -3
- package/build/api/models/channel-member-user.js +3 -3
- package/build/api/models/channel-member.d.ts +3 -3
- package/build/api/models/channel-member.js +3 -3
- package/build/api/models/channel-or-channel-dehydrated.d.ts +3 -3
- package/build/api/models/channel-or-channel-dehydrated.js +3 -3
- package/build/api/models/channel-response-bulk.d.ts +3 -3
- package/build/api/models/channel-response-bulk.js +3 -3
- package/build/api/models/channel-response.d.ts +3 -3
- package/build/api/models/channel-response.js +3 -3
- package/build/api/models/channel-search-response.d.ts +3 -3
- package/build/api/models/channel-search-response.js +3 -3
- package/build/api/models/channel-user-context.d.ts +3 -3
- package/build/api/models/channel-user-context.js +3 -3
- package/build/api/models/channel.d.ts +18 -18
- package/build/api/models/channel.js +3 -3
- package/build/api/models/conflict-error-res.d.ts +3 -3
- package/build/api/models/conflict-error-res.js +3 -3
- package/build/api/models/conversation-conversation.d.ts +9 -9
- package/build/api/models/conversation-conversation.js +3 -3
- package/build/api/models/conversation-summary-summary.d.ts +3 -3
- package/build/api/models/conversation-summary-summary.js +3 -3
- package/build/api/models/conversation-summary.d.ts +3 -3
- package/build/api/models/conversation-summary.js +3 -3
- package/build/api/models/conversation.d.ts +3 -3
- package/build/api/models/conversation.js +3 -3
- package/build/api/models/delete-cast-req-body.d.ts +4 -4
- package/build/api/models/delete-cast-req-body.js +3 -3
- package/build/api/models/delete-frame-req-body.d.ts +3 -3
- package/build/api/models/delete-frame-req-body.js +3 -3
- package/build/api/models/delete-frame-response.d.ts +3 -3
- package/build/api/models/delete-frame-response.js +3 -3
- package/build/api/models/deploy-fungible-response-contract-fungible.d.ts +3 -3
- package/build/api/models/deploy-fungible-response-contract-fungible.js +3 -3
- package/build/api/models/deploy-fungible-response-contract.d.ts +3 -3
- package/build/api/models/deploy-fungible-response-contract.js +3 -3
- package/build/api/models/deploy-fungible-response.d.ts +3 -3
- package/build/api/models/deploy-fungible-response.js +3 -3
- package/build/api/models/developer-managed-signer.d.ts +3 -3
- package/build/api/models/developer-managed-signer.js +3 -3
- package/build/api/models/embed-cast-deep.d.ts +3 -3
- package/build/api/models/embed-cast-deep.js +3 -3
- package/build/api/models/embed-cast.d.ts +3 -3
- package/build/api/models/embed-cast.js +3 -3
- package/build/api/models/embed-deep.d.ts +3 -3
- package/build/api/models/embed-deep.js +3 -3
- package/build/api/models/embed-url-metadata-image.d.ts +3 -3
- package/build/api/models/embed-url-metadata-image.js +3 -3
- package/build/api/models/embed-url-metadata-video-stream-inner.d.ts +3 -3
- package/build/api/models/embed-url-metadata-video-stream-inner.js +3 -3
- package/build/api/models/embed-url-metadata-video.d.ts +3 -3
- package/build/api/models/embed-url-metadata-video.js +3 -3
- package/build/api/models/embed-url-metadata.d.ts +3 -3
- package/build/api/models/embed-url-metadata.js +3 -3
- package/build/api/models/embed-url.d.ts +3 -3
- package/build/api/models/embed-url.js +3 -3
- package/build/api/models/embed.d.ts +3 -3
- package/build/api/models/embed.js +3 -3
- package/build/api/models/error-res.d.ts +3 -3
- package/build/api/models/error-res.js +3 -3
- package/build/api/models/farcaster-action-req-body-action.d.ts +3 -3
- package/build/api/models/farcaster-action-req-body-action.js +3 -3
- package/build/api/models/farcaster-action-req-body.d.ts +3 -3
- package/build/api/models/farcaster-action-req-body.js +3 -3
- package/build/api/models/farcaster-manifest-frame.d.ts +3 -3
- package/build/api/models/farcaster-manifest-frame.js +3 -3
- package/build/api/models/farcaster-manifest.d.ts +6 -6
- package/build/api/models/farcaster-manifest.js +3 -3
- package/build/api/models/feed-response.d.ts +6 -6
- package/build/api/models/feed-response.js +3 -3
- package/build/api/models/fetch-cast-quotes-identifier-parameter.d.ts +16 -0
- package/build/api/models/fetch-cast-quotes-identifier-parameter.js +15 -0
- package/build/api/models/fetch-cast-quotes200-response.d.ts +32 -0
- package/build/api/models/fetch-cast-quotes200-response.js +15 -0
- package/build/api/models/fetch-feed-for-you400-response.d.ts +3 -3
- package/build/api/models/fetch-feed-for-you400-response.js +3 -3
- package/build/api/models/fetch-frame-meta-tags-from-url200-response.d.ts +3 -3
- package/build/api/models/fetch-frame-meta-tags-from-url200-response.js +3 -3
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner.d.ts +3 -3
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner.js +3 -3
- package/build/api/models/fetch-relevant-frames200-response.d.ts +3 -3
- package/build/api/models/fetch-relevant-frames200-response.js +3 -3
- package/build/api/models/fetch-user-interactions200-response.d.ts +3 -3
- package/build/api/models/fetch-user-interactions200-response.js +3 -3
- package/build/api/models/fname-availability-response.d.ts +3 -3
- package/build/api/models/fname-availability-response.js +3 -3
- package/build/api/models/follow-req-body.d.ts +3 -3
- package/build/api/models/follow-req-body.js +3 -3
- package/build/api/models/follow-response.d.ts +3 -3
- package/build/api/models/follow-response.js +3 -3
- package/build/api/models/follower-dehydrated.d.ts +3 -3
- package/build/api/models/follower-dehydrated.js +3 -3
- package/build/api/models/follower.d.ts +3 -3
- package/build/api/models/follower.js +3 -3
- package/build/api/models/followers-response.d.ts +3 -3
- package/build/api/models/followers-response.js +3 -3
- package/build/api/models/frame-action-button.d.ts +3 -3
- package/build/api/models/frame-action-button.js +3 -3
- package/build/api/models/frame-action-req-body.d.ts +4 -4
- package/build/api/models/frame-action-req-body.js +3 -3
- package/build/api/models/frame-action.d.ts +3 -3
- package/build/api/models/frame-action.js +3 -3
- package/build/api/models/frame-button-action-type.d.ts +3 -3
- package/build/api/models/frame-button-action-type.js +3 -3
- package/build/api/models/frame-catalog-response.d.ts +3 -3
- package/build/api/models/frame-catalog-response.js +3 -3
- package/build/api/models/frame-developer-managed-action-req-body.d.ts +4 -4
- package/build/api/models/frame-developer-managed-action-req-body.js +3 -3
- package/build/api/models/frame-input.d.ts +3 -3
- package/build/api/models/frame-input.js +3 -3
- package/build/api/models/frame-notification-tokens-notification-tokens-inner.d.ts +3 -3
- package/build/api/models/frame-notification-tokens-notification-tokens-inner.js +3 -3
- package/build/api/models/frame-notification-tokens.d.ts +3 -3
- package/build/api/models/frame-notification-tokens.js +3 -3
- package/build/api/models/{transaction-frame-pay-all-of-transaction.d.ts → frame-pay-transaction-req-body-transaction.d.ts} +6 -6
- package/build/api/models/frame-pay-transaction-req-body-transaction.js +15 -0
- package/build/api/models/{frame-pay-transaction-request-body.d.ts → frame-pay-transaction-req-body.d.ts} +11 -11
- package/build/api/models/frame-pay-transaction-req-body.js +15 -0
- package/build/api/models/frame-signature-packet-trusted-data.d.ts +3 -3
- package/build/api/models/frame-signature-packet-trusted-data.js +3 -3
- package/build/api/models/frame-signature-packet-untrusted-data.d.ts +3 -3
- package/build/api/models/frame-signature-packet-untrusted-data.js +3 -3
- package/build/api/models/frame-signature-packet.d.ts +3 -3
- package/build/api/models/frame-signature-packet.js +3 -3
- package/build/api/models/frame-state.d.ts +3 -3
- package/build/api/models/frame-state.js +3 -3
- package/build/api/models/frame-transaction.d.ts +3 -3
- package/build/api/models/frame-transaction.js +3 -3
- package/build/api/models/{frame-v1-all-of-input.d.ts → frame-v1-input.d.ts} +6 -6
- package/build/api/models/frame-v1-input.js +15 -0
- package/build/api/models/{frame-v1-all-of-state.d.ts → frame-v1-state.d.ts} +6 -6
- package/build/api/models/frame-v1-state.js +15 -0
- package/build/api/models/frame-v1.d.ts +63 -7
- package/build/api/models/frame-v1.js +3 -3
- package/build/api/models/{frame-v2-all-of-metadata.d.ts → frame-v2-metadata.d.ts} +6 -6
- package/build/api/models/frame-v2-metadata.js +15 -0
- package/build/api/models/frame-v2-with-full-author.d.ts +51 -7
- package/build/api/models/frame-v2-with-full-author.js +3 -3
- package/build/api/models/frame-v2.d.ts +51 -7
- package/build/api/models/frame-v2.js +3 -3
- package/build/api/models/frame-validate-analytics-input-text-input-texts-inner.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-input-text-input-texts-inner.js +3 -3
- package/build/api/models/frame-validate-analytics-input-text.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-input-text.js +3 -3
- package/build/api/models/frame-validate-analytics-interactions-per-cast-interactions-per-cast-inner.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-interactions-per-cast-interactions-per-cast-inner.js +3 -3
- package/build/api/models/frame-validate-analytics-interactions-per-cast.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-interactions-per-cast.js +3 -3
- package/build/api/models/frame-validate-analytics-interactors-interactors-inner.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-interactors-interactors-inner.js +3 -3
- package/build/api/models/frame-validate-analytics-interactors.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-interactors.js +3 -3
- package/build/api/models/frame-validate-analytics-response.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-response.js +3 -3
- package/build/api/models/frame-validate-analytics-total-interactors.d.ts +3 -3
- package/build/api/models/frame-validate-analytics-total-interactors.js +3 -3
- package/build/api/models/frame-validate-list-response.d.ts +3 -3
- package/build/api/models/frame-validate-list-response.js +3 -3
- package/build/api/models/frame.d.ts +3 -3
- package/build/api/models/frame.js +3 -3
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner-stats.d.ts +11 -11
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner-stats.js +3 -3
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner.d.ts +8 -8
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner.js +3 -3
- package/build/api/models/get-notification-campaign-stats200-response.d.ts +5 -5
- package/build/api/models/get-notification-campaign-stats200-response.js +3 -3
- package/build/api/models/{html-metadata-all-of-oembed.d.ts → html-metadata-oembed.d.ts} +5 -5
- package/build/api/models/html-metadata-oembed.js +15 -0
- package/build/api/models/html-metadata.d.ts +310 -7
- package/build/api/models/html-metadata.js +3 -3
- package/build/api/models/image-object.d.ts +3 -3
- package/build/api/models/image-object.js +3 -3
- package/build/api/models/index.d.ts +33 -59
- package/build/api/models/index.js +33 -59
- package/build/api/models/invite-channel-member-req-body.d.ts +3 -3
- package/build/api/models/invite-channel-member-req-body.js +3 -3
- package/build/api/models/location-address.d.ts +3 -3
- package/build/api/models/location-address.js +3 -3
- package/build/api/models/location.d.ts +9 -9
- package/build/api/models/location.js +3 -3
- package/build/api/models/mark-notifications-as-seen-req-body.d.ts +3 -3
- package/build/api/models/mark-notifications-as-seen-req-body.js +3 -3
- package/build/api/models/mint-nft-request-recipients-inner.d.ts +36 -0
- package/build/api/models/mint-nft-request-recipients-inner.js +15 -0
- package/build/api/models/mint-nft-request.d.ts +49 -0
- package/build/api/models/{transaction-send-fungibles-request.js → mint-nft-request.js} +5 -5
- package/build/api/models/mint-nft200-response-transactions-inner-receipt.d.ts +36 -0
- package/build/api/models/mint-nft200-response-transactions-inner-receipt.js +15 -0
- package/build/api/models/mint-nft200-response-transactions-inner-recipient.d.ts +36 -0
- package/build/api/models/mint-nft200-response-transactions-inner-recipient.js +15 -0
- package/build/api/models/mint-nft200-response-transactions-inner.d.ts +38 -0
- package/build/api/models/mint-nft200-response-transactions-inner.js +15 -0
- package/build/api/models/mint-nft200-response.d.ts +25 -0
- package/build/api/models/mint-nft200-response.js +15 -0
- package/build/api/models/mute-list-response.d.ts +3 -3
- package/build/api/models/mute-list-response.js +3 -3
- package/build/api/models/mute-record.d.ts +3 -3
- package/build/api/models/mute-record.js +3 -3
- package/build/api/models/mute-req-body.d.ts +3 -3
- package/build/api/models/mute-req-body.js +3 -3
- package/build/api/models/mute-response.d.ts +3 -3
- package/build/api/models/mute-response.js +3 -3
- package/build/api/models/network.d.ts +3 -3
- package/build/api/models/network.js +3 -3
- package/build/api/models/next-cursor.d.ts +3 -3
- package/build/api/models/next-cursor.js +3 -3
- package/build/api/models/neynar-frame-creation-req-body.d.ts +3 -3
- package/build/api/models/neynar-frame-creation-req-body.js +3 -3
- package/build/api/models/neynar-frame-page.d.ts +4 -4
- package/build/api/models/neynar-frame-page.js +3 -3
- package/build/api/models/neynar-frame-update-req-body.d.ts +3 -3
- package/build/api/models/neynar-frame-update-req-body.js +3 -3
- package/build/api/models/neynar-frame.d.ts +3 -3
- package/build/api/models/neynar-frame.js +3 -3
- package/build/api/models/neynar-next-frame-page-mint-url.d.ts +3 -3
- package/build/api/models/neynar-next-frame-page-mint-url.js +3 -3
- package/build/api/models/neynar-next-frame-page-redirect.d.ts +3 -3
- package/build/api/models/neynar-next-frame-page-redirect.js +3 -3
- package/build/api/models/neynar-next-frame-page.d.ts +3 -3
- package/build/api/models/neynar-next-frame-page.js +3 -3
- package/build/api/models/neynar-page-button-next-page.d.ts +3 -3
- package/build/api/models/neynar-page-button-next-page.js +3 -3
- package/build/api/models/neynar-page-button.d.ts +3 -3
- package/build/api/models/neynar-page-button.js +3 -3
- package/build/api/models/neynar-page-image.d.ts +3 -3
- package/build/api/models/neynar-page-image.js +3 -3
- package/build/api/models/neynar-page-input-text.d.ts +4 -4
- package/build/api/models/neynar-page-input-text.js +3 -3
- package/build/api/models/neynar-page-input.d.ts +3 -3
- package/build/api/models/neynar-page-input.js +3 -3
- package/build/api/models/nonce-response.d.ts +3 -3
- package/build/api/models/nonce-response.js +3 -3
- package/build/api/models/notification-delivery.d.ts +3 -3
- package/build/api/models/notification-delivery.js +3 -3
- package/build/api/models/notification-type.d.ts +4 -4
- package/build/api/models/notification-type.js +4 -4
- package/build/api/models/notification.d.ts +6 -6
- package/build/api/models/notification.js +3 -3
- package/build/api/models/notifications-response.d.ts +3 -3
- package/build/api/models/notifications-response.js +3 -3
- package/build/api/models/oembed-link-data.d.ts +77 -7
- package/build/api/models/oembed-link-data.js +7 -3
- package/build/api/models/oembed-photo-data.d.ts +95 -7
- package/build/api/models/oembed-photo-data.js +7 -3
- package/build/api/models/oembed-rich-data.d.ts +95 -7
- package/build/api/models/oembed-rich-data.js +7 -3
- package/build/api/models/oembed-video-data.d.ts +95 -7
- package/build/api/models/oembed-video-data.js +7 -3
- package/build/api/models/operation-response.d.ts +3 -3
- package/build/api/models/operation-response.js +3 -3
- package/build/api/models/post-cast-req-body-embeds-cast-id-properties.d.ts +3 -3
- package/build/api/models/post-cast-req-body-embeds-cast-id-properties.js +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of.d.ts +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of.js +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of1.d.ts +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of1.js +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of2.d.ts +3 -3
- package/build/api/models/post-cast-req-body-embeds-one-of2.js +3 -3
- package/build/api/models/post-cast-req-body-embeds.d.ts +3 -3
- package/build/api/models/post-cast-req-body-embeds.js +3 -3
- package/build/api/models/post-cast-req-body.d.ts +3 -3
- package/build/api/models/post-cast-req-body.js +3 -3
- package/build/api/models/post-cast-response-cast-author.d.ts +3 -3
- package/build/api/models/post-cast-response-cast-author.js +3 -3
- package/build/api/models/post-cast-response-cast.d.ts +4 -4
- package/build/api/models/post-cast-response-cast.js +3 -3
- package/build/api/models/post-cast-response.d.ts +3 -3
- package/build/api/models/post-cast-response.js +3 -3
- package/build/api/models/reaction-for-cast.d.ts +6 -10
- package/build/api/models/reaction-for-cast.js +4 -8
- package/build/api/models/reaction-like.d.ts +3 -3
- package/build/api/models/reaction-like.js +3 -3
- package/build/api/models/reaction-recast.d.ts +3 -3
- package/build/api/models/reaction-recast.js +3 -3
- package/build/api/models/reaction-req-body.d.ts +3 -3
- package/build/api/models/reaction-req-body.js +3 -3
- package/build/api/models/reaction-type.d.ts +3 -3
- package/build/api/models/reaction-type.js +3 -3
- package/build/api/models/reaction-with-cast-info.d.ts +6 -6
- package/build/api/models/reaction-with-cast-info.js +3 -3
- package/build/api/models/reaction-with-user-info.d.ts +3 -3
- package/build/api/models/reaction-with-user-info.js +3 -3
- package/build/api/models/reactions-cast-response.d.ts +3 -3
- package/build/api/models/reactions-cast-response.js +3 -3
- package/build/api/models/reactions-response.d.ts +3 -3
- package/build/api/models/reactions-response.js +3 -3
- package/build/api/models/register-auth-address-developer-managed-signed-key-req-body.d.ts +55 -0
- package/build/api/models/register-auth-address-developer-managed-signed-key-req-body.js +15 -0
- package/build/api/models/register-developer-managed-signed-key-req-body.d.ts +5 -5
- package/build/api/models/register-developer-managed-signed-key-req-body.js +3 -3
- package/build/api/models/register-signed-key-for-developer-managed-auth-address200-response.d.ts +48 -0
- package/build/api/models/register-signed-key-for-developer-managed-auth-address200-response.js +21 -0
- package/build/api/models/register-signer-key-req-body.d.ts +5 -5
- package/build/api/models/register-signer-key-req-body.js +3 -3
- package/build/api/models/register-user-on-chain-req-body-pre-registration-calls-inner.d.ts +14 -14
- package/build/api/models/register-user-on-chain-req-body-pre-registration-calls-inner.js +3 -3
- package/build/api/models/register-user-on-chain-req-body-registration.d.ts +3 -3
- package/build/api/models/register-user-on-chain-req-body-registration.js +3 -3
- package/build/api/models/register-user-on-chain-req-body-signers-inner.d.ts +3 -3
- package/build/api/models/register-user-on-chain-req-body-signers-inner.js +3 -3
- package/build/api/models/register-user-on-chain-req-body.d.ts +14 -14
- package/build/api/models/register-user-on-chain-req-body.js +3 -3
- package/build/api/models/register-user-on-chain-response.d.ts +3 -3
- package/build/api/models/register-user-on-chain-response.js +3 -3
- package/build/api/models/register-user-req-body-metadata.d.ts +3 -3
- package/build/api/models/register-user-req-body-metadata.js +3 -3
- package/build/api/models/register-user-req-body.d.ts +3 -3
- package/build/api/models/register-user-req-body.js +3 -3
- package/build/api/models/register-user-response.d.ts +3 -3
- package/build/api/models/register-user-response.js +3 -3
- package/build/api/models/relevant-followers-response.d.ts +3 -3
- package/build/api/models/relevant-followers-response.js +3 -3
- package/build/api/models/relevant-fungible-owners-response.d.ts +3 -3
- package/build/api/models/relevant-fungible-owners-response.js +3 -3
- package/build/api/models/remove-channel-member-req-body.d.ts +3 -3
- package/build/api/models/remove-channel-member-req-body.js +3 -3
- package/build/api/models/remove-verification-req-body.d.ts +9 -3
- package/build/api/models/remove-verification-req-body.js +3 -3
- package/build/api/models/respond-channel-invite-req-body.d.ts +3 -3
- package/build/api/models/respond-channel-invite-req-body.js +3 -3
- package/build/api/models/send-frame-notifications-req-body-filters-near-location.d.ts +32 -6
- package/build/api/models/send-frame-notifications-req-body-filters-near-location.js +3 -3
- package/build/api/models/send-frame-notifications-req-body-filters.d.ts +3 -3
- package/build/api/models/send-frame-notifications-req-body-filters.js +3 -3
- package/build/api/models/send-frame-notifications-req-body-notification.d.ts +3 -3
- package/build/api/models/send-frame-notifications-req-body-notification.js +3 -3
- package/build/api/models/send-frame-notifications-req-body.d.ts +7 -7
- package/build/api/models/send-frame-notifications-req-body.js +3 -3
- package/build/api/models/send-frame-notifications-response.d.ts +3 -3
- package/build/api/models/send-frame-notifications-response.js +3 -3
- package/build/api/models/shared-signer-permission.d.ts +3 -3
- package/build/api/models/shared-signer-permission.js +3 -3
- package/build/api/models/signed-key-request-sponsor.d.ts +4 -4
- package/build/api/models/signed-key-request-sponsor.js +3 -3
- package/build/api/models/signer-list-response.d.ts +3 -3
- package/build/api/models/signer-list-response.js +3 -3
- package/build/api/models/signer.d.ts +3 -3
- package/build/api/models/signer.js +3 -3
- package/build/api/models/simulate-nft-mint-response-inner.d.ts +73 -0
- package/build/api/models/simulate-nft-mint-response-inner.js +15 -0
- package/build/api/models/simulate-nft-mint-response.d.ts +19 -0
- package/build/api/models/simulate-nft-mint-response.js +15 -0
- package/build/api/models/storage-allocation.d.ts +3 -3
- package/build/api/models/storage-allocation.js +3 -3
- package/build/api/models/storage-allocations-response.d.ts +3 -3
- package/build/api/models/storage-allocations-response.js +3 -3
- package/build/api/models/storage-object.d.ts +3 -3
- package/build/api/models/storage-object.js +3 -3
- package/build/api/models/storage-usage-response.d.ts +3 -3
- package/build/api/models/storage-usage-response.js +3 -3
- package/build/api/models/subscribed-to-object.d.ts +3 -3
- package/build/api/models/subscribed-to-object.js +3 -3
- package/build/api/models/subscribed-to-response.d.ts +3 -3
- package/build/api/models/subscribed-to-response.js +3 -3
- package/build/api/models/subscribed-to.d.ts +100 -7
- package/build/api/models/subscribed-to.js +7 -3
- package/build/api/models/subscriber.d.ts +3 -3
- package/build/api/models/subscriber.js +3 -3
- package/build/api/models/subscribers-response.d.ts +3 -3
- package/build/api/models/subscribers-response.js +3 -3
- package/build/api/models/subscription-check-response-value.d.ts +53 -0
- package/build/api/models/{subscription-status.js → subscription-check-response-value.js} +5 -5
- package/build/api/models/subscription-check-response.d.ts +5 -5
- package/build/api/models/subscription-check-response.js +3 -3
- package/build/api/models/subscription-metadata.d.ts +3 -3
- package/build/api/models/subscription-metadata.js +3 -3
- package/build/api/models/subscription-price.d.ts +3 -3
- package/build/api/models/subscription-price.js +3 -3
- package/build/api/models/subscription-tier-price.d.ts +3 -3
- package/build/api/models/subscription-tier-price.js +3 -3
- package/build/api/models/subscription-tier.d.ts +3 -3
- package/build/api/models/subscription-tier.js +3 -3
- package/build/api/models/subscription-token.d.ts +3 -3
- package/build/api/models/subscription-token.js +3 -3
- package/build/api/models/subscription.d.ts +3 -3
- package/build/api/models/subscription.js +3 -3
- package/build/api/models/subscriptions-response.d.ts +3 -3
- package/build/api/models/subscriptions-response.js +3 -3
- package/build/api/models/subscriptions.d.ts +3 -3
- package/build/api/models/subscriptions.js +3 -3
- package/build/api/models/text-range.d.ts +3 -3
- package/build/api/models/text-range.js +3 -3
- package/build/api/models/token-balance-balance.d.ts +3 -3
- package/build/api/models/token-balance-balance.js +3 -3
- package/build/api/models/token-balance-token.d.ts +3 -3
- package/build/api/models/token-balance-token.js +3 -3
- package/build/api/models/token-balance.d.ts +3 -3
- package/build/api/models/token-balance.js +3 -3
- package/build/api/models/transaction-frame-action.d.ts +4 -4
- package/build/api/models/transaction-frame-action.js +3 -3
- package/build/api/models/transaction-frame-config.d.ts +4 -4
- package/build/api/models/transaction-frame-config.js +3 -3
- package/build/api/models/transaction-frame-destination.d.ts +3 -3
- package/build/api/models/transaction-frame-destination.js +3 -3
- package/build/api/models/transaction-frame-line-item.d.ts +3 -3
- package/build/api/models/transaction-frame-line-item.js +3 -3
- package/build/api/models/transaction-frame-pay.d.ts +47 -7
- package/build/api/models/transaction-frame-pay.js +3 -3
- package/build/api/models/transaction-frame-response.d.ts +3 -3
- package/build/api/models/transaction-frame-response.js +3 -3
- package/build/api/models/transaction-frame-status.d.ts +3 -3
- package/build/api/models/transaction-frame-status.js +3 -3
- package/build/api/models/transaction-frame-type.d.ts +3 -3
- package/build/api/models/transaction-frame-type.js +3 -3
- package/build/api/models/transaction-frame.d.ts +3 -3
- package/build/api/models/transaction-frame.js +3 -3
- package/build/api/models/transaction-send-fungibles-receipt.d.ts +3 -3
- package/build/api/models/transaction-send-fungibles-receipt.js +3 -3
- package/build/api/models/transaction-send-fungibles-recipient.d.ts +3 -3
- package/build/api/models/transaction-send-fungibles-recipient.js +3 -3
- package/build/api/models/{transaction-send-fungibles-request.d.ts → transaction-send-fungibles-req-body.d.ts} +11 -11
- package/build/api/models/transaction-send-fungibles-req-body.js +21 -0
- package/build/api/models/transaction-send-fungibles-response.d.ts +3 -3
- package/build/api/models/transaction-send-fungibles-response.js +3 -3
- package/build/api/models/transaction-send-tx-info.d.ts +3 -3
- package/build/api/models/transaction-send-tx-info.js +3 -3
- package/build/api/models/trending-channel-response.d.ts +3 -3
- package/build/api/models/trending-channel-response.js +3 -3
- package/build/api/models/update-user-req-body-location.d.ts +3 -3
- package/build/api/models/update-user-req-body-location.js +3 -3
- package/build/api/models/update-user-req-body-verified-accounts.d.ts +3 -3
- package/build/api/models/update-user-req-body-verified-accounts.js +3 -3
- package/build/api/models/update-user-req-body.d.ts +9 -3
- package/build/api/models/update-user-req-body.js +3 -3
- package/build/api/models/user-dehydrated.d.ts +3 -3
- package/build/api/models/user-dehydrated.js +3 -3
- package/build/api/models/user-experimental.d.ts +3 -3
- package/build/api/models/user-experimental.js +3 -3
- package/build/api/models/user-fidresponse.d.ts +4 -4
- package/build/api/models/user-fidresponse.js +3 -3
- package/build/api/models/user-power-lite-response-result.d.ts +3 -3
- package/build/api/models/user-power-lite-response-result.js +3 -3
- package/build/api/models/user-power-lite-response.d.ts +3 -3
- package/build/api/models/user-power-lite-response.js +3 -3
- package/build/api/models/user-pro.d.ts +41 -0
- package/build/api/models/user-pro.js +20 -0
- package/build/api/models/user-profile-banner.d.ts +24 -0
- package/build/api/models/user-profile-banner.js +15 -0
- package/build/api/models/user-profile-bio.d.ts +3 -3
- package/build/api/models/user-profile-bio.js +3 -3
- package/build/api/models/user-profile.d.ts +10 -3
- package/build/api/models/user-profile.js +3 -3
- package/build/api/models/user-response.d.ts +3 -3
- package/build/api/models/user-response.js +3 -3
- package/build/api/models/user-search-response-result.d.ts +6 -6
- package/build/api/models/user-search-response-result.js +3 -3
- package/build/api/models/user-search-response.d.ts +3 -3
- package/build/api/models/user-search-response.js +3 -3
- package/build/api/models/user-verified-accounts-inner.d.ts +4 -4
- package/build/api/models/user-verified-accounts-inner.js +3 -3
- package/build/api/models/user-verified-addresses-primary.d.ts +3 -3
- package/build/api/models/user-verified-addresses-primary.js +3 -3
- package/build/api/models/user-verified-addresses.d.ts +3 -3
- package/build/api/models/user-verified-addresses.js +3 -3
- package/build/api/models/user-viewer-context.d.ts +3 -3
- package/build/api/models/user-viewer-context.js +3 -3
- package/build/api/models/user.d.ts +17 -10
- package/build/api/models/user.js +3 -3
- package/build/api/models/users-active-channels-response.d.ts +3 -3
- package/build/api/models/users-active-channels-response.js +3 -3
- package/build/api/models/users-response.d.ts +3 -3
- package/build/api/models/users-response.js +3 -3
- package/build/api/models/validate-frame-action-req-body.d.ts +3 -3
- package/build/api/models/validate-frame-action-req-body.js +3 -3
- package/build/api/models/validate-frame-action-response.d.ts +3 -3
- package/build/api/models/validate-frame-action-response.js +3 -3
- package/build/api/models/validated-frame-action-signer.d.ts +3 -3
- package/build/api/models/validated-frame-action-signer.js +3 -3
- package/build/api/models/validated-frame-action-tapped-button.d.ts +3 -3
- package/build/api/models/validated-frame-action-tapped-button.js +3 -3
- package/build/api/models/validated-frame-action.d.ts +6 -6
- package/build/api/models/validated-frame-action.js +3 -3
- package/build/api/models/verification-chain-id.d.ts +3 -3
- package/build/api/models/verification-chain-id.js +3 -3
- package/build/api/models/verification-type.d.ts +3 -3
- package/build/api/models/verification-type.js +3 -3
- package/build/api/models/video-object.d.ts +3 -3
- package/build/api/models/video-object.js +3 -3
- package/build/api/models/webhook-delete-req-body.d.ts +3 -3
- package/build/api/models/webhook-delete-req-body.js +3 -3
- package/build/api/models/webhook-list-response.d.ts +3 -3
- package/build/api/models/webhook-list-response.js +3 -3
- package/build/api/models/webhook-patch-req-body.d.ts +3 -3
- package/build/api/models/webhook-patch-req-body.js +3 -3
- package/build/api/models/webhook-post-req-body.d.ts +3 -3
- package/build/api/models/webhook-post-req-body.js +3 -3
- package/build/api/models/webhook-put-req-body.d.ts +3 -3
- package/build/api/models/webhook-put-req-body.js +3 -3
- package/build/api/models/webhook-response.d.ts +3 -3
- package/build/api/models/webhook-response.js +3 -3
- package/build/api/models/webhook-secret.d.ts +3 -3
- package/build/api/models/webhook-secret.js +3 -3
- package/build/api/models/webhook-subscription-filters-cast.d.ts +9 -3
- package/build/api/models/webhook-subscription-filters-cast.js +3 -3
- package/build/api/models/webhook-subscription-filters-follow.d.ts +3 -3
- package/build/api/models/webhook-subscription-filters-follow.js +3 -3
- package/build/api/models/webhook-subscription-filters-reaction.d.ts +9 -3
- package/build/api/models/webhook-subscription-filters-reaction.js +3 -3
- package/build/api/models/webhook-subscription-filters-user-updated.d.ts +3 -3
- package/build/api/models/webhook-subscription-filters-user-updated.js +3 -3
- package/build/api/models/webhook-subscription-filters.d.ts +3 -3
- package/build/api/models/webhook-subscription-filters.js +3 -3
- package/build/api/models/webhook-subscription.d.ts +3 -3
- package/build/api/models/webhook-subscription.js +3 -3
- package/build/api/models/webhook.d.ts +3 -3
- package/build/api/models/webhook.js +3 -3
- package/build/api/models/zod-error-errors-inner.d.ts +3 -3
- package/build/api/models/zod-error-errors-inner.js +3 -3
- package/build/api/models/zod-error.d.ts +3 -3
- package/build/api/models/zod-error.js +3 -3
- package/build/clients/NeynarAPIClient.d.ts +403 -246
- package/build/clients/NeynarAPIClient.js +374 -194
- package/build/hub-api/models/index.d.ts +2 -0
- package/build/hub-api/models/index.js +2 -0
- package/build/hub-api/models/storage-limits-response-tier-subscriptions-inner.d.ts +34 -0
- package/build/hub-api/models/storage-limits-response-tier-subscriptions-inner.js +19 -0
- package/build/hub-api/models/storage-limits-response-unit-details.d.ts +35 -0
- package/build/hub-api/models/storage-limits-response-unit-details.js +20 -0
- package/build/hub-api/models/storage-limits-response.d.ts +20 -0
- package/build/types/webhooks.d.ts +1 -12
- package/package.json +3 -3
- package/build/api/models/app-host-post-event-body-one-of.d.ts +0 -30
- package/build/api/models/app-host-post-event-body.d.ts +0 -19
- package/build/api/models/authorization-url-response-type.d.ts +0 -20
- package/build/api/models/authorization-url-response-type.js +0 -24
- package/build/api/models/bulk-user-address-type.d.ts +0 -21
- package/build/api/models/bulk-user-address-type.js +0 -25
- package/build/api/models/cast-composer-type.d.ts +0 -21
- package/build/api/models/cast-composer-type.js +0 -25
- package/build/api/models/cast-conversation-sort-type.d.ts +0 -22
- package/build/api/models/cast-conversation-sort-type.js +0 -26
- package/build/api/models/cast-param-type.d.ts +0 -21
- package/build/api/models/cast-param-type.js +0 -25
- package/build/api/models/cast-with-interactions-all-of.d.ts +0 -93
- package/build/api/models/cast-with-interactions-and-conversations-all-of.d.ts +0 -25
- package/build/api/models/cast-with-interactions-and-conversations-all-of.js +0 -15
- package/build/api/models/cast-with-interactions-and-conversations-ref-all-of.d.ts +0 -24
- package/build/api/models/cast-with-interactions-and-conversations-ref-all-of.js +0 -15
- package/build/api/models/cast-with-interactions-and-conversations-ref.d.ts +0 -19
- package/build/api/models/cast-with-interactions-and-conversations-ref.js +0 -15
- package/build/api/models/cast-with-interactions-and-conversations.d.ts +0 -18
- package/build/api/models/cast-with-interactions-and-conversations.js +0 -15
- package/build/api/models/cast-with-interactions-reactions.js +0 -15
- package/build/api/models/cast-with-interactions-replies.d.ts +0 -24
- package/build/api/models/cast-with-interactions-replies.js +0 -15
- package/build/api/models/cast-with-interactions.d.ts +0 -18
- package/build/api/models/cast-with-interactions.js +0 -15
- package/build/api/models/casts-search-response-result.d.ts +0 -32
- package/build/api/models/casts-search-response-result.js +0 -15
- package/build/api/models/channel-type.d.ts +0 -21
- package/build/api/models/channel-type.js +0 -25
- package/build/api/models/embed-type.d.ts +0 -37
- package/build/api/models/embed-type.js +0 -41
- package/build/api/models/farcaster-manifest-account-association.d.ts +0 -36
- package/build/api/models/farcaster-manifest-account-association.js +0 -15
- package/build/api/models/feed-trending-provider.d.ts +0 -22
- package/build/api/models/feed-trending-provider.js +0 -26
- package/build/api/models/feed-type.d.ts +0 -21
- package/build/api/models/feed-type.js +0 -25
- package/build/api/models/filter-type.d.ts +0 -25
- package/build/api/models/filter-type.js +0 -29
- package/build/api/models/follow-sort-type.d.ts +0 -21
- package/build/api/models/follow-sort-type.js +0 -25
- package/build/api/models/for-you-provider.d.ts +0 -22
- package/build/api/models/for-you-provider.js +0 -26
- package/build/api/models/frame-base.d.ts +0 -36
- package/build/api/models/frame-base.js +0 -15
- package/build/api/models/frame-pay-transaction-request-body.js +0 -15
- package/build/api/models/frame-type.d.ts +0 -21
- package/build/api/models/frame-type.js +0 -25
- package/build/api/models/frame-v1-all-of-input.js +0 -15
- package/build/api/models/frame-v1-all-of-state.js +0 -15
- package/build/api/models/frame-v1-all-of.d.ts +0 -57
- package/build/api/models/frame-v1-all-of.js +0 -15
- package/build/api/models/frame-v2-all-of-metadata.js +0 -15
- package/build/api/models/frame-v2-all-of.d.ts +0 -45
- package/build/api/models/frame-v2-all-of.js +0 -15
- package/build/api/models/frame-v2-with-full-author-all-of.d.ts +0 -45
- package/build/api/models/frame-v2-with-full-author-all-of.js +0 -15
- package/build/api/models/fungible-owner-relevant-network.d.ts +0 -24
- package/build/api/models/fungible-owner-relevant-network.js +0 -28
- package/build/api/models/html-metadata-all-of-oembed.js +0 -15
- package/build/api/models/html-metadata-all-of.d.ts +0 -25
- package/build/api/models/html-metadata-all-of.js +0 -15
- package/build/api/models/mini-app-time-window.d.ts +0 -24
- package/build/api/models/mini-app-time-window.js +0 -28
- package/build/api/models/oembed-data.d.ts +0 -84
- package/build/api/models/oembed-data.js +0 -15
- package/build/api/models/oembed-link-data-all-of.d.ts +0 -28
- package/build/api/models/oembed-link-data-all-of.js +0 -19
- package/build/api/models/oembed-photo-data-all-of.d.ts +0 -46
- package/build/api/models/oembed-photo-data-all-of.js +0 -19
- package/build/api/models/oembed-rich-data-all-of.d.ts +0 -46
- package/build/api/models/oembed-rich-data-all-of.js +0 -19
- package/build/api/models/oembed-video-data-all-of.d.ts +0 -46
- package/build/api/models/oembed-video-data-all-of.js +0 -19
- package/build/api/models/og-object.d.ts +0 -314
- package/build/api/models/og-object.js +0 -15
- package/build/api/models/profile-url-pfp.d.ts +0 -24
- package/build/api/models/profile-url-pfp.js +0 -15
- package/build/api/models/profile-url.d.ts +0 -25
- package/build/api/models/profile-url.js +0 -15
- package/build/api/models/reactions-type.d.ts +0 -22
- package/build/api/models/reactions-type.js +0 -26
- package/build/api/models/search-sort-type.d.ts +0 -21
- package/build/api/models/search-sort-type.js +0 -25
- package/build/api/models/searched-user.d.ts +0 -130
- package/build/api/models/searched-user.js +0 -19
- package/build/api/models/subscribed-to-all-of.d.ts +0 -44
- package/build/api/models/subscribed-to-all-of.js +0 -15
- package/build/api/models/subscription-provider.d.ts +0 -20
- package/build/api/models/subscription-provider.js +0 -24
- package/build/api/models/subscription-providers.d.ts +0 -21
- package/build/api/models/subscription-providers.js +0 -25
- package/build/api/models/subscription-status.d.ts +0 -53
- package/build/api/models/transaction-frame-base.d.ts +0 -51
- package/build/api/models/transaction-frame-base.js +0 -15
- package/build/api/models/transaction-frame-pay-all-of-transaction.js +0 -15
- package/build/api/models/transaction-frame-pay-all-of.d.ts +0 -25
- package/build/api/models/transaction-frame-pay-all-of.js +0 -15
- package/build/api/models/validate-frame-aggregate-window.d.ts +0 -30
- package/build/api/models/validate-frame-aggregate-window.js +0 -34
- package/build/api/models/validate-frame-analytics-type.d.ts +0 -23
- package/build/api/models/validate-frame-analytics-type.js +0 -27
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* The
|
|
5
|
+
* Neynar API
|
|
6
|
+
* The Neynar API allows you to interact with the Farcaster protocol among other things. See the [Neynar docs](https://docs.neynar.com/reference) for more details.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document:
|
|
8
|
+
* The version of the OpenAPI document: 3.18.0
|
|
9
9
|
* Contact: team@neynar.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.FetchBulkUsersByEthOrSolAddressAddressTypesEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -30,7 +30,7 @@ const base_1 = require("../base");
|
|
|
30
30
|
const UserApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
|
-
* Removes verification for an eth address for the user
|
|
33
|
+
* Removes verification for an eth address for the user (In order to delete verification `signer_uuid` must be approved)
|
|
34
34
|
* @summary Delete verification
|
|
35
35
|
* @param {RemoveVerificationReqBody} removeVerificationReqBody
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
@@ -43,7 +43,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
deleteVerification: async (removeVerificationReqBody, options = {}) => {
|
|
44
44
|
// verify required parameter 'removeVerificationReqBody' is not null or undefined
|
|
45
45
|
(0, common_1.assertParamExists)('deleteVerification', 'removeVerificationReqBody', removeVerificationReqBody);
|
|
46
|
-
const localVarPath = `/farcaster/user/verification
|
|
46
|
+
const localVarPath = `/v2/farcaster/user/verification/`;
|
|
47
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
48
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
49
49
|
let baseOptions;
|
|
@@ -69,8 +69,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
* Fetches information about multiple users based on FIDs
|
|
70
70
|
* @summary By FIDs
|
|
71
71
|
* @param {string} fids Comma separated list of FIDs, up to 100 at a time
|
|
72
|
-
* @param {number} [viewerFid]
|
|
73
72
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
73
|
+
* @param {number} [viewerFid]
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
* @returns {Promise<BulkUsersResponse>} A promise that resolves to a `BulkUsersResponse` object
|
|
@@ -78,10 +78,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
78
78
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-bulk-users)
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
fetchBulkUsers: async (fids,
|
|
81
|
+
fetchBulkUsers: async (fids, xNeynarExperimental, viewerFid, options = {}) => {
|
|
82
82
|
// verify required parameter 'fids' is not null or undefined
|
|
83
83
|
(0, common_1.assertParamExists)('fetchBulkUsers', 'fids', fids);
|
|
84
|
-
const localVarPath = `/farcaster/user/bulk
|
|
84
|
+
const localVarPath = `/v2/farcaster/user/bulk/`;
|
|
85
85
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
86
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
87
87
|
let baseOptions;
|
|
@@ -116,9 +116,9 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
116
116
|
* Fetches all users based on multiple Ethereum or Solana addresses. Each farcaster user has a custody Ethereum address and optionally verified Ethereum or Solana addresses. This endpoint returns all users that have any of the given addresses as their custody or verified Ethereum or Solana addresses. A custody address can be associated with only 1 farcaster user at a time but a verified address can be associated with multiple users. You can pass in Ethereum and Solana addresses, comma separated, in the same request. The response will contain users associated with the given addresses.
|
|
117
117
|
* @summary By Eth or Sol addresses
|
|
118
118
|
* @param {string} addresses Comma separated list of Ethereum addresses, up to 350 at a time
|
|
119
|
-
* @param {Array<BulkUserAddressType>} [addressTypes] Customize which address types the request should search for. This is a comma-separated string that can include the following values: \'custody_address\' and \'verified_address\'. By default api returns both. To select multiple types, use a comma-separated list of these values.
|
|
120
|
-
* @param {number} [viewerFid]
|
|
121
119
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
120
|
+
* @param {Array<FetchBulkUsersByEthOrSolAddressAddressTypesEnum>} [addressTypes] Customize which address types the request should search for. This is a comma-separated string that can include the following values: \'custody_address\' and \'verified_address\'. By default api returns both. To select multiple types, use a comma-separated list of these values.
|
|
121
|
+
* @param {number} [viewerFid]
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
* @returns {Promise<BulkUsersByAddressResponse>} A promise that resolves to a `BulkUsersByAddressResponse` object
|
|
@@ -126,10 +126,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
126
126
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-bulk-users-by-eth-or-sol-address)
|
|
127
127
|
*
|
|
128
128
|
*/
|
|
129
|
-
fetchBulkUsersByEthOrSolAddress: async (addresses, addressTypes, viewerFid,
|
|
129
|
+
fetchBulkUsersByEthOrSolAddress: async (addresses, xNeynarExperimental, addressTypes, viewerFid, options = {}) => {
|
|
130
130
|
// verify required parameter 'addresses' is not null or undefined
|
|
131
131
|
(0, common_1.assertParamExists)('fetchBulkUsersByEthOrSolAddress', 'addresses', addresses);
|
|
132
|
-
const localVarPath = `/farcaster/user/bulk-by-address
|
|
132
|
+
const localVarPath = `/v2/farcaster/user/bulk-by-address/`;
|
|
133
133
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
134
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
135
|
let baseOptions;
|
|
@@ -145,7 +145,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
localVarQueryParameter['addresses'] = addresses;
|
|
146
146
|
}
|
|
147
147
|
if (addressTypes) {
|
|
148
|
-
localVarQueryParameter['address_types'] = addressTypes
|
|
148
|
+
localVarQueryParameter['address_types'] = addressTypes;
|
|
149
149
|
}
|
|
150
150
|
if (viewerFid !== undefined) {
|
|
151
151
|
localVarQueryParameter['viewer_fid'] = viewerFid;
|
|
@@ -163,101 +163,15 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
options: localVarRequestOptions,
|
|
164
164
|
};
|
|
165
165
|
},
|
|
166
|
-
/**
|
|
167
|
-
* Fetches power users based on Warpcast power badges. Information is updated once a day.
|
|
168
|
-
* @summary Power users
|
|
169
|
-
* @param {number} [viewerFid]
|
|
170
|
-
* @param {number} [limit] Number of power users to fetch (Default: 25, Maximum: 100)
|
|
171
|
-
* @param {string} [cursor] Pagination cursor.
|
|
172
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
173
|
-
* @param {*} [options] Override http request option.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
176
|
-
*
|
|
177
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users)
|
|
178
|
-
*
|
|
179
|
-
*/
|
|
180
|
-
fetchPowerUsers: async (viewerFid, limit, cursor, xNeynarExperimental, options = {}) => {
|
|
181
|
-
const localVarPath = `/farcaster/user/power`;
|
|
182
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
-
let baseOptions;
|
|
185
|
-
if (configuration) {
|
|
186
|
-
baseOptions = configuration.baseOptions;
|
|
187
|
-
}
|
|
188
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
189
|
-
const localVarHeaderParameter = {};
|
|
190
|
-
const localVarQueryParameter = {};
|
|
191
|
-
// authentication ApiKeyAuth required
|
|
192
|
-
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
193
|
-
if (viewerFid !== undefined) {
|
|
194
|
-
localVarQueryParameter['viewer_fid'] = viewerFid;
|
|
195
|
-
}
|
|
196
|
-
if (limit !== undefined) {
|
|
197
|
-
localVarQueryParameter['limit'] = limit;
|
|
198
|
-
}
|
|
199
|
-
if (cursor !== undefined) {
|
|
200
|
-
localVarQueryParameter['cursor'] = cursor;
|
|
201
|
-
}
|
|
202
|
-
if (xNeynarExperimental != null) {
|
|
203
|
-
localVarHeaderParameter['x-neynar-experimental'] = typeof xNeynarExperimental === 'string'
|
|
204
|
-
? xNeynarExperimental
|
|
205
|
-
: JSON.stringify(xNeynarExperimental);
|
|
206
|
-
}
|
|
207
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
208
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
210
|
-
return {
|
|
211
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
|
-
options: localVarRequestOptions,
|
|
213
|
-
};
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
* Fetches power users and respond in a backwards compatible format to Warpcast\'s deprecated power badge endpoint.
|
|
217
|
-
* @summary Power user FIDs
|
|
218
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
219
|
-
* @param {*} [options] Override http request option.
|
|
220
|
-
* @throws {RequiredError}
|
|
221
|
-
* @returns {Promise<UserPowerLiteResponse>} A promise that resolves to a `UserPowerLiteResponse` object
|
|
222
|
-
*
|
|
223
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users-lite)
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
fetchPowerUsersLite: async (xNeynarExperimental, options = {}) => {
|
|
227
|
-
const localVarPath = `/farcaster/user/power_lite`;
|
|
228
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
229
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
|
-
let baseOptions;
|
|
231
|
-
if (configuration) {
|
|
232
|
-
baseOptions = configuration.baseOptions;
|
|
233
|
-
}
|
|
234
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
235
|
-
const localVarHeaderParameter = {};
|
|
236
|
-
const localVarQueryParameter = {};
|
|
237
|
-
// authentication ApiKeyAuth required
|
|
238
|
-
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
239
|
-
if (xNeynarExperimental != null) {
|
|
240
|
-
localVarHeaderParameter['x-neynar-experimental'] = typeof xNeynarExperimental === 'string'
|
|
241
|
-
? xNeynarExperimental
|
|
242
|
-
: JSON.stringify(xNeynarExperimental);
|
|
243
|
-
}
|
|
244
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
247
|
-
return {
|
|
248
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
249
|
-
options: localVarRequestOptions,
|
|
250
|
-
};
|
|
251
|
-
},
|
|
252
166
|
/**
|
|
253
167
|
* Fetches a list of users given a location
|
|
254
168
|
* @summary By location
|
|
255
|
-
* @param {number} latitude Latitude of the location
|
|
256
|
-
* @param {number} longitude Longitude of the location
|
|
169
|
+
* @param {number | null} latitude Latitude of the location
|
|
170
|
+
* @param {number | null} longitude Longitude of the location
|
|
171
|
+
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
257
172
|
* @param {number} [viewerFid] FID of the user viewing the feed. Providing this will return a list of users that respects this user\'s mutes and blocks and includes `viewer_context`.
|
|
258
173
|
* @param {number} [limit] Number of results to fetch (Default: 25, Maximum: 100)
|
|
259
174
|
* @param {string} [cursor] Pagination cursor
|
|
260
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
261
175
|
* @param {*} [options] Override http request option.
|
|
262
176
|
* @throws {RequiredError}
|
|
263
177
|
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
@@ -265,12 +179,12 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
265
179
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-users-by-location)
|
|
266
180
|
*
|
|
267
181
|
*/
|
|
268
|
-
fetchUsersByLocation: async (latitude, longitude, viewerFid, limit, cursor,
|
|
182
|
+
fetchUsersByLocation: async (latitude, longitude, xNeynarExperimental, viewerFid, limit, cursor, options = {}) => {
|
|
269
183
|
// verify required parameter 'latitude' is not null or undefined
|
|
270
184
|
(0, common_1.assertParamExists)('fetchUsersByLocation', 'latitude', latitude);
|
|
271
185
|
// verify required parameter 'longitude' is not null or undefined
|
|
272
186
|
(0, common_1.assertParamExists)('fetchUsersByLocation', 'longitude', longitude);
|
|
273
|
-
const localVarPath = `/farcaster/user/by_location
|
|
187
|
+
const localVarPath = `/v2/farcaster/user/by_location/`;
|
|
274
188
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
189
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
276
190
|
let baseOptions;
|
|
@@ -311,7 +225,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
311
225
|
};
|
|
312
226
|
},
|
|
313
227
|
/**
|
|
314
|
-
* Follow a user
|
|
228
|
+
* Follow a user (In order to follow a user `signer_uuid` must be approved)
|
|
315
229
|
* @summary Follow user
|
|
316
230
|
* @param {FollowReqBody} followReqBody
|
|
317
231
|
* @param {*} [options] Override http request option.
|
|
@@ -324,7 +238,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
324
238
|
followUser: async (followReqBody, options = {}) => {
|
|
325
239
|
// verify required parameter 'followReqBody' is not null or undefined
|
|
326
240
|
(0, common_1.assertParamExists)('followUser', 'followReqBody', followReqBody);
|
|
327
|
-
const localVarPath = `/farcaster/user/follow
|
|
241
|
+
const localVarPath = `/v2/farcaster/user/follow/`;
|
|
328
242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
243
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
330
244
|
let baseOptions;
|
|
@@ -358,7 +272,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
358
272
|
*
|
|
359
273
|
*/
|
|
360
274
|
getFreshAccountFID: async (xNeynarExperimental, options = {}) => {
|
|
361
|
-
const localVarPath = `/farcaster/user/fid
|
|
275
|
+
const localVarPath = `/v2/farcaster/user/fid/`;
|
|
362
276
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
363
277
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
364
278
|
let baseOptions;
|
|
@@ -383,6 +297,51 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
383
297
|
options: localVarRequestOptions,
|
|
384
298
|
};
|
|
385
299
|
},
|
|
300
|
+
/**
|
|
301
|
+
* Returns the best friends of a user ranked by mutual affinity score based on interactions with each other.
|
|
302
|
+
* @summary Best friends
|
|
303
|
+
* @param {number} fid The FID of the user
|
|
304
|
+
* @param {number} [limit] Number of results to fetch (Default: 3, Maximum: 100)
|
|
305
|
+
* @param {string} [cursor] Pagination cursor
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
* @returns {Promise<BestFriendsResponse>} A promise that resolves to a `BestFriendsResponse` object
|
|
309
|
+
*
|
|
310
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-user-best-friends)
|
|
311
|
+
*
|
|
312
|
+
*/
|
|
313
|
+
getUserBestFriends: async (fid, limit, cursor, options = {}) => {
|
|
314
|
+
// verify required parameter 'fid' is not null or undefined
|
|
315
|
+
(0, common_1.assertParamExists)('getUserBestFriends', 'fid', fid);
|
|
316
|
+
const localVarPath = `/v2/farcaster/user/best_friends/`;
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
324
|
+
const localVarHeaderParameter = {};
|
|
325
|
+
const localVarQueryParameter = {};
|
|
326
|
+
// authentication ApiKeyAuth required
|
|
327
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
328
|
+
if (fid !== undefined) {
|
|
329
|
+
localVarQueryParameter['fid'] = fid;
|
|
330
|
+
}
|
|
331
|
+
if (limit !== undefined) {
|
|
332
|
+
localVarQueryParameter['limit'] = limit;
|
|
333
|
+
}
|
|
334
|
+
if (cursor !== undefined) {
|
|
335
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
336
|
+
}
|
|
337
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
+
return {
|
|
341
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions,
|
|
343
|
+
};
|
|
344
|
+
},
|
|
386
345
|
/**
|
|
387
346
|
* Lookup a user by custody-address
|
|
388
347
|
* @summary By custody-address
|
|
@@ -397,7 +356,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
397
356
|
lookupUserByCustodyAddress: async (custodyAddress, options = {}) => {
|
|
398
357
|
// verify required parameter 'custodyAddress' is not null or undefined
|
|
399
358
|
(0, common_1.assertParamExists)('lookupUserByCustodyAddress', 'custodyAddress', custodyAddress);
|
|
400
|
-
const localVarPath = `/farcaster/user/custody-address
|
|
359
|
+
const localVarPath = `/v2/farcaster/user/custody-address/`;
|
|
401
360
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
361
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
403
362
|
let baseOptions;
|
|
@@ -424,8 +383,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
424
383
|
* Fetches a single hydrated user object given a username
|
|
425
384
|
* @summary By username
|
|
426
385
|
* @param {string} username Username of the user to fetch
|
|
427
|
-
* @param {number} [viewerFid]
|
|
428
386
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
387
|
+
* @param {number} [viewerFid]
|
|
429
388
|
* @param {*} [options] Override http request option.
|
|
430
389
|
* @throws {RequiredError}
|
|
431
390
|
* @returns {Promise<UserResponse>} A promise that resolves to a `UserResponse` object
|
|
@@ -433,10 +392,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
433
392
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/lookup-user-by-username)
|
|
434
393
|
*
|
|
435
394
|
*/
|
|
436
|
-
lookupUserByUsername: async (username,
|
|
395
|
+
lookupUserByUsername: async (username, xNeynarExperimental, viewerFid, options = {}) => {
|
|
437
396
|
// verify required parameter 'username' is not null or undefined
|
|
438
397
|
(0, common_1.assertParamExists)('lookupUserByUsername', 'username', username);
|
|
439
|
-
const localVarPath = `/farcaster/user/by_username
|
|
398
|
+
const localVarPath = `/v2/farcaster/user/by_username/`;
|
|
440
399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
441
400
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
442
401
|
let baseOptions;
|
|
@@ -471,8 +430,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
471
430
|
* Fetches the users who have verified the specified X (Twitter) username
|
|
472
431
|
* @summary By X username
|
|
473
432
|
* @param {string} xUsername X (Twitter) username to search for, without the @ symbol
|
|
474
|
-
* @param {number} [viewerFid] FID of the viewer for contextual information like follows and blocks
|
|
475
433
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
434
|
+
* @param {number} [viewerFid] FID of the viewer for contextual information like follows and blocks
|
|
476
435
|
* @param {*} [options] Override http request option.
|
|
477
436
|
* @throws {RequiredError}
|
|
478
437
|
* @returns {Promise<BulkUsersResponse>} A promise that resolves to a `BulkUsersResponse` object
|
|
@@ -480,10 +439,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
480
439
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/lookup-users-by-x-username)
|
|
481
440
|
*
|
|
482
441
|
*/
|
|
483
|
-
lookupUsersByXUsername: async (xUsername,
|
|
442
|
+
lookupUsersByXUsername: async (xUsername, xNeynarExperimental, viewerFid, options = {}) => {
|
|
484
443
|
// verify required parameter 'xUsername' is not null or undefined
|
|
485
444
|
(0, common_1.assertParamExists)('lookupUsersByXUsername', 'xUsername', xUsername);
|
|
486
|
-
const localVarPath = `/farcaster/user/by_x_username
|
|
445
|
+
const localVarPath = `/v2/farcaster/user/by_x_username/`;
|
|
487
446
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
488
447
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
489
448
|
let baseOptions;
|
|
@@ -515,7 +474,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
515
474
|
};
|
|
516
475
|
},
|
|
517
476
|
/**
|
|
518
|
-
* Adds verification for an eth address or contract for the user
|
|
477
|
+
* Adds verification for an eth address or contract for the user (In order to add verification `signer_uuid` must be approved)
|
|
519
478
|
* @summary Add verification
|
|
520
479
|
* @param {AddVerificationReqBody} addVerificationReqBody
|
|
521
480
|
* @param {*} [options] Override http request option.
|
|
@@ -528,7 +487,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
528
487
|
publishVerification: async (addVerificationReqBody, options = {}) => {
|
|
529
488
|
// verify required parameter 'addVerificationReqBody' is not null or undefined
|
|
530
489
|
(0, common_1.assertParamExists)('publishVerification', 'addVerificationReqBody', addVerificationReqBody);
|
|
531
|
-
const localVarPath = `/farcaster/user/verification
|
|
490
|
+
const localVarPath = `/v2/farcaster/user/verification/`;
|
|
532
491
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
533
492
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
534
493
|
let baseOptions;
|
|
@@ -551,7 +510,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
551
510
|
};
|
|
552
511
|
},
|
|
553
512
|
/**
|
|
554
|
-
* Register account on farcaster.
|
|
513
|
+
* Register account on farcaster. **Note:** This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
|
|
555
514
|
* @summary Register new account
|
|
556
515
|
* @param {RegisterUserReqBody} registerUserReqBody
|
|
557
516
|
* @param {*} [options] Override http request option.
|
|
@@ -564,7 +523,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
564
523
|
registerAccount: async (registerUserReqBody, options = {}) => {
|
|
565
524
|
// verify required parameter 'registerUserReqBody' is not null or undefined
|
|
566
525
|
(0, common_1.assertParamExists)('registerAccount', 'registerUserReqBody', registerUserReqBody);
|
|
567
|
-
const localVarPath = `/farcaster/user
|
|
526
|
+
const localVarPath = `/v2/farcaster/user/`;
|
|
568
527
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
569
528
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
570
529
|
let baseOptions;
|
|
@@ -590,10 +549,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
590
549
|
* Search for Usernames
|
|
591
550
|
* @summary Search for Usernames
|
|
592
551
|
* @param {string} q
|
|
552
|
+
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
593
553
|
* @param {number} [viewerFid] Providing this will return search results that respects this user\'s mutes and blocks and includes `viewer_context`.
|
|
594
554
|
* @param {number} [limit] Number of users to fetch (Default: 5, Maximum: 10)
|
|
595
555
|
* @param {string} [cursor] Pagination cursor.
|
|
596
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
597
556
|
* @param {*} [options] Override http request option.
|
|
598
557
|
* @throws {RequiredError}
|
|
599
558
|
* @returns {Promise<UserSearchResponse>} A promise that resolves to a `UserSearchResponse` object
|
|
@@ -601,10 +560,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
601
560
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/search-user)
|
|
602
561
|
*
|
|
603
562
|
*/
|
|
604
|
-
searchUser: async (q, viewerFid, limit, cursor,
|
|
563
|
+
searchUser: async (q, xNeynarExperimental, viewerFid, limit, cursor, options = {}) => {
|
|
605
564
|
// verify required parameter 'q' is not null or undefined
|
|
606
565
|
(0, common_1.assertParamExists)('searchUser', 'q', q);
|
|
607
|
-
const localVarPath = `/farcaster/user/search
|
|
566
|
+
const localVarPath = `/v2/farcaster/user/search/`;
|
|
608
567
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
609
568
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
610
569
|
let baseOptions;
|
|
@@ -642,7 +601,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
642
601
|
};
|
|
643
602
|
},
|
|
644
603
|
/**
|
|
645
|
-
* Unfollow a user
|
|
604
|
+
* Unfollow a user (In order to unfollow a user `signer_uuid` must be approved)
|
|
646
605
|
* @summary Unfollow user
|
|
647
606
|
* @param {FollowReqBody} followReqBody
|
|
648
607
|
* @param {*} [options] Override http request option.
|
|
@@ -655,7 +614,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
655
614
|
unfollowUser: async (followReqBody, options = {}) => {
|
|
656
615
|
// verify required parameter 'followReqBody' is not null or undefined
|
|
657
616
|
(0, common_1.assertParamExists)('unfollowUser', 'followReqBody', followReqBody);
|
|
658
|
-
const localVarPath = `/farcaster/user/follow
|
|
617
|
+
const localVarPath = `/v2/farcaster/user/follow/`;
|
|
659
618
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
660
619
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
661
620
|
let baseOptions;
|
|
@@ -678,7 +637,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
678
637
|
};
|
|
679
638
|
},
|
|
680
639
|
/**
|
|
681
|
-
* Update user profile
|
|
640
|
+
* Update user profile (In order to update user\'s profile `signer_uuid` must be approved)
|
|
682
641
|
* @summary Update user profile
|
|
683
642
|
* @param {UpdateUserReqBody} updateUserReqBody
|
|
684
643
|
* @param {*} [options] Override http request option.
|
|
@@ -691,7 +650,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
691
650
|
updateUser: async (updateUserReqBody, options = {}) => {
|
|
692
651
|
// verify required parameter 'updateUserReqBody' is not null or undefined
|
|
693
652
|
(0, common_1.assertParamExists)('updateUser', 'updateUserReqBody', updateUserReqBody);
|
|
694
|
-
const localVarPath = `/farcaster/user
|
|
653
|
+
const localVarPath = `/v2/farcaster/user/`;
|
|
695
654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
696
655
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
697
656
|
let baseOptions;
|
|
@@ -724,7 +683,7 @@ const UserApiFp = function (configuration) {
|
|
|
724
683
|
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
725
684
|
return {
|
|
726
685
|
/**
|
|
727
|
-
* Removes verification for an eth address for the user
|
|
686
|
+
* Removes verification for an eth address for the user (In order to delete verification `signer_uuid` must be approved)
|
|
728
687
|
* @summary Delete verification
|
|
729
688
|
* @param {RemoveVerificationReqBody} removeVerificationReqBody
|
|
730
689
|
* @param {*} [options] Override http request option.
|
|
@@ -745,8 +704,8 @@ const UserApiFp = function (configuration) {
|
|
|
745
704
|
* Fetches information about multiple users based on FIDs
|
|
746
705
|
* @summary By FIDs
|
|
747
706
|
* @param {string} fids Comma separated list of FIDs, up to 100 at a time
|
|
748
|
-
* @param {number} [viewerFid]
|
|
749
707
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
708
|
+
* @param {number} [viewerFid]
|
|
750
709
|
* @param {*} [options] Override http request option.
|
|
751
710
|
* @throws {RequiredError}
|
|
752
711
|
* @returns {Promise<BulkUsersResponse>} A promise that resolves to a `BulkUsersResponse` object
|
|
@@ -754,9 +713,9 @@ const UserApiFp = function (configuration) {
|
|
|
754
713
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-bulk-users)
|
|
755
714
|
*
|
|
756
715
|
*/
|
|
757
|
-
async fetchBulkUsers(fids,
|
|
716
|
+
async fetchBulkUsers(fids, xNeynarExperimental, viewerFid, options) {
|
|
758
717
|
var _a, _b, _c;
|
|
759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchBulkUsers(fids,
|
|
718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchBulkUsers(fids, xNeynarExperimental, viewerFid, options);
|
|
760
719
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
761
720
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.fetchBulkUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
762
721
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -765,9 +724,9 @@ const UserApiFp = function (configuration) {
|
|
|
765
724
|
* Fetches all users based on multiple Ethereum or Solana addresses. Each farcaster user has a custody Ethereum address and optionally verified Ethereum or Solana addresses. This endpoint returns all users that have any of the given addresses as their custody or verified Ethereum or Solana addresses. A custody address can be associated with only 1 farcaster user at a time but a verified address can be associated with multiple users. You can pass in Ethereum and Solana addresses, comma separated, in the same request. The response will contain users associated with the given addresses.
|
|
766
725
|
* @summary By Eth or Sol addresses
|
|
767
726
|
* @param {string} addresses Comma separated list of Ethereum addresses, up to 350 at a time
|
|
768
|
-
* @param {Array<BulkUserAddressType>} [addressTypes] Customize which address types the request should search for. This is a comma-separated string that can include the following values: \'custody_address\' and \'verified_address\'. By default api returns both. To select multiple types, use a comma-separated list of these values.
|
|
769
|
-
* @param {number} [viewerFid]
|
|
770
727
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
728
|
+
* @param {Array<FetchBulkUsersByEthOrSolAddressAddressTypesEnum>} [addressTypes] Customize which address types the request should search for. This is a comma-separated string that can include the following values: \'custody_address\' and \'verified_address\'. By default api returns both. To select multiple types, use a comma-separated list of these values.
|
|
729
|
+
* @param {number} [viewerFid]
|
|
771
730
|
* @param {*} [options] Override http request option.
|
|
772
731
|
* @throws {RequiredError}
|
|
773
732
|
* @returns {Promise<BulkUsersByAddressResponse>} A promise that resolves to a `BulkUsersByAddressResponse` object
|
|
@@ -775,61 +734,22 @@ const UserApiFp = function (configuration) {
|
|
|
775
734
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-bulk-users-by-eth-or-sol-address)
|
|
776
735
|
*
|
|
777
736
|
*/
|
|
778
|
-
async fetchBulkUsersByEthOrSolAddress(addresses, addressTypes, viewerFid,
|
|
737
|
+
async fetchBulkUsersByEthOrSolAddress(addresses, xNeynarExperimental, addressTypes, viewerFid, options) {
|
|
779
738
|
var _a, _b, _c;
|
|
780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchBulkUsersByEthOrSolAddress(addresses, addressTypes, viewerFid,
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchBulkUsersByEthOrSolAddress(addresses, xNeynarExperimental, addressTypes, viewerFid, options);
|
|
781
740
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
782
741
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.fetchBulkUsersByEthOrSolAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
783
742
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
784
743
|
},
|
|
785
|
-
/**
|
|
786
|
-
* Fetches power users based on Warpcast power badges. Information is updated once a day.
|
|
787
|
-
* @summary Power users
|
|
788
|
-
* @param {number} [viewerFid]
|
|
789
|
-
* @param {number} [limit] Number of power users to fetch (Default: 25, Maximum: 100)
|
|
790
|
-
* @param {string} [cursor] Pagination cursor.
|
|
791
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
792
|
-
* @param {*} [options] Override http request option.
|
|
793
|
-
* @throws {RequiredError}
|
|
794
|
-
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
795
|
-
*
|
|
796
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users)
|
|
797
|
-
*
|
|
798
|
-
*/
|
|
799
|
-
async fetchPowerUsers(viewerFid, limit, cursor, xNeynarExperimental, options) {
|
|
800
|
-
var _a, _b, _c;
|
|
801
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPowerUsers(viewerFid, limit, cursor, xNeynarExperimental, options);
|
|
802
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
803
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.fetchPowerUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
804
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
805
|
-
},
|
|
806
|
-
/**
|
|
807
|
-
* Fetches power users and respond in a backwards compatible format to Warpcast\'s deprecated power badge endpoint.
|
|
808
|
-
* @summary Power user FIDs
|
|
809
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
810
|
-
* @param {*} [options] Override http request option.
|
|
811
|
-
* @throws {RequiredError}
|
|
812
|
-
* @returns {Promise<UserPowerLiteResponse>} A promise that resolves to a `UserPowerLiteResponse` object
|
|
813
|
-
*
|
|
814
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users-lite)
|
|
815
|
-
*
|
|
816
|
-
*/
|
|
817
|
-
async fetchPowerUsersLite(xNeynarExperimental, options) {
|
|
818
|
-
var _a, _b, _c;
|
|
819
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPowerUsersLite(xNeynarExperimental, options);
|
|
820
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
821
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.fetchPowerUsersLite']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
822
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
823
|
-
},
|
|
824
744
|
/**
|
|
825
745
|
* Fetches a list of users given a location
|
|
826
746
|
* @summary By location
|
|
827
|
-
* @param {number} latitude Latitude of the location
|
|
828
|
-
* @param {number} longitude Longitude of the location
|
|
747
|
+
* @param {number | null} latitude Latitude of the location
|
|
748
|
+
* @param {number | null} longitude Longitude of the location
|
|
749
|
+
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
829
750
|
* @param {number} [viewerFid] FID of the user viewing the feed. Providing this will return a list of users that respects this user\'s mutes and blocks and includes `viewer_context`.
|
|
830
751
|
* @param {number} [limit] Number of results to fetch (Default: 25, Maximum: 100)
|
|
831
752
|
* @param {string} [cursor] Pagination cursor
|
|
832
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
833
753
|
* @param {*} [options] Override http request option.
|
|
834
754
|
* @throws {RequiredError}
|
|
835
755
|
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
@@ -837,15 +757,15 @@ const UserApiFp = function (configuration) {
|
|
|
837
757
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-users-by-location)
|
|
838
758
|
*
|
|
839
759
|
*/
|
|
840
|
-
async fetchUsersByLocation(latitude, longitude, viewerFid, limit, cursor,
|
|
760
|
+
async fetchUsersByLocation(latitude, longitude, xNeynarExperimental, viewerFid, limit, cursor, options) {
|
|
841
761
|
var _a, _b, _c;
|
|
842
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchUsersByLocation(latitude, longitude, viewerFid, limit, cursor,
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchUsersByLocation(latitude, longitude, xNeynarExperimental, viewerFid, limit, cursor, options);
|
|
843
763
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
844
764
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.fetchUsersByLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
845
765
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
846
766
|
},
|
|
847
767
|
/**
|
|
848
|
-
* Follow a user
|
|
768
|
+
* Follow a user (In order to follow a user `signer_uuid` must be approved)
|
|
849
769
|
* @summary Follow user
|
|
850
770
|
* @param {FollowReqBody} followReqBody
|
|
851
771
|
* @param {*} [options] Override http request option.
|
|
@@ -880,6 +800,26 @@ const UserApiFp = function (configuration) {
|
|
|
880
800
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getFreshAccountFID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
881
801
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
882
802
|
},
|
|
803
|
+
/**
|
|
804
|
+
* Returns the best friends of a user ranked by mutual affinity score based on interactions with each other.
|
|
805
|
+
* @summary Best friends
|
|
806
|
+
* @param {number} fid The FID of the user
|
|
807
|
+
* @param {number} [limit] Number of results to fetch (Default: 3, Maximum: 100)
|
|
808
|
+
* @param {string} [cursor] Pagination cursor
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @returns {Promise<BestFriendsResponse>} A promise that resolves to a `BestFriendsResponse` object
|
|
812
|
+
*
|
|
813
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-user-best-friends)
|
|
814
|
+
*
|
|
815
|
+
*/
|
|
816
|
+
async getUserBestFriends(fid, limit, cursor, options) {
|
|
817
|
+
var _a, _b, _c;
|
|
818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBestFriends(fid, limit, cursor, options);
|
|
819
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
820
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserBestFriends']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
821
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
822
|
+
},
|
|
883
823
|
/**
|
|
884
824
|
* Lookup a user by custody-address
|
|
885
825
|
* @summary By custody-address
|
|
@@ -902,8 +842,8 @@ const UserApiFp = function (configuration) {
|
|
|
902
842
|
* Fetches a single hydrated user object given a username
|
|
903
843
|
* @summary By username
|
|
904
844
|
* @param {string} username Username of the user to fetch
|
|
905
|
-
* @param {number} [viewerFid]
|
|
906
845
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
846
|
+
* @param {number} [viewerFid]
|
|
907
847
|
* @param {*} [options] Override http request option.
|
|
908
848
|
* @throws {RequiredError}
|
|
909
849
|
* @returns {Promise<UserResponse>} A promise that resolves to a `UserResponse` object
|
|
@@ -911,9 +851,9 @@ const UserApiFp = function (configuration) {
|
|
|
911
851
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/lookup-user-by-username)
|
|
912
852
|
*
|
|
913
853
|
*/
|
|
914
|
-
async lookupUserByUsername(username,
|
|
854
|
+
async lookupUserByUsername(username, xNeynarExperimental, viewerFid, options) {
|
|
915
855
|
var _a, _b, _c;
|
|
916
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupUserByUsername(username,
|
|
856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupUserByUsername(username, xNeynarExperimental, viewerFid, options);
|
|
917
857
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
918
858
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.lookupUserByUsername']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
919
859
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -922,8 +862,8 @@ const UserApiFp = function (configuration) {
|
|
|
922
862
|
* Fetches the users who have verified the specified X (Twitter) username
|
|
923
863
|
* @summary By X username
|
|
924
864
|
* @param {string} xUsername X (Twitter) username to search for, without the @ symbol
|
|
925
|
-
* @param {number} [viewerFid] FID of the viewer for contextual information like follows and blocks
|
|
926
865
|
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
866
|
+
* @param {number} [viewerFid] FID of the viewer for contextual information like follows and blocks
|
|
927
867
|
* @param {*} [options] Override http request option.
|
|
928
868
|
* @throws {RequiredError}
|
|
929
869
|
* @returns {Promise<BulkUsersResponse>} A promise that resolves to a `BulkUsersResponse` object
|
|
@@ -931,15 +871,15 @@ const UserApiFp = function (configuration) {
|
|
|
931
871
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/lookup-users-by-x-username)
|
|
932
872
|
*
|
|
933
873
|
*/
|
|
934
|
-
async lookupUsersByXUsername(xUsername,
|
|
874
|
+
async lookupUsersByXUsername(xUsername, xNeynarExperimental, viewerFid, options) {
|
|
935
875
|
var _a, _b, _c;
|
|
936
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupUsersByXUsername(xUsername,
|
|
876
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupUsersByXUsername(xUsername, xNeynarExperimental, viewerFid, options);
|
|
937
877
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
938
878
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.lookupUsersByXUsername']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
939
879
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
940
880
|
},
|
|
941
881
|
/**
|
|
942
|
-
* Adds verification for an eth address or contract for the user
|
|
882
|
+
* Adds verification for an eth address or contract for the user (In order to add verification `signer_uuid` must be approved)
|
|
943
883
|
* @summary Add verification
|
|
944
884
|
* @param {AddVerificationReqBody} addVerificationReqBody
|
|
945
885
|
* @param {*} [options] Override http request option.
|
|
@@ -957,7 +897,7 @@ const UserApiFp = function (configuration) {
|
|
|
957
897
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
958
898
|
},
|
|
959
899
|
/**
|
|
960
|
-
* Register account on farcaster.
|
|
900
|
+
* Register account on farcaster. **Note:** This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
|
|
961
901
|
* @summary Register new account
|
|
962
902
|
* @param {RegisterUserReqBody} registerUserReqBody
|
|
963
903
|
* @param {*} [options] Override http request option.
|
|
@@ -978,10 +918,10 @@ const UserApiFp = function (configuration) {
|
|
|
978
918
|
* Search for Usernames
|
|
979
919
|
* @summary Search for Usernames
|
|
980
920
|
* @param {string} q
|
|
921
|
+
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
981
922
|
* @param {number} [viewerFid] Providing this will return search results that respects this user\'s mutes and blocks and includes `viewer_context`.
|
|
982
923
|
* @param {number} [limit] Number of users to fetch (Default: 5, Maximum: 10)
|
|
983
924
|
* @param {string} [cursor] Pagination cursor.
|
|
984
|
-
* @param {boolean} [xNeynarExperimental] Enables experimental features including filtering based on the Neynar score. See [docs](https://neynar.notion.site/Experimental-Features-1d2655195a8b80eb98b4d4ae7b76ae4a) for more details.
|
|
985
925
|
* @param {*} [options] Override http request option.
|
|
986
926
|
* @throws {RequiredError}
|
|
987
927
|
* @returns {Promise<UserSearchResponse>} A promise that resolves to a `UserSearchResponse` object
|
|
@@ -989,15 +929,15 @@ const UserApiFp = function (configuration) {
|
|
|
989
929
|
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/search-user)
|
|
990
930
|
*
|
|
991
931
|
*/
|
|
992
|
-
async searchUser(q, viewerFid, limit, cursor,
|
|
932
|
+
async searchUser(q, xNeynarExperimental, viewerFid, limit, cursor, options) {
|
|
993
933
|
var _a, _b, _c;
|
|
994
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchUser(q, viewerFid, limit, cursor,
|
|
934
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchUser(q, xNeynarExperimental, viewerFid, limit, cursor, options);
|
|
995
935
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
996
936
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.searchUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
997
937
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
998
938
|
},
|
|
999
939
|
/**
|
|
1000
|
-
* Unfollow a user
|
|
940
|
+
* Unfollow a user (In order to unfollow a user `signer_uuid` must be approved)
|
|
1001
941
|
* @summary Unfollow user
|
|
1002
942
|
* @param {FollowReqBody} followReqBody
|
|
1003
943
|
* @param {*} [options] Override http request option.
|
|
@@ -1015,7 +955,7 @@ const UserApiFp = function (configuration) {
|
|
|
1015
955
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1016
956
|
},
|
|
1017
957
|
/**
|
|
1018
|
-
* Update user profile
|
|
958
|
+
* Update user profile (In order to update user\'s profile `signer_uuid` must be approved)
|
|
1019
959
|
* @summary Update user profile
|
|
1020
960
|
* @param {UpdateUserReqBody} updateUserReqBody
|
|
1021
961
|
* @param {*} [options] Override http request option.
|
|
@@ -1043,7 +983,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1043
983
|
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
1044
984
|
return {
|
|
1045
985
|
/**
|
|
1046
|
-
* Removes verification for an eth address for the user
|
|
986
|
+
* Removes verification for an eth address for the user (In order to delete verification `signer_uuid` must be approved)
|
|
1047
987
|
* @summary Delete verification
|
|
1048
988
|
* @param {UserApiDeleteVerificationRequest} requestParameters Request parameters.
|
|
1049
989
|
* @param {*} [options] Override http request option.
|
|
@@ -1068,7 +1008,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1068
1008
|
*
|
|
1069
1009
|
*/
|
|
1070
1010
|
fetchBulkUsers(requestParameters, options) {
|
|
1071
|
-
return localVarFp.fetchBulkUsers(requestParameters.fids, requestParameters.
|
|
1011
|
+
return localVarFp.fetchBulkUsers(requestParameters.fids, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(axios, basePath));
|
|
1072
1012
|
},
|
|
1073
1013
|
/**
|
|
1074
1014
|
* Fetches all users based on multiple Ethereum or Solana addresses. Each farcaster user has a custody Ethereum address and optionally verified Ethereum or Solana addresses. This endpoint returns all users that have any of the given addresses as their custody or verified Ethereum or Solana addresses. A custody address can be associated with only 1 farcaster user at a time but a verified address can be associated with multiple users. You can pass in Ethereum and Solana addresses, comma separated, in the same request. The response will contain users associated with the given addresses.
|
|
@@ -1082,35 +1022,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1082
1022
|
*
|
|
1083
1023
|
*/
|
|
1084
1024
|
fetchBulkUsersByEthOrSolAddress(requestParameters, options) {
|
|
1085
|
-
return localVarFp.fetchBulkUsersByEthOrSolAddress(requestParameters.addresses, requestParameters.
|
|
1086
|
-
},
|
|
1087
|
-
/**
|
|
1088
|
-
* Fetches power users based on Warpcast power badges. Information is updated once a day.
|
|
1089
|
-
* @summary Power users
|
|
1090
|
-
* @param {UserApiFetchPowerUsersRequest} requestParameters Request parameters.
|
|
1091
|
-
* @param {*} [options] Override http request option.
|
|
1092
|
-
* @throws {RequiredError}
|
|
1093
|
-
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
1094
|
-
*
|
|
1095
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users)
|
|
1096
|
-
*
|
|
1097
|
-
*/
|
|
1098
|
-
fetchPowerUsers(requestParameters = {}, options) {
|
|
1099
|
-
return localVarFp.fetchPowerUsers(requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, requestParameters.xNeynarExperimental, options).then((request) => request(axios, basePath));
|
|
1100
|
-
},
|
|
1101
|
-
/**
|
|
1102
|
-
* Fetches power users and respond in a backwards compatible format to Warpcast\'s deprecated power badge endpoint.
|
|
1103
|
-
* @summary Power user FIDs
|
|
1104
|
-
* @param {UserApiFetchPowerUsersLiteRequest} requestParameters Request parameters.
|
|
1105
|
-
* @param {*} [options] Override http request option.
|
|
1106
|
-
* @throws {RequiredError}
|
|
1107
|
-
* @returns {Promise<UserPowerLiteResponse>} A promise that resolves to a `UserPowerLiteResponse` object
|
|
1108
|
-
*
|
|
1109
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users-lite)
|
|
1110
|
-
*
|
|
1111
|
-
*/
|
|
1112
|
-
fetchPowerUsersLite(requestParameters = {}, options) {
|
|
1113
|
-
return localVarFp.fetchPowerUsersLite(requestParameters.xNeynarExperimental, options).then((request) => request(axios, basePath));
|
|
1025
|
+
return localVarFp.fetchBulkUsersByEthOrSolAddress(requestParameters.addresses, requestParameters.xNeynarExperimental, requestParameters.addressTypes, requestParameters.viewerFid, options).then((request) => request(axios, basePath));
|
|
1114
1026
|
},
|
|
1115
1027
|
/**
|
|
1116
1028
|
* Fetches a list of users given a location
|
|
@@ -1124,10 +1036,10 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1124
1036
|
*
|
|
1125
1037
|
*/
|
|
1126
1038
|
fetchUsersByLocation(requestParameters, options) {
|
|
1127
|
-
return localVarFp.fetchUsersByLocation(requestParameters.latitude, requestParameters.longitude, requestParameters.
|
|
1039
|
+
return localVarFp.fetchUsersByLocation(requestParameters.latitude, requestParameters.longitude, requestParameters.xNeynarExperimental, requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
|
|
1128
1040
|
},
|
|
1129
1041
|
/**
|
|
1130
|
-
* Follow a user
|
|
1042
|
+
* Follow a user (In order to follow a user `signer_uuid` must be approved)
|
|
1131
1043
|
* @summary Follow user
|
|
1132
1044
|
* @param {UserApiFollowUserRequest} requestParameters Request parameters.
|
|
1133
1045
|
* @param {*} [options] Override http request option.
|
|
@@ -1154,6 +1066,20 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1154
1066
|
getFreshAccountFID(requestParameters = {}, options) {
|
|
1155
1067
|
return localVarFp.getFreshAccountFID(requestParameters.xNeynarExperimental, options).then((request) => request(axios, basePath));
|
|
1156
1068
|
},
|
|
1069
|
+
/**
|
|
1070
|
+
* Returns the best friends of a user ranked by mutual affinity score based on interactions with each other.
|
|
1071
|
+
* @summary Best friends
|
|
1072
|
+
* @param {UserApiGetUserBestFriendsRequest} requestParameters Request parameters.
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
* @returns {Promise<BestFriendsResponse>} A promise that resolves to a `BestFriendsResponse` object
|
|
1076
|
+
*
|
|
1077
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-user-best-friends)
|
|
1078
|
+
*
|
|
1079
|
+
*/
|
|
1080
|
+
getUserBestFriends(requestParameters, options) {
|
|
1081
|
+
return localVarFp.getUserBestFriends(requestParameters.fid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
|
|
1082
|
+
},
|
|
1157
1083
|
/**
|
|
1158
1084
|
* Lookup a user by custody-address
|
|
1159
1085
|
* @summary By custody-address
|
|
@@ -1180,7 +1106,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1180
1106
|
*
|
|
1181
1107
|
*/
|
|
1182
1108
|
lookupUserByUsername(requestParameters, options) {
|
|
1183
|
-
return localVarFp.lookupUserByUsername(requestParameters.username, requestParameters.
|
|
1109
|
+
return localVarFp.lookupUserByUsername(requestParameters.username, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(axios, basePath));
|
|
1184
1110
|
},
|
|
1185
1111
|
/**
|
|
1186
1112
|
* Fetches the users who have verified the specified X (Twitter) username
|
|
@@ -1194,10 +1120,10 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1194
1120
|
*
|
|
1195
1121
|
*/
|
|
1196
1122
|
lookupUsersByXUsername(requestParameters, options) {
|
|
1197
|
-
return localVarFp.lookupUsersByXUsername(requestParameters.xUsername, requestParameters.
|
|
1123
|
+
return localVarFp.lookupUsersByXUsername(requestParameters.xUsername, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(axios, basePath));
|
|
1198
1124
|
},
|
|
1199
1125
|
/**
|
|
1200
|
-
* Adds verification for an eth address or contract for the user
|
|
1126
|
+
* Adds verification for an eth address or contract for the user (In order to add verification `signer_uuid` must be approved)
|
|
1201
1127
|
* @summary Add verification
|
|
1202
1128
|
* @param {UserApiPublishVerificationRequest} requestParameters Request parameters.
|
|
1203
1129
|
* @param {*} [options] Override http request option.
|
|
@@ -1211,7 +1137,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1211
1137
|
return localVarFp.publishVerification(requestParameters.addVerificationReqBody, options).then((request) => request(axios, basePath));
|
|
1212
1138
|
},
|
|
1213
1139
|
/**
|
|
1214
|
-
* Register account on farcaster.
|
|
1140
|
+
* Register account on farcaster. **Note:** This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
|
|
1215
1141
|
* @summary Register new account
|
|
1216
1142
|
* @param {UserApiRegisterAccountRequest} requestParameters Request parameters.
|
|
1217
1143
|
* @param {*} [options] Override http request option.
|
|
@@ -1236,10 +1162,10 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1236
1162
|
*
|
|
1237
1163
|
*/
|
|
1238
1164
|
searchUser(requestParameters, options) {
|
|
1239
|
-
return localVarFp.searchUser(requestParameters.q, requestParameters.
|
|
1165
|
+
return localVarFp.searchUser(requestParameters.q, requestParameters.xNeynarExperimental, requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
|
|
1240
1166
|
},
|
|
1241
1167
|
/**
|
|
1242
|
-
* Unfollow a user
|
|
1168
|
+
* Unfollow a user (In order to unfollow a user `signer_uuid` must be approved)
|
|
1243
1169
|
* @summary Unfollow user
|
|
1244
1170
|
* @param {UserApiUnfollowUserRequest} requestParameters Request parameters.
|
|
1245
1171
|
* @param {*} [options] Override http request option.
|
|
@@ -1253,7 +1179,7 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
1253
1179
|
return localVarFp.unfollowUser(requestParameters.followReqBody, options).then((request) => request(axios, basePath));
|
|
1254
1180
|
},
|
|
1255
1181
|
/**
|
|
1256
|
-
* Update user profile
|
|
1182
|
+
* Update user profile (In order to update user\'s profile `signer_uuid` must be approved)
|
|
1257
1183
|
* @summary Update user profile
|
|
1258
1184
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
1259
1185
|
* @param {*} [options] Override http request option.
|
|
@@ -1277,7 +1203,7 @@ exports.UserApiFactory = UserApiFactory;
|
|
|
1277
1203
|
*/
|
|
1278
1204
|
class UserApi extends base_1.BaseAPI {
|
|
1279
1205
|
/**
|
|
1280
|
-
* Removes verification for an eth address for the user
|
|
1206
|
+
* Removes verification for an eth address for the user (In order to delete verification `signer_uuid` must be approved)
|
|
1281
1207
|
* @summary Delete verification
|
|
1282
1208
|
* @param {UserApiDeleteVerificationRequest} requestParameters Request parameters.
|
|
1283
1209
|
* @param {*} [options] Override http request option.
|
|
@@ -1304,7 +1230,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1304
1230
|
*
|
|
1305
1231
|
*/
|
|
1306
1232
|
fetchBulkUsers(requestParameters, options) {
|
|
1307
|
-
return (0, exports.UserApiFp)(this.configuration).fetchBulkUsers(requestParameters.fids, requestParameters.
|
|
1233
|
+
return (0, exports.UserApiFp)(this.configuration).fetchBulkUsers(requestParameters.fids, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(this.axios, this.basePath));
|
|
1308
1234
|
}
|
|
1309
1235
|
/**
|
|
1310
1236
|
* Fetches all users based on multiple Ethereum or Solana addresses. Each farcaster user has a custody Ethereum address and optionally verified Ethereum or Solana addresses. This endpoint returns all users that have any of the given addresses as their custody or verified Ethereum or Solana addresses. A custody address can be associated with only 1 farcaster user at a time but a verified address can be associated with multiple users. You can pass in Ethereum and Solana addresses, comma separated, in the same request. The response will contain users associated with the given addresses.
|
|
@@ -1319,37 +1245,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1319
1245
|
*
|
|
1320
1246
|
*/
|
|
1321
1247
|
fetchBulkUsersByEthOrSolAddress(requestParameters, options) {
|
|
1322
|
-
return (0, exports.UserApiFp)(this.configuration).fetchBulkUsersByEthOrSolAddress(requestParameters.addresses, requestParameters.
|
|
1323
|
-
}
|
|
1324
|
-
/**
|
|
1325
|
-
* Fetches power users based on Warpcast power badges. Information is updated once a day.
|
|
1326
|
-
* @summary Power users
|
|
1327
|
-
* @param {UserApiFetchPowerUsersRequest} requestParameters Request parameters.
|
|
1328
|
-
* @param {*} [options] Override http request option.
|
|
1329
|
-
* @throws {RequiredError}
|
|
1330
|
-
* @memberof UserApi
|
|
1331
|
-
* @returns {Promise<UsersResponse>} A promise that resolves to a `UsersResponse` object
|
|
1332
|
-
*
|
|
1333
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users)
|
|
1334
|
-
*
|
|
1335
|
-
*/
|
|
1336
|
-
fetchPowerUsers(requestParameters = {}, options) {
|
|
1337
|
-
return (0, exports.UserApiFp)(this.configuration).fetchPowerUsers(requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, requestParameters.xNeynarExperimental, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
* Fetches power users and respond in a backwards compatible format to Warpcast\'s deprecated power badge endpoint.
|
|
1341
|
-
* @summary Power user FIDs
|
|
1342
|
-
* @param {UserApiFetchPowerUsersLiteRequest} requestParameters Request parameters.
|
|
1343
|
-
* @param {*} [options] Override http request option.
|
|
1344
|
-
* @throws {RequiredError}
|
|
1345
|
-
* @memberof UserApi
|
|
1346
|
-
* @returns {Promise<UserPowerLiteResponse>} A promise that resolves to a `UserPowerLiteResponse` object
|
|
1347
|
-
*
|
|
1348
|
-
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/fetch-power-users-lite)
|
|
1349
|
-
*
|
|
1350
|
-
*/
|
|
1351
|
-
fetchPowerUsersLite(requestParameters = {}, options) {
|
|
1352
|
-
return (0, exports.UserApiFp)(this.configuration).fetchPowerUsersLite(requestParameters.xNeynarExperimental, options).then((request) => request(this.axios, this.basePath));
|
|
1248
|
+
return (0, exports.UserApiFp)(this.configuration).fetchBulkUsersByEthOrSolAddress(requestParameters.addresses, requestParameters.xNeynarExperimental, requestParameters.addressTypes, requestParameters.viewerFid, options).then((request) => request(this.axios, this.basePath));
|
|
1353
1249
|
}
|
|
1354
1250
|
/**
|
|
1355
1251
|
* Fetches a list of users given a location
|
|
@@ -1364,10 +1260,10 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1364
1260
|
*
|
|
1365
1261
|
*/
|
|
1366
1262
|
fetchUsersByLocation(requestParameters, options) {
|
|
1367
|
-
return (0, exports.UserApiFp)(this.configuration).fetchUsersByLocation(requestParameters.latitude, requestParameters.longitude, requestParameters.
|
|
1263
|
+
return (0, exports.UserApiFp)(this.configuration).fetchUsersByLocation(requestParameters.latitude, requestParameters.longitude, requestParameters.xNeynarExperimental, requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1368
1264
|
}
|
|
1369
1265
|
/**
|
|
1370
|
-
* Follow a user
|
|
1266
|
+
* Follow a user (In order to follow a user `signer_uuid` must be approved)
|
|
1371
1267
|
* @summary Follow user
|
|
1372
1268
|
* @param {UserApiFollowUserRequest} requestParameters Request parameters.
|
|
1373
1269
|
* @param {*} [options] Override http request option.
|
|
@@ -1396,6 +1292,21 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1396
1292
|
getFreshAccountFID(requestParameters = {}, options) {
|
|
1397
1293
|
return (0, exports.UserApiFp)(this.configuration).getFreshAccountFID(requestParameters.xNeynarExperimental, options).then((request) => request(this.axios, this.basePath));
|
|
1398
1294
|
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Returns the best friends of a user ranked by mutual affinity score based on interactions with each other.
|
|
1297
|
+
* @summary Best friends
|
|
1298
|
+
* @param {UserApiGetUserBestFriendsRequest} requestParameters Request parameters.
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
* @memberof UserApi
|
|
1302
|
+
* @returns {Promise<BestFriendsResponse>} A promise that resolves to a `BestFriendsResponse` object
|
|
1303
|
+
*
|
|
1304
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-user-best-friends)
|
|
1305
|
+
*
|
|
1306
|
+
*/
|
|
1307
|
+
getUserBestFriends(requestParameters, options) {
|
|
1308
|
+
return (0, exports.UserApiFp)(this.configuration).getUserBestFriends(requestParameters.fid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1309
|
+
}
|
|
1399
1310
|
/**
|
|
1400
1311
|
* Lookup a user by custody-address
|
|
1401
1312
|
* @summary By custody-address
|
|
@@ -1424,7 +1335,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1424
1335
|
*
|
|
1425
1336
|
*/
|
|
1426
1337
|
lookupUserByUsername(requestParameters, options) {
|
|
1427
|
-
return (0, exports.UserApiFp)(this.configuration).lookupUserByUsername(requestParameters.username, requestParameters.
|
|
1338
|
+
return (0, exports.UserApiFp)(this.configuration).lookupUserByUsername(requestParameters.username, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(this.axios, this.basePath));
|
|
1428
1339
|
}
|
|
1429
1340
|
/**
|
|
1430
1341
|
* Fetches the users who have verified the specified X (Twitter) username
|
|
@@ -1439,10 +1350,10 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1439
1350
|
*
|
|
1440
1351
|
*/
|
|
1441
1352
|
lookupUsersByXUsername(requestParameters, options) {
|
|
1442
|
-
return (0, exports.UserApiFp)(this.configuration).lookupUsersByXUsername(requestParameters.xUsername, requestParameters.
|
|
1353
|
+
return (0, exports.UserApiFp)(this.configuration).lookupUsersByXUsername(requestParameters.xUsername, requestParameters.xNeynarExperimental, requestParameters.viewerFid, options).then((request) => request(this.axios, this.basePath));
|
|
1443
1354
|
}
|
|
1444
1355
|
/**
|
|
1445
|
-
* Adds verification for an eth address or contract for the user
|
|
1356
|
+
* Adds verification for an eth address or contract for the user (In order to add verification `signer_uuid` must be approved)
|
|
1446
1357
|
* @summary Add verification
|
|
1447
1358
|
* @param {UserApiPublishVerificationRequest} requestParameters Request parameters.
|
|
1448
1359
|
* @param {*} [options] Override http request option.
|
|
@@ -1457,7 +1368,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1457
1368
|
return (0, exports.UserApiFp)(this.configuration).publishVerification(requestParameters.addVerificationReqBody, options).then((request) => request(this.axios, this.basePath));
|
|
1458
1369
|
}
|
|
1459
1370
|
/**
|
|
1460
|
-
* Register account on farcaster.
|
|
1371
|
+
* Register account on farcaster. **Note:** This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
|
|
1461
1372
|
* @summary Register new account
|
|
1462
1373
|
* @param {UserApiRegisterAccountRequest} requestParameters Request parameters.
|
|
1463
1374
|
* @param {*} [options] Override http request option.
|
|
@@ -1484,10 +1395,10 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1484
1395
|
*
|
|
1485
1396
|
*/
|
|
1486
1397
|
searchUser(requestParameters, options) {
|
|
1487
|
-
return (0, exports.UserApiFp)(this.configuration).searchUser(requestParameters.q, requestParameters.
|
|
1398
|
+
return (0, exports.UserApiFp)(this.configuration).searchUser(requestParameters.q, requestParameters.xNeynarExperimental, requestParameters.viewerFid, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
|
|
1488
1399
|
}
|
|
1489
1400
|
/**
|
|
1490
|
-
* Unfollow a user
|
|
1401
|
+
* Unfollow a user (In order to unfollow a user `signer_uuid` must be approved)
|
|
1491
1402
|
* @summary Unfollow user
|
|
1492
1403
|
* @param {UserApiUnfollowUserRequest} requestParameters Request parameters.
|
|
1493
1404
|
* @param {*} [options] Override http request option.
|
|
@@ -1502,7 +1413,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1502
1413
|
return (0, exports.UserApiFp)(this.configuration).unfollowUser(requestParameters.followReqBody, options).then((request) => request(this.axios, this.basePath));
|
|
1503
1414
|
}
|
|
1504
1415
|
/**
|
|
1505
|
-
* Update user profile
|
|
1416
|
+
* Update user profile (In order to update user\'s profile `signer_uuid` must be approved)
|
|
1506
1417
|
* @summary Update user profile
|
|
1507
1418
|
* @param {UserApiUpdateUserRequest} requestParameters Request parameters.
|
|
1508
1419
|
* @param {*} [options] Override http request option.
|
|
@@ -1518,3 +1429,10 @@ class UserApi extends base_1.BaseAPI {
|
|
|
1518
1429
|
}
|
|
1519
1430
|
}
|
|
1520
1431
|
exports.UserApi = UserApi;
|
|
1432
|
+
/**
|
|
1433
|
+
* @export
|
|
1434
|
+
*/
|
|
1435
|
+
exports.FetchBulkUsersByEthOrSolAddressAddressTypesEnum = {
|
|
1436
|
+
CustodyAddress: 'custody_address',
|
|
1437
|
+
VerifiedAddress: 'verified_address'
|
|
1438
|
+
};
|