@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
package/resources/messages.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class Messages extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
12
|
+
* group chat channel, sorted by creation time.
|
|
13
13
|
*
|
|
14
14
|
* Required permissions:
|
|
15
15
|
*
|
|
16
|
-
* - `chat:
|
|
16
|
+
* - `chat:read`
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
list(query: MessageListParams, options?: RequestOptions): PagePromise<MessageListResponsesCursorPage, MessageListResponse>;
|
|
19
19
|
/**
|
|
20
20
|
* Retrieves the details of an existing message.
|
|
21
21
|
*
|
|
@@ -25,19 +25,19 @@ export declare class Messages extends APIResource {
|
|
|
25
25
|
*/
|
|
26
26
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
update(id: string, body?: MessageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
34
|
-
* group chat channel, sorted by creation time.
|
|
28
|
+
* Send a new message in an experience chat, DM, or group chat channel. Supports
|
|
29
|
+
* text content, attachments, polls, and replies.
|
|
35
30
|
*
|
|
36
31
|
* Required permissions:
|
|
37
32
|
*
|
|
38
|
-
* - `chat:
|
|
33
|
+
* - `chat:message:create`
|
|
39
34
|
*/
|
|
40
|
-
|
|
35
|
+
create(body: MessageCreateParams, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
36
|
+
/**
|
|
37
|
+
* Edit the content, attachments, or pinned status of an existing message in an
|
|
38
|
+
* experience chat, DM, or group chat channel.
|
|
39
|
+
*/
|
|
40
|
+
update(id: string, body?: MessageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
41
41
|
/**
|
|
42
42
|
* Permanently delete a message from an experience chat, DM, or group chat channel.
|
|
43
43
|
* Only the message author or a channel admin can delete a message.
|
|
@@ -197,6 +197,28 @@ export declare namespace MessageListResponse {
|
|
|
197
197
|
* Represents `true` or `false` values.
|
|
198
198
|
*/
|
|
199
199
|
export type MessageDeleteResponse = boolean;
|
|
200
|
+
export interface MessageListParams extends CursorPageParams {
|
|
201
|
+
/**
|
|
202
|
+
* The unique identifier of the channel or experience to list messages for.
|
|
203
|
+
*/
|
|
204
|
+
channel_id: string;
|
|
205
|
+
/**
|
|
206
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
207
|
+
*/
|
|
208
|
+
before?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* The direction of the sort.
|
|
211
|
+
*/
|
|
212
|
+
direction?: Shared.Direction | null;
|
|
213
|
+
/**
|
|
214
|
+
* Returns the first _n_ elements from the list.
|
|
215
|
+
*/
|
|
216
|
+
first?: number | null;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the last _n_ elements from the list.
|
|
219
|
+
*/
|
|
220
|
+
last?: number | null;
|
|
221
|
+
}
|
|
200
222
|
export interface MessageCreateParams {
|
|
201
223
|
/**
|
|
202
224
|
* The unique identifier of the channel or experience to send the message in. For
|
|
@@ -288,29 +310,7 @@ export declare namespace MessageUpdateParams {
|
|
|
288
310
|
id: string;
|
|
289
311
|
}
|
|
290
312
|
}
|
|
291
|
-
export interface MessageListParams extends CursorPageParams {
|
|
292
|
-
/**
|
|
293
|
-
* The unique identifier of the channel or experience to list messages for.
|
|
294
|
-
*/
|
|
295
|
-
channel_id: string;
|
|
296
|
-
/**
|
|
297
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
298
|
-
*/
|
|
299
|
-
before?: string | null;
|
|
300
|
-
/**
|
|
301
|
-
* The direction of the sort.
|
|
302
|
-
*/
|
|
303
|
-
direction?: Shared.Direction | null;
|
|
304
|
-
/**
|
|
305
|
-
* Returns the first _n_ elements from the list.
|
|
306
|
-
*/
|
|
307
|
-
first?: number | null;
|
|
308
|
-
/**
|
|
309
|
-
* Returns the last _n_ elements from the list.
|
|
310
|
-
*/
|
|
311
|
-
last?: number | null;
|
|
312
|
-
}
|
|
313
313
|
export declare namespace Messages {
|
|
314
|
-
export { type MessageListResponse as MessageListResponse, type MessageDeleteResponse as MessageDeleteResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type
|
|
314
|
+
export { type MessageListResponse as MessageListResponse, type MessageDeleteResponse as MessageDeleteResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type MessageListParams as MessageListParams, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, };
|
|
315
315
|
}
|
|
316
316
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,mBAAmB,CAAC;IAInE;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAIvF;;;OAGG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI7B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,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,EAAE,mBAAmB,CAAC,IAAI,GAAG,IAAI,CAAC;IAEvC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC7B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAE3D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -10,15 +10,15 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class Messages extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
14
|
+
* group chat channel, sorted by creation time.
|
|
15
15
|
*
|
|
16
16
|
* Required permissions:
|
|
17
17
|
*
|
|
18
|
-
* - `chat:
|
|
18
|
+
* - `chat:read`
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
return this._client.
|
|
20
|
+
list(query, options) {
|
|
21
|
+
return this._client.getAPIList('/messages', (pagination_1.CursorPage), { query, ...options });
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Retrieves the details of an existing message.
|
|
@@ -30,6 +30,17 @@ class Messages extends resource_1.APIResource {
|
|
|
30
30
|
retrieve(id, options) {
|
|
31
31
|
return this._client.get((0, path_1.path) `/messages/${id}`, options);
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Send a new message in an experience chat, DM, or group chat channel. Supports
|
|
35
|
+
* text content, attachments, polls, and replies.
|
|
36
|
+
*
|
|
37
|
+
* Required permissions:
|
|
38
|
+
*
|
|
39
|
+
* - `chat:message:create`
|
|
40
|
+
*/
|
|
41
|
+
create(body, options) {
|
|
42
|
+
return this._client.post('/messages', { body, ...options });
|
|
43
|
+
}
|
|
33
44
|
/**
|
|
34
45
|
* Edit the content, attachments, or pinned status of an existing message in an
|
|
35
46
|
* experience chat, DM, or group chat channel.
|
|
@@ -37,17 +48,6 @@ class Messages extends resource_1.APIResource {
|
|
|
37
48
|
update(id, body = {}, options) {
|
|
38
49
|
return this._client.patch((0, path_1.path) `/messages/${id}`, { body, ...options });
|
|
39
50
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
42
|
-
* group chat channel, sorted by creation time.
|
|
43
|
-
*
|
|
44
|
-
* Required permissions:
|
|
45
|
-
*
|
|
46
|
-
* - `chat:read`
|
|
47
|
-
*/
|
|
48
|
-
list(query, options) {
|
|
49
|
-
return this._client.getAPIList('/messages', (pagination_1.CursorPage), { query, ...options });
|
|
50
|
-
}
|
|
51
51
|
/**
|
|
52
52
|
* Permanently delete a message from an experience chat, DM, or group chat channel.
|
|
53
53
|
* Only the message author or a channel admin can delete a message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;OAMG;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;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AA9DD,4BA8DC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -7,15 +7,15 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export class Messages extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
11
|
+
* group chat channel, sorted by creation time.
|
|
12
12
|
*
|
|
13
13
|
* Required permissions:
|
|
14
14
|
*
|
|
15
|
-
* - `chat:
|
|
15
|
+
* - `chat:read`
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
|
-
return this._client.
|
|
17
|
+
list(query, options) {
|
|
18
|
+
return this._client.getAPIList('/messages', (CursorPage), { query, ...options });
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Retrieves the details of an existing message.
|
|
@@ -27,6 +27,17 @@ export class Messages extends APIResource {
|
|
|
27
27
|
retrieve(id, options) {
|
|
28
28
|
return this._client.get(path `/messages/${id}`, options);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Send a new message in an experience chat, DM, or group chat channel. Supports
|
|
32
|
+
* text content, attachments, polls, and replies.
|
|
33
|
+
*
|
|
34
|
+
* Required permissions:
|
|
35
|
+
*
|
|
36
|
+
* - `chat:message:create`
|
|
37
|
+
*/
|
|
38
|
+
create(body, options) {
|
|
39
|
+
return this._client.post('/messages', { body, ...options });
|
|
40
|
+
}
|
|
30
41
|
/**
|
|
31
42
|
* Edit the content, attachments, or pinned status of an existing message in an
|
|
32
43
|
* experience chat, DM, or group chat channel.
|
|
@@ -34,17 +45,6 @@ export class Messages extends APIResource {
|
|
|
34
45
|
update(id, body = {}, options) {
|
|
35
46
|
return this._client.patch(path `/messages/${id}`, { body, ...options });
|
|
36
47
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Returns a paginated list of messages within a specific experience chat, DM, or
|
|
39
|
-
* group chat channel, sorted by creation time.
|
|
40
|
-
*
|
|
41
|
-
* Required permissions:
|
|
42
|
-
*
|
|
43
|
-
* - `chat:read`
|
|
44
|
-
*/
|
|
45
|
-
list(query, options) {
|
|
46
|
-
return this._client.getAPIList('/messages', (CursorPage), { query, ...options });
|
|
47
|
-
}
|
|
48
48
|
/**
|
|
49
49
|
* Permanently delete a message from an experience chat, DM, or group chat channel.
|
|
50
50
|
* Only the message author or a channel admin can delete a message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.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;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.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;;;;;;;OAOG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,UAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;OAMG;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;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -9,24 +9,24 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class PaymentMethods extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Returns a paginated list of payment methods for a member or company, with
|
|
13
|
+
* optional filtering by creation date. A payment method is a stored representation
|
|
14
|
+
* of how a customer intends to pay, such as a card, bank account, or digital
|
|
15
|
+
* wallet.
|
|
13
16
|
*
|
|
14
17
|
* Required permissions:
|
|
15
18
|
*
|
|
16
19
|
* - `member:payment_methods:read`
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
* optional filtering by creation date. A payment method is a stored representation
|
|
22
|
-
* of how a customer intends to pay, such as a card, bank account, or digital
|
|
23
|
-
* wallet.
|
|
23
|
+
* Retrieves the details of an existing payment method.
|
|
24
24
|
*
|
|
25
25
|
* Required permissions:
|
|
26
26
|
*
|
|
27
27
|
* - `member:payment_methods:read`
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
|
|
30
30
|
}
|
|
31
31
|
export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListResponse>;
|
|
32
32
|
/**
|
|
@@ -623,18 +623,6 @@ export declare namespace PaymentMethodListResponse {
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
export interface PaymentMethodRetrieveParams {
|
|
627
|
-
/**
|
|
628
|
-
* The unique identifier of the company. Provide either this or member_id, not
|
|
629
|
-
* both.
|
|
630
|
-
*/
|
|
631
|
-
company_id?: string | null;
|
|
632
|
-
/**
|
|
633
|
-
* The unique identifier of the member. Provide either this or company_id, not
|
|
634
|
-
* both.
|
|
635
|
-
*/
|
|
636
|
-
member_id?: string | null;
|
|
637
|
-
}
|
|
638
626
|
export interface PaymentMethodListParams extends CursorPageParams {
|
|
639
627
|
/**
|
|
640
628
|
* Returns the elements in the list that come before the specified cursor.
|
|
@@ -670,7 +658,19 @@ export interface PaymentMethodListParams extends CursorPageParams {
|
|
|
670
658
|
*/
|
|
671
659
|
member_id?: string | null;
|
|
672
660
|
}
|
|
661
|
+
export interface PaymentMethodRetrieveParams {
|
|
662
|
+
/**
|
|
663
|
+
* The unique identifier of the company. Provide either this or member_id, not
|
|
664
|
+
* both.
|
|
665
|
+
*/
|
|
666
|
+
company_id?: string | null;
|
|
667
|
+
/**
|
|
668
|
+
* The unique identifier of the member. Provide either this or company_id, not
|
|
669
|
+
* both.
|
|
670
|
+
*/
|
|
671
|
+
member_id?: string | null;
|
|
672
|
+
}
|
|
673
673
|
export declare namespace PaymentMethods {
|
|
674
|
-
export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type
|
|
674
|
+
export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodListParams as PaymentMethodListParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, };
|
|
675
675
|
}
|
|
676
676
|
//# sourceMappingURL=payment-methods.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.d.mts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"payment-methods.d.mts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,yBAAyB,CAAC;IAO/E;;;;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,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -9,24 +9,24 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class PaymentMethods extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Returns a paginated list of payment methods for a member or company, with
|
|
13
|
+
* optional filtering by creation date. A payment method is a stored representation
|
|
14
|
+
* of how a customer intends to pay, such as a card, bank account, or digital
|
|
15
|
+
* wallet.
|
|
13
16
|
*
|
|
14
17
|
* Required permissions:
|
|
15
18
|
*
|
|
16
19
|
* - `member:payment_methods:read`
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
* optional filtering by creation date. A payment method is a stored representation
|
|
22
|
-
* of how a customer intends to pay, such as a card, bank account, or digital
|
|
23
|
-
* wallet.
|
|
23
|
+
* Retrieves the details of an existing payment method.
|
|
24
24
|
*
|
|
25
25
|
* Required permissions:
|
|
26
26
|
*
|
|
27
27
|
* - `member:payment_methods:read`
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
|
|
30
30
|
}
|
|
31
31
|
export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListResponse>;
|
|
32
32
|
/**
|
|
@@ -623,18 +623,6 @@ export declare namespace PaymentMethodListResponse {
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
export interface PaymentMethodRetrieveParams {
|
|
627
|
-
/**
|
|
628
|
-
* The unique identifier of the company. Provide either this or member_id, not
|
|
629
|
-
* both.
|
|
630
|
-
*/
|
|
631
|
-
company_id?: string | null;
|
|
632
|
-
/**
|
|
633
|
-
* The unique identifier of the member. Provide either this or company_id, not
|
|
634
|
-
* both.
|
|
635
|
-
*/
|
|
636
|
-
member_id?: string | null;
|
|
637
|
-
}
|
|
638
626
|
export interface PaymentMethodListParams extends CursorPageParams {
|
|
639
627
|
/**
|
|
640
628
|
* Returns the elements in the list that come before the specified cursor.
|
|
@@ -670,7 +658,19 @@ export interface PaymentMethodListParams extends CursorPageParams {
|
|
|
670
658
|
*/
|
|
671
659
|
member_id?: string | null;
|
|
672
660
|
}
|
|
661
|
+
export interface PaymentMethodRetrieveParams {
|
|
662
|
+
/**
|
|
663
|
+
* The unique identifier of the company. Provide either this or member_id, not
|
|
664
|
+
* both.
|
|
665
|
+
*/
|
|
666
|
+
company_id?: string | null;
|
|
667
|
+
/**
|
|
668
|
+
* The unique identifier of the member. Provide either this or company_id, not
|
|
669
|
+
* both.
|
|
670
|
+
*/
|
|
671
|
+
member_id?: string | null;
|
|
672
|
+
}
|
|
673
673
|
export declare namespace PaymentMethods {
|
|
674
|
-
export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type
|
|
674
|
+
export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodListParams as PaymentMethodListParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, };
|
|
675
675
|
}
|
|
676
676
|
//# sourceMappingURL=payment-methods.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,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CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -9,16 +9,6 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Payment methods
|
|
10
10
|
*/
|
|
11
11
|
class PaymentMethods extends resource_1.APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves the details of an existing payment method.
|
|
14
|
-
*
|
|
15
|
-
* Required permissions:
|
|
16
|
-
*
|
|
17
|
-
* - `member:payment_methods:read`
|
|
18
|
-
*/
|
|
19
|
-
retrieve(id, query = {}, options) {
|
|
20
|
-
return this._client.get((0, path_1.path) `/payment_methods/${id}`, { query, ...options });
|
|
21
|
-
}
|
|
22
12
|
/**
|
|
23
13
|
* Returns a paginated list of payment methods for a member or company, with
|
|
24
14
|
* optional filtering by creation date. A payment method is a stored representation
|
|
@@ -35,6 +25,16 @@ class PaymentMethods extends resource_1.APIResource {
|
|
|
35
25
|
...options,
|
|
36
26
|
});
|
|
37
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves the details of an existing payment method.
|
|
30
|
+
*
|
|
31
|
+
* Required permissions:
|
|
32
|
+
*
|
|
33
|
+
* - `member:payment_methods:read`
|
|
34
|
+
*/
|
|
35
|
+
retrieve(id, query = {}, options) {
|
|
36
|
+
return this._client.get((0, path_1.path) `/payment_methods/${id}`, { query, ...options });
|
|
37
|
+
}
|
|
38
38
|
}
|
|
39
39
|
exports.PaymentMethods = PaymentMethods;
|
|
40
40
|
//# sourceMappingURL=payment-methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,uBAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAnCD,wCAmCC"}
|
|
@@ -6,16 +6,6 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Payment methods
|
|
7
7
|
*/
|
|
8
8
|
export class PaymentMethods extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves the details of an existing payment method.
|
|
11
|
-
*
|
|
12
|
-
* Required permissions:
|
|
13
|
-
*
|
|
14
|
-
* - `member:payment_methods:read`
|
|
15
|
-
*/
|
|
16
|
-
retrieve(id, query = {}, options) {
|
|
17
|
-
return this._client.get(path `/payment_methods/${id}`, { query, ...options });
|
|
18
|
-
}
|
|
19
9
|
/**
|
|
20
10
|
* Returns a paginated list of payment methods for a member or company, with
|
|
21
11
|
* optional filtering by creation date. A payment method is a stored representation
|
|
@@ -32,5 +22,15 @@ export class PaymentMethods extends APIResource {
|
|
|
32
22
|
...options,
|
|
33
23
|
});
|
|
34
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the details of an existing payment method.
|
|
27
|
+
*
|
|
28
|
+
* Required permissions:
|
|
29
|
+
*
|
|
30
|
+
* - `member:payment_methods:read`
|
|
31
|
+
*/
|
|
32
|
+
retrieve(id, query = {}, options) {
|
|
33
|
+
return this._client.get(path `/payment_methods/${id}`, { query, ...options });
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=payment-methods.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.mjs","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"payment-methods.mjs","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,UAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|