@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,26 +2,480 @@ 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 Components extends APIResource {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Create a new component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const component = await client.v1.components.create({
|
|
11
|
+
* config: {},
|
|
12
|
+
* name: 'My Study Component',
|
|
13
|
+
* origin: 'chat',
|
|
14
|
+
* type: 'chat',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: ComponentCreateParams, options?: RequestOptions): APIPromise<ComponentCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get component by ID
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const component = await client.v1.components.retrieve('id');
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ComponentRetrieveResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Update component
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const component = await client.v1.components.update('id');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(id: string, body: ComponentUpdateParams, options?: RequestOptions): APIPromise<ComponentUpdateResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get all components
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const components = await client.v1.components.list();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(query?: ComponentListParams | null | undefined, options?: RequestOptions): APIPromise<ComponentListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete component
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.v1.components.delete('id');
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
9
54
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* await client.v1.components.activate('id');
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
10
61
|
activate(id: string, options?: RequestOptions): APIPromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* await client.v1.components.deactivate('id');
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
11
68
|
deactivate(id: string, options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Generate embed code for component
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response = await client.v1.components.embed('id');
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
embed(id: string, body: ComponentEmbedParams, options?: RequestOptions): APIPromise<ComponentEmbedResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* await client.v1.components.interact('id');
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
13
84
|
interact(id: string, options?: RequestOptions): APIPromise<void>;
|
|
14
85
|
}
|
|
86
|
+
export interface ComponentCreateResponse {
|
|
87
|
+
/**
|
|
88
|
+
* Component ID (MongoDB ObjectId)
|
|
89
|
+
*/
|
|
90
|
+
_id: string;
|
|
91
|
+
/**
|
|
92
|
+
* Unique component identifier
|
|
93
|
+
*/
|
|
94
|
+
componentId: string;
|
|
95
|
+
/**
|
|
96
|
+
* Component configuration
|
|
97
|
+
*/
|
|
98
|
+
config: unknown;
|
|
99
|
+
/**
|
|
100
|
+
* Creation timestamp
|
|
101
|
+
*/
|
|
102
|
+
createdAt: string;
|
|
103
|
+
/**
|
|
104
|
+
* Component name
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
/**
|
|
108
|
+
* Organization ID
|
|
109
|
+
*/
|
|
110
|
+
organization: string;
|
|
111
|
+
/**
|
|
112
|
+
* Component status
|
|
113
|
+
*/
|
|
114
|
+
status: 'active' | 'inactive' | 'draft';
|
|
115
|
+
/**
|
|
116
|
+
* Component type
|
|
117
|
+
*/
|
|
118
|
+
type: 'chat' | 'flashcards' | 'tests' | 'scenarios' | 'explainers' | 'audio-recap';
|
|
119
|
+
/**
|
|
120
|
+
* Last update timestamp
|
|
121
|
+
*/
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
/**
|
|
124
|
+
* Usage statistics
|
|
125
|
+
*/
|
|
126
|
+
usage: unknown;
|
|
127
|
+
/**
|
|
128
|
+
* Component description
|
|
129
|
+
*/
|
|
130
|
+
description?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface ComponentRetrieveResponse {
|
|
133
|
+
/**
|
|
134
|
+
* Component ID (MongoDB ObjectId)
|
|
135
|
+
*/
|
|
136
|
+
_id: string;
|
|
137
|
+
/**
|
|
138
|
+
* Unique component identifier
|
|
139
|
+
*/
|
|
140
|
+
componentId: string;
|
|
141
|
+
/**
|
|
142
|
+
* Component configuration
|
|
143
|
+
*/
|
|
144
|
+
config: unknown;
|
|
145
|
+
/**
|
|
146
|
+
* Creation timestamp
|
|
147
|
+
*/
|
|
148
|
+
createdAt: string;
|
|
149
|
+
/**
|
|
150
|
+
* Component name
|
|
151
|
+
*/
|
|
152
|
+
name: string;
|
|
153
|
+
/**
|
|
154
|
+
* Organization ID
|
|
155
|
+
*/
|
|
156
|
+
organization: string;
|
|
157
|
+
/**
|
|
158
|
+
* Component status
|
|
159
|
+
*/
|
|
160
|
+
status: 'active' | 'inactive' | 'draft';
|
|
161
|
+
/**
|
|
162
|
+
* Component type
|
|
163
|
+
*/
|
|
164
|
+
type: 'chat' | 'flashcards' | 'tests' | 'scenarios' | 'explainers' | 'audio-recap';
|
|
165
|
+
/**
|
|
166
|
+
* Last update timestamp
|
|
167
|
+
*/
|
|
168
|
+
updatedAt: string;
|
|
169
|
+
/**
|
|
170
|
+
* Usage statistics
|
|
171
|
+
*/
|
|
172
|
+
usage: unknown;
|
|
173
|
+
/**
|
|
174
|
+
* Component description
|
|
175
|
+
*/
|
|
176
|
+
description?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface ComponentUpdateResponse {
|
|
179
|
+
/**
|
|
180
|
+
* Component ID (MongoDB ObjectId)
|
|
181
|
+
*/
|
|
182
|
+
_id: string;
|
|
183
|
+
/**
|
|
184
|
+
* Unique component identifier
|
|
185
|
+
*/
|
|
186
|
+
componentId: string;
|
|
187
|
+
/**
|
|
188
|
+
* Component configuration
|
|
189
|
+
*/
|
|
190
|
+
config: unknown;
|
|
191
|
+
/**
|
|
192
|
+
* Creation timestamp
|
|
193
|
+
*/
|
|
194
|
+
createdAt: string;
|
|
195
|
+
/**
|
|
196
|
+
* Component name
|
|
197
|
+
*/
|
|
198
|
+
name: string;
|
|
199
|
+
/**
|
|
200
|
+
* Organization ID
|
|
201
|
+
*/
|
|
202
|
+
organization: string;
|
|
203
|
+
/**
|
|
204
|
+
* Component status
|
|
205
|
+
*/
|
|
206
|
+
status: 'active' | 'inactive' | 'draft';
|
|
207
|
+
/**
|
|
208
|
+
* Component type
|
|
209
|
+
*/
|
|
210
|
+
type: 'chat' | 'flashcards' | 'tests' | 'scenarios' | 'explainers' | 'audio-recap';
|
|
211
|
+
/**
|
|
212
|
+
* Last update timestamp
|
|
213
|
+
*/
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
/**
|
|
216
|
+
* Usage statistics
|
|
217
|
+
*/
|
|
218
|
+
usage: unknown;
|
|
219
|
+
/**
|
|
220
|
+
* Component description
|
|
221
|
+
*/
|
|
222
|
+
description?: string;
|
|
223
|
+
}
|
|
224
|
+
export type ComponentListResponse = Array<ComponentListResponse.ComponentListResponseItem>;
|
|
225
|
+
export declare namespace ComponentListResponse {
|
|
226
|
+
interface ComponentListResponseItem {
|
|
227
|
+
/**
|
|
228
|
+
* Component ID (MongoDB ObjectId)
|
|
229
|
+
*/
|
|
230
|
+
_id: string;
|
|
231
|
+
/**
|
|
232
|
+
* Unique component identifier
|
|
233
|
+
*/
|
|
234
|
+
componentId: string;
|
|
235
|
+
/**
|
|
236
|
+
* Component configuration
|
|
237
|
+
*/
|
|
238
|
+
config: unknown;
|
|
239
|
+
/**
|
|
240
|
+
* Creation timestamp
|
|
241
|
+
*/
|
|
242
|
+
createdAt: string;
|
|
243
|
+
/**
|
|
244
|
+
* Component name
|
|
245
|
+
*/
|
|
246
|
+
name: string;
|
|
247
|
+
/**
|
|
248
|
+
* Organization ID
|
|
249
|
+
*/
|
|
250
|
+
organization: string;
|
|
251
|
+
/**
|
|
252
|
+
* Component status
|
|
253
|
+
*/
|
|
254
|
+
status: 'active' | 'inactive' | 'draft';
|
|
255
|
+
/**
|
|
256
|
+
* Component type
|
|
257
|
+
*/
|
|
258
|
+
type: 'chat' | 'flashcards' | 'tests' | 'scenarios' | 'explainers' | 'audio-recap';
|
|
259
|
+
/**
|
|
260
|
+
* Last update timestamp
|
|
261
|
+
*/
|
|
262
|
+
updatedAt: string;
|
|
263
|
+
/**
|
|
264
|
+
* Usage statistics
|
|
265
|
+
*/
|
|
266
|
+
usage: unknown;
|
|
267
|
+
/**
|
|
268
|
+
* Component description
|
|
269
|
+
*/
|
|
270
|
+
description?: string;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
export interface ComponentEmbedResponse {
|
|
274
|
+
/**
|
|
275
|
+
* JWT token for authentication
|
|
276
|
+
*/
|
|
277
|
+
token: string;
|
|
278
|
+
/**
|
|
279
|
+
* Component ID
|
|
280
|
+
*/
|
|
281
|
+
componentId: string;
|
|
282
|
+
/**
|
|
283
|
+
* Component type
|
|
284
|
+
*/
|
|
285
|
+
componentType: string;
|
|
286
|
+
/**
|
|
287
|
+
* The embed URL for iframe integration
|
|
288
|
+
*/
|
|
289
|
+
embedUrl: string;
|
|
290
|
+
/**
|
|
291
|
+
* Token expiration timestamp
|
|
292
|
+
*/
|
|
293
|
+
expiresAt: string;
|
|
294
|
+
/**
|
|
295
|
+
* Embed options
|
|
296
|
+
*/
|
|
297
|
+
options: ComponentEmbedResponse.Options;
|
|
298
|
+
}
|
|
299
|
+
export declare namespace ComponentEmbedResponse {
|
|
300
|
+
/**
|
|
301
|
+
* Embed options
|
|
302
|
+
*/
|
|
303
|
+
interface Options {
|
|
304
|
+
/**
|
|
305
|
+
* Embed height
|
|
306
|
+
*/
|
|
307
|
+
height?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Embed width
|
|
310
|
+
*/
|
|
311
|
+
width?: string;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
15
314
|
export interface ComponentCreateParams {
|
|
315
|
+
/**
|
|
316
|
+
* Component-specific configuration
|
|
317
|
+
*/
|
|
318
|
+
config: unknown;
|
|
319
|
+
/**
|
|
320
|
+
* Name of the component
|
|
321
|
+
*/
|
|
322
|
+
name: string;
|
|
323
|
+
/**
|
|
324
|
+
* Origin of the component
|
|
325
|
+
*/
|
|
326
|
+
origin: 'chat' | 'classroom' | 'upload' | 'console' | 'api';
|
|
327
|
+
/**
|
|
328
|
+
* Type of component to create
|
|
329
|
+
*/
|
|
330
|
+
type: 'chat' | 'flashcards' | 'scenarios' | 'practice_test' | 'audio_recap' | 'tutor_me' | 'explainers' | 'uploads';
|
|
331
|
+
/**
|
|
332
|
+
* Component description
|
|
333
|
+
*/
|
|
334
|
+
description?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Additional metadata
|
|
337
|
+
*/
|
|
338
|
+
metadata?: unknown;
|
|
16
339
|
}
|
|
17
340
|
export interface ComponentUpdateParams {
|
|
341
|
+
/**
|
|
342
|
+
* Component status
|
|
343
|
+
*/
|
|
344
|
+
status?: 'draft' | 'active' | 'inactive' | 'processing' | 'error';
|
|
18
345
|
}
|
|
19
346
|
export interface ComponentListParams {
|
|
20
|
-
|
|
347
|
+
/**
|
|
348
|
+
* Filter by component type
|
|
349
|
+
*/
|
|
350
|
+
type?: 'chat' | 'flashcards' | 'scenarios' | 'practice_test' | 'audio_recap' | 'tutor_me' | 'explainers' | 'uploads';
|
|
21
351
|
}
|
|
22
352
|
export interface ComponentEmbedParams {
|
|
353
|
+
/**
|
|
354
|
+
* Token expiry time in hours
|
|
355
|
+
*/
|
|
356
|
+
expiryHours?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Feature toggles
|
|
359
|
+
*/
|
|
360
|
+
features?: ComponentEmbedParams.Features;
|
|
361
|
+
/**
|
|
362
|
+
* Group ID for collaboration
|
|
363
|
+
*/
|
|
364
|
+
groupId?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Embed height (e.g., "400px", "100vh")
|
|
367
|
+
*/
|
|
368
|
+
height?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Session ID for continuity
|
|
371
|
+
*/
|
|
372
|
+
sessionId?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Theme customization
|
|
375
|
+
*/
|
|
376
|
+
theme?: ComponentEmbedParams.Theme;
|
|
377
|
+
/**
|
|
378
|
+
* User ID for tracking
|
|
379
|
+
*/
|
|
380
|
+
userId?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Embed width (e.g., "100%", "600px")
|
|
383
|
+
*/
|
|
384
|
+
width?: string;
|
|
385
|
+
}
|
|
386
|
+
export declare namespace ComponentEmbedParams {
|
|
387
|
+
/**
|
|
388
|
+
* Feature toggles
|
|
389
|
+
*/
|
|
390
|
+
interface Features {
|
|
391
|
+
/**
|
|
392
|
+
* Enable component creation
|
|
393
|
+
*/
|
|
394
|
+
enableComponentCreation?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Enable follow-up questions
|
|
397
|
+
*/
|
|
398
|
+
enableFollowUps?: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* Enable history
|
|
401
|
+
*/
|
|
402
|
+
enableHistory?: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Enable image sources
|
|
405
|
+
*/
|
|
406
|
+
enableImageSources?: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* Enable outline
|
|
409
|
+
*/
|
|
410
|
+
enableOutline?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Enable transcript
|
|
413
|
+
*/
|
|
414
|
+
enableTranscript?: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Enable voice input
|
|
417
|
+
*/
|
|
418
|
+
enableVoice?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* Enable web search
|
|
421
|
+
*/
|
|
422
|
+
enableWebSearch?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Enable web search sources
|
|
425
|
+
*/
|
|
426
|
+
enableWebSearchSources?: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Placeholder text
|
|
429
|
+
*/
|
|
430
|
+
placeholderText?: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Theme customization
|
|
434
|
+
*/
|
|
435
|
+
interface Theme {
|
|
436
|
+
/**
|
|
437
|
+
* Background color (hex)
|
|
438
|
+
*/
|
|
439
|
+
backgroundColor?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Border radius
|
|
442
|
+
*/
|
|
443
|
+
borderRadius?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Font family
|
|
446
|
+
*/
|
|
447
|
+
fontFamily?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Font size
|
|
450
|
+
*/
|
|
451
|
+
fontSize?: string;
|
|
452
|
+
/**
|
|
453
|
+
* Hide branding
|
|
454
|
+
*/
|
|
455
|
+
hideBranding?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Logo URL
|
|
458
|
+
*/
|
|
459
|
+
logoUrl?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Padding
|
|
462
|
+
*/
|
|
463
|
+
padding?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Primary color (hex)
|
|
466
|
+
*/
|
|
467
|
+
primaryColor?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Secondary color (hex)
|
|
470
|
+
*/
|
|
471
|
+
secondaryColor?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Text color (hex)
|
|
474
|
+
*/
|
|
475
|
+
textColor?: string;
|
|
476
|
+
}
|
|
23
477
|
}
|
|
24
478
|
export declare namespace Components {
|
|
25
|
-
export { type ComponentCreateParams as ComponentCreateParams, type ComponentUpdateParams as ComponentUpdateParams, type ComponentListParams as ComponentListParams, type ComponentEmbedParams as ComponentEmbedParams, };
|
|
479
|
+
export { type ComponentCreateResponse as ComponentCreateResponse, type ComponentRetrieveResponse as ComponentRetrieveResponse, type ComponentUpdateResponse as ComponentUpdateResponse, type ComponentListResponse as ComponentListResponse, type ComponentEmbedResponse as ComponentEmbedResponse, type ComponentCreateParams as ComponentCreateParams, type ComponentUpdateParams as ComponentUpdateParams, type ComponentListParams as ComponentListParams, type ComponentEmbedParams as ComponentEmbedParams, };
|
|
26
480
|
}
|
|
27
481
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrF;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;;;;;OAOG;IACH,MAAM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C;CACH"}
|
|
@@ -6,58 +6,110 @@ 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 Components extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new component
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const component = await client.v1.components.create({
|
|
15
|
+
* config: {},
|
|
16
|
+
* name: 'My Study Component',
|
|
17
|
+
* origin: 'chat',
|
|
18
|
+
* type: 'chat',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
9
22
|
create(body, options) {
|
|
10
|
-
return this._client.post('/api/v1/components', {
|
|
11
|
-
body,
|
|
12
|
-
...options,
|
|
13
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
14
|
-
});
|
|
23
|
+
return this._client.post('/api/v1/components', { body, ...options });
|
|
15
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Get component by ID
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const component = await client.v1.components.retrieve('id');
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
16
33
|
retrieve(id, options) {
|
|
17
|
-
return this._client.get((0, path_1.path) `/api/v1/components/${id}`,
|
|
18
|
-
...options,
|
|
19
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
-
});
|
|
34
|
+
return this._client.get((0, path_1.path) `/api/v1/components/${id}`, options);
|
|
21
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Update component
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const component = await client.v1.components.update('id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
22
44
|
update(id, body, options) {
|
|
23
|
-
return this._client.patch((0, path_1.path) `/api/v1/components/${id}`, {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
45
|
+
return this._client.patch((0, path_1.path) `/api/v1/components/${id}`, { body, ...options });
|
|
28
46
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Get all components
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const components = await client.v1.components.list();
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(query = {}, options) {
|
|
56
|
+
return this._client.get('/api/v1/components', { query, ...options });
|
|
35
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Delete component
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.v1.components.delete('id');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
36
66
|
delete(id, options) {
|
|
37
67
|
return this._client.delete((0, path_1.path) `/api/v1/components/${id}`, {
|
|
38
68
|
...options,
|
|
39
69
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
40
70
|
});
|
|
41
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* await client.v1.components.activate('id');
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
42
78
|
activate(id, options) {
|
|
43
79
|
return this._client.post((0, path_1.path) `/api/v1/components/${id}/activate`, {
|
|
44
80
|
...options,
|
|
45
81
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
46
82
|
});
|
|
47
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* await client.v1.components.deactivate('id');
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
48
90
|
deactivate(id, options) {
|
|
49
91
|
return this._client.post((0, path_1.path) `/api/v1/components/${id}/deactivate`, {
|
|
50
92
|
...options,
|
|
51
93
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
52
94
|
});
|
|
53
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Generate embed code for component
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* const response = await client.v1.components.embed('id');
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
54
104
|
embed(id, body, options) {
|
|
55
|
-
return this._client.post((0, path_1.path) `/api/v1/components/${id}/embed`, {
|
|
56
|
-
body,
|
|
57
|
-
...options,
|
|
58
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
-
});
|
|
105
|
+
return this._client.post((0, path_1.path) `/api/v1/components/${id}/embed`, { body, ...options });
|
|
60
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* await client.v1.components.interact('id');
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
61
113
|
interact(id, options) {
|
|
62
114
|
return this._client.post((0, path_1.path) `/api/v1/components/${id}/interact`, {
|
|
63
115
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;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