@whop/sdk 0.0.26 → 0.0.28
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 +78 -0
- package/client.d.mts +10 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -9
- package/client.d.ts.map +1 -1
- package/client.js +16 -2
- package/client.js.map +1 -1
- package/client.mjs +16 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +34 -54
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +34 -54
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account-links.d.mts +15 -13
- package/resources/account-links.d.mts.map +1 -1
- package/resources/account-links.d.ts +15 -13
- package/resources/account-links.d.ts.map +1 -1
- package/resources/account-links.js +2 -3
- package/resources/account-links.js.map +1 -1
- package/resources/account-links.mjs +2 -3
- package/resources/account-links.mjs.map +1 -1
- package/resources/ai-chats.d.mts +70 -30
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +70 -30
- 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 +37 -35
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +37 -35
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +7 -4
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +7 -4
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +86 -60
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +86 -60
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +7 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +7 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +38 -32
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +38 -32
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +3 -2
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +3 -2
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +28 -20
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +28 -20
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +5 -3
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +5 -3
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +75 -58
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +75 -58
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -2
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -2
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +88 -56
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +88 -56
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +9 -7
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +9 -7
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +90 -67
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +90 -67
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +6 -3
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +6 -3
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/course-chapters.d.mts +27 -22
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +27 -22
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +5 -5
- package/resources/course-chapters.mjs +5 -5
- package/resources/course-lesson-interactions.d.mts +7 -6
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +7 -6
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +3 -2
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +3 -2
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +141 -99
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +141 -99
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +12 -8
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +12 -8
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +44 -35
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +44 -35
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +3 -2
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +3 -2
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +140 -99
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +140 -99
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +9 -5
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +9 -5
- package/resources/courses.mjs.map +1 -1
- package/resources/disputes.d.mts +176 -120
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +176 -120
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +4 -2
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +4 -2
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +29 -16
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +29 -16
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +9 -5
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +9 -5
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +30 -21
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +30 -21
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +9 -5
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +9 -5
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +35 -27
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +35 -27
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -4
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -4
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +58 -49
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +58 -49
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +6 -5
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +6 -5
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +38 -27
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +38 -27
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +6 -3
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +6 -3
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +23 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +23 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -2
- package/resources/files.mjs.map +1 -1
- package/resources/forum-posts.d.mts +68 -45
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +68 -45
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +8 -4
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +8 -4
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +21 -13
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +21 -13
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +5 -3
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +5 -3
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- 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 +136 -100
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +136 -100
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +7 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +7 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +76 -54
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +76 -54
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +6 -4
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +6 -4
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +19 -15
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +19 -15
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +1 -1
- package/resources/ledger-accounts.mjs +1 -1
- package/resources/members.d.mts +27 -28
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +27 -28
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +3 -2
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +3 -2
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +85 -62
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +85 -62
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +12 -8
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +12 -8
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +53 -35
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +53 -35
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +9 -5
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +9 -5
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +33 -25
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +33 -25
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +2 -1
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +2 -1
- package/resources/notifications.mjs.map +1 -1
- package/resources/payment-methods.d.mts +212 -114
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +212 -114
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +5 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +5 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +96 -56
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +96 -56
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +23 -10
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +23 -10
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-methods.d.mts +50 -35
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +50 -35
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +3 -2
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +3 -2
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +136 -95
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +136 -95
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +9 -5
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +9 -5
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +80 -67
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +80 -67
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +7 -5
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +7 -5
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +60 -40
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +60 -40
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +7 -4
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +7 -4
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -19
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -19
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +7 -4
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +7 -4
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +57 -39
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +57 -39
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -2
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -2
- package/resources/refunds.mjs.map +1 -1
- package/resources/reviews.d.mts +76 -60
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +76 -60
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +3 -2
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +3 -2
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +77 -61
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +77 -61
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +4 -10
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +4 -10
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +854 -509
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +854 -509
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +30 -21
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +30 -21
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +5 -3
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +5 -3
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +28 -20
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +28 -20
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +5 -4
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +5 -4
- package/resources/support-channels.mjs.map +1 -1
- package/resources/topups.d.mts +13 -9
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +13 -9
- package/resources/topups.d.ts.map +1 -1
- package/resources/topups.js +2 -1
- package/resources/topups.js.map +1 -1
- package/resources/topups.mjs +2 -1
- package/resources/topups.mjs.map +1 -1
- package/resources/transfers.d.mts +37 -28
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +37 -28
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +5 -3
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +5 -3
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +60 -18
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +60 -18
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +13 -2
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +13 -2
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +7 -5
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +7 -5
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +1 -1
- package/resources/verifications.mjs +1 -1
- package/resources/webhooks.d.mts +188 -133
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +188 -133
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +60 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +60 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +3 -2
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +3 -2
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +33 -11
- package/src/resources/access-tokens.ts +37 -59
- package/src/resources/account-links.ts +15 -13
- package/src/resources/ai-chats.ts +76 -30
- package/src/resources/app-builds.ts +37 -35
- package/src/resources/apps.ts +89 -60
- package/src/resources/authorized-users.ts +38 -32
- package/src/resources/chat-channels.ts +28 -20
- package/src/resources/checkout-configurations.ts +76 -58
- package/src/resources/companies.ts +94 -57
- package/src/resources/company-token-transactions.ts +91 -68
- package/src/resources/course-chapters.ts +27 -22
- package/src/resources/course-lesson-interactions.ts +7 -6
- package/src/resources/course-lessons.ts +141 -99
- package/src/resources/course-students.ts +44 -35
- package/src/resources/courses.ts +140 -99
- package/src/resources/disputes.ts +176 -120
- package/src/resources/dm-channels.ts +29 -16
- package/src/resources/dm-members.ts +30 -21
- package/src/resources/entries.ts +35 -27
- package/src/resources/experiences.ts +58 -49
- package/src/resources/fee-markups.ts +38 -27
- package/src/resources/files.ts +23 -19
- package/src/resources/forum-posts.ts +69 -45
- package/src/resources/forums.ts +21 -13
- package/src/resources/index.ts +4 -2
- package/src/resources/invoices.ts +140 -100
- package/src/resources/leads.ts +76 -54
- package/src/resources/ledger-accounts.ts +19 -15
- package/src/resources/members.ts +27 -28
- package/src/resources/memberships.ts +86 -62
- package/src/resources/messages.ts +53 -35
- package/src/resources/notifications.ts +33 -25
- package/src/resources/payment-methods.ts +212 -114
- package/src/resources/payments.ts +103 -55
- package/src/resources/payout-methods.ts +50 -35
- package/src/resources/plans.ts +136 -95
- package/src/resources/products.ts +219 -70
- package/src/resources/promo-codes.ts +60 -40
- package/src/resources/reactions.ts +25 -19
- package/src/resources/refunds.ts +59 -39
- package/src/resources/reviews.ts +76 -60
- package/src/resources/setup-intents.ts +77 -61
- package/src/resources/shared.ts +2797 -508
- package/src/resources/shipments.ts +30 -21
- package/src/resources/support-channels.ts +28 -20
- package/src/resources/topups.ts +13 -9
- package/src/resources/transfers.ts +37 -28
- package/src/resources/users.ts +72 -18
- package/src/resources/verifications.ts +7 -5
- package/src/resources/webhooks.ts +188 -133
- package/src/resources/withdrawals.ts +60 -46
- 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
|
@@ -5,7 +5,8 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../core/paginati
|
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
export declare class CourseLessons extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Create a new lesson within a course chapter. Lessons can contain video, text, or
|
|
9
|
+
* assessment content.
|
|
9
10
|
*
|
|
10
11
|
* Required permissions:
|
|
11
12
|
*
|
|
@@ -21,7 +22,7 @@ export declare class CourseLessons extends APIResource {
|
|
|
21
22
|
*/
|
|
22
23
|
create(body: CourseLessonCreateParams, options?: RequestOptions): APIPromise<Lesson>;
|
|
23
24
|
/**
|
|
24
|
-
* Retrieves
|
|
25
|
+
* Retrieves the details of an existing course lesson.
|
|
25
26
|
*
|
|
26
27
|
* Required permissions:
|
|
27
28
|
*
|
|
@@ -36,7 +37,8 @@ export declare class CourseLessons extends APIResource {
|
|
|
36
37
|
*/
|
|
37
38
|
retrieve(id: string, options?: RequestOptions): APIPromise<Lesson>;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Update a lesson's content, type, visibility, assessment questions, or media
|
|
41
|
+
* attachments.
|
|
40
42
|
*
|
|
41
43
|
* Required permissions:
|
|
42
44
|
*
|
|
@@ -51,7 +53,8 @@ export declare class CourseLessons extends APIResource {
|
|
|
51
53
|
*/
|
|
52
54
|
update(id: string, body?: CourseLessonUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lesson>;
|
|
53
55
|
/**
|
|
54
|
-
*
|
|
56
|
+
* Returns a paginated list of lessons within a course or chapter, ordered by
|
|
57
|
+
* position.
|
|
55
58
|
*
|
|
56
59
|
* Required permissions:
|
|
57
60
|
*
|
|
@@ -67,7 +70,7 @@ export declare class CourseLessons extends APIResource {
|
|
|
67
70
|
*/
|
|
68
71
|
list(query?: CourseLessonListParams | null | undefined, options?: RequestOptions): PagePromise<CourseLessonListResponsesCursorPage, CourseLessonListResponse>;
|
|
69
72
|
/**
|
|
70
|
-
*
|
|
73
|
+
* Permanently delete a lesson and remove it from its chapter.
|
|
71
74
|
*
|
|
72
75
|
* Required permissions:
|
|
73
76
|
*
|
|
@@ -82,7 +85,7 @@ export declare class CourseLessons extends APIResource {
|
|
|
82
85
|
*/
|
|
83
86
|
delete(id: string, options?: RequestOptions): APIPromise<CourseLessonDeleteResponse>;
|
|
84
87
|
/**
|
|
85
|
-
*
|
|
88
|
+
* Mark a lesson as completed for the current user after they finish the content.
|
|
86
89
|
*
|
|
87
90
|
* @example
|
|
88
91
|
* ```ts
|
|
@@ -93,7 +96,8 @@ export declare class CourseLessons extends APIResource {
|
|
|
93
96
|
*/
|
|
94
97
|
markAsCompleted(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonMarkAsCompletedResponse>;
|
|
95
98
|
/**
|
|
96
|
-
*
|
|
99
|
+
* Record that the current user has started viewing a lesson, creating progress
|
|
100
|
+
* tracking records.
|
|
97
101
|
*
|
|
98
102
|
* @example
|
|
99
103
|
* ```ts
|
|
@@ -104,7 +108,7 @@ export declare class CourseLessons extends APIResource {
|
|
|
104
108
|
*/
|
|
105
109
|
start(lessonID: string, options?: RequestOptions): APIPromise<CourseLessonStartResponse>;
|
|
106
110
|
/**
|
|
107
|
-
*
|
|
111
|
+
* Submit answers for a quiz or knowledge check lesson and receive a graded result.
|
|
108
112
|
*
|
|
109
113
|
* @example
|
|
110
114
|
* ```ts
|
|
@@ -126,35 +130,40 @@ export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_
|
|
|
126
130
|
*/
|
|
127
131
|
export type EmbedType = 'youtube' | 'loom';
|
|
128
132
|
/**
|
|
129
|
-
*
|
|
133
|
+
* An individual learning unit within a chapter, which can contain text, video,
|
|
134
|
+
* PDF, or assessment content.
|
|
130
135
|
*/
|
|
131
136
|
export interface Lesson {
|
|
132
137
|
/**
|
|
133
|
-
* The
|
|
138
|
+
* The unique identifier for the lesson.
|
|
134
139
|
*/
|
|
135
140
|
id: string;
|
|
136
141
|
/**
|
|
137
|
-
*
|
|
142
|
+
* The list of questions for quiz or knowledge check lessons. Empty for
|
|
143
|
+
* non-assessment lesson types.
|
|
138
144
|
*/
|
|
139
145
|
assessment_questions: Array<Lesson.AssessmentQuestion>;
|
|
140
146
|
/**
|
|
141
|
-
*
|
|
147
|
+
* All supplementary files attached to this lesson returned as a flat array rather
|
|
148
|
+
* than a paginated connection.
|
|
142
149
|
*/
|
|
143
150
|
attachments: Array<Lesson.Attachment>;
|
|
144
151
|
/**
|
|
145
|
-
* The content of the lesson
|
|
152
|
+
* The Markdown content body of the lesson. Null if the lesson has no text content.
|
|
146
153
|
*/
|
|
147
154
|
content: string | null;
|
|
148
155
|
/**
|
|
149
|
-
* The
|
|
156
|
+
* The datetime the lesson was created.
|
|
150
157
|
*/
|
|
151
158
|
created_at: string;
|
|
152
159
|
/**
|
|
153
|
-
*
|
|
160
|
+
* The number of days after a student starts the course before this lesson becomes
|
|
161
|
+
* accessible. Null if the lesson is available immediately.
|
|
154
162
|
*/
|
|
155
163
|
days_from_course_start_until_unlock: number | null;
|
|
156
164
|
/**
|
|
157
|
-
*
|
|
165
|
+
* The external video identifier for embedded video lessons, such as a YouTube
|
|
166
|
+
* video ID or Loom share ID. Null if the lesson has no embed.
|
|
158
167
|
*/
|
|
159
168
|
embed_id: string | null;
|
|
160
169
|
/**
|
|
@@ -162,32 +171,36 @@ export interface Lesson {
|
|
|
162
171
|
*/
|
|
163
172
|
embed_type: EmbedType | null;
|
|
164
173
|
/**
|
|
165
|
-
* The
|
|
174
|
+
* The content format of this lesson. One of: text, video, pdf, multi, quiz,
|
|
175
|
+
* knowledge_check.
|
|
166
176
|
*/
|
|
167
177
|
lesson_type: LessonTypes;
|
|
168
178
|
/**
|
|
169
|
-
* The
|
|
179
|
+
* The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF
|
|
180
|
+
* lesson or no PDF has been uploaded.
|
|
170
181
|
*/
|
|
171
182
|
main_pdf: Lesson.MainPdf | null;
|
|
172
183
|
/**
|
|
173
|
-
* The
|
|
184
|
+
* The sort position of this lesson within its parent chapter, starting from zero.
|
|
174
185
|
*/
|
|
175
186
|
order: number;
|
|
176
187
|
/**
|
|
177
|
-
* The thumbnail
|
|
188
|
+
* The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
|
|
189
|
+
* has been uploaded.
|
|
178
190
|
*/
|
|
179
191
|
thumbnail: Lesson.Thumbnail | null;
|
|
180
192
|
/**
|
|
181
|
-
* The
|
|
193
|
+
* The display name of the lesson shown to students. Maximum 120 characters.
|
|
182
194
|
*/
|
|
183
195
|
title: string;
|
|
184
196
|
/**
|
|
185
|
-
* The
|
|
197
|
+
* The Mux video asset for video-type lessons, used for streaming playback. Null if
|
|
198
|
+
* this lesson has no hosted video.
|
|
186
199
|
*/
|
|
187
200
|
video_asset: Lesson.VideoAsset | null;
|
|
188
201
|
/**
|
|
189
|
-
* The visibility
|
|
190
|
-
*
|
|
202
|
+
* The visibility setting that controls whether this lesson appears to students.
|
|
203
|
+
* One of: visible, hidden.
|
|
191
204
|
*/
|
|
192
205
|
visibility: LessonVisibilities;
|
|
193
206
|
}
|
|
@@ -197,7 +210,7 @@ export declare namespace Lesson {
|
|
|
197
210
|
*/
|
|
198
211
|
interface AssessmentQuestion {
|
|
199
212
|
/**
|
|
200
|
-
* The
|
|
213
|
+
* The unique identifier for the assessment question.
|
|
201
214
|
*/
|
|
202
215
|
id: string;
|
|
203
216
|
/**
|
|
@@ -206,7 +219,7 @@ export declare namespace Lesson {
|
|
|
206
219
|
*/
|
|
207
220
|
correct_answer: string | null;
|
|
208
221
|
/**
|
|
209
|
-
*
|
|
222
|
+
* The datetime the assessment question was created.
|
|
210
223
|
*/
|
|
211
224
|
created_at: string;
|
|
212
225
|
/**
|
|
@@ -236,20 +249,24 @@ export declare namespace Lesson {
|
|
|
236
249
|
*/
|
|
237
250
|
interface Image {
|
|
238
251
|
/**
|
|
239
|
-
*
|
|
252
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
253
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
254
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
255
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
256
|
+
* input value will be accepted as an ID.
|
|
240
257
|
*/
|
|
241
258
|
id: string;
|
|
242
259
|
/**
|
|
243
|
-
* The
|
|
260
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
244
261
|
*/
|
|
245
262
|
content_type: string | null;
|
|
246
263
|
/**
|
|
247
|
-
* The
|
|
264
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
248
265
|
*/
|
|
249
266
|
filename: string | null;
|
|
250
267
|
/**
|
|
251
|
-
*
|
|
252
|
-
*
|
|
268
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
269
|
+
* used for displaying attachments in apps.
|
|
253
270
|
*/
|
|
254
271
|
url: string | null;
|
|
255
272
|
}
|
|
@@ -258,7 +275,7 @@ export declare namespace Lesson {
|
|
|
258
275
|
*/
|
|
259
276
|
interface Option {
|
|
260
277
|
/**
|
|
261
|
-
* The
|
|
278
|
+
* The unique identifier for the assessment question option.
|
|
262
279
|
*/
|
|
263
280
|
id: string;
|
|
264
281
|
/**
|
|
@@ -281,61 +298,72 @@ export declare namespace Lesson {
|
|
|
281
298
|
*/
|
|
282
299
|
interface Attachment {
|
|
283
300
|
/**
|
|
284
|
-
*
|
|
301
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
302
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
303
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
304
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
305
|
+
* input value will be accepted as an ID.
|
|
285
306
|
*/
|
|
286
307
|
id: string;
|
|
287
308
|
/**
|
|
288
|
-
* The
|
|
309
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
289
310
|
*/
|
|
290
311
|
content_type: string | null;
|
|
291
312
|
/**
|
|
292
|
-
* The
|
|
313
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
293
314
|
*/
|
|
294
315
|
filename: string | null;
|
|
295
316
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
317
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
318
|
+
* used for displaying attachments in apps.
|
|
298
319
|
*/
|
|
299
320
|
url: string | null;
|
|
300
321
|
}
|
|
301
322
|
/**
|
|
302
|
-
* The
|
|
323
|
+
* The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF
|
|
324
|
+
* lesson or no PDF has been uploaded.
|
|
303
325
|
*/
|
|
304
326
|
interface MainPdf {
|
|
305
327
|
/**
|
|
306
|
-
*
|
|
328
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
329
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
330
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
331
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
332
|
+
* input value will be accepted as an ID.
|
|
307
333
|
*/
|
|
308
334
|
id: string;
|
|
309
335
|
/**
|
|
310
|
-
* The
|
|
336
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
311
337
|
*/
|
|
312
338
|
content_type: string | null;
|
|
313
339
|
/**
|
|
314
|
-
* The
|
|
340
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
315
341
|
*/
|
|
316
342
|
filename: string | null;
|
|
317
343
|
/**
|
|
318
|
-
*
|
|
319
|
-
*
|
|
344
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
345
|
+
* used for displaying attachments in apps.
|
|
320
346
|
*/
|
|
321
347
|
url: string | null;
|
|
322
348
|
}
|
|
323
349
|
/**
|
|
324
|
-
* The thumbnail
|
|
350
|
+
* The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
|
|
351
|
+
* has been uploaded.
|
|
325
352
|
*/
|
|
326
353
|
interface Thumbnail {
|
|
327
354
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
355
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
356
|
+
* used for displaying attachments in apps.
|
|
330
357
|
*/
|
|
331
358
|
url: string | null;
|
|
332
359
|
}
|
|
333
360
|
/**
|
|
334
|
-
* The
|
|
361
|
+
* The Mux video asset for video-type lessons, used for streaming playback. Null if
|
|
362
|
+
* this lesson has no hosted video.
|
|
335
363
|
*/
|
|
336
364
|
interface VideoAsset {
|
|
337
365
|
/**
|
|
338
|
-
* The
|
|
366
|
+
* The unique identifier for the mux asset.
|
|
339
367
|
*/
|
|
340
368
|
id: string;
|
|
341
369
|
/**
|
|
@@ -347,7 +375,7 @@ export declare namespace Lesson {
|
|
|
347
375
|
*/
|
|
348
376
|
audio_only: boolean;
|
|
349
377
|
/**
|
|
350
|
-
* The
|
|
378
|
+
* The datetime the mux asset was created.
|
|
351
379
|
*/
|
|
352
380
|
created_at: string;
|
|
353
381
|
/**
|
|
@@ -383,7 +411,7 @@ export declare namespace Lesson {
|
|
|
383
411
|
*/
|
|
384
412
|
status: 'uploading' | 'created' | 'ready';
|
|
385
413
|
/**
|
|
386
|
-
* The
|
|
414
|
+
* The datetime the mux asset was last updated.
|
|
387
415
|
*/
|
|
388
416
|
updated_at: string;
|
|
389
417
|
}
|
|
@@ -398,27 +426,30 @@ export type LessonTypes = 'text' | 'video' | 'pdf' | 'multi' | 'quiz' | 'knowled
|
|
|
398
426
|
*/
|
|
399
427
|
export type LessonVisibilities = 'visible' | 'hidden';
|
|
400
428
|
/**
|
|
401
|
-
*
|
|
429
|
+
* An individual learning unit within a chapter, which can contain text, video,
|
|
430
|
+
* PDF, or assessment content.
|
|
402
431
|
*/
|
|
403
432
|
export interface CourseLessonListResponse {
|
|
404
433
|
/**
|
|
405
|
-
* The
|
|
434
|
+
* The unique identifier for the lesson.
|
|
406
435
|
*/
|
|
407
436
|
id: string;
|
|
408
437
|
/**
|
|
409
|
-
* The content of the lesson
|
|
438
|
+
* The Markdown content body of the lesson. Null if the lesson has no text content.
|
|
410
439
|
*/
|
|
411
440
|
content: string | null;
|
|
412
441
|
/**
|
|
413
|
-
* The
|
|
442
|
+
* The datetime the lesson was created.
|
|
414
443
|
*/
|
|
415
444
|
created_at: string;
|
|
416
445
|
/**
|
|
417
|
-
*
|
|
446
|
+
* The number of days after a student starts the course before this lesson becomes
|
|
447
|
+
* accessible. Null if the lesson is available immediately.
|
|
418
448
|
*/
|
|
419
449
|
days_from_course_start_until_unlock: number | null;
|
|
420
450
|
/**
|
|
421
|
-
*
|
|
451
|
+
* The external video identifier for embedded video lessons, such as a YouTube
|
|
452
|
+
* video ID or Loom share ID. Null if the lesson has no embed.
|
|
422
453
|
*/
|
|
423
454
|
embed_id: string | null;
|
|
424
455
|
/**
|
|
@@ -426,35 +457,38 @@ export interface CourseLessonListResponse {
|
|
|
426
457
|
*/
|
|
427
458
|
embed_type: EmbedType | null;
|
|
428
459
|
/**
|
|
429
|
-
* The
|
|
460
|
+
* The content format of this lesson. One of: text, video, pdf, multi, quiz,
|
|
461
|
+
* knowledge_check.
|
|
430
462
|
*/
|
|
431
463
|
lesson_type: LessonTypes;
|
|
432
464
|
/**
|
|
433
|
-
* The
|
|
465
|
+
* The sort position of this lesson within its parent chapter, starting from zero.
|
|
434
466
|
*/
|
|
435
467
|
order: number;
|
|
436
468
|
/**
|
|
437
|
-
* The thumbnail
|
|
469
|
+
* The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
|
|
470
|
+
* has been uploaded.
|
|
438
471
|
*/
|
|
439
472
|
thumbnail: CourseLessonListResponse.Thumbnail | null;
|
|
440
473
|
/**
|
|
441
|
-
* The
|
|
474
|
+
* The display name of the lesson shown to students. Maximum 120 characters.
|
|
442
475
|
*/
|
|
443
476
|
title: string;
|
|
444
477
|
/**
|
|
445
|
-
* The visibility
|
|
446
|
-
*
|
|
478
|
+
* The visibility setting that controls whether this lesson appears to students.
|
|
479
|
+
* One of: visible, hidden.
|
|
447
480
|
*/
|
|
448
481
|
visibility: LessonVisibilities;
|
|
449
482
|
}
|
|
450
483
|
export declare namespace CourseLessonListResponse {
|
|
451
484
|
/**
|
|
452
|
-
* The thumbnail
|
|
485
|
+
* The thumbnail image displayed on lesson cards and previews. Null if no thumbnail
|
|
486
|
+
* has been uploaded.
|
|
453
487
|
*/
|
|
454
488
|
interface Thumbnail {
|
|
455
489
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
490
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
491
|
+
* used for displaying attachments in apps.
|
|
458
492
|
*/
|
|
459
493
|
url: string | null;
|
|
460
494
|
}
|
|
@@ -476,11 +510,11 @@ export type CourseLessonStartResponse = boolean;
|
|
|
476
510
|
*/
|
|
477
511
|
export interface CourseLessonSubmitAssessmentResponse {
|
|
478
512
|
/**
|
|
479
|
-
* The
|
|
513
|
+
* The unique identifier for the assessment result.
|
|
480
514
|
*/
|
|
481
515
|
id: string;
|
|
482
516
|
/**
|
|
483
|
-
*
|
|
517
|
+
* The datetime the assessment result was created.
|
|
484
518
|
*/
|
|
485
519
|
created_at: string;
|
|
486
520
|
/**
|
|
@@ -514,7 +548,7 @@ export interface CourseLessonSubmitAssessmentResponse {
|
|
|
514
548
|
*/
|
|
515
549
|
score_percent: number;
|
|
516
550
|
/**
|
|
517
|
-
*
|
|
551
|
+
* The datetime the assessment result was last updated.
|
|
518
552
|
*/
|
|
519
553
|
updated_at: string;
|
|
520
554
|
/**
|
|
@@ -528,11 +562,11 @@ export declare namespace CourseLessonSubmitAssessmentResponse {
|
|
|
528
562
|
*/
|
|
529
563
|
interface Lesson {
|
|
530
564
|
/**
|
|
531
|
-
* The
|
|
565
|
+
* The unique identifier for the lesson.
|
|
532
566
|
*/
|
|
533
567
|
id: string;
|
|
534
568
|
/**
|
|
535
|
-
* The
|
|
569
|
+
* The display name of the lesson shown to students. Maximum 120 characters.
|
|
536
570
|
*/
|
|
537
571
|
title: string;
|
|
538
572
|
}
|
|
@@ -541,38 +575,41 @@ export declare namespace CourseLessonSubmitAssessmentResponse {
|
|
|
541
575
|
*/
|
|
542
576
|
interface User {
|
|
543
577
|
/**
|
|
544
|
-
* The
|
|
578
|
+
* The unique identifier for the user.
|
|
545
579
|
*/
|
|
546
580
|
id: string;
|
|
547
581
|
/**
|
|
548
|
-
* The
|
|
582
|
+
* The user's display name shown on their public profile.
|
|
549
583
|
*/
|
|
550
584
|
name: string | null;
|
|
551
585
|
/**
|
|
552
|
-
* The
|
|
586
|
+
* The user's unique username shown on their public profile.
|
|
553
587
|
*/
|
|
554
588
|
username: string;
|
|
555
589
|
}
|
|
556
590
|
}
|
|
557
591
|
export interface CourseLessonCreateParams {
|
|
558
592
|
/**
|
|
559
|
-
* The
|
|
593
|
+
* The unique identifier of the chapter to create the lesson in (e.g.,
|
|
594
|
+
* "chap_XXXXX").
|
|
560
595
|
*/
|
|
561
596
|
chapter_id: string;
|
|
562
597
|
/**
|
|
563
|
-
* The type of the lesson
|
|
598
|
+
* The content type of the lesson, such as video, text, quiz, or knowledge check.
|
|
564
599
|
*/
|
|
565
600
|
lesson_type: LessonTypes;
|
|
566
601
|
/**
|
|
567
|
-
* The content of the lesson
|
|
602
|
+
* The Markdown content body of the lesson.
|
|
568
603
|
*/
|
|
569
604
|
content?: string | null;
|
|
570
605
|
/**
|
|
571
|
-
*
|
|
606
|
+
* The number of days after a student starts the course before this lesson becomes
|
|
607
|
+
* accessible.
|
|
572
608
|
*/
|
|
573
609
|
days_from_course_start_until_unlock?: number | null;
|
|
574
610
|
/**
|
|
575
|
-
*
|
|
611
|
+
* The external video identifier for embedded content (e.g., a YouTube video ID or
|
|
612
|
+
* Loom share ID).
|
|
576
613
|
*/
|
|
577
614
|
embed_id?: string | null;
|
|
578
615
|
/**
|
|
@@ -580,17 +617,17 @@ export interface CourseLessonCreateParams {
|
|
|
580
617
|
*/
|
|
581
618
|
embed_type?: EmbedType | null;
|
|
582
619
|
/**
|
|
583
|
-
* The thumbnail for the lesson in
|
|
620
|
+
* The thumbnail image for the lesson in PNG, JPEG, or GIF format.
|
|
584
621
|
*/
|
|
585
622
|
thumbnail?: CourseLessonCreateParams.Thumbnail | null;
|
|
586
623
|
/**
|
|
587
|
-
* The title of the lesson
|
|
624
|
+
* The display title of the lesson (e.g., "Getting Started with APIs").
|
|
588
625
|
*/
|
|
589
626
|
title?: string | null;
|
|
590
627
|
}
|
|
591
628
|
export declare namespace CourseLessonCreateParams {
|
|
592
629
|
/**
|
|
593
|
-
* The thumbnail for the lesson in
|
|
630
|
+
* The thumbnail image for the lesson in PNG, JPEG, or GIF format.
|
|
594
631
|
*/
|
|
595
632
|
interface Thumbnail {
|
|
596
633
|
/**
|
|
@@ -601,29 +638,32 @@ export declare namespace CourseLessonCreateParams {
|
|
|
601
638
|
}
|
|
602
639
|
export interface CourseLessonUpdateParams {
|
|
603
640
|
/**
|
|
604
|
-
*
|
|
641
|
+
* The passing criteria for quiz or knowledge check lessons, such as minimum grade
|
|
642
|
+
* or correct answers.
|
|
605
643
|
*/
|
|
606
644
|
assessment_completion_requirement?: CourseLessonUpdateParams.AssessmentCompletionRequirement | null;
|
|
607
645
|
/**
|
|
608
|
-
*
|
|
609
|
-
* questions.
|
|
646
|
+
* The full list of assessment questions for quiz or knowledge check lessons.
|
|
647
|
+
* Replaces all existing questions.
|
|
610
648
|
*/
|
|
611
649
|
assessment_questions?: Array<CourseLessonUpdateParams.AssessmentQuestion> | null;
|
|
612
650
|
/**
|
|
613
|
-
*
|
|
651
|
+
* File attachments for the lesson such as PDFs or documents. Replaces all existing
|
|
614
652
|
* attachments.
|
|
615
653
|
*/
|
|
616
654
|
attachments?: Array<CourseLessonUpdateParams.Attachment> | null;
|
|
617
655
|
/**
|
|
618
|
-
* The content of the lesson
|
|
656
|
+
* The Markdown content body of the lesson.
|
|
619
657
|
*/
|
|
620
658
|
content?: string | null;
|
|
621
659
|
/**
|
|
622
|
-
*
|
|
660
|
+
* The number of days after a student starts the course before this lesson becomes
|
|
661
|
+
* accessible.
|
|
623
662
|
*/
|
|
624
663
|
days_from_course_start_until_unlock?: number | null;
|
|
625
664
|
/**
|
|
626
|
-
*
|
|
665
|
+
* The external video identifier for embedded content (e.g., a YouTube video ID or
|
|
666
|
+
* Loom share ID).
|
|
627
667
|
*/
|
|
628
668
|
embed_id?: string | null;
|
|
629
669
|
/**
|
|
@@ -635,23 +675,24 @@ export interface CourseLessonUpdateParams {
|
|
|
635
675
|
*/
|
|
636
676
|
lesson_type?: LessonTypes | null;
|
|
637
677
|
/**
|
|
638
|
-
* The
|
|
678
|
+
* The primary PDF document attached to this lesson for student reference.
|
|
639
679
|
*/
|
|
640
680
|
main_pdf?: CourseLessonUpdateParams.MainPdf | null;
|
|
641
681
|
/**
|
|
642
|
-
*
|
|
682
|
+
* The maximum number of attempts a student is allowed for assessment lessons.
|
|
643
683
|
*/
|
|
644
684
|
max_attempts?: number | null;
|
|
645
685
|
/**
|
|
646
|
-
* The
|
|
686
|
+
* The identifier of a Mux video asset to attach to this lesson (e.g.,
|
|
687
|
+
* "mux_XXXXX").
|
|
647
688
|
*/
|
|
648
689
|
mux_asset_id?: string | null;
|
|
649
690
|
/**
|
|
650
|
-
* The thumbnail for the lesson in
|
|
691
|
+
* The thumbnail image for the lesson in PNG, JPEG, or GIF format.
|
|
651
692
|
*/
|
|
652
693
|
thumbnail?: CourseLessonUpdateParams.Thumbnail | null;
|
|
653
694
|
/**
|
|
654
|
-
* The title of the lesson
|
|
695
|
+
* The display title of the lesson (e.g., "Getting Started with APIs").
|
|
655
696
|
*/
|
|
656
697
|
title?: string | null;
|
|
657
698
|
/**
|
|
@@ -662,7 +703,8 @@ export interface CourseLessonUpdateParams {
|
|
|
662
703
|
}
|
|
663
704
|
export declare namespace CourseLessonUpdateParams {
|
|
664
705
|
/**
|
|
665
|
-
*
|
|
706
|
+
* The passing criteria for quiz or knowledge check lessons, such as minimum grade
|
|
707
|
+
* or correct answers.
|
|
666
708
|
*/
|
|
667
709
|
interface AssessmentCompletionRequirement {
|
|
668
710
|
/**
|
|
@@ -745,7 +787,7 @@ export declare namespace CourseLessonUpdateParams {
|
|
|
745
787
|
id: string;
|
|
746
788
|
}
|
|
747
789
|
/**
|
|
748
|
-
* The
|
|
790
|
+
* The primary PDF document attached to this lesson for student reference.
|
|
749
791
|
*/
|
|
750
792
|
interface MainPdf {
|
|
751
793
|
/**
|
|
@@ -754,7 +796,7 @@ export declare namespace CourseLessonUpdateParams {
|
|
|
754
796
|
id: string;
|
|
755
797
|
}
|
|
756
798
|
/**
|
|
757
|
-
* The thumbnail for the lesson in
|
|
799
|
+
* The thumbnail image for the lesson in PNG, JPEG, or GIF format.
|
|
758
800
|
*/
|
|
759
801
|
interface Thumbnail {
|
|
760
802
|
/**
|
|
@@ -769,11 +811,11 @@ export interface CourseLessonListParams extends CursorPageParams {
|
|
|
769
811
|
*/
|
|
770
812
|
before?: string | null;
|
|
771
813
|
/**
|
|
772
|
-
* The
|
|
814
|
+
* The unique identifier of a chapter to return only its lessons.
|
|
773
815
|
*/
|
|
774
816
|
chapter_id?: string | null;
|
|
775
817
|
/**
|
|
776
|
-
* The
|
|
818
|
+
* The unique identifier of the course to return all lessons across all chapters.
|
|
777
819
|
*/
|
|
778
820
|
course_id?: string | null;
|
|
779
821
|
/**
|
|
@@ -787,7 +829,7 @@ export interface CourseLessonListParams extends CursorPageParams {
|
|
|
787
829
|
}
|
|
788
830
|
export interface CourseLessonSubmitAssessmentParams {
|
|
789
831
|
/**
|
|
790
|
-
* The answers to
|
|
832
|
+
* The list of answers to submit for each assessment question.
|
|
791
833
|
*/
|
|
792
834
|
answers: Array<CourseLessonSubmitAssessmentParams.Answer>;
|
|
793
835
|
}
|