@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
|
@@ -12,6 +12,27 @@ export class Affiliates extends APIResource {
|
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.overrides = new OverridesAPI.Overrides(this._client);
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a paginated list of affiliates for the actor in context, with optional
|
|
17
|
+
* filtering by status, search, and sorting.
|
|
18
|
+
*
|
|
19
|
+
* Required permissions:
|
|
20
|
+
*
|
|
21
|
+
* - `affiliate:basic:read`
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const affiliateListResponse of client.affiliates.list(
|
|
27
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
28
|
+
* )) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query, options) {
|
|
34
|
+
return this._client.getAPIList('/affiliates', (CursorPage), { query, ...options });
|
|
35
|
+
}
|
|
15
36
|
/**
|
|
16
37
|
* Creates or finds an affiliate for a company and user.
|
|
17
38
|
*
|
|
@@ -47,27 +68,6 @@ export class Affiliates extends APIResource {
|
|
|
47
68
|
retrieve(id, options) {
|
|
48
69
|
return this._client.get(path `/affiliates/${id}`, options);
|
|
49
70
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Returns a paginated list of affiliates for the actor in context, with optional
|
|
52
|
-
* filtering by status, search, and sorting.
|
|
53
|
-
*
|
|
54
|
-
* Required permissions:
|
|
55
|
-
*
|
|
56
|
-
* - `affiliate:basic:read`
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* // Automatically fetches more pages as needed.
|
|
61
|
-
* for await (const affiliateListResponse of client.affiliates.list(
|
|
62
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
63
|
-
* )) {
|
|
64
|
-
* // ...
|
|
65
|
-
* }
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
list(query, options) {
|
|
69
|
-
return this._client.getAPIList('/affiliates', (CursorPage), { query, ...options });
|
|
70
|
-
}
|
|
71
71
|
/**
|
|
72
72
|
* Archives an existing Affiliate
|
|
73
73
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affiliates.mjs","sourceRoot":"","sources":["../../src/resources/affiliates/affiliates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EAiBL,SAAS,GACV;OAEM,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,cAAS,GAA2B,IAAI,YAAY,C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S,CAAC,EAAU,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAqTD,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Affiliates, type Affiliate, type Status, type AffiliateListResponse, type AffiliateArchiveResponse, type AffiliateUnarchiveResponse, type
|
|
2
|
-
export { Overrides, type AffiliateAppliesToPayments, type AffiliateAppliesToProducts, type AffiliateOverrideRoles, type AffiliatePayoutTypes, type AffiliateRevenueBases, type OverrideCreateResponse, type OverrideRetrieveResponse, type OverrideUpdateResponse, type OverrideListResponse, type OverrideDeleteResponse, type
|
|
1
|
+
export { Affiliates, type Affiliate, type Status, type AffiliateListResponse, type AffiliateArchiveResponse, type AffiliateUnarchiveResponse, type AffiliateListParams, type AffiliateCreateParams, type AffiliateListResponsesCursorPage, } from "./affiliates.mjs";
|
|
2
|
+
export { Overrides, type AffiliateAppliesToPayments, type AffiliateAppliesToProducts, type AffiliateOverrideRoles, type AffiliatePayoutTypes, type AffiliateRevenueBases, type OverrideCreateResponse, type OverrideRetrieveResponse, type OverrideUpdateResponse, type OverrideListResponse, type OverrideDeleteResponse, type OverrideListParams, type OverrideCreateParams, type OverrideRetrieveParams, type OverrideUpdateParams, type OverrideDeleteParams, type OverrideListResponsesCursorPage, } from "./overrides.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/affiliates/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/affiliates/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,GACtC;OACM,EACL,SAAS,EACT,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Affiliates, type Affiliate, type Status, type AffiliateListResponse, type AffiliateArchiveResponse, type AffiliateUnarchiveResponse, type
|
|
2
|
-
export { Overrides, type AffiliateAppliesToPayments, type AffiliateAppliesToProducts, type AffiliateOverrideRoles, type AffiliatePayoutTypes, type AffiliateRevenueBases, type OverrideCreateResponse, type OverrideRetrieveResponse, type OverrideUpdateResponse, type OverrideListResponse, type OverrideDeleteResponse, type
|
|
1
|
+
export { Affiliates, type Affiliate, type Status, type AffiliateListResponse, type AffiliateArchiveResponse, type AffiliateUnarchiveResponse, type AffiliateListParams, type AffiliateCreateParams, type AffiliateListResponsesCursorPage, } from "./affiliates.js";
|
|
2
|
+
export { Overrides, type AffiliateAppliesToPayments, type AffiliateAppliesToProducts, type AffiliateOverrideRoles, type AffiliatePayoutTypes, type AffiliateRevenueBases, type OverrideCreateResponse, type OverrideRetrieveResponse, type OverrideUpdateResponse, type OverrideListResponse, type OverrideDeleteResponse, type OverrideListParams, type OverrideCreateParams, type OverrideRetrieveParams, type OverrideUpdateParams, type OverrideDeleteParams, type OverrideListResponsesCursorPage, } from "./overrides.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/affiliates/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/affiliates/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,GACtC;OACM,EACL,SAAS,EACT,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,GACrC"}
|
|
@@ -6,6 +6,24 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
* Affiliates
|
|
7
7
|
*/
|
|
8
8
|
export declare class Overrides extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of overrides for an affiliate.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `affiliate:basic:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
20
|
+
* 'aff_xxxxxxxxxxxxxx',
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(id: string, query?: OverrideListParams | null | undefined, options?: RequestOptions): PagePromise<OverrideListResponsesCursorPage, OverrideListResponse>;
|
|
9
27
|
/**
|
|
10
28
|
* Creates a commission override for an affiliate.
|
|
11
29
|
*
|
|
@@ -59,24 +77,6 @@ export declare class Overrides extends APIResource {
|
|
|
59
77
|
* ```
|
|
60
78
|
*/
|
|
61
79
|
update(overrideID: string, params: OverrideUpdateParams, options?: RequestOptions): APIPromise<OverrideUpdateResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Returns a paginated list of overrides for an affiliate.
|
|
64
|
-
*
|
|
65
|
-
* Required permissions:
|
|
66
|
-
*
|
|
67
|
-
* - `affiliate:basic:read`
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* // Automatically fetches more pages as needed.
|
|
72
|
-
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
73
|
-
* 'aff_xxxxxxxxxxxxxx',
|
|
74
|
-
* )) {
|
|
75
|
-
* // ...
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
list(id: string, query?: OverrideListParams | null | undefined, options?: RequestOptions): PagePromise<OverrideListResponsesCursorPage, OverrideListResponse>;
|
|
80
80
|
/**
|
|
81
81
|
* Deletes an affiliate override.
|
|
82
82
|
*
|
|
@@ -343,6 +343,24 @@ export interface OverrideListResponse {
|
|
|
343
343
|
* Represents `true` or `false` values.
|
|
344
344
|
*/
|
|
345
345
|
export type OverrideDeleteResponse = boolean;
|
|
346
|
+
export interface OverrideListParams extends CursorPageParams {
|
|
347
|
+
/**
|
|
348
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
349
|
+
*/
|
|
350
|
+
before?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Returns the first _n_ elements from the list.
|
|
353
|
+
*/
|
|
354
|
+
first?: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* Returns the last _n_ elements from the list.
|
|
357
|
+
*/
|
|
358
|
+
last?: number | null;
|
|
359
|
+
/**
|
|
360
|
+
* The role of an affiliate override (standard or rev_share)
|
|
361
|
+
*/
|
|
362
|
+
override_type?: AffiliateOverrideRoles | null;
|
|
363
|
+
}
|
|
346
364
|
export type OverrideCreateParams = OverrideCreateParams.CreateAffiliateOverrideInputOverrideTypeStandard | OverrideCreateParams.CreateAffiliateOverrideInputOverrideTypeRevShare;
|
|
347
365
|
export declare namespace OverrideCreateParams {
|
|
348
366
|
interface CreateAffiliateOverrideInputOverrideTypeStandard {
|
|
@@ -421,24 +439,6 @@ export interface OverrideUpdateParams {
|
|
|
421
439
|
*/
|
|
422
440
|
revenue_basis?: AffiliateRevenueBases | null;
|
|
423
441
|
}
|
|
424
|
-
export interface OverrideListParams extends CursorPageParams {
|
|
425
|
-
/**
|
|
426
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
427
|
-
*/
|
|
428
|
-
before?: string | null;
|
|
429
|
-
/**
|
|
430
|
-
* Returns the first _n_ elements from the list.
|
|
431
|
-
*/
|
|
432
|
-
first?: number | null;
|
|
433
|
-
/**
|
|
434
|
-
* Returns the last _n_ elements from the list.
|
|
435
|
-
*/
|
|
436
|
-
last?: number | null;
|
|
437
|
-
/**
|
|
438
|
-
* The role of an affiliate override (standard or rev_share)
|
|
439
|
-
*/
|
|
440
|
-
override_type?: AffiliateOverrideRoles | null;
|
|
441
|
-
}
|
|
442
442
|
export interface OverrideDeleteParams {
|
|
443
443
|
/**
|
|
444
444
|
* The affiliate ID.
|
|
@@ -446,6 +446,6 @@ export interface OverrideDeleteParams {
|
|
|
446
446
|
id: string;
|
|
447
447
|
}
|
|
448
448
|
export declare namespace Overrides {
|
|
449
|
-
export { type AffiliateAppliesToPayments as AffiliateAppliesToPayments, type AffiliateAppliesToProducts as AffiliateAppliesToProducts, type AffiliateOverrideRoles as AffiliateOverrideRoles, type AffiliatePayoutTypes as AffiliatePayoutTypes, type AffiliateRevenueBases as AffiliateRevenueBases, type OverrideCreateResponse as OverrideCreateResponse, type OverrideRetrieveResponse as OverrideRetrieveResponse, type OverrideUpdateResponse as OverrideUpdateResponse, type OverrideListResponse as OverrideListResponse, type OverrideDeleteResponse as OverrideDeleteResponse, type OverrideListResponsesCursorPage as OverrideListResponsesCursorPage, type
|
|
449
|
+
export { type AffiliateAppliesToPayments as AffiliateAppliesToPayments, type AffiliateAppliesToProducts as AffiliateAppliesToProducts, type AffiliateOverrideRoles as AffiliateOverrideRoles, type AffiliatePayoutTypes as AffiliatePayoutTypes, type AffiliateRevenueBases as AffiliateRevenueBases, type OverrideCreateResponse as OverrideCreateResponse, type OverrideRetrieveResponse as OverrideRetrieveResponse, type OverrideUpdateResponse as OverrideUpdateResponse, type OverrideListResponse as OverrideListResponse, type OverrideDeleteResponse as OverrideDeleteResponse, type OverrideListResponsesCursorPage as OverrideListResponsesCursorPage, type OverrideListParams as OverrideListParams, type OverrideCreateParams as OverrideCreateParams, type OverrideRetrieveParams as OverrideRetrieveParams, type OverrideUpdateParams as OverrideUpdateParams, type OverrideDeleteParams as OverrideDeleteParams, };
|
|
450
450
|
}
|
|
451
451
|
//# sourceMappingURL=overrides.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrides.d.mts","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAA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AAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -6,6 +6,24 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
* Affiliates
|
|
7
7
|
*/
|
|
8
8
|
export declare class Overrides extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of overrides for an affiliate.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `affiliate:basic:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
20
|
+
* 'aff_xxxxxxxxxxxxxx',
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(id: string, query?: OverrideListParams | null | undefined, options?: RequestOptions): PagePromise<OverrideListResponsesCursorPage, OverrideListResponse>;
|
|
9
27
|
/**
|
|
10
28
|
* Creates a commission override for an affiliate.
|
|
11
29
|
*
|
|
@@ -59,24 +77,6 @@ export declare class Overrides extends APIResource {
|
|
|
59
77
|
* ```
|
|
60
78
|
*/
|
|
61
79
|
update(overrideID: string, params: OverrideUpdateParams, options?: RequestOptions): APIPromise<OverrideUpdateResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Returns a paginated list of overrides for an affiliate.
|
|
64
|
-
*
|
|
65
|
-
* Required permissions:
|
|
66
|
-
*
|
|
67
|
-
* - `affiliate:basic:read`
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* // Automatically fetches more pages as needed.
|
|
72
|
-
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
73
|
-
* 'aff_xxxxxxxxxxxxxx',
|
|
74
|
-
* )) {
|
|
75
|
-
* // ...
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
list(id: string, query?: OverrideListParams | null | undefined, options?: RequestOptions): PagePromise<OverrideListResponsesCursorPage, OverrideListResponse>;
|
|
80
80
|
/**
|
|
81
81
|
* Deletes an affiliate override.
|
|
82
82
|
*
|
|
@@ -343,6 +343,24 @@ export interface OverrideListResponse {
|
|
|
343
343
|
* Represents `true` or `false` values.
|
|
344
344
|
*/
|
|
345
345
|
export type OverrideDeleteResponse = boolean;
|
|
346
|
+
export interface OverrideListParams extends CursorPageParams {
|
|
347
|
+
/**
|
|
348
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
349
|
+
*/
|
|
350
|
+
before?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Returns the first _n_ elements from the list.
|
|
353
|
+
*/
|
|
354
|
+
first?: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* Returns the last _n_ elements from the list.
|
|
357
|
+
*/
|
|
358
|
+
last?: number | null;
|
|
359
|
+
/**
|
|
360
|
+
* The role of an affiliate override (standard or rev_share)
|
|
361
|
+
*/
|
|
362
|
+
override_type?: AffiliateOverrideRoles | null;
|
|
363
|
+
}
|
|
346
364
|
export type OverrideCreateParams = OverrideCreateParams.CreateAffiliateOverrideInputOverrideTypeStandard | OverrideCreateParams.CreateAffiliateOverrideInputOverrideTypeRevShare;
|
|
347
365
|
export declare namespace OverrideCreateParams {
|
|
348
366
|
interface CreateAffiliateOverrideInputOverrideTypeStandard {
|
|
@@ -421,24 +439,6 @@ export interface OverrideUpdateParams {
|
|
|
421
439
|
*/
|
|
422
440
|
revenue_basis?: AffiliateRevenueBases | null;
|
|
423
441
|
}
|
|
424
|
-
export interface OverrideListParams extends CursorPageParams {
|
|
425
|
-
/**
|
|
426
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
427
|
-
*/
|
|
428
|
-
before?: string | null;
|
|
429
|
-
/**
|
|
430
|
-
* Returns the first _n_ elements from the list.
|
|
431
|
-
*/
|
|
432
|
-
first?: number | null;
|
|
433
|
-
/**
|
|
434
|
-
* Returns the last _n_ elements from the list.
|
|
435
|
-
*/
|
|
436
|
-
last?: number | null;
|
|
437
|
-
/**
|
|
438
|
-
* The role of an affiliate override (standard or rev_share)
|
|
439
|
-
*/
|
|
440
|
-
override_type?: AffiliateOverrideRoles | null;
|
|
441
|
-
}
|
|
442
442
|
export interface OverrideDeleteParams {
|
|
443
443
|
/**
|
|
444
444
|
* The affiliate ID.
|
|
@@ -446,6 +446,6 @@ export interface OverrideDeleteParams {
|
|
|
446
446
|
id: string;
|
|
447
447
|
}
|
|
448
448
|
export declare namespace Overrides {
|
|
449
|
-
export { type AffiliateAppliesToPayments as AffiliateAppliesToPayments, type AffiliateAppliesToProducts as AffiliateAppliesToProducts, type AffiliateOverrideRoles as AffiliateOverrideRoles, type AffiliatePayoutTypes as AffiliatePayoutTypes, type AffiliateRevenueBases as AffiliateRevenueBases, type OverrideCreateResponse as OverrideCreateResponse, type OverrideRetrieveResponse as OverrideRetrieveResponse, type OverrideUpdateResponse as OverrideUpdateResponse, type OverrideListResponse as OverrideListResponse, type OverrideDeleteResponse as OverrideDeleteResponse, type OverrideListResponsesCursorPage as OverrideListResponsesCursorPage, type
|
|
449
|
+
export { type AffiliateAppliesToPayments as AffiliateAppliesToPayments, type AffiliateAppliesToProducts as AffiliateAppliesToProducts, type AffiliateOverrideRoles as AffiliateOverrideRoles, type AffiliatePayoutTypes as AffiliatePayoutTypes, type AffiliateRevenueBases as AffiliateRevenueBases, type OverrideCreateResponse as OverrideCreateResponse, type OverrideRetrieveResponse as OverrideRetrieveResponse, type OverrideUpdateResponse as OverrideUpdateResponse, type OverrideListResponse as OverrideListResponse, type OverrideDeleteResponse as OverrideDeleteResponse, type OverrideListResponsesCursorPage as OverrideListResponsesCursorPage, type OverrideListParams as OverrideListParams, type OverrideCreateParams as OverrideCreateParams, type OverrideRetrieveParams as OverrideRetrieveParams, type OverrideUpdateParams as OverrideUpdateParams, type OverrideDeleteParams as OverrideDeleteParams, };
|
|
450
450
|
}
|
|
451
451
|
//# sourceMappingURL=overrides.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,oBAAoB,CAAC;IAOrE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;OAcG;IACH,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AAe,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,aAAa,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -9,6 +9,29 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
9
9
|
* Affiliates
|
|
10
10
|
*/
|
|
11
11
|
class Overrides extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of overrides for an affiliate.
|
|
14
|
+
*
|
|
15
|
+
* Required permissions:
|
|
16
|
+
*
|
|
17
|
+
* - `affiliate:basic:read`
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
23
|
+
* 'aff_xxxxxxxxxxxxxx',
|
|
24
|
+
* )) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(id, query = {}, options) {
|
|
30
|
+
return this._client.getAPIList((0, path_1.path) `/affiliates/${id}/overrides`, (pagination_1.CursorPage), {
|
|
31
|
+
query,
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
12
35
|
/**
|
|
13
36
|
* Creates a commission override for an affiliate.
|
|
14
37
|
*
|
|
@@ -70,29 +93,6 @@ class Overrides extends resource_1.APIResource {
|
|
|
70
93
|
const { id, ...body } = params;
|
|
71
94
|
return this._client.patch((0, path_1.path) `/affiliates/${id}/overrides/${overrideID}`, { body, ...options });
|
|
72
95
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Returns a paginated list of overrides for an affiliate.
|
|
75
|
-
*
|
|
76
|
-
* Required permissions:
|
|
77
|
-
*
|
|
78
|
-
* - `affiliate:basic:read`
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* // Automatically fetches more pages as needed.
|
|
83
|
-
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
84
|
-
* 'aff_xxxxxxxxxxxxxx',
|
|
85
|
-
* )) {
|
|
86
|
-
* // ...
|
|
87
|
-
* }
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
list(id, query = {}, options) {
|
|
91
|
-
return this._client.getAPIList((0, path_1.path) `/affiliates/${id}/overrides`, (pagination_1.CursorPage), {
|
|
92
|
-
query,
|
|
93
|
-
...options,
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
96
|
/**
|
|
97
97
|
* Deletes an affiliate override.
|
|
98
98
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF;AAEvF,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,UAAkB,EAClB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,UAAkB,EAClB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,cAAc,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF;AAEvF,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO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 -6,6 +6,29 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
6
6
|
* Affiliates
|
|
7
7
|
*/
|
|
8
8
|
export class Overrides extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of overrides for an affiliate.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `affiliate:basic:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
20
|
+
* 'aff_xxxxxxxxxxxxxx',
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(id, query = {}, options) {
|
|
27
|
+
return this._client.getAPIList(path `/affiliates/${id}/overrides`, (CursorPage), {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
9
32
|
/**
|
|
10
33
|
* Creates a commission override for an affiliate.
|
|
11
34
|
*
|
|
@@ -67,29 +90,6 @@ export class Overrides extends APIResource {
|
|
|
67
90
|
const { id, ...body } = params;
|
|
68
91
|
return this._client.patch(path `/affiliates/${id}/overrides/${overrideID}`, { body, ...options });
|
|
69
92
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Returns a paginated list of overrides for an affiliate.
|
|
72
|
-
*
|
|
73
|
-
* Required permissions:
|
|
74
|
-
*
|
|
75
|
-
* - `affiliate:basic:read`
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* // Automatically fetches more pages as needed.
|
|
80
|
-
* for await (const overrideListResponse of client.affiliates.overrides.list(
|
|
81
|
-
* 'aff_xxxxxxxxxxxxxx',
|
|
82
|
-
* )) {
|
|
83
|
-
* // ...
|
|
84
|
-
* }
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
list(id, query = {}, options) {
|
|
88
|
-
return this._client.getAPIList(path `/affiliates/${id}/overrides`, (CursorPage), {
|
|
89
|
-
query,
|
|
90
|
-
...options,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
93
|
/**
|
|
94
94
|
* Deletes an affiliate override.
|
|
95
95
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overrides.mjs","sourceRoot":"","sources":["../../src/resources/affiliates/overrides.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,UAAkB,EAClB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,UAAkB,EAClB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,eAAe,EAAE,cAAc,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED
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,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,UAAkB,EAClB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,EAAE,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF"}
|
package/resources/ai-chats.d.mts
CHANGED
|
@@ -6,6 +6,10 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
* Ai chats
|
|
7
7
|
*/
|
|
8
8
|
export declare class AIChats extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of AI chat threads for the current authenticated user.
|
|
11
|
+
*/
|
|
12
|
+
list(query?: AIChatListParams | null | undefined, options?: RequestOptions): PagePromise<AIChatListResponsesCursorPage, AIChatListResponse>;
|
|
9
13
|
/**
|
|
10
14
|
* Create a new AI chat thread and send the first message to the AI agent.
|
|
11
15
|
*
|
|
@@ -27,10 +31,6 @@ export declare class AIChats extends APIResource {
|
|
|
27
31
|
* - `ai_chat:update`
|
|
28
32
|
*/
|
|
29
33
|
update(id: string, body?: AIChatUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AIChat>;
|
|
30
|
-
/**
|
|
31
|
-
* Returns a paginated list of AI chat threads for the current authenticated user.
|
|
32
|
-
*/
|
|
33
|
-
list(query?: AIChatListParams | null | undefined, options?: RequestOptions): PagePromise<AIChatListResponsesCursorPage, AIChatListResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Delete an AI chat thread so it no longer appears in the user's chat list.
|
|
36
36
|
*
|
|
@@ -161,6 +161,24 @@ export declare namespace AIChatListResponse {
|
|
|
161
161
|
* Represents `true` or `false` values.
|
|
162
162
|
*/
|
|
163
163
|
export type AIChatDeleteResponse = boolean;
|
|
164
|
+
export interface AIChatListParams extends CursorPageParams {
|
|
165
|
+
/**
|
|
166
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
167
|
+
*/
|
|
168
|
+
before?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the first _n_ elements from the list.
|
|
171
|
+
*/
|
|
172
|
+
first?: number | null;
|
|
173
|
+
/**
|
|
174
|
+
* Returns the last _n_ elements from the list.
|
|
175
|
+
*/
|
|
176
|
+
last?: number | null;
|
|
177
|
+
/**
|
|
178
|
+
* When true, returns only chats with an active cron schedule
|
|
179
|
+
*/
|
|
180
|
+
only_active_crons?: boolean | null;
|
|
181
|
+
}
|
|
164
182
|
export interface AIChatCreateParams {
|
|
165
183
|
/**
|
|
166
184
|
* The text content of the first message to send to the AI agent.
|
|
@@ -216,25 +234,7 @@ export interface AIChatUpdateParams {
|
|
|
216
234
|
*/
|
|
217
235
|
title?: string | null;
|
|
218
236
|
}
|
|
219
|
-
export interface AIChatListParams extends CursorPageParams {
|
|
220
|
-
/**
|
|
221
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
222
|
-
*/
|
|
223
|
-
before?: string | null;
|
|
224
|
-
/**
|
|
225
|
-
* Returns the first _n_ elements from the list.
|
|
226
|
-
*/
|
|
227
|
-
first?: number | null;
|
|
228
|
-
/**
|
|
229
|
-
* Returns the last _n_ elements from the list.
|
|
230
|
-
*/
|
|
231
|
-
last?: number | null;
|
|
232
|
-
/**
|
|
233
|
-
* When true, returns only chats with an active cron schedule
|
|
234
|
-
*/
|
|
235
|
-
only_active_crons?: boolean | null;
|
|
236
|
-
}
|
|
237
237
|
export declare namespace AIChats {
|
|
238
|
-
export { type AIChat as AIChat, type NotificationPreferences as NotificationPreferences, type AIChatListResponse as AIChatListResponse, type AIChatDeleteResponse as AIChatDeleteResponse, type AIChatListResponsesCursorPage as AIChatListResponsesCursorPage, type
|
|
238
|
+
export { type AIChat as AIChat, type NotificationPreferences as NotificationPreferences, type AIChatListResponse as AIChatListResponse, type AIChatDeleteResponse as AIChatDeleteResponse, type AIChatListResponsesCursorPage as AIChatListResponsesCursorPage, type AIChatListParams as AIChatListParams, type AIChatCreateParams as AIChatCreateParams, type AIChatUpdateParams as AIChatUpdateParams, };
|
|
239
239
|
}
|
|
240
240
|
//# sourceMappingURL=ai-chats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chats.d.mts","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIlE;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAIrB
|
|
1
|
+
{"version":3,"file":"ai-chats.d.mts","sourceRoot":"","sources":["../src/resources/ai-chats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,kBAAk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