@whop/sdk 0.0.38 → 0.0.40
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 +39 -0
- package/client.d.mts +88 -40
- package/client.d.mts.map +1 -1
- package/client.d.ts +88 -40
- package/client.d.ts.map +1 -1
- package/client.js +59 -0
- package/client.js.map +1 -1
- package/client.mjs +59 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/accounts.d.mts +244 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +244 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +46 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +42 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/ad-campaigns.d.mts +296 -0
- package/resources/ad-campaigns.d.mts.map +1 -0
- package/resources/ad-campaigns.d.ts +296 -0
- package/resources/ad-campaigns.d.ts.map +1 -0
- package/resources/ad-campaigns.js +104 -0
- package/resources/ad-campaigns.js.map +1 -0
- package/resources/ad-campaigns.mjs +100 -0
- package/resources/ad-campaigns.mjs.map +1 -0
- package/resources/ad-groups.d.mts +1461 -0
- package/resources/ad-groups.d.mts.map +1 -0
- package/resources/ad-groups.d.ts +1461 -0
- package/resources/ad-groups.d.ts.map +1 -0
- package/resources/ad-groups.js +121 -0
- package/resources/ad-groups.js.map +1 -0
- package/resources/ad-groups.mjs +117 -0
- package/resources/ad-groups.mjs.map +1 -0
- package/resources/ad-reports.d.mts +379 -0
- package/resources/ad-reports.d.mts.map +1 -0
- package/resources/ad-reports.d.ts +379 -0
- package/resources/ad-reports.d.ts.map +1 -0
- package/resources/ad-reports.js +26 -0
- package/resources/ad-reports.js.map +1 -0
- package/resources/ad-reports.mjs +22 -0
- package/resources/ad-reports.mjs.map +1 -0
- package/resources/ads.d.mts +234 -0
- package/resources/ads.d.mts.map +1 -0
- package/resources/ads.d.ts +234 -0
- package/resources/ads.d.ts.map +1 -0
- package/resources/ads.js +56 -0
- package/resources/ads.js.map +1 -0
- package/resources/ads.mjs +52 -0
- package/resources/ads.mjs.map +1 -0
- package/resources/affiliates/affiliates.d.mts +31 -31
- package/resources/affiliates/affiliates.d.mts.map +1 -1
- package/resources/affiliates/affiliates.d.ts +31 -31
- package/resources/affiliates/affiliates.d.ts.map +1 -1
- package/resources/affiliates/affiliates.js +21 -21
- package/resources/affiliates/affiliates.js.map +1 -1
- package/resources/affiliates/affiliates.mjs +21 -21
- package/resources/affiliates/affiliates.mjs.map +1 -1
- package/resources/affiliates/index.d.mts +2 -2
- package/resources/affiliates/index.d.mts.map +1 -1
- package/resources/affiliates/index.d.ts +2 -2
- package/resources/affiliates/index.d.ts.map +1 -1
- package/resources/affiliates/overrides.d.mts +37 -37
- package/resources/affiliates/overrides.d.mts.map +1 -1
- package/resources/affiliates/overrides.d.ts +37 -37
- package/resources/affiliates/overrides.d.ts.map +1 -1
- package/resources/affiliates/overrides.js +23 -23
- package/resources/affiliates/overrides.js.map +1 -1
- package/resources/affiliates/overrides.mjs +23 -23
- package/resources/affiliates/overrides.mjs.map +1 -1
- package/resources/ai-chats.d.mts +23 -23
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +23 -23
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +6 -6
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +6 -6
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +54 -54
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +54 -54
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +21 -21
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +21 -21
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +57 -57
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +57 -57
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +15 -15
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +15 -15
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +36 -36
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +36 -36
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +21 -21
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +21 -21
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/bounties.d.mts +281 -0
- package/resources/bounties.d.mts.map +1 -0
- package/resources/bounties.d.ts +281 -0
- package/resources/bounties.d.ts.map +1 -0
- package/resources/bounties.js +63 -0
- package/resources/bounties.js.map +1 -0
- package/resources/bounties.mjs +59 -0
- package/resources/bounties.mjs.map +1 -0
- package/resources/chat-channels.d.mts +43 -43
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +43 -43
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +24 -24
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +24 -24
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +77 -49
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +77 -49
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +11 -11
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +11 -11
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +98 -35
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +98 -35
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +24 -17
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +24 -17
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +39 -39
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +39 -39
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +14 -14
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +14 -14
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/conversions.d.mts +248 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +248 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +30 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +26 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/course-chapters.d.mts +36 -36
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +36 -36
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +23 -23
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +23 -23
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +5 -5
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +5 -5
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +7 -7
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +7 -7
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +40 -40
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +40 -40
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +22 -22
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +22 -22
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +5 -5
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +5 -5
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +10 -10
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +10 -10
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +40 -40
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +40 -40
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +19 -19
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +19 -19
- package/resources/courses.mjs.map +1 -1
- package/resources/deposits.d.mts +64 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +64 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +16 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +12 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/dispute-alerts.d.mts +10 -10
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +10 -10
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +13 -13
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +13 -13
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +13 -15
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +13 -15
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +11 -11
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +11 -11
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +37 -37
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +37 -37
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +19 -19
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +19 -19
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +38 -38
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +38 -38
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +21 -21
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +21 -21
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +5 -5
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +5 -5
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -7
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -7
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +50 -50
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +50 -50
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +17 -17
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +17 -17
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +36 -36
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +36 -36
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +18 -18
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +18 -18
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +18 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +52 -48
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +52 -48
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +21 -21
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +21 -21
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +33 -33
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +33 -33
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +11 -11
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +11 -11
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +45 -35
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +45 -35
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +22 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +89 -84
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +89 -84
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +40 -40
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +40 -40
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +53 -53
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +53 -53
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +24 -24
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +24 -24
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +34 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +34 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -7
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +9 -7
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +7 -7
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +7 -7
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +67 -47
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +67 -47
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +38 -38
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +38 -38
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +36 -36
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +36 -36
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +16 -16
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +16 -16
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-methods.d.mts +20 -20
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +20 -20
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +10 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +10 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +177 -145
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +177 -145
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +68 -68
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +68 -68
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-accounts.d.mts +1 -1
- package/resources/payout-accounts.d.ts +1 -1
- package/resources/payout-methods.d.mts +5 -5
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +5 -5
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +10 -10
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +10 -10
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +130 -72
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +130 -72
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +21 -21
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +21 -21
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +81 -65
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +81 -65
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +25 -25
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +25 -25
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +59 -59
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +59 -59
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +22 -22
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +22 -22
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -25
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -25
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +11 -11
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +11 -11
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +59 -10
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +59 -10
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +12 -10
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +12 -10
- package/resources/refunds.mjs.map +1 -1
- package/resources/resolution-center-cases.d.mts +6 -6
- package/resources/resolution-center-cases.d.mts.map +1 -1
- package/resources/resolution-center-cases.d.ts +6 -6
- package/resources/resolution-center-cases.d.ts.map +1 -1
- package/resources/resolution-center-cases.js +10 -10
- package/resources/resolution-center-cases.js.map +1 -1
- package/resources/resolution-center-cases.mjs +10 -10
- package/resources/resolution-center-cases.mjs.map +1 -1
- package/resources/reviews.d.mts +4 -4
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +4 -4
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +6 -6
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +6 -6
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +6 -6
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +6 -6
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +11 -11
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +11 -11
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +100 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +100 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +35 -35
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +35 -35
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +20 -20
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +20 -20
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +42 -38
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +42 -38
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +21 -23
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +21 -23
- package/resources/support-channels.mjs.map +1 -1
- package/resources/swaps.d.mts +62 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +62 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +15 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +11 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transfers.d.mts +57 -55
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +57 -55
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +19 -19
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +19 -19
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +20 -20
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -20
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +16 -16
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +16 -16
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +2 -2
- package/resources/verifications.d.ts +2 -2
- package/resources/wallets.d.mts +89 -0
- package/resources/wallets.d.mts.map +1 -0
- package/resources/wallets.d.ts +89 -0
- package/resources/wallets.d.ts.map +1 -0
- package/resources/wallets.js +28 -0
- package/resources/wallets.js.map +1 -0
- package/resources/wallets.mjs +24 -0
- package/resources/wallets.mjs.map +1 -0
- package/resources/webhooks.d.mts +2182 -1196
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +2182 -1196
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +31 -31
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +31 -31
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +47 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +47 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +21 -21
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +21 -21
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +277 -60
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/accounts.ts +318 -0
- package/src/resources/ad-campaigns.ts +376 -0
- package/src/resources/ad-groups.ts +1958 -0
- package/src/resources/ad-reports.ts +484 -0
- package/src/resources/ads.ts +295 -0
- package/src/resources/affiliates/affiliates.ts +39 -39
- package/src/resources/affiliates/index.ts +2 -2
- package/src/resources/affiliates/overrides.ts +51 -51
- package/src/resources/ai-chats.ts +33 -33
- package/src/resources/app-builds.ts +68 -68
- package/src/resources/apps.ts +86 -86
- package/src/resources/authorized-users.ts +48 -48
- package/src/resources/bounties.ts +353 -0
- package/src/resources/chat-channels.ts +57 -57
- package/src/resources/checkout-configurations.ts +101 -67
- package/src/resources/companies.ts +123 -41
- package/src/resources/company-token-transactions.ts +55 -55
- package/src/resources/conversions.ts +316 -0
- package/src/resources/course-chapters.ts +47 -47
- package/src/resources/course-lesson-interactions.ts +12 -12
- package/src/resources/course-lessons.ts +54 -54
- package/src/resources/course-students.ts +12 -12
- package/src/resources/courses.ts +51 -51
- package/src/resources/deposits.ts +87 -0
- package/src/resources/dispute-alerts.ts +18 -18
- package/src/resources/disputes.ts +18 -20
- package/src/resources/dm-channels.ts +45 -45
- package/src/resources/dm-members.ts +45 -45
- package/src/resources/entries.ts +10 -10
- package/src/resources/experiences.ts +64 -64
- package/src/resources/fee-markups.ts +44 -44
- package/src/resources/files.ts +22 -0
- package/src/resources/forum-posts.ts +65 -60
- package/src/resources/forums.ts +44 -44
- package/src/resources/index.ts +129 -57
- package/src/resources/invoices.ts +116 -110
- package/src/resources/leads.ts +64 -64
- package/src/resources/ledger-accounts.ts +41 -1
- package/src/resources/members.ts +14 -12
- package/src/resources/memberships.ts +80 -61
- package/src/resources/messages.ts +48 -48
- package/src/resources/payment-methods.ts +30 -30
- package/src/resources/payments.ts +229 -183
- package/src/resources/payout-accounts.ts +1 -1
- package/src/resources/payout-methods.ts +11 -11
- package/src/resources/plans.ts +153 -90
- package/src/resources/products.ts +98 -84
- package/src/resources/promo-codes.ts +74 -74
- package/src/resources/reactions.ts +33 -33
- package/src/resources/refunds.ts +65 -15
- package/src/resources/resolution-center-cases.ts +11 -12
- package/src/resources/reviews.ts +7 -7
- package/src/resources/setup-intents.ts +13 -13
- package/src/resources/shared.ts +107 -5
- package/src/resources/shipments.ts +44 -44
- package/src/resources/support-channels.ts +54 -49
- package/src/resources/swaps.ts +87 -0
- package/src/resources/transfers.ts +68 -66
- package/src/resources/users.ts +29 -29
- package/src/resources/verifications.ts +2 -2
- package/src/resources/wallets.ts +136 -0
- package/src/resources/webhooks.ts +2449 -1277
- package/src/resources/withdrawals.ts +55 -55
- 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
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as WalletsAPI from "./wallets.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Accounts extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Lists accounts visible to the credential. User tokens return the user's business
|
|
8
|
+
* accounts; business account API keys return the requesting business account and
|
|
9
|
+
* its connected accounts.
|
|
10
|
+
*/
|
|
11
|
+
list(query?: AccountListParams | null | undefined, options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an account. User tokens create business accounts; business account API
|
|
14
|
+
* keys create connected accounts.
|
|
15
|
+
*/
|
|
16
|
+
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<Account>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the business account associated with the current business account API
|
|
19
|
+
* key.
|
|
20
|
+
*/
|
|
21
|
+
me(options?: RequestOptions): APIPromise<Account>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a single account visible to the credential, including its crypto
|
|
24
|
+
* wallet.
|
|
25
|
+
*/
|
|
26
|
+
retrieve(accountID: string, options?: RequestOptions): APIPromise<Account>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an account. User tokens can update business accounts; business account
|
|
29
|
+
* API keys can update connected accounts.
|
|
30
|
+
*/
|
|
31
|
+
update(accountID: string, body: AccountUpdateParams, options?: RequestOptions): APIPromise<Account>;
|
|
32
|
+
}
|
|
33
|
+
export interface Account {
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the account, which will look like biz\_******\*******
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* The URL of the account banner image
|
|
40
|
+
*/
|
|
41
|
+
banner_image_url: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The high-level business category for the account
|
|
44
|
+
*/
|
|
45
|
+
business_type: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* When the account was created, as an ISO 8601 timestamp
|
|
48
|
+
*/
|
|
49
|
+
created_at: string;
|
|
50
|
+
/**
|
|
51
|
+
* A promotional description for the account
|
|
52
|
+
*/
|
|
53
|
+
description: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The email address of the account owner
|
|
56
|
+
*/
|
|
57
|
+
email: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The industry group the account belongs to
|
|
60
|
+
*/
|
|
61
|
+
industry_group: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The specific industry vertical the account operates in
|
|
64
|
+
*/
|
|
65
|
+
industry_type: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The URL of the account logo image
|
|
68
|
+
*/
|
|
69
|
+
logo_url: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Arbitrary key/value metadata supplied when the account was created
|
|
72
|
+
*/
|
|
73
|
+
metadata: unknown;
|
|
74
|
+
/**
|
|
75
|
+
* The parent account ID for connected accounts
|
|
76
|
+
*/
|
|
77
|
+
parent_account_id: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The account's public route identifier
|
|
80
|
+
*/
|
|
81
|
+
route: string;
|
|
82
|
+
/**
|
|
83
|
+
* Whether Whop sends transactional emails to customers on behalf of this account
|
|
84
|
+
*/
|
|
85
|
+
send_customer_emails: boolean;
|
|
86
|
+
social_links: Array<AccountSocialLink>;
|
|
87
|
+
/**
|
|
88
|
+
* The target audience for this account
|
|
89
|
+
*/
|
|
90
|
+
target_audience: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* The display name of the account
|
|
93
|
+
*/
|
|
94
|
+
title: string;
|
|
95
|
+
/**
|
|
96
|
+
* The account's primary crypto wallet, or null if none has been provisioned
|
|
97
|
+
*/
|
|
98
|
+
wallet: WalletsAPI.AccountWallet | null;
|
|
99
|
+
}
|
|
100
|
+
export interface AccountSocialLink {
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the social link
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
/**
|
|
106
|
+
* The optional display title for the social link
|
|
107
|
+
*/
|
|
108
|
+
title: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The social link URL
|
|
111
|
+
*/
|
|
112
|
+
url: string;
|
|
113
|
+
/**
|
|
114
|
+
* The social platform for this link
|
|
115
|
+
*/
|
|
116
|
+
website: 'x' | 'instagram' | 'facebook' | 'tiktok' | 'youtube' | 'linkedin' | 'twitch' | 'website' | 'custom';
|
|
117
|
+
}
|
|
118
|
+
export interface AccountListResponse {
|
|
119
|
+
accounts: Array<Account>;
|
|
120
|
+
pagination: AccountListResponse.Pagination;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace AccountListResponse {
|
|
123
|
+
interface Pagination {
|
|
124
|
+
/**
|
|
125
|
+
* Current page number
|
|
126
|
+
*/
|
|
127
|
+
current_page: number;
|
|
128
|
+
/**
|
|
129
|
+
* Next page number
|
|
130
|
+
*/
|
|
131
|
+
next_page: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* Previous page number
|
|
134
|
+
*/
|
|
135
|
+
prev_page: number | null;
|
|
136
|
+
/**
|
|
137
|
+
* Total number of records
|
|
138
|
+
*/
|
|
139
|
+
total_count: number;
|
|
140
|
+
/**
|
|
141
|
+
* Total number of pages
|
|
142
|
+
*/
|
|
143
|
+
total_pages: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export interface AccountListParams {
|
|
147
|
+
/**
|
|
148
|
+
* The page number to retrieve
|
|
149
|
+
*/
|
|
150
|
+
page?: number;
|
|
151
|
+
/**
|
|
152
|
+
* The number of resources to return per page. There is a limit of 50 results per
|
|
153
|
+
* page.
|
|
154
|
+
*/
|
|
155
|
+
per?: number;
|
|
156
|
+
}
|
|
157
|
+
export interface AccountCreateParams {
|
|
158
|
+
/**
|
|
159
|
+
* The email address of the account owner. Required for business account API key
|
|
160
|
+
* requests.
|
|
161
|
+
*/
|
|
162
|
+
email?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Arbitrary key/value metadata to store on the account.
|
|
165
|
+
*/
|
|
166
|
+
metadata?: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export interface AccountUpdateParams {
|
|
171
|
+
/**
|
|
172
|
+
* Whether prospective affiliates must submit an application before promoting this
|
|
173
|
+
* account.
|
|
174
|
+
*/
|
|
175
|
+
affiliate_application_required?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Guidelines shown to affiliates promoting this account.
|
|
178
|
+
*/
|
|
179
|
+
affiliate_instructions?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Attachment input for the account banner image.
|
|
182
|
+
*/
|
|
183
|
+
banner_image?: {
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
} | null;
|
|
186
|
+
/**
|
|
187
|
+
* The high-level business category for the account.
|
|
188
|
+
*/
|
|
189
|
+
business_type?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* A promotional description for the account.
|
|
192
|
+
*/
|
|
193
|
+
description?: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* The ID of the product to feature for affiliates. Pass null to clear.
|
|
196
|
+
*/
|
|
197
|
+
featured_affiliate_product_id?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* The industry group the account belongs to.
|
|
200
|
+
*/
|
|
201
|
+
industry_group?: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* The specific industry vertical the account operates in.
|
|
204
|
+
*/
|
|
205
|
+
industry_type?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* Attachment input for the account logo.
|
|
208
|
+
*/
|
|
209
|
+
logo?: {
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
} | null;
|
|
212
|
+
/**
|
|
213
|
+
* Arbitrary key/value metadata to store on the account.
|
|
214
|
+
*/
|
|
215
|
+
metadata?: {
|
|
216
|
+
[key: string]: unknown;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* The unique URL slug for the account.
|
|
220
|
+
*/
|
|
221
|
+
route?: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Whether Whop sends transactional emails to customers on behalf of this account.
|
|
224
|
+
*/
|
|
225
|
+
send_customer_emails?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* The full list of social links to display for the account.
|
|
228
|
+
*/
|
|
229
|
+
social_links?: Array<{
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* The target audience for this account.
|
|
234
|
+
*/
|
|
235
|
+
target_audience?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* The display name of the account.
|
|
238
|
+
*/
|
|
239
|
+
title?: string | null;
|
|
240
|
+
}
|
|
241
|
+
export declare namespace Accounts {
|
|
242
|
+
export { type Account as Account, type AccountSocialLink as AccountSocialLink, type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams, type AccountCreateParams as AccountCreateParams, type AccountUpdateParams as AccountUpdateParams, };
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=accounts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;OAGG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIjD;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGpG;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;I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,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;IAEjD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as WalletsAPI from "./wallets.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Accounts extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Lists accounts visible to the credential. User tokens return the user's business
|
|
8
|
+
* accounts; business account API keys return the requesting business account and
|
|
9
|
+
* its connected accounts.
|
|
10
|
+
*/
|
|
11
|
+
list(query?: AccountListParams | null | undefined, options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an account. User tokens create business accounts; business account API
|
|
14
|
+
* keys create connected accounts.
|
|
15
|
+
*/
|
|
16
|
+
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<Account>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the business account associated with the current business account API
|
|
19
|
+
* key.
|
|
20
|
+
*/
|
|
21
|
+
me(options?: RequestOptions): APIPromise<Account>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a single account visible to the credential, including its crypto
|
|
24
|
+
* wallet.
|
|
25
|
+
*/
|
|
26
|
+
retrieve(accountID: string, options?: RequestOptions): APIPromise<Account>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an account. User tokens can update business accounts; business account
|
|
29
|
+
* API keys can update connected accounts.
|
|
30
|
+
*/
|
|
31
|
+
update(accountID: string, body: AccountUpdateParams, options?: RequestOptions): APIPromise<Account>;
|
|
32
|
+
}
|
|
33
|
+
export interface Account {
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the account, which will look like biz\_******\*******
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* The URL of the account banner image
|
|
40
|
+
*/
|
|
41
|
+
banner_image_url: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The high-level business category for the account
|
|
44
|
+
*/
|
|
45
|
+
business_type: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* When the account was created, as an ISO 8601 timestamp
|
|
48
|
+
*/
|
|
49
|
+
created_at: string;
|
|
50
|
+
/**
|
|
51
|
+
* A promotional description for the account
|
|
52
|
+
*/
|
|
53
|
+
description: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The email address of the account owner
|
|
56
|
+
*/
|
|
57
|
+
email: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The industry group the account belongs to
|
|
60
|
+
*/
|
|
61
|
+
industry_group: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The specific industry vertical the account operates in
|
|
64
|
+
*/
|
|
65
|
+
industry_type: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The URL of the account logo image
|
|
68
|
+
*/
|
|
69
|
+
logo_url: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Arbitrary key/value metadata supplied when the account was created
|
|
72
|
+
*/
|
|
73
|
+
metadata: unknown;
|
|
74
|
+
/**
|
|
75
|
+
* The parent account ID for connected accounts
|
|
76
|
+
*/
|
|
77
|
+
parent_account_id: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The account's public route identifier
|
|
80
|
+
*/
|
|
81
|
+
route: string;
|
|
82
|
+
/**
|
|
83
|
+
* Whether Whop sends transactional emails to customers on behalf of this account
|
|
84
|
+
*/
|
|
85
|
+
send_customer_emails: boolean;
|
|
86
|
+
social_links: Array<AccountSocialLink>;
|
|
87
|
+
/**
|
|
88
|
+
* The target audience for this account
|
|
89
|
+
*/
|
|
90
|
+
target_audience: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* The display name of the account
|
|
93
|
+
*/
|
|
94
|
+
title: string;
|
|
95
|
+
/**
|
|
96
|
+
* The account's primary crypto wallet, or null if none has been provisioned
|
|
97
|
+
*/
|
|
98
|
+
wallet: WalletsAPI.AccountWallet | null;
|
|
99
|
+
}
|
|
100
|
+
export interface AccountSocialLink {
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the social link
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
/**
|
|
106
|
+
* The optional display title for the social link
|
|
107
|
+
*/
|
|
108
|
+
title: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The social link URL
|
|
111
|
+
*/
|
|
112
|
+
url: string;
|
|
113
|
+
/**
|
|
114
|
+
* The social platform for this link
|
|
115
|
+
*/
|
|
116
|
+
website: 'x' | 'instagram' | 'facebook' | 'tiktok' | 'youtube' | 'linkedin' | 'twitch' | 'website' | 'custom';
|
|
117
|
+
}
|
|
118
|
+
export interface AccountListResponse {
|
|
119
|
+
accounts: Array<Account>;
|
|
120
|
+
pagination: AccountListResponse.Pagination;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace AccountListResponse {
|
|
123
|
+
interface Pagination {
|
|
124
|
+
/**
|
|
125
|
+
* Current page number
|
|
126
|
+
*/
|
|
127
|
+
current_page: number;
|
|
128
|
+
/**
|
|
129
|
+
* Next page number
|
|
130
|
+
*/
|
|
131
|
+
next_page: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* Previous page number
|
|
134
|
+
*/
|
|
135
|
+
prev_page: number | null;
|
|
136
|
+
/**
|
|
137
|
+
* Total number of records
|
|
138
|
+
*/
|
|
139
|
+
total_count: number;
|
|
140
|
+
/**
|
|
141
|
+
* Total number of pages
|
|
142
|
+
*/
|
|
143
|
+
total_pages: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export interface AccountListParams {
|
|
147
|
+
/**
|
|
148
|
+
* The page number to retrieve
|
|
149
|
+
*/
|
|
150
|
+
page?: number;
|
|
151
|
+
/**
|
|
152
|
+
* The number of resources to return per page. There is a limit of 50 results per
|
|
153
|
+
* page.
|
|
154
|
+
*/
|
|
155
|
+
per?: number;
|
|
156
|
+
}
|
|
157
|
+
export interface AccountCreateParams {
|
|
158
|
+
/**
|
|
159
|
+
* The email address of the account owner. Required for business account API key
|
|
160
|
+
* requests.
|
|
161
|
+
*/
|
|
162
|
+
email?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Arbitrary key/value metadata to store on the account.
|
|
165
|
+
*/
|
|
166
|
+
metadata?: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export interface AccountUpdateParams {
|
|
171
|
+
/**
|
|
172
|
+
* Whether prospective affiliates must submit an application before promoting this
|
|
173
|
+
* account.
|
|
174
|
+
*/
|
|
175
|
+
affiliate_application_required?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Guidelines shown to affiliates promoting this account.
|
|
178
|
+
*/
|
|
179
|
+
affiliate_instructions?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Attachment input for the account banner image.
|
|
182
|
+
*/
|
|
183
|
+
banner_image?: {
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
} | null;
|
|
186
|
+
/**
|
|
187
|
+
* The high-level business category for the account.
|
|
188
|
+
*/
|
|
189
|
+
business_type?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* A promotional description for the account.
|
|
192
|
+
*/
|
|
193
|
+
description?: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* The ID of the product to feature for affiliates. Pass null to clear.
|
|
196
|
+
*/
|
|
197
|
+
featured_affiliate_product_id?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* The industry group the account belongs to.
|
|
200
|
+
*/
|
|
201
|
+
industry_group?: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* The specific industry vertical the account operates in.
|
|
204
|
+
*/
|
|
205
|
+
industry_type?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* Attachment input for the account logo.
|
|
208
|
+
*/
|
|
209
|
+
logo?: {
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
} | null;
|
|
212
|
+
/**
|
|
213
|
+
* Arbitrary key/value metadata to store on the account.
|
|
214
|
+
*/
|
|
215
|
+
metadata?: {
|
|
216
|
+
[key: string]: unknown;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* The unique URL slug for the account.
|
|
220
|
+
*/
|
|
221
|
+
route?: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Whether Whop sends transactional emails to customers on behalf of this account.
|
|
224
|
+
*/
|
|
225
|
+
send_customer_emails?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* The full list of social links to display for the account.
|
|
228
|
+
*/
|
|
229
|
+
social_links?: Array<{
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* The target audience for this account.
|
|
234
|
+
*/
|
|
235
|
+
target_audience?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* The display name of the account.
|
|
238
|
+
*/
|
|
239
|
+
title?: string | null;
|
|
240
|
+
}
|
|
241
|
+
export declare namespace Accounts {
|
|
242
|
+
export { type Account as Account, type AccountSocialLink as AccountSocialLink, type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams, type AccountCreateParams as AccountCreateParams, type AccountUpdateParams as AccountUpdateParams, };
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;OAGG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIjD;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGpG;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IA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oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;IAEjD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Accounts = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Accounts extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists accounts visible to the credential. User tokens return the user's business
|
|
10
|
+
* accounts; business account API keys return the requesting business account and
|
|
11
|
+
* its connected accounts.
|
|
12
|
+
*/
|
|
13
|
+
list(query = {}, options) {
|
|
14
|
+
return this._client.get('/accounts', { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates an account. User tokens create business accounts; business account API
|
|
18
|
+
* keys create connected accounts.
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/accounts', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the business account associated with the current business account API
|
|
25
|
+
* key.
|
|
26
|
+
*/
|
|
27
|
+
me(options) {
|
|
28
|
+
return this._client.get('/accounts/me', options);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a single account visible to the credential, including its crypto
|
|
32
|
+
* wallet.
|
|
33
|
+
*/
|
|
34
|
+
retrieve(accountID, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/accounts/${accountID}`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Updates an account. User tokens can update business accounts; business account
|
|
39
|
+
* API keys can update connected accounts.
|
|
40
|
+
*/
|
|
41
|
+
update(accountID, body, options) {
|
|
42
|
+
return this._client.patch((0, path_1.path) `/accounts/${accountID}`, { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Accounts = Accounts;
|
|
46
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,EAAE,CAAC,OAAwB;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA5CD,4BA4CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Accounts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists accounts visible to the credential. User tokens return the user's business
|
|
7
|
+
* accounts; business account API keys return the requesting business account and
|
|
8
|
+
* its connected accounts.
|
|
9
|
+
*/
|
|
10
|
+
list(query = {}, options) {
|
|
11
|
+
return this._client.get('/accounts', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Creates an account. User tokens create business accounts; business account API
|
|
15
|
+
* keys create connected accounts.
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/accounts', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves the business account associated with the current business account API
|
|
22
|
+
* key.
|
|
23
|
+
*/
|
|
24
|
+
me(options) {
|
|
25
|
+
return this._client.get('/accounts/me', options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a single account visible to the credential, including its crypto
|
|
29
|
+
* wallet.
|
|
30
|
+
*/
|
|
31
|
+
retrieve(accountID, options) {
|
|
32
|
+
return this._client.get(path `/accounts/${accountID}`, options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Updates an account. User tokens can update business accounts; business account
|
|
36
|
+
* API keys can update connected accounts.
|
|
37
|
+
*/
|
|
38
|
+
update(accountID, body, options) {
|
|
39
|
+
return this._client.patch(path `/accounts/${accountID}`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,EAAE,CAAC,OAAwB;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAyB,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|