@studyfetch/sdk 1.1.1 → 1.2.0
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 +28 -15
- package/README.md +62 -17
- package/client.d.mts +1 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -16
- package/client.js.map +1 -1
- package/client.mjs +3 -16
- package/client.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/admin/admin.d.mts +6 -0
- package/resources/v1/admin/admin.d.mts.map +1 -1
- package/resources/v1/admin/admin.d.ts +6 -0
- package/resources/v1/admin/admin.d.ts.map +1 -1
- package/resources/v1/admin/admin.js +6 -0
- package/resources/v1/admin/admin.js.map +1 -1
- package/resources/v1/admin/admin.mjs +6 -0
- package/resources/v1/admin/admin.mjs.map +1 -1
- package/resources/v1/admin/models.d.mts +6 -0
- package/resources/v1/admin/models.d.mts.map +1 -1
- package/resources/v1/admin/models.d.ts +6 -0
- package/resources/v1/admin/models.d.ts.map +1 -1
- package/resources/v1/admin/models.js +6 -0
- package/resources/v1/admin/models.js.map +1 -1
- package/resources/v1/admin/models.mjs +6 -0
- package/resources/v1/admin/models.mjs.map +1 -1
- package/resources/v1/admin/organization-invites.d.mts +26 -0
- package/resources/v1/admin/organization-invites.d.mts.map +1 -1
- package/resources/v1/admin/organization-invites.d.ts +26 -0
- package/resources/v1/admin/organization-invites.d.ts.map +1 -1
- package/resources/v1/admin/organization-invites.js +26 -0
- package/resources/v1/admin/organization-invites.js.map +1 -1
- package/resources/v1/admin/organization-invites.mjs +26 -0
- package/resources/v1/admin/organization-invites.mjs.map +1 -1
- package/resources/v1/admin/organizations/models/excluded.d.mts +16 -0
- package/resources/v1/admin/organizations/models/excluded.d.mts.map +1 -1
- package/resources/v1/admin/organizations/models/excluded.d.ts +16 -0
- package/resources/v1/admin/organizations/models/excluded.d.ts.map +1 -1
- package/resources/v1/admin/organizations/models/excluded.js +16 -0
- package/resources/v1/admin/organizations/models/excluded.js.map +1 -1
- package/resources/v1/admin/organizations/models/excluded.mjs +16 -0
- package/resources/v1/admin/organizations/models/excluded.mjs.map +1 -1
- package/resources/v1/admin/organizations/organizations.d.mts +6 -0
- package/resources/v1/admin/organizations/organizations.d.mts.map +1 -1
- package/resources/v1/admin/organizations/organizations.d.ts +6 -0
- package/resources/v1/admin/organizations/organizations.d.ts.map +1 -1
- package/resources/v1/admin/organizations/organizations.js +6 -0
- package/resources/v1/admin/organizations/organizations.js.map +1 -1
- package/resources/v1/admin/organizations/organizations.mjs +6 -0
- package/resources/v1/admin/organizations/organizations.mjs.map +1 -1
- package/resources/v1/audio-recaps/audio-recaps.d.mts +24 -0
- package/resources/v1/audio-recaps/audio-recaps.d.mts.map +1 -1
- package/resources/v1/audio-recaps/audio-recaps.d.ts +24 -0
- package/resources/v1/audio-recaps/audio-recaps.d.ts.map +1 -1
- package/resources/v1/audio-recaps/audio-recaps.js +24 -0
- package/resources/v1/audio-recaps/audio-recaps.js.map +1 -1
- package/resources/v1/audio-recaps/audio-recaps.mjs +24 -0
- package/resources/v1/audio-recaps/audio-recaps.mjs.map +1 -1
- package/resources/v1/audio-recaps/sections.d.mts +21 -0
- package/resources/v1/audio-recaps/sections.d.mts.map +1 -1
- package/resources/v1/audio-recaps/sections.d.ts +21 -0
- package/resources/v1/audio-recaps/sections.d.ts.map +1 -1
- package/resources/v1/audio-recaps/sections.js +18 -0
- package/resources/v1/audio-recaps/sections.js.map +1 -1
- package/resources/v1/audio-recaps/sections.mjs +18 -0
- package/resources/v1/audio-recaps/sections.mjs.map +1 -1
- package/resources/v1/auth/auth.d.mts +108 -7
- package/resources/v1/auth/auth.d.mts.map +1 -1
- package/resources/v1/auth/auth.d.ts +108 -7
- package/resources/v1/auth/auth.d.ts.map +1 -1
- package/resources/v1/auth/auth.js +80 -8
- package/resources/v1/auth/auth.js.map +1 -1
- package/resources/v1/auth/auth.mjs +80 -8
- package/resources/v1/auth/auth.mjs.map +1 -1
- package/resources/v1/auth/index.d.mts +2 -2
- package/resources/v1/auth/index.d.mts.map +1 -1
- package/resources/v1/auth/index.d.ts +2 -2
- package/resources/v1/auth/index.d.ts.map +1 -1
- package/resources/v1/auth/index.js.map +1 -1
- package/resources/v1/auth/index.mjs.map +1 -1
- package/resources/v1/auth/login.d.mts +60 -3
- package/resources/v1/auth/login.d.mts.map +1 -1
- package/resources/v1/auth/login.d.ts +60 -3
- package/resources/v1/auth/login.d.ts.map +1 -1
- package/resources/v1/auth/login.js +34 -1
- package/resources/v1/auth/login.js.map +1 -1
- package/resources/v1/auth/login.mjs +34 -1
- package/resources/v1/auth/login.mjs.map +1 -1
- package/resources/v1/auth/number-2fa.d.mts +63 -1
- package/resources/v1/auth/number-2fa.d.mts.map +1 -1
- package/resources/v1/auth/number-2fa.d.ts +63 -1
- package/resources/v1/auth/number-2fa.d.ts.map +1 -1
- package/resources/v1/auth/number-2fa.js +52 -6
- package/resources/v1/auth/number-2fa.js.map +1 -1
- package/resources/v1/auth/number-2fa.mjs +52 -6
- package/resources/v1/auth/number-2fa.mjs.map +1 -1
- package/resources/v1/auth/organization-invites.d.mts +6 -0
- package/resources/v1/auth/organization-invites.d.mts.map +1 -1
- package/resources/v1/auth/organization-invites.d.ts +6 -0
- package/resources/v1/auth/organization-invites.d.ts.map +1 -1
- package/resources/v1/auth/organization-invites.js +6 -0
- package/resources/v1/auth/organization-invites.js.map +1 -1
- package/resources/v1/auth/organization-invites.mjs +6 -0
- package/resources/v1/auth/organization-invites.mjs.map +1 -1
- package/resources/v1/chat/chat.d.mts +131 -6
- package/resources/v1/chat/chat.d.mts.map +1 -1
- package/resources/v1/chat/chat.d.ts +131 -6
- package/resources/v1/chat/chat.d.ts.map +1 -1
- package/resources/v1/chat/chat.js +55 -13
- package/resources/v1/chat/chat.js.map +1 -1
- package/resources/v1/chat/chat.mjs +55 -13
- package/resources/v1/chat/chat.mjs.map +1 -1
- package/resources/v1/chat/index.d.mts +1 -1
- package/resources/v1/chat/index.d.mts.map +1 -1
- package/resources/v1/chat/index.d.ts +1 -1
- package/resources/v1/chat/index.d.ts.map +1 -1
- package/resources/v1/chat/sessions.d.mts +14 -0
- package/resources/v1/chat/sessions.d.mts.map +1 -1
- package/resources/v1/chat/sessions.d.ts +14 -0
- package/resources/v1/chat/sessions.d.ts.map +1 -1
- package/resources/v1/chat/sessions.js +14 -0
- package/resources/v1/chat/sessions.js.map +1 -1
- package/resources/v1/chat/sessions.mjs +14 -0
- package/resources/v1/chat/sessions.mjs.map +1 -1
- package/resources/v1/chat/test.d.mts +12 -0
- package/resources/v1/chat/test.d.mts.map +1 -1
- package/resources/v1/chat/test.d.ts +12 -0
- package/resources/v1/chat/test.d.ts.map +1 -1
- package/resources/v1/chat/test.js +12 -0
- package/resources/v1/chat/test.js.map +1 -1
- package/resources/v1/chat/test.mjs +12 -0
- package/resources/v1/chat/test.mjs.map +1 -1
- package/resources/v1/components.d.mts +228 -2
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +228 -2
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/components.js +72 -1
- package/resources/v1/components.js.map +1 -1
- package/resources/v1/components.mjs +72 -1
- package/resources/v1/components.mjs.map +1 -1
- package/resources/v1/embed/component.d.mts +31 -0
- package/resources/v1/embed/component.d.mts.map +1 -1
- package/resources/v1/embed/component.d.ts +31 -0
- package/resources/v1/embed/component.d.ts.map +1 -1
- package/resources/v1/embed/component.js +23 -1
- package/resources/v1/embed/component.js.map +1 -1
- package/resources/v1/embed/component.mjs +23 -1
- package/resources/v1/embed/component.mjs.map +1 -1
- package/resources/v1/embed/embed.d.mts +32 -6
- package/resources/v1/embed/embed.d.mts.map +1 -1
- package/resources/v1/embed/embed.d.ts +32 -6
- package/resources/v1/embed/embed.d.ts.map +1 -1
- package/resources/v1/embed/embed.js +27 -11
- package/resources/v1/embed/embed.js.map +1 -1
- package/resources/v1/embed/embed.mjs +27 -11
- package/resources/v1/embed/embed.mjs.map +1 -1
- package/resources/v1/embed/index.d.mts +1 -1
- package/resources/v1/embed/index.d.mts.map +1 -1
- package/resources/v1/embed/index.d.ts +1 -1
- package/resources/v1/embed/index.d.ts.map +1 -1
- package/resources/v1/embed/index.js.map +1 -1
- package/resources/v1/embed/index.mjs.map +1 -1
- package/resources/v1/explainers.d.mts +21 -2
- package/resources/v1/explainers.d.mts.map +1 -1
- package/resources/v1/explainers.d.ts +21 -2
- package/resources/v1/explainers.d.ts.map +1 -1
- package/resources/v1/explainers.js +19 -1
- package/resources/v1/explainers.js.map +1 -1
- package/resources/v1/explainers.mjs +19 -1
- package/resources/v1/explainers.mjs.map +1 -1
- package/resources/v1/flashcards.d.mts +242 -16
- package/resources/v1/flashcards.d.mts.map +1 -1
- package/resources/v1/flashcards.d.ts +242 -16
- package/resources/v1/flashcards.d.ts.map +1 -1
- package/resources/v1/flashcards.js +78 -21
- package/resources/v1/flashcards.js.map +1 -1
- package/resources/v1/flashcards.mjs +78 -21
- package/resources/v1/flashcards.mjs.map +1 -1
- package/resources/v1/folders.d.mts +93 -4
- package/resources/v1/folders.d.mts.map +1 -1
- package/resources/v1/folders.d.ts +93 -4
- package/resources/v1/folders.d.ts.map +1 -1
- package/resources/v1/folders.js +72 -9
- package/resources/v1/folders.js.map +1 -1
- package/resources/v1/folders.mjs +72 -9
- package/resources/v1/folders.mjs.map +1 -1
- package/resources/v1/index.d.mts +11 -10
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +11 -10
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +5 -4
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/bulk.d.mts +6 -0
- package/resources/v1/materials/bulk.d.mts.map +1 -1
- package/resources/v1/materials/bulk.d.ts +6 -0
- package/resources/v1/materials/bulk.d.ts.map +1 -1
- package/resources/v1/materials/bulk.js +6 -0
- package/resources/v1/materials/bulk.js.map +1 -1
- package/resources/v1/materials/bulk.mjs +6 -0
- package/resources/v1/materials/bulk.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +2 -2
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +2 -2
- package/resources/v1/materials/index.d.ts.map +1 -1
- package/resources/v1/materials/index.js.map +1 -1
- package/resources/v1/materials/index.mjs +1 -1
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +125 -5
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +125 -5
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +82 -2
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +82 -2
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/test.d.mts +28 -4
- package/resources/v1/materials/test.d.mts.map +1 -1
- package/resources/v1/materials/test.d.ts +28 -4
- package/resources/v1/materials/test.d.ts.map +1 -1
- package/resources/v1/materials/test.js +31 -7
- package/resources/v1/materials/test.js.map +1 -1
- package/resources/v1/materials/test.mjs +31 -7
- package/resources/v1/materials/test.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +66 -3
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +66 -3
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +41 -8
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +41 -8
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/organizations/api-keys.d.mts +32 -1
- package/resources/v1/organizations/api-keys.d.mts.map +1 -1
- package/resources/v1/organizations/api-keys.d.ts +32 -1
- package/resources/v1/organizations/api-keys.d.ts.map +1 -1
- package/resources/v1/organizations/api-keys.js +24 -1
- package/resources/v1/organizations/api-keys.js.map +1 -1
- package/resources/v1/organizations/api-keys.mjs +24 -1
- package/resources/v1/organizations/api-keys.mjs.map +1 -1
- package/resources/v1/organizations/index.d.mts +1 -1
- package/resources/v1/organizations/index.d.mts.map +1 -1
- package/resources/v1/organizations/index.d.ts +1 -1
- package/resources/v1/organizations/index.d.ts.map +1 -1
- package/resources/v1/organizations/index.js.map +1 -1
- package/resources/v1/organizations/index.mjs.map +1 -1
- package/resources/v1/organizations/logo/logo.d.mts +6 -0
- package/resources/v1/organizations/logo/logo.d.mts.map +1 -1
- package/resources/v1/organizations/logo/logo.d.ts +6 -0
- package/resources/v1/organizations/logo/logo.d.ts.map +1 -1
- package/resources/v1/organizations/logo/logo.js +6 -0
- package/resources/v1/organizations/logo/logo.js.map +1 -1
- package/resources/v1/organizations/logo/logo.mjs +6 -0
- package/resources/v1/organizations/logo/logo.mjs.map +1 -1
- package/resources/v1/organizations/logo/upload.d.mts +12 -0
- package/resources/v1/organizations/logo/upload.d.mts.map +1 -1
- package/resources/v1/organizations/logo/upload.d.ts +12 -0
- package/resources/v1/organizations/logo/upload.d.ts.map +1 -1
- package/resources/v1/organizations/logo/upload.js +12 -0
- package/resources/v1/organizations/logo/upload.js.map +1 -1
- package/resources/v1/organizations/logo/upload.mjs +12 -0
- package/resources/v1/organizations/logo/upload.mjs.map +1 -1
- package/resources/v1/organizations/organizations.d.mts +14 -2
- package/resources/v1/organizations/organizations.d.mts.map +1 -1
- package/resources/v1/organizations/organizations.d.ts +14 -2
- package/resources/v1/organizations/organizations.d.ts.map +1 -1
- package/resources/v1/organizations/organizations.js +12 -0
- package/resources/v1/organizations/organizations.js.map +1 -1
- package/resources/v1/organizations/organizations.mjs +12 -0
- package/resources/v1/organizations/organizations.mjs.map +1 -1
- package/resources/v1/organizations/profile/models.d.mts +6 -0
- package/resources/v1/organizations/profile/models.d.mts.map +1 -1
- package/resources/v1/organizations/profile/models.d.ts +6 -0
- package/resources/v1/organizations/profile/models.d.ts.map +1 -1
- package/resources/v1/organizations/profile/models.js +6 -0
- package/resources/v1/organizations/profile/models.js.map +1 -1
- package/resources/v1/organizations/profile/models.mjs +6 -0
- package/resources/v1/organizations/profile/models.mjs.map +1 -1
- package/resources/v1/organizations/profile/profile.d.mts +14 -0
- package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
- package/resources/v1/organizations/profile/profile.d.ts +14 -0
- package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
- package/resources/v1/organizations/profile/profile.js +14 -0
- package/resources/v1/organizations/profile/profile.js.map +1 -1
- package/resources/v1/organizations/profile/profile.mjs +14 -0
- package/resources/v1/organizations/profile/profile.mjs.map +1 -1
- package/resources/v1/organizations/profile/team.d.mts +40 -0
- package/resources/v1/organizations/profile/team.d.mts.map +1 -1
- package/resources/v1/organizations/profile/team.d.ts +40 -0
- package/resources/v1/organizations/profile/team.d.ts.map +1 -1
- package/resources/v1/organizations/profile/team.js +40 -0
- package/resources/v1/organizations/profile/team.js.map +1 -1
- package/resources/v1/organizations/profile/team.mjs +40 -0
- package/resources/v1/organizations/profile/team.mjs.map +1 -1
- package/resources/v1/organizations/team/invite.d.mts +14 -0
- package/resources/v1/organizations/team/invite.d.mts.map +1 -1
- package/resources/v1/organizations/team/invite.d.ts +14 -0
- package/resources/v1/organizations/team/invite.d.ts.map +1 -1
- package/resources/v1/organizations/team/invite.js +14 -0
- package/resources/v1/organizations/team/invite.js.map +1 -1
- package/resources/v1/organizations/team/invite.mjs +14 -0
- package/resources/v1/organizations/team/invite.mjs.map +1 -1
- package/resources/v1/organizations/team/team.d.mts +42 -0
- package/resources/v1/organizations/team/team.d.mts.map +1 -1
- package/resources/v1/organizations/team/team.d.ts +42 -0
- package/resources/v1/organizations/team/team.d.ts.map +1 -1
- package/resources/v1/organizations/team/team.js +42 -0
- package/resources/v1/organizations/team/team.js.map +1 -1
- package/resources/v1/organizations/team/team.mjs +42 -0
- package/resources/v1/organizations/team/team.mjs.map +1 -1
- package/resources/v1/organizations/theme.d.mts +12 -0
- package/resources/v1/organizations/theme.d.mts.map +1 -1
- package/resources/v1/organizations/theme.d.ts +12 -0
- package/resources/v1/organizations/theme.d.ts.map +1 -1
- package/resources/v1/organizations/theme.js +12 -0
- package/resources/v1/organizations/theme.js.map +1 -1
- package/resources/v1/organizations/theme.mjs +12 -0
- package/resources/v1/organizations/theme.mjs.map +1 -1
- package/resources/v1/organizations/usage.d.mts +8 -0
- package/resources/v1/organizations/usage.d.mts.map +1 -1
- package/resources/v1/organizations/usage.d.ts +8 -0
- package/resources/v1/organizations/usage.d.ts.map +1 -1
- package/resources/v1/organizations/usage.js +8 -0
- package/resources/v1/organizations/usage.js.map +1 -1
- package/resources/v1/organizations/usage.mjs +8 -0
- package/resources/v1/organizations/usage.mjs.map +1 -1
- package/resources/v1/scenarios/component.d.mts +33 -1
- package/resources/v1/scenarios/component.d.mts.map +1 -1
- package/resources/v1/scenarios/component.d.ts +33 -1
- package/resources/v1/scenarios/component.d.ts.map +1 -1
- package/resources/v1/scenarios/component.js +29 -1
- package/resources/v1/scenarios/component.js.map +1 -1
- package/resources/v1/scenarios/component.mjs +29 -1
- package/resources/v1/scenarios/component.mjs.map +1 -1
- package/resources/v1/scenarios/index.d.mts +2 -2
- package/resources/v1/scenarios/index.d.mts.map +1 -1
- package/resources/v1/scenarios/index.d.ts +2 -2
- package/resources/v1/scenarios/index.d.ts.map +1 -1
- package/resources/v1/scenarios/index.js.map +1 -1
- package/resources/v1/scenarios/index.mjs.map +1 -1
- package/resources/v1/scenarios/scenarios.d.mts +63 -4
- package/resources/v1/scenarios/scenarios.d.mts.map +1 -1
- package/resources/v1/scenarios/scenarios.d.ts +63 -4
- package/resources/v1/scenarios/scenarios.d.ts.map +1 -1
- package/resources/v1/scenarios/scenarios.js +58 -2
- package/resources/v1/scenarios/scenarios.js.map +1 -1
- package/resources/v1/scenarios/scenarios.mjs +58 -2
- package/resources/v1/scenarios/scenarios.mjs.map +1 -1
- package/resources/v1/scenarios/sessions.d.mts +12 -0
- package/resources/v1/scenarios/sessions.d.mts.map +1 -1
- package/resources/v1/scenarios/sessions.d.ts +12 -0
- package/resources/v1/scenarios/sessions.d.ts.map +1 -1
- package/resources/v1/scenarios/sessions.js +12 -0
- package/resources/v1/scenarios/sessions.js.map +1 -1
- package/resources/v1/scenarios/sessions.mjs +12 -0
- package/resources/v1/scenarios/sessions.mjs.map +1 -1
- package/resources/v1/scenarios/submissions/user.d.mts +12 -0
- package/resources/v1/scenarios/submissions/user.d.mts.map +1 -1
- package/resources/v1/scenarios/submissions/user.d.ts +12 -0
- package/resources/v1/scenarios/submissions/user.d.ts.map +1 -1
- package/resources/v1/scenarios/submissions/user.js +12 -0
- package/resources/v1/scenarios/submissions/user.js.map +1 -1
- package/resources/v1/scenarios/submissions/user.mjs +12 -0
- package/resources/v1/scenarios/submissions/user.mjs.map +1 -1
- package/resources/v1/tests/component.d.mts +6 -0
- package/resources/v1/tests/component.d.mts.map +1 -1
- package/resources/v1/tests/component.d.ts +6 -0
- package/resources/v1/tests/component.d.ts.map +1 -1
- package/resources/v1/tests/component.js +6 -0
- package/resources/v1/tests/component.js.map +1 -1
- package/resources/v1/tests/component.mjs +6 -0
- package/resources/v1/tests/component.mjs.map +1 -1
- package/resources/v1/tests/index.d.mts +1 -1
- package/resources/v1/tests/index.d.mts.map +1 -1
- package/resources/v1/tests/index.d.ts +1 -1
- package/resources/v1/tests/index.d.ts.map +1 -1
- package/resources/v1/tests/index.js.map +1 -1
- package/resources/v1/tests/index.mjs +1 -1
- package/resources/v1/tests/index.mjs.map +1 -1
- package/resources/v1/tests/tests.d.mts +98 -4
- package/resources/v1/tests/tests.d.mts.map +1 -1
- package/resources/v1/tests/tests.d.ts +98 -4
- package/resources/v1/tests/tests.d.ts.map +1 -1
- package/resources/v1/tests/tests.js +61 -4
- package/resources/v1/tests/tests.js.map +1 -1
- package/resources/v1/tests/tests.mjs +61 -4
- package/resources/v1/tests/tests.mjs.map +1 -1
- package/resources/v1/upload/component.d.mts +38 -0
- package/resources/v1/upload/component.d.mts.map +1 -0
- package/resources/v1/upload/component.d.ts +38 -0
- package/resources/v1/upload/component.d.ts.map +1 -0
- package/resources/v1/upload/component.js +63 -0
- package/resources/v1/upload/component.js.map +1 -0
- package/resources/v1/upload/component.mjs +59 -0
- package/resources/v1/upload/component.mjs.map +1 -0
- package/resources/v1/upload/index.d.mts +3 -0
- package/resources/v1/upload/index.d.mts.map +1 -0
- package/resources/v1/upload/index.d.ts +3 -0
- package/resources/v1/upload/index.d.ts.map +1 -0
- package/resources/v1/upload/index.js +9 -0
- package/resources/v1/upload/index.js.map +1 -0
- package/resources/v1/upload/index.mjs +4 -0
- package/resources/v1/upload/index.mjs.map +1 -0
- package/resources/v1/upload/upload.d.mts +10 -0
- package/resources/v1/upload/upload.d.mts.map +1 -0
- package/resources/v1/upload/upload.d.ts +10 -0
- package/resources/v1/upload/upload.d.ts.map +1 -0
- package/resources/v1/upload/upload.js +17 -0
- package/resources/v1/upload/upload.js.map +1 -0
- package/resources/v1/upload/upload.mjs +12 -0
- package/resources/v1/upload/upload.mjs.map +1 -0
- package/resources/v1/upload.d.mts +2 -0
- package/resources/v1/upload.d.mts.map +1 -0
- package/resources/v1/upload.d.ts +2 -0
- package/resources/v1/upload.d.ts.map +1 -0
- package/resources/v1/upload.js +6 -0
- package/resources/v1/upload.js.map +1 -0
- package/resources/v1/upload.mjs +3 -0
- package/resources/v1/upload.mjs.map +1 -0
- package/resources/v1/usage.d.mts +285 -9
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +285 -9
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +76 -13
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +76 -13
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +24 -20
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +24 -20
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +7 -3
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +4 -19
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/v1/admin/admin.ts +6 -0
- package/src/resources/v1/admin/models.ts +6 -0
- package/src/resources/v1/admin/organization-invites.ts +26 -0
- package/src/resources/v1/admin/organizations/models/excluded.ts +16 -0
- package/src/resources/v1/admin/organizations/organizations.ts +6 -0
- package/src/resources/v1/audio-recaps/audio-recaps.ts +24 -0
- package/src/resources/v1/audio-recaps/sections.ts +21 -0
- package/src/resources/v1/auth/auth.ts +132 -13
- package/src/resources/v1/auth/index.ts +4 -2
- package/src/resources/v1/auth/login.ts +68 -5
- package/src/resources/v1/auth/number-2fa.ts +77 -11
- package/src/resources/v1/auth/organization-invites.ts +6 -0
- package/src/resources/v1/chat/chat.ts +166 -19
- package/src/resources/v1/chat/index.ts +1 -1
- package/src/resources/v1/chat/sessions.ts +14 -0
- package/src/resources/v1/chat/test.ts +12 -0
- package/src/resources/v1/components.ts +282 -5
- package/src/resources/v1/embed/component.ts +34 -1
- package/src/resources/v1/embed/embed.ts +34 -21
- package/src/resources/v1/embed/index.ts +1 -1
- package/src/resources/v1/explainers.ts +27 -2
- package/src/resources/v1/flashcards.ts +292 -31
- package/src/resources/v1/folders.ts +111 -9
- package/src/resources/v1/index.ts +37 -15
- package/src/resources/v1/materials/bulk.ts +6 -0
- package/src/resources/v1/materials/index.ts +7 -2
- package/src/resources/v1/materials/materials.ts +139 -5
- package/src/resources/v1/materials/test.ts +31 -7
- package/src/resources/v1/materials/upload.ts +86 -8
- package/src/resources/v1/organizations/api-keys.ts +35 -1
- package/src/resources/v1/organizations/index.ts +1 -1
- package/src/resources/v1/organizations/logo/logo.ts +6 -0
- package/src/resources/v1/organizations/logo/upload.ts +12 -0
- package/src/resources/v1/organizations/organizations.ts +14 -2
- package/src/resources/v1/organizations/profile/models.ts +6 -0
- package/src/resources/v1/organizations/profile/profile.ts +14 -0
- package/src/resources/v1/organizations/profile/team.ts +40 -0
- package/src/resources/v1/organizations/team/invite.ts +14 -0
- package/src/resources/v1/organizations/team/team.ts +42 -0
- package/src/resources/v1/organizations/theme.ts +12 -0
- package/src/resources/v1/organizations/usage.ts +8 -0
- package/src/resources/v1/scenarios/component.ts +37 -1
- package/src/resources/v1/scenarios/index.ts +2 -2
- package/src/resources/v1/scenarios/scenarios.ts +73 -4
- package/src/resources/v1/scenarios/sessions.ts +12 -0
- package/src/resources/v1/scenarios/submissions/user.ts +12 -0
- package/src/resources/v1/tests/component.ts +6 -0
- package/src/resources/v1/tests/index.ts +7 -1
- package/src/resources/v1/tests/tests.ts +116 -4
- package/src/resources/v1/upload/component.ts +65 -0
- package/src/resources/v1/upload/index.ts +4 -0
- package/src/resources/v1/upload/upload.ts +15 -0
- package/src/resources/v1/upload.ts +3 -0
- package/src/resources/v1/usage.ts +431 -16
- package/src/resources/v1/v1.ts +82 -20
- 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
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Invite extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.organizations.team.invite.create('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
create(id: string, body: InviteCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.post(path`/api/v1/organizations/${id}/team/invite`, {
|
|
12
18
|
body,
|
|
@@ -15,6 +21,14 @@ export class Invite extends APIResource {
|
|
|
15
21
|
});
|
|
16
22
|
}
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* await client.v1.organizations.team.invite.retrievePreview(
|
|
28
|
+
* 'token',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
18
32
|
retrievePreview(token: string, options?: RequestOptions): APIPromise<void> {
|
|
19
33
|
return this._client.get(path`/api/v1/organizations/team/invite/${token}/preview`, {
|
|
20
34
|
...options,
|
|
@@ -11,6 +11,12 @@ import { path } from '../../../../internal/utils/path';
|
|
|
11
11
|
export class Team extends APIResource {
|
|
12
12
|
invite: InviteAPI.Invite = new InviteAPI.Invite(this._client);
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* await client.v1.organizations.team.list('id');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
14
20
|
list(id: string, options?: RequestOptions): APIPromise<void> {
|
|
15
21
|
return this._client.get(path`/api/v1/organizations/${id}/team`, {
|
|
16
22
|
...options,
|
|
@@ -18,6 +24,14 @@ export class Team extends APIResource {
|
|
|
18
24
|
});
|
|
19
25
|
}
|
|
20
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* await client.v1.organizations.team.delete('email', {
|
|
31
|
+
* id: 'id',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
21
35
|
delete(email: string, params: TeamDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
22
36
|
const { id } = params;
|
|
23
37
|
return this._client.delete(path`/api/v1/organizations/${id}/team/${email}`, {
|
|
@@ -26,6 +40,12 @@ export class Team extends APIResource {
|
|
|
26
40
|
});
|
|
27
41
|
}
|
|
28
42
|
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* await client.v1.organizations.team.acceptInvite();
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
29
49
|
acceptInvite(body: TeamAcceptInviteParams, options?: RequestOptions): APIPromise<void> {
|
|
30
50
|
return this._client.post('/api/v1/organizations/team/accept-invite', {
|
|
31
51
|
body,
|
|
@@ -34,6 +54,14 @@ export class Team extends APIResource {
|
|
|
34
54
|
});
|
|
35
55
|
}
|
|
36
56
|
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* await client.v1.organizations.team.resendInvite('email', {
|
|
61
|
+
* id: 'id',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
37
65
|
resendInvite(email: string, params: TeamResendInviteParams, options?: RequestOptions): APIPromise<void> {
|
|
38
66
|
const { id } = params;
|
|
39
67
|
return this._client.post(path`/api/v1/organizations/${id}/team/${email}/resend-invite`, {
|
|
@@ -42,6 +70,12 @@ export class Team extends APIResource {
|
|
|
42
70
|
});
|
|
43
71
|
}
|
|
44
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* await client.v1.organizations.team.retrieveDetailed('id');
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
45
79
|
retrieveDetailed(id: string, options?: RequestOptions): APIPromise<void> {
|
|
46
80
|
return this._client.get(path`/api/v1/organizations/${id}/team/detailed`, {
|
|
47
81
|
...options,
|
|
@@ -49,6 +83,14 @@ export class Team extends APIResource {
|
|
|
49
83
|
});
|
|
50
84
|
}
|
|
51
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* await client.v1.organizations.team.updateRole('email', {
|
|
90
|
+
* id: 'id',
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
52
94
|
updateRole(email: string, params: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void> {
|
|
53
95
|
const { id, ...body } = params;
|
|
54
96
|
return this._client.put(path`/api/v1/organizations/${id}/team/${email}/role`, {
|
|
@@ -6,6 +6,12 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Theme extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.v1.organizations.theme.create();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
9
15
|
create(options?: RequestOptions): APIPromise<void> {
|
|
10
16
|
return this._client.put('/api/v1/organizations/theme', {
|
|
11
17
|
...options,
|
|
@@ -13,6 +19,12 @@ export class Theme extends APIResource {
|
|
|
13
19
|
});
|
|
14
20
|
}
|
|
15
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.organizations.theme.list();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
16
28
|
list(options?: RequestOptions): APIPromise<void> {
|
|
17
29
|
return this._client.get('/api/v1/organizations/theme', {
|
|
18
30
|
...options,
|
|
@@ -7,6 +7,14 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Usage extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get organization usage statistics
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* await client.v1.organizations.usage.list('id');
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
10
18
|
list(id: string, options?: RequestOptions): APIPromise<void> {
|
|
11
19
|
return this._client.get(path`/api/v1/organizations/${id}/usage`, {
|
|
12
20
|
...options,
|
|
@@ -7,6 +7,14 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Component extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get scenario by component ID
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* await client.v1.scenarios.component.retrieve('componentId');
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
10
18
|
retrieve(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
11
19
|
return this._client.get(path`/api/v1/scenarios/component/${componentID}`, {
|
|
12
20
|
...options,
|
|
@@ -14,13 +22,33 @@ export class Component extends APIResource {
|
|
|
14
22
|
});
|
|
15
23
|
}
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Update scenario by component ID
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* await client.v1.scenarios.component.update('componentId', {
|
|
31
|
+
* body: 'body',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
update(componentID: string, params: ComponentUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
36
|
+
const { body } = params;
|
|
18
37
|
return this._client.put(path`/api/v1/scenarios/component/${componentID}`, {
|
|
38
|
+
body: body,
|
|
19
39
|
...options,
|
|
20
40
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
41
|
});
|
|
22
42
|
}
|
|
23
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Delete scenario by component ID
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.v1.scenarios.component.delete('componentId');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
24
52
|
delete(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
25
53
|
return this._client.delete(path`/api/v1/scenarios/component/${componentID}`, {
|
|
26
54
|
...options,
|
|
@@ -28,3 +56,11 @@ export class Component extends APIResource {
|
|
|
28
56
|
});
|
|
29
57
|
}
|
|
30
58
|
}
|
|
59
|
+
|
|
60
|
+
export interface ComponentUpdateParams {
|
|
61
|
+
body: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare namespace Component {
|
|
65
|
+
export { type ComponentUpdateParams as ComponentUpdateParams };
|
|
66
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Component } from './component';
|
|
4
|
-
export { Scenarios } from './scenarios';
|
|
3
|
+
export { Component, type ComponentUpdateParams } from './component';
|
|
4
|
+
export { Scenarios, type ScenarioCreateParams, type ScenarioUpdateParams } from './scenarios';
|
|
5
5
|
export { Sessions } from './sessions';
|
|
6
6
|
export { Submissions } from './submissions/index';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ComponentAPI from './component';
|
|
5
|
-
import { Component } from './component';
|
|
5
|
+
import { Component, ComponentUpdateParams } from './component';
|
|
6
6
|
import * as SessionsAPI from './sessions';
|
|
7
7
|
import { Sessions } from './sessions';
|
|
8
8
|
import * as SubmissionsAPI from './submissions/submissions';
|
|
@@ -17,13 +17,31 @@ export class Scenarios extends APIResource {
|
|
|
17
17
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
18
18
|
submissions: SubmissionsAPI.Submissions = new SubmissionsAPI.Submissions(this._client);
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Create a new scenario
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.scenarios.create({ body: 'body' });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(params: ScenarioCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
29
|
+
const { body } = params;
|
|
21
30
|
return this._client.post('/api/v1/scenarios', {
|
|
31
|
+
body: body,
|
|
22
32
|
...options,
|
|
23
33
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
34
|
});
|
|
25
35
|
}
|
|
26
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Get scenario by ID
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* await client.v1.scenarios.retrieve('id');
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
27
45
|
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
28
46
|
return this._client.get(path`/api/v1/scenarios/${id}`, {
|
|
29
47
|
...options,
|
|
@@ -31,13 +49,31 @@ export class Scenarios extends APIResource {
|
|
|
31
49
|
});
|
|
32
50
|
}
|
|
33
51
|
|
|
34
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Update scenario
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.v1.scenarios.update('id', { body: 'body' });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
update(id: string, params: ScenarioUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
61
|
+
const { body } = params;
|
|
35
62
|
return this._client.put(path`/api/v1/scenarios/${id}`, {
|
|
63
|
+
body: body,
|
|
36
64
|
...options,
|
|
37
65
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
38
66
|
});
|
|
39
67
|
}
|
|
40
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Get all scenarios
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* await client.v1.scenarios.list();
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
41
77
|
list(options?: RequestOptions): APIPromise<void> {
|
|
42
78
|
return this._client.get('/api/v1/scenarios', {
|
|
43
79
|
...options,
|
|
@@ -45,6 +81,14 @@ export class Scenarios extends APIResource {
|
|
|
45
81
|
});
|
|
46
82
|
}
|
|
47
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Delete scenario
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* await client.v1.scenarios.delete('id');
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
48
92
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
49
93
|
return this._client.delete(path`/api/v1/scenarios/${id}`, {
|
|
50
94
|
...options,
|
|
@@ -52,6 +96,12 @@ export class Scenarios extends APIResource {
|
|
|
52
96
|
});
|
|
53
97
|
}
|
|
54
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* await client.v1.scenarios.getStats('id');
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
55
105
|
getStats(id: string, options?: RequestOptions): APIPromise<void> {
|
|
56
106
|
return this._client.get(path`/api/v1/scenarios/${id}/stats`, {
|
|
57
107
|
...options,
|
|
@@ -59,6 +109,12 @@ export class Scenarios extends APIResource {
|
|
|
59
109
|
});
|
|
60
110
|
}
|
|
61
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* await client.v1.scenarios.submit('id');
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
62
118
|
submit(id: string, options?: RequestOptions): APIPromise<void> {
|
|
63
119
|
return this._client.post(path`/api/v1/scenarios/${id}/submit`, {
|
|
64
120
|
...options,
|
|
@@ -67,12 +123,25 @@ export class Scenarios extends APIResource {
|
|
|
67
123
|
}
|
|
68
124
|
}
|
|
69
125
|
|
|
126
|
+
export interface ScenarioCreateParams {
|
|
127
|
+
body: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ScenarioUpdateParams {
|
|
131
|
+
body: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
70
134
|
Scenarios.Component = Component;
|
|
71
135
|
Scenarios.Sessions = Sessions;
|
|
72
136
|
Scenarios.Submissions = Submissions;
|
|
73
137
|
|
|
74
138
|
export declare namespace Scenarios {
|
|
75
|
-
export {
|
|
139
|
+
export {
|
|
140
|
+
type ScenarioCreateParams as ScenarioCreateParams,
|
|
141
|
+
type ScenarioUpdateParams as ScenarioUpdateParams,
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export { Component as Component, type ComponentUpdateParams as ComponentUpdateParams };
|
|
76
145
|
|
|
77
146
|
export { Sessions as Sessions };
|
|
78
147
|
|
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Sessions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.scenarios.sessions.complete('sessionId');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
complete(sessionID: string, options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.put(path`/api/v1/scenarios/sessions/${sessionID}/complete`, {
|
|
12
18
|
...options,
|
|
@@ -14,6 +20,12 @@ export class Sessions extends APIResource {
|
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.scenarios.sessions.start('id');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
17
29
|
start(id: string, options?: RequestOptions): APIPromise<void> {
|
|
18
30
|
return this._client.post(path`/api/v1/scenarios/${id}/sessions/start`, {
|
|
19
31
|
...options,
|
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class User extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.scenarios.submissions.user.retrieve('id');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.get(path`/api/v1/scenarios/${id}/submissions/user`, {
|
|
12
18
|
...options,
|
|
@@ -14,6 +20,12 @@ export class User extends APIResource {
|
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.scenarios.submissions.user.list();
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
17
29
|
list(options?: RequestOptions): APIPromise<void> {
|
|
18
30
|
return this._client.get('/api/v1/scenarios/submissions/user', {
|
|
19
31
|
...options,
|
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Component extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.tests.component.list('componentId');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
list(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.post(path`/api/v1/tests/component/${componentID}/list`, {
|
|
12
18
|
...options,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Component } from './component';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
Tests,
|
|
6
|
+
type TestCreateParams,
|
|
7
|
+
type TestRetakeParams,
|
|
8
|
+
type TestSubmitParams,
|
|
9
|
+
type TestSubmitAnswerParams,
|
|
10
|
+
} from './tests';
|
|
@@ -11,13 +11,32 @@ import { path } from '../../../internal/utils/path';
|
|
|
11
11
|
export class Tests extends APIResource {
|
|
12
12
|
component: ComponentAPI.Component = new ComponentAPI.Component(this._client);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Create a new test
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await client.v1.tests.create({
|
|
20
|
+
* componentId: 'componentId',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: TestCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
15
25
|
return this._client.post('/api/v1/tests/create', {
|
|
26
|
+
body,
|
|
16
27
|
...options,
|
|
17
28
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
18
29
|
});
|
|
19
30
|
}
|
|
20
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Get test by ID
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.v1.tests.retrieve('testId');
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
21
40
|
retrieve(testID: string, options?: RequestOptions): APIPromise<void> {
|
|
22
41
|
return this._client.get(path`/api/v1/tests/${testID}`, {
|
|
23
42
|
...options,
|
|
@@ -25,6 +44,14 @@ export class Tests extends APIResource {
|
|
|
25
44
|
});
|
|
26
45
|
}
|
|
27
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Get test results
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* await client.v1.tests.getResults('testId');
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
28
55
|
getResults(testID: string, options?: RequestOptions): APIPromise<void> {
|
|
29
56
|
return this._client.get(path`/api/v1/tests/${testID}/results`, {
|
|
30
57
|
...options,
|
|
@@ -32,30 +59,115 @@ export class Tests extends APIResource {
|
|
|
32
59
|
});
|
|
33
60
|
}
|
|
34
61
|
|
|
35
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Retake a test
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* await client.v1.tests.retake('testId');
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
retake(testID: string, body: TestRetakeParams, options?: RequestOptions): APIPromise<void> {
|
|
36
71
|
return this._client.post(path`/api/v1/tests/${testID}/retake`, {
|
|
72
|
+
body,
|
|
37
73
|
...options,
|
|
38
74
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
39
75
|
});
|
|
40
76
|
}
|
|
41
77
|
|
|
42
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Submit completed test
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* await client.v1.tests.submit('testId');
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
submit(testID: string, body: TestSubmitParams, options?: RequestOptions): APIPromise<void> {
|
|
43
87
|
return this._client.post(path`/api/v1/tests/${testID}/submit`, {
|
|
88
|
+
body,
|
|
44
89
|
...options,
|
|
45
90
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
46
91
|
});
|
|
47
92
|
}
|
|
48
93
|
|
|
49
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Submit test answer
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* await client.v1.tests.submitAnswer('testId', {
|
|
100
|
+
* answer: 'answer',
|
|
101
|
+
* questionId: 'questionId',
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
submitAnswer(testID: string, body: TestSubmitAnswerParams, options?: RequestOptions): APIPromise<void> {
|
|
50
106
|
return this._client.post(path`/api/v1/tests/${testID}/submit-answer`, {
|
|
107
|
+
body,
|
|
51
108
|
...options,
|
|
52
109
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
110
|
});
|
|
54
111
|
}
|
|
55
112
|
}
|
|
56
113
|
|
|
114
|
+
export interface TestCreateParams {
|
|
115
|
+
/**
|
|
116
|
+
* Component ID
|
|
117
|
+
*/
|
|
118
|
+
componentId: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Test name (optional)
|
|
122
|
+
*/
|
|
123
|
+
name?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* User ID (optional)
|
|
127
|
+
*/
|
|
128
|
+
userId?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface TestRetakeParams {
|
|
132
|
+
/**
|
|
133
|
+
* User ID (optional)
|
|
134
|
+
*/
|
|
135
|
+
userId?: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface TestSubmitParams {
|
|
139
|
+
/**
|
|
140
|
+
* User ID (optional)
|
|
141
|
+
*/
|
|
142
|
+
userId?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface TestSubmitAnswerParams {
|
|
146
|
+
/**
|
|
147
|
+
* User answer
|
|
148
|
+
*/
|
|
149
|
+
answer: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Question ID
|
|
153
|
+
*/
|
|
154
|
+
questionId: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* User ID (optional)
|
|
158
|
+
*/
|
|
159
|
+
userId?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
57
162
|
Tests.Component = Component;
|
|
58
163
|
|
|
59
164
|
export declare namespace Tests {
|
|
165
|
+
export {
|
|
166
|
+
type TestCreateParams as TestCreateParams,
|
|
167
|
+
type TestRetakeParams as TestRetakeParams,
|
|
168
|
+
type TestSubmitParams as TestSubmitParams,
|
|
169
|
+
type TestSubmitAnswerParams as TestSubmitAnswerParams,
|
|
170
|
+
};
|
|
171
|
+
|
|
60
172
|
export { Component as Component };
|
|
61
173
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Component extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.upload.component.completeUpload(
|
|
14
|
+
* 'componentId',
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
completeUpload(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
19
|
+
return this._client.post(path`/api/v1/upload/component/${componentID}/complete`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.v1.upload.component.getPresignedURL(
|
|
29
|
+
* 'componentId',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
getPresignedURL(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
34
|
+
return this._client.post(path`/api/v1/upload/component/${componentID}/presigned-url`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* await client.v1.upload.component.uploadFile('componentId');
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
uploadFile(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
47
|
+
return this._client.post(path`/api/v1/upload/component/${componentID}/file`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.v1.upload.component.uploadURL('componentId');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
uploadURL(componentID: string, options?: RequestOptions): APIPromise<void> {
|
|
60
|
+
return this._client.post(path`/api/v1/upload/component/${componentID}/url`, {
|
|
61
|
+
...options,
|
|
62
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|