@whop/sdk 0.0.30 → 0.0.31
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/CHANGELOG.md +48 -114
- package/client.d.mts +159 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +159 -9
- package/client.d.ts.map +1 -1
- package/client.js +158 -7
- package/client.js.map +1 -1
- package/client.mjs +158 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +22 -22
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/access-tokens.d.mts +3 -0
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +3 -0
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +3 -0
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +3 -0
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account-links.d.mts +3 -0
- package/resources/account-links.d.mts.map +1 -1
- package/resources/account-links.d.ts +3 -0
- package/resources/account-links.d.ts.map +1 -1
- package/resources/account-links.js +3 -0
- package/resources/account-links.js.map +1 -1
- package/resources/account-links.mjs +3 -0
- package/resources/account-links.mjs.map +1 -1
- package/resources/ai-chats.d.mts +8 -0
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +8 -0
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +3 -0
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +3 -0
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +3 -0
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +3 -0
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +3 -0
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +3 -0
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +3 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +3 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +3 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +3 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +142 -1
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +142 -1
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +57 -0
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +57 -0
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +3 -0
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +3 -0
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +3 -0
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +3 -0
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +3 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +3 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +54 -1
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +54 -1
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +3 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +3 -0
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +3 -0
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +3 -0
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +3 -0
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +3 -0
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/course-chapters.d.mts +3 -0
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +3 -0
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +3 -0
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +3 -0
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +3 -0
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +3 -0
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +3 -0
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +3 -0
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +3 -0
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +3 -0
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +3 -0
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +3 -0
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +3 -0
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +3 -0
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +3 -0
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +3 -0
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +3 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +3 -0
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +3 -0
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +3 -0
- package/resources/courses.mjs.map +1 -1
- package/resources/dispute-alerts.d.mts +3 -0
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +3 -0
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +3 -0
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +3 -0
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +3 -0
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +3 -0
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +3 -0
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +3 -0
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +3 -0
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +3 -0
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +3 -0
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +3 -0
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +3 -0
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +3 -0
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +3 -0
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +3 -0
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +3 -0
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +3 -0
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +3 -0
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +3 -0
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +3 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +3 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +3 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +3 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +3 -0
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +3 -0
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +3 -0
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +3 -0
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +3 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +3 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -0
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -0
- package/resources/files.mjs.map +1 -1
- package/resources/forum-posts.d.mts +38 -0
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +38 -0
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +3 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +3 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +20 -0
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +20 -0
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +3 -0
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +3 -0
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +141 -8
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +141 -8
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +4 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +4 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +3 -0
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +3 -0
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +3 -0
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +3 -0
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +3 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +3 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +3 -0
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs +3 -0
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +3 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +3 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +3 -0
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +3 -0
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +81 -2
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +81 -2
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +75 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +75 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +12 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +12 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +3 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +3 -0
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +3 -0
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +3 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +3 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/payment-methods.d.mts +3 -0
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +3 -0
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +3 -0
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +3 -0
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +19 -2
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +19 -2
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +3 -0
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +3 -0
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-methods.d.mts +3 -0
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +3 -0
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +3 -0
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +3 -0
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +3 -0
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +3 -0
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +3 -0
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +3 -0
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +3 -0
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +3 -0
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +3 -0
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +3 -0
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +3 -0
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +3 -0
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +3 -0
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +3 -0
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +3 -0
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +3 -0
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +3 -0
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +3 -0
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +17 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +17 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -0
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -0
- package/resources/refunds.mjs.map +1 -1
- package/resources/reviews.d.mts +3 -0
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +3 -0
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +3 -0
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +3 -0
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +3 -0
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +3 -0
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +3 -0
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +3 -0
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +55 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +55 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +3 -0
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +3 -0
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +3 -0
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +3 -0
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +3 -0
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +3 -0
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +3 -0
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +3 -0
- package/resources/support-channels.mjs.map +1 -1
- package/resources/topups.d.mts +3 -0
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +3 -0
- package/resources/topups.d.ts.map +1 -1
- package/resources/topups.js +3 -0
- package/resources/topups.js.map +1 -1
- package/resources/topups.mjs +3 -0
- package/resources/topups.mjs.map +1 -1
- package/resources/transfers.d.mts +3 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +3 -0
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +3 -0
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +3 -0
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +3 -0
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +3 -0
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +3 -0
- package/resources/verifications.js.map +1 -1
- package/resources/verifications.mjs +3 -0
- package/resources/verifications.mjs.map +1 -1
- package/resources/webhooks.d.mts +29 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +29 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +3 -0
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +3 -0
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +3 -0
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +3 -0
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +175 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/access-tokens.ts +3 -0
- package/src/resources/account-links.ts +3 -0
- package/src/resources/ai-chats.ts +9 -0
- package/src/resources/app-builds.ts +3 -0
- package/src/resources/apps.ts +3 -0
- package/src/resources/authorized-users.ts +175 -0
- package/src/resources/chat-channels.ts +3 -0
- package/src/resources/checkout-configurations.ts +3 -0
- package/src/resources/companies.ts +72 -0
- package/src/resources/company-token-transactions.ts +3 -0
- package/src/resources/course-chapters.ts +3 -0
- package/src/resources/course-lesson-interactions.ts +3 -0
- package/src/resources/course-lessons.ts +3 -0
- package/src/resources/course-students.ts +3 -0
- package/src/resources/courses.ts +3 -0
- package/src/resources/dispute-alerts.ts +3 -0
- package/src/resources/disputes.ts +3 -0
- package/src/resources/dm-channels.ts +3 -0
- package/src/resources/dm-members.ts +3 -0
- package/src/resources/entries.ts +3 -0
- package/src/resources/experiences.ts +3 -0
- package/src/resources/fee-markups.ts +3 -0
- package/src/resources/files.ts +3 -0
- package/src/resources/forum-posts.ts +44 -0
- package/src/resources/forums.ts +22 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/invoices.ts +162 -9
- package/src/resources/leads.ts +3 -0
- package/src/resources/ledger-accounts.ts +3 -0
- package/src/resources/members.ts +3 -0
- package/src/resources/memberships.ts +89 -1
- package/src/resources/messages.ts +14 -0
- package/src/resources/notifications.ts +3 -0
- package/src/resources/payment-methods.ts +3 -0
- package/src/resources/payments.ts +22 -0
- package/src/resources/payout-methods.ts +3 -0
- package/src/resources/plans.ts +3 -0
- package/src/resources/products.ts +3 -0
- package/src/resources/promo-codes.ts +3 -0
- package/src/resources/reactions.ts +3 -0
- package/src/resources/refunds.ts +21 -1
- package/src/resources/reviews.ts +3 -0
- package/src/resources/setup-intents.ts +3 -0
- package/src/resources/shared.ts +66 -11
- package/src/resources/shipments.ts +3 -0
- package/src/resources/support-channels.ts +3 -0
- package/src/resources/topups.ts +3 -0
- package/src/resources/transfers.ts +3 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/verifications.ts +3 -0
- package/src/resources/webhooks.ts +35 -0
- package/src/resources/withdrawals.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/apps.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Apps
|
|
12
|
+
*/
|
|
10
13
|
export class Apps extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Register a new app on the Whop developer platform. Apps provide custom
|
|
@@ -7,7 +7,34 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Authorized users
|
|
12
|
+
*/
|
|
10
13
|
export class AuthorizedUsers extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Add a new authorized user to a company.
|
|
16
|
+
*
|
|
17
|
+
* Required permissions:
|
|
18
|
+
*
|
|
19
|
+
* - `authorized_user:create`
|
|
20
|
+
* - `member:email:read`
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const authorizedUser = await client.authorizedUsers.create({
|
|
25
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
26
|
+
* role: 'owner',
|
|
27
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(
|
|
32
|
+
body: AuthorizedUserCreateParams,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<AuthorizedUserCreateResponse> {
|
|
35
|
+
return this._client.post('/authorized_users', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
|
|
11
38
|
/**
|
|
12
39
|
* Retrieves the details of an existing authorized user.
|
|
13
40
|
*
|
|
@@ -15,6 +42,14 @@ export class AuthorizedUsers extends APIResource {
|
|
|
15
42
|
*
|
|
16
43
|
* - `company:authorized_user:read`
|
|
17
44
|
* - `member:email:read`
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const authorizedUser =
|
|
49
|
+
* await client.authorizedUsers.retrieve(
|
|
50
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
18
53
|
*/
|
|
19
54
|
retrieve(id: string, options?: RequestOptions): APIPromise<AuthorizedUserRetrieveResponse> {
|
|
20
55
|
return this._client.get(path`/authorized_users/${id}`, options);
|
|
@@ -28,6 +63,14 @@ export class AuthorizedUsers extends APIResource {
|
|
|
28
63
|
*
|
|
29
64
|
* - `company:authorized_user:read`
|
|
30
65
|
* - `member:email:read`
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* // Automatically fetches more pages as needed.
|
|
70
|
+
* for await (const authorizedUserListResponse of client.authorizedUsers.list()) {
|
|
71
|
+
* // ...
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
31
74
|
*/
|
|
32
75
|
list(
|
|
33
76
|
query: AuthorizedUserListParams | null | undefined = {},
|
|
@@ -38,10 +81,102 @@ export class AuthorizedUsers extends APIResource {
|
|
|
38
81
|
...options,
|
|
39
82
|
});
|
|
40
83
|
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Remove an authorized user from a company.
|
|
87
|
+
*
|
|
88
|
+
* Required permissions:
|
|
89
|
+
*
|
|
90
|
+
* - `authorized_user:delete`
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const authorizedUser = await client.authorizedUsers.delete(
|
|
95
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
delete(
|
|
100
|
+
id: string,
|
|
101
|
+
params: AuthorizedUserDeleteParams | null | undefined = {},
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): APIPromise<AuthorizedUserDeleteResponse> {
|
|
104
|
+
const { company_id } = params ?? {};
|
|
105
|
+
return this._client.delete(path`/authorized_users/${id}`, { query: { company_id }, ...options });
|
|
106
|
+
}
|
|
41
107
|
}
|
|
42
108
|
|
|
43
109
|
export type AuthorizedUserListResponsesCursorPage = CursorPage<AuthorizedUserListResponse>;
|
|
44
110
|
|
|
111
|
+
/**
|
|
112
|
+
* A user who has been granted administrative access to manage a company's
|
|
113
|
+
* dashboard and settings.
|
|
114
|
+
*/
|
|
115
|
+
export interface AuthorizedUserCreateResponse {
|
|
116
|
+
/**
|
|
117
|
+
* The unique identifier for the authorized user.
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The company this authorized user has access to.
|
|
123
|
+
*/
|
|
124
|
+
company: AuthorizedUserCreateResponse.Company;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The permission role assigned to this authorized user within the company.
|
|
128
|
+
*/
|
|
129
|
+
role: Shared.AuthorizedUserRoles;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The user account linked to this authorized user record.
|
|
133
|
+
*/
|
|
134
|
+
user: AuthorizedUserCreateResponse.User;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace AuthorizedUserCreateResponse {
|
|
138
|
+
/**
|
|
139
|
+
* The company this authorized user has access to.
|
|
140
|
+
*/
|
|
141
|
+
export interface Company {
|
|
142
|
+
/**
|
|
143
|
+
* The unique identifier for the company.
|
|
144
|
+
*/
|
|
145
|
+
id: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The display name of the company shown to customers.
|
|
149
|
+
*/
|
|
150
|
+
title: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The user account linked to this authorized user record.
|
|
155
|
+
*/
|
|
156
|
+
export interface User {
|
|
157
|
+
/**
|
|
158
|
+
* The unique identifier for the user.
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
164
|
+
* Null if not authorized.
|
|
165
|
+
*/
|
|
166
|
+
email: string | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The user's display name shown on their public profile.
|
|
170
|
+
*/
|
|
171
|
+
name: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The user's unique username shown on their public profile.
|
|
175
|
+
*/
|
|
176
|
+
username: string;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
45
180
|
/**
|
|
46
181
|
* A user who has been granted administrative access to manage a company's
|
|
47
182
|
* dashboard and settings.
|
|
@@ -180,6 +315,34 @@ export namespace AuthorizedUserListResponse {
|
|
|
180
315
|
}
|
|
181
316
|
}
|
|
182
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Represents `true` or `false` values.
|
|
320
|
+
*/
|
|
321
|
+
export type AuthorizedUserDeleteResponse = boolean;
|
|
322
|
+
|
|
323
|
+
export interface AuthorizedUserCreateParams {
|
|
324
|
+
/**
|
|
325
|
+
* The ID of the company to add the authorized user to.
|
|
326
|
+
*/
|
|
327
|
+
company_id: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* The role to assign to the authorized user within the company. Supported roles:
|
|
331
|
+
* 'moderator', 'sales_manager'.
|
|
332
|
+
*/
|
|
333
|
+
role: Shared.AuthorizedUserRoles;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* The ID of the user to add as an authorized user.
|
|
337
|
+
*/
|
|
338
|
+
user_id: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Whether to send notification emails to the user on creation.
|
|
342
|
+
*/
|
|
343
|
+
send_emails?: boolean | null;
|
|
344
|
+
}
|
|
345
|
+
|
|
183
346
|
export interface AuthorizedUserListParams extends CursorPageParams {
|
|
184
347
|
/**
|
|
185
348
|
* Returns the elements in the list that come before the specified cursor.
|
|
@@ -223,11 +386,23 @@ export interface AuthorizedUserListParams extends CursorPageParams {
|
|
|
223
386
|
user_id?: string | null;
|
|
224
387
|
}
|
|
225
388
|
|
|
389
|
+
export interface AuthorizedUserDeleteParams {
|
|
390
|
+
/**
|
|
391
|
+
* The ID of the company the authorized user belongs to. Optional if the authorized
|
|
392
|
+
* user ID is provided.
|
|
393
|
+
*/
|
|
394
|
+
company_id?: string | null;
|
|
395
|
+
}
|
|
396
|
+
|
|
226
397
|
export declare namespace AuthorizedUsers {
|
|
227
398
|
export {
|
|
399
|
+
type AuthorizedUserCreateResponse as AuthorizedUserCreateResponse,
|
|
228
400
|
type AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse,
|
|
229
401
|
type AuthorizedUserListResponse as AuthorizedUserListResponse,
|
|
402
|
+
type AuthorizedUserDeleteResponse as AuthorizedUserDeleteResponse,
|
|
230
403
|
type AuthorizedUserListResponsesCursorPage as AuthorizedUserListResponsesCursorPage,
|
|
404
|
+
type AuthorizedUserCreateParams as AuthorizedUserCreateParams,
|
|
231
405
|
type AuthorizedUserListParams as AuthorizedUserListParams,
|
|
406
|
+
type AuthorizedUserDeleteParams as AuthorizedUserDeleteParams,
|
|
232
407
|
};
|
|
233
408
|
}
|
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Chat channels
|
|
12
|
+
*/
|
|
10
13
|
export class ChatChannels extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Retrieves the details of an existing chat channel.
|
|
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
8
8
|
import { RequestOptions } from '../internal/request-options';
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Checkout configurations
|
|
13
|
+
*/
|
|
11
14
|
export class CheckoutConfigurations extends APIResource {
|
|
12
15
|
/**
|
|
13
16
|
* Creates a new checkout configuration
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as CompaniesAPI from './companies';
|
|
4
5
|
import * as Shared from './shared';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
6
7
|
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
7
8
|
import { RequestOptions } from '../internal/request-options';
|
|
8
9
|
import { path } from '../internal/utils/path';
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Companies
|
|
13
|
+
*/
|
|
10
14
|
export class Companies extends APIResource {
|
|
11
15
|
/**
|
|
12
16
|
* Create a new company. Pass parent_company_id to create a connected account under
|
|
@@ -67,6 +71,20 @@ export class Companies extends APIResource {
|
|
|
67
71
|
|
|
68
72
|
export type CompanyListResponsesCursorPage = CursorPage<CompanyListResponse>;
|
|
69
73
|
|
|
74
|
+
/**
|
|
75
|
+
* The different websites you can have social links for
|
|
76
|
+
*/
|
|
77
|
+
export type SocialLinkWebsites =
|
|
78
|
+
| 'x'
|
|
79
|
+
| 'instagram'
|
|
80
|
+
| 'facebook'
|
|
81
|
+
| 'tiktok'
|
|
82
|
+
| 'youtube'
|
|
83
|
+
| 'linkedin'
|
|
84
|
+
| 'twitch'
|
|
85
|
+
| 'website'
|
|
86
|
+
| 'custom';
|
|
87
|
+
|
|
70
88
|
/**
|
|
71
89
|
* A company is a seller on Whop. Companies own products, manage members, and
|
|
72
90
|
* receive payouts.
|
|
@@ -260,6 +278,12 @@ export interface CompanyUpdateParams {
|
|
|
260
278
|
*/
|
|
261
279
|
send_customer_emails?: boolean | null;
|
|
262
280
|
|
|
281
|
+
/**
|
|
282
|
+
* The social media links to display on the company's store page. Pass the full
|
|
283
|
+
* list of desired social links — any existing links not included will be removed.
|
|
284
|
+
*/
|
|
285
|
+
social_links?: Array<CompanyUpdateParams.SocialLink> | null;
|
|
286
|
+
|
|
263
287
|
/**
|
|
264
288
|
* The target audience for this company (e.g., 'beginner day traders aged 18-25
|
|
265
289
|
* looking to learn options').
|
|
@@ -292,6 +316,53 @@ export namespace CompanyUpdateParams {
|
|
|
292
316
|
*/
|
|
293
317
|
id: string;
|
|
294
318
|
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Input for creating a social link for a company
|
|
322
|
+
*/
|
|
323
|
+
export interface SocialLink {
|
|
324
|
+
/**
|
|
325
|
+
* The URL of the social link
|
|
326
|
+
*/
|
|
327
|
+
url: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* The website this link is for
|
|
331
|
+
*/
|
|
332
|
+
website: CompaniesAPI.SocialLinkWebsites;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The custom image for the social link
|
|
336
|
+
*/
|
|
337
|
+
image?: SocialLink.Image | null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The order of the social link
|
|
341
|
+
*/
|
|
342
|
+
order?: string | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The title of the social link
|
|
346
|
+
*/
|
|
347
|
+
title?: string | null;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The order of the website social link
|
|
351
|
+
*/
|
|
352
|
+
website_order?: string | null;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export namespace SocialLink {
|
|
356
|
+
/**
|
|
357
|
+
* The custom image for the social link
|
|
358
|
+
*/
|
|
359
|
+
export interface Image {
|
|
360
|
+
/**
|
|
361
|
+
* The ID of an existing file object.
|
|
362
|
+
*/
|
|
363
|
+
id: string;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
295
366
|
}
|
|
296
367
|
|
|
297
368
|
export interface CompanyListParams extends CursorPageParams {
|
|
@@ -335,6 +406,7 @@ export interface CompanyListParams extends CursorPageParams {
|
|
|
335
406
|
|
|
336
407
|
export declare namespace Companies {
|
|
337
408
|
export {
|
|
409
|
+
type SocialLinkWebsites as SocialLinkWebsites,
|
|
338
410
|
type CompanyListResponse as CompanyListResponse,
|
|
339
411
|
type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage,
|
|
340
412
|
type CompanyCreateParams as CompanyCreateParams,
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Company token transactions
|
|
11
|
+
*/
|
|
9
12
|
export class CompanyTokenTransactions extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Create a token transaction to add, subtract, or transfer tokens for a member
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Course chapters
|
|
11
|
+
*/
|
|
9
12
|
export class CourseChapters extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Create a new chapter within a course to organize lessons into sections.
|
|
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
8
8
|
import { RequestOptions } from '../internal/request-options';
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Course lesson interactions
|
|
13
|
+
*/
|
|
11
14
|
export class CourseLessonInteractions extends APIResource {
|
|
12
15
|
/**
|
|
13
16
|
* Retrieves the details of an existing course lesson interaction.
|
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Course lessons
|
|
12
|
+
*/
|
|
10
13
|
export class CourseLessons extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Create a new lesson within a course chapter. Lessons can contain video, text, or
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Course students
|
|
11
|
+
*/
|
|
9
12
|
export class CourseStudents extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Retrieves the details of an existing course student.
|
package/src/resources/courses.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Courses
|
|
12
|
+
*/
|
|
10
13
|
export class Courses extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Create a new course within an experience, with optional chapters, lessons, and a
|
|
@@ -9,6 +9,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
9
9
|
import { RequestOptions } from '../internal/request-options';
|
|
10
10
|
import { path } from '../internal/utils/path';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Dispute alerts
|
|
14
|
+
*/
|
|
12
15
|
export class DisputeAlerts extends APIResource {
|
|
13
16
|
/**
|
|
14
17
|
* Retrieves the details of an existing dispute alert.
|
|
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
8
8
|
import { RequestOptions } from '../internal/request-options';
|
|
9
9
|
import { path } from '../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Disputes
|
|
13
|
+
*/
|
|
11
14
|
export class Disputes extends APIResource {
|
|
12
15
|
/**
|
|
13
16
|
* Retrieves the details of an existing dispute.
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Dm channels
|
|
11
|
+
*/
|
|
9
12
|
export class DmChannels extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Create a new DM channel between two or more users, optionally scoped to a
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Dm members
|
|
11
|
+
*/
|
|
9
12
|
export class DmMembers extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Add a new user to an existing DM channel. Only an admin of the channel can add
|
package/src/resources/entries.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Entries
|
|
12
|
+
*/
|
|
10
13
|
export class Entries extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Retrieves the details of an existing waitlist entry.
|
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Experiences
|
|
12
|
+
*/
|
|
10
13
|
export class Experiences extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Required permissions:
|
|
@@ -6,6 +6,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Fee markups
|
|
11
|
+
*/
|
|
9
12
|
export class FeeMarkups extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Create or update a fee markup for a company. If a markup for the specified fee
|
package/src/resources/files.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { path } from '../internal/utils/path';
|
|
|
7
7
|
import type { ToFileInput, Uploadable } from '../core/uploads';
|
|
8
8
|
import { uploadFile } from '../lib/upload-file';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Files
|
|
12
|
+
*/
|
|
10
13
|
export class Files extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Create a new file record and receive a presigned URL for uploading content to
|
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Forum posts
|
|
12
|
+
*/
|
|
10
13
|
export class ForumPosts extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Create a new forum post or comment within an experience. Supports text content,
|
|
@@ -108,6 +111,11 @@ export interface ForumPostListResponse {
|
|
|
108
111
|
*/
|
|
109
112
|
id: string;
|
|
110
113
|
|
|
114
|
+
/**
|
|
115
|
+
* All file attachments on this post, such as images, documents, and videos.
|
|
116
|
+
*/
|
|
117
|
+
attachments: Array<ForumPostListResponse.Attachment>;
|
|
118
|
+
|
|
111
119
|
/**
|
|
112
120
|
* The total number of direct comments on this post.
|
|
113
121
|
*/
|
|
@@ -171,6 +179,36 @@ export interface ForumPostListResponse {
|
|
|
171
179
|
}
|
|
172
180
|
|
|
173
181
|
export namespace ForumPostListResponse {
|
|
182
|
+
/**
|
|
183
|
+
* Represents an image attachment
|
|
184
|
+
*/
|
|
185
|
+
export interface Attachment {
|
|
186
|
+
/**
|
|
187
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
188
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
189
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
190
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
191
|
+
* input value will be accepted as an ID.
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
197
|
+
*/
|
|
198
|
+
content_type: string | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
202
|
+
*/
|
|
203
|
+
filename: string | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
207
|
+
* used for displaying attachments in apps.
|
|
208
|
+
*/
|
|
209
|
+
url: string | null;
|
|
210
|
+
}
|
|
211
|
+
|
|
174
212
|
/**
|
|
175
213
|
* The user who authored this forum post.
|
|
176
214
|
*/
|
|
@@ -251,6 +289,12 @@ export interface ForumPostCreateParams {
|
|
|
251
289
|
*/
|
|
252
290
|
poll?: ForumPostCreateParams.Poll | null;
|
|
253
291
|
|
|
292
|
+
/**
|
|
293
|
+
* The rich content of the post in Tiptap JSON format. When provided, takes
|
|
294
|
+
* priority over the markdown content field for rendering.
|
|
295
|
+
*/
|
|
296
|
+
rich_content?: string | null;
|
|
297
|
+
|
|
254
298
|
/**
|
|
255
299
|
* The title of the post, displayed prominently at the top. Required for paywalled
|
|
256
300
|
* posts as it remains visible to non-purchasers.
|
package/src/resources/forums.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
|
|
|
7
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
8
|
import { path } from '../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Forums
|
|
12
|
+
*/
|
|
10
13
|
export class Forums extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Retrieves the details of an existing forum.
|
|
@@ -106,6 +109,12 @@ export namespace ForumListResponse {
|
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
export interface ForumUpdateParams {
|
|
112
|
+
/**
|
|
113
|
+
* The banner image displayed at the top of the forum page. Pass null to remove the
|
|
114
|
+
* existing banner.
|
|
115
|
+
*/
|
|
116
|
+
banner_image?: ForumUpdateParams.BannerImage | null;
|
|
117
|
+
|
|
109
118
|
/**
|
|
110
119
|
* Email notification preference option for a forum feed
|
|
111
120
|
*/
|
|
@@ -122,6 +131,19 @@ export interface ForumUpdateParams {
|
|
|
122
131
|
who_can_post?: Shared.WhoCanPostTypes | null;
|
|
123
132
|
}
|
|
124
133
|
|
|
134
|
+
export namespace ForumUpdateParams {
|
|
135
|
+
/**
|
|
136
|
+
* The banner image displayed at the top of the forum page. Pass null to remove the
|
|
137
|
+
* existing banner.
|
|
138
|
+
*/
|
|
139
|
+
export interface BannerImage {
|
|
140
|
+
/**
|
|
141
|
+
* The ID of an existing file object.
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
125
147
|
export interface ForumListParams extends CursorPageParams {
|
|
126
148
|
/**
|
|
127
149
|
* The unique identifier of the company to list forums for.
|
package/src/resources/index.ts
CHANGED
|
@@ -31,9 +31,13 @@ export {
|
|
|
31
31
|
} from './apps';
|
|
32
32
|
export {
|
|
33
33
|
AuthorizedUsers,
|
|
34
|
+
type AuthorizedUserCreateResponse,
|
|
34
35
|
type AuthorizedUserRetrieveResponse,
|
|
35
36
|
type AuthorizedUserListResponse,
|
|
37
|
+
type AuthorizedUserDeleteResponse,
|
|
38
|
+
type AuthorizedUserCreateParams,
|
|
36
39
|
type AuthorizedUserListParams,
|
|
40
|
+
type AuthorizedUserDeleteParams,
|
|
37
41
|
type AuthorizedUserListResponsesCursorPage,
|
|
38
42
|
} from './authorized-users';
|
|
39
43
|
export {
|
|
@@ -53,6 +57,7 @@ export {
|
|
|
53
57
|
} from './checkout-configurations';
|
|
54
58
|
export {
|
|
55
59
|
Companies,
|
|
60
|
+
type SocialLinkWebsites,
|
|
56
61
|
type CompanyListResponse,
|
|
57
62
|
type CompanyCreateParams,
|
|
58
63
|
type CompanyUpdateParams,
|
|
@@ -239,6 +244,7 @@ export {
|
|
|
239
244
|
type MembershipListResponse,
|
|
240
245
|
type MembershipUpdateParams,
|
|
241
246
|
type MembershipListParams,
|
|
247
|
+
type MembershipAddFreeDaysParams,
|
|
242
248
|
type MembershipCancelParams,
|
|
243
249
|
type MembershipPauseParams,
|
|
244
250
|
type MembershipListResponsesCursorPage,
|
|
@@ -270,6 +276,7 @@ export {
|
|
|
270
276
|
type BillingReasons,
|
|
271
277
|
type CardBrands,
|
|
272
278
|
type PaymentMethodTypes,
|
|
279
|
+
type ReceiptTaxBehavior,
|
|
273
280
|
type PaymentListResponse,
|
|
274
281
|
type PaymentListFeesResponse,
|
|
275
282
|
type PaymentCreateParams,
|