@whop/sdk 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/client.d.mts +88 -40
- package/client.d.mts.map +1 -1
- package/client.d.ts +88 -40
- package/client.d.ts.map +1 -1
- package/client.js +59 -0
- package/client.js.map +1 -1
- package/client.mjs +59 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/accounts.d.mts +244 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +244 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +46 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +42 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/ad-campaigns.d.mts +296 -0
- package/resources/ad-campaigns.d.mts.map +1 -0
- package/resources/ad-campaigns.d.ts +296 -0
- package/resources/ad-campaigns.d.ts.map +1 -0
- package/resources/ad-campaigns.js +104 -0
- package/resources/ad-campaigns.js.map +1 -0
- package/resources/ad-campaigns.mjs +100 -0
- package/resources/ad-campaigns.mjs.map +1 -0
- package/resources/ad-groups.d.mts +1461 -0
- package/resources/ad-groups.d.mts.map +1 -0
- package/resources/ad-groups.d.ts +1461 -0
- package/resources/ad-groups.d.ts.map +1 -0
- package/resources/ad-groups.js +121 -0
- package/resources/ad-groups.js.map +1 -0
- package/resources/ad-groups.mjs +117 -0
- package/resources/ad-groups.mjs.map +1 -0
- package/resources/ad-reports.d.mts +379 -0
- package/resources/ad-reports.d.mts.map +1 -0
- package/resources/ad-reports.d.ts +379 -0
- package/resources/ad-reports.d.ts.map +1 -0
- package/resources/ad-reports.js +26 -0
- package/resources/ad-reports.js.map +1 -0
- package/resources/ad-reports.mjs +22 -0
- package/resources/ad-reports.mjs.map +1 -0
- package/resources/ads.d.mts +234 -0
- package/resources/ads.d.mts.map +1 -0
- package/resources/ads.d.ts +234 -0
- package/resources/ads.d.ts.map +1 -0
- package/resources/ads.js +56 -0
- package/resources/ads.js.map +1 -0
- package/resources/ads.mjs +52 -0
- package/resources/ads.mjs.map +1 -0
- package/resources/affiliates/affiliates.d.mts +31 -31
- package/resources/affiliates/affiliates.d.mts.map +1 -1
- package/resources/affiliates/affiliates.d.ts +31 -31
- package/resources/affiliates/affiliates.d.ts.map +1 -1
- package/resources/affiliates/affiliates.js +21 -21
- package/resources/affiliates/affiliates.js.map +1 -1
- package/resources/affiliates/affiliates.mjs +21 -21
- package/resources/affiliates/affiliates.mjs.map +1 -1
- package/resources/affiliates/index.d.mts +2 -2
- package/resources/affiliates/index.d.mts.map +1 -1
- package/resources/affiliates/index.d.ts +2 -2
- package/resources/affiliates/index.d.ts.map +1 -1
- package/resources/affiliates/overrides.d.mts +37 -37
- package/resources/affiliates/overrides.d.mts.map +1 -1
- package/resources/affiliates/overrides.d.ts +37 -37
- package/resources/affiliates/overrides.d.ts.map +1 -1
- package/resources/affiliates/overrides.js +23 -23
- package/resources/affiliates/overrides.js.map +1 -1
- package/resources/affiliates/overrides.mjs +23 -23
- package/resources/affiliates/overrides.mjs.map +1 -1
- package/resources/ai-chats.d.mts +23 -23
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +23 -23
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +6 -6
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +6 -6
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +54 -54
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +54 -54
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +21 -21
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +21 -21
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +57 -57
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +57 -57
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +15 -15
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +15 -15
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +36 -36
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +36 -36
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +21 -21
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +21 -21
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/bounties.d.mts +281 -0
- package/resources/bounties.d.mts.map +1 -0
- package/resources/bounties.d.ts +281 -0
- package/resources/bounties.d.ts.map +1 -0
- package/resources/bounties.js +63 -0
- package/resources/bounties.js.map +1 -0
- package/resources/bounties.mjs +59 -0
- package/resources/bounties.mjs.map +1 -0
- package/resources/chat-channels.d.mts +43 -43
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +43 -43
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +24 -24
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +24 -24
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +77 -49
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +77 -49
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +11 -11
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +11 -11
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +98 -35
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +98 -35
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +24 -17
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +24 -17
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +39 -39
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +39 -39
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +14 -14
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +14 -14
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/conversions.d.mts +248 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +248 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +30 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +26 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/course-chapters.d.mts +36 -36
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +36 -36
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +23 -23
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +23 -23
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +5 -5
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +5 -5
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +7 -7
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +7 -7
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +40 -40
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +40 -40
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +22 -22
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +22 -22
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +5 -5
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +5 -5
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +10 -10
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +10 -10
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +40 -40
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +40 -40
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +19 -19
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +19 -19
- package/resources/courses.mjs.map +1 -1
- package/resources/deposits.d.mts +64 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +64 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +16 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +12 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/dispute-alerts.d.mts +10 -10
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +10 -10
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +13 -13
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +13 -13
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +13 -15
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +13 -15
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +11 -11
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +11 -11
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +37 -37
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +37 -37
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +19 -19
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +19 -19
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +38 -38
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +38 -38
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +21 -21
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +21 -21
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +5 -5
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +5 -5
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -7
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -7
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +50 -50
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +50 -50
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +17 -17
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +17 -17
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +36 -36
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +36 -36
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +18 -18
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +18 -18
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +18 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +52 -48
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +52 -48
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +21 -21
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +21 -21
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +33 -33
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +33 -33
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +11 -11
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +11 -11
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +45 -35
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +45 -35
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +22 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +89 -84
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +89 -84
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +40 -40
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +40 -40
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +53 -53
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +53 -53
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +24 -24
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +24 -24
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +34 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +34 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -7
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +9 -7
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +7 -7
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +7 -7
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +67 -47
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +67 -47
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +38 -38
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +38 -38
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +36 -36
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +36 -36
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +16 -16
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +16 -16
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-methods.d.mts +20 -20
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +20 -20
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +10 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +10 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +177 -145
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +177 -145
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +68 -68
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +68 -68
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-accounts.d.mts +1 -1
- package/resources/payout-accounts.d.ts +1 -1
- package/resources/payout-methods.d.mts +5 -5
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +5 -5
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +10 -10
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +10 -10
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +130 -72
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +130 -72
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +21 -21
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +21 -21
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +81 -65
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +81 -65
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +25 -25
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +25 -25
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +59 -59
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +59 -59
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +22 -22
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +22 -22
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -25
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -25
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +11 -11
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +11 -11
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +59 -10
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +59 -10
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +12 -10
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +12 -10
- package/resources/refunds.mjs.map +1 -1
- package/resources/resolution-center-cases.d.mts +6 -6
- package/resources/resolution-center-cases.d.mts.map +1 -1
- package/resources/resolution-center-cases.d.ts +6 -6
- package/resources/resolution-center-cases.d.ts.map +1 -1
- package/resources/resolution-center-cases.js +10 -10
- package/resources/resolution-center-cases.js.map +1 -1
- package/resources/resolution-center-cases.mjs +10 -10
- package/resources/resolution-center-cases.mjs.map +1 -1
- package/resources/reviews.d.mts +4 -4
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +4 -4
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +6 -6
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +6 -6
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +6 -6
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +6 -6
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +11 -11
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +11 -11
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +100 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +100 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +35 -35
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +35 -35
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +20 -20
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +20 -20
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +42 -38
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +42 -38
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +21 -23
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +21 -23
- package/resources/support-channels.mjs.map +1 -1
- package/resources/swaps.d.mts +62 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +62 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +15 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +11 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transfers.d.mts +57 -55
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +57 -55
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +19 -19
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +19 -19
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +20 -20
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -20
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +16 -16
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +16 -16
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +2 -2
- package/resources/verifications.d.ts +2 -2
- package/resources/wallets.d.mts +89 -0
- package/resources/wallets.d.mts.map +1 -0
- package/resources/wallets.d.ts +89 -0
- package/resources/wallets.d.ts.map +1 -0
- package/resources/wallets.js +28 -0
- package/resources/wallets.js.map +1 -0
- package/resources/wallets.mjs +24 -0
- package/resources/wallets.mjs.map +1 -0
- package/resources/webhooks.d.mts +2182 -1196
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +2182 -1196
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +31 -31
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +31 -31
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +47 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +47 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +21 -21
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +21 -21
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +277 -60
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/accounts.ts +318 -0
- package/src/resources/ad-campaigns.ts +376 -0
- package/src/resources/ad-groups.ts +1958 -0
- package/src/resources/ad-reports.ts +484 -0
- package/src/resources/ads.ts +295 -0
- package/src/resources/affiliates/affiliates.ts +39 -39
- package/src/resources/affiliates/index.ts +2 -2
- package/src/resources/affiliates/overrides.ts +51 -51
- package/src/resources/ai-chats.ts +33 -33
- package/src/resources/app-builds.ts +68 -68
- package/src/resources/apps.ts +86 -86
- package/src/resources/authorized-users.ts +48 -48
- package/src/resources/bounties.ts +353 -0
- package/src/resources/chat-channels.ts +57 -57
- package/src/resources/checkout-configurations.ts +101 -67
- package/src/resources/companies.ts +123 -41
- package/src/resources/company-token-transactions.ts +55 -55
- package/src/resources/conversions.ts +316 -0
- package/src/resources/course-chapters.ts +47 -47
- package/src/resources/course-lesson-interactions.ts +12 -12
- package/src/resources/course-lessons.ts +54 -54
- package/src/resources/course-students.ts +12 -12
- package/src/resources/courses.ts +51 -51
- package/src/resources/deposits.ts +87 -0
- package/src/resources/dispute-alerts.ts +18 -18
- package/src/resources/disputes.ts +18 -20
- package/src/resources/dm-channels.ts +45 -45
- package/src/resources/dm-members.ts +45 -45
- package/src/resources/entries.ts +10 -10
- package/src/resources/experiences.ts +64 -64
- package/src/resources/fee-markups.ts +44 -44
- package/src/resources/files.ts +22 -0
- package/src/resources/forum-posts.ts +65 -60
- package/src/resources/forums.ts +44 -44
- package/src/resources/index.ts +129 -57
- package/src/resources/invoices.ts +116 -110
- package/src/resources/leads.ts +64 -64
- package/src/resources/ledger-accounts.ts +41 -1
- package/src/resources/members.ts +14 -12
- package/src/resources/memberships.ts +80 -61
- package/src/resources/messages.ts +48 -48
- package/src/resources/payment-methods.ts +30 -30
- package/src/resources/payments.ts +229 -183
- package/src/resources/payout-accounts.ts +1 -1
- package/src/resources/payout-methods.ts +11 -11
- package/src/resources/plans.ts +153 -90
- package/src/resources/products.ts +98 -84
- package/src/resources/promo-codes.ts +74 -74
- package/src/resources/reactions.ts +33 -33
- package/src/resources/refunds.ts +65 -15
- package/src/resources/resolution-center-cases.ts +11 -12
- package/src/resources/reviews.ts +7 -7
- package/src/resources/setup-intents.ts +13 -13
- package/src/resources/shared.ts +107 -5
- package/src/resources/shipments.ts +44 -44
- package/src/resources/support-channels.ts +54 -49
- package/src/resources/swaps.ts +87 -0
- package/src/resources/transfers.ts +68 -66
- package/src/resources/users.ts +29 -29
- package/src/resources/verifications.ts +2 -2
- package/src/resources/wallets.ts +136 -0
- package/src/resources/webhooks.ts +2449 -1277
- package/src/resources/withdrawals.ts +55 -55
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -7,6 +7,25 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
* Forum posts
|
|
8
8
|
*/
|
|
9
9
|
export declare class ForumPosts extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of forum posts within a specific experience, with
|
|
12
|
+
* optional filtering by parent post or pinned status.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `forum:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
22
|
+
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query: ForumPostListParams, options?: RequestOptions): PagePromise<ForumPostListResponsesCursorPage, ForumPostListResponse>;
|
|
10
29
|
/**
|
|
11
30
|
* Create a new forum post or comment within an experience. Supports text content,
|
|
12
31
|
* attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a
|
|
@@ -47,25 +66,6 @@ export declare class ForumPosts extends APIResource {
|
|
|
47
66
|
* ```
|
|
48
67
|
*/
|
|
49
68
|
update(id: string, body?: ForumPostUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.ForumPost>;
|
|
50
|
-
/**
|
|
51
|
-
* Returns a paginated list of forum posts within a specific experience, with
|
|
52
|
-
* optional filtering by parent post or pinned status.
|
|
53
|
-
*
|
|
54
|
-
* Required permissions:
|
|
55
|
-
*
|
|
56
|
-
* - `forum:read`
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* // Automatically fetches more pages as needed.
|
|
61
|
-
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
62
|
-
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
63
|
-
* )) {
|
|
64
|
-
* // ...
|
|
65
|
-
* }
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
list(query: ForumPostListParams, options?: RequestOptions): PagePromise<ForumPostListResponsesCursorPage, ForumPostListResponse>;
|
|
69
69
|
}
|
|
70
70
|
export type ForumPostListResponsesCursorPage = CursorPage<ForumPostListResponse>;
|
|
71
71
|
/**
|
|
@@ -184,6 +184,38 @@ export declare namespace ForumPostListResponse {
|
|
|
184
184
|
username: string;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
+
export interface ForumPostListParams extends CursorPageParams {
|
|
188
|
+
/**
|
|
189
|
+
* The unique identifier of the experience to list forum posts for.
|
|
190
|
+
*/
|
|
191
|
+
experience_id: string;
|
|
192
|
+
/**
|
|
193
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
194
|
+
*/
|
|
195
|
+
before?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
* Returns the first _n_ elements from the list.
|
|
198
|
+
*/
|
|
199
|
+
first?: number | null;
|
|
200
|
+
/**
|
|
201
|
+
* Whether to include top-level bounty discussion anchors as rich forum items.
|
|
202
|
+
*/
|
|
203
|
+
include_bounty_anchors?: boolean | null;
|
|
204
|
+
/**
|
|
205
|
+
* Returns the last _n_ elements from the list.
|
|
206
|
+
*/
|
|
207
|
+
last?: number | null;
|
|
208
|
+
/**
|
|
209
|
+
* The unique identifier of a parent post to list comments for. When set, returns
|
|
210
|
+
* replies to that post.
|
|
211
|
+
*/
|
|
212
|
+
parent_id?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Whether to filter for only pinned posts. Set to true to return only pinned
|
|
215
|
+
* posts.
|
|
216
|
+
*/
|
|
217
|
+
pinned?: boolean | null;
|
|
218
|
+
}
|
|
187
219
|
export interface ForumPostCreateParams {
|
|
188
220
|
/**
|
|
189
221
|
* The unique identifier of the experience to create this post in. For example,
|
|
@@ -320,35 +352,7 @@ export declare namespace ForumPostUpdateParams {
|
|
|
320
352
|
id: string;
|
|
321
353
|
}
|
|
322
354
|
}
|
|
323
|
-
export interface ForumPostListParams extends CursorPageParams {
|
|
324
|
-
/**
|
|
325
|
-
* The unique identifier of the experience to list forum posts for.
|
|
326
|
-
*/
|
|
327
|
-
experience_id: string;
|
|
328
|
-
/**
|
|
329
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
330
|
-
*/
|
|
331
|
-
before?: string | null;
|
|
332
|
-
/**
|
|
333
|
-
* Returns the first _n_ elements from the list.
|
|
334
|
-
*/
|
|
335
|
-
first?: number | null;
|
|
336
|
-
/**
|
|
337
|
-
* Returns the last _n_ elements from the list.
|
|
338
|
-
*/
|
|
339
|
-
last?: number | null;
|
|
340
|
-
/**
|
|
341
|
-
* The unique identifier of a parent post to list comments for. When set, returns
|
|
342
|
-
* replies to that post.
|
|
343
|
-
*/
|
|
344
|
-
parent_id?: string | null;
|
|
345
|
-
/**
|
|
346
|
-
* Whether to filter for only pinned posts. Set to true to return only pinned
|
|
347
|
-
* posts.
|
|
348
|
-
*/
|
|
349
|
-
pinned?: boolean | null;
|
|
350
|
-
}
|
|
351
355
|
export declare namespace ForumPosts {
|
|
352
|
-
export { type ForumPostVisibilityType as ForumPostVisibilityType, type ForumPostListResponse as ForumPostListResponse, type ForumPostListResponsesCursorPage as ForumPostListResponsesCursorPage, type
|
|
356
|
+
export { type ForumPostVisibilityType as ForumPostVisibilityType, type ForumPostListResponse as ForumPostListResponse, type ForumPostListResponsesCursorPage as ForumPostListResponsesCursorPage, type ForumPostListParams as ForumPostListParams, type ForumPostCreateParams as ForumPostCreateParams, type ForumPostUpdateParams as ForumPostUpdateParams, };
|
|
353
357
|
}
|
|
354
358
|
//# sourceMappingURL=forum-posts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forum-posts.d.ts","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAI3F;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAI5E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,qBAAqB,GAAG,IA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AAC;IACrC;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC7B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAE7D;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;CAC7C;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/forum-posts.js
CHANGED
|
@@ -9,6 +9,27 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Forum posts
|
|
10
10
|
*/
|
|
11
11
|
class ForumPosts extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of forum posts within a specific experience, with
|
|
14
|
+
* optional filtering by parent post or pinned status.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `forum:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
24
|
+
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
25
|
+
* )) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query, options) {
|
|
31
|
+
return this._client.getAPIList('/forum_posts', (pagination_1.CursorPage), { query, ...options });
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a new forum post or comment within an experience. Supports text content,
|
|
14
35
|
* attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a
|
|
@@ -55,27 +76,6 @@ class ForumPosts extends resource_1.APIResource {
|
|
|
55
76
|
update(id, body = {}, options) {
|
|
56
77
|
return this._client.patch((0, path_1.path) `/forum_posts/${id}`, { body, ...options });
|
|
57
78
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Returns a paginated list of forum posts within a specific experience, with
|
|
60
|
-
* optional filtering by parent post or pinned status.
|
|
61
|
-
*
|
|
62
|
-
* Required permissions:
|
|
63
|
-
*
|
|
64
|
-
* - `forum:read`
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* // Automatically fetches more pages as needed.
|
|
69
|
-
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
70
|
-
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
71
|
-
* )) {
|
|
72
|
-
* // ...
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
list(query, options) {
|
|
77
|
-
return this._client.getAPIList('/forum_posts', (pagination_1.CursorPage), { query, ...options });
|
|
78
|
-
}
|
|
79
79
|
}
|
|
80
80
|
exports.ForumPosts = ForumPosts;
|
|
81
81
|
//# sourceMappingURL=forum-posts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forum-posts.js","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC
|
|
1
|
+
{"version":3,"file":"forum-posts.js","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,uBAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,OAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA9ED,gCA8EC"}
|
|
@@ -6,6 +6,27 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Forum posts
|
|
7
7
|
*/
|
|
8
8
|
export class ForumPosts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of forum posts within a specific experience, with
|
|
11
|
+
* optional filtering by parent post or pinned status.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `forum:read`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
21
|
+
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
22
|
+
* )) {
|
|
23
|
+
* // ...
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(query, options) {
|
|
28
|
+
return this._client.getAPIList('/forum_posts', (CursorPage), { query, ...options });
|
|
29
|
+
}
|
|
9
30
|
/**
|
|
10
31
|
* Create a new forum post or comment within an experience. Supports text content,
|
|
11
32
|
* attachments, polls, paywalling, and pinning. Pass experience_id 'public' with a
|
|
@@ -52,26 +73,5 @@ export class ForumPosts extends APIResource {
|
|
|
52
73
|
update(id, body = {}, options) {
|
|
53
74
|
return this._client.patch(path `/forum_posts/${id}`, { body, ...options });
|
|
54
75
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns a paginated list of forum posts within a specific experience, with
|
|
57
|
-
* optional filtering by parent post or pinned status.
|
|
58
|
-
*
|
|
59
|
-
* Required permissions:
|
|
60
|
-
*
|
|
61
|
-
* - `forum:read`
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* // Automatically fetches more pages as needed.
|
|
66
|
-
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
67
|
-
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
68
|
-
* )) {
|
|
69
|
-
* // ...
|
|
70
|
-
* }
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
list(query, options) {
|
|
74
|
-
return this._client.getAPIList('/forum_posts', (CursorPage), { query, ...options });
|
|
75
|
-
}
|
|
76
76
|
}
|
|
77
77
|
//# sourceMappingURL=forum-posts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forum-posts.mjs","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC
|
|
1
|
+
{"version":3,"file":"forum-posts.mjs","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,UAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,OAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
package/resources/forums.d.mts
CHANGED
|
@@ -7,6 +7,15 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
* Forums
|
|
8
8
|
*/
|
|
9
9
|
export declare class Forums extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of forums within a specific company, with optional
|
|
12
|
+
* filtering by product.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `forum:read`
|
|
17
|
+
*/
|
|
18
|
+
list(query: ForumListParams, options?: RequestOptions): PagePromise<ForumListResponsesCursorPage, ForumListResponse>;
|
|
10
19
|
/**
|
|
11
20
|
* Retrieves the details of an existing forum.
|
|
12
21
|
*
|
|
@@ -24,15 +33,6 @@ export declare class Forums extends APIResource {
|
|
|
24
33
|
* - `forum:moderate`
|
|
25
34
|
*/
|
|
26
35
|
update(id: string, body?: ForumUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Forum>;
|
|
27
|
-
/**
|
|
28
|
-
* Returns a paginated list of forums within a specific company, with optional
|
|
29
|
-
* filtering by product.
|
|
30
|
-
*
|
|
31
|
-
* Required permissions:
|
|
32
|
-
*
|
|
33
|
-
* - `forum:read`
|
|
34
|
-
*/
|
|
35
|
-
list(query: ForumListParams, options?: RequestOptions): PagePromise<ForumListResponsesCursorPage, ForumListResponse>;
|
|
36
36
|
}
|
|
37
37
|
export type ForumListResponsesCursorPage = CursorPage<ForumListResponse>;
|
|
38
38
|
/**
|
|
@@ -80,6 +80,29 @@ export declare namespace ForumListResponse {
|
|
|
80
80
|
name: string;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
export interface ForumListParams extends CursorPageParams {
|
|
84
|
+
/**
|
|
85
|
+
* The unique identifier of the company to list forums for.
|
|
86
|
+
*/
|
|
87
|
+
company_id: string;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
90
|
+
*/
|
|
91
|
+
before?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the first _n_ elements from the list.
|
|
94
|
+
*/
|
|
95
|
+
first?: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the last _n_ elements from the list.
|
|
98
|
+
*/
|
|
99
|
+
last?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of a product to filter by. When set, only forums connected
|
|
102
|
+
* to this product are returned.
|
|
103
|
+
*/
|
|
104
|
+
product_id?: string | null;
|
|
105
|
+
}
|
|
83
106
|
export interface ForumUpdateParams {
|
|
84
107
|
/**
|
|
85
108
|
* A list of words that are automatically blocked from posts in this forum. For
|
|
@@ -116,30 +139,7 @@ export declare namespace ForumUpdateParams {
|
|
|
116
139
|
id: string;
|
|
117
140
|
}
|
|
118
141
|
}
|
|
119
|
-
export interface ForumListParams extends CursorPageParams {
|
|
120
|
-
/**
|
|
121
|
-
* The unique identifier of the company to list forums for.
|
|
122
|
-
*/
|
|
123
|
-
company_id: string;
|
|
124
|
-
/**
|
|
125
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
126
|
-
*/
|
|
127
|
-
before?: string | null;
|
|
128
|
-
/**
|
|
129
|
-
* Returns the first _n_ elements from the list.
|
|
130
|
-
*/
|
|
131
|
-
first?: number | null;
|
|
132
|
-
/**
|
|
133
|
-
* Returns the last _n_ elements from the list.
|
|
134
|
-
*/
|
|
135
|
-
last?: number | null;
|
|
136
|
-
/**
|
|
137
|
-
* The unique identifier of a product to filter by. When set, only forums connected
|
|
138
|
-
* to this product are returned.
|
|
139
|
-
*/
|
|
140
|
-
product_id?: string | null;
|
|
141
|
-
}
|
|
142
142
|
export declare namespace Forums {
|
|
143
|
-
export { type ForumListResponse as ForumListResponse, type ForumListResponsesCursorPage as ForumListResponsesCursorPage, type
|
|
143
|
+
export { type ForumListResponse as ForumListResponse, type ForumListResponsesCursorPage as ForumListResponsesCursorPage, type ForumListParams as ForumListParams, type ForumUpdateParams as ForumUpdateParams, };
|
|
144
144
|
}
|
|
145
145
|
//# sourceMappingURL=forums.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forums.d.mts","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC;IAIxE;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"forums.d.mts","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,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,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEpC;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC,WAAW,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC,4BAA4B,GAAG,IAAI,CAAC;IAE3E;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAEnD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC;CAC9C;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;;OAGG;IACH,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/forums.d.ts
CHANGED
|
@@ -7,6 +7,15 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
* Forums
|
|
8
8
|
*/
|
|
9
9
|
export declare class Forums extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of forums within a specific company, with optional
|
|
12
|
+
* filtering by product.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `forum:read`
|
|
17
|
+
*/
|
|
18
|
+
list(query: ForumListParams, options?: RequestOptions): PagePromise<ForumListResponsesCursorPage, ForumListResponse>;
|
|
10
19
|
/**
|
|
11
20
|
* Retrieves the details of an existing forum.
|
|
12
21
|
*
|
|
@@ -24,15 +33,6 @@ export declare class Forums extends APIResource {
|
|
|
24
33
|
* - `forum:moderate`
|
|
25
34
|
*/
|
|
26
35
|
update(id: string, body?: ForumUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Forum>;
|
|
27
|
-
/**
|
|
28
|
-
* Returns a paginated list of forums within a specific company, with optional
|
|
29
|
-
* filtering by product.
|
|
30
|
-
*
|
|
31
|
-
* Required permissions:
|
|
32
|
-
*
|
|
33
|
-
* - `forum:read`
|
|
34
|
-
*/
|
|
35
|
-
list(query: ForumListParams, options?: RequestOptions): PagePromise<ForumListResponsesCursorPage, ForumListResponse>;
|
|
36
36
|
}
|
|
37
37
|
export type ForumListResponsesCursorPage = CursorPage<ForumListResponse>;
|
|
38
38
|
/**
|
|
@@ -80,6 +80,29 @@ export declare namespace ForumListResponse {
|
|
|
80
80
|
name: string;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
export interface ForumListParams extends CursorPageParams {
|
|
84
|
+
/**
|
|
85
|
+
* The unique identifier of the company to list forums for.
|
|
86
|
+
*/
|
|
87
|
+
company_id: string;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
90
|
+
*/
|
|
91
|
+
before?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the first _n_ elements from the list.
|
|
94
|
+
*/
|
|
95
|
+
first?: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the last _n_ elements from the list.
|
|
98
|
+
*/
|
|
99
|
+
last?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of a product to filter by. When set, only forums connected
|
|
102
|
+
* to this product are returned.
|
|
103
|
+
*/
|
|
104
|
+
product_id?: string | null;
|
|
105
|
+
}
|
|
83
106
|
export interface ForumUpdateParams {
|
|
84
107
|
/**
|
|
85
108
|
* A list of words that are automatically blocked from posts in this forum. For
|
|
@@ -116,30 +139,7 @@ export declare namespace ForumUpdateParams {
|
|
|
116
139
|
id: string;
|
|
117
140
|
}
|
|
118
141
|
}
|
|
119
|
-
export interface ForumListParams extends CursorPageParams {
|
|
120
|
-
/**
|
|
121
|
-
* The unique identifier of the company to list forums for.
|
|
122
|
-
*/
|
|
123
|
-
company_id: string;
|
|
124
|
-
/**
|
|
125
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
126
|
-
*/
|
|
127
|
-
before?: string | null;
|
|
128
|
-
/**
|
|
129
|
-
* Returns the first _n_ elements from the list.
|
|
130
|
-
*/
|
|
131
|
-
first?: number | null;
|
|
132
|
-
/**
|
|
133
|
-
* Returns the last _n_ elements from the list.
|
|
134
|
-
*/
|
|
135
|
-
last?: number | null;
|
|
136
|
-
/**
|
|
137
|
-
* The unique identifier of a product to filter by. When set, only forums connected
|
|
138
|
-
* to this product are returned.
|
|
139
|
-
*/
|
|
140
|
-
product_id?: string | null;
|
|
141
|
-
}
|
|
142
142
|
export declare namespace Forums {
|
|
143
|
-
export { type ForumListResponse as ForumListResponse, type ForumListResponsesCursorPage as ForumListResponsesCursorPage, type
|
|
143
|
+
export { type ForumListResponse as ForumListResponse, type ForumListResponsesCursorPage as ForumListResponsesCursorPage, type ForumListParams as ForumListParams, type ForumUpdateParams as ForumUpdateParams, };
|
|
144
144
|
}
|
|
145
145
|
//# sourceMappingURL=forums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forums.d.ts","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;OAMG;IACH,QA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AiB,IAAI,iBAAiB,EAC3C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/forums.js
CHANGED
|
@@ -9,6 +9,17 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Forums
|
|
10
10
|
*/
|
|
11
11
|
class Forums extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of forums within a specific company, with optional
|
|
14
|
+
* filtering by product.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `forum:read`
|
|
19
|
+
*/
|
|
20
|
+
list(query, options) {
|
|
21
|
+
return this._client.getAPIList('/forums', (pagination_1.CursorPage), { query, ...options });
|
|
22
|
+
}
|
|
12
23
|
/**
|
|
13
24
|
* Retrieves the details of an existing forum.
|
|
14
25
|
*
|
|
@@ -30,17 +41,6 @@ class Forums extends resource_1.APIResource {
|
|
|
30
41
|
update(id, body = {}, options) {
|
|
31
42
|
return this._client.patch((0, path_1.path) `/forums/${id}`, { body, ...options });
|
|
32
43
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Returns a paginated list of forums within a specific company, with optional
|
|
35
|
-
* filtering by product.
|
|
36
|
-
*
|
|
37
|
-
* Required permissions:
|
|
38
|
-
*
|
|
39
|
-
* - `forum:read`
|
|
40
|
-
*/
|
|
41
|
-
list(query, options) {
|
|
42
|
-
return this._client.getAPIList('/forums', (pagination_1.CursorPage), { query, ...options });
|
|
43
|
-
}
|
|
44
44
|
}
|
|
45
45
|
exports.Forums = Forums;
|
|
46
46
|
//# sourceMappingURL=forums.js.map
|
package/resources/forums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forums.js","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"forums.js","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,uBAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA1CD,wBA0CC"}
|
package/resources/forums.mjs
CHANGED
|
@@ -6,6 +6,17 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Forums
|
|
7
7
|
*/
|
|
8
8
|
export class Forums extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of forums within a specific company, with optional
|
|
11
|
+
* filtering by product.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `forum:read`
|
|
16
|
+
*/
|
|
17
|
+
list(query, options) {
|
|
18
|
+
return this._client.getAPIList('/forums', (CursorPage), { query, ...options });
|
|
19
|
+
}
|
|
9
20
|
/**
|
|
10
21
|
* Retrieves the details of an existing forum.
|
|
11
22
|
*
|
|
@@ -27,16 +38,5 @@ export class Forums extends APIResource {
|
|
|
27
38
|
update(id, body = {}, options) {
|
|
28
39
|
return this._client.patch(path `/forums/${id}`, { body, ...options });
|
|
29
40
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Returns a paginated list of forums within a specific company, with optional
|
|
32
|
-
* filtering by product.
|
|
33
|
-
*
|
|
34
|
-
* Required permissions:
|
|
35
|
-
*
|
|
36
|
-
* - `forum:read`
|
|
37
|
-
*/
|
|
38
|
-
list(query, options) {
|
|
39
|
-
return this._client.getAPIList('/forums', (CursorPage), { query, ...options });
|
|
40
|
-
}
|
|
41
41
|
}
|
|
42
42
|
//# sourceMappingURL=forums.mjs.map
|
package/resources/forums.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forums.mjs","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"forums.mjs","sourceRoot":"","sources":["../src/resources/forums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,UAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|