@neynar/nodejs-sdk 3.34.0 → 3.77.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/README.md +1 -1
- package/build/api/api.d.ts +2 -1
- package/build/api/api.js +2 -1
- package/build/api/apis/action-api.d.ts +1 -1
- package/build/api/apis/action-api.js +1 -1
- package/build/api/apis/agents-api.d.ts +1 -1
- package/build/api/apis/agents-api.js +1 -1
- package/build/api/apis/app-host-api.d.ts +1 -1
- package/build/api/apis/app-host-api.js +1 -1
- package/build/api/apis/auth-address-api.d.ts +1 -1
- package/build/api/apis/auth-address-api.js +1 -1
- package/build/api/apis/ban-api.d.ts +1 -1
- package/build/api/apis/ban-api.js +1 -1
- package/build/api/apis/block-api.d.ts +1 -1
- package/build/api/apis/block-api.js +1 -1
- package/build/api/apis/cast-api.d.ts +4 -113
- package/build/api/apis/cast-api.js +4 -105
- package/build/api/apis/channel-api.d.ts +1 -1
- package/build/api/apis/channel-api.js +1 -1
- package/build/api/apis/feed-api.d.ts +2 -115
- package/build/api/apis/feed-api.js +2 -103
- package/build/api/apis/fname-api.d.ts +1 -1
- package/build/api/apis/fname-api.js +1 -1
- package/build/api/apis/follows-api.d.ts +1 -1
- package/build/api/apis/follows-api.js +1 -1
- package/build/api/apis/frame-api.d.ts +1 -931
- package/build/api/apis/frame-api.js +19 -991
- package/build/api/apis/login-api.d.ts +1 -1
- package/build/api/apis/login-api.js +1 -1
- package/build/api/apis/metrics-api.d.ts +1 -1
- package/build/api/apis/metrics-api.js +1 -1
- package/build/api/apis/mute-api.d.ts +1 -1
- package/build/api/apis/mute-api.js +1 -1
- package/build/api/apis/notifications-api.d.ts +1 -1
- package/build/api/apis/notifications-api.js +1 -1
- package/build/api/apis/onchain-api.d.ts +188 -1
- package/build/api/apis/onchain-api.js +191 -2
- package/build/api/apis/reaction-api.d.ts +1 -1
- package/build/api/apis/reaction-api.js +1 -1
- package/build/api/apis/signer-api.d.ts +1 -1
- package/build/api/apis/signer-api.js +1 -1
- package/build/api/apis/storage-api.d.ts +1 -1
- package/build/api/apis/storage-api.js +1 -1
- package/build/api/apis/studio-api.d.ts +1287 -0
- package/build/api/apis/studio-api.js +1304 -0
- package/build/api/apis/subscribers-api.d.ts +1 -1
- package/build/api/apis/subscribers-api.js +1 -1
- package/build/api/apis/user-api.d.ts +1 -1
- package/build/api/apis/user-api.js +1 -1
- package/build/api/apis/webhook-api.d.ts +1 -1
- package/build/api/apis/webhook-api.js +1 -1
- package/build/api/base.d.ts +1 -1
- package/build/api/base.js +1 -1
- package/build/api/common.d.ts +1 -1
- package/build/api/common.js +1 -1
- package/build/api/configuration.d.ts +1 -1
- package/build/api/configuration.js +1 -1
- package/build/api/index.d.ts +1 -1
- package/build/api/index.js +1 -1
- package/build/api/models/add-verification-req-body.d.ts +1 -1
- package/build/api/models/add-verification-req-body.js +1 -1
- package/build/api/models/address-balance-verified-address.d.ts +1 -1
- package/build/api/models/address-balance-verified-address.js +1 -1
- package/build/api/models/address-balance.d.ts +1 -1
- package/build/api/models/address-balance.js +1 -1
- package/build/api/models/app-host-event-type.d.ts +1 -1
- package/build/api/models/app-host-event-type.js +1 -1
- package/build/api/models/app-host-get-event-response-notification-details.d.ts +1 -1
- package/build/api/models/app-host-get-event-response-notification-details.js +1 -1
- package/build/api/models/app-host-get-event-response.d.ts +1 -1
- package/build/api/models/app-host-get-event-response.js +1 -1
- package/build/api/models/app-host-post-event-req-body.d.ts +4 -4
- package/build/api/models/app-host-post-event-req-body.js +1 -1
- package/build/api/models/app-host-post-event-response.d.ts +1 -1
- package/build/api/models/app-host-post-event-response.js +1 -1
- package/build/api/models/app-host-user-state-response-notifications-enabled-inner.d.ts +1 -1
- package/build/api/models/app-host-user-state-response-notifications-enabled-inner.js +1 -1
- package/build/api/models/app-host-user-state-response.d.ts +1 -1
- package/build/api/models/app-host-user-state-response.js +1 -1
- package/build/api/models/associate-deployment-request-account-association.d.ts +36 -0
- package/build/api/models/{cast-composer-actions-list-response-actions-inner-action.js → associate-deployment-request-account-association.js} +1 -1
- package/build/api/models/associate-deployment-request.d.ts +37 -0
- package/build/api/models/{app-host-post-event-req-body-one-of-signed-message.js → associate-deployment-request.js} +1 -1
- package/build/api/models/{neynar-page-input-text.d.ts → associate-deployment200-response.d.ts} +9 -9
- package/build/api/models/{app-host-post-event-req-body-one-of1.js → associate-deployment200-response.js} +1 -1
- package/build/api/models/authorization-url-response.d.ts +1 -1
- package/build/api/models/authorization-url-response.js +1 -1
- package/build/api/models/balance-response-user-balance.d.ts +1 -1
- package/build/api/models/balance-response-user-balance.js +1 -1
- package/build/api/models/balance-response.d.ts +1 -1
- package/build/api/models/balance-response.js +1 -1
- package/build/api/models/ban-list-response.d.ts +1 -1
- package/build/api/models/ban-list-response.js +1 -1
- package/build/api/models/ban-record.d.ts +1 -1
- package/build/api/models/ban-record.js +1 -1
- package/build/api/models/ban-req-body.d.ts +1 -1
- package/build/api/models/ban-req-body.js +1 -1
- package/build/api/models/ban-response.d.ts +1 -1
- package/build/api/models/ban-response.js +1 -1
- package/build/api/models/best-friends-response-users-inner.d.ts +1 -1
- package/build/api/models/best-friends-response-users-inner.js +1 -1
- package/build/api/models/best-friends-response.d.ts +1 -1
- package/build/api/models/best-friends-response.js +1 -1
- package/build/api/models/block-list-response.d.ts +1 -1
- package/build/api/models/block-list-response.js +1 -1
- package/build/api/models/block-record.d.ts +1 -1
- package/build/api/models/block-record.js +1 -1
- package/build/api/models/block-req-body.d.ts +1 -1
- package/build/api/models/block-req-body.js +1 -1
- package/build/api/models/bulk-casts-response.d.ts +1 -1
- package/build/api/models/bulk-casts-response.js +1 -1
- package/build/api/models/bulk-follow-response.d.ts +1 -1
- package/build/api/models/bulk-follow-response.js +1 -1
- package/build/api/models/bulk-users-by-address-response.d.ts +1 -1
- package/build/api/models/bulk-users-by-address-response.js +1 -1
- package/build/api/models/bulk-users-response.d.ts +1 -1
- package/build/api/models/bulk-users-response.js +1 -1
- package/build/api/models/buy-storage-req-body.d.ts +1 -1
- package/build/api/models/buy-storage-req-body.js +1 -1
- package/build/api/models/cast-and-conversations-ref.d.ts +1 -8
- package/build/api/models/cast-and-conversations-ref.js +1 -1
- package/build/api/models/cast-and-conversations.d.ts +1 -8
- package/build/api/models/cast-and-conversations.js +1 -1
- package/build/api/models/cast-dehydrated.d.ts +1 -1
- package/build/api/models/cast-dehydrated.js +1 -1
- package/build/api/models/cast-embed-crawl-response.d.ts +1 -1
- package/build/api/models/cast-embed-crawl-response.js +1 -1
- package/build/api/models/cast-embedded-parent-author.d.ts +1 -1
- package/build/api/models/cast-embedded-parent-author.js +1 -1
- package/build/api/models/cast-embedded.d.ts +1 -1
- package/build/api/models/cast-embedded.js +1 -1
- package/build/api/models/cast-notification-type.d.ts +1 -1
- package/build/api/models/cast-notification-type.js +1 -1
- package/build/api/models/cast-reactions.d.ts +5 -3
- package/build/api/models/cast-reactions.js +1 -1
- package/build/api/models/cast-replies.d.ts +1 -1
- package/build/api/models/cast-replies.js +1 -1
- package/build/api/models/cast-response.d.ts +1 -1
- package/build/api/models/cast-response.js +1 -1
- package/build/api/models/cast-viewer-context.d.ts +1 -1
- package/build/api/models/cast-viewer-context.js +1 -1
- package/build/api/models/cast.d.ts +1 -8
- package/build/api/models/cast.js +1 -1
- package/build/api/models/casts-metrics-response.d.ts +1 -1
- package/build/api/models/casts-metrics-response.js +1 -1
- package/build/api/models/casts-metrics.d.ts +1 -1
- package/build/api/models/casts-metrics.js +1 -1
- package/build/api/models/casts-response-result.d.ts +1 -1
- package/build/api/models/casts-response-result.js +1 -1
- package/build/api/models/casts-response.d.ts +1 -1
- package/build/api/models/casts-response.js +1 -1
- package/build/api/models/casts-search-response.d.ts +1 -1
- package/build/api/models/casts-search-response.js +1 -1
- package/build/api/models/channel-activity.d.ts +1 -1
- package/build/api/models/channel-activity.js +1 -1
- package/build/api/models/channel-dehydrated.d.ts +1 -1
- package/build/api/models/channel-dehydrated.js +1 -1
- package/build/api/models/channel-external-link.d.ts +1 -1
- package/build/api/models/channel-external-link.js +1 -1
- package/build/api/models/channel-follow-req-body.d.ts +1 -1
- package/build/api/models/channel-follow-req-body.js +1 -1
- package/build/api/models/channel-list-response.d.ts +1 -1
- package/build/api/models/channel-list-response.js +1 -1
- package/build/api/models/channel-member-channel.d.ts +1 -1
- package/build/api/models/channel-member-channel.js +1 -1
- package/build/api/models/channel-member-invite-list-response.d.ts +1 -1
- package/build/api/models/channel-member-invite-list-response.js +1 -1
- package/build/api/models/channel-member-invite.d.ts +1 -1
- package/build/api/models/channel-member-invite.js +1 -1
- package/build/api/models/channel-member-list-response.d.ts +1 -1
- package/build/api/models/channel-member-list-response.js +1 -1
- package/build/api/models/channel-member-role.d.ts +1 -1
- package/build/api/models/channel-member-role.js +1 -1
- package/build/api/models/channel-member-user.d.ts +1 -1
- package/build/api/models/channel-member-user.js +1 -1
- package/build/api/models/channel-member.d.ts +1 -1
- package/build/api/models/channel-member.js +1 -1
- package/build/api/models/channel-or-channel-dehydrated.d.ts +1 -1
- package/build/api/models/channel-or-channel-dehydrated.js +1 -1
- package/build/api/models/channel-response-bulk.d.ts +1 -1
- package/build/api/models/channel-response-bulk.js +1 -1
- package/build/api/models/channel-response.d.ts +1 -1
- package/build/api/models/channel-response.js +1 -1
- package/build/api/models/channel-search-response.d.ts +1 -1
- package/build/api/models/channel-search-response.js +1 -1
- package/build/api/models/channel-user-context.d.ts +1 -1
- package/build/api/models/channel-user-context.js +1 -1
- package/build/api/models/channel.d.ts +1 -1
- package/build/api/models/channel.js +1 -1
- package/build/api/models/conflict-error-res.d.ts +1 -1
- package/build/api/models/conflict-error-res.js +1 -1
- package/build/api/models/conversation-conversation.d.ts +1 -1
- package/build/api/models/conversation-conversation.js +1 -1
- package/build/api/models/conversation-summary-summary.d.ts +1 -1
- package/build/api/models/conversation-summary-summary.js +1 -1
- package/build/api/models/conversation-summary.d.ts +1 -1
- package/build/api/models/conversation-summary.js +1 -1
- package/build/api/models/conversation.d.ts +1 -1
- package/build/api/models/conversation.js +1 -1
- package/build/api/models/create-deployment-request.d.ts +38 -0
- package/build/api/models/{app-host-post-event-req-body-one-of.js → create-deployment-request.js} +1 -1
- package/build/api/models/delete-cast-req-body.d.ts +1 -1
- package/build/api/models/delete-cast-req-body.js +1 -1
- package/build/api/models/{neynar-frame-creation-req-body.d.ts → delete-deployment-request.d.ts} +11 -12
- package/build/api/models/delete-deployment-request.js +15 -0
- package/build/api/models/{delete-frame-response.d.ts → delete-deployment200-response.d.ts} +8 -8
- package/build/api/models/delete-deployment200-response.js +15 -0
- package/build/api/models/deploy-fungible-response-contract-fungible.d.ts +1 -1
- package/build/api/models/deploy-fungible-response-contract-fungible.js +1 -1
- package/build/api/models/deploy-fungible-response-contract.d.ts +1 -1
- package/build/api/models/deploy-fungible-response-contract.js +1 -1
- package/build/api/models/deploy-fungible-response.d.ts +1 -1
- package/build/api/models/deploy-fungible-response.js +1 -1
- package/build/api/models/developer-managed-signer.d.ts +1 -1
- package/build/api/models/developer-managed-signer.js +1 -1
- package/build/api/models/{cast-id.d.ts → embed-cast-deep-cast-id.d.ts} +6 -6
- package/build/api/models/embed-cast-deep-cast-id.js +15 -0
- package/build/api/models/embed-cast-deep.d.ts +5 -5
- package/build/api/models/embed-cast-deep.js +1 -1
- package/build/api/models/embed-cast.d.ts +5 -5
- package/build/api/models/embed-cast.js +1 -1
- package/build/api/models/embed-deep.d.ts +1 -1
- package/build/api/models/embed-deep.js +1 -1
- package/build/api/models/embed-url-metadata-image.d.ts +1 -1
- package/build/api/models/embed-url-metadata-image.js +1 -1
- package/build/api/models/embed-url-metadata-video-stream-inner.d.ts +1 -1
- package/build/api/models/embed-url-metadata-video-stream-inner.js +1 -1
- package/build/api/models/embed-url-metadata-video.d.ts +1 -1
- package/build/api/models/embed-url-metadata-video.js +1 -1
- package/build/api/models/embed-url-metadata.d.ts +1 -1
- package/build/api/models/embed-url-metadata.js +1 -1
- package/build/api/models/embed-url.d.ts +1 -1
- package/build/api/models/embed-url.js +1 -1
- package/build/api/models/embed.d.ts +1 -1
- package/build/api/models/embed.js +1 -1
- package/build/api/models/encoded-json-farcaster-signature.d.ts +1 -1
- package/build/api/models/encoded-json-farcaster-signature.js +1 -1
- package/build/api/models/error-res.d.ts +1 -1
- package/build/api/models/error-res.js +1 -1
- package/build/api/models/farcaster-action-req-body-action.d.ts +1 -1
- package/build/api/models/farcaster-action-req-body-action.js +1 -1
- package/build/api/models/farcaster-action-req-body.d.ts +1 -1
- package/build/api/models/farcaster-action-req-body.js +1 -1
- package/build/api/models/farcaster-fungible.d.ts +41 -0
- package/build/api/models/{neynar-page-image.js → farcaster-fungible.js} +4 -5
- package/build/api/models/farcaster-manifest-frame.d.ts +1 -1
- package/build/api/models/farcaster-manifest-frame.js +1 -1
- package/build/api/models/farcaster-manifest.d.ts +1 -1
- package/build/api/models/farcaster-manifest.js +1 -1
- package/build/api/models/feed-response.d.ts +1 -1
- package/build/api/models/feed-response.js +1 -1
- package/build/api/models/fetch-cast-quotes200-response.d.ts +1 -1
- package/build/api/models/fetch-cast-quotes200-response.js +1 -1
- package/build/api/models/fetch-feed-for-you400-response.d.ts +1 -1
- package/build/api/models/fetch-feed-for-you400-response.js +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner-frame-metadata.d.ts +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner-frame-metadata.js +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner-frame.d.ts +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner-frame.js +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner.d.ts +1 -1
- package/build/api/models/fetch-relevant-frames200-response-relevant-frames-inner.js +1 -1
- package/build/api/models/fetch-relevant-frames200-response.d.ts +1 -1
- package/build/api/models/fetch-relevant-frames200-response.js +1 -1
- package/build/api/models/{frame-input.d.ts → fetch-trending-fungibles200-response-trending-inner-fungible-price.d.ts} +6 -6
- package/build/api/models/fetch-trending-fungibles200-response-trending-inner-fungible-price.js +15 -0
- package/build/api/models/fetch-trending-fungibles200-response-trending-inner-fungible.d.ts +78 -0
- package/build/api/models/{neynar-page-button.js → fetch-trending-fungibles200-response-trending-inner-fungible.js} +4 -7
- package/build/api/models/fetch-trending-fungibles200-response-trending-inner.d.ts +35 -0
- package/build/api/models/{validated-frame-action.js → fetch-trending-fungibles200-response-trending-inner.js} +4 -4
- package/build/api/models/fetch-trending-fungibles200-response.d.ts +25 -0
- package/build/api/models/fetch-trending-fungibles200-response.js +15 -0
- package/build/api/models/fetch-user-interactions200-response.d.ts +1 -1
- package/build/api/models/fetch-user-interactions200-response.js +1 -1
- package/build/api/models/fetch-user-reciprocal-followers200-response.d.ts +1 -1
- package/build/api/models/fetch-user-reciprocal-followers200-response.js +1 -1
- package/build/api/models/fname-availability-response.d.ts +1 -1
- package/build/api/models/fname-availability-response.js +1 -1
- package/build/api/models/follow-req-body.d.ts +1 -1
- package/build/api/models/follow-req-body.js +1 -1
- package/build/api/models/follow-response.d.ts +1 -1
- package/build/api/models/follow-response.js +1 -1
- package/build/api/models/follower-dehydrated.d.ts +1 -1
- package/build/api/models/follower-dehydrated.js +1 -1
- package/build/api/models/follower.d.ts +1 -1
- package/build/api/models/follower.js +1 -1
- package/build/api/models/followers-response.d.ts +1 -1
- package/build/api/models/followers-response.js +1 -1
- package/build/api/models/frame-action-button.d.ts +1 -1
- package/build/api/models/frame-action-button.js +1 -1
- package/build/api/models/frame-button-action-type.d.ts +1 -1
- package/build/api/models/frame-button-action-type.js +1 -1
- package/build/api/models/frame-catalog-response.d.ts +1 -1
- package/build/api/models/frame-catalog-response.js +1 -1
- package/build/api/models/frame-notification-tokens-notification-tokens-inner.d.ts +2 -1
- package/build/api/models/frame-notification-tokens-notification-tokens-inner.js +3 -2
- package/build/api/models/frame-notification-tokens.d.ts +1 -1
- package/build/api/models/frame-notification-tokens.js +1 -1
- package/build/api/models/frame-pay-transaction-req-body-transaction.d.ts +1 -1
- package/build/api/models/frame-pay-transaction-req-body-transaction.js +1 -1
- package/build/api/models/frame-pay-transaction-req-body.d.ts +1 -1
- package/build/api/models/frame-pay-transaction-req-body.js +1 -1
- package/build/api/models/frame-v1-input.d.ts +1 -1
- package/build/api/models/frame-v1-input.js +1 -1
- package/build/api/models/frame-v1-state.d.ts +1 -1
- package/build/api/models/frame-v1-state.js +1 -1
- package/build/api/models/frame-v1.d.ts +1 -1
- package/build/api/models/frame-v1.js +1 -1
- package/build/api/models/frame-v2-with-full-author.d.ts +1 -1
- package/build/api/models/frame-v2-with-full-author.js +1 -1
- package/build/api/models/frame-v2.d.ts +1 -1
- package/build/api/models/frame-v2.js +1 -1
- package/build/api/models/frame.d.ts +1 -1
- package/build/api/models/frame.js +1 -1
- package/build/api/models/fungible.d.ts +71 -0
- package/build/api/models/fungible.js +19 -0
- package/build/api/models/{fetch-frame-meta-tags-from-url200-response.d.ts → fungibles-response-schema.d.ts} +8 -8
- package/build/api/models/fungibles-response-schema.js +15 -0
- package/build/api/models/get-conversation-messages200-response-messages-inner.d.ts +66 -0
- package/build/api/models/get-conversation-messages200-response-messages-inner.js +21 -0
- package/build/api/models/get-conversation-messages200-response.d.ts +25 -0
- package/build/api/models/get-conversation-messages200-response.js +15 -0
- package/build/api/models/get-deployment-file200-response.d.ts +30 -0
- package/build/api/models/get-deployment-file200-response.js +15 -0
- package/build/api/models/{frame-state.d.ts → get-deployment-logs200-response.d.ts} +6 -6
- package/build/api/models/get-deployment-logs200-response.js +15 -0
- package/build/api/models/get-notification-campaign-stats200-response.d.ts +4 -4
- package/build/api/models/get-notification-campaign-stats200-response.js +1 -1
- package/build/api/models/html-metadata-oembed.d.ts +1 -1
- package/build/api/models/html-metadata-oembed.js +1 -1
- package/build/api/models/html-metadata.d.ts +1 -1
- package/build/api/models/html-metadata.js +1 -1
- package/build/api/models/image-object.d.ts +1 -1
- package/build/api/models/image-object.js +1 -1
- package/build/api/models/index.d.ts +39 -48
- package/build/api/models/index.js +39 -48
- package/build/api/models/invite-channel-member-req-body.d.ts +1 -1
- package/build/api/models/invite-channel-member-req-body.js +1 -1
- package/build/api/models/list-conversations200-response-conversations-inner.d.ts +48 -0
- package/build/api/models/list-conversations200-response-conversations-inner.js +15 -0
- package/build/api/models/list-conversations200-response.d.ts +25 -0
- package/build/api/models/list-conversations200-response.js +15 -0
- package/build/api/models/list-deployment-files200-response-files-inner.d.ts +36 -0
- package/build/api/models/list-deployment-files200-response-files-inner.js +15 -0
- package/build/api/models/list-deployment-files200-response.d.ts +25 -0
- package/build/api/models/list-deployment-files200-response.js +15 -0
- package/build/api/models/list-deployments200-response-inner.d.ts +72 -0
- package/build/api/models/list-deployments200-response-inner.js +15 -0
- package/build/api/models/{delete-frame-req-body.d.ts → list-deployments400-response.d.ts} +5 -5
- package/build/api/models/list-deployments400-response.js +15 -0
- package/build/api/models/location-address.d.ts +1 -1
- package/build/api/models/location-address.js +1 -1
- package/build/api/models/location.d.ts +1 -1
- package/build/api/models/location.js +1 -1
- package/build/api/models/mark-notifications-as-seen-req-body.d.ts +1 -1
- package/build/api/models/mark-notifications-as-seen-req-body.js +1 -1
- package/build/api/models/mint-nft-request-recipients-inner.d.ts +1 -1
- package/build/api/models/mint-nft-request-recipients-inner.js +1 -1
- package/build/api/models/mint-nft-request.d.ts +1 -1
- package/build/api/models/mint-nft-request.js +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner-receipt.d.ts +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner-receipt.js +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner-recipient.d.ts +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner-recipient.js +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner.d.ts +1 -1
- package/build/api/models/mint-nft200-response-transactions-inner.js +1 -1
- package/build/api/models/mint-nft200-response.d.ts +1 -1
- package/build/api/models/mint-nft200-response.js +1 -1
- package/build/api/models/mute-list-response.d.ts +1 -1
- package/build/api/models/mute-list-response.js +1 -1
- package/build/api/models/mute-record.d.ts +1 -1
- package/build/api/models/mute-record.js +1 -1
- package/build/api/models/mute-req-body.d.ts +1 -1
- package/build/api/models/mute-req-body.js +1 -1
- package/build/api/models/mute-response.d.ts +1 -1
- package/build/api/models/mute-response.js +1 -1
- package/build/api/models/network.d.ts +1 -1
- package/build/api/models/network.js +1 -1
- package/build/api/models/next-cursor.d.ts +1 -1
- package/build/api/models/next-cursor.js +1 -1
- package/build/api/models/nonce-response.d.ts +1 -1
- package/build/api/models/nonce-response.js +1 -1
- package/build/api/models/{get-notification-campaign-stats200-response-notification-campaigns-inner-stats-error-breakdown.d.ts → notification-campaign-stats-error-breakdown.d.ts} +5 -5
- package/build/api/models/notification-campaign-stats-error-breakdown.js +15 -0
- package/build/api/models/{get-notification-campaign-stats200-response-notification-campaigns-inner-stats.d.ts → notification-campaign-stats.d.ts} +15 -15
- package/build/api/models/notification-campaign-stats.js +15 -0
- package/build/api/models/notification-campaign.d.ts +49 -0
- package/build/api/models/notification-campaign.js +15 -0
- package/build/api/models/notification-delivery.d.ts +6 -2
- package/build/api/models/notification-delivery.js +6 -2
- package/build/api/models/notification-type.d.ts +1 -1
- package/build/api/models/notification-type.js +1 -1
- package/build/api/models/notification.d.ts +1 -1
- package/build/api/models/notification.js +1 -1
- package/build/api/models/notifications-response.d.ts +1 -1
- package/build/api/models/notifications-response.js +1 -1
- package/build/api/models/oembed-link-data.d.ts +1 -1
- package/build/api/models/oembed-link-data.js +1 -1
- package/build/api/models/oembed-photo-data.d.ts +1 -1
- package/build/api/models/oembed-photo-data.js +1 -1
- package/build/api/models/oembed-rich-data.d.ts +1 -1
- package/build/api/models/oembed-rich-data.js +1 -1
- package/build/api/models/oembed-video-data.d.ts +1 -1
- package/build/api/models/oembed-video-data.js +1 -1
- package/build/api/models/operation-response.d.ts +1 -1
- package/build/api/models/operation-response.js +1 -1
- package/build/api/models/post-cast-req-body-embeds-cast-id-properties.d.ts +1 -1
- package/build/api/models/post-cast-req-body-embeds-cast-id-properties.js +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of.d.ts +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of.js +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of1.d.ts +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of1.js +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of2.d.ts +1 -1
- package/build/api/models/post-cast-req-body-embeds-one-of2.js +1 -1
- package/build/api/models/post-cast-req-body-embeds.d.ts +1 -1
- package/build/api/models/post-cast-req-body-embeds.js +1 -1
- package/build/api/models/post-cast-req-body.d.ts +1 -1
- package/build/api/models/post-cast-req-body.js +1 -1
- package/build/api/models/post-cast-response-cast-author.d.ts +1 -1
- package/build/api/models/post-cast-response-cast-author.js +1 -1
- package/build/api/models/post-cast-response-cast.d.ts +1 -1
- package/build/api/models/post-cast-response-cast.js +1 -1
- package/build/api/models/post-cast-response.d.ts +1 -1
- package/build/api/models/post-cast-response.js +1 -1
- package/build/api/models/prompt-deployment-request.d.ts +50 -0
- package/build/api/models/prompt-deployment-request.js +15 -0
- package/build/api/models/prompt-deployment200-response.d.ts +30 -0
- package/build/api/models/prompt-deployment200-response.js +15 -0
- package/build/api/models/reaction-for-cast.d.ts +1 -1
- package/build/api/models/reaction-for-cast.js +1 -1
- package/build/api/models/reaction-like.d.ts +1 -1
- package/build/api/models/reaction-like.js +1 -1
- package/build/api/models/reaction-recast.d.ts +1 -1
- package/build/api/models/reaction-recast.js +1 -1
- package/build/api/models/reaction-req-body.d.ts +1 -1
- package/build/api/models/reaction-req-body.js +1 -1
- package/build/api/models/reaction-type.d.ts +1 -1
- package/build/api/models/reaction-type.js +1 -1
- package/build/api/models/reaction-with-cast-info.d.ts +1 -1
- package/build/api/models/reaction-with-cast-info.js +1 -1
- package/build/api/models/reaction-with-user-info.d.ts +1 -1
- package/build/api/models/reaction-with-user-info.js +1 -1
- package/build/api/models/reactions-cast-response.d.ts +1 -1
- package/build/api/models/reactions-cast-response.js +1 -1
- package/build/api/models/reactions-response.d.ts +1 -1
- package/build/api/models/reactions-response.js +1 -1
- package/build/api/models/reciprocal-follower.d.ts +1 -1
- package/build/api/models/reciprocal-follower.js +1 -1
- package/build/api/models/register-auth-address-developer-managed-signed-key-req-body.d.ts +1 -1
- package/build/api/models/register-auth-address-developer-managed-signed-key-req-body.js +1 -1
- package/build/api/models/register-developer-managed-signed-key-req-body.d.ts +1 -1
- package/build/api/models/register-developer-managed-signed-key-req-body.js +1 -1
- package/build/api/models/register-signed-key-for-developer-managed-auth-address200-response.d.ts +1 -1
- package/build/api/models/register-signed-key-for-developer-managed-auth-address200-response.js +1 -1
- package/build/api/models/register-signer-key-req-body.d.ts +1 -1
- package/build/api/models/register-signer-key-req-body.js +1 -1
- package/build/api/models/register-user-on-chain-req-body-pre-registration-calls-inner.d.ts +1 -1
- package/build/api/models/register-user-on-chain-req-body-pre-registration-calls-inner.js +1 -1
- package/build/api/models/register-user-on-chain-req-body-registration.d.ts +1 -1
- package/build/api/models/register-user-on-chain-req-body-registration.js +1 -1
- package/build/api/models/register-user-on-chain-req-body-signers-inner.d.ts +1 -1
- package/build/api/models/register-user-on-chain-req-body-signers-inner.js +1 -1
- package/build/api/models/register-user-on-chain-req-body.d.ts +1 -1
- package/build/api/models/register-user-on-chain-req-body.js +1 -1
- package/build/api/models/register-user-on-chain-response.d.ts +1 -1
- package/build/api/models/register-user-on-chain-response.js +1 -1
- package/build/api/models/register-user-req-body-metadata.d.ts +1 -1
- package/build/api/models/register-user-req-body-metadata.js +1 -1
- package/build/api/models/{neynar-frame-update-req-body.d.ts → register-user-req-body-signer.d.ts} +17 -12
- package/build/api/models/register-user-req-body-signer.js +15 -0
- package/build/api/models/register-user-req-body.d.ts +8 -1
- package/build/api/models/register-user-req-body.js +1 -1
- package/build/api/models/register-user-response-signers-inner.d.ts +72 -0
- package/build/api/models/register-user-response-signers-inner.js +25 -0
- package/build/api/models/register-user-response.d.ts +9 -2
- package/build/api/models/register-user-response.js +1 -1
- package/build/api/models/relevant-followers-response.d.ts +1 -1
- package/build/api/models/relevant-followers-response.js +1 -1
- package/build/api/models/relevant-fungible-owners-response.d.ts +1 -1
- package/build/api/models/relevant-fungible-owners-response.js +1 -1
- package/build/api/models/remove-channel-member-req-body.d.ts +1 -1
- package/build/api/models/remove-channel-member-req-body.js +1 -1
- package/build/api/models/remove-verification-req-body.d.ts +1 -1
- package/build/api/models/remove-verification-req-body.js +1 -1
- package/build/api/models/respond-channel-invite-req-body.d.ts +1 -1
- package/build/api/models/respond-channel-invite-req-body.js +1 -1
- package/build/api/models/send-frame-notifications-req-body-filters-near-location.d.ts +1 -1
- package/build/api/models/send-frame-notifications-req-body-filters-near-location.js +1 -1
- package/build/api/models/send-frame-notifications-req-body-filters.d.ts +1 -1
- package/build/api/models/send-frame-notifications-req-body-filters.js +1 -1
- package/build/api/models/send-frame-notifications-req-body-notification.d.ts +1 -1
- package/build/api/models/send-frame-notifications-req-body-notification.js +1 -1
- package/build/api/models/send-frame-notifications-req-body.d.ts +2 -2
- package/build/api/models/send-frame-notifications-req-body.js +1 -1
- package/build/api/models/send-frame-notifications-response.d.ts +1 -1
- package/build/api/models/send-frame-notifications-response.js +1 -1
- package/build/api/models/shared-signer-permission.d.ts +1 -1
- package/build/api/models/shared-signer-permission.js +1 -1
- package/build/api/models/signed-key-request-sponsor.d.ts +2 -2
- package/build/api/models/signed-key-request-sponsor.js +1 -1
- package/build/api/models/{app-host-post-event-req-body-one-of-signed-message.d.ts → signed-message-body-signed-message.d.ts} +3 -3
- package/build/api/models/signed-message-body-signed-message.js +15 -0
- package/build/api/models/{app-host-post-event-req-body-one-of.d.ts → signed-message-body.d.ts} +8 -8
- package/build/api/models/signed-message-body.js +15 -0
- package/build/api/models/signer-list-response.d.ts +1 -1
- package/build/api/models/signer-list-response.js +1 -1
- package/build/api/models/{app-host-post-event-req-body-one-of1.d.ts → signer-uuid-body.d.ts} +7 -7
- package/build/api/models/signer-uuid-body.js +15 -0
- package/build/api/models/signer.d.ts +1 -1
- package/build/api/models/signer.js +1 -1
- package/build/api/models/simulate-nft-mint-response-inner.d.ts +1 -1
- package/build/api/models/simulate-nft-mint-response-inner.js +1 -1
- package/build/api/models/simulate-nft-mint-response.d.ts +1 -1
- package/build/api/models/simulate-nft-mint-response.js +1 -1
- package/build/api/models/storage-allocation.d.ts +1 -1
- package/build/api/models/storage-allocation.js +1 -1
- package/build/api/models/storage-allocations-response.d.ts +1 -1
- package/build/api/models/storage-allocations-response.js +1 -1
- package/build/api/models/storage-object.d.ts +1 -1
- package/build/api/models/storage-object.js +1 -1
- package/build/api/models/storage-usage-response.d.ts +1 -1
- package/build/api/models/storage-usage-response.js +1 -1
- package/build/api/models/subscribed-to-object.d.ts +1 -1
- package/build/api/models/subscribed-to-object.js +1 -1
- package/build/api/models/subscribed-to-response.d.ts +1 -1
- package/build/api/models/subscribed-to-response.js +1 -1
- package/build/api/models/subscribed-to.d.ts +1 -1
- package/build/api/models/subscribed-to.js +1 -1
- package/build/api/models/subscriber.d.ts +1 -1
- package/build/api/models/subscriber.js +1 -1
- package/build/api/models/subscribers-response.d.ts +1 -1
- package/build/api/models/subscribers-response.js +1 -1
- package/build/api/models/subscription-check-response-value.d.ts +1 -1
- package/build/api/models/subscription-check-response-value.js +1 -1
- package/build/api/models/subscription-check-response.d.ts +1 -1
- package/build/api/models/subscription-check-response.js +1 -1
- package/build/api/models/subscription-metadata.d.ts +1 -1
- package/build/api/models/subscription-metadata.js +1 -1
- package/build/api/models/subscription-price.d.ts +1 -1
- package/build/api/models/subscription-price.js +1 -1
- package/build/api/models/subscription-tier-price.d.ts +1 -1
- package/build/api/models/subscription-tier-price.js +1 -1
- package/build/api/models/subscription-tier.d.ts +1 -1
- package/build/api/models/subscription-tier.js +1 -1
- package/build/api/models/subscription-token.d.ts +1 -1
- package/build/api/models/subscription-token.js +1 -1
- package/build/api/models/subscription.d.ts +1 -1
- package/build/api/models/subscription.js +1 -1
- package/build/api/models/subscriptions-response.d.ts +1 -1
- package/build/api/models/subscriptions-response.js +1 -1
- package/build/api/models/subscriptions.d.ts +1 -1
- package/build/api/models/subscriptions.js +1 -1
- package/build/api/models/text-range.d.ts +1 -1
- package/build/api/models/text-range.js +1 -1
- package/build/api/models/token-balance-balance.d.ts +1 -1
- package/build/api/models/token-balance-balance.js +1 -1
- package/build/api/models/token-balance-token.d.ts +1 -1
- package/build/api/models/token-balance-token.js +1 -1
- package/build/api/models/token-balance.d.ts +1 -1
- package/build/api/models/token-balance.js +1 -1
- package/build/api/models/transaction-frame-action.d.ts +1 -1
- package/build/api/models/transaction-frame-action.js +1 -1
- package/build/api/models/transaction-frame-config.d.ts +1 -1
- package/build/api/models/transaction-frame-config.js +1 -1
- package/build/api/models/transaction-frame-destination.d.ts +1 -1
- package/build/api/models/transaction-frame-destination.js +1 -1
- package/build/api/models/transaction-frame-line-item.d.ts +1 -1
- package/build/api/models/transaction-frame-line-item.js +1 -1
- package/build/api/models/transaction-frame-pay.d.ts +1 -1
- package/build/api/models/transaction-frame-pay.js +1 -1
- package/build/api/models/transaction-frame-response.d.ts +1 -1
- package/build/api/models/transaction-frame-response.js +1 -1
- package/build/api/models/transaction-frame-status.d.ts +1 -1
- package/build/api/models/transaction-frame-status.js +1 -1
- package/build/api/models/transaction-frame-type.d.ts +1 -1
- package/build/api/models/transaction-frame-type.js +1 -1
- package/build/api/models/transaction-frame.d.ts +1 -1
- package/build/api/models/transaction-frame.js +1 -1
- package/build/api/models/transaction-send-fungibles-receipt.d.ts +1 -1
- package/build/api/models/transaction-send-fungibles-receipt.js +1 -1
- package/build/api/models/transaction-send-fungibles-recipient.d.ts +1 -1
- package/build/api/models/transaction-send-fungibles-recipient.js +1 -1
- package/build/api/models/transaction-send-fungibles-req-body.d.ts +1 -1
- package/build/api/models/transaction-send-fungibles-req-body.js +1 -1
- package/build/api/models/transaction-send-fungibles-response.d.ts +1 -1
- package/build/api/models/transaction-send-fungibles-response.js +1 -1
- package/build/api/models/transaction-send-tx-info.d.ts +1 -1
- package/build/api/models/transaction-send-tx-info.js +1 -1
- package/build/api/models/trending-channel-response.d.ts +1 -1
- package/build/api/models/trending-channel-response.js +1 -1
- package/build/api/models/update-user-req-body-location.d.ts +1 -1
- package/build/api/models/update-user-req-body-location.js +1 -1
- package/build/api/models/update-user-req-body-verified-accounts.d.ts +1 -1
- package/build/api/models/update-user-req-body-verified-accounts.js +1 -1
- package/build/api/models/update-user-req-body.d.ts +14 -2
- package/build/api/models/update-user-req-body.js +1 -1
- package/build/api/models/{frame-transaction.d.ts → update-user207-response-errors-inner.d.ts} +6 -6
- package/build/api/models/update-user207-response-errors-inner.js +15 -0
- package/build/api/models/{validate-frame-action-response.d.ts → update-user207-response.d.ts} +9 -9
- package/build/api/models/update-user207-response.js +15 -0
- package/build/api/models/{cast-composer-actions-list-response-actions-inner-action.d.ts → upload-image-url-request.d.ts} +15 -9
- package/build/api/models/upload-image-url-request.js +15 -0
- package/build/api/models/upload-image200-response.d.ts +42 -0
- package/build/api/models/upload-image200-response.js +15 -0
- package/build/api/models/user-auth-addresses-inner.d.ts +1 -1
- package/build/api/models/user-auth-addresses-inner.js +1 -1
- package/build/api/models/user-dehydrated.d.ts +1 -1
- package/build/api/models/user-dehydrated.js +1 -1
- package/build/api/models/user-experimental.d.ts +1 -1
- package/build/api/models/user-experimental.js +1 -1
- package/build/api/models/user-fidresponse.d.ts +1 -1
- package/build/api/models/user-fidresponse.js +1 -1
- package/build/api/models/user-power-lite-response-result.d.ts +1 -1
- package/build/api/models/user-power-lite-response-result.js +1 -1
- package/build/api/models/user-power-lite-response.d.ts +1 -1
- package/build/api/models/user-power-lite-response.js +1 -1
- package/build/api/models/user-pro.d.ts +1 -1
- package/build/api/models/user-pro.js +1 -1
- package/build/api/models/user-profile-banner.d.ts +1 -1
- package/build/api/models/user-profile-banner.js +1 -1
- package/build/api/models/user-profile-bio.d.ts +1 -1
- package/build/api/models/user-profile-bio.js +1 -1
- package/build/api/models/user-profile.d.ts +1 -1
- package/build/api/models/user-profile.js +1 -1
- package/build/api/models/user-response.d.ts +1 -1
- package/build/api/models/user-response.js +1 -1
- package/build/api/models/user-search-response-result.d.ts +1 -1
- package/build/api/models/user-search-response-result.js +1 -1
- package/build/api/models/user-search-response.d.ts +1 -1
- package/build/api/models/user-search-response.js +1 -1
- package/build/api/models/user-verified-accounts-inner.d.ts +1 -1
- package/build/api/models/user-verified-accounts-inner.js +1 -1
- package/build/api/models/user-verified-addresses-primary.d.ts +1 -1
- package/build/api/models/user-verified-addresses-primary.js +1 -1
- package/build/api/models/user-verified-addresses.d.ts +1 -1
- package/build/api/models/user-verified-addresses.js +1 -1
- package/build/api/models/user-viewer-context.d.ts +1 -1
- package/build/api/models/user-viewer-context.js +1 -1
- package/build/api/models/user.d.ts +1 -1
- package/build/api/models/user.js +1 -1
- package/build/api/models/users-active-channels-response.d.ts +1 -1
- package/build/api/models/users-active-channels-response.js +1 -1
- package/build/api/models/users-response.d.ts +1 -1
- package/build/api/models/users-response.js +1 -1
- package/build/api/models/verification-chain-id.d.ts +1 -1
- package/build/api/models/verification-chain-id.js +1 -1
- package/build/api/models/verification-type.d.ts +1 -1
- package/build/api/models/verification-type.js +1 -1
- package/build/api/models/video-object.d.ts +1 -1
- package/build/api/models/video-object.js +1 -1
- package/build/api/models/webhook-delete-req-body.d.ts +1 -1
- package/build/api/models/webhook-delete-req-body.js +1 -1
- package/build/api/models/webhook-list-response.d.ts +1 -1
- package/build/api/models/webhook-list-response.js +1 -1
- package/build/api/models/webhook-patch-req-body.d.ts +1 -1
- package/build/api/models/webhook-patch-req-body.js +1 -1
- package/build/api/models/webhook-post-req-body.d.ts +1 -1
- package/build/api/models/webhook-post-req-body.js +1 -1
- package/build/api/models/webhook-put-req-body.d.ts +1 -1
- package/build/api/models/webhook-put-req-body.js +1 -1
- package/build/api/models/webhook-response.d.ts +1 -1
- package/build/api/models/webhook-response.js +1 -1
- package/build/api/models/webhook-secret.d.ts +1 -1
- package/build/api/models/webhook-secret.js +1 -1
- package/build/api/models/webhook-subscription-filters-cast.d.ts +13 -1
- package/build/api/models/webhook-subscription-filters-cast.js +1 -1
- package/build/api/models/webhook-subscription-filters-follow.d.ts +1 -1
- package/build/api/models/webhook-subscription-filters-follow.js +1 -1
- package/build/api/models/webhook-subscription-filters-reaction.d.ts +1 -1
- package/build/api/models/webhook-subscription-filters-reaction.js +1 -1
- package/build/api/models/webhook-subscription-filters-trade.d.ts +36 -0
- package/build/api/models/webhook-subscription-filters-trade.js +15 -0
- package/build/api/models/webhook-subscription-filters-user-updated.d.ts +1 -1
- package/build/api/models/webhook-subscription-filters-user-updated.js +1 -1
- package/build/api/models/webhook-subscription-filters.d.ts +8 -1
- package/build/api/models/webhook-subscription-filters.js +1 -1
- package/build/api/models/webhook-subscription.d.ts +1 -1
- package/build/api/models/webhook-subscription.js +1 -1
- package/build/api/models/webhook.d.ts +1 -1
- package/build/api/models/webhook.js +1 -1
- package/build/api/models/zod-error-errors-inner.d.ts +1 -1
- package/build/api/models/zod-error-errors-inner.js +1 -1
- package/build/api/models/zod-error.d.ts +1 -1
- package/build/api/models/zod-error.js +1 -1
- package/build/clients/NeynarAPIClient.d.ts +461 -379
- package/build/clients/NeynarAPIClient.js +491 -403
- package/build/hub-api/base.js +1 -1
- package/package.json +1 -1
- package/build/api/models/cast-composer-actions-list-response-actions-inner.d.ts +0 -97
- package/build/api/models/cast-composer-actions-list-response-actions-inner.js +0 -15
- package/build/api/models/cast-composer-actions-list-response.d.ts +0 -32
- package/build/api/models/cast-composer-actions-list-response.js +0 -15
- package/build/api/models/cast-id.js +0 -15
- package/build/api/models/delete-frame-req-body.js +0 -15
- package/build/api/models/delete-frame-response.js +0 -15
- package/build/api/models/fetch-frame-meta-tags-from-url200-response.js +0 -15
- package/build/api/models/frame-action-req-body.d.ts +0 -37
- package/build/api/models/frame-action-req-body.js +0 -15
- package/build/api/models/frame-action.d.ts +0 -82
- package/build/api/models/frame-action.js +0 -15
- package/build/api/models/frame-developer-managed-action-req-body.d.ts +0 -38
- package/build/api/models/frame-developer-managed-action-req-body.js +0 -15
- package/build/api/models/frame-input.js +0 -15
- package/build/api/models/frame-signature-packet-trusted-data.d.ts +0 -24
- package/build/api/models/frame-signature-packet-trusted-data.js +0 -15
- package/build/api/models/frame-signature-packet-untrusted-data.d.ts +0 -85
- package/build/api/models/frame-signature-packet-untrusted-data.js +0 -15
- package/build/api/models/frame-signature-packet.d.ts +0 -32
- package/build/api/models/frame-signature-packet.js +0 -15
- package/build/api/models/frame-state.js +0 -15
- package/build/api/models/frame-transaction.js +0 -15
- package/build/api/models/frame-validate-analytics-input-text-input-texts-inner.d.ts +0 -36
- package/build/api/models/frame-validate-analytics-input-text-input-texts-inner.js +0 -15
- package/build/api/models/frame-validate-analytics-input-text.d.ts +0 -25
- package/build/api/models/frame-validate-analytics-input-text.js +0 -15
- package/build/api/models/frame-validate-analytics-interactions-per-cast-interactions-per-cast-inner.d.ts +0 -48
- package/build/api/models/frame-validate-analytics-interactions-per-cast-interactions-per-cast-inner.js +0 -15
- package/build/api/models/frame-validate-analytics-interactions-per-cast.d.ts +0 -25
- package/build/api/models/frame-validate-analytics-interactions-per-cast.js +0 -15
- package/build/api/models/frame-validate-analytics-interactors-interactors-inner.d.ts +0 -36
- package/build/api/models/frame-validate-analytics-interactors-interactors-inner.js +0 -15
- package/build/api/models/frame-validate-analytics-interactors.d.ts +0 -25
- package/build/api/models/frame-validate-analytics-interactors.js +0 -15
- package/build/api/models/frame-validate-analytics-response.d.ts +0 -20
- package/build/api/models/frame-validate-analytics-response.js +0 -15
- package/build/api/models/frame-validate-analytics-total-interactors.d.ts +0 -24
- package/build/api/models/frame-validate-analytics-total-interactors.js +0 -15
- package/build/api/models/frame-validate-list-response.d.ts +0 -24
- package/build/api/models/frame-validate-list-response.js +0 -15
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner-stats-error-breakdown.js +0 -15
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner-stats.js +0 -15
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner.d.ts +0 -49
- package/build/api/models/get-notification-campaign-stats200-response-notification-campaigns-inner.js +0 -15
- package/build/api/models/neynar-frame-creation-req-body.js +0 -15
- package/build/api/models/neynar-frame-page.d.ts +0 -57
- package/build/api/models/neynar-frame-page.js +0 -15
- package/build/api/models/neynar-frame-update-req-body.js +0 -15
- package/build/api/models/neynar-frame.d.ts +0 -49
- package/build/api/models/neynar-frame.js +0 -15
- package/build/api/models/neynar-next-frame-page-mint-url.d.ts +0 -24
- package/build/api/models/neynar-next-frame-page-mint-url.js +0 -15
- package/build/api/models/neynar-next-frame-page-redirect.d.ts +0 -24
- package/build/api/models/neynar-next-frame-page-redirect.js +0 -15
- package/build/api/models/neynar-next-frame-page.d.ts +0 -24
- package/build/api/models/neynar-next-frame-page.js +0 -15
- package/build/api/models/neynar-page-button-next-page.d.ts +0 -19
- package/build/api/models/neynar-page-button-next-page.js +0 -15
- package/build/api/models/neynar-page-button.d.ts +0 -50
- package/build/api/models/neynar-page-image.d.ts +0 -35
- package/build/api/models/neynar-page-input-text.js +0 -15
- package/build/api/models/neynar-page-input.d.ts +0 -25
- package/build/api/models/neynar-page-input.js +0 -15
- package/build/api/models/validate-frame-action-req-body.d.ts +0 -48
- package/build/api/models/validate-frame-action-req-body.js +0 -15
- package/build/api/models/validate-frame-action-response.js +0 -15
- package/build/api/models/validated-frame-action-signer.d.ts +0 -25
- package/build/api/models/validated-frame-action-signer.js +0 -15
- package/build/api/models/validated-frame-action-tapped-button.d.ts +0 -24
- package/build/api/models/validated-frame-action-tapped-button.js +0 -15
- package/build/api/models/validated-frame-action.d.ts +0 -95
|
@@ -0,0 +1,1304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.77.0
|
|
9
|
+
* Contact: team@neynar.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.StudioApi = exports.StudioApiFactory = exports.StudioApiFp = exports.StudioApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* StudioApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const StudioApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Associates a generated miniapp with a Farcaster account using a JFS-signed domain association. Requires API key authentication.
|
|
34
|
+
* @summary Set account association
|
|
35
|
+
* @param {AssociateDeploymentRequest} associateDeploymentRequest
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
* @returns {Promise<AssociateDeployment200Response>} A promise that resolves to a `AssociateDeployment200Response` object
|
|
39
|
+
*
|
|
40
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/associate-deployment)
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
associateDeployment: async (associateDeploymentRequest, options = {}) => {
|
|
44
|
+
// verify required parameter 'associateDeploymentRequest' is not null or undefined
|
|
45
|
+
(0, common_1.assertParamExists)('associateDeployment', 'associateDeploymentRequest', associateDeploymentRequest);
|
|
46
|
+
const localVarPath = `/v2/studio/deployment/account-association`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication ApiKeyAuth required
|
|
57
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
58
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
59
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(associateDeploymentRequest, localVarRequestOptions, configuration);
|
|
63
|
+
return {
|
|
64
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Creates and deploys an instance of the miniapp generator for a user. Requires authentication via API key in the request header.
|
|
70
|
+
* @summary Create a miniapp generator deployment
|
|
71
|
+
* @param {CreateDeploymentRequest} createDeploymentRequest
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
75
|
+
*
|
|
76
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/create-deployment)
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
createDeployment: async (createDeploymentRequest, options = {}) => {
|
|
80
|
+
// verify required parameter 'createDeploymentRequest' is not null or undefined
|
|
81
|
+
(0, common_1.assertParamExists)('createDeployment', 'createDeploymentRequest', createDeploymentRequest);
|
|
82
|
+
const localVarPath = `/v2/studio/deployment/`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication ApiKeyAuth required
|
|
93
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
94
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
95
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeploymentRequest, localVarRequestOptions, configuration);
|
|
99
|
+
return {
|
|
100
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
101
|
+
options: localVarRequestOptions,
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Deletes a specific miniapp generator deployment or all deployments for a FID. If name is provided, deletes single deployment. If only FID is provided, deletes all deployments for that FID. Requires API key authentication.
|
|
106
|
+
* @summary Delete deployment(s)
|
|
107
|
+
* @param {DeleteDeploymentRequest} deleteDeploymentRequest
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
* @returns {Promise<DeleteDeployment200Response>} A promise that resolves to a `DeleteDeployment200Response` object
|
|
111
|
+
*
|
|
112
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/delete-deployment)
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
deleteDeployment: async (deleteDeploymentRequest, options = {}) => {
|
|
116
|
+
// verify required parameter 'deleteDeploymentRequest' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('deleteDeployment', 'deleteDeploymentRequest', deleteDeploymentRequest);
|
|
118
|
+
const localVarPath = `/v2/studio/deployment/`;
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
// authentication ApiKeyAuth required
|
|
129
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteDeploymentRequest, localVarRequestOptions, configuration);
|
|
135
|
+
return {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves all messages in a specific conversation. Requires API key authentication.
|
|
142
|
+
* @summary Get messages in a conversation
|
|
143
|
+
* @param {number} fid Farcaster ID of the user
|
|
144
|
+
* @param {string} name Kubernetes deployment name
|
|
145
|
+
* @param {string} conversationId Conversation ID
|
|
146
|
+
* @param {boolean | null} [includeDeleted] Include deleted messages in the response. Defaults to false.
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
* @returns {Promise<GetConversationMessages200Response>} A promise that resolves to a `GetConversationMessages200Response` object
|
|
150
|
+
*
|
|
151
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-conversation-messages)
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
getConversationMessages: async (fid, name, conversationId, includeDeleted, options = {}) => {
|
|
155
|
+
// verify required parameter 'fid' is not null or undefined
|
|
156
|
+
(0, common_1.assertParamExists)('getConversationMessages', 'fid', fid);
|
|
157
|
+
// verify required parameter 'name' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('getConversationMessages', 'name', name);
|
|
159
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('getConversationMessages', 'conversationId', conversationId);
|
|
161
|
+
const localVarPath = `/v2/studio/deployment/conversations/messages`;
|
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
let baseOptions;
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
169
|
+
const localVarHeaderParameter = {};
|
|
170
|
+
const localVarQueryParameter = {};
|
|
171
|
+
// authentication ApiKeyAuth required
|
|
172
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
173
|
+
if (fid !== undefined) {
|
|
174
|
+
localVarQueryParameter['fid'] = fid;
|
|
175
|
+
}
|
|
176
|
+
if (name !== undefined) {
|
|
177
|
+
localVarQueryParameter['name'] = name;
|
|
178
|
+
}
|
|
179
|
+
if (conversationId !== undefined) {
|
|
180
|
+
localVarQueryParameter['conversation_id'] = conversationId;
|
|
181
|
+
}
|
|
182
|
+
if (includeDeleted !== undefined) {
|
|
183
|
+
localVarQueryParameter['include_deleted'] = includeDeleted;
|
|
184
|
+
}
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
return {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Fetches info about a miniapp generator deployment by its name and creator\'s Farcaster ID. Requires API key authentication.
|
|
195
|
+
* @summary Get deployment info
|
|
196
|
+
* @param {number} fid Farcaster ID of the user
|
|
197
|
+
* @param {string} name Kubernetes deployment name
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
201
|
+
*
|
|
202
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment)
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
getDeployment: async (fid, name, options = {}) => {
|
|
206
|
+
// verify required parameter 'fid' is not null or undefined
|
|
207
|
+
(0, common_1.assertParamExists)('getDeployment', 'fid', fid);
|
|
208
|
+
// verify required parameter 'name' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('getDeployment', 'name', name);
|
|
210
|
+
const localVarPath = `/v2/studio/deployment/by-name-and-fid`;
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
218
|
+
const localVarHeaderParameter = {};
|
|
219
|
+
const localVarQueryParameter = {};
|
|
220
|
+
// authentication ApiKeyAuth required
|
|
221
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
222
|
+
if (fid !== undefined) {
|
|
223
|
+
localVarQueryParameter['fid'] = fid;
|
|
224
|
+
}
|
|
225
|
+
if (name !== undefined) {
|
|
226
|
+
localVarQueryParameter['name'] = name;
|
|
227
|
+
}
|
|
228
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
231
|
+
return {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Retrieves the contents of a specific file from the generated app. Requires Studio admin authentication.
|
|
238
|
+
* @summary Get deployment file contents
|
|
239
|
+
* @param {number} fid Farcaster ID of the user
|
|
240
|
+
* @param {string} name Kubernetes deployment name
|
|
241
|
+
* @param {string} filePath File path relative to gen/
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
* @returns {Promise<GetDeploymentFile200Response>} A promise that resolves to a `GetDeploymentFile200Response` object
|
|
245
|
+
*
|
|
246
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-file)
|
|
247
|
+
*
|
|
248
|
+
*/
|
|
249
|
+
getDeploymentFile: async (fid, name, filePath, options = {}) => {
|
|
250
|
+
// verify required parameter 'fid' is not null or undefined
|
|
251
|
+
(0, common_1.assertParamExists)('getDeploymentFile', 'fid', fid);
|
|
252
|
+
// verify required parameter 'name' is not null or undefined
|
|
253
|
+
(0, common_1.assertParamExists)('getDeploymentFile', 'name', name);
|
|
254
|
+
// verify required parameter 'filePath' is not null or undefined
|
|
255
|
+
(0, common_1.assertParamExists)('getDeploymentFile', 'filePath', filePath);
|
|
256
|
+
const localVarPath = `/v2/studio/deployment/file`;
|
|
257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
259
|
+
let baseOptions;
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
}
|
|
263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
264
|
+
const localVarHeaderParameter = {};
|
|
265
|
+
const localVarQueryParameter = {};
|
|
266
|
+
// authentication ApiKeyAuth required
|
|
267
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
268
|
+
if (fid !== undefined) {
|
|
269
|
+
localVarQueryParameter['fid'] = fid;
|
|
270
|
+
}
|
|
271
|
+
if (name !== undefined) {
|
|
272
|
+
localVarQueryParameter['name'] = name;
|
|
273
|
+
}
|
|
274
|
+
if (filePath !== undefined) {
|
|
275
|
+
localVarQueryParameter['file_path'] = filePath;
|
|
276
|
+
}
|
|
277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
+
return {
|
|
281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
};
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* Retrieves the server.log file from a miniapp-generator deployment. Requires Studio admin authentication.
|
|
287
|
+
* @summary Get deployment logs
|
|
288
|
+
* @param {number} fid Farcaster ID of the user
|
|
289
|
+
* @param {string} name Kubernetes deployment name
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @returns {Promise<GetDeploymentLogs200Response>} A promise that resolves to a `GetDeploymentLogs200Response` object
|
|
293
|
+
*
|
|
294
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-logs)
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
getDeploymentLogs: async (fid, name, options = {}) => {
|
|
298
|
+
// verify required parameter 'fid' is not null or undefined
|
|
299
|
+
(0, common_1.assertParamExists)('getDeploymentLogs', 'fid', fid);
|
|
300
|
+
// verify required parameter 'name' is not null or undefined
|
|
301
|
+
(0, common_1.assertParamExists)('getDeploymentLogs', 'name', name);
|
|
302
|
+
const localVarPath = `/v2/studio/deployment/logs`;
|
|
303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
311
|
+
const localVarQueryParameter = {};
|
|
312
|
+
// authentication ApiKeyAuth required
|
|
313
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
314
|
+
if (fid !== undefined) {
|
|
315
|
+
localVarQueryParameter['fid'] = fid;
|
|
316
|
+
}
|
|
317
|
+
if (name !== undefined) {
|
|
318
|
+
localVarQueryParameter['name'] = name;
|
|
319
|
+
}
|
|
320
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
321
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
322
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
323
|
+
return {
|
|
324
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
325
|
+
options: localVarRequestOptions,
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
* Lists all conversations for a specific deployment. Requires API key authentication.
|
|
330
|
+
* @summary List conversations for a deployment
|
|
331
|
+
* @param {number} [fid] Farcaster ID of the user. Required for non-admin users. Studio admins can omit to query all conversations.
|
|
332
|
+
* @param {string} [name] Kubernetes deployment name. If provided, filters conversations to this deployment only.
|
|
333
|
+
* @param {boolean | null} [includeDeleted] Include deleted conversations in the response. Defaults to false.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
* @returns {Promise<ListConversations200Response>} A promise that resolves to a `ListConversations200Response` object
|
|
337
|
+
*
|
|
338
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-conversations)
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
listConversations: async (fid, name, includeDeleted, options = {}) => {
|
|
342
|
+
const localVarPath = `/v2/studio/deployment/conversations`;
|
|
343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
let baseOptions;
|
|
346
|
+
if (configuration) {
|
|
347
|
+
baseOptions = configuration.baseOptions;
|
|
348
|
+
}
|
|
349
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
350
|
+
const localVarHeaderParameter = {};
|
|
351
|
+
const localVarQueryParameter = {};
|
|
352
|
+
// authentication ApiKeyAuth required
|
|
353
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
354
|
+
if (fid !== undefined) {
|
|
355
|
+
localVarQueryParameter['fid'] = fid;
|
|
356
|
+
}
|
|
357
|
+
if (name !== undefined) {
|
|
358
|
+
localVarQueryParameter['name'] = name;
|
|
359
|
+
}
|
|
360
|
+
if (includeDeleted !== undefined) {
|
|
361
|
+
localVarQueryParameter['include_deleted'] = includeDeleted;
|
|
362
|
+
}
|
|
363
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
366
|
+
return {
|
|
367
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
368
|
+
options: localVarRequestOptions,
|
|
369
|
+
};
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Lists files in a directory of the generated app. Requires Studio admin authentication.
|
|
373
|
+
* @summary List deployment files
|
|
374
|
+
* @param {number} fid Farcaster ID of the user
|
|
375
|
+
* @param {string} name Kubernetes deployment name
|
|
376
|
+
* @param {string} [directory] Directory path relative to gen/ (defaults to root)
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
* @returns {Promise<ListDeploymentFiles200Response>} A promise that resolves to a `ListDeploymentFiles200Response` object
|
|
380
|
+
*
|
|
381
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployment-files)
|
|
382
|
+
*
|
|
383
|
+
*/
|
|
384
|
+
listDeploymentFiles: async (fid, name, directory, options = {}) => {
|
|
385
|
+
// verify required parameter 'fid' is not null or undefined
|
|
386
|
+
(0, common_1.assertParamExists)('listDeploymentFiles', 'fid', fid);
|
|
387
|
+
// verify required parameter 'name' is not null or undefined
|
|
388
|
+
(0, common_1.assertParamExists)('listDeploymentFiles', 'name', name);
|
|
389
|
+
const localVarPath = `/v2/studio/deployment/files`;
|
|
390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
391
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
392
|
+
let baseOptions;
|
|
393
|
+
if (configuration) {
|
|
394
|
+
baseOptions = configuration.baseOptions;
|
|
395
|
+
}
|
|
396
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
397
|
+
const localVarHeaderParameter = {};
|
|
398
|
+
const localVarQueryParameter = {};
|
|
399
|
+
// authentication ApiKeyAuth required
|
|
400
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
401
|
+
if (fid !== undefined) {
|
|
402
|
+
localVarQueryParameter['fid'] = fid;
|
|
403
|
+
}
|
|
404
|
+
if (name !== undefined) {
|
|
405
|
+
localVarQueryParameter['name'] = name;
|
|
406
|
+
}
|
|
407
|
+
if (directory !== undefined) {
|
|
408
|
+
localVarQueryParameter['directory'] = directory;
|
|
409
|
+
}
|
|
410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
413
|
+
return {
|
|
414
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
415
|
+
options: localVarRequestOptions,
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Lists all miniapp generator deployments for a user. Requires API key authentication.
|
|
420
|
+
* @summary List deployments
|
|
421
|
+
* @param {number} [fid] Farcaster ID of the user. Required for non-admin users. Studio admins can omit to query all deployments.
|
|
422
|
+
* @param {number} [limit] Maximum number of deployments to return. Defaults to 50, max 1000. (Default: 50, Maximum: 1000)
|
|
423
|
+
* @param {number | null} [offset] Number of deployments to skip for pagination. Defaults to 0.
|
|
424
|
+
* @param {boolean | null} [includeDeleted] Include deleted deployments in the response. Defaults to false.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @returns {Promise<Array<ListDeployments200ResponseInner>>} A promise that resolves to a `Array<ListDeployments200ResponseInner>` object
|
|
428
|
+
*
|
|
429
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployments)
|
|
430
|
+
*
|
|
431
|
+
*/
|
|
432
|
+
listDeployments: async (fid, limit, offset, includeDeleted, options = {}) => {
|
|
433
|
+
const localVarPath = `/v2/studio/deployment/`;
|
|
434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
436
|
+
let baseOptions;
|
|
437
|
+
if (configuration) {
|
|
438
|
+
baseOptions = configuration.baseOptions;
|
|
439
|
+
}
|
|
440
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
441
|
+
const localVarHeaderParameter = {};
|
|
442
|
+
const localVarQueryParameter = {};
|
|
443
|
+
// authentication ApiKeyAuth required
|
|
444
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
445
|
+
if (fid !== undefined) {
|
|
446
|
+
localVarQueryParameter['fid'] = fid;
|
|
447
|
+
}
|
|
448
|
+
if (limit !== undefined) {
|
|
449
|
+
localVarQueryParameter['limit'] = limit;
|
|
450
|
+
}
|
|
451
|
+
if (offset !== undefined) {
|
|
452
|
+
localVarQueryParameter['offset'] = offset;
|
|
453
|
+
}
|
|
454
|
+
if (includeDeleted !== undefined) {
|
|
455
|
+
localVarQueryParameter['include_deleted'] = includeDeleted;
|
|
456
|
+
}
|
|
457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
460
|
+
return {
|
|
461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
464
|
+
},
|
|
465
|
+
/**
|
|
466
|
+
* Sends a prompt to a specific miniapp generator deployment. Requires authentication via API key in the request header.
|
|
467
|
+
* @summary Prompt a deployment
|
|
468
|
+
* @param {PromptDeploymentRequest} promptDeploymentRequest
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
* @returns {Promise<PromptDeployment200Response>} A promise that resolves to a `PromptDeployment200Response` object
|
|
472
|
+
*
|
|
473
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment)
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
476
|
+
promptDeployment: async (promptDeploymentRequest, options = {}) => {
|
|
477
|
+
// verify required parameter 'promptDeploymentRequest' is not null or undefined
|
|
478
|
+
(0, common_1.assertParamExists)('promptDeployment', 'promptDeploymentRequest', promptDeploymentRequest);
|
|
479
|
+
const localVarPath = `/v2/studio/deployment/prompt`;
|
|
480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
487
|
+
const localVarHeaderParameter = {};
|
|
488
|
+
const localVarQueryParameter = {};
|
|
489
|
+
// authentication ApiKeyAuth required
|
|
490
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
491
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
494
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
495
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(promptDeploymentRequest, localVarRequestOptions, configuration);
|
|
496
|
+
return {
|
|
497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
498
|
+
options: localVarRequestOptions,
|
|
499
|
+
};
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
* Sends a prompt to a specific miniapp generator deployment and returns a streaming response using Server-Sent Events. The response is a continuous stream of Server-Sent Events, not a single JSON payload. Each event contains a JSON object with type, message, and other fields specific to the message type. Requires authentication via API key in the request header.
|
|
503
|
+
* @summary Prompt a deployment with streaming response
|
|
504
|
+
* @param {PromptDeploymentRequest} promptDeploymentRequest
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
* @returns {Promise<>} A promise that resolves to a `` object
|
|
508
|
+
*
|
|
509
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment-stream)
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
512
|
+
promptDeploymentStream: async (promptDeploymentRequest, options = {}) => {
|
|
513
|
+
// verify required parameter 'promptDeploymentRequest' is not null or undefined
|
|
514
|
+
(0, common_1.assertParamExists)('promptDeploymentStream', 'promptDeploymentRequest', promptDeploymentRequest);
|
|
515
|
+
const localVarPath = `/v2/studio/deployment/prompt/stream`;
|
|
516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
518
|
+
let baseOptions;
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
}
|
|
522
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
523
|
+
const localVarHeaderParameter = {};
|
|
524
|
+
const localVarQueryParameter = {};
|
|
525
|
+
// authentication ApiKeyAuth required
|
|
526
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
527
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
528
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
530
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
531
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(promptDeploymentRequest, localVarRequestOptions, configuration);
|
|
532
|
+
return {
|
|
533
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
534
|
+
options: localVarRequestOptions,
|
|
535
|
+
};
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* Uploads an image file to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
539
|
+
* @summary Upload image to deployment
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
543
|
+
*
|
|
544
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image)
|
|
545
|
+
*
|
|
546
|
+
*/
|
|
547
|
+
uploadImage: async (options = {}) => {
|
|
548
|
+
const localVarPath = `/v2/studio/deployment/upload-image`;
|
|
549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
550
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
551
|
+
let baseOptions;
|
|
552
|
+
if (configuration) {
|
|
553
|
+
baseOptions = configuration.baseOptions;
|
|
554
|
+
}
|
|
555
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
556
|
+
const localVarHeaderParameter = {};
|
|
557
|
+
const localVarQueryParameter = {};
|
|
558
|
+
// authentication ApiKeyAuth required
|
|
559
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
560
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
561
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
562
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
563
|
+
return {
|
|
564
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
565
|
+
options: localVarRequestOptions,
|
|
566
|
+
};
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
* Downloads an image from the provided URL and saves it to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
570
|
+
* @summary Upload image from URL to deployment
|
|
571
|
+
* @param {UploadImageUrlRequest} uploadImageUrlRequest
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
575
|
+
*
|
|
576
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image-url)
|
|
577
|
+
*
|
|
578
|
+
*/
|
|
579
|
+
uploadImageUrl: async (uploadImageUrlRequest, options = {}) => {
|
|
580
|
+
// verify required parameter 'uploadImageUrlRequest' is not null or undefined
|
|
581
|
+
(0, common_1.assertParamExists)('uploadImageUrl', 'uploadImageUrlRequest', uploadImageUrlRequest);
|
|
582
|
+
const localVarPath = `/v2/studio/deployment/upload-image-url`;
|
|
583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
584
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
585
|
+
let baseOptions;
|
|
586
|
+
if (configuration) {
|
|
587
|
+
baseOptions = configuration.baseOptions;
|
|
588
|
+
}
|
|
589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
590
|
+
const localVarHeaderParameter = {};
|
|
591
|
+
const localVarQueryParameter = {};
|
|
592
|
+
// authentication ApiKeyAuth required
|
|
593
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
594
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
598
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadImageUrlRequest, localVarRequestOptions, configuration);
|
|
599
|
+
return {
|
|
600
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
601
|
+
options: localVarRequestOptions,
|
|
602
|
+
};
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
exports.StudioApiAxiosParamCreator = StudioApiAxiosParamCreator;
|
|
607
|
+
/**
|
|
608
|
+
* StudioApi - functional programming interface
|
|
609
|
+
* @export
|
|
610
|
+
*/
|
|
611
|
+
const StudioApiFp = function (configuration) {
|
|
612
|
+
const localVarAxiosParamCreator = (0, exports.StudioApiAxiosParamCreator)(configuration);
|
|
613
|
+
return {
|
|
614
|
+
/**
|
|
615
|
+
* Associates a generated miniapp with a Farcaster account using a JFS-signed domain association. Requires API key authentication.
|
|
616
|
+
* @summary Set account association
|
|
617
|
+
* @param {AssociateDeploymentRequest} associateDeploymentRequest
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
* @returns {Promise<AssociateDeployment200Response>} A promise that resolves to a `AssociateDeployment200Response` object
|
|
621
|
+
*
|
|
622
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/associate-deployment)
|
|
623
|
+
*
|
|
624
|
+
*/
|
|
625
|
+
async associateDeployment(associateDeploymentRequest, options) {
|
|
626
|
+
var _a, _b, _c;
|
|
627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.associateDeployment(associateDeploymentRequest, options);
|
|
628
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
629
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.associateDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
630
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* Creates and deploys an instance of the miniapp generator for a user. Requires authentication via API key in the request header.
|
|
634
|
+
* @summary Create a miniapp generator deployment
|
|
635
|
+
* @param {CreateDeploymentRequest} createDeploymentRequest
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
639
|
+
*
|
|
640
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/create-deployment)
|
|
641
|
+
*
|
|
642
|
+
*/
|
|
643
|
+
async createDeployment(createDeploymentRequest, options) {
|
|
644
|
+
var _a, _b, _c;
|
|
645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeployment(createDeploymentRequest, options);
|
|
646
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
647
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.createDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
648
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
649
|
+
},
|
|
650
|
+
/**
|
|
651
|
+
* Deletes a specific miniapp generator deployment or all deployments for a FID. If name is provided, deletes single deployment. If only FID is provided, deletes all deployments for that FID. Requires API key authentication.
|
|
652
|
+
* @summary Delete deployment(s)
|
|
653
|
+
* @param {DeleteDeploymentRequest} deleteDeploymentRequest
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @returns {Promise<DeleteDeployment200Response>} A promise that resolves to a `DeleteDeployment200Response` object
|
|
657
|
+
*
|
|
658
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/delete-deployment)
|
|
659
|
+
*
|
|
660
|
+
*/
|
|
661
|
+
async deleteDeployment(deleteDeploymentRequest, options) {
|
|
662
|
+
var _a, _b, _c;
|
|
663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeployment(deleteDeploymentRequest, options);
|
|
664
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
665
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.deleteDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
666
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
* Retrieves all messages in a specific conversation. Requires API key authentication.
|
|
670
|
+
* @summary Get messages in a conversation
|
|
671
|
+
* @param {number} fid Farcaster ID of the user
|
|
672
|
+
* @param {string} name Kubernetes deployment name
|
|
673
|
+
* @param {string} conversationId Conversation ID
|
|
674
|
+
* @param {boolean | null} [includeDeleted] Include deleted messages in the response. Defaults to false.
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
* @returns {Promise<GetConversationMessages200Response>} A promise that resolves to a `GetConversationMessages200Response` object
|
|
678
|
+
*
|
|
679
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-conversation-messages)
|
|
680
|
+
*
|
|
681
|
+
*/
|
|
682
|
+
async getConversationMessages(fid, name, conversationId, includeDeleted, options) {
|
|
683
|
+
var _a, _b, _c;
|
|
684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConversationMessages(fid, name, conversationId, includeDeleted, options);
|
|
685
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
686
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.getConversationMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
687
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
688
|
+
},
|
|
689
|
+
/**
|
|
690
|
+
* Fetches info about a miniapp generator deployment by its name and creator\'s Farcaster ID. Requires API key authentication.
|
|
691
|
+
* @summary Get deployment info
|
|
692
|
+
* @param {number} fid Farcaster ID of the user
|
|
693
|
+
* @param {string} name Kubernetes deployment name
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
697
|
+
*
|
|
698
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment)
|
|
699
|
+
*
|
|
700
|
+
*/
|
|
701
|
+
async getDeployment(fid, name, options) {
|
|
702
|
+
var _a, _b, _c;
|
|
703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployment(fid, name, options);
|
|
704
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
705
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.getDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
706
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
707
|
+
},
|
|
708
|
+
/**
|
|
709
|
+
* Retrieves the contents of a specific file from the generated app. Requires Studio admin authentication.
|
|
710
|
+
* @summary Get deployment file contents
|
|
711
|
+
* @param {number} fid Farcaster ID of the user
|
|
712
|
+
* @param {string} name Kubernetes deployment name
|
|
713
|
+
* @param {string} filePath File path relative to gen/
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
* @returns {Promise<GetDeploymentFile200Response>} A promise that resolves to a `GetDeploymentFile200Response` object
|
|
717
|
+
*
|
|
718
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-file)
|
|
719
|
+
*
|
|
720
|
+
*/
|
|
721
|
+
async getDeploymentFile(fid, name, filePath, options) {
|
|
722
|
+
var _a, _b, _c;
|
|
723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentFile(fid, name, filePath, options);
|
|
724
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
725
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.getDeploymentFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
726
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
* Retrieves the server.log file from a miniapp-generator deployment. Requires Studio admin authentication.
|
|
730
|
+
* @summary Get deployment logs
|
|
731
|
+
* @param {number} fid Farcaster ID of the user
|
|
732
|
+
* @param {string} name Kubernetes deployment name
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @returns {Promise<GetDeploymentLogs200Response>} A promise that resolves to a `GetDeploymentLogs200Response` object
|
|
736
|
+
*
|
|
737
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-logs)
|
|
738
|
+
*
|
|
739
|
+
*/
|
|
740
|
+
async getDeploymentLogs(fid, name, options) {
|
|
741
|
+
var _a, _b, _c;
|
|
742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentLogs(fid, name, options);
|
|
743
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
744
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.getDeploymentLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
745
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
|
+
},
|
|
747
|
+
/**
|
|
748
|
+
* Lists all conversations for a specific deployment. Requires API key authentication.
|
|
749
|
+
* @summary List conversations for a deployment
|
|
750
|
+
* @param {number} [fid] Farcaster ID of the user. Required for non-admin users. Studio admins can omit to query all conversations.
|
|
751
|
+
* @param {string} [name] Kubernetes deployment name. If provided, filters conversations to this deployment only.
|
|
752
|
+
* @param {boolean | null} [includeDeleted] Include deleted conversations in the response. Defaults to false.
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
* @returns {Promise<ListConversations200Response>} A promise that resolves to a `ListConversations200Response` object
|
|
756
|
+
*
|
|
757
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-conversations)
|
|
758
|
+
*
|
|
759
|
+
*/
|
|
760
|
+
async listConversations(fid, name, includeDeleted, options) {
|
|
761
|
+
var _a, _b, _c;
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listConversations(fid, name, includeDeleted, options);
|
|
763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
764
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.listConversations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
765
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
* Lists files in a directory of the generated app. Requires Studio admin authentication.
|
|
769
|
+
* @summary List deployment files
|
|
770
|
+
* @param {number} fid Farcaster ID of the user
|
|
771
|
+
* @param {string} name Kubernetes deployment name
|
|
772
|
+
* @param {string} [directory] Directory path relative to gen/ (defaults to root)
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
* @returns {Promise<ListDeploymentFiles200Response>} A promise that resolves to a `ListDeploymentFiles200Response` object
|
|
776
|
+
*
|
|
777
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployment-files)
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
async listDeploymentFiles(fid, name, directory, options) {
|
|
781
|
+
var _a, _b, _c;
|
|
782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDeploymentFiles(fid, name, directory, options);
|
|
783
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
784
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.listDeploymentFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
785
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
* Lists all miniapp generator deployments for a user. Requires API key authentication.
|
|
789
|
+
* @summary List deployments
|
|
790
|
+
* @param {number} [fid] Farcaster ID of the user. Required for non-admin users. Studio admins can omit to query all deployments.
|
|
791
|
+
* @param {number} [limit] Maximum number of deployments to return. Defaults to 50, max 1000. (Default: 50, Maximum: 1000)
|
|
792
|
+
* @param {number | null} [offset] Number of deployments to skip for pagination. Defaults to 0.
|
|
793
|
+
* @param {boolean | null} [includeDeleted] Include deleted deployments in the response. Defaults to false.
|
|
794
|
+
* @param {*} [options] Override http request option.
|
|
795
|
+
* @throws {RequiredError}
|
|
796
|
+
* @returns {Promise<Array<ListDeployments200ResponseInner>>} A promise that resolves to a `Array<ListDeployments200ResponseInner>` object
|
|
797
|
+
*
|
|
798
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployments)
|
|
799
|
+
*
|
|
800
|
+
*/
|
|
801
|
+
async listDeployments(fid, limit, offset, includeDeleted, options) {
|
|
802
|
+
var _a, _b, _c;
|
|
803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDeployments(fid, limit, offset, includeDeleted, options);
|
|
804
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
805
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.listDeployments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
806
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
* Sends a prompt to a specific miniapp generator deployment. Requires authentication via API key in the request header.
|
|
810
|
+
* @summary Prompt a deployment
|
|
811
|
+
* @param {PromptDeploymentRequest} promptDeploymentRequest
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
* @returns {Promise<PromptDeployment200Response>} A promise that resolves to a `PromptDeployment200Response` object
|
|
815
|
+
*
|
|
816
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment)
|
|
817
|
+
*
|
|
818
|
+
*/
|
|
819
|
+
async promptDeployment(promptDeploymentRequest, options) {
|
|
820
|
+
var _a, _b, _c;
|
|
821
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promptDeployment(promptDeploymentRequest, options);
|
|
822
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
823
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.promptDeployment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
824
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
* Sends a prompt to a specific miniapp generator deployment and returns a streaming response using Server-Sent Events. The response is a continuous stream of Server-Sent Events, not a single JSON payload. Each event contains a JSON object with type, message, and other fields specific to the message type. Requires authentication via API key in the request header.
|
|
828
|
+
* @summary Prompt a deployment with streaming response
|
|
829
|
+
* @param {PromptDeploymentRequest} promptDeploymentRequest
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
* @returns {Promise<>} A promise that resolves to a `` object
|
|
833
|
+
*
|
|
834
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment-stream)
|
|
835
|
+
*
|
|
836
|
+
*/
|
|
837
|
+
async promptDeploymentStream(promptDeploymentRequest, options) {
|
|
838
|
+
var _a, _b, _c;
|
|
839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promptDeploymentStream(promptDeploymentRequest, options);
|
|
840
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
841
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.promptDeploymentStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
842
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
843
|
+
},
|
|
844
|
+
/**
|
|
845
|
+
* Uploads an image file to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
846
|
+
* @summary Upload image to deployment
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
850
|
+
*
|
|
851
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image)
|
|
852
|
+
*
|
|
853
|
+
*/
|
|
854
|
+
async uploadImage(options) {
|
|
855
|
+
var _a, _b, _c;
|
|
856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadImage(options);
|
|
857
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
858
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.uploadImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
859
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
* Downloads an image from the provided URL and saves it to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
863
|
+
* @summary Upload image from URL to deployment
|
|
864
|
+
* @param {UploadImageUrlRequest} uploadImageUrlRequest
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
868
|
+
*
|
|
869
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image-url)
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
872
|
+
async uploadImageUrl(uploadImageUrlRequest, options) {
|
|
873
|
+
var _a, _b, _c;
|
|
874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadImageUrl(uploadImageUrlRequest, options);
|
|
875
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
876
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StudioApi.uploadImageUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
877
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
878
|
+
},
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
exports.StudioApiFp = StudioApiFp;
|
|
882
|
+
/**
|
|
883
|
+
* StudioApi - factory interface
|
|
884
|
+
* @export
|
|
885
|
+
*/
|
|
886
|
+
const StudioApiFactory = function (configuration, basePath, axios) {
|
|
887
|
+
const localVarFp = (0, exports.StudioApiFp)(configuration);
|
|
888
|
+
return {
|
|
889
|
+
/**
|
|
890
|
+
* Associates a generated miniapp with a Farcaster account using a JFS-signed domain association. Requires API key authentication.
|
|
891
|
+
* @summary Set account association
|
|
892
|
+
* @param {StudioApiAssociateDeploymentRequest} requestParameters Request parameters.
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
* @returns {Promise<AssociateDeployment200Response>} A promise that resolves to a `AssociateDeployment200Response` object
|
|
896
|
+
*
|
|
897
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/associate-deployment)
|
|
898
|
+
*
|
|
899
|
+
*/
|
|
900
|
+
associateDeployment(requestParameters, options) {
|
|
901
|
+
return localVarFp.associateDeployment(requestParameters.associateDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
902
|
+
},
|
|
903
|
+
/**
|
|
904
|
+
* Creates and deploys an instance of the miniapp generator for a user. Requires authentication via API key in the request header.
|
|
905
|
+
* @summary Create a miniapp generator deployment
|
|
906
|
+
* @param {StudioApiCreateDeploymentRequest} requestParameters Request parameters.
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
910
|
+
*
|
|
911
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/create-deployment)
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
createDeployment(requestParameters, options) {
|
|
915
|
+
return localVarFp.createDeployment(requestParameters.createDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
916
|
+
},
|
|
917
|
+
/**
|
|
918
|
+
* Deletes a specific miniapp generator deployment or all deployments for a FID. If name is provided, deletes single deployment. If only FID is provided, deletes all deployments for that FID. Requires API key authentication.
|
|
919
|
+
* @summary Delete deployment(s)
|
|
920
|
+
* @param {StudioApiDeleteDeploymentRequest} requestParameters Request parameters.
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
* @returns {Promise<DeleteDeployment200Response>} A promise that resolves to a `DeleteDeployment200Response` object
|
|
924
|
+
*
|
|
925
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/delete-deployment)
|
|
926
|
+
*
|
|
927
|
+
*/
|
|
928
|
+
deleteDeployment(requestParameters, options) {
|
|
929
|
+
return localVarFp.deleteDeployment(requestParameters.deleteDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
930
|
+
},
|
|
931
|
+
/**
|
|
932
|
+
* Retrieves all messages in a specific conversation. Requires API key authentication.
|
|
933
|
+
* @summary Get messages in a conversation
|
|
934
|
+
* @param {StudioApiGetConversationMessagesRequest} requestParameters Request parameters.
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
* @returns {Promise<GetConversationMessages200Response>} A promise that resolves to a `GetConversationMessages200Response` object
|
|
938
|
+
*
|
|
939
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-conversation-messages)
|
|
940
|
+
*
|
|
941
|
+
*/
|
|
942
|
+
getConversationMessages(requestParameters, options) {
|
|
943
|
+
return localVarFp.getConversationMessages(requestParameters.fid, requestParameters.name, requestParameters.conversationId, requestParameters.includeDeleted, options).then((request) => request(axios, basePath));
|
|
944
|
+
},
|
|
945
|
+
/**
|
|
946
|
+
* Fetches info about a miniapp generator deployment by its name and creator\'s Farcaster ID. Requires API key authentication.
|
|
947
|
+
* @summary Get deployment info
|
|
948
|
+
* @param {StudioApiGetDeploymentRequest} requestParameters Request parameters.
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
952
|
+
*
|
|
953
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment)
|
|
954
|
+
*
|
|
955
|
+
*/
|
|
956
|
+
getDeployment(requestParameters, options) {
|
|
957
|
+
return localVarFp.getDeployment(requestParameters.fid, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
958
|
+
},
|
|
959
|
+
/**
|
|
960
|
+
* Retrieves the contents of a specific file from the generated app. Requires Studio admin authentication.
|
|
961
|
+
* @summary Get deployment file contents
|
|
962
|
+
* @param {StudioApiGetDeploymentFileRequest} requestParameters Request parameters.
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
* @returns {Promise<GetDeploymentFile200Response>} A promise that resolves to a `GetDeploymentFile200Response` object
|
|
966
|
+
*
|
|
967
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-file)
|
|
968
|
+
*
|
|
969
|
+
*/
|
|
970
|
+
getDeploymentFile(requestParameters, options) {
|
|
971
|
+
return localVarFp.getDeploymentFile(requestParameters.fid, requestParameters.name, requestParameters.filePath, options).then((request) => request(axios, basePath));
|
|
972
|
+
},
|
|
973
|
+
/**
|
|
974
|
+
* Retrieves the server.log file from a miniapp-generator deployment. Requires Studio admin authentication.
|
|
975
|
+
* @summary Get deployment logs
|
|
976
|
+
* @param {StudioApiGetDeploymentLogsRequest} requestParameters Request parameters.
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
* @returns {Promise<GetDeploymentLogs200Response>} A promise that resolves to a `GetDeploymentLogs200Response` object
|
|
980
|
+
*
|
|
981
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-logs)
|
|
982
|
+
*
|
|
983
|
+
*/
|
|
984
|
+
getDeploymentLogs(requestParameters, options) {
|
|
985
|
+
return localVarFp.getDeploymentLogs(requestParameters.fid, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* Lists all conversations for a specific deployment. Requires API key authentication.
|
|
989
|
+
* @summary List conversations for a deployment
|
|
990
|
+
* @param {StudioApiListConversationsRequest} requestParameters Request parameters.
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
* @returns {Promise<ListConversations200Response>} A promise that resolves to a `ListConversations200Response` object
|
|
994
|
+
*
|
|
995
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-conversations)
|
|
996
|
+
*
|
|
997
|
+
*/
|
|
998
|
+
listConversations(requestParameters = {}, options) {
|
|
999
|
+
return localVarFp.listConversations(requestParameters.fid, requestParameters.name, requestParameters.includeDeleted, options).then((request) => request(axios, basePath));
|
|
1000
|
+
},
|
|
1001
|
+
/**
|
|
1002
|
+
* Lists files in a directory of the generated app. Requires Studio admin authentication.
|
|
1003
|
+
* @summary List deployment files
|
|
1004
|
+
* @param {StudioApiListDeploymentFilesRequest} requestParameters Request parameters.
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
* @returns {Promise<ListDeploymentFiles200Response>} A promise that resolves to a `ListDeploymentFiles200Response` object
|
|
1008
|
+
*
|
|
1009
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployment-files)
|
|
1010
|
+
*
|
|
1011
|
+
*/
|
|
1012
|
+
listDeploymentFiles(requestParameters, options) {
|
|
1013
|
+
return localVarFp.listDeploymentFiles(requestParameters.fid, requestParameters.name, requestParameters.directory, options).then((request) => request(axios, basePath));
|
|
1014
|
+
},
|
|
1015
|
+
/**
|
|
1016
|
+
* Lists all miniapp generator deployments for a user. Requires API key authentication.
|
|
1017
|
+
* @summary List deployments
|
|
1018
|
+
* @param {StudioApiListDeploymentsRequest} requestParameters Request parameters.
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
* @returns {Promise<Array<ListDeployments200ResponseInner>>} A promise that resolves to a `Array<ListDeployments200ResponseInner>` object
|
|
1022
|
+
*
|
|
1023
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployments)
|
|
1024
|
+
*
|
|
1025
|
+
*/
|
|
1026
|
+
listDeployments(requestParameters = {}, options) {
|
|
1027
|
+
return localVarFp.listDeployments(requestParameters.fid, requestParameters.limit, requestParameters.offset, requestParameters.includeDeleted, options).then((request) => request(axios, basePath));
|
|
1028
|
+
},
|
|
1029
|
+
/**
|
|
1030
|
+
* Sends a prompt to a specific miniapp generator deployment. Requires authentication via API key in the request header.
|
|
1031
|
+
* @summary Prompt a deployment
|
|
1032
|
+
* @param {StudioApiPromptDeploymentRequest} requestParameters Request parameters.
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
* @returns {Promise<PromptDeployment200Response>} A promise that resolves to a `PromptDeployment200Response` object
|
|
1036
|
+
*
|
|
1037
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment)
|
|
1038
|
+
*
|
|
1039
|
+
*/
|
|
1040
|
+
promptDeployment(requestParameters, options) {
|
|
1041
|
+
return localVarFp.promptDeployment(requestParameters.promptDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
1042
|
+
},
|
|
1043
|
+
/**
|
|
1044
|
+
* Sends a prompt to a specific miniapp generator deployment and returns a streaming response using Server-Sent Events. The response is a continuous stream of Server-Sent Events, not a single JSON payload. Each event contains a JSON object with type, message, and other fields specific to the message type. Requires authentication via API key in the request header.
|
|
1045
|
+
* @summary Prompt a deployment with streaming response
|
|
1046
|
+
* @param {StudioApiPromptDeploymentStreamRequest} requestParameters Request parameters.
|
|
1047
|
+
* @param {*} [options] Override http request option.
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
* @returns {Promise<>} A promise that resolves to a `` object
|
|
1050
|
+
*
|
|
1051
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment-stream)
|
|
1052
|
+
*
|
|
1053
|
+
*/
|
|
1054
|
+
promptDeploymentStream(requestParameters, options) {
|
|
1055
|
+
return localVarFp.promptDeploymentStream(requestParameters.promptDeploymentRequest, options).then((request) => request(axios, basePath));
|
|
1056
|
+
},
|
|
1057
|
+
/**
|
|
1058
|
+
* Uploads an image file to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
1059
|
+
* @summary Upload image to deployment
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
1063
|
+
*
|
|
1064
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image)
|
|
1065
|
+
*
|
|
1066
|
+
*/
|
|
1067
|
+
uploadImage(options) {
|
|
1068
|
+
return localVarFp.uploadImage(options).then((request) => request(axios, basePath));
|
|
1069
|
+
},
|
|
1070
|
+
/**
|
|
1071
|
+
* Downloads an image from the provided URL and saves it to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
1072
|
+
* @summary Upload image from URL to deployment
|
|
1073
|
+
* @param {StudioApiUploadImageUrlRequest} requestParameters Request parameters.
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
1077
|
+
*
|
|
1078
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image-url)
|
|
1079
|
+
*
|
|
1080
|
+
*/
|
|
1081
|
+
uploadImageUrl(requestParameters, options) {
|
|
1082
|
+
return localVarFp.uploadImageUrl(requestParameters.uploadImageUrlRequest, options).then((request) => request(axios, basePath));
|
|
1083
|
+
},
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
exports.StudioApiFactory = StudioApiFactory;
|
|
1087
|
+
/**
|
|
1088
|
+
* StudioApi - object-oriented interface
|
|
1089
|
+
* @export
|
|
1090
|
+
* @class StudioApi
|
|
1091
|
+
* @extends {BaseAPI}
|
|
1092
|
+
*/
|
|
1093
|
+
class StudioApi extends base_1.BaseAPI {
|
|
1094
|
+
/**
|
|
1095
|
+
* Associates a generated miniapp with a Farcaster account using a JFS-signed domain association. Requires API key authentication.
|
|
1096
|
+
* @summary Set account association
|
|
1097
|
+
* @param {StudioApiAssociateDeploymentRequest} requestParameters Request parameters.
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof StudioApi
|
|
1101
|
+
* @returns {Promise<AssociateDeployment200Response>} A promise that resolves to a `AssociateDeployment200Response` object
|
|
1102
|
+
*
|
|
1103
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/associate-deployment)
|
|
1104
|
+
*
|
|
1105
|
+
*/
|
|
1106
|
+
associateDeployment(requestParameters, options) {
|
|
1107
|
+
return (0, exports.StudioApiFp)(this.configuration).associateDeployment(requestParameters.associateDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Creates and deploys an instance of the miniapp generator for a user. Requires authentication via API key in the request header.
|
|
1111
|
+
* @summary Create a miniapp generator deployment
|
|
1112
|
+
* @param {StudioApiCreateDeploymentRequest} requestParameters Request parameters.
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
* @memberof StudioApi
|
|
1116
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
1117
|
+
*
|
|
1118
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/create-deployment)
|
|
1119
|
+
*
|
|
1120
|
+
*/
|
|
1121
|
+
createDeployment(requestParameters, options) {
|
|
1122
|
+
return (0, exports.StudioApiFp)(this.configuration).createDeployment(requestParameters.createDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Deletes a specific miniapp generator deployment or all deployments for a FID. If name is provided, deletes single deployment. If only FID is provided, deletes all deployments for that FID. Requires API key authentication.
|
|
1126
|
+
* @summary Delete deployment(s)
|
|
1127
|
+
* @param {StudioApiDeleteDeploymentRequest} requestParameters Request parameters.
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
* @memberof StudioApi
|
|
1131
|
+
* @returns {Promise<DeleteDeployment200Response>} A promise that resolves to a `DeleteDeployment200Response` object
|
|
1132
|
+
*
|
|
1133
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/delete-deployment)
|
|
1134
|
+
*
|
|
1135
|
+
*/
|
|
1136
|
+
deleteDeployment(requestParameters, options) {
|
|
1137
|
+
return (0, exports.StudioApiFp)(this.configuration).deleteDeployment(requestParameters.deleteDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Retrieves all messages in a specific conversation. Requires API key authentication.
|
|
1141
|
+
* @summary Get messages in a conversation
|
|
1142
|
+
* @param {StudioApiGetConversationMessagesRequest} requestParameters Request parameters.
|
|
1143
|
+
* @param {*} [options] Override http request option.
|
|
1144
|
+
* @throws {RequiredError}
|
|
1145
|
+
* @memberof StudioApi
|
|
1146
|
+
* @returns {Promise<GetConversationMessages200Response>} A promise that resolves to a `GetConversationMessages200Response` object
|
|
1147
|
+
*
|
|
1148
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-conversation-messages)
|
|
1149
|
+
*
|
|
1150
|
+
*/
|
|
1151
|
+
getConversationMessages(requestParameters, options) {
|
|
1152
|
+
return (0, exports.StudioApiFp)(this.configuration).getConversationMessages(requestParameters.fid, requestParameters.name, requestParameters.conversationId, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Fetches info about a miniapp generator deployment by its name and creator\'s Farcaster ID. Requires API key authentication.
|
|
1156
|
+
* @summary Get deployment info
|
|
1157
|
+
* @param {StudioApiGetDeploymentRequest} requestParameters Request parameters.
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
* @memberof StudioApi
|
|
1161
|
+
* @returns {Promise<ListDeployments200ResponseInner>} A promise that resolves to a `ListDeployments200ResponseInner` object
|
|
1162
|
+
*
|
|
1163
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment)
|
|
1164
|
+
*
|
|
1165
|
+
*/
|
|
1166
|
+
getDeployment(requestParameters, options) {
|
|
1167
|
+
return (0, exports.StudioApiFp)(this.configuration).getDeployment(requestParameters.fid, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Retrieves the contents of a specific file from the generated app. Requires Studio admin authentication.
|
|
1171
|
+
* @summary Get deployment file contents
|
|
1172
|
+
* @param {StudioApiGetDeploymentFileRequest} requestParameters Request parameters.
|
|
1173
|
+
* @param {*} [options] Override http request option.
|
|
1174
|
+
* @throws {RequiredError}
|
|
1175
|
+
* @memberof StudioApi
|
|
1176
|
+
* @returns {Promise<GetDeploymentFile200Response>} A promise that resolves to a `GetDeploymentFile200Response` object
|
|
1177
|
+
*
|
|
1178
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-file)
|
|
1179
|
+
*
|
|
1180
|
+
*/
|
|
1181
|
+
getDeploymentFile(requestParameters, options) {
|
|
1182
|
+
return (0, exports.StudioApiFp)(this.configuration).getDeploymentFile(requestParameters.fid, requestParameters.name, requestParameters.filePath, options).then((request) => request(this.axios, this.basePath));
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Retrieves the server.log file from a miniapp-generator deployment. Requires Studio admin authentication.
|
|
1186
|
+
* @summary Get deployment logs
|
|
1187
|
+
* @param {StudioApiGetDeploymentLogsRequest} requestParameters Request parameters.
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
* @memberof StudioApi
|
|
1191
|
+
* @returns {Promise<GetDeploymentLogs200Response>} A promise that resolves to a `GetDeploymentLogs200Response` object
|
|
1192
|
+
*
|
|
1193
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/get-deployment-logs)
|
|
1194
|
+
*
|
|
1195
|
+
*/
|
|
1196
|
+
getDeploymentLogs(requestParameters, options) {
|
|
1197
|
+
return (0, exports.StudioApiFp)(this.configuration).getDeploymentLogs(requestParameters.fid, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Lists all conversations for a specific deployment. Requires API key authentication.
|
|
1201
|
+
* @summary List conversations for a deployment
|
|
1202
|
+
* @param {StudioApiListConversationsRequest} requestParameters Request parameters.
|
|
1203
|
+
* @param {*} [options] Override http request option.
|
|
1204
|
+
* @throws {RequiredError}
|
|
1205
|
+
* @memberof StudioApi
|
|
1206
|
+
* @returns {Promise<ListConversations200Response>} A promise that resolves to a `ListConversations200Response` object
|
|
1207
|
+
*
|
|
1208
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-conversations)
|
|
1209
|
+
*
|
|
1210
|
+
*/
|
|
1211
|
+
listConversations(requestParameters = {}, options) {
|
|
1212
|
+
return (0, exports.StudioApiFp)(this.configuration).listConversations(requestParameters.fid, requestParameters.name, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Lists files in a directory of the generated app. Requires Studio admin authentication.
|
|
1216
|
+
* @summary List deployment files
|
|
1217
|
+
* @param {StudioApiListDeploymentFilesRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof StudioApi
|
|
1221
|
+
* @returns {Promise<ListDeploymentFiles200Response>} A promise that resolves to a `ListDeploymentFiles200Response` object
|
|
1222
|
+
*
|
|
1223
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployment-files)
|
|
1224
|
+
*
|
|
1225
|
+
*/
|
|
1226
|
+
listDeploymentFiles(requestParameters, options) {
|
|
1227
|
+
return (0, exports.StudioApiFp)(this.configuration).listDeploymentFiles(requestParameters.fid, requestParameters.name, requestParameters.directory, options).then((request) => request(this.axios, this.basePath));
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Lists all miniapp generator deployments for a user. Requires API key authentication.
|
|
1231
|
+
* @summary List deployments
|
|
1232
|
+
* @param {StudioApiListDeploymentsRequest} requestParameters Request parameters.
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
* @memberof StudioApi
|
|
1236
|
+
* @returns {Promise<Array<ListDeployments200ResponseInner>>} A promise that resolves to a `Array<ListDeployments200ResponseInner>` object
|
|
1237
|
+
*
|
|
1238
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/list-deployments)
|
|
1239
|
+
*
|
|
1240
|
+
*/
|
|
1241
|
+
listDeployments(requestParameters = {}, options) {
|
|
1242
|
+
return (0, exports.StudioApiFp)(this.configuration).listDeployments(requestParameters.fid, requestParameters.limit, requestParameters.offset, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Sends a prompt to a specific miniapp generator deployment. Requires authentication via API key in the request header.
|
|
1246
|
+
* @summary Prompt a deployment
|
|
1247
|
+
* @param {StudioApiPromptDeploymentRequest} requestParameters Request parameters.
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
* @memberof StudioApi
|
|
1251
|
+
* @returns {Promise<PromptDeployment200Response>} A promise that resolves to a `PromptDeployment200Response` object
|
|
1252
|
+
*
|
|
1253
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment)
|
|
1254
|
+
*
|
|
1255
|
+
*/
|
|
1256
|
+
promptDeployment(requestParameters, options) {
|
|
1257
|
+
return (0, exports.StudioApiFp)(this.configuration).promptDeployment(requestParameters.promptDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* Sends a prompt to a specific miniapp generator deployment and returns a streaming response using Server-Sent Events. The response is a continuous stream of Server-Sent Events, not a single JSON payload. Each event contains a JSON object with type, message, and other fields specific to the message type. Requires authentication via API key in the request header.
|
|
1261
|
+
* @summary Prompt a deployment with streaming response
|
|
1262
|
+
* @param {StudioApiPromptDeploymentStreamRequest} requestParameters Request parameters.
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
* @memberof StudioApi
|
|
1266
|
+
* @returns {Promise<>} A promise that resolves to a `` object
|
|
1267
|
+
*
|
|
1268
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/prompt-deployment-stream)
|
|
1269
|
+
*
|
|
1270
|
+
*/
|
|
1271
|
+
promptDeploymentStream(requestParameters, options) {
|
|
1272
|
+
return (0, exports.StudioApiFp)(this.configuration).promptDeploymentStream(requestParameters.promptDeploymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Uploads an image file to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
1276
|
+
* @summary Upload image to deployment
|
|
1277
|
+
* @param {*} [options] Override http request option.
|
|
1278
|
+
* @throws {RequiredError}
|
|
1279
|
+
* @memberof StudioApi
|
|
1280
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
1281
|
+
*
|
|
1282
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image)
|
|
1283
|
+
*
|
|
1284
|
+
*/
|
|
1285
|
+
uploadImage(options) {
|
|
1286
|
+
return (0, exports.StudioApiFp)(this.configuration).uploadImage(options).then((request) => request(this.axios, this.basePath));
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Downloads an image from the provided URL and saves it to the generated miniapp public folder. The image will be accessible as a static asset on the deployed miniapp. Requires API key authentication.
|
|
1290
|
+
* @summary Upload image from URL to deployment
|
|
1291
|
+
* @param {StudioApiUploadImageUrlRequest} requestParameters Request parameters.
|
|
1292
|
+
* @param {*} [options] Override http request option.
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
* @memberof StudioApi
|
|
1295
|
+
* @returns {Promise<UploadImage200Response>} A promise that resolves to a `UploadImage200Response` object
|
|
1296
|
+
*
|
|
1297
|
+
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/upload-image-url)
|
|
1298
|
+
*
|
|
1299
|
+
*/
|
|
1300
|
+
uploadImageUrl(requestParameters, options) {
|
|
1301
|
+
return (0, exports.StudioApiFp)(this.configuration).uploadImageUrl(requestParameters.uploadImageUrlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
exports.StudioApi = StudioApi;
|