@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
|
@@ -3,58 +3,110 @@ 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 Components extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new component
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const component = await client.v1.components.create({
|
|
12
|
+
* config: {},
|
|
13
|
+
* name: 'My Study Component',
|
|
14
|
+
* origin: 'chat',
|
|
15
|
+
* type: 'chat',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
6
19
|
create(body, options) {
|
|
7
|
-
return this._client.post('/api/v1/components', {
|
|
8
|
-
body,
|
|
9
|
-
...options,
|
|
10
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
11
|
-
});
|
|
20
|
+
return this._client.post('/api/v1/components', { body, ...options });
|
|
12
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Get component by ID
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const component = await client.v1.components.retrieve('id');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
13
30
|
retrieve(id, options) {
|
|
14
|
-
return this._client.get(path `/api/v1/components/${id}`,
|
|
15
|
-
...options,
|
|
16
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
-
});
|
|
31
|
+
return this._client.get(path `/api/v1/components/${id}`, options);
|
|
18
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Update component
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const component = await client.v1.components.update('id');
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
19
41
|
update(id, body, options) {
|
|
20
|
-
return this._client.patch(path `/api/v1/components/${id}`, {
|
|
21
|
-
body,
|
|
22
|
-
...options,
|
|
23
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
-
});
|
|
42
|
+
return this._client.patch(path `/api/v1/components/${id}`, { body, ...options });
|
|
25
43
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Get all components
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const components = await client.v1.components.list();
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
list(query = {}, options) {
|
|
53
|
+
return this._client.get('/api/v1/components', { query, ...options });
|
|
32
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Delete component
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* await client.v1.components.delete('id');
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
33
63
|
delete(id, options) {
|
|
34
64
|
return this._client.delete(path `/api/v1/components/${id}`, {
|
|
35
65
|
...options,
|
|
36
66
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
37
67
|
});
|
|
38
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* await client.v1.components.activate('id');
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
39
75
|
activate(id, options) {
|
|
40
76
|
return this._client.post(path `/api/v1/components/${id}/activate`, {
|
|
41
77
|
...options,
|
|
42
78
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
79
|
});
|
|
44
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* await client.v1.components.deactivate('id');
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
45
87
|
deactivate(id, options) {
|
|
46
88
|
return this._client.post(path `/api/v1/components/${id}/deactivate`, {
|
|
47
89
|
...options,
|
|
48
90
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
49
91
|
});
|
|
50
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Generate embed code for component
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const response = await client.v1.components.embed('id');
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
51
101
|
embed(id, body, options) {
|
|
52
|
-
return this._client.post(path `/api/v1/components/${id}/embed`, {
|
|
53
|
-
body,
|
|
54
|
-
...options,
|
|
55
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
-
});
|
|
102
|
+
return this._client.post(path `/api/v1/components/${id}/embed`, { body, ...options });
|
|
57
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* await client.v1.components.interact('id');
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
58
110
|
interact(id, options) {
|
|
59
111
|
return this._client.post(path `/api/v1/components/${id}/interact`, {
|
|
60
112
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.mjs","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE
|
|
1
|
+
{"version":3,"file":"components.mjs","sourceRoot":"","sources":["../../src/resources/v1/components.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,sBAAsB,EAAE,EAAE,EAAE;YACzD,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;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,WAAW,EAAE;YAChE,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;;;;;OAKG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,aAAa,EAAE;YAClE,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,KAAK,CACH,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,WAAW,EAAE;YAChE,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"}
|
|
@@ -2,14 +2,45 @@ 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 Component extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get component data for embed
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.v1.embed.component.retrieve('componentId', {
|
|
11
|
+
* token: 'token',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
5
15
|
retrieve(componentID: string, query: ComponentRetrieveParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Process embed interaction
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* await client.v1.embed.component.interact('componentId', {
|
|
22
|
+
* token: 'token',
|
|
23
|
+
* body: 'body',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
6
27
|
interact(componentID: string, params: ComponentInteractParams, options?: RequestOptions): APIPromise<void>;
|
|
7
28
|
}
|
|
8
29
|
export interface ComponentRetrieveParams {
|
|
30
|
+
/**
|
|
31
|
+
* Embed token
|
|
32
|
+
*/
|
|
9
33
|
token: string;
|
|
10
34
|
}
|
|
11
35
|
export interface ComponentInteractParams {
|
|
36
|
+
/**
|
|
37
|
+
* Query param: Embed token
|
|
38
|
+
*/
|
|
12
39
|
token: string;
|
|
40
|
+
/**
|
|
41
|
+
* Body param:
|
|
42
|
+
*/
|
|
43
|
+
body: string;
|
|
13
44
|
}
|
|
14
45
|
export declare namespace Component {
|
|
15
46
|
export { type ComponentRetrieveParams as ComponentRetrieveParams, type ComponentInteractParams as ComponentInteractParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzG,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAS3G;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -2,14 +2,45 @@ 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 Component extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get component data for embed
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.v1.embed.component.retrieve('componentId', {
|
|
11
|
+
* token: 'token',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
5
15
|
retrieve(componentID: string, query: ComponentRetrieveParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Process embed interaction
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* await client.v1.embed.component.interact('componentId', {
|
|
22
|
+
* token: 'token',
|
|
23
|
+
* body: 'body',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
6
27
|
interact(componentID: string, params: ComponentInteractParams, options?: RequestOptions): APIPromise<void>;
|
|
7
28
|
}
|
|
8
29
|
export interface ComponentRetrieveParams {
|
|
30
|
+
/**
|
|
31
|
+
* Embed token
|
|
32
|
+
*/
|
|
9
33
|
token: string;
|
|
10
34
|
}
|
|
11
35
|
export interface ComponentInteractParams {
|
|
36
|
+
/**
|
|
37
|
+
* Query param: Embed token
|
|
38
|
+
*/
|
|
12
39
|
token: string;
|
|
40
|
+
/**
|
|
41
|
+
* Body param:
|
|
42
|
+
*/
|
|
43
|
+
body: string;
|
|
13
44
|
}
|
|
14
45
|
export declare namespace Component {
|
|
15
46
|
export { type ComponentRetrieveParams as ComponentRetrieveParams, type ComponentInteractParams as ComponentInteractParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzG,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAS3G;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -6,6 +6,16 @@ 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 Component extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get component data for embed
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.v1.embed.component.retrieve('componentId', {
|
|
15
|
+
* token: 'token',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
9
19
|
retrieve(componentID, query, options) {
|
|
10
20
|
return this._client.get((0, path_1.path) `/api/v1/embed/component/${componentID}`, {
|
|
11
21
|
query,
|
|
@@ -13,10 +23,22 @@ class Component extends resource_1.APIResource {
|
|
|
13
23
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
14
24
|
});
|
|
15
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Process embed interaction
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.embed.component.interact('componentId', {
|
|
32
|
+
* token: 'token',
|
|
33
|
+
* body: 'body',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
16
37
|
interact(componentID, params, options) {
|
|
17
|
-
const { token } = params;
|
|
38
|
+
const { token, body } = params;
|
|
18
39
|
return this._client.post((0, path_1.path) `/api/v1/embed/component/${componentID}/interact`, {
|
|
19
40
|
query: { token },
|
|
41
|
+
body: body,
|
|
20
42
|
...options,
|
|
21
43
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
22
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC,QAAQ,CAAC,WAAmB,EAAE,KAA8B,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,WAAW,EAAE,EAAE;YACpE,KAAK;YACL,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,QAAQ,CAAC,WAAmB,EAAE,MAA+B,EAAE,OAAwB;QACrF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,KAA8B,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,WAAW,EAAE,EAAE;YACpE,KAAK;YACL,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAmB,EAAE,MAA+B,EAAE,OAAwB;QACrF,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,WAAW,WAAW,EAAE;YAC9E,KAAK,EAAE,EAAE,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI;YACV,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;AAvCD,8BAuCC"}
|
|
@@ -3,6 +3,16 @@ 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 Component extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get component data for embed
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.v1.embed.component.retrieve('componentId', {
|
|
12
|
+
* token: 'token',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
6
16
|
retrieve(componentID, query, options) {
|
|
7
17
|
return this._client.get(path `/api/v1/embed/component/${componentID}`, {
|
|
8
18
|
query,
|
|
@@ -10,10 +20,22 @@ export class Component extends APIResource {
|
|
|
10
20
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
11
21
|
});
|
|
12
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Process embed interaction
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.v1.embed.component.interact('componentId', {
|
|
29
|
+
* token: 'token',
|
|
30
|
+
* body: 'body',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
13
34
|
interact(componentID, params, options) {
|
|
14
|
-
const { token } = params;
|
|
35
|
+
const { token, body } = params;
|
|
15
36
|
return this._client.post(path `/api/v1/embed/component/${componentID}/interact`, {
|
|
16
37
|
query: { token },
|
|
38
|
+
body: body,
|
|
17
39
|
...options,
|
|
18
40
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
19
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.mjs","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,WAAmB,EAAE,KAA8B,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,WAAW,EAAE,EAAE;YACpE,KAAK;YACL,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,QAAQ,CAAC,WAAmB,EAAE,MAA+B,EAAE,OAAwB;QACrF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"component.mjs","sourceRoot":"","sources":["../../../src/resources/v1/embed/component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,KAA8B,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,WAAW,EAAE,EAAE;YACpE,KAAK;YACL,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAmB,EAAE,MAA+B,EAAE,OAAwB;QACrF,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,WAAW,WAAW,EAAE;YAC9E,KAAK,EAAE,EAAE,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI;YACV,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"}
|
|
@@ -5,22 +5,48 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
5
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
6
|
export declare class Embed extends APIResource {
|
|
7
7
|
component: ComponentAPI.Component;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Get theme CSS for embed
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.embed.getTheme({ token: 'token' });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
getTheme(query: EmbedGetThemeParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Health check endpoint
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.v1.embed.healthCheck();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
healthCheck(options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Verify embed token
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.embed.verify({ token: 'token' });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
11
34
|
verify(query: EmbedVerifyParams, options?: RequestOptions): APIPromise<void>;
|
|
12
35
|
}
|
|
13
|
-
export interface EmbedRetrieveParams {
|
|
14
|
-
token: string;
|
|
15
|
-
}
|
|
16
36
|
export interface EmbedGetThemeParams {
|
|
37
|
+
/**
|
|
38
|
+
* Embed token
|
|
39
|
+
*/
|
|
17
40
|
token: string;
|
|
18
41
|
}
|
|
19
42
|
export interface EmbedVerifyParams {
|
|
43
|
+
/**
|
|
44
|
+
* Embed token to verify
|
|
45
|
+
*/
|
|
20
46
|
token: string;
|
|
21
47
|
}
|
|
22
48
|
export declare namespace Embed {
|
|
23
|
-
export { type
|
|
49
|
+
export { type EmbedGetThemeParams as EmbedGetThemeParams, type EmbedVerifyParams as EmbedVerifyParams };
|
|
24
50
|
export { Component as Component, type ComponentRetrieveParams as ComponentRetrieveParams, type ComponentInteractParams as ComponentInteractParams, };
|
|
25
51
|
}
|
|
26
52
|
//# sourceMappingURL=embed.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE,uBAAuB,EAAE;OAC/D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"embed.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE,uBAAuB,EAAE;OAC/D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhF;;;;;;;OAOG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvD;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7E;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -5,22 +5,48 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
5
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
6
|
export declare class Embed extends APIResource {
|
|
7
7
|
component: ComponentAPI.Component;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Get theme CSS for embed
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.v1.embed.getTheme({ token: 'token' });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
10
16
|
getTheme(query: EmbedGetThemeParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Health check endpoint
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.v1.embed.healthCheck();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
healthCheck(options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Verify embed token
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.embed.verify({ token: 'token' });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
11
34
|
verify(query: EmbedVerifyParams, options?: RequestOptions): APIPromise<void>;
|
|
12
35
|
}
|
|
13
|
-
export interface EmbedRetrieveParams {
|
|
14
|
-
token: string;
|
|
15
|
-
}
|
|
16
36
|
export interface EmbedGetThemeParams {
|
|
37
|
+
/**
|
|
38
|
+
* Embed token
|
|
39
|
+
*/
|
|
17
40
|
token: string;
|
|
18
41
|
}
|
|
19
42
|
export interface EmbedVerifyParams {
|
|
43
|
+
/**
|
|
44
|
+
* Embed token to verify
|
|
45
|
+
*/
|
|
20
46
|
token: string;
|
|
21
47
|
}
|
|
22
48
|
export declare namespace Embed {
|
|
23
|
-
export { type
|
|
49
|
+
export { type EmbedGetThemeParams as EmbedGetThemeParams, type EmbedVerifyParams as EmbedVerifyParams };
|
|
24
50
|
export { Component as Component, type ComponentRetrieveParams as ComponentRetrieveParams, type ComponentInteractParams as ComponentInteractParams, };
|
|
25
51
|
}
|
|
26
52
|
//# sourceMappingURL=embed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE,uBAAuB,EAAE;OAC/D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE,uBAAuB,EAAE,uBAAuB,EAAE;OAC/D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhF;;;;;;;OAOG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvD;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7E;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -7,32 +7,48 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
7
7
|
const ComponentAPI = tslib_1.__importStar(require("./component.js"));
|
|
8
8
|
const component_1 = require("./component.js");
|
|
9
9
|
const headers_1 = require("../../../internal/headers.js");
|
|
10
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
11
10
|
class Embed extends resource_1.APIResource {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
14
13
|
this.component = new ComponentAPI.Component(this._client);
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Get theme CSS for embed
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* await client.v1.embed.getTheme({ token: 'token' });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
getTheme(query, options) {
|
|
24
|
+
return this._client.get('/api/v1/embed/theme', {
|
|
18
25
|
query,
|
|
19
26
|
...options,
|
|
20
27
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
21
28
|
});
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Health check endpoint
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* await client.v1.embed.healthCheck();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
healthCheck(options) {
|
|
24
39
|
return this._client.get('/api/v1/embed/health', {
|
|
25
40
|
...options,
|
|
26
41
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
42
|
});
|
|
28
43
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Verify embed token
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.v1.embed.verify({ token: 'token' });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
36
52
|
verify(query, options) {
|
|
37
53
|
return this._client.get('/api/v1/embed/verify', {
|
|
38
54
|
query,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAA0F;AAE1F,0DAAyD;
|
|
1
|
+
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAA0F;AAE1F,0DAAyD;AAGzD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgD/E,CAAC;IA9CC;;;;;;;OAOG;IACH,QAAQ,CAAC,KAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,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;;;;;;;OAOG;IACH,WAAW,CAAC,OAAwB;QAClC,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;;;;;;;OAOG;IACH,MAAM,CAAC,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,KAAK;YACL,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;AAjDD,sBAiDC;AAgBD,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -3,32 +3,48 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import * as ComponentAPI from "./component.mjs";
|
|
4
4
|
import { Component } from "./component.mjs";
|
|
5
5
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
7
6
|
export class Embed extends APIResource {
|
|
8
7
|
constructor() {
|
|
9
8
|
super(...arguments);
|
|
10
9
|
this.component = new ComponentAPI.Component(this._client);
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Get theme CSS for embed
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* await client.v1.embed.getTheme({ token: 'token' });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
getTheme(query, options) {
|
|
20
|
+
return this._client.get('/api/v1/embed/theme', {
|
|
14
21
|
query,
|
|
15
22
|
...options,
|
|
16
23
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
24
|
});
|
|
18
25
|
}
|
|
19
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Health check endpoint
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.embed.healthCheck();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
healthCheck(options) {
|
|
20
35
|
return this._client.get('/api/v1/embed/health', {
|
|
21
36
|
...options,
|
|
22
37
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
38
|
});
|
|
24
39
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Verify embed token
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* await client.v1.embed.verify({ token: 'token' });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
32
48
|
verify(query, options) {
|
|
33
49
|
return this._client.get('/api/v1/embed/verify', {
|
|
34
50
|
query,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.mjs","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAoD;OAE/D,EAAE,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"embed.mjs","sourceRoot":"","sources":["../../../src/resources/v1/embed/embed.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAoD;OAE/D,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgD/E,CAAC;IA9CC;;;;;;;OAOG;IACH,QAAQ,CAAC,KAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,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,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,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,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,KAAK;YACL,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;AAgBD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Component, type ComponentRetrieveParams, type ComponentInteractParams } from "./component.mjs";
|
|
2
|
-
export { Embed, type
|
|
2
|
+
export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Component, type ComponentRetrieveParams, type ComponentInteractParams } from "./component.js";
|
|
2
|
-
export { Embed, type
|
|
2
|
+
export { Embed, type EmbedGetThemeParams, type EmbedVerifyParams } from "./embed.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE;OACzE,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAoG;AAA3F,sGAAA,SAAS,OAAA;AAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/embed/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAoG;AAA3F,sGAAA,SAAS,OAAA;AAClB,oCAAkF;AAAzE,8FAAA,KAAK,OAAA"}
|