@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
|
@@ -6,7 +6,7 @@ import { Bulk } from './bulk';
|
|
|
6
6
|
import * as TestAPI from './test';
|
|
7
7
|
import { Test } from './test';
|
|
8
8
|
import * as UploadAPI from './upload';
|
|
9
|
-
import { Upload } from './upload';
|
|
9
|
+
import { Upload, UploadUploadFileParams, UploadUploadFromURLParams } from './upload';
|
|
10
10
|
import { APIPromise } from '../../../core/api-promise';
|
|
11
11
|
import { buildHeaders } from '../../../internal/headers';
|
|
12
12
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -17,6 +17,17 @@ export class Materials extends APIResource {
|
|
|
17
17
|
bulk: BulkAPI.Bulk = new BulkAPI.Bulk(this._client);
|
|
18
18
|
test: TestAPI.Test = new TestAPI.Test(this._client);
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Create a new material
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.materials.create({
|
|
26
|
+
* content: { type: 'text' },
|
|
27
|
+
* name: 'Chapter 1 - Introduction',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
20
31
|
create(body: MaterialCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
21
32
|
return this._client.post('/api/v1/materials', {
|
|
22
33
|
body,
|
|
@@ -25,6 +36,14 @@ export class Materials extends APIResource {
|
|
|
25
36
|
});
|
|
26
37
|
}
|
|
27
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Get material by ID
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* await client.v1.materials.retrieve('id');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
28
47
|
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
29
48
|
return this._client.get(path`/api/v1/materials/${id}`, {
|
|
30
49
|
...options,
|
|
@@ -32,13 +51,30 @@ export class Materials extends APIResource {
|
|
|
32
51
|
});
|
|
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: MaterialListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
|
|
36
63
|
return this._client.get('/api/v1/materials', {
|
|
64
|
+
query,
|
|
37
65
|
...options,
|
|
38
66
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
39
67
|
});
|
|
40
68
|
}
|
|
41
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Delete material
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* await client.v1.materials.delete('id');
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
42
78
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
43
79
|
return this._client.delete(path`/api/v1/materials/${id}`, {
|
|
44
80
|
...options,
|
|
@@ -46,13 +82,25 @@ export class Materials extends APIResource {
|
|
|
46
82
|
});
|
|
47
83
|
}
|
|
48
84
|
|
|
49
|
-
|
|
85
|
+
/**
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* await client.v1.materials.createBatch();
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
createBatch(options?: RequestOptions): APIPromise<void> {
|
|
50
92
|
return this._client.post('/api/v1/materials/batch', {
|
|
51
93
|
...options,
|
|
52
94
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
95
|
});
|
|
54
96
|
}
|
|
55
97
|
|
|
98
|
+
/**
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* await client.v1.materials.debug('id');
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
56
104
|
debug(id: string, options?: RequestOptions): APIPromise<void> {
|
|
57
105
|
return this._client.get(path`/api/v1/materials/${id}/debug`, {
|
|
58
106
|
...options,
|
|
@@ -60,6 +108,14 @@ export class Materials extends APIResource {
|
|
|
60
108
|
});
|
|
61
109
|
}
|
|
62
110
|
|
|
111
|
+
/**
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* await client.v1.materials.getDownloadURL('id', {
|
|
115
|
+
* expiresIn: 'expiresIn',
|
|
116
|
+
* });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
63
119
|
getDownloadURL(
|
|
64
120
|
id: string,
|
|
65
121
|
query: MaterialGetDownloadURLParams,
|
|
@@ -72,6 +128,12 @@ export class Materials extends APIResource {
|
|
|
72
128
|
});
|
|
73
129
|
}
|
|
74
130
|
|
|
131
|
+
/**
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* await client.v1.materials.move('id');
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
75
137
|
move(id: string, options?: RequestOptions): APIPromise<void> {
|
|
76
138
|
return this._client.post(path`/api/v1/materials/${id}/move`, {
|
|
77
139
|
...options,
|
|
@@ -79,6 +141,12 @@ export class Materials extends APIResource {
|
|
|
79
141
|
});
|
|
80
142
|
}
|
|
81
143
|
|
|
144
|
+
/**
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* await client.v1.materials.rename('id');
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
82
150
|
rename(id: string, options?: RequestOptions): APIPromise<void> {
|
|
83
151
|
return this._client.post(path`/api/v1/materials/${id}/rename`, {
|
|
84
152
|
...options,
|
|
@@ -86,6 +154,12 @@ export class Materials extends APIResource {
|
|
|
86
154
|
});
|
|
87
155
|
}
|
|
88
156
|
|
|
157
|
+
/**
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* await client.v1.materials.reprocess('id');
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
89
163
|
reprocess(id: string, options?: RequestOptions): APIPromise<void> {
|
|
90
164
|
return this._client.post(path`/api/v1/materials/${id}/reprocess`, {
|
|
91
165
|
...options,
|
|
@@ -93,6 +167,12 @@ export class Materials extends APIResource {
|
|
|
93
167
|
});
|
|
94
168
|
}
|
|
95
169
|
|
|
170
|
+
/**
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* await client.v1.materials.search();
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
96
176
|
search(options?: RequestOptions): APIPromise<void> {
|
|
97
177
|
return this._client.post('/api/v1/materials/search', {
|
|
98
178
|
...options,
|
|
@@ -101,7 +181,56 @@ export class Materials extends APIResource {
|
|
|
101
181
|
}
|
|
102
182
|
}
|
|
103
183
|
|
|
104
|
-
export interface MaterialCreateParams {
|
|
184
|
+
export interface MaterialCreateParams {
|
|
185
|
+
/**
|
|
186
|
+
* Content details
|
|
187
|
+
*/
|
|
188
|
+
content: MaterialCreateParams.Content;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Name of the material
|
|
192
|
+
*/
|
|
193
|
+
name: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Folder ID to place the material in
|
|
197
|
+
*/
|
|
198
|
+
folderId?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace MaterialCreateParams {
|
|
202
|
+
/**
|
|
203
|
+
* Content details
|
|
204
|
+
*/
|
|
205
|
+
export interface Content {
|
|
206
|
+
/**
|
|
207
|
+
* Type of content
|
|
208
|
+
*/
|
|
209
|
+
type: 'text' | 'pdf' | 'video' | 'audio' | 'url';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* URL to fetch content from
|
|
213
|
+
*/
|
|
214
|
+
sourceUrl?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Text content (for text type)
|
|
218
|
+
*/
|
|
219
|
+
text?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* URL to the content (for url type)
|
|
223
|
+
*/
|
|
224
|
+
url?: string;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface MaterialListParams {
|
|
229
|
+
/**
|
|
230
|
+
* Filter by folder ID
|
|
231
|
+
*/
|
|
232
|
+
folderId?: string;
|
|
233
|
+
}
|
|
105
234
|
|
|
106
235
|
export interface MaterialGetDownloadURLParams {
|
|
107
236
|
expiresIn: string;
|
|
@@ -114,10 +243,15 @@ Materials.Test = Test;
|
|
|
114
243
|
export declare namespace Materials {
|
|
115
244
|
export {
|
|
116
245
|
type MaterialCreateParams as MaterialCreateParams,
|
|
246
|
+
type MaterialListParams as MaterialListParams,
|
|
117
247
|
type MaterialGetDownloadURLParams as MaterialGetDownloadURLParams,
|
|
118
248
|
};
|
|
119
249
|
|
|
120
|
-
export {
|
|
250
|
+
export {
|
|
251
|
+
Upload as Upload,
|
|
252
|
+
type UploadUploadFileParams as UploadUploadFileParams,
|
|
253
|
+
type UploadUploadFromURLParams as UploadUploadFromURLParams,
|
|
254
|
+
};
|
|
121
255
|
|
|
122
256
|
export { Bulk as Bulk };
|
|
123
257
|
|
|
@@ -6,28 +6,52 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Test extends APIResource {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.v1.materials.test.performOcr();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
performOcr(options?: RequestOptions): APIPromise<void> {
|
|
16
|
+
return this._client.post('/api/v1/materials/test/ocr', {
|
|
11
17
|
...options,
|
|
12
18
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
13
19
|
});
|
|
14
20
|
}
|
|
15
21
|
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.materials.test.processEpub();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
processEpub(options?: RequestOptions): APIPromise<void> {
|
|
29
|
+
return this._client.post('/api/v1/materials/test/epub-processing', {
|
|
18
30
|
...options,
|
|
19
31
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
32
|
});
|
|
21
33
|
}
|
|
22
34
|
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await client.v1.materials.test.processImage();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
processImage(options?: RequestOptions): APIPromise<void> {
|
|
42
|
+
return this._client.post('/api/v1/materials/test/image-processing', {
|
|
25
43
|
...options,
|
|
26
44
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
45
|
});
|
|
28
46
|
}
|
|
29
47
|
|
|
30
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.v1.materials.test.processVideo();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
processVideo(options?: RequestOptions): APIPromise<void> {
|
|
31
55
|
return this._client.post('/api/v1/materials/test/video-processing', {
|
|
32
56
|
...options,
|
|
33
57
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -2,17 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../../../core/uploads';
|
|
5
6
|
import { buildHeaders } from '../../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { multipartFormRequestOptions } from '../../../internal/uploads';
|
|
7
9
|
|
|
8
10
|
export class Upload extends APIResource {
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.v1.materials.upload.completeUpload();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
completeUpload(options?: RequestOptions): APIPromise<void> {
|
|
10
18
|
return this._client.post('/api/v1/materials/upload/complete', {
|
|
11
19
|
...options,
|
|
12
20
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
13
21
|
});
|
|
14
22
|
}
|
|
15
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* await client.v1.materials.upload.getPresignedURL();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
16
30
|
getPresignedURL(options?: RequestOptions): APIPromise<void> {
|
|
17
31
|
return this._client.post('/api/v1/materials/upload/presigned-url', {
|
|
18
32
|
...options,
|
|
@@ -20,17 +34,81 @@ export class Upload extends APIResource {
|
|
|
20
34
|
});
|
|
21
35
|
}
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Upload a material file
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* await client.v1.materials.upload.uploadFile({
|
|
43
|
+
* file: fs.createReadStream('path/to/file'),
|
|
44
|
+
* name: 'name',
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
uploadFile(body: UploadUploadFileParams, options?: RequestOptions): APIPromise<void> {
|
|
49
|
+
return this._client.post(
|
|
50
|
+
'/api/v1/materials/upload',
|
|
51
|
+
multipartFormRequestOptions(
|
|
52
|
+
{ body, ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
|
|
53
|
+
this._client,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
28
56
|
}
|
|
29
57
|
|
|
30
|
-
|
|
31
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Upload material from URL
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.v1.materials.upload.uploadFromURL({
|
|
64
|
+
* name: 'name',
|
|
65
|
+
* url: 'url',
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
uploadFromURL(body: UploadUploadFromURLParams, options?: RequestOptions): APIPromise<void> {
|
|
70
|
+
return this._client.post('/api/v1/materials/upload/url', {
|
|
71
|
+
body,
|
|
32
72
|
...options,
|
|
33
73
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
34
74
|
});
|
|
35
75
|
}
|
|
36
76
|
}
|
|
77
|
+
|
|
78
|
+
export interface UploadUploadFileParams {
|
|
79
|
+
file: Uploadable;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Material name
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Folder ID (optional)
|
|
88
|
+
*/
|
|
89
|
+
folderId?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface UploadUploadFromURLParams {
|
|
93
|
+
/**
|
|
94
|
+
* Material name
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* URL to fetch content from
|
|
100
|
+
*/
|
|
101
|
+
url: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Folder ID (optional)
|
|
105
|
+
*/
|
|
106
|
+
folderId?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare namespace Upload {
|
|
110
|
+
export {
|
|
111
|
+
type UploadUploadFileParams as UploadUploadFileParams,
|
|
112
|
+
type UploadUploadFromURLParams as UploadUploadFromURLParams,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class APIKeys extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.organizations.apiKeys.delete('keyId');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
delete(keyID: string, options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.delete(path`/api/v1/organizations/api-keys/${keyID}`, {
|
|
12
18
|
...options,
|
|
@@ -14,13 +20,30 @@ export class APIKeys extends APIResource {
|
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Create new API key
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.v1.organizations.apiKeys.apiKeys({
|
|
29
|
+
* name: 'name',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
apiKeys(body: APIKeyAPIKeysParams, options?: RequestOptions): APIPromise<void> {
|
|
18
34
|
return this._client.post('/api/v1/organizations/api-keys', {
|
|
35
|
+
body,
|
|
19
36
|
...options,
|
|
20
37
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
38
|
});
|
|
22
39
|
}
|
|
23
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* await client.v1.organizations.apiKeys.retrieveAPIKeys();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
24
47
|
retrieveAPIKeys(options?: RequestOptions): APIPromise<void> {
|
|
25
48
|
return this._client.get('/api/v1/organizations/api-keys', {
|
|
26
49
|
...options,
|
|
@@ -28,3 +51,14 @@ export class APIKeys extends APIResource {
|
|
|
28
51
|
});
|
|
29
52
|
}
|
|
30
53
|
}
|
|
54
|
+
|
|
55
|
+
export interface APIKeyAPIKeysParams {
|
|
56
|
+
/**
|
|
57
|
+
* API key name
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare namespace APIKeys {
|
|
63
|
+
export { type APIKeyAPIKeysParams as APIKeyAPIKeysParams };
|
|
64
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { APIKeys } from './api-keys';
|
|
3
|
+
export { APIKeys, type APIKeyAPIKeysParams } from './api-keys';
|
|
4
4
|
export { Logo } from './logo/index';
|
|
5
5
|
export { Organizations, type OrganizationUpdateParams } from './organizations';
|
|
6
6
|
export { Profile, type UpdateOrganization, type ProfilePatchAllParams } from './profile/index';
|
|
@@ -10,6 +10,12 @@ import { RequestOptions } from '../../../../internal/request-options';
|
|
|
10
10
|
export class Logo extends APIResource {
|
|
11
11
|
upload: UploadAPI.Upload = new UploadAPI.Upload(this._client);
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* await client.v1.organizations.logo.deleteAll();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
13
19
|
deleteAll(options?: RequestOptions): APIPromise<void> {
|
|
14
20
|
return this._client.delete('/api/v1/organizations/logo', {
|
|
15
21
|
...options,
|
|
@@ -6,6 +6,12 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Upload extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.v1.organizations.logo.upload.complete();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
9
15
|
complete(options?: RequestOptions): APIPromise<void> {
|
|
10
16
|
return this._client.post('/api/v1/organizations/logo/upload/complete', {
|
|
11
17
|
...options,
|
|
@@ -13,6 +19,12 @@ export class Upload extends APIResource {
|
|
|
13
19
|
});
|
|
14
20
|
}
|
|
15
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* await client.v1.organizations.logo.upload.presignedURL();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
16
28
|
presignedURL(options?: RequestOptions): APIPromise<void> {
|
|
17
29
|
return this._client.post('/api/v1/organizations/logo/upload/presigned-url', {
|
|
18
30
|
...options,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from './api-keys';
|
|
5
|
-
import { APIKeys } from './api-keys';
|
|
5
|
+
import { APIKeyAPIKeysParams, APIKeys } from './api-keys';
|
|
6
6
|
import * as ThemeAPI from './theme';
|
|
7
7
|
import { Theme } from './theme';
|
|
8
8
|
import * as UsageAPI from './usage';
|
|
@@ -32,6 +32,12 @@ export class Organizations extends APIResource {
|
|
|
32
32
|
logo: LogoAPI.Logo = new LogoAPI.Logo(this._client);
|
|
33
33
|
team: TeamAPI.Team = new TeamAPI.Team(this._client);
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await client.v1.organizations.retrieve('id');
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
35
41
|
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
36
42
|
return this._client.get(path`/api/v1/organizations/${id}`, {
|
|
37
43
|
...options,
|
|
@@ -39,6 +45,12 @@ export class Organizations extends APIResource {
|
|
|
39
45
|
});
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.v1.organizations.update('id');
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
42
54
|
update(id: string, body: OrganizationUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
43
55
|
return this._client.put(path`/api/v1/organizations/${id}`, {
|
|
44
56
|
body,
|
|
@@ -66,7 +78,7 @@ export declare namespace Organizations {
|
|
|
66
78
|
type ProfilePatchAllParams as ProfilePatchAllParams,
|
|
67
79
|
};
|
|
68
80
|
|
|
69
|
-
export { APIKeys as APIKeys };
|
|
81
|
+
export { APIKeys as APIKeys, type APIKeyAPIKeysParams as APIKeyAPIKeysParams };
|
|
70
82
|
|
|
71
83
|
export { Usage as Usage };
|
|
72
84
|
|
|
@@ -6,6 +6,12 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Models extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.v1.organizations.profile.models.retrieveAvailable();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
9
15
|
retrieveAvailable(options?: RequestOptions): APIPromise<void> {
|
|
10
16
|
return this._client.get('/api/v1/organizations/profile/models/available', {
|
|
11
17
|
...options,
|
|
@@ -13,6 +13,14 @@ export class Profile extends APIResource {
|
|
|
13
13
|
models: ModelsAPI.Models = new ModelsAPI.Models(this._client);
|
|
14
14
|
team: TeamAPI.Team = new TeamAPI.Team(this._client);
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Get current organization profile
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* await client.v1.organizations.profile.list();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
16
24
|
list(options?: RequestOptions): APIPromise<void> {
|
|
17
25
|
return this._client.get('/api/v1/organizations/profile', {
|
|
18
26
|
...options,
|
|
@@ -20,6 +28,12 @@ export class Profile extends APIResource {
|
|
|
20
28
|
});
|
|
21
29
|
}
|
|
22
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.v1.organizations.profile.patchAll();
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
23
37
|
patchAll(body: ProfilePatchAllParams, options?: RequestOptions): APIPromise<void> {
|
|
24
38
|
return this._client.patch('/api/v1/organizations/profile', {
|
|
25
39
|
body,
|
|
@@ -7,6 +7,12 @@ import { RequestOptions } from '../../../../internal/request-options';
|
|
|
7
7
|
import { path } from '../../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
export class Team extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.organizations.profile.team.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
list(options?: RequestOptions): APIPromise<void> {
|
|
11
17
|
return this._client.get('/api/v1/organizations/profile/team', {
|
|
12
18
|
...options,
|
|
@@ -14,6 +20,12 @@ export class Team extends APIResource {
|
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.organizations.profile.team.delete('email');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
17
29
|
delete(email: string, options?: RequestOptions): APIPromise<void> {
|
|
18
30
|
return this._client.delete(path`/api/v1/organizations/profile/team/${email}`, {
|
|
19
31
|
...options,
|
|
@@ -21,6 +33,12 @@ export class Team extends APIResource {
|
|
|
21
33
|
});
|
|
22
34
|
}
|
|
23
35
|
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* await client.v1.organizations.profile.team.invite();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
24
42
|
invite(body: TeamInviteParams, options?: RequestOptions): APIPromise<void> {
|
|
25
43
|
return this._client.post('/api/v1/organizations/profile/team/invite', {
|
|
26
44
|
body,
|
|
@@ -29,6 +47,14 @@ export class Team extends APIResource {
|
|
|
29
47
|
});
|
|
30
48
|
}
|
|
31
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* await client.v1.organizations.profile.team.resendInvite(
|
|
54
|
+
* 'email',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
32
58
|
resendInvite(email: string, options?: RequestOptions): APIPromise<void> {
|
|
33
59
|
return this._client.post(path`/api/v1/organizations/profile/team/${email}/resend-invite`, {
|
|
34
60
|
...options,
|
|
@@ -36,6 +62,12 @@ export class Team extends APIResource {
|
|
|
36
62
|
});
|
|
37
63
|
}
|
|
38
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* await client.v1.organizations.profile.team.retrieveDetailed();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
39
71
|
retrieveDetailed(options?: RequestOptions): APIPromise<void> {
|
|
40
72
|
return this._client.get('/api/v1/organizations/profile/team/detailed', {
|
|
41
73
|
...options,
|
|
@@ -43,6 +75,14 @@ export class Team extends APIResource {
|
|
|
43
75
|
});
|
|
44
76
|
}
|
|
45
77
|
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* await client.v1.organizations.profile.team.updateRole(
|
|
82
|
+
* 'email',
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
46
86
|
updateRole(email: string, body: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void> {
|
|
47
87
|
return this._client.put(path`/api/v1/organizations/profile/team/${email}/role`, {
|
|
48
88
|
body,
|