@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
package/resources/shipments.js
CHANGED
|
@@ -9,6 +9,26 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Shipments
|
|
10
10
|
*/
|
|
11
11
|
class Shipments extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of shipments, with optional filtering by payment,
|
|
14
|
+
* company, or user.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `shipment:basic:read`
|
|
19
|
+
* - `payment:basic:read`
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const shipmentListResponse of client.shipments.list()) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(query = {}, options) {
|
|
30
|
+
return this._client.getAPIList('/shipments', (pagination_1.CursorPage), { query, ...options });
|
|
31
|
+
}
|
|
12
32
|
/**
|
|
13
33
|
* Create a new shipment with a tracking code for a specific payment within a
|
|
14
34
|
* company.
|
|
@@ -48,26 +68,6 @@ class Shipments extends resource_1.APIResource {
|
|
|
48
68
|
retrieve(id, options) {
|
|
49
69
|
return this._client.get((0, path_1.path) `/shipments/${id}`, options);
|
|
50
70
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns a paginated list of shipments, with optional filtering by payment,
|
|
53
|
-
* company, or user.
|
|
54
|
-
*
|
|
55
|
-
* Required permissions:
|
|
56
|
-
*
|
|
57
|
-
* - `shipment:basic:read`
|
|
58
|
-
* - `payment:basic:read`
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* // Automatically fetches more pages as needed.
|
|
63
|
-
* for await (const shipmentListResponse of client.shipments.list()) {
|
|
64
|
-
* // ...
|
|
65
|
-
* }
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
list(query = {}, options) {
|
|
69
|
-
return this._client.getAPIList('/shipments', (pagination_1.CursorPage), { query, ...options });
|
|
70
|
-
}
|
|
71
71
|
}
|
|
72
72
|
exports.Shipments = Shipments;
|
|
73
73
|
//# sourceMappingURL=shipments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipments.js","sourceRoot":"","sources":["../src/resources/shipments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"shipments.js","sourceRoot":"","sources":["../src/resources/shipments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,uBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAjED,8BAiEC"}
|
package/resources/shipments.mjs
CHANGED
|
@@ -6,6 +6,26 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Shipments
|
|
7
7
|
*/
|
|
8
8
|
export class Shipments extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of shipments, with optional filtering by payment,
|
|
11
|
+
* company, or user.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `shipment:basic:read`
|
|
16
|
+
* - `payment:basic:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const shipmentListResponse of client.shipments.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(query = {}, options) {
|
|
27
|
+
return this._client.getAPIList('/shipments', (CursorPage), { query, ...options });
|
|
28
|
+
}
|
|
9
29
|
/**
|
|
10
30
|
* Create a new shipment with a tracking code for a specific payment within a
|
|
11
31
|
* company.
|
|
@@ -45,25 +65,5 @@ export class Shipments extends APIResource {
|
|
|
45
65
|
retrieve(id, options) {
|
|
46
66
|
return this._client.get(path `/shipments/${id}`, options);
|
|
47
67
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Returns a paginated list of shipments, with optional filtering by payment,
|
|
50
|
-
* company, or user.
|
|
51
|
-
*
|
|
52
|
-
* Required permissions:
|
|
53
|
-
*
|
|
54
|
-
* - `shipment:basic:read`
|
|
55
|
-
* - `payment:basic:read`
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* // Automatically fetches more pages as needed.
|
|
60
|
-
* for await (const shipmentListResponse of client.shipments.list()) {
|
|
61
|
-
* // ...
|
|
62
|
-
* }
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
list(query = {}, options) {
|
|
66
|
-
return this._client.getAPIList('/shipments', (CursorPage), { query, ...options });
|
|
67
|
-
}
|
|
68
68
|
}
|
|
69
69
|
//# sourceMappingURL=shipments.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipments.mjs","sourceRoot":"","sources":["../src/resources/shipments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"shipments.mjs","sourceRoot":"","sources":["../src/resources/shipments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,UAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -8,22 +8,22 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class SupportChannels extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Returns a paginated list of support channels for a specific company, with
|
|
12
|
+
* optional filtering by resolution status and custom sorting.
|
|
13
13
|
*
|
|
14
14
|
* Required permissions:
|
|
15
15
|
*
|
|
16
|
-
* - `support_chat:
|
|
16
|
+
* - `support_chat:read`
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* }
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
list(query?: SupportChannelListParams | null | undefined, options?: RequestOptions): PagePromise<SupportChannelListResponsesCursorPage, SupportChannelListResponse>;
|
|
27
27
|
/**
|
|
28
28
|
* Retrieves the details of an existing support channel.
|
|
29
29
|
*
|
|
@@ -39,24 +39,22 @@ export declare class SupportChannels extends APIResource {
|
|
|
39
39
|
*/
|
|
40
40
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.SupportChannel>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* Open a new support channel between a company team member and a customer. Returns
|
|
43
|
+
* the existing channel if one already exists for that user.
|
|
44
44
|
*
|
|
45
45
|
* Required permissions:
|
|
46
46
|
*
|
|
47
|
-
* - `support_chat:
|
|
47
|
+
* - `support_chat:create`
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* )
|
|
55
|
-
* // ...
|
|
56
|
-
* }
|
|
51
|
+
* const supportChannel = await client.supportChannels.create({
|
|
52
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
53
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
54
|
+
* });
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
|
|
57
|
+
create(body: SupportChannelCreateParams, options?: RequestOptions): APIPromise<Shared.SupportChannel>;
|
|
60
58
|
}
|
|
61
59
|
export type SupportChannelListResponsesCursorPage = CursorPage<SupportChannelListResponse>;
|
|
62
60
|
/**
|
|
@@ -114,30 +112,17 @@ export declare namespace SupportChannelListResponse {
|
|
|
114
112
|
username: string;
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
|
-
export interface SupportChannelCreateParams {
|
|
118
|
-
/**
|
|
119
|
-
* The unique identifier of the company to create the support channel in.
|
|
120
|
-
*/
|
|
121
|
-
company_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* The user ID (e.g. 'user_xxxxx') or username of the customer to open a support
|
|
124
|
-
* channel for.
|
|
125
|
-
*/
|
|
126
|
-
user_id: string;
|
|
127
|
-
/**
|
|
128
|
-
* Optional custom display name for the support channel.
|
|
129
|
-
*/
|
|
130
|
-
custom_name?: string | null;
|
|
131
|
-
}
|
|
132
115
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
133
|
-
/**
|
|
134
|
-
* The unique identifier of the company to list support channels for.
|
|
135
|
-
*/
|
|
136
|
-
company_id: string;
|
|
137
116
|
/**
|
|
138
117
|
* Returns the elements in the list that come before the specified cursor.
|
|
139
118
|
*/
|
|
140
119
|
before?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* The unique identifier of the company to list support channels for. Includes
|
|
122
|
+
* channels of child companies. When omitted, returns support channels across all
|
|
123
|
+
* companies the user has access to.
|
|
124
|
+
*/
|
|
125
|
+
company_id?: string | null;
|
|
141
126
|
/**
|
|
142
127
|
* The direction of the sort.
|
|
143
128
|
*/
|
|
@@ -159,8 +144,27 @@ export interface SupportChannelListParams extends CursorPageParams {
|
|
|
159
144
|
* Sort options for message channels
|
|
160
145
|
*/
|
|
161
146
|
order?: 'created_at' | 'last_post_sent_at' | null;
|
|
147
|
+
/**
|
|
148
|
+
* The perspective to filter support channels by.
|
|
149
|
+
*/
|
|
150
|
+
view?: 'all' | 'admin' | 'customer' | null;
|
|
151
|
+
}
|
|
152
|
+
export interface SupportChannelCreateParams {
|
|
153
|
+
/**
|
|
154
|
+
* The unique identifier of the company to create the support channel in.
|
|
155
|
+
*/
|
|
156
|
+
company_id: string;
|
|
157
|
+
/**
|
|
158
|
+
* The user ID (e.g. 'user_xxxxx') or username of the customer to open a support
|
|
159
|
+
* channel for.
|
|
160
|
+
*/
|
|
161
|
+
user_id: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional custom display name for the support channel.
|
|
164
|
+
*/
|
|
165
|
+
custom_name?: string | null;
|
|
162
166
|
}
|
|
163
167
|
export declare namespace SupportChannels {
|
|
164
|
-
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type
|
|
168
|
+
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type SupportChannelListParams as SupportChannelListParams, type SupportChannelCreateParams as SupportChannelCreateParams, };
|
|
165
169
|
}
|
|
166
170
|
//# sourceMappingURL=support-channels.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.d.mts","sourceRoot":"","sources":["../src/resources/support-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,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,
|
|
1
|
+
{"version":3,"file":"support-channels.d.mts","sourceRoot":"","sources":["../src/resources/support-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,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,0BAA0B,CAAC;IAOjF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;IAIjF;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,C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G,UAAU,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -8,22 +8,22 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class SupportChannels extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Returns a paginated list of support channels for a specific company, with
|
|
12
|
+
* optional filtering by resolution status and custom sorting.
|
|
13
13
|
*
|
|
14
14
|
* Required permissions:
|
|
15
15
|
*
|
|
16
|
-
* - `support_chat:
|
|
16
|
+
* - `support_chat:read`
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* }
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
list(query?: SupportChannelListParams | null | undefined, options?: RequestOptions): PagePromise<SupportChannelListResponsesCursorPage, SupportChannelListResponse>;
|
|
27
27
|
/**
|
|
28
28
|
* Retrieves the details of an existing support channel.
|
|
29
29
|
*
|
|
@@ -39,24 +39,22 @@ export declare class SupportChannels extends APIResource {
|
|
|
39
39
|
*/
|
|
40
40
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.SupportChannel>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* Open a new support channel between a company team member and a customer. Returns
|
|
43
|
+
* the existing channel if one already exists for that user.
|
|
44
44
|
*
|
|
45
45
|
* Required permissions:
|
|
46
46
|
*
|
|
47
|
-
* - `support_chat:
|
|
47
|
+
* - `support_chat:create`
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* )
|
|
55
|
-
* // ...
|
|
56
|
-
* }
|
|
51
|
+
* const supportChannel = await client.supportChannels.create({
|
|
52
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
53
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
54
|
+
* });
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
|
|
57
|
+
create(body: SupportChannelCreateParams, options?: RequestOptions): APIPromise<Shared.SupportChannel>;
|
|
60
58
|
}
|
|
61
59
|
export type SupportChannelListResponsesCursorPage = CursorPage<SupportChannelListResponse>;
|
|
62
60
|
/**
|
|
@@ -114,30 +112,17 @@ export declare namespace SupportChannelListResponse {
|
|
|
114
112
|
username: string;
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
|
-
export interface SupportChannelCreateParams {
|
|
118
|
-
/**
|
|
119
|
-
* The unique identifier of the company to create the support channel in.
|
|
120
|
-
*/
|
|
121
|
-
company_id: string;
|
|
122
|
-
/**
|
|
123
|
-
* The user ID (e.g. 'user_xxxxx') or username of the customer to open a support
|
|
124
|
-
* channel for.
|
|
125
|
-
*/
|
|
126
|
-
user_id: string;
|
|
127
|
-
/**
|
|
128
|
-
* Optional custom display name for the support channel.
|
|
129
|
-
*/
|
|
130
|
-
custom_name?: string | null;
|
|
131
|
-
}
|
|
132
115
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
133
|
-
/**
|
|
134
|
-
* The unique identifier of the company to list support channels for.
|
|
135
|
-
*/
|
|
136
|
-
company_id: string;
|
|
137
116
|
/**
|
|
138
117
|
* Returns the elements in the list that come before the specified cursor.
|
|
139
118
|
*/
|
|
140
119
|
before?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* The unique identifier of the company to list support channels for. Includes
|
|
122
|
+
* channels of child companies. When omitted, returns support channels across all
|
|
123
|
+
* companies the user has access to.
|
|
124
|
+
*/
|
|
125
|
+
company_id?: string | null;
|
|
141
126
|
/**
|
|
142
127
|
* The direction of the sort.
|
|
143
128
|
*/
|
|
@@ -159,8 +144,27 @@ export interface SupportChannelListParams extends CursorPageParams {
|
|
|
159
144
|
* Sort options for message channels
|
|
160
145
|
*/
|
|
161
146
|
order?: 'created_at' | 'last_post_sent_at' | null;
|
|
147
|
+
/**
|
|
148
|
+
* The perspective to filter support channels by.
|
|
149
|
+
*/
|
|
150
|
+
view?: 'all' | 'admin' | 'customer' | null;
|
|
151
|
+
}
|
|
152
|
+
export interface SupportChannelCreateParams {
|
|
153
|
+
/**
|
|
154
|
+
* The unique identifier of the company to create the support channel in.
|
|
155
|
+
*/
|
|
156
|
+
company_id: string;
|
|
157
|
+
/**
|
|
158
|
+
* The user ID (e.g. 'user_xxxxx') or username of the customer to open a support
|
|
159
|
+
* channel for.
|
|
160
|
+
*/
|
|
161
|
+
user_id: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional custom display name for the support channel.
|
|
164
|
+
*/
|
|
165
|
+
custom_name?: string | null;
|
|
162
166
|
}
|
|
163
167
|
export declare namespace SupportChannels {
|
|
164
|
-
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type
|
|
168
|
+
export { type SupportChannelListResponse as SupportChannelListResponse, type SupportChannelListResponsesCursorPage as SupportChannelListResponsesCursorPage, type SupportChannelListParams as SupportChannelListParams, type SupportChannelCreateParams as SupportChannelCreateParams, };
|
|
165
169
|
}
|
|
166
170
|
//# sourceMappingURL=support-channels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.d.ts","sourceRoot":"","sources":["../src/resources/support-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,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,
|
|
1
|
+
{"version":3,"file":"support-channels.d.ts","sourceRoot":"","sources":["../src/resources/support-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,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,0BAA0B,CAAC;IAOjF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;IAIjF;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;CAGtG;AAED,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAE3F;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MA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hB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -10,23 +10,26 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class SupportChannels extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Returns a paginated list of support channels for a specific company, with
|
|
14
|
+
* optional filtering by resolution status and custom sorting.
|
|
15
15
|
*
|
|
16
16
|
* Required permissions:
|
|
17
17
|
*
|
|
18
|
-
* - `support_chat:
|
|
18
|
+
* - `support_chat:read`
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* }
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
|
|
29
|
-
return this._client.
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.getAPIList('/support_channels', (pagination_1.CursorPage), {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
35
|
* Retrieves the details of an existing support channel.
|
|
@@ -45,28 +48,23 @@ class SupportChannels extends resource_1.APIResource {
|
|
|
45
48
|
return this._client.get((0, path_1.path) `/support_channels/${id}`, options);
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
51
|
+
* Open a new support channel between a company team member and a customer. Returns
|
|
52
|
+
* the existing channel if one already exists for that user.
|
|
50
53
|
*
|
|
51
54
|
* Required permissions:
|
|
52
55
|
*
|
|
53
|
-
* - `support_chat:
|
|
56
|
+
* - `support_chat:create`
|
|
54
57
|
*
|
|
55
58
|
* @example
|
|
56
59
|
* ```ts
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* )
|
|
61
|
-
* // ...
|
|
62
|
-
* }
|
|
60
|
+
* const supportChannel = await client.supportChannels.create({
|
|
61
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
62
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
63
|
+
* });
|
|
63
64
|
* ```
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
-
return this._client.
|
|
67
|
-
query,
|
|
68
|
-
...options,
|
|
69
|
-
});
|
|
66
|
+
create(body, options) {
|
|
67
|
+
return this._client.post('/support_channels', { body, ...options });
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
exports.SupportChannels = SupportChannels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.js","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,
|
|
1
|
+
{"version":3,"file":"support-channels.js","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AA/DD,0CA+DC"}
|
|
@@ -7,23 +7,26 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export class SupportChannels extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Returns a paginated list of support channels for a specific company, with
|
|
11
|
+
* optional filtering by resolution status and custom sorting.
|
|
12
12
|
*
|
|
13
13
|
* Required permissions:
|
|
14
14
|
*
|
|
15
|
-
* - `support_chat:
|
|
15
|
+
* - `support_chat:read`
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* }
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const supportChannelListResponse of client.supportChannels.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
return this._client.
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/support_channels', (CursorPage), {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
});
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
29
32
|
* Retrieves the details of an existing support channel.
|
|
@@ -42,28 +45,23 @@ export class SupportChannels extends APIResource {
|
|
|
42
45
|
return this._client.get(path `/support_channels/${id}`, options);
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
48
|
+
* Open a new support channel between a company team member and a customer. Returns
|
|
49
|
+
* the existing channel if one already exists for that user.
|
|
47
50
|
*
|
|
48
51
|
* Required permissions:
|
|
49
52
|
*
|
|
50
|
-
* - `support_chat:
|
|
53
|
+
* - `support_chat:create`
|
|
51
54
|
*
|
|
52
55
|
* @example
|
|
53
56
|
* ```ts
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* )
|
|
58
|
-
* // ...
|
|
59
|
-
* }
|
|
57
|
+
* const supportChannel = await client.supportChannels.create({
|
|
58
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
59
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
60
|
+
* });
|
|
60
61
|
* ```
|
|
61
62
|
*/
|
|
62
|
-
|
|
63
|
-
return this._client.
|
|
64
|
-
query,
|
|
65
|
-
...options,
|
|
66
|
-
});
|
|
63
|
+
create(body, options) {
|
|
64
|
+
return this._client.post('/support_channels', { body, ...options });
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
//# sourceMappingURL=support-channels.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-channels.mjs","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,
|
|
1
|
+
{"version":3,"file":"support-channels.mjs","sourceRoot":"","sources":["../src/resources/support-channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,UAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Swaps extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns a stateless swap price preview. No funds move and nothing is persisted.
|
|
7
|
+
*/
|
|
8
|
+
createQuote(body: SwapCreateQuoteParams, options?: RequestOptions): APIPromise<SwapCreateQuoteResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface SwapCreateQuoteResponse {
|
|
11
|
+
amount_in: string;
|
|
12
|
+
amount_out: string;
|
|
13
|
+
cross_chain: boolean;
|
|
14
|
+
fee_bps: number;
|
|
15
|
+
from_token: {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
metadata: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
object: 'swap_quote';
|
|
22
|
+
rate: string;
|
|
23
|
+
to_token: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
amount_out_min?: string;
|
|
27
|
+
bridge_fee?: string | null;
|
|
28
|
+
estimated_duration_seconds?: number | null;
|
|
29
|
+
from_address?: string | null;
|
|
30
|
+
requires_token_approval?: boolean | null;
|
|
31
|
+
to_address?: string | null;
|
|
32
|
+
}
|
|
33
|
+
export interface SwapCreateQuoteParams {
|
|
34
|
+
/**
|
|
35
|
+
* Input token amount.
|
|
36
|
+
*/
|
|
37
|
+
amount: string;
|
|
38
|
+
/**
|
|
39
|
+
* Source token contract address.
|
|
40
|
+
*/
|
|
41
|
+
from_token: string;
|
|
42
|
+
/**
|
|
43
|
+
* Destination token contract address.
|
|
44
|
+
*/
|
|
45
|
+
to_token: string;
|
|
46
|
+
/**
|
|
47
|
+
* Caller-owned account whose wallet address should be used.
|
|
48
|
+
*/
|
|
49
|
+
account_id?: string | null;
|
|
50
|
+
from_address?: string | null;
|
|
51
|
+
from_chain?: string | number | null;
|
|
52
|
+
metadata?: {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
slippage_bps?: number | null;
|
|
56
|
+
to_address?: string | null;
|
|
57
|
+
to_chain?: string | number | null;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace Swaps {
|
|
60
|
+
export { type SwapCreateQuoteResponse as SwapCreateQuoteResponse, type SwapCreateQuoteParams as SwapCreateQuoteParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=swaps.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swaps.d.mts","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd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