@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
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
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.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../src/resources/conversions.ts"],"names":[],"mappings":"OAEO,E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W,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.Conversions = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Conversions
|
|
8
|
+
*/
|
|
9
|
+
class Conversions extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Track a conversion or engagement event for a company.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `event:create`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const conversion = await client.conversions.create({
|
|
20
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
21
|
+
* event_name: 'lead',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this._client.post('/conversions', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Conversions = Conversions;
|
|
30
|
+
//# sourceMappingURL=conversions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.js","sourceRoot":"","sources":["../src/resources/conversions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAnBD,kCAmBC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Conversions
|
|
5
|
+
*/
|
|
6
|
+
export class Conversions extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Track a conversion or engagement event for a company.
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `event:create`
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const conversion = await client.conversions.create({
|
|
17
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
18
|
+
* event_name: 'lead',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/conversions', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=conversions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.mjs","sourceRoot":"","sources":["../src/resources/conversions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -6,6 +6,24 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
* Course chapters
|
|
7
7
|
*/
|
|
8
8
|
export declare class CourseChapters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of chapters within a course, ordered by position.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `courses:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
20
|
+
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query: CourseChapterListParams, options?: RequestOptions): PagePromise<CourseChapterListResponsesCursorPage, CourseChapterListResponse>;
|
|
9
27
|
/**
|
|
10
28
|
* Create a new chapter within a course to organize lessons into sections.
|
|
11
29
|
*
|
|
@@ -52,24 +70,6 @@ export declare class CourseChapters extends APIResource {
|
|
|
52
70
|
* ```
|
|
53
71
|
*/
|
|
54
72
|
update(id: string, body: CourseChapterUpdateParams, options?: RequestOptions): APIPromise<CourseChapter>;
|
|
55
|
-
/**
|
|
56
|
-
* Returns a paginated list of chapters within a course, ordered by position.
|
|
57
|
-
*
|
|
58
|
-
* Required permissions:
|
|
59
|
-
*
|
|
60
|
-
* - `courses:read`
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```ts
|
|
64
|
-
* // Automatically fetches more pages as needed.
|
|
65
|
-
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
66
|
-
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
67
|
-
* )) {
|
|
68
|
-
* // ...
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
list(query: CourseChapterListParams, options?: RequestOptions): PagePromise<CourseChapterListResponsesCursorPage, CourseChapterListResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Permanently delete a chapter and all of its lessons from a course.
|
|
75
75
|
*
|
|
@@ -152,23 +152,6 @@ export interface CourseChapterListResponse {
|
|
|
152
152
|
* Represents `true` or `false` values.
|
|
153
153
|
*/
|
|
154
154
|
export type CourseChapterDeleteResponse = boolean;
|
|
155
|
-
export interface CourseChapterCreateParams {
|
|
156
|
-
/**
|
|
157
|
-
* The unique identifier of the course to create the chapter in (e.g.,
|
|
158
|
-
* "course_XXXXX").
|
|
159
|
-
*/
|
|
160
|
-
course_id: string;
|
|
161
|
-
/**
|
|
162
|
-
* The display title of the chapter (e.g., "Module 1: Introduction").
|
|
163
|
-
*/
|
|
164
|
-
title?: string | null;
|
|
165
|
-
}
|
|
166
|
-
export interface CourseChapterUpdateParams {
|
|
167
|
-
/**
|
|
168
|
-
* The new display title of the chapter (e.g., "Module 1: Introduction").
|
|
169
|
-
*/
|
|
170
|
-
title: string;
|
|
171
|
-
}
|
|
172
155
|
export interface CourseChapterListParams extends CursorPageParams {
|
|
173
156
|
/**
|
|
174
157
|
* The unique identifier of the course to list chapters for.
|
|
@@ -187,7 +170,24 @@ export interface CourseChapterListParams extends CursorPageParams {
|
|
|
187
170
|
*/
|
|
188
171
|
last?: number | null;
|
|
189
172
|
}
|
|
173
|
+
export interface CourseChapterCreateParams {
|
|
174
|
+
/**
|
|
175
|
+
* The unique identifier of the course to create the chapter in (e.g.,
|
|
176
|
+
* "course_XXXXX").
|
|
177
|
+
*/
|
|
178
|
+
course_id: string;
|
|
179
|
+
/**
|
|
180
|
+
* The display title of the chapter (e.g., "Module 1: Introduction").
|
|
181
|
+
*/
|
|
182
|
+
title?: string | null;
|
|
183
|
+
}
|
|
184
|
+
export interface CourseChapterUpdateParams {
|
|
185
|
+
/**
|
|
186
|
+
* The new display title of the chapter (e.g., "Module 1: Introduction").
|
|
187
|
+
*/
|
|
188
|
+
title: string;
|
|
189
|
+
}
|
|
190
190
|
export declare namespace CourseChapters {
|
|
191
|
-
export { type CourseChapter as CourseChapter, type CourseChapterListResponse as CourseChapterListResponse, type CourseChapterDeleteResponse as CourseChapterDeleteResponse, type CourseChapterListResponsesCursorPage as CourseChapterListResponsesCursorPage, type
|
|
191
|
+
export { type CourseChapter as CourseChapter, type CourseChapterListResponse as CourseChapterListResponse, type CourseChapterDeleteResponse as CourseChapterDeleteResponse, type CourseChapterListResponsesCursorPage as CourseChapterListResponsesCursorPage, type CourseChapterListParams as CourseChapterListParams, type CourseChapterCreateParams as CourseChapterCreateParams, type CourseChapterUpdateParams as CourseChapterUpdateParams, };
|
|
192
192
|
}
|
|
193
193
|
//# sourceMappingURL=course-chapters.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-chapters.d.mts","sourceRoot":"","sources":["../src/resources/course-chapters.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,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzE;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIxG
|
|
1
|
+
{"version":3,"file":"course-chapters.d.mts","sourceRoot":"","sources":["../src/resources/course-chapters.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,cAAe,SAAQ,WAAW;IAC7C;;;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E,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAElD,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -6,6 +6,24 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
* Course chapters
|
|
7
7
|
*/
|
|
8
8
|
export declare class CourseChapters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of chapters within a course, ordered by position.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `courses:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
20
|
+
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query: CourseChapterListParams, options?: RequestOptions): PagePromise<CourseChapterListResponsesCursorPage, CourseChapterListResponse>;
|
|
9
27
|
/**
|
|
10
28
|
* Create a new chapter within a course to organize lessons into sections.
|
|
11
29
|
*
|
|
@@ -52,24 +70,6 @@ export declare class CourseChapters extends APIResource {
|
|
|
52
70
|
* ```
|
|
53
71
|
*/
|
|
54
72
|
update(id: string, body: CourseChapterUpdateParams, options?: RequestOptions): APIPromise<CourseChapter>;
|
|
55
|
-
/**
|
|
56
|
-
* Returns a paginated list of chapters within a course, ordered by position.
|
|
57
|
-
*
|
|
58
|
-
* Required permissions:
|
|
59
|
-
*
|
|
60
|
-
* - `courses:read`
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```ts
|
|
64
|
-
* // Automatically fetches more pages as needed.
|
|
65
|
-
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
66
|
-
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
67
|
-
* )) {
|
|
68
|
-
* // ...
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
list(query: CourseChapterListParams, options?: RequestOptions): PagePromise<CourseChapterListResponsesCursorPage, CourseChapterListResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Permanently delete a chapter and all of its lessons from a course.
|
|
75
75
|
*
|
|
@@ -152,23 +152,6 @@ export interface CourseChapterListResponse {
|
|
|
152
152
|
* Represents `true` or `false` values.
|
|
153
153
|
*/
|
|
154
154
|
export type CourseChapterDeleteResponse = boolean;
|
|
155
|
-
export interface CourseChapterCreateParams {
|
|
156
|
-
/**
|
|
157
|
-
* The unique identifier of the course to create the chapter in (e.g.,
|
|
158
|
-
* "course_XXXXX").
|
|
159
|
-
*/
|
|
160
|
-
course_id: string;
|
|
161
|
-
/**
|
|
162
|
-
* The display title of the chapter (e.g., "Module 1: Introduction").
|
|
163
|
-
*/
|
|
164
|
-
title?: string | null;
|
|
165
|
-
}
|
|
166
|
-
export interface CourseChapterUpdateParams {
|
|
167
|
-
/**
|
|
168
|
-
* The new display title of the chapter (e.g., "Module 1: Introduction").
|
|
169
|
-
*/
|
|
170
|
-
title: string;
|
|
171
|
-
}
|
|
172
155
|
export interface CourseChapterListParams extends CursorPageParams {
|
|
173
156
|
/**
|
|
174
157
|
* The unique identifier of the course to list chapters for.
|
|
@@ -187,7 +170,24 @@ export interface CourseChapterListParams extends CursorPageParams {
|
|
|
187
170
|
*/
|
|
188
171
|
last?: number | null;
|
|
189
172
|
}
|
|
173
|
+
export interface CourseChapterCreateParams {
|
|
174
|
+
/**
|
|
175
|
+
* The unique identifier of the course to create the chapter in (e.g.,
|
|
176
|
+
* "course_XXXXX").
|
|
177
|
+
*/
|
|
178
|
+
course_id: string;
|
|
179
|
+
/**
|
|
180
|
+
* The display title of the chapter (e.g., "Module 1: Introduction").
|
|
181
|
+
*/
|
|
182
|
+
title?: string | null;
|
|
183
|
+
}
|
|
184
|
+
export interface CourseChapterUpdateParams {
|
|
185
|
+
/**
|
|
186
|
+
* The new display title of the chapter (e.g., "Module 1: Introduction").
|
|
187
|
+
*/
|
|
188
|
+
title: string;
|
|
189
|
+
}
|
|
190
190
|
export declare namespace CourseChapters {
|
|
191
|
-
export { type CourseChapter as CourseChapter, type CourseChapterListResponse as CourseChapterListResponse, type CourseChapterDeleteResponse as CourseChapterDeleteResponse, type CourseChapterListResponsesCursorPage as CourseChapterListResponsesCursorPage, type
|
|
191
|
+
export { type CourseChapter as CourseChapter, type CourseChapterListResponse as CourseChapterListResponse, type CourseChapterDeleteResponse as CourseChapterDeleteResponse, type CourseChapterListResponsesCursorPage as CourseChapterListResponsesCursorPage, type CourseChapterListParams as CourseChapterListParams, type CourseChapterCreateParams as CourseChapterCreateParams, type CourseChapterUpdateParams as CourseChapterUpdateParams, };
|
|
192
192
|
}
|
|
193
193
|
//# sourceMappingURL=course-chapters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-chapters.d.ts","sourceRoot":"","sources":["../src/resources/course-chapters.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,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzE;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIxG
|
|
1
|
+
{"version":3,"file":"course-chapters.d.ts","sourceRoot":"","sources":["../src/resources/course-chapters.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,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GAC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MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAElD,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -9,6 +9,29 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Course chapters
|
|
10
10
|
*/
|
|
11
11
|
class CourseChapters extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of chapters within a course, ordered by position.
|
|
14
|
+
*
|
|
15
|
+
* Required permissions:
|
|
16
|
+
*
|
|
17
|
+
* - `courses:read`
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
23
|
+
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
24
|
+
* )) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(query, options) {
|
|
30
|
+
return this._client.getAPIList('/course_chapters', (pagination_1.CursorPage), {
|
|
31
|
+
query,
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
12
35
|
/**
|
|
13
36
|
* Create a new chapter within a course to organize lessons into sections.
|
|
14
37
|
*
|
|
@@ -61,29 +84,6 @@ class CourseChapters extends resource_1.APIResource {
|
|
|
61
84
|
update(id, body, options) {
|
|
62
85
|
return this._client.patch((0, path_1.path) `/course_chapters/${id}`, { body, ...options });
|
|
63
86
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Returns a paginated list of chapters within a course, ordered by position.
|
|
66
|
-
*
|
|
67
|
-
* Required permissions:
|
|
68
|
-
*
|
|
69
|
-
* - `courses:read`
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* // Automatically fetches more pages as needed.
|
|
74
|
-
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
75
|
-
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
76
|
-
* )) {
|
|
77
|
-
* // ...
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
list(query, options) {
|
|
82
|
-
return this._client.getAPIList('/course_chapters', (pagination_1.CursorPage), {
|
|
83
|
-
query,
|
|
84
|
-
...options,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
87
|
/**
|
|
88
88
|
* Permanently delete a chapter and all of its lessons from a course.
|
|
89
89
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-chapters.js","sourceRoot":"","sources":["../src/resources/course-chapters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAo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AAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAU,EAAE,IAA+B,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AApGD,wCAoGC"}
|
|
@@ -6,6 +6,29 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Course chapters
|
|
7
7
|
*/
|
|
8
8
|
export class CourseChapters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of chapters within a course, ordered by position.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `courses:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
20
|
+
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query, options) {
|
|
27
|
+
return this._client.getAPIList('/course_chapters', (CursorPage), {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
9
32
|
/**
|
|
10
33
|
* Create a new chapter within a course to organize lessons into sections.
|
|
11
34
|
*
|
|
@@ -58,29 +81,6 @@ export class CourseChapters extends APIResource {
|
|
|
58
81
|
update(id, body, options) {
|
|
59
82
|
return this._client.patch(path `/course_chapters/${id}`, { body, ...options });
|
|
60
83
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Returns a paginated list of chapters within a course, ordered by position.
|
|
63
|
-
*
|
|
64
|
-
* Required permissions:
|
|
65
|
-
*
|
|
66
|
-
* - `courses:read`
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* // Automatically fetches more pages as needed.
|
|
71
|
-
* for await (const courseChapterListResponse of client.courseChapters.list(
|
|
72
|
-
* { course_id: 'cors_xxxxxxxxxxxxx' },
|
|
73
|
-
* )) {
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
list(query, options) {
|
|
79
|
-
return this._client.getAPIList('/course_chapters', (CursorPage), {
|
|
80
|
-
query,
|
|
81
|
-
...options,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
84
|
/**
|
|
85
85
|
* Permanently delete a chapter and all of its lessons from a course.
|
|
86
86
|
*
|