@whop/sdk 0.0.30 → 0.0.31
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 +48 -114
- package/client.d.mts +159 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +159 -9
- package/client.d.ts.map +1 -1
- package/client.js +158 -7
- package/client.js.map +1 -1
- package/client.mjs +158 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +22 -22
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/access-tokens.d.mts +3 -0
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +3 -0
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +3 -0
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +3 -0
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account-links.d.mts +3 -0
- package/resources/account-links.d.mts.map +1 -1
- package/resources/account-links.d.ts +3 -0
- package/resources/account-links.d.ts.map +1 -1
- package/resources/account-links.js +3 -0
- package/resources/account-links.js.map +1 -1
- package/resources/account-links.mjs +3 -0
- package/resources/account-links.mjs.map +1 -1
- package/resources/ai-chats.d.mts +8 -0
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +8 -0
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +3 -0
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +3 -0
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +3 -0
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +3 -0
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +3 -0
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +3 -0
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +3 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +3 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +3 -0
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +3 -0
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +142 -1
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +142 -1
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +57 -0
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +57 -0
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +3 -0
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +3 -0
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +3 -0
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +3 -0
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +3 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +3 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +54 -1
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +54 -1
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +3 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +3 -0
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +3 -0
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +3 -0
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +3 -0
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +3 -0
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/course-chapters.d.mts +3 -0
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +3 -0
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +3 -0
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +3 -0
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +3 -0
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +3 -0
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +3 -0
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +3 -0
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +3 -0
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +3 -0
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +3 -0
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +3 -0
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +3 -0
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +3 -0
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +3 -0
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +3 -0
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +3 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +3 -0
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +3 -0
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +3 -0
- package/resources/courses.mjs.map +1 -1
- package/resources/dispute-alerts.d.mts +3 -0
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +3 -0
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +3 -0
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +3 -0
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +3 -0
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +3 -0
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +3 -0
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +3 -0
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +3 -0
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +3 -0
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +3 -0
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +3 -0
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +3 -0
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +3 -0
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +3 -0
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +3 -0
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +3 -0
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +3 -0
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +3 -0
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +3 -0
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +3 -0
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +3 -0
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +3 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +3 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +3 -0
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +3 -0
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +3 -0
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +3 -0
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +3 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +3 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -0
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -0
- package/resources/files.mjs.map +1 -1
- package/resources/forum-posts.d.mts +38 -0
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +38 -0
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +3 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +3 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +20 -0
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +20 -0
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +3 -0
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +3 -0
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +141 -8
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +141 -8
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +4 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +4 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +3 -0
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +3 -0
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +3 -0
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +3 -0
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +3 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +3 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +3 -0
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs +3 -0
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +3 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +3 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +3 -0
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +3 -0
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +81 -2
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +81 -2
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +75 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +75 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +12 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +12 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +3 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +3 -0
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +3 -0
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +3 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +3 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/payment-methods.d.mts +3 -0
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +3 -0
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +3 -0
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +3 -0
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +19 -2
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +19 -2
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +3 -0
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +3 -0
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-methods.d.mts +3 -0
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +3 -0
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +3 -0
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +3 -0
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +3 -0
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +3 -0
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +3 -0
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +3 -0
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +3 -0
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +3 -0
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +3 -0
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +3 -0
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +3 -0
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +3 -0
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +3 -0
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +3 -0
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +3 -0
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +3 -0
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +3 -0
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +3 -0
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +17 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +17 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -0
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -0
- package/resources/refunds.mjs.map +1 -1
- package/resources/reviews.d.mts +3 -0
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +3 -0
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +3 -0
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +3 -0
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +3 -0
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +3 -0
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +3 -0
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +3 -0
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +55 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +55 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +3 -0
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +3 -0
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +3 -0
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +3 -0
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +3 -0
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +3 -0
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +3 -0
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +3 -0
- package/resources/support-channels.mjs.map +1 -1
- package/resources/topups.d.mts +3 -0
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +3 -0
- package/resources/topups.d.ts.map +1 -1
- package/resources/topups.js +3 -0
- package/resources/topups.js.map +1 -1
- package/resources/topups.mjs +3 -0
- package/resources/topups.mjs.map +1 -1
- package/resources/transfers.d.mts +3 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +3 -0
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +3 -0
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +3 -0
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +3 -0
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +3 -0
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +3 -0
- package/resources/verifications.js.map +1 -1
- package/resources/verifications.mjs +3 -0
- package/resources/verifications.mjs.map +1 -1
- package/resources/webhooks.d.mts +29 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +29 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +3 -0
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +3 -0
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +3 -0
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +3 -0
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +175 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/access-tokens.ts +3 -0
- package/src/resources/account-links.ts +3 -0
- package/src/resources/ai-chats.ts +9 -0
- package/src/resources/app-builds.ts +3 -0
- package/src/resources/apps.ts +3 -0
- package/src/resources/authorized-users.ts +175 -0
- package/src/resources/chat-channels.ts +3 -0
- package/src/resources/checkout-configurations.ts +3 -0
- package/src/resources/companies.ts +72 -0
- package/src/resources/company-token-transactions.ts +3 -0
- package/src/resources/course-chapters.ts +3 -0
- package/src/resources/course-lesson-interactions.ts +3 -0
- package/src/resources/course-lessons.ts +3 -0
- package/src/resources/course-students.ts +3 -0
- package/src/resources/courses.ts +3 -0
- package/src/resources/dispute-alerts.ts +3 -0
- package/src/resources/disputes.ts +3 -0
- package/src/resources/dm-channels.ts +3 -0
- package/src/resources/dm-members.ts +3 -0
- package/src/resources/entries.ts +3 -0
- package/src/resources/experiences.ts +3 -0
- package/src/resources/fee-markups.ts +3 -0
- package/src/resources/files.ts +3 -0
- package/src/resources/forum-posts.ts +44 -0
- package/src/resources/forums.ts +22 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/invoices.ts +162 -9
- package/src/resources/leads.ts +3 -0
- package/src/resources/ledger-accounts.ts +3 -0
- package/src/resources/members.ts +3 -0
- package/src/resources/memberships.ts +89 -1
- package/src/resources/messages.ts +14 -0
- package/src/resources/notifications.ts +3 -0
- package/src/resources/payment-methods.ts +3 -0
- package/src/resources/payments.ts +22 -0
- package/src/resources/payout-methods.ts +3 -0
- package/src/resources/plans.ts +3 -0
- package/src/resources/products.ts +3 -0
- package/src/resources/promo-codes.ts +3 -0
- package/src/resources/reactions.ts +3 -0
- package/src/resources/refunds.ts +21 -1
- package/src/resources/reviews.ts +3 -0
- package/src/resources/setup-intents.ts +3 -0
- package/src/resources/shared.ts +66 -11
- package/src/resources/shipments.ts +3 -0
- package/src/resources/support-channels.ts +3 -0
- package/src/resources/topups.ts +3 -0
- package/src/resources/transfers.ts +3 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/verifications.ts +3 -0
- package/src/resources/webhooks.ts +35 -0
- package/src/resources/withdrawals.ts +3 -0
- 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
|
@@ -3,7 +3,28 @@ import * as Shared from "./shared.mjs";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
4
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Authorized users
|
|
8
|
+
*/
|
|
6
9
|
export declare class AuthorizedUsers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Add a new authorized user to a company.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `authorized_user:create`
|
|
16
|
+
* - `member:email:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const authorizedUser = await client.authorizedUsers.create({
|
|
21
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
22
|
+
* role: 'owner',
|
|
23
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(body: AuthorizedUserCreateParams, options?: RequestOptions): APIPromise<AuthorizedUserCreateResponse>;
|
|
7
28
|
/**
|
|
8
29
|
* Retrieves the details of an existing authorized user.
|
|
9
30
|
*
|
|
@@ -11,6 +32,14 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
11
32
|
*
|
|
12
33
|
* - `company:authorized_user:read`
|
|
13
34
|
* - `member:email:read`
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const authorizedUser =
|
|
39
|
+
* await client.authorizedUsers.retrieve(
|
|
40
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
14
43
|
*/
|
|
15
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<AuthorizedUserRetrieveResponse>;
|
|
16
45
|
/**
|
|
@@ -21,10 +50,92 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
21
50
|
*
|
|
22
51
|
* - `company:authorized_user:read`
|
|
23
52
|
* - `member:email:read`
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Automatically fetches more pages as needed.
|
|
57
|
+
* for await (const authorizedUserListResponse of client.authorizedUsers.list()) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
24
61
|
*/
|
|
25
62
|
list(query?: AuthorizedUserListParams | null | undefined, options?: RequestOptions): PagePromise<AuthorizedUserListResponsesCursorPage, AuthorizedUserListResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Remove an authorized user from a company.
|
|
65
|
+
*
|
|
66
|
+
* Required permissions:
|
|
67
|
+
*
|
|
68
|
+
* - `authorized_user:delete`
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const authorizedUser = await client.authorizedUsers.delete(
|
|
73
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
delete(id: string, params?: AuthorizedUserDeleteParams | null | undefined, options?: RequestOptions): APIPromise<AuthorizedUserDeleteResponse>;
|
|
26
78
|
}
|
|
27
79
|
export type AuthorizedUserListResponsesCursorPage = CursorPage<AuthorizedUserListResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* A user who has been granted administrative access to manage a company's
|
|
82
|
+
* dashboard and settings.
|
|
83
|
+
*/
|
|
84
|
+
export interface AuthorizedUserCreateResponse {
|
|
85
|
+
/**
|
|
86
|
+
* The unique identifier for the authorized user.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* The company this authorized user has access to.
|
|
91
|
+
*/
|
|
92
|
+
company: AuthorizedUserCreateResponse.Company;
|
|
93
|
+
/**
|
|
94
|
+
* The permission role assigned to this authorized user within the company.
|
|
95
|
+
*/
|
|
96
|
+
role: Shared.AuthorizedUserRoles;
|
|
97
|
+
/**
|
|
98
|
+
* The user account linked to this authorized user record.
|
|
99
|
+
*/
|
|
100
|
+
user: AuthorizedUserCreateResponse.User;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace AuthorizedUserCreateResponse {
|
|
103
|
+
/**
|
|
104
|
+
* The company this authorized user has access to.
|
|
105
|
+
*/
|
|
106
|
+
interface Company {
|
|
107
|
+
/**
|
|
108
|
+
* The unique identifier for the company.
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
/**
|
|
112
|
+
* The display name of the company shown to customers.
|
|
113
|
+
*/
|
|
114
|
+
title: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The user account linked to this authorized user record.
|
|
118
|
+
*/
|
|
119
|
+
interface User {
|
|
120
|
+
/**
|
|
121
|
+
* The unique identifier for the user.
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
126
|
+
* Null if not authorized.
|
|
127
|
+
*/
|
|
128
|
+
email: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The user's display name shown on their public profile.
|
|
131
|
+
*/
|
|
132
|
+
name: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* The user's unique username shown on their public profile.
|
|
135
|
+
*/
|
|
136
|
+
username: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
28
139
|
/**
|
|
29
140
|
* A user who has been granted administrative access to manage a company's
|
|
30
141
|
* dashboard and settings.
|
|
@@ -143,6 +254,29 @@ export declare namespace AuthorizedUserListResponse {
|
|
|
143
254
|
username: string;
|
|
144
255
|
}
|
|
145
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Represents `true` or `false` values.
|
|
259
|
+
*/
|
|
260
|
+
export type AuthorizedUserDeleteResponse = boolean;
|
|
261
|
+
export interface AuthorizedUserCreateParams {
|
|
262
|
+
/**
|
|
263
|
+
* The ID of the company to add the authorized user to.
|
|
264
|
+
*/
|
|
265
|
+
company_id: string;
|
|
266
|
+
/**
|
|
267
|
+
* The role to assign to the authorized user within the company. Supported roles:
|
|
268
|
+
* 'moderator', 'sales_manager'.
|
|
269
|
+
*/
|
|
270
|
+
role: Shared.AuthorizedUserRoles;
|
|
271
|
+
/**
|
|
272
|
+
* The ID of the user to add as an authorized user.
|
|
273
|
+
*/
|
|
274
|
+
user_id: string;
|
|
275
|
+
/**
|
|
276
|
+
* Whether to send notification emails to the user on creation.
|
|
277
|
+
*/
|
|
278
|
+
send_emails?: boolean | null;
|
|
279
|
+
}
|
|
146
280
|
export interface AuthorizedUserListParams extends CursorPageParams {
|
|
147
281
|
/**
|
|
148
282
|
* Returns the elements in the list that come before the specified cursor.
|
|
@@ -178,7 +312,14 @@ export interface AuthorizedUserListParams extends CursorPageParams {
|
|
|
178
312
|
*/
|
|
179
313
|
user_id?: string | null;
|
|
180
314
|
}
|
|
315
|
+
export interface AuthorizedUserDeleteParams {
|
|
316
|
+
/**
|
|
317
|
+
* The ID of the company the authorized user belongs to. Optional if the authorized
|
|
318
|
+
* user ID is provided.
|
|
319
|
+
*/
|
|
320
|
+
company_id?: string | null;
|
|
321
|
+
}
|
|
181
322
|
export declare namespace AuthorizedUsers {
|
|
182
|
-
export { type AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse as AuthorizedUserListResponse, type AuthorizedUserListResponsesCursorPage as AuthorizedUserListResponsesCursorPage, type AuthorizedUserListParams as AuthorizedUserListParams, };
|
|
323
|
+
export { type AuthorizedUserCreateResponse as AuthorizedUserCreateResponse, type AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse as AuthorizedUserListResponse, type AuthorizedUserDeleteResponse as AuthorizedUserDeleteResponse, type AuthorizedUserListResponsesCursorPage as AuthorizedUserListResponsesCursorPage, type AuthorizedUserCreateParams as AuthorizedUserCreateParams, type AuthorizedUserListParams as AuthorizedUserListParams, type AuthorizedUserDeleteParams as AuthorizedUserDeleteParams, };
|
|
183
324
|
}
|
|
184
325
|
//# sourceMappingURL=authorized-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.d.mts","sourceRoot":"","sources":["../src/resources/authorized-users.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,qBAAa,eAAgB,SAAQ,WAAW;IAC9C
|
|
1
|
+
{"version":3,"file":"authorized-users.d.mts","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1F;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,0BAA0B,CAAC;IAOjF;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAI5C;AAED,MAAM,MAAM,qCAAqC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CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAEzC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,7 +3,28 @@ import * as Shared from "./shared.js";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
4
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Authorized users
|
|
8
|
+
*/
|
|
6
9
|
export declare class AuthorizedUsers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Add a new authorized user to a company.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `authorized_user:create`
|
|
16
|
+
* - `member:email:read`
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const authorizedUser = await client.authorizedUsers.create({
|
|
21
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
22
|
+
* role: 'owner',
|
|
23
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(body: AuthorizedUserCreateParams, options?: RequestOptions): APIPromise<AuthorizedUserCreateResponse>;
|
|
7
28
|
/**
|
|
8
29
|
* Retrieves the details of an existing authorized user.
|
|
9
30
|
*
|
|
@@ -11,6 +32,14 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
11
32
|
*
|
|
12
33
|
* - `company:authorized_user:read`
|
|
13
34
|
* - `member:email:read`
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const authorizedUser =
|
|
39
|
+
* await client.authorizedUsers.retrieve(
|
|
40
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
14
43
|
*/
|
|
15
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<AuthorizedUserRetrieveResponse>;
|
|
16
45
|
/**
|
|
@@ -21,10 +50,92 @@ export declare class AuthorizedUsers extends APIResource {
|
|
|
21
50
|
*
|
|
22
51
|
* - `company:authorized_user:read`
|
|
23
52
|
* - `member:email:read`
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Automatically fetches more pages as needed.
|
|
57
|
+
* for await (const authorizedUserListResponse of client.authorizedUsers.list()) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
24
61
|
*/
|
|
25
62
|
list(query?: AuthorizedUserListParams | null | undefined, options?: RequestOptions): PagePromise<AuthorizedUserListResponsesCursorPage, AuthorizedUserListResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Remove an authorized user from a company.
|
|
65
|
+
*
|
|
66
|
+
* Required permissions:
|
|
67
|
+
*
|
|
68
|
+
* - `authorized_user:delete`
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const authorizedUser = await client.authorizedUsers.delete(
|
|
73
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
delete(id: string, params?: AuthorizedUserDeleteParams | null | undefined, options?: RequestOptions): APIPromise<AuthorizedUserDeleteResponse>;
|
|
26
78
|
}
|
|
27
79
|
export type AuthorizedUserListResponsesCursorPage = CursorPage<AuthorizedUserListResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* A user who has been granted administrative access to manage a company's
|
|
82
|
+
* dashboard and settings.
|
|
83
|
+
*/
|
|
84
|
+
export interface AuthorizedUserCreateResponse {
|
|
85
|
+
/**
|
|
86
|
+
* The unique identifier for the authorized user.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* The company this authorized user has access to.
|
|
91
|
+
*/
|
|
92
|
+
company: AuthorizedUserCreateResponse.Company;
|
|
93
|
+
/**
|
|
94
|
+
* The permission role assigned to this authorized user within the company.
|
|
95
|
+
*/
|
|
96
|
+
role: Shared.AuthorizedUserRoles;
|
|
97
|
+
/**
|
|
98
|
+
* The user account linked to this authorized user record.
|
|
99
|
+
*/
|
|
100
|
+
user: AuthorizedUserCreateResponse.User;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace AuthorizedUserCreateResponse {
|
|
103
|
+
/**
|
|
104
|
+
* The company this authorized user has access to.
|
|
105
|
+
*/
|
|
106
|
+
interface Company {
|
|
107
|
+
/**
|
|
108
|
+
* The unique identifier for the company.
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
/**
|
|
112
|
+
* The display name of the company shown to customers.
|
|
113
|
+
*/
|
|
114
|
+
title: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The user account linked to this authorized user record.
|
|
118
|
+
*/
|
|
119
|
+
interface User {
|
|
120
|
+
/**
|
|
121
|
+
* The unique identifier for the user.
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
126
|
+
* Null if not authorized.
|
|
127
|
+
*/
|
|
128
|
+
email: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The user's display name shown on their public profile.
|
|
131
|
+
*/
|
|
132
|
+
name: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* The user's unique username shown on their public profile.
|
|
135
|
+
*/
|
|
136
|
+
username: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
28
139
|
/**
|
|
29
140
|
* A user who has been granted administrative access to manage a company's
|
|
30
141
|
* dashboard and settings.
|
|
@@ -143,6 +254,29 @@ export declare namespace AuthorizedUserListResponse {
|
|
|
143
254
|
username: string;
|
|
144
255
|
}
|
|
145
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Represents `true` or `false` values.
|
|
259
|
+
*/
|
|
260
|
+
export type AuthorizedUserDeleteResponse = boolean;
|
|
261
|
+
export interface AuthorizedUserCreateParams {
|
|
262
|
+
/**
|
|
263
|
+
* The ID of the company to add the authorized user to.
|
|
264
|
+
*/
|
|
265
|
+
company_id: string;
|
|
266
|
+
/**
|
|
267
|
+
* The role to assign to the authorized user within the company. Supported roles:
|
|
268
|
+
* 'moderator', 'sales_manager'.
|
|
269
|
+
*/
|
|
270
|
+
role: Shared.AuthorizedUserRoles;
|
|
271
|
+
/**
|
|
272
|
+
* The ID of the user to add as an authorized user.
|
|
273
|
+
*/
|
|
274
|
+
user_id: string;
|
|
275
|
+
/**
|
|
276
|
+
* Whether to send notification emails to the user on creation.
|
|
277
|
+
*/
|
|
278
|
+
send_emails?: boolean | null;
|
|
279
|
+
}
|
|
146
280
|
export interface AuthorizedUserListParams extends CursorPageParams {
|
|
147
281
|
/**
|
|
148
282
|
* Returns the elements in the list that come before the specified cursor.
|
|
@@ -178,7 +312,14 @@ export interface AuthorizedUserListParams extends CursorPageParams {
|
|
|
178
312
|
*/
|
|
179
313
|
user_id?: string | null;
|
|
180
314
|
}
|
|
315
|
+
export interface AuthorizedUserDeleteParams {
|
|
316
|
+
/**
|
|
317
|
+
* The ID of the company the authorized user belongs to. Optional if the authorized
|
|
318
|
+
* user ID is provided.
|
|
319
|
+
*/
|
|
320
|
+
company_id?: string | null;
|
|
321
|
+
}
|
|
181
322
|
export declare namespace AuthorizedUsers {
|
|
182
|
-
export { type AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse as AuthorizedUserListResponse, type AuthorizedUserListResponsesCursorPage as AuthorizedUserListResponsesCursorPage, type AuthorizedUserListParams as AuthorizedUserListParams, };
|
|
323
|
+
export { type AuthorizedUserCreateResponse as AuthorizedUserCreateResponse, type AuthorizedUserRetrieveResponse as AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse as AuthorizedUserListResponse, type AuthorizedUserDeleteResponse as AuthorizedUserDeleteResponse, type AuthorizedUserListResponsesCursorPage as AuthorizedUserListResponsesCursorPage, type AuthorizedUserCreateParams as AuthorizedUserCreateParams, type AuthorizedUserListParams as AuthorizedUserListParams, type AuthorizedUserDeleteParams as AuthorizedUserDeleteParams, };
|
|
183
324
|
}
|
|
184
325
|
//# sourceMappingURL=authorized-users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.d.ts","sourceRoot":"","sources":["../src/resources/authorized-users.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,qBAAa,eAAgB,SAAQ,WAAW;IAC9C
|
|
1
|
+
{"version":3,"file":"authorized-users.d.ts","sourceRoot":"","sources":["../src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WAAW,0BAA0B;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -5,7 +5,30 @@ exports.AuthorizedUsers = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Authorized users
|
|
10
|
+
*/
|
|
8
11
|
class AuthorizedUsers extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Add a new authorized user to a company.
|
|
14
|
+
*
|
|
15
|
+
* Required permissions:
|
|
16
|
+
*
|
|
17
|
+
* - `authorized_user:create`
|
|
18
|
+
* - `member:email:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const authorizedUser = await client.authorizedUsers.create({
|
|
23
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
24
|
+
* role: 'owner',
|
|
25
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(body, options) {
|
|
30
|
+
return this._client.post('/authorized_users', { body, ...options });
|
|
31
|
+
}
|
|
9
32
|
/**
|
|
10
33
|
* Retrieves the details of an existing authorized user.
|
|
11
34
|
*
|
|
@@ -13,6 +36,14 @@ class AuthorizedUsers extends resource_1.APIResource {
|
|
|
13
36
|
*
|
|
14
37
|
* - `company:authorized_user:read`
|
|
15
38
|
* - `member:email:read`
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const authorizedUser =
|
|
43
|
+
* await client.authorizedUsers.retrieve(
|
|
44
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
16
47
|
*/
|
|
17
48
|
retrieve(id, options) {
|
|
18
49
|
return this._client.get((0, path_1.path) `/authorized_users/${id}`, options);
|
|
@@ -25,6 +56,14 @@ class AuthorizedUsers extends resource_1.APIResource {
|
|
|
25
56
|
*
|
|
26
57
|
* - `company:authorized_user:read`
|
|
27
58
|
* - `member:email:read`
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* // Automatically fetches more pages as needed.
|
|
63
|
+
* for await (const authorizedUserListResponse of client.authorizedUsers.list()) {
|
|
64
|
+
* // ...
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
28
67
|
*/
|
|
29
68
|
list(query = {}, options) {
|
|
30
69
|
return this._client.getAPIList('/authorized_users', (pagination_1.CursorPage), {
|
|
@@ -32,6 +71,24 @@ class AuthorizedUsers extends resource_1.APIResource {
|
|
|
32
71
|
...options,
|
|
33
72
|
});
|
|
34
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Remove an authorized user from a company.
|
|
76
|
+
*
|
|
77
|
+
* Required permissions:
|
|
78
|
+
*
|
|
79
|
+
* - `authorized_user:delete`
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const authorizedUser = await client.authorizedUsers.delete(
|
|
84
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
delete(id, params = {}, options) {
|
|
89
|
+
const { company_id } = params ?? {};
|
|
90
|
+
return this._client.delete((0, path_1.path) `/authorized_users/${id}`, { query: { company_id }, ...options });
|
|
91
|
+
}
|
|
35
92
|
}
|
|
36
93
|
exports.AuthorizedUsers = AuthorizedUsers;
|
|
37
94
|
//# sourceMappingURL=authorized-users.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.js","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C
|
|
1
|
+
{"version":3,"file":"authorized-users.js","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,uBAAsC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAU,EACV,SAAwD,EAAE,EAC1D,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AA9FD,0CA8FC"}
|
|
@@ -2,7 +2,30 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { CursorPage } from "../core/pagination.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Authorized users
|
|
7
|
+
*/
|
|
5
8
|
export class AuthorizedUsers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Add a new authorized user to a company.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `authorized_user:create`
|
|
15
|
+
* - `member:email:read`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const authorizedUser = await client.authorizedUsers.create({
|
|
20
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
21
|
+
* role: 'owner',
|
|
22
|
+
* user_id: 'user_xxxxxxxxxxxxx',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/authorized_users', { body, ...options });
|
|
28
|
+
}
|
|
6
29
|
/**
|
|
7
30
|
* Retrieves the details of an existing authorized user.
|
|
8
31
|
*
|
|
@@ -10,6 +33,14 @@ export class AuthorizedUsers extends APIResource {
|
|
|
10
33
|
*
|
|
11
34
|
* - `company:authorized_user:read`
|
|
12
35
|
* - `member:email:read`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const authorizedUser =
|
|
40
|
+
* await client.authorizedUsers.retrieve(
|
|
41
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
13
44
|
*/
|
|
14
45
|
retrieve(id, options) {
|
|
15
46
|
return this._client.get(path `/authorized_users/${id}`, options);
|
|
@@ -22,6 +53,14 @@ export class AuthorizedUsers extends APIResource {
|
|
|
22
53
|
*
|
|
23
54
|
* - `company:authorized_user:read`
|
|
24
55
|
* - `member:email:read`
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* // Automatically fetches more pages as needed.
|
|
60
|
+
* for await (const authorizedUserListResponse of client.authorizedUsers.list()) {
|
|
61
|
+
* // ...
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
25
64
|
*/
|
|
26
65
|
list(query = {}, options) {
|
|
27
66
|
return this._client.getAPIList('/authorized_users', (CursorPage), {
|
|
@@ -29,5 +68,23 @@ export class AuthorizedUsers extends APIResource {
|
|
|
29
68
|
...options,
|
|
30
69
|
});
|
|
31
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Remove an authorized user from a company.
|
|
73
|
+
*
|
|
74
|
+
* Required permissions:
|
|
75
|
+
*
|
|
76
|
+
* - `authorized_user:delete`
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const authorizedUser = await client.authorizedUsers.delete(
|
|
81
|
+
* 'ausr_xxxxxxxxxxxxx',
|
|
82
|
+
* );
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
delete(id, params = {}, options) {
|
|
86
|
+
const { company_id } = params ?? {};
|
|
87
|
+
return this._client.delete(path `/authorized_users/${id}`, { query: { company_id }, ...options });
|
|
88
|
+
}
|
|
32
89
|
}
|
|
33
90
|
//# sourceMappingURL=authorized-users.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-users.mjs","sourceRoot":"","sources":["../src/resources/authorized-users.ts"],"names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GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF"}
|
|
@@ -3,6 +3,9 @@ import * as Shared from "./shared.mjs";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
4
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Chat channels
|
|
8
|
+
*/
|
|
6
9
|
export declare class ChatChannels extends APIResource {
|
|
7
10
|
/**
|
|
8
11
|
* Retrieves the details of an existing chat channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.d.mts","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAI9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAIjC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,uBAAuB,CAAC;CAM5E;AAED,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IAC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AG,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -3,6 +3,9 @@ import * as Shared from "./shared.js";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
4
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Chat channels
|
|
8
|
+
*/
|
|
6
9
|
export declare class ChatChannels extends APIResource {
|
|
7
10
|
/**
|
|
8
11
|
* Retrieves the details of an existing chat channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.d.ts","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAI9E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAIjC;;;;;;;;;;;;;;;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,qBAAsB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -5,6 +5,9 @@ exports.ChatChannels = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Chat channels
|
|
10
|
+
*/
|
|
8
11
|
class ChatChannels extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Retrieves the details of an existing chat channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.js","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;OA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ACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnED,oCAmEC"}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { CursorPage } from "../core/pagination.mjs";
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Chat channels
|
|
7
|
+
*/
|
|
5
8
|
export class ChatChannels extends APIResource {
|
|
6
9
|
/**
|
|
7
10
|
* Retrieves the details of an existing chat channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-channels.mjs","sourceRoot":"","sources":["../src/resources/chat-channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAU,EACV,OAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,UAAmC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"chat-channels.mjs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