@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,281 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Bounties
|
|
8
|
+
*/
|
|
9
|
+
export declare class Bounties extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of workforce bounties. When experienceId is provided,
|
|
12
|
+
* returns bounties scoped to that experience. When omitted, returns bounties with
|
|
13
|
+
* no experience.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // Automatically fetches more pages as needed.
|
|
18
|
+
* for await (const bountyListResponse of client.bounties.list()) {
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(query?: BountyListParams | null | undefined, options?: RequestOptions): PagePromise<BountyListResponsesCursorPage, BountyListResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a new workforce bounty by funding a dedicated bounty pool.
|
|
26
|
+
*
|
|
27
|
+
* Required permissions:
|
|
28
|
+
*
|
|
29
|
+
* - `bounty:create`
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const bounty = await client.bounties.create({
|
|
34
|
+
* base_unit_amount: 6.9,
|
|
35
|
+
* currency: 'usd',
|
|
36
|
+
* description: 'description',
|
|
37
|
+
* title: 'title',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
create(body: BountyCreateParams, options?: RequestOptions): APIPromise<BountyCreateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a workforce bounty for the current authenticated user.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const bounty = await client.bounties.retrieve(
|
|
48
|
+
* 'bnty_xxxxxxxxxxxxx',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BountyRetrieveResponse>;
|
|
53
|
+
}
|
|
54
|
+
export type BountyListResponsesCursorPage = CursorPage<BountyListResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* A privately accessible bounty.
|
|
57
|
+
*/
|
|
58
|
+
export interface BountyCreateResponse {
|
|
59
|
+
/**
|
|
60
|
+
* The unique identifier for the bounty.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* The underlying bounty implementation type.
|
|
65
|
+
*/
|
|
66
|
+
bounty_type: 'classic' | 'user_funded' | 'workforce';
|
|
67
|
+
/**
|
|
68
|
+
* The datetime the bounty was created.
|
|
69
|
+
*/
|
|
70
|
+
created_at: string;
|
|
71
|
+
/**
|
|
72
|
+
* The currency used for the bounty funds.
|
|
73
|
+
*/
|
|
74
|
+
currency: Shared.Currency;
|
|
75
|
+
/**
|
|
76
|
+
* The description of the bounty.
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* The current lifecycle status of the bounty.
|
|
81
|
+
*/
|
|
82
|
+
status: 'published' | 'archived';
|
|
83
|
+
/**
|
|
84
|
+
* The title of the bounty.
|
|
85
|
+
*/
|
|
86
|
+
title: string;
|
|
87
|
+
/**
|
|
88
|
+
* The total amount currently funded in the bounty pool for payout.
|
|
89
|
+
*/
|
|
90
|
+
total_available: number;
|
|
91
|
+
/**
|
|
92
|
+
* The total amount paid out for this bounty.
|
|
93
|
+
*/
|
|
94
|
+
total_paid: number;
|
|
95
|
+
/**
|
|
96
|
+
* The datetime the bounty was last updated.
|
|
97
|
+
*/
|
|
98
|
+
updated_at: string;
|
|
99
|
+
/**
|
|
100
|
+
* The number of watcher votes required before the submission can resolve.
|
|
101
|
+
*/
|
|
102
|
+
vote_threshold: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* A privately accessible bounty.
|
|
106
|
+
*/
|
|
107
|
+
export interface BountyRetrieveResponse {
|
|
108
|
+
/**
|
|
109
|
+
* The unique identifier for the bounty.
|
|
110
|
+
*/
|
|
111
|
+
id: string;
|
|
112
|
+
/**
|
|
113
|
+
* The underlying bounty implementation type.
|
|
114
|
+
*/
|
|
115
|
+
bounty_type: 'classic' | 'user_funded' | 'workforce';
|
|
116
|
+
/**
|
|
117
|
+
* The datetime the bounty was created.
|
|
118
|
+
*/
|
|
119
|
+
created_at: string;
|
|
120
|
+
/**
|
|
121
|
+
* The currency used for the bounty funds.
|
|
122
|
+
*/
|
|
123
|
+
currency: Shared.Currency;
|
|
124
|
+
/**
|
|
125
|
+
* The description of the bounty.
|
|
126
|
+
*/
|
|
127
|
+
description: string;
|
|
128
|
+
/**
|
|
129
|
+
* The current lifecycle status of the bounty.
|
|
130
|
+
*/
|
|
131
|
+
status: 'published' | 'archived';
|
|
132
|
+
/**
|
|
133
|
+
* The title of the bounty.
|
|
134
|
+
*/
|
|
135
|
+
title: string;
|
|
136
|
+
/**
|
|
137
|
+
* The total amount currently funded in the bounty pool for payout.
|
|
138
|
+
*/
|
|
139
|
+
total_available: number;
|
|
140
|
+
/**
|
|
141
|
+
* The total amount paid out for this bounty.
|
|
142
|
+
*/
|
|
143
|
+
total_paid: number;
|
|
144
|
+
/**
|
|
145
|
+
* The datetime the bounty was last updated.
|
|
146
|
+
*/
|
|
147
|
+
updated_at: string;
|
|
148
|
+
/**
|
|
149
|
+
* The number of watcher votes required before the submission can resolve.
|
|
150
|
+
*/
|
|
151
|
+
vote_threshold: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* A privately accessible bounty.
|
|
155
|
+
*/
|
|
156
|
+
export interface BountyListResponse {
|
|
157
|
+
/**
|
|
158
|
+
* The unique identifier for the bounty.
|
|
159
|
+
*/
|
|
160
|
+
id: string;
|
|
161
|
+
/**
|
|
162
|
+
* The underlying bounty implementation type.
|
|
163
|
+
*/
|
|
164
|
+
bounty_type: 'classic' | 'user_funded' | 'workforce';
|
|
165
|
+
/**
|
|
166
|
+
* The datetime the bounty was created.
|
|
167
|
+
*/
|
|
168
|
+
created_at: string;
|
|
169
|
+
/**
|
|
170
|
+
* The currency used for the bounty funds.
|
|
171
|
+
*/
|
|
172
|
+
currency: Shared.Currency;
|
|
173
|
+
/**
|
|
174
|
+
* The description of the bounty.
|
|
175
|
+
*/
|
|
176
|
+
description: string;
|
|
177
|
+
/**
|
|
178
|
+
* The current lifecycle status of the bounty.
|
|
179
|
+
*/
|
|
180
|
+
status: 'published' | 'archived';
|
|
181
|
+
/**
|
|
182
|
+
* The title of the bounty.
|
|
183
|
+
*/
|
|
184
|
+
title: string;
|
|
185
|
+
/**
|
|
186
|
+
* The total amount currently funded in the bounty pool for payout.
|
|
187
|
+
*/
|
|
188
|
+
total_available: number;
|
|
189
|
+
/**
|
|
190
|
+
* The total amount paid out for this bounty.
|
|
191
|
+
*/
|
|
192
|
+
total_paid: number;
|
|
193
|
+
/**
|
|
194
|
+
* The datetime the bounty was last updated.
|
|
195
|
+
*/
|
|
196
|
+
updated_at: string;
|
|
197
|
+
/**
|
|
198
|
+
* The number of watcher votes required before the submission can resolve.
|
|
199
|
+
*/
|
|
200
|
+
vote_threshold: number;
|
|
201
|
+
}
|
|
202
|
+
export interface BountyListParams extends CursorPageParams {
|
|
203
|
+
/**
|
|
204
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
205
|
+
*/
|
|
206
|
+
before?: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* The direction of the sort.
|
|
209
|
+
*/
|
|
210
|
+
direction?: Shared.Direction | null;
|
|
211
|
+
/**
|
|
212
|
+
* The experience to list bounties for. When omitted, returns bounties with no
|
|
213
|
+
* experience.
|
|
214
|
+
*/
|
|
215
|
+
experience_id?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* Returns the first _n_ elements from the list.
|
|
218
|
+
*/
|
|
219
|
+
first?: number | null;
|
|
220
|
+
/**
|
|
221
|
+
* Returns the last _n_ elements from the list.
|
|
222
|
+
*/
|
|
223
|
+
last?: number | null;
|
|
224
|
+
/**
|
|
225
|
+
* The available bounty statuses to choose from.
|
|
226
|
+
*/
|
|
227
|
+
status?: 'published' | 'archived' | null;
|
|
228
|
+
}
|
|
229
|
+
export interface BountyCreateParams {
|
|
230
|
+
/**
|
|
231
|
+
* The amount paid to each approved submission. The total bounty pool funded is
|
|
232
|
+
* this amount times accepted_submissions_limit.
|
|
233
|
+
*/
|
|
234
|
+
base_unit_amount: number;
|
|
235
|
+
/**
|
|
236
|
+
* The currency for the bounty pool funding amount.
|
|
237
|
+
*/
|
|
238
|
+
currency: Shared.Currency;
|
|
239
|
+
/**
|
|
240
|
+
* The description of the bounty.
|
|
241
|
+
*/
|
|
242
|
+
description: string;
|
|
243
|
+
/**
|
|
244
|
+
* The title of the bounty.
|
|
245
|
+
*/
|
|
246
|
+
title: string;
|
|
247
|
+
/**
|
|
248
|
+
* The number of submissions that can be approved before the bounty closes.
|
|
249
|
+
* Defaults to 1.
|
|
250
|
+
*/
|
|
251
|
+
accepted_submissions_limit?: number | null;
|
|
252
|
+
/**
|
|
253
|
+
* The ISO3166 country codes where this bounty should be visible. Empty means
|
|
254
|
+
* globally visible.
|
|
255
|
+
*/
|
|
256
|
+
allowed_country_codes?: Array<string> | null;
|
|
257
|
+
/**
|
|
258
|
+
* An optional experience to scope the bounty to.
|
|
259
|
+
*/
|
|
260
|
+
experience_id?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* The user (user*\*) or company (biz*\*) tag whose balance funds this bounty pool.
|
|
263
|
+
* Defaults to the requester's personal balance when omitted. The requester must be
|
|
264
|
+
* the user themself or an owner/admin of the company.
|
|
265
|
+
*/
|
|
266
|
+
origin_account_id?: string | null;
|
|
267
|
+
/**
|
|
268
|
+
* Optional markdown body for the anchor forum post. Falls back to the bounty
|
|
269
|
+
* description when omitted.
|
|
270
|
+
*/
|
|
271
|
+
post_markdown_content?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Optional title for the anchor forum post. Falls back to the bounty title when
|
|
274
|
+
* omitted.
|
|
275
|
+
*/
|
|
276
|
+
post_title?: string | null;
|
|
277
|
+
}
|
|
278
|
+
export declare namespace Bounties {
|
|
279
|
+
export { type BountyCreateResponse as BountyCreateResponse, type BountyRetrieveResponse as BountyRetrieveResponse, type BountyListResponse as BountyListResponse, type BountyListResponsesCursorPage as BountyListResponsesCursorPage, type BountyListParams as BountyListParams, type BountyCreateParams as BountyCreateParams, };
|
|
280
|
+
}
|
|
281
|
+
//# sourceMappingURL=bounties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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EACnE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.Bounties = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Bounties
|
|
10
|
+
*/
|
|
11
|
+
class Bounties extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of workforce bounties. When experienceId is provided,
|
|
14
|
+
* returns bounties scoped to that experience. When omitted, returns bounties with
|
|
15
|
+
* no experience.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const bountyListResponse of client.bounties.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/bounties', (pagination_1.CursorPage), { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new workforce bounty by funding a dedicated bounty pool.
|
|
30
|
+
*
|
|
31
|
+
* Required permissions:
|
|
32
|
+
*
|
|
33
|
+
* - `bounty:create`
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const bounty = await client.bounties.create({
|
|
38
|
+
* base_unit_amount: 6.9,
|
|
39
|
+
* currency: 'usd',
|
|
40
|
+
* description: 'description',
|
|
41
|
+
* title: 'title',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(body, options) {
|
|
46
|
+
return this._client.post('/bounties', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves a workforce bounty for the current authenticated user.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const bounty = await client.bounties.retrieve(
|
|
54
|
+
* 'bnty_xxxxxxxxxxxxx',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
retrieve(id, options) {
|
|
59
|
+
return this._client.get((0, path_1.path) `/bounties/${id}`, options);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Bounties = Bounties;
|
|
63
|
+
//# sourceMappingURL=bounties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounties.js","sourceRoot":"","sources":["../src/resources/bounties.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAvDD,4BAuDC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Bounties
|
|
7
|
+
*/
|
|
8
|
+
export class Bounties extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of workforce bounties. When experienceId is provided,
|
|
11
|
+
* returns bounties scoped to that experience. When omitted, returns bounties with
|
|
12
|
+
* no experience.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const bountyListResponse of client.bounties.list()) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/bounties', (CursorPage), { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a new workforce bounty by funding a dedicated bounty pool.
|
|
27
|
+
*
|
|
28
|
+
* Required permissions:
|
|
29
|
+
*
|
|
30
|
+
* - `bounty:create`
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const bounty = await client.bounties.create({
|
|
35
|
+
* base_unit_amount: 6.9,
|
|
36
|
+
* currency: 'usd',
|
|
37
|
+
* description: 'description',
|
|
38
|
+
* title: 'title',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
create(body, options) {
|
|
43
|
+
return this._client.post('/bounties', { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves a workforce bounty for the current authenticated user.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const bounty = await client.bounties.retrieve(
|
|
51
|
+
* 'bnty_xxxxxxxxxxxxx',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
retrieve(id, options) {
|
|
56
|
+
return this._client.get(path `/bounties/${id}`, options);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=bounties.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounties.mjs","sourceRoot":"","sources":["../src/resources/bounties.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,UAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
|
@@ -7,6 +7,25 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
* Chat channels
|
|
8
8
|
*/
|
|
9
9
|
export declare class ChatChannels extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of chat channels within a specific company, with
|
|
12
|
+
* optional filtering by product.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `chat:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const chatChannelListResponse of client.chatChannels.list(
|
|
22
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query: ChatChannelListParams, options?: RequestOptions): PagePromise<ChatChannelListResponsesCursorPage, ChatChannelListResponse>;
|
|
10
29
|
/**
|
|
11
30
|
* Retrieves the details of an existing chat channel.
|
|
12
31
|
*
|
|
@@ -36,25 +55,6 @@ export declare class ChatChannels extends APIResource {
|
|
|
36
55
|
* ```
|
|
37
56
|
*/
|
|
38
57
|
update(id: string, body?: ChatChannelUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.ChatChannel>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a paginated list of chat channels within a specific company, with
|
|
41
|
-
* optional filtering by product.
|
|
42
|
-
*
|
|
43
|
-
* Required permissions:
|
|
44
|
-
*
|
|
45
|
-
* - `chat:read`
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* // Automatically fetches more pages as needed.
|
|
50
|
-
* for await (const chatChannelListResponse of client.chatChannels.list(
|
|
51
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
52
|
-
* )) {
|
|
53
|
-
* // ...
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
list(query: ChatChannelListParams, options?: RequestOptions): PagePromise<ChatChannelListResponsesCursorPage, ChatChannelListResponse>;
|
|
58
58
|
}
|
|
59
59
|
export type ChatChannelListResponsesCursorPage = CursorPage<ChatChannelListResponse>;
|
|
60
60
|
/**
|
|
@@ -112,6 +112,29 @@ export declare namespace ChatChannelListResponse {
|
|
|
112
112
|
name: string;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
export interface ChatChannelListParams extends CursorPageParams {
|
|
116
|
+
/**
|
|
117
|
+
* The unique identifier of the company to list chat channels for.
|
|
118
|
+
*/
|
|
119
|
+
company_id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
122
|
+
*/
|
|
123
|
+
before?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the first _n_ elements from the list.
|
|
126
|
+
*/
|
|
127
|
+
first?: number | null;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the last _n_ elements from the list.
|
|
130
|
+
*/
|
|
131
|
+
last?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* The unique identifier of a product to filter by. When set, only chat channels
|
|
134
|
+
* connected to this product are returned.
|
|
135
|
+
*/
|
|
136
|
+
product_id?: string | null;
|
|
137
|
+
}
|
|
115
138
|
export interface ChatChannelUpdateParams {
|
|
116
139
|
/**
|
|
117
140
|
* Whether media uploads such as images and videos are banned in this chat channel.
|
|
@@ -140,30 +163,7 @@ export interface ChatChannelUpdateParams {
|
|
|
140
163
|
*/
|
|
141
164
|
who_can_react?: Shared.WhoCanReact | null;
|
|
142
165
|
}
|
|
143
|
-
export interface ChatChannelListParams extends CursorPageParams {
|
|
144
|
-
/**
|
|
145
|
-
* The unique identifier of the company to list chat channels for.
|
|
146
|
-
*/
|
|
147
|
-
company_id: string;
|
|
148
|
-
/**
|
|
149
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
150
|
-
*/
|
|
151
|
-
before?: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Returns the first _n_ elements from the list.
|
|
154
|
-
*/
|
|
155
|
-
first?: number | null;
|
|
156
|
-
/**
|
|
157
|
-
* Returns the last _n_ elements from the list.
|
|
158
|
-
*/
|
|
159
|
-
last?: number | null;
|
|
160
|
-
/**
|
|
161
|
-
* The unique identifier of a product to filter by. When set, only chat channels
|
|
162
|
-
* connected to this product are returned.
|
|
163
|
-
*/
|
|
164
|
-
product_id?: string | null;
|
|
165
|
-
}
|
|
166
166
|
export declare namespace ChatChannels {
|
|
167
|
-
export { type ChatChannelListResponse as ChatChannelListResponse, type ChatChannelListResponsesCursorPage as ChatChannelListResponsesCursorPage, type
|
|
167
|
+
export { type ChatChannelListResponse as ChatChannelListResponse, type ChatChannelListResponsesCursorPage as ChatChannelListResponsesCursorPage, type ChatChannelListParams as ChatChannelListParams, type ChatChannelUpdateParams as ChatChannelUpdateParams, };
|
|
168
168
|
}
|
|
169
169
|
//# sourceMappingURL=chat-channels.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.d.mts","sourceRoot":"","sources":["../src/resources/chat-channels.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,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAI9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-channels.d.mts","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,E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AAM,CAAC;QAEX;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;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;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEpC;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -7,6 +7,25 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
* Chat channels
|
|
8
8
|
*/
|
|
9
9
|
export declare class ChatChannels extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of chat channels within a specific company, with
|
|
12
|
+
* optional filtering by product.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `chat:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const chatChannelListResponse of client.chatChannels.list(
|
|
22
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query: ChatChannelListParams, options?: RequestOptions): PagePromise<ChatChannelListResponsesCursorPage, ChatChannelListResponse>;
|
|
10
29
|
/**
|
|
11
30
|
* Retrieves the details of an existing chat channel.
|
|
12
31
|
*
|
|
@@ -36,25 +55,6 @@ export declare class ChatChannels extends APIResource {
|
|
|
36
55
|
* ```
|
|
37
56
|
*/
|
|
38
57
|
update(id: string, body?: ChatChannelUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.ChatChannel>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns a paginated list of chat channels within a specific company, with
|
|
41
|
-
* optional filtering by product.
|
|
42
|
-
*
|
|
43
|
-
* Required permissions:
|
|
44
|
-
*
|
|
45
|
-
* - `chat:read`
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* // Automatically fetches more pages as needed.
|
|
50
|
-
* for await (const chatChannelListResponse of client.chatChannels.list(
|
|
51
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
52
|
-
* )) {
|
|
53
|
-
* // ...
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
list(query: ChatChannelListParams, options?: RequestOptions): PagePromise<ChatChannelListResponsesCursorPage, ChatChannelListResponse>;
|
|
58
58
|
}
|
|
59
59
|
export type ChatChannelListResponsesCursorPage = CursorPage<ChatChannelListResponse>;
|
|
60
60
|
/**
|
|
@@ -112,6 +112,29 @@ export declare namespace ChatChannelListResponse {
|
|
|
112
112
|
name: string;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
export interface ChatChannelListParams extends CursorPageParams {
|
|
116
|
+
/**
|
|
117
|
+
* The unique identifier of the company to list chat channels for.
|
|
118
|
+
*/
|
|
119
|
+
company_id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
122
|
+
*/
|
|
123
|
+
before?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the first _n_ elements from the list.
|
|
126
|
+
*/
|
|
127
|
+
first?: number | null;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the last _n_ elements from the list.
|
|
130
|
+
*/
|
|
131
|
+
last?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* The unique identifier of a product to filter by. When set, only chat channels
|
|
134
|
+
* connected to this product are returned.
|
|
135
|
+
*/
|
|
136
|
+
product_id?: string | null;
|
|
137
|
+
}
|
|
115
138
|
export interface ChatChannelUpdateParams {
|
|
116
139
|
/**
|
|
117
140
|
* Whether media uploads such as images and videos are banned in this chat channel.
|
|
@@ -140,30 +163,7 @@ export interface ChatChannelUpdateParams {
|
|
|
140
163
|
*/
|
|
141
164
|
who_can_react?: Shared.WhoCanReact | null;
|
|
142
165
|
}
|
|
143
|
-
export interface ChatChannelListParams extends CursorPageParams {
|
|
144
|
-
/**
|
|
145
|
-
* The unique identifier of the company to list chat channels for.
|
|
146
|
-
*/
|
|
147
|
-
company_id: string;
|
|
148
|
-
/**
|
|
149
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
150
|
-
*/
|
|
151
|
-
before?: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Returns the first _n_ elements from the list.
|
|
154
|
-
*/
|
|
155
|
-
first?: number | null;
|
|
156
|
-
/**
|
|
157
|
-
* Returns the last _n_ elements from the list.
|
|
158
|
-
*/
|
|
159
|
-
last?: number | null;
|
|
160
|
-
/**
|
|
161
|
-
* The unique identifier of a product to filter by. When set, only chat channels
|
|
162
|
-
* connected to this product are returned.
|
|
163
|
-
*/
|
|
164
|
-
product_id?: string | null;
|
|
165
|
-
}
|
|
166
166
|
export declare namespace ChatChannels {
|
|
167
|
-
export { type ChatChannelListResponse as ChatChannelListResponse, type ChatChannelListResponsesCursorPage as ChatChannelListResponsesCursorPage, type
|
|
167
|
+
export { type ChatChannelListResponse as ChatChannelListResponse, type ChatChannelListResponsesCursorPage as ChatChannelListResponsesCursorPage, type ChatChannelListParams as ChatChannelListParams, type ChatChannelUpdateParams as ChatChannelUpdateParams, };
|
|
168
168
|
}
|
|
169
169
|
//# sourceMappingURL=chat-channels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.d.ts","sourceRoot":"","sources":["../src/resources/chat-channels.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,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAI9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-channels.d.ts","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE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