@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAA+F;AAAtF,gGAAA,MAAM,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Bulk } from "./bulk.mjs";
|
|
3
|
-
export { Materials } from "./materials.mjs";
|
|
3
|
+
export { Materials, } from "./materials.mjs";
|
|
4
4
|
export { Test } from "./test.mjs";
|
|
5
5
|
export { Upload } from "./upload.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,SAAS,GAIV;OACM,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA+D"}
|
|
@@ -4,33 +4,153 @@ import { Bulk } from "./bulk.mjs";
|
|
|
4
4
|
import * as TestAPI from "./test.mjs";
|
|
5
5
|
import { Test } from "./test.mjs";
|
|
6
6
|
import * as UploadAPI from "./upload.mjs";
|
|
7
|
-
import { Upload } from "./upload.mjs";
|
|
7
|
+
import { Upload, UploadUploadFileParams, UploadUploadFromURLParams } from "./upload.mjs";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
9
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
10
|
export declare class Materials extends APIResource {
|
|
11
11
|
upload: UploadAPI.Upload;
|
|
12
12
|
bulk: BulkAPI.Bulk;
|
|
13
13
|
test: TestAPI.Test;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new material
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await client.v1.materials.create({
|
|
20
|
+
* content: { type: 'text' },
|
|
21
|
+
* name: 'Chapter 1 - Introduction',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
14
25
|
create(body: MaterialCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Get material by ID
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.materials.retrieve('id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
15
34
|
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
16
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Get all materials for organization
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.v1.materials.list();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(query?: MaterialListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete material
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.v1.materials.delete('id');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
17
52
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
18
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.v1.materials.createBatch();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
createBatch(options?: RequestOptions): APIPromise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.v1.materials.debug('id');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
19
66
|
debug(id: string, options?: RequestOptions): APIPromise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* await client.v1.materials.getDownloadURL('id', {
|
|
71
|
+
* expiresIn: 'expiresIn',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
20
75
|
getDownloadURL(id: string, query: MaterialGetDownloadURLParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* await client.v1.materials.move('id');
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
21
82
|
move(id: string, options?: RequestOptions): APIPromise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* await client.v1.materials.rename('id');
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
22
89
|
rename(id: string, options?: RequestOptions): APIPromise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* await client.v1.materials.reprocess('id');
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
23
96
|
reprocess(id: string, options?: RequestOptions): APIPromise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* await client.v1.materials.search();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
24
103
|
search(options?: RequestOptions): APIPromise<void>;
|
|
25
104
|
}
|
|
26
105
|
export interface MaterialCreateParams {
|
|
106
|
+
/**
|
|
107
|
+
* Content details
|
|
108
|
+
*/
|
|
109
|
+
content: MaterialCreateParams.Content;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the material
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* Folder ID to place the material in
|
|
116
|
+
*/
|
|
117
|
+
folderId?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace MaterialCreateParams {
|
|
120
|
+
/**
|
|
121
|
+
* Content details
|
|
122
|
+
*/
|
|
123
|
+
interface Content {
|
|
124
|
+
/**
|
|
125
|
+
* Type of content
|
|
126
|
+
*/
|
|
127
|
+
type: 'text' | 'pdf' | 'video' | 'audio' | 'url';
|
|
128
|
+
/**
|
|
129
|
+
* URL to fetch content from
|
|
130
|
+
*/
|
|
131
|
+
sourceUrl?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Text content (for text type)
|
|
134
|
+
*/
|
|
135
|
+
text?: string;
|
|
136
|
+
/**
|
|
137
|
+
* URL to the content (for url type)
|
|
138
|
+
*/
|
|
139
|
+
url?: string;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export interface MaterialListParams {
|
|
143
|
+
/**
|
|
144
|
+
* Filter by folder ID
|
|
145
|
+
*/
|
|
146
|
+
folderId?: string;
|
|
27
147
|
}
|
|
28
148
|
export interface MaterialGetDownloadURLParams {
|
|
29
149
|
expiresIn: string;
|
|
30
150
|
}
|
|
31
151
|
export declare namespace Materials {
|
|
32
|
-
export { type MaterialCreateParams as MaterialCreateParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, };
|
|
33
|
-
export { Upload as Upload };
|
|
152
|
+
export { type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, };
|
|
153
|
+
export { Upload as Upload, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, };
|
|
34
154
|
export { Bulk as Bulk };
|
|
35
155
|
export { Test as Test };
|
|
36
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"materials.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,SAA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EF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -4,33 +4,153 @@ import { Bulk } from "./bulk.js";
|
|
|
4
4
|
import * as TestAPI from "./test.js";
|
|
5
5
|
import { Test } from "./test.js";
|
|
6
6
|
import * as UploadAPI from "./upload.js";
|
|
7
|
-
import { Upload } from "./upload.js";
|
|
7
|
+
import { Upload, UploadUploadFileParams, UploadUploadFromURLParams } from "./upload.js";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
9
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
10
10
|
export declare class Materials extends APIResource {
|
|
11
11
|
upload: UploadAPI.Upload;
|
|
12
12
|
bulk: BulkAPI.Bulk;
|
|
13
13
|
test: TestAPI.Test;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new material
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await client.v1.materials.create({
|
|
20
|
+
* content: { type: 'text' },
|
|
21
|
+
* name: 'Chapter 1 - Introduction',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
14
25
|
create(body: MaterialCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Get material by ID
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.materials.retrieve('id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
15
34
|
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
16
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Get all materials for organization
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.v1.materials.list();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(query?: MaterialListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete material
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.v1.materials.delete('id');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
17
52
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
18
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.v1.materials.createBatch();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
createBatch(options?: RequestOptions): APIPromise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.v1.materials.debug('id');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
19
66
|
debug(id: string, options?: RequestOptions): APIPromise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* await client.v1.materials.getDownloadURL('id', {
|
|
71
|
+
* expiresIn: 'expiresIn',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
20
75
|
getDownloadURL(id: string, query: MaterialGetDownloadURLParams, options?: RequestOptions): APIPromise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* await client.v1.materials.move('id');
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
21
82
|
move(id: string, options?: RequestOptions): APIPromise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* await client.v1.materials.rename('id');
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
22
89
|
rename(id: string, options?: RequestOptions): APIPromise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* await client.v1.materials.reprocess('id');
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
23
96
|
reprocess(id: string, options?: RequestOptions): APIPromise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* await client.v1.materials.search();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
24
103
|
search(options?: RequestOptions): APIPromise<void>;
|
|
25
104
|
}
|
|
26
105
|
export interface MaterialCreateParams {
|
|
106
|
+
/**
|
|
107
|
+
* Content details
|
|
108
|
+
*/
|
|
109
|
+
content: MaterialCreateParams.Content;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the material
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* Folder ID to place the material in
|
|
116
|
+
*/
|
|
117
|
+
folderId?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace MaterialCreateParams {
|
|
120
|
+
/**
|
|
121
|
+
* Content details
|
|
122
|
+
*/
|
|
123
|
+
interface Content {
|
|
124
|
+
/**
|
|
125
|
+
* Type of content
|
|
126
|
+
*/
|
|
127
|
+
type: 'text' | 'pdf' | 'video' | 'audio' | 'url';
|
|
128
|
+
/**
|
|
129
|
+
* URL to fetch content from
|
|
130
|
+
*/
|
|
131
|
+
sourceUrl?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Text content (for text type)
|
|
134
|
+
*/
|
|
135
|
+
text?: string;
|
|
136
|
+
/**
|
|
137
|
+
* URL to the content (for url type)
|
|
138
|
+
*/
|
|
139
|
+
url?: string;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export interface MaterialListParams {
|
|
143
|
+
/**
|
|
144
|
+
* Filter by folder ID
|
|
145
|
+
*/
|
|
146
|
+
folderId?: string;
|
|
27
147
|
}
|
|
28
148
|
export interface MaterialGetDownloadURLParams {
|
|
29
149
|
expiresIn: string;
|
|
30
150
|
}
|
|
31
151
|
export declare namespace Materials {
|
|
32
|
-
export { type MaterialCreateParams as MaterialCreateParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, };
|
|
33
|
-
export { Upload as Upload };
|
|
152
|
+
export { type MaterialCreateParams as MaterialCreateParams, type MaterialListParams as MaterialListParams, type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams, };
|
|
153
|
+
export { Upload as Upload, type UploadUploadFileParams as UploadUploadFileParams, type UploadUploadFromURLParams as UploadUploadFromURLParams, };
|
|
34
154
|
export { Bulk as Bulk };
|
|
35
155
|
export { Test as Test };
|
|
36
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"materials.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,sBAAsB,EAAE,yBAAyB,EAAE;OAC7D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ9E;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;;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C;IACpC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;QAEjD;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -19,6 +19,17 @@ class Materials extends resource_1.APIResource {
|
|
|
19
19
|
this.bulk = new BulkAPI.Bulk(this._client);
|
|
20
20
|
this.test = new TestAPI.Test(this._client);
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new material
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* await client.v1.materials.create({
|
|
28
|
+
* content: { type: 'text' },
|
|
29
|
+
* name: 'Chapter 1 - Introduction',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
22
33
|
create(body, options) {
|
|
23
34
|
return this._client.post('/api/v1/materials', {
|
|
24
35
|
body,
|
|
@@ -26,36 +37,81 @@ class Materials extends resource_1.APIResource {
|
|
|
26
37
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
38
|
});
|
|
28
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Get material by ID
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* await client.v1.materials.retrieve('id');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
29
48
|
retrieve(id, options) {
|
|
30
49
|
return this._client.get((0, path_1.path) `/api/v1/materials/${id}`, {
|
|
31
50
|
...options,
|
|
32
51
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
33
52
|
});
|
|
34
53
|
}
|
|
35
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Get all materials for organization
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* await client.v1.materials.list();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
list(query = {}, options) {
|
|
36
63
|
return this._client.get('/api/v1/materials', {
|
|
64
|
+
query,
|
|
37
65
|
...options,
|
|
38
66
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
39
67
|
});
|
|
40
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Delete material
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* await client.v1.materials.delete('id');
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
41
77
|
delete(id, options) {
|
|
42
78
|
return this._client.delete((0, path_1.path) `/api/v1/materials/${id}`, {
|
|
43
79
|
...options,
|
|
44
80
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
45
81
|
});
|
|
46
82
|
}
|
|
47
|
-
|
|
83
|
+
/**
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* await client.v1.materials.createBatch();
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
createBatch(options) {
|
|
48
90
|
return this._client.post('/api/v1/materials/batch', {
|
|
49
91
|
...options,
|
|
50
92
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
51
93
|
});
|
|
52
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* await client.v1.materials.debug('id');
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
53
101
|
debug(id, options) {
|
|
54
102
|
return this._client.get((0, path_1.path) `/api/v1/materials/${id}/debug`, {
|
|
55
103
|
...options,
|
|
56
104
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
57
105
|
});
|
|
58
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* await client.v1.materials.getDownloadURL('id', {
|
|
111
|
+
* expiresIn: 'expiresIn',
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
59
115
|
getDownloadURL(id, query, options) {
|
|
60
116
|
return this._client.get((0, path_1.path) `/api/v1/materials/${id}/download-url`, {
|
|
61
117
|
query,
|
|
@@ -63,24 +119,48 @@ class Materials extends resource_1.APIResource {
|
|
|
63
119
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
64
120
|
});
|
|
65
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* @example
|
|
124
|
+
* ```ts
|
|
125
|
+
* await client.v1.materials.move('id');
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
66
128
|
move(id, options) {
|
|
67
129
|
return this._client.post((0, path_1.path) `/api/v1/materials/${id}/move`, {
|
|
68
130
|
...options,
|
|
69
131
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
70
132
|
});
|
|
71
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* await client.v1.materials.rename('id');
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
72
140
|
rename(id, options) {
|
|
73
141
|
return this._client.post((0, path_1.path) `/api/v1/materials/${id}/rename`, {
|
|
74
142
|
...options,
|
|
75
143
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
76
144
|
});
|
|
77
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* await client.v1.materials.reprocess('id');
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
78
152
|
reprocess(id, options) {
|
|
79
153
|
return this._client.post((0, path_1.path) `/api/v1/materials/${id}/reprocess`, {
|
|
80
154
|
...options,
|
|
81
155
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
82
156
|
});
|
|
83
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* await client.v1.materials.search();
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
84
164
|
search(options) {
|
|
85
165
|
return this._client.post('/api/v1/materials/search', {
|
|
86
166
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2DAAkC;AAClC,oCAA8B;AAC9B,2DAAkC;AAClC,oCAA8B;AAC9B,+DAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"materials.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/materials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2DAAkC;AAClC,oCAA8B;AAC9B,2DAAkC;AAClC,oCAA8B;AAC9B,+DAAsC;AACtC,wCAAqF;AAErF,0DAAyD;AAEzD,0D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AC"}
|
|
@@ -15,6 +15,17 @@ export class Materials extends APIResource {
|
|
|
15
15
|
this.bulk = new BulkAPI.Bulk(this._client);
|
|
16
16
|
this.test = new TestAPI.Test(this._client);
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Create a new material
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* await client.v1.materials.create({
|
|
24
|
+
* content: { type: 'text' },
|
|
25
|
+
* name: 'Chapter 1 - Introduction',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
18
29
|
create(body, options) {
|
|
19
30
|
return this._client.post('/api/v1/materials', {
|
|
20
31
|
body,
|
|
@@ -22,36 +33,81 @@ export class Materials extends APIResource {
|
|
|
22
33
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
34
|
});
|
|
24
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Get material by ID
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* await client.v1.materials.retrieve('id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
25
44
|
retrieve(id, options) {
|
|
26
45
|
return this._client.get(path `/api/v1/materials/${id}`, {
|
|
27
46
|
...options,
|
|
28
47
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
29
48
|
});
|
|
30
49
|
}
|
|
31
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Get all materials for organization
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.v1.materials.list();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(query = {}, options) {
|
|
32
59
|
return this._client.get('/api/v1/materials', {
|
|
60
|
+
query,
|
|
33
61
|
...options,
|
|
34
62
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
35
63
|
});
|
|
36
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Delete material
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* await client.v1.materials.delete('id');
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
37
73
|
delete(id, options) {
|
|
38
74
|
return this._client.delete(path `/api/v1/materials/${id}`, {
|
|
39
75
|
...options,
|
|
40
76
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
41
77
|
});
|
|
42
78
|
}
|
|
43
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* await client.v1.materials.createBatch();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
createBatch(options) {
|
|
44
86
|
return this._client.post('/api/v1/materials/batch', {
|
|
45
87
|
...options,
|
|
46
88
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
89
|
});
|
|
48
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* await client.v1.materials.debug('id');
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
49
97
|
debug(id, options) {
|
|
50
98
|
return this._client.get(path `/api/v1/materials/${id}/debug`, {
|
|
51
99
|
...options,
|
|
52
100
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
101
|
});
|
|
54
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* await client.v1.materials.getDownloadURL('id', {
|
|
107
|
+
* expiresIn: 'expiresIn',
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
55
111
|
getDownloadURL(id, query, options) {
|
|
56
112
|
return this._client.get(path `/api/v1/materials/${id}/download-url`, {
|
|
57
113
|
query,
|
|
@@ -59,24 +115,48 @@ export class Materials extends APIResource {
|
|
|
59
115
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
60
116
|
});
|
|
61
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* await client.v1.materials.move('id');
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
62
124
|
move(id, options) {
|
|
63
125
|
return this._client.post(path `/api/v1/materials/${id}/move`, {
|
|
64
126
|
...options,
|
|
65
127
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
66
128
|
});
|
|
67
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* await client.v1.materials.rename('id');
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
68
136
|
rename(id, options) {
|
|
69
137
|
return this._client.post(path `/api/v1/materials/${id}/rename`, {
|
|
70
138
|
...options,
|
|
71
139
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
72
140
|
});
|
|
73
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* await client.v1.materials.reprocess('id');
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
74
148
|
reprocess(id, options) {
|
|
75
149
|
return this._client.post(path `/api/v1/materials/${id}/reprocess`, {
|
|
76
150
|
...options,
|
|
77
151
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
78
152
|
});
|
|
79
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* @example
|
|
156
|
+
* ```ts
|
|
157
|
+
* await client.v1.materials.search();
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
80
160
|
search(options) {
|
|
81
161
|
return this._client.post('/api/v1/materials/search', {
|
|
82
162
|
...options,
|