@whop/sdk 0.0.39 → 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 +19 -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 +73 -45
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +73 -45
- 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 +86 -81
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +86 -81
- 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 +61 -47
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +61 -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 +172 -145
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +172 -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 +128 -70
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +128 -70
- 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 +89 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +89 -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 +35 -34
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +35 -34
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +21 -21
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +21 -21
- 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 +97 -63
- 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 +23 -1
- 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 +113 -107
- 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 +73 -61
- package/src/resources/messages.ts +48 -48
- package/src/resources/payment-methods.ts +30 -30
- package/src/resources/payments.ts +222 -183
- package/src/resources/payout-accounts.ts +1 -1
- package/src/resources/payout-methods.ts +11 -11
- package/src/resources/plans.ts +151 -88
- 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 +94 -5
- package/src/resources/shipments.ts +44 -44
- package/src/resources/support-channels.ts +46 -45
- 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
|
@@ -6,6 +6,18 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
* Company token transactions
|
|
7
7
|
*/
|
|
8
8
|
export declare class CompanyTokenTransactions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of token transactions for a user or company, depending
|
|
11
|
+
* on the authenticated actor, with optional filtering by user and transaction
|
|
12
|
+
* type.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `company_token_transaction:read`
|
|
17
|
+
* - `member:basic:read`
|
|
18
|
+
* - `company:basic:read`
|
|
19
|
+
*/
|
|
20
|
+
list(query: CompanyTokenTransactionListParams, options?: RequestOptions): PagePromise<CompanyTokenTransactionListResponsesCursorPage, CompanyTokenTransactionListResponse>;
|
|
9
21
|
/**
|
|
10
22
|
* Create a token transaction to add, subtract, or transfer tokens for a member
|
|
11
23
|
* within a company.
|
|
@@ -39,18 +51,6 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
39
51
|
* - `company:basic:read`
|
|
40
52
|
*/
|
|
41
53
|
retrieve(id: string, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
42
|
-
/**
|
|
43
|
-
* Returns a paginated list of token transactions for a user or company, depending
|
|
44
|
-
* on the authenticated actor, with optional filtering by user and transaction
|
|
45
|
-
* type.
|
|
46
|
-
*
|
|
47
|
-
* Required permissions:
|
|
48
|
-
*
|
|
49
|
-
* - `company_token_transaction:read`
|
|
50
|
-
* - `member:basic:read`
|
|
51
|
-
* - `company:basic:read`
|
|
52
|
-
*/
|
|
53
|
-
list(query: CompanyTokenTransactionListParams, options?: RequestOptions): PagePromise<CompanyTokenTransactionListResponsesCursorPage, CompanyTokenTransactionListResponse>;
|
|
54
54
|
}
|
|
55
55
|
export type CompanyTokenTransactionListResponsesCursorPage = CursorPage<CompanyTokenTransactionListResponse>;
|
|
56
56
|
/**
|
|
@@ -247,6 +247,32 @@ export declare namespace CompanyTokenTransactionListResponse {
|
|
|
247
247
|
username: string;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
+
export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
251
|
+
/**
|
|
252
|
+
* The unique identifier of the company to list token transactions for.
|
|
253
|
+
*/
|
|
254
|
+
company_id: string;
|
|
255
|
+
/**
|
|
256
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
257
|
+
*/
|
|
258
|
+
before?: string | null;
|
|
259
|
+
/**
|
|
260
|
+
* Returns the first _n_ elements from the list.
|
|
261
|
+
*/
|
|
262
|
+
first?: number | null;
|
|
263
|
+
/**
|
|
264
|
+
* Returns the last _n_ elements from the list.
|
|
265
|
+
*/
|
|
266
|
+
last?: number | null;
|
|
267
|
+
/**
|
|
268
|
+
* The type of token transaction
|
|
269
|
+
*/
|
|
270
|
+
transaction_type?: CompanyTokenTransactionType | null;
|
|
271
|
+
/**
|
|
272
|
+
* Filter transactions to only those involving this specific user.
|
|
273
|
+
*/
|
|
274
|
+
user_id?: string | null;
|
|
275
|
+
}
|
|
250
276
|
export type CompanyTokenTransactionCreateParams = CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeTransfer | CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeAdd | CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeSubtract;
|
|
251
277
|
export declare namespace CompanyTokenTransactionCreateParams {
|
|
252
278
|
interface CreateCompanyTokenTransactionInputTransactionTypeTransfer {
|
|
@@ -333,33 +359,7 @@ export declare namespace CompanyTokenTransactionCreateParams {
|
|
|
333
359
|
idempotency_key?: string | null;
|
|
334
360
|
}
|
|
335
361
|
}
|
|
336
|
-
export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
337
|
-
/**
|
|
338
|
-
* The unique identifier of the company to list token transactions for.
|
|
339
|
-
*/
|
|
340
|
-
company_id: string;
|
|
341
|
-
/**
|
|
342
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
343
|
-
*/
|
|
344
|
-
before?: string | null;
|
|
345
|
-
/**
|
|
346
|
-
* Returns the first _n_ elements from the list.
|
|
347
|
-
*/
|
|
348
|
-
first?: number | null;
|
|
349
|
-
/**
|
|
350
|
-
* Returns the last _n_ elements from the list.
|
|
351
|
-
*/
|
|
352
|
-
last?: number | null;
|
|
353
|
-
/**
|
|
354
|
-
* The type of token transaction
|
|
355
|
-
*/
|
|
356
|
-
transaction_type?: CompanyTokenTransactionType | null;
|
|
357
|
-
/**
|
|
358
|
-
* Filter transactions to only those involving this specific user.
|
|
359
|
-
*/
|
|
360
|
-
user_id?: string | null;
|
|
361
|
-
}
|
|
362
362
|
export declare namespace CompanyTokenTransactions {
|
|
363
|
-
export { type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionType as CompanyTokenTransactionType, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type
|
|
363
|
+
export { type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionType as CompanyTokenTransactionType, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type CompanyTokenTransactionListParams as CompanyTokenTransactionListParams, type CompanyTokenTransactionCreateParams as CompanyTokenTransactionCreateParams, };
|
|
364
364
|
}
|
|
365
365
|
//# sourceMappingURL=company-token-transactions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD
|
|
1
|
+
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,mCAAmC,CAAC;IAQnG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cA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gB,EAAE,UAAU,CAAC;QAE7B;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;WAGG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -6,6 +6,18 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
* Company token transactions
|
|
7
7
|
*/
|
|
8
8
|
export declare class CompanyTokenTransactions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of token transactions for a user or company, depending
|
|
11
|
+
* on the authenticated actor, with optional filtering by user and transaction
|
|
12
|
+
* type.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `company_token_transaction:read`
|
|
17
|
+
* - `member:basic:read`
|
|
18
|
+
* - `company:basic:read`
|
|
19
|
+
*/
|
|
20
|
+
list(query: CompanyTokenTransactionListParams, options?: RequestOptions): PagePromise<CompanyTokenTransactionListResponsesCursorPage, CompanyTokenTransactionListResponse>;
|
|
9
21
|
/**
|
|
10
22
|
* Create a token transaction to add, subtract, or transfer tokens for a member
|
|
11
23
|
* within a company.
|
|
@@ -39,18 +51,6 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
39
51
|
* - `company:basic:read`
|
|
40
52
|
*/
|
|
41
53
|
retrieve(id: string, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
42
|
-
/**
|
|
43
|
-
* Returns a paginated list of token transactions for a user or company, depending
|
|
44
|
-
* on the authenticated actor, with optional filtering by user and transaction
|
|
45
|
-
* type.
|
|
46
|
-
*
|
|
47
|
-
* Required permissions:
|
|
48
|
-
*
|
|
49
|
-
* - `company_token_transaction:read`
|
|
50
|
-
* - `member:basic:read`
|
|
51
|
-
* - `company:basic:read`
|
|
52
|
-
*/
|
|
53
|
-
list(query: CompanyTokenTransactionListParams, options?: RequestOptions): PagePromise<CompanyTokenTransactionListResponsesCursorPage, CompanyTokenTransactionListResponse>;
|
|
54
54
|
}
|
|
55
55
|
export type CompanyTokenTransactionListResponsesCursorPage = CursorPage<CompanyTokenTransactionListResponse>;
|
|
56
56
|
/**
|
|
@@ -247,6 +247,32 @@ export declare namespace CompanyTokenTransactionListResponse {
|
|
|
247
247
|
username: string;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
+
export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
251
|
+
/**
|
|
252
|
+
* The unique identifier of the company to list token transactions for.
|
|
253
|
+
*/
|
|
254
|
+
company_id: string;
|
|
255
|
+
/**
|
|
256
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
257
|
+
*/
|
|
258
|
+
before?: string | null;
|
|
259
|
+
/**
|
|
260
|
+
* Returns the first _n_ elements from the list.
|
|
261
|
+
*/
|
|
262
|
+
first?: number | null;
|
|
263
|
+
/**
|
|
264
|
+
* Returns the last _n_ elements from the list.
|
|
265
|
+
*/
|
|
266
|
+
last?: number | null;
|
|
267
|
+
/**
|
|
268
|
+
* The type of token transaction
|
|
269
|
+
*/
|
|
270
|
+
transaction_type?: CompanyTokenTransactionType | null;
|
|
271
|
+
/**
|
|
272
|
+
* Filter transactions to only those involving this specific user.
|
|
273
|
+
*/
|
|
274
|
+
user_id?: string | null;
|
|
275
|
+
}
|
|
250
276
|
export type CompanyTokenTransactionCreateParams = CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeTransfer | CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeAdd | CompanyTokenTransactionCreateParams.CreateCompanyTokenTransactionInputTransactionTypeSubtract;
|
|
251
277
|
export declare namespace CompanyTokenTransactionCreateParams {
|
|
252
278
|
interface CreateCompanyTokenTransactionInputTransactionTypeTransfer {
|
|
@@ -333,33 +359,7 @@ export declare namespace CompanyTokenTransactionCreateParams {
|
|
|
333
359
|
idempotency_key?: string | null;
|
|
334
360
|
}
|
|
335
361
|
}
|
|
336
|
-
export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
337
|
-
/**
|
|
338
|
-
* The unique identifier of the company to list token transactions for.
|
|
339
|
-
*/
|
|
340
|
-
company_id: string;
|
|
341
|
-
/**
|
|
342
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
343
|
-
*/
|
|
344
|
-
before?: string | null;
|
|
345
|
-
/**
|
|
346
|
-
* Returns the first _n_ elements from the list.
|
|
347
|
-
*/
|
|
348
|
-
first?: number | null;
|
|
349
|
-
/**
|
|
350
|
-
* Returns the last _n_ elements from the list.
|
|
351
|
-
*/
|
|
352
|
-
last?: number | null;
|
|
353
|
-
/**
|
|
354
|
-
* The type of token transaction
|
|
355
|
-
*/
|
|
356
|
-
transaction_type?: CompanyTokenTransactionType | null;
|
|
357
|
-
/**
|
|
358
|
-
* Filter transactions to only those involving this specific user.
|
|
359
|
-
*/
|
|
360
|
-
user_id?: string | null;
|
|
361
|
-
}
|
|
362
362
|
export declare namespace CompanyTokenTransactions {
|
|
363
|
-
export { type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionType as CompanyTokenTransactionType, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type
|
|
363
|
+
export { type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionType as CompanyTokenTransactionType, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type CompanyTokenTransactionListParams as CompanyTokenTransactionListParams, type CompanyTokenTransactionCreateParams as CompanyTokenTransactionCreateParams, };
|
|
364
364
|
}
|
|
365
365
|
//# sourceMappingURL=company-token-transactions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.d.ts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD
|
|
1
|
+
{"version":3,"file":"company-token-transactions.d.ts","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,mCAAmC,CAAC;IAQnG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpF;AAED,MAAM,MAAM,8CAA8C,GAAG,UAAU,CAAC,mCAAmC,CAAC,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,uBAA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AK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -9,6 +9,20 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Company token transactions
|
|
10
10
|
*/
|
|
11
11
|
class CompanyTokenTransactions extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of token transactions for a user or company, depending
|
|
14
|
+
* on the authenticated actor, with optional filtering by user and transaction
|
|
15
|
+
* type.
|
|
16
|
+
*
|
|
17
|
+
* Required permissions:
|
|
18
|
+
*
|
|
19
|
+
* - `company_token_transaction:read`
|
|
20
|
+
* - `member:basic:read`
|
|
21
|
+
* - `company:basic:read`
|
|
22
|
+
*/
|
|
23
|
+
list(query, options) {
|
|
24
|
+
return this._client.getAPIList('/company_token_transactions', (pagination_1.CursorPage), { query, ...options });
|
|
25
|
+
}
|
|
12
26
|
/**
|
|
13
27
|
* Create a token transaction to add, subtract, or transfer tokens for a member
|
|
14
28
|
* within a company.
|
|
@@ -46,20 +60,6 @@ class CompanyTokenTransactions extends resource_1.APIResource {
|
|
|
46
60
|
retrieve(id, options) {
|
|
47
61
|
return this._client.get((0, path_1.path) `/company_token_transactions/${id}`, options);
|
|
48
62
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns a paginated list of token transactions for a user or company, depending
|
|
51
|
-
* on the authenticated actor, with optional filtering by user and transaction
|
|
52
|
-
* type.
|
|
53
|
-
*
|
|
54
|
-
* Required permissions:
|
|
55
|
-
*
|
|
56
|
-
* - `company_token_transaction:read`
|
|
57
|
-
* - `member:basic:read`
|
|
58
|
-
* - `company:basic:read`
|
|
59
|
-
*/
|
|
60
|
-
list(query, options) {
|
|
61
|
-
return this._client.getAPIList('/company_token_transactions', (pagination_1.CursorPage), { query, ...options });
|
|
62
|
-
}
|
|
63
63
|
}
|
|
64
64
|
exports.CompanyTokenTransactions = CompanyTokenTransactions;
|
|
65
65
|
//# sourceMappingURL=company-token-transactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.js","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,wBAAyB,SAAQ,sBAAW;IACvD
|
|
1
|
+
{"version":3,"file":"company-token-transactions.js","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,wBAAyB,SAAQ,sBAAW;IACvD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,6BAA6B,EAC7B,CAAA,uBAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAhED,4DAgEC"}
|
|
@@ -6,6 +6,20 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Company token transactions
|
|
7
7
|
*/
|
|
8
8
|
export class CompanyTokenTransactions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of token transactions for a user or company, depending
|
|
11
|
+
* on the authenticated actor, with optional filtering by user and transaction
|
|
12
|
+
* type.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `company_token_transaction:read`
|
|
17
|
+
* - `member:basic:read`
|
|
18
|
+
* - `company:basic:read`
|
|
19
|
+
*/
|
|
20
|
+
list(query, options) {
|
|
21
|
+
return this._client.getAPIList('/company_token_transactions', (CursorPage), { query, ...options });
|
|
22
|
+
}
|
|
9
23
|
/**
|
|
10
24
|
* Create a token transaction to add, subtract, or transfer tokens for a member
|
|
11
25
|
* within a company.
|
|
@@ -43,19 +57,5 @@ export class CompanyTokenTransactions extends APIResource {
|
|
|
43
57
|
retrieve(id, options) {
|
|
44
58
|
return this._client.get(path `/company_token_transactions/${id}`, options);
|
|
45
59
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Returns a paginated list of token transactions for a user or company, depending
|
|
48
|
-
* on the authenticated actor, with optional filtering by user and transaction
|
|
49
|
-
* type.
|
|
50
|
-
*
|
|
51
|
-
* Required permissions:
|
|
52
|
-
*
|
|
53
|
-
* - `company_token_transaction:read`
|
|
54
|
-
* - `member:basic:read`
|
|
55
|
-
* - `company:basic:read`
|
|
56
|
-
*/
|
|
57
|
-
list(query, options) {
|
|
58
|
-
return this._client.getAPIList('/company_token_transactions', (CursorPage), { query, ...options });
|
|
59
|
-
}
|
|
60
60
|
}
|
|
61
61
|
//# sourceMappingURL=company-token-transactions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.mjs","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACvD
|
|
1
|
+
{"version":3,"file":"company-token-transactions.mjs","sourceRoot":"","sources":["../src/resources/company-token-transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,6BAA6B,EAC7B,CAAA,UAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Conversions
|
|
7
|
+
*/
|
|
8
|
+
export declare class Conversions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Track a conversion or engagement event for a company.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `event:create`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const conversion = await client.conversions.create({
|
|
19
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
20
|
+
* event_name: 'lead',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: ConversionCreateParams, options?: RequestOptions): APIPromise<ConversionCreateResponse>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A tracked conversion event
|
|
28
|
+
*/
|
|
29
|
+
export interface ConversionCreateResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier for the conversion
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ConversionCreateParams {
|
|
36
|
+
/**
|
|
37
|
+
* The company to associate with this event.
|
|
38
|
+
*/
|
|
39
|
+
company_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The type of event.
|
|
42
|
+
*/
|
|
43
|
+
event_name: 'lead' | 'submit_application' | 'contact' | 'complete_registration' | 'schedule' | 'custom';
|
|
44
|
+
/**
|
|
45
|
+
* The channel where an event originated
|
|
46
|
+
*/
|
|
47
|
+
action_source?: 'email' | 'website' | 'app' | 'phone_call' | 'chat' | 'physical_store' | 'system_generated' | 'business_messaging' | 'other' | null;
|
|
48
|
+
/**
|
|
49
|
+
* Tracking and attribution context.
|
|
50
|
+
*/
|
|
51
|
+
context?: ConversionCreateParams.Context | null;
|
|
52
|
+
/**
|
|
53
|
+
* The available currencies on the platform
|
|
54
|
+
*/
|
|
55
|
+
currency?: Shared.Currency | null;
|
|
56
|
+
/**
|
|
57
|
+
* Custom event name when event_name is 'custom'.
|
|
58
|
+
*/
|
|
59
|
+
custom_name?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Client-provided identifier for deduplication. Generated if omitted.
|
|
62
|
+
*/
|
|
63
|
+
event_id?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* When the event occurred. Defaults to now.
|
|
66
|
+
*/
|
|
67
|
+
event_time?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The plan associated with the event.
|
|
70
|
+
*/
|
|
71
|
+
plan_id?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The product associated with the event.
|
|
74
|
+
*/
|
|
75
|
+
product_id?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The referring URL.
|
|
78
|
+
*/
|
|
79
|
+
referrer_url?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The URL where the event occurred.
|
|
82
|
+
*/
|
|
83
|
+
url?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* User identity and profile data.
|
|
86
|
+
*/
|
|
87
|
+
user?: ConversionCreateParams.User | null;
|
|
88
|
+
/**
|
|
89
|
+
* Monetary value associated with the event.
|
|
90
|
+
*/
|
|
91
|
+
value?: number | null;
|
|
92
|
+
}
|
|
93
|
+
export declare namespace ConversionCreateParams {
|
|
94
|
+
/**
|
|
95
|
+
* Tracking and attribution context.
|
|
96
|
+
*/
|
|
97
|
+
interface Context {
|
|
98
|
+
/**
|
|
99
|
+
* Ad campaign ID.
|
|
100
|
+
*/
|
|
101
|
+
ad_campaign_id?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Ad ID.
|
|
104
|
+
*/
|
|
105
|
+
ad_id?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Ad set ID.
|
|
108
|
+
*/
|
|
109
|
+
ad_set_id?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Facebook click ID.
|
|
112
|
+
*/
|
|
113
|
+
fbclid?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Facebook browser pixel ID.
|
|
116
|
+
*/
|
|
117
|
+
fbp?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Google Analytics client ID.
|
|
120
|
+
*/
|
|
121
|
+
ga?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
* Google click ID.
|
|
124
|
+
*/
|
|
125
|
+
gclid?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Instagram session ID.
|
|
128
|
+
*/
|
|
129
|
+
ig_sid?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* IP address.
|
|
132
|
+
*/
|
|
133
|
+
ip_address?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* TikTok click ID.
|
|
136
|
+
*/
|
|
137
|
+
ttclid?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* TikTok pixel ID.
|
|
140
|
+
*/
|
|
141
|
+
ttp?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* Browser user agent string.
|
|
144
|
+
*/
|
|
145
|
+
user_agent?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* UTM campaign parameter.
|
|
148
|
+
*/
|
|
149
|
+
utm_campaign?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* UTM content parameter.
|
|
152
|
+
*/
|
|
153
|
+
utm_content?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* UTM ID parameter.
|
|
156
|
+
*/
|
|
157
|
+
utm_id?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* UTM medium parameter.
|
|
160
|
+
*/
|
|
161
|
+
utm_medium?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* UTM source parameter.
|
|
164
|
+
*/
|
|
165
|
+
utm_source?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* UTM term parameter.
|
|
168
|
+
*/
|
|
169
|
+
utm_term?: string | null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* User identity and profile data.
|
|
173
|
+
*/
|
|
174
|
+
interface User {
|
|
175
|
+
/**
|
|
176
|
+
* An anonymous identifier for the user.
|
|
177
|
+
*/
|
|
178
|
+
anonymous_id?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* Date of birth (YYYY-MM-DD).
|
|
181
|
+
*/
|
|
182
|
+
birthdate?: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* City.
|
|
185
|
+
*/
|
|
186
|
+
city?: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* Country.
|
|
189
|
+
*/
|
|
190
|
+
country?: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* Email address.
|
|
193
|
+
*/
|
|
194
|
+
email?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* An external identifier for the user.
|
|
197
|
+
*/
|
|
198
|
+
external_id?: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* First name.
|
|
201
|
+
*/
|
|
202
|
+
first_name?: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* Gender
|
|
205
|
+
*/
|
|
206
|
+
gender?: 'male' | 'female' | null;
|
|
207
|
+
/**
|
|
208
|
+
* Last name.
|
|
209
|
+
*/
|
|
210
|
+
last_name?: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* The Whop member ID.
|
|
213
|
+
*/
|
|
214
|
+
member_id?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* The Whop membership ID.
|
|
217
|
+
*/
|
|
218
|
+
membership_id?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Full display name.
|
|
221
|
+
*/
|
|
222
|
+
name?: string | null;
|
|
223
|
+
/**
|
|
224
|
+
* Phone number.
|
|
225
|
+
*/
|
|
226
|
+
phone?: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* Postal code.
|
|
229
|
+
*/
|
|
230
|
+
postal_code?: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* State or region.
|
|
233
|
+
*/
|
|
234
|
+
state?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The Whop user ID.
|
|
237
|
+
*/
|
|
238
|
+
user_id?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Username.
|
|
241
|
+
*/
|
|
242
|
+
username?: string | null;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
export declare namespace Conversions {
|
|
246
|
+
export { type ConversionCreateResponse as ConversionCreateResponse, type ConversionCreateParams as ConversionCreateParams, };
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=conversions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.d.mts","sourceRoot":"","sources":["../src/resources/conversions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,GAAG,uBAAuB,GAAG,UAAU,GAAG,QAAQ,CAAC;IAExG;;OAEG;IACH,aAAa,CAAC,EACV,OAAO,GACP,SAAS,GACT,KAAK,GACL,YAAY,GACZ,MAAM,GACN,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,GACpB,OAAO,GACP,IAAI,CAAC;IAET;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,OAAO,GAAG,IAAI,CAAC;IAEhD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;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