@studyfetch/sdk 1.1.1 → 1.3.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 +36 -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 +461 -7
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +461 -7
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/components.js +77 -25
- package/resources/v1/components.js.map +1 -1
- package/resources/v1/components.mjs +77 -25
- 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 +12 -11
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +12 -11
- 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 +2 -2
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +310 -7
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +310 -7
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +84 -15
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +85 -16
- 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 +188 -3
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +188 -3
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +42 -11
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +42 -11
- 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 +26 -22
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +26 -22
- 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 +588 -33
- 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 +45 -15
- package/src/resources/v1/materials/bulk.ts +6 -0
- package/src/resources/v1/materials/index.ts +16 -2
- package/src/resources/v1/materials/materials.ts +395 -20
- package/src/resources/v1/materials/test.ts +31 -7
- package/src/resources/v1/materials/upload.ts +245 -11
- 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 +98 -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
|
@@ -2,13 +2,102 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Folders extends APIResource {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Create a new folder
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.v1.folders.create({ name: 'name' });
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
create(body: FolderCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Get folder by ID
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await client.v1.folders.retrieve('id');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
6
22
|
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
7
|
-
|
|
8
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Update folder
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.v1.folders.update('id');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(id: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Get all folders
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.v1.folders.list();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
list(query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete folder
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* await client.v1.folders.delete('id');
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
9
49
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Get folder tree structure
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.v1.folders.getTree();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
getTree(options?: RequestOptions): APIPromise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await client.v1.folders.listMaterials('id');
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
10
65
|
listMaterials(id: string, options?: RequestOptions): APIPromise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.v1.folders.move('id');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
11
72
|
move(id: string, options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
|
|
73
|
+
}
|
|
74
|
+
export interface FolderCreateParams {
|
|
75
|
+
/**
|
|
76
|
+
* Folder name
|
|
77
|
+
*/
|
|
78
|
+
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* Parent folder ID (optional)
|
|
81
|
+
*/
|
|
82
|
+
parentId?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface FolderUpdateParams {
|
|
85
|
+
/**
|
|
86
|
+
* New folder name
|
|
87
|
+
*/
|
|
88
|
+
name?: string;
|
|
89
|
+
/**
|
|
90
|
+
* New parent folder ID
|
|
91
|
+
*/
|
|
92
|
+
parentId?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface FolderListParams {
|
|
95
|
+
/**
|
|
96
|
+
* Filter by parent folder
|
|
97
|
+
*/
|
|
98
|
+
parentId?: unknown;
|
|
99
|
+
}
|
|
100
|
+
export declare namespace Folders {
|
|
101
|
+
export { type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
|
|
13
102
|
}
|
|
14
103
|
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,MAAM,C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AAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/v1/folders.js
CHANGED
|
@@ -6,50 +6,113 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class Folders extends resource_1.APIResource {
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Create a new folder
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.v1.folders.create({ name: 'name' });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
10
18
|
return this._client.post('/api/v1/folders', {
|
|
19
|
+
body,
|
|
11
20
|
...options,
|
|
12
21
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
13
22
|
});
|
|
14
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Get folder by ID
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* await client.v1.folders.retrieve('id');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
15
32
|
retrieve(id, options) {
|
|
16
33
|
return this._client.get((0, path_1.path) `/api/v1/folders/${id}`, {
|
|
17
34
|
...options,
|
|
18
35
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
19
36
|
});
|
|
20
37
|
}
|
|
21
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Update folder
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* await client.v1.folders.update('id');
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
update(id, body, options) {
|
|
22
47
|
return this._client.patch((0, path_1.path) `/api/v1/folders/${id}`, {
|
|
48
|
+
body,
|
|
23
49
|
...options,
|
|
24
50
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
25
51
|
});
|
|
26
52
|
}
|
|
27
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Get all folders
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* await client.v1.folders.list();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
list(query = {}, options) {
|
|
28
62
|
return this._client.get('/api/v1/folders', {
|
|
63
|
+
query,
|
|
29
64
|
...options,
|
|
30
65
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
31
66
|
});
|
|
32
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Delete folder
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* await client.v1.folders.delete('id');
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
33
76
|
delete(id, options) {
|
|
34
77
|
return this._client.delete((0, path_1.path) `/api/v1/folders/${id}`, {
|
|
35
78
|
...options,
|
|
36
79
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
37
80
|
});
|
|
38
81
|
}
|
|
39
|
-
|
|
40
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Get folder tree structure
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* await client.v1.folders.getTree();
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
getTree(options) {
|
|
91
|
+
return this._client.get('/api/v1/folders/tree', {
|
|
41
92
|
...options,
|
|
42
93
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
43
94
|
});
|
|
44
95
|
}
|
|
45
|
-
|
|
46
|
-
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* await client.v1.folders.listMaterials('id');
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
listMaterials(id, options) {
|
|
103
|
+
return this._client.get((0, path_1.path) `/api/v1/folders/${id}/materials`, {
|
|
47
104
|
...options,
|
|
48
105
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
49
106
|
});
|
|
50
107
|
}
|
|
51
|
-
|
|
52
|
-
|
|
108
|
+
/**
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* await client.v1.folders.move('id');
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
move(id, options) {
|
|
115
|
+
return this._client.patch((0, path_1.path) `/api/v1/folders/${id}/move`, {
|
|
53
116
|
...options,
|
|
54
117
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
55
118
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC,MAAM,CAAC,OAAwB;
|
|
1
|
+
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC1C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EA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,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,YAAY,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,OAAO,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvHD,0BAuHC"}
|
package/resources/v1/folders.mjs
CHANGED
|
@@ -3,50 +3,113 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class Folders extends APIResource {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Create a new folder
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.v1.folders.create({ name: 'name' });
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
7
15
|
return this._client.post('/api/v1/folders', {
|
|
16
|
+
body,
|
|
8
17
|
...options,
|
|
9
18
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
10
19
|
});
|
|
11
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Get folder by ID
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.folders.retrieve('id');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
12
29
|
retrieve(id, options) {
|
|
13
30
|
return this._client.get(path `/api/v1/folders/${id}`, {
|
|
14
31
|
...options,
|
|
15
32
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
16
33
|
});
|
|
17
34
|
}
|
|
18
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Update folder
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.v1.folders.update('id');
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
update(id, body, options) {
|
|
19
44
|
return this._client.patch(path `/api/v1/folders/${id}`, {
|
|
45
|
+
body,
|
|
20
46
|
...options,
|
|
21
47
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
48
|
});
|
|
23
49
|
}
|
|
24
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Get all folders
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.v1.folders.list();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(query = {}, options) {
|
|
25
59
|
return this._client.get('/api/v1/folders', {
|
|
60
|
+
query,
|
|
26
61
|
...options,
|
|
27
62
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
63
|
});
|
|
29
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Delete folder
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* await client.v1.folders.delete('id');
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
30
73
|
delete(id, options) {
|
|
31
74
|
return this._client.delete(path `/api/v1/folders/${id}`, {
|
|
32
75
|
...options,
|
|
33
76
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
34
77
|
});
|
|
35
78
|
}
|
|
36
|
-
|
|
37
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Get folder tree structure
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* await client.v1.folders.getTree();
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
getTree(options) {
|
|
88
|
+
return this._client.get('/api/v1/folders/tree', {
|
|
38
89
|
...options,
|
|
39
90
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
91
|
});
|
|
41
92
|
}
|
|
42
|
-
|
|
43
|
-
|
|
93
|
+
/**
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* await client.v1.folders.listMaterials('id');
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
listMaterials(id, options) {
|
|
100
|
+
return this._client.get(path `/api/v1/folders/${id}/materials`, {
|
|
44
101
|
...options,
|
|
45
102
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
46
103
|
});
|
|
47
104
|
}
|
|
48
|
-
|
|
49
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* await client.v1.folders.move('id');
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
move(id, options) {
|
|
112
|
+
return this._client.patch(path `/api/v1/folders/${id}/move`, {
|
|
50
113
|
...options,
|
|
51
114
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
52
115
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC,MAAM,CAAC,OAAwB;
|
|
1
|
+
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/v1/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC1C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV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AAC;IACL,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,EAAE,OAAO,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export { Admin } from "./admin/index.mjs";
|
|
2
2
|
export { AudioRecaps, type AudioRecapCreateParams, type AudioRecapAskQuestionParams, } from "./audio-recaps/index.mjs";
|
|
3
|
-
export { Auth, type
|
|
4
|
-
export { Chat, type
|
|
5
|
-
export { Components, type ComponentCreateParams, type ComponentUpdateParams, type ComponentListParams, type ComponentEmbedParams, } from "./components.mjs";
|
|
6
|
-
export { Embed, type
|
|
7
|
-
export { Explainers, type ExplainerCreateParams } from "./explainers.mjs";
|
|
8
|
-
export { Flashcards, type FlashcardGetDueParams, type FlashcardGetStatsParams, type
|
|
9
|
-
export { Folders } from "./folders.mjs";
|
|
10
|
-
export { Materials, type MaterialCreateParams, type MaterialGetDownloadURLParams } from "./materials/index.mjs";
|
|
3
|
+
export { Auth, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, type AuthVerifyResetTokenParams, } from "./auth/index.mjs";
|
|
4
|
+
export { Chat, type ChatRetrieveSessionParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat/index.mjs";
|
|
5
|
+
export { Components, type ComponentCreateResponse, type ComponentRetrieveResponse, type ComponentUpdateResponse, type ComponentListResponse, type ComponentEmbedResponse, type ComponentCreateParams, type ComponentUpdateParams, type ComponentListParams, type ComponentEmbedParams, } from "./components.mjs";
|
|
6
|
+
export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed/index.mjs";
|
|
7
|
+
export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from "./explainers.mjs";
|
|
8
|
+
export { Flashcards, type FlashcardBatchProcessResponse, type FlashcardGetAlgorithmInfoResponse, type FlashcardGetTypesResponse, type FlashcardBatchProcessParams, type FlashcardGetAllParams, type FlashcardGetDueParams, type FlashcardGetStatsParams, type FlashcardRateParams, } from "./flashcards.mjs";
|
|
9
|
+
export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from "./folders.mjs";
|
|
10
|
+
export { Materials, type MaterialCreateResponse, type MaterialRetrieveResponse, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, } from "./materials/index.mjs";
|
|
11
11
|
export { Organizations, type OrganizationUpdateParams } from "./organizations/index.mjs";
|
|
12
|
-
export { Scenarios } from "./scenarios/index.mjs";
|
|
13
|
-
export { Tests } from "./tests/index.mjs";
|
|
14
|
-
export {
|
|
12
|
+
export { Scenarios, type ScenarioCreateParams, type ScenarioUpdateParams } from "./scenarios/index.mjs";
|
|
13
|
+
export { Tests, type TestCreateParams, type TestRetakeParams, type TestSubmitParams, type TestSubmitAnswerParams, } from "./tests/index.mjs";
|
|
14
|
+
export { Upload } from "./upload/index.mjs";
|
|
15
|
+
export { Usage, type UsageGetStatsParams, type UsageGetSummaryParams, type UsageListEventsParams, type UsageTrackChatParams, type UsageTrackEventParams, type UsageTrackPerformanceParams, } from "./usage.mjs";
|
|
15
16
|
export { V1 } from "./v1.mjs";
|
|
16
17
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,
|
|
1
|
+
{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B,EAAE;OACnE,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export { Admin } from "./admin/index.js";
|
|
2
2
|
export { AudioRecaps, type AudioRecapCreateParams, type AudioRecapAskQuestionParams, } from "./audio-recaps/index.js";
|
|
3
|
-
export { Auth, type
|
|
4
|
-
export { Chat, type
|
|
5
|
-
export { Components, type ComponentCreateParams, type ComponentUpdateParams, type ComponentListParams, type ComponentEmbedParams, } from "./components.js";
|
|
6
|
-
export { Embed, type
|
|
7
|
-
export { Explainers, type ExplainerCreateParams } from "./explainers.js";
|
|
8
|
-
export { Flashcards, type FlashcardGetDueParams, type FlashcardGetStatsParams, type
|
|
9
|
-
export { Folders } from "./folders.js";
|
|
10
|
-
export { Materials, type MaterialCreateParams, type MaterialGetDownloadURLParams } from "./materials/index.js";
|
|
3
|
+
export { Auth, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, type AuthVerifyResetTokenParams, } from "./auth/index.js";
|
|
4
|
+
export { Chat, type ChatRetrieveSessionParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat/index.js";
|
|
5
|
+
export { Components, type ComponentCreateResponse, type ComponentRetrieveResponse, type ComponentUpdateResponse, type ComponentListResponse, type ComponentEmbedResponse, type ComponentCreateParams, type ComponentUpdateParams, type ComponentListParams, type ComponentEmbedParams, } from "./components.js";
|
|
6
|
+
export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed/index.js";
|
|
7
|
+
export { Explainers, type ExplainerCreateParams, type ExplainerHandleWebhookParams } from "./explainers.js";
|
|
8
|
+
export { Flashcards, type FlashcardBatchProcessResponse, type FlashcardGetAlgorithmInfoResponse, type FlashcardGetTypesResponse, type FlashcardBatchProcessParams, type FlashcardGetAllParams, type FlashcardGetDueParams, type FlashcardGetStatsParams, type FlashcardRateParams, } from "./flashcards.js";
|
|
9
|
+
export { Folders, type FolderCreateParams, type FolderUpdateParams, type FolderListParams } from "./folders.js";
|
|
10
|
+
export { Materials, type MaterialCreateResponse, type MaterialRetrieveResponse, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, } from "./materials/index.js";
|
|
11
11
|
export { Organizations, type OrganizationUpdateParams } from "./organizations/index.js";
|
|
12
|
-
export { Scenarios } from "./scenarios/index.js";
|
|
13
|
-
export { Tests } from "./tests/index.js";
|
|
14
|
-
export {
|
|
12
|
+
export { Scenarios, type ScenarioCreateParams, type ScenarioUpdateParams } from "./scenarios/index.js";
|
|
13
|
+
export { Tests, type TestCreateParams, type TestRetakeParams, type TestSubmitParams, type TestSubmitAnswerParams, } from "./tests/index.js";
|
|
14
|
+
export { Upload } from "./upload/index.js";
|
|
15
|
+
export { Usage, type UsageGetStatsParams, type UsageGetSummaryParams, type UsageListEventsParams, type UsageTrackChatParams, type UsageTrackEventParams, type UsageTrackPerformanceParams, } from "./usage.js";
|
|
15
16
|
export { V1 } from "./v1.js";
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC;OACM,EACL,IAAI,EACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names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gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.Usage = exports.Tests = exports.Scenarios = exports.Organizations = exports.Materials = exports.Folders = exports.Flashcards = exports.Explainers = exports.Embed = exports.Components = exports.Chat = exports.Auth = exports.AudioRecaps = exports.Admin = void 0;
|
|
4
|
+
exports.V1 = exports.Usage = exports.Upload = exports.Tests = exports.Scenarios = exports.Organizations = exports.Materials = exports.Folders = exports.Flashcards = exports.Explainers = exports.Embed = exports.Components = exports.Chat = exports.Auth = exports.AudioRecaps = exports.Admin = void 0;
|
|
5
5
|
var index_1 = require("./admin/index.js");
|
|
6
6
|
Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return index_1.Admin; } });
|
|
7
7
|
var index_2 = require("./audio-recaps/index.js");
|
|
@@ -28,6 +28,8 @@ var index_8 = require("./scenarios/index.js");
|
|
|
28
28
|
Object.defineProperty(exports, "Scenarios", { enumerable: true, get: function () { return index_8.Scenarios; } });
|
|
29
29
|
var index_9 = require("./tests/index.js");
|
|
30
30
|
Object.defineProperty(exports, "Tests", { enumerable: true, get: function () { return index_9.Tests; } });
|
|
31
|
+
var index_10 = require("./upload/index.js");
|
|
32
|
+
Object.defineProperty(exports, "Upload", { enumerable: true, get: function () { return index_10.Upload; } });
|
|
31
33
|
var usage_1 = require("./usage.js");
|
|
32
34
|
Object.defineProperty(exports, "Usage", { enumerable: true, get: function () { return usage_1.Usage; } });
|
|
33
35
|
var v1_1 = require("./v1.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,iDAI8B;AAH5B,oGAAA,WAAW,OAAA;AAIb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,iDAI8B;AAH5B,oGAAA,WAAW,OAAA;AAIb,yCAOsB;AANpB,6FAAA,IAAI,OAAA;AAON,yCAKsB;AAJpB,6FAAA,IAAI,OAAA;AAKN,8CAWsB;AAVpB,wGAAA,UAAU,OAAA;AAWZ,0CAAwF;AAA/E,8FAAA,KAAK,OAAA;AACd,8CAAyG;AAAhG,wGAAA,UAAU,OAAA;AACnB,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,wCAA6G;AAApG,kGAAA,OAAO,OAAA;AAChB,8CAQ2B;AAPzB,kGAAA,SAAS,OAAA;AAQX,kDAAqF;AAA5E,sGAAA,aAAa,OAAA;AACtB,8CAAoG;AAA3F,kGAAA,SAAS,OAAA;AAClB,0CAMuB;AALrB,8FAAA,KAAK,OAAA;AAMP,4CAAwC;AAA/B,gGAAA,MAAM,OAAA;AACf,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v1/index.mjs
CHANGED
|
@@ -4,14 +4,15 @@ export { AudioRecaps, } from "./audio-recaps/index.mjs";
|
|
|
4
4
|
export { Auth, } from "./auth/index.mjs";
|
|
5
5
|
export { Chat, } from "./chat/index.mjs";
|
|
6
6
|
export { Components, } from "./components.mjs";
|
|
7
|
-
export { Embed
|
|
7
|
+
export { Embed } from "./embed/index.mjs";
|
|
8
8
|
export { Explainers } from "./explainers.mjs";
|
|
9
9
|
export { Flashcards, } from "./flashcards.mjs";
|
|
10
10
|
export { Folders } from "./folders.mjs";
|
|
11
|
-
export { Materials } from "./materials/index.mjs";
|
|
11
|
+
export { Materials, } from "./materials/index.mjs";
|
|
12
12
|
export { Organizations } from "./organizations/index.mjs";
|
|
13
13
|
export { Scenarios } from "./scenarios/index.mjs";
|
|
14
|
-
export { Tests } from "./tests/index.mjs";
|
|
15
|
-
export {
|
|
14
|
+
export { Tests, } from "./tests/index.mjs";
|
|
15
|
+
export { Upload } from "./upload/index.mjs";
|
|
16
|
+
export { Usage, } from "./usage.mjs";
|
|
16
17
|
export { V1 } from "./v1.mjs";
|
|
17
18
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAE;OACT,EACL,WAAW,GAGZ;OACM,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAE;OACT,EACL,WAAW,GAGZ;OACM,EACL,IAAI,GAML;OACM,EACL,IAAI,GAIL;OACM,EACL,UAAU,GAUX;OACM,EAAE,KAAK,EAAoD;OAC3D,EAAE,UAAU,EAAiE;OAC7E,EACL,UAAU,GASX;OACM,EAAE,OAAO,EAA2E;OACpF,EACL,SAAS,GAOV;OACM,EAAE,aAAa,EAAiC;OAChD,EAAE,SAAS,EAAwD;OACnE,EACL,KAAK,GAKN;OACM,EAAE,MAAM,EAAE;OACV,EACL,KAAK,GAON;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -2,6 +2,12 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* await client.v1.materials.bulk.move();
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
5
11
|
move(options?: RequestOptions): APIPromise<void>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=bulk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
|
|
1
|
+
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
|
|
@@ -2,6 +2,12 @@ import { APIResource } from "../../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class Bulk extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* await client.v1.materials.bulk.move();
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
5
11
|
move(options?: RequestOptions): APIPromise<void>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=bulk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
|
|
1
|
+
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjD"}
|
|
@@ -5,6 +5,12 @@ exports.Bulk = void 0;
|
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
const headers_1 = require("../../../internal/headers.js");
|
|
7
7
|
class Bulk extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.v1.materials.bulk.move();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
8
14
|
move(options) {
|
|
9
15
|
return this._client.post('/api/v1/materials/bulk/move', {
|
|
10
16
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IACnC,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;OAKG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAbD,oBAaC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
4
|
export class Bulk extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* await client.v1.materials.bulk.move();
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
5
11
|
move(options) {
|
|
6
12
|
return this._client.post('/api/v1/materials/bulk/move', {
|
|
7
13
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../../src/resources/v1/materials/bulk.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;OAKG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Bulk } from "./bulk.mjs";
|
|
2
|
-
export { Materials, type MaterialCreateParams, type MaterialGetDownloadURLParams } from "./materials.mjs";
|
|
2
|
+
export { Materials, type MaterialCreateResponse, type MaterialRetrieveResponse, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, } from "./materials.mjs";
|
|
3
3
|
export { Test } from "./test.mjs";
|
|
4
|
-
export { Upload } from "./upload.mjs";
|
|
4
|
+
export { Upload, type UploadUploadFileResponse, type UploadUploadFromURLResponse, type UploadUploadFileParams, type UploadUploadFromURLParams, } from "./upload.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/materials/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC;OACM,EAAE,IAAI,EAAE;OACR,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Bulk } from "./bulk.js";
|
|
2
|
-
export { Materials, type MaterialCreateParams, type MaterialGetDownloadURLParams } from "./materials.js";
|
|
2
|
+
export { Materials, type MaterialCreateResponse, type MaterialRetrieveResponse, type MaterialListResponse, type MaterialCreateParams, type MaterialListParams, type MaterialGetDownloadURLParams, } from "./materials.js";
|
|
3
3
|
export { Test } from "./test.js";
|
|
4
|
-
export { Upload } from "./upload.js";
|
|
4
|
+
export { Upload, type UploadUploadFileResponse, type UploadUploadFromURLResponse, type UploadUploadFileParams, type UploadUploadFromURLParams, } from "./upload.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|