@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as LoginAPI from "./login.js";
|
|
3
|
-
import { Login,
|
|
3
|
+
import { Login, LoginAuthenticateParams, LoginVerify2faParams, LoginVerifyBackupCodeParams } from "./login.js";
|
|
4
4
|
import * as Number2faAPI from "./number-2fa.js";
|
|
5
5
|
import { Number2fa, Number2faDisableParams, Number2faEnableParams, Number2faRegenerateBackupCodesParams, Number2faSendCodeParams } from "./number-2fa.js";
|
|
6
6
|
import * as OrganizationInvitesAPI from "./organization-invites.js";
|
|
@@ -11,22 +11,123 @@ export declare class Auth extends APIResource {
|
|
|
11
11
|
login: LoginAPI.Login;
|
|
12
12
|
number2fa: Number2faAPI.Number2fa;
|
|
13
13
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Get current user profile
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await client.v1.auth.getProfile();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
getProfile(options?: RequestOptions): APIPromise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Register new user
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.v1.auth.registerNewUser({
|
|
29
|
+
* email: 'user@example.com',
|
|
30
|
+
* name: 'John Doe',
|
|
31
|
+
* organizationName: 'Acme Corp',
|
|
32
|
+
* password: 'password123',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
registerNewUser(body: AuthRegisterNewUserParams, options?: RequestOptions): APIPromise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.v1.auth.registerOrganization();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
15
43
|
registerOrganization(options?: RequestOptions): APIPromise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Register new user with organization invite
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* await client.v1.auth.registerWithInvite();
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
16
52
|
registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Request password reset
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* await client.v1.auth.requestPasswordReset({
|
|
59
|
+
* email: 'user@example.com',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Reset password with token
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.v1.auth.resetPassword({
|
|
70
|
+
* token: 'reset-token-uuid',
|
|
71
|
+
* newPassword: 'newPassword123',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
17
75
|
resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void>;
|
|
18
|
-
|
|
19
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Verify password reset token
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* await client.v1.auth.verifyResetToken({ token: 'token' });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
verifyResetToken(query: AuthVerifyResetTokenParams, options?: RequestOptions): APIPromise<void>;
|
|
20
85
|
}
|
|
21
|
-
export interface
|
|
86
|
+
export interface AuthRegisterNewUserParams {
|
|
87
|
+
/**
|
|
88
|
+
* User email address
|
|
89
|
+
*/
|
|
90
|
+
email: string;
|
|
91
|
+
/**
|
|
92
|
+
* User full name
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
/**
|
|
96
|
+
* Organization name
|
|
97
|
+
*/
|
|
98
|
+
organizationName: string;
|
|
99
|
+
/**
|
|
100
|
+
* User password
|
|
101
|
+
*/
|
|
102
|
+
password: string;
|
|
22
103
|
}
|
|
23
104
|
export interface AuthRegisterWithInviteParams {
|
|
24
105
|
}
|
|
106
|
+
export interface AuthRequestPasswordResetParams {
|
|
107
|
+
/**
|
|
108
|
+
* Email address to send reset link
|
|
109
|
+
*/
|
|
110
|
+
email: string;
|
|
111
|
+
}
|
|
25
112
|
export interface AuthResetPasswordParams {
|
|
113
|
+
/**
|
|
114
|
+
* Password reset token from email
|
|
115
|
+
*/
|
|
116
|
+
token: string;
|
|
117
|
+
/**
|
|
118
|
+
* New password
|
|
119
|
+
*/
|
|
120
|
+
newPassword: string;
|
|
121
|
+
}
|
|
122
|
+
export interface AuthVerifyResetTokenParams {
|
|
123
|
+
/**
|
|
124
|
+
* Password reset token
|
|
125
|
+
*/
|
|
126
|
+
token: string;
|
|
26
127
|
}
|
|
27
128
|
export declare namespace Auth {
|
|
28
|
-
export { type
|
|
29
|
-
export { Login as Login, type
|
|
129
|
+
export { type AuthRegisterNewUserParams as AuthRegisterNewUserParams, type AuthRegisterWithInviteParams as AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams as AuthRequestPasswordResetParams, type AuthResetPasswordParams as AuthResetPasswordParams, type AuthVerifyResetTokenParams as AuthVerifyResetTokenParams, };
|
|
130
|
+
export { Login as Login, type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
|
|
30
131
|
export { Number2fa as Number2fa, type Number2faDisableParams as Number2faDisableParams, type Number2faEnableParams as Number2faEnableParams, type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams as Number2faSendCodeParams, };
|
|
31
132
|
export { OrganizationInvites as OrganizationInvites };
|
|
32
133
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE;OACrF,KAAK,YAAY;OACjB,EACL,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACrB,oCAAoC,EACpC,uBAAuB,EAC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AEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;CAAG;AAEhD,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvD"}
|
|
@@ -18,19 +18,60 @@ class Auth extends resource_1.APIResource {
|
|
|
18
18
|
this.number2fa = new Number2faAPI.Number2fa(this._client);
|
|
19
19
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Get current user profile
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* await client.v1.auth.getProfile();
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
getProfile(options) {
|
|
30
|
+
return this._client.get('/api/v1/auth/profile', {
|
|
31
|
+
...options,
|
|
32
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Register new user
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.v1.auth.registerNewUser({
|
|
41
|
+
* email: 'user@example.com',
|
|
42
|
+
* name: 'John Doe',
|
|
43
|
+
* organizationName: 'Acme Corp',
|
|
44
|
+
* password: 'password123',
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
registerNewUser(body, options) {
|
|
49
|
+
return this._client.post('/api/v1/auth/register', {
|
|
23
50
|
body,
|
|
24
51
|
...options,
|
|
25
52
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
26
53
|
});
|
|
27
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* await client.v1.auth.registerOrganization();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
28
61
|
registerOrganization(options) {
|
|
29
62
|
return this._client.post('/api/v1/auth/register-organization', {
|
|
30
63
|
...options,
|
|
31
64
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
32
65
|
});
|
|
33
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Register new user with organization invite
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* await client.v1.auth.registerWithInvite();
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
34
75
|
registerWithInvite(body, options) {
|
|
35
76
|
return this._client.post('/api/v1/auth/register-with-invite', {
|
|
36
77
|
body,
|
|
@@ -38,21 +79,52 @@ class Auth extends resource_1.APIResource {
|
|
|
38
79
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
39
80
|
});
|
|
40
81
|
}
|
|
41
|
-
|
|
42
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Request password reset
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* await client.v1.auth.requestPasswordReset({
|
|
88
|
+
* email: 'user@example.com',
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
requestPasswordReset(body, options) {
|
|
93
|
+
return this._client.post('/api/v1/auth/forgot-password', {
|
|
43
94
|
body,
|
|
44
95
|
...options,
|
|
45
96
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
46
97
|
});
|
|
47
98
|
}
|
|
48
|
-
|
|
49
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Reset password with token
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* await client.v1.auth.resetPassword({
|
|
105
|
+
* token: 'reset-token-uuid',
|
|
106
|
+
* newPassword: 'newPassword123',
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
resetPassword(body, options) {
|
|
111
|
+
return this._client.post('/api/v1/auth/reset-password', {
|
|
112
|
+
body,
|
|
50
113
|
...options,
|
|
51
114
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
52
115
|
});
|
|
53
116
|
}
|
|
54
|
-
|
|
55
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Verify password reset token
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* await client.v1.auth.verifyResetToken({ token: 'token' });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
verifyResetToken(query, options) {
|
|
126
|
+
return this._client.get('/api/v1/auth/verify-reset-token', {
|
|
127
|
+
query,
|
|
56
128
|
...options,
|
|
57
129
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
58
130
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAA4G;AAC5G,sEAA6C;AAC7C,gDAMsB;AACtB,0FAAiE;AACjE,oEAA6D;AAE7D,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,wBAAmB,GACjB,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuHjE,CAAC;IArHC;;;;;;;OAOG;IACH,UAAU,CAAC,OAAwB;QACjC,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;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,IAA+B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG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OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,gBAAgB,CAAC,KAAiC,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE;YACzD,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;AA3HD,oBA2HC;AAoDD,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC;AACnB,IAAI,CAAC,SAAS,GAAG,sBAAS,CAAC;AAC3B,IAAI,CAAC,mBAAmB,GAAG,0CAAmB,CAAC"}
|
|
@@ -14,19 +14,60 @@ export class Auth extends APIResource {
|
|
|
14
14
|
this.number2fa = new Number2faAPI.Number2fa(this._client);
|
|
15
15
|
this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Get current user profile
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.v1.auth.getProfile();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
getProfile(options) {
|
|
26
|
+
return this._client.get('/api/v1/auth/profile', {
|
|
27
|
+
...options,
|
|
28
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Register new user
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* await client.v1.auth.registerNewUser({
|
|
37
|
+
* email: 'user@example.com',
|
|
38
|
+
* name: 'John Doe',
|
|
39
|
+
* organizationName: 'Acme Corp',
|
|
40
|
+
* password: 'password123',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
registerNewUser(body, options) {
|
|
45
|
+
return this._client.post('/api/v1/auth/register', {
|
|
19
46
|
body,
|
|
20
47
|
...options,
|
|
21
48
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
49
|
});
|
|
23
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* await client.v1.auth.registerOrganization();
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
24
57
|
registerOrganization(options) {
|
|
25
58
|
return this._client.post('/api/v1/auth/register-organization', {
|
|
26
59
|
...options,
|
|
27
60
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
61
|
});
|
|
29
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Register new user with organization invite
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* await client.v1.auth.registerWithInvite();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
30
71
|
registerWithInvite(body, options) {
|
|
31
72
|
return this._client.post('/api/v1/auth/register-with-invite', {
|
|
32
73
|
body,
|
|
@@ -34,21 +75,52 @@ export class Auth extends APIResource {
|
|
|
34
75
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
35
76
|
});
|
|
36
77
|
}
|
|
37
|
-
|
|
38
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Request password reset
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* await client.v1.auth.requestPasswordReset({
|
|
84
|
+
* email: 'user@example.com',
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
requestPasswordReset(body, options) {
|
|
89
|
+
return this._client.post('/api/v1/auth/forgot-password', {
|
|
39
90
|
body,
|
|
40
91
|
...options,
|
|
41
92
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
93
|
});
|
|
43
94
|
}
|
|
44
|
-
|
|
45
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Reset password with token
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* await client.v1.auth.resetPassword({
|
|
101
|
+
* token: 'reset-token-uuid',
|
|
102
|
+
* newPassword: 'newPassword123',
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
resetPassword(body, options) {
|
|
107
|
+
return this._client.post('/api/v1/auth/reset-password', {
|
|
108
|
+
body,
|
|
46
109
|
...options,
|
|
47
110
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
48
111
|
});
|
|
49
112
|
}
|
|
50
|
-
|
|
51
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Verify password reset token
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* await client.v1.auth.verifyResetToken({ token: 'token' });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
verifyResetToken(query, options) {
|
|
122
|
+
return this._client.get('/api/v1/auth/verify-reset-token', {
|
|
123
|
+
query,
|
|
52
124
|
...options,
|
|
53
125
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
54
126
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAA8E;OACrF,KAAK,YAAY;OACjB,EACL,SAAS,GAKV;OACM,KAAK,sBAAsB;OAC3B,EAAE,mBAA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
|
-
export { Login, type
|
|
1
|
+
export { Auth, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, type AuthVerifyResetTokenParams, } from "./auth.mjs";
|
|
2
|
+
export { Login, type LoginAuthenticateParams, type LoginVerify2faParams, type LoginVerifyBackupCodeParams, } from "./login.mjs";
|
|
3
3
|
export { Number2fa, type Number2faDisableParams, type Number2faEnableParams, type Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams, } from "./number-2fa.mjs";
|
|
4
4
|
export { OrganizationInvites } from "./organization-invites.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oCAAoC,EACzC,KAAK,uBAAuB,GAC7B;OACM,EAAE,mBAAmB,EAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Auth, type
|
|
2
|
-
export { Login, type
|
|
1
|
+
export { Auth, type AuthRegisterNewUserParams, type AuthRegisterWithInviteParams, type AuthRequestPasswordResetParams, type AuthResetPasswordParams, type AuthVerifyResetTokenParams, } from "./auth.js";
|
|
2
|
+
export { Login, type LoginAuthenticateParams, type LoginVerify2faParams, type LoginVerifyBackupCodeParams, } from "./login.js";
|
|
3
3
|
export { Number2fa, type Number2faDisableParams, type Number2faEnableParams, type Number2faRegenerateBackupCodesParams, type Number2faSendCodeParams, } from "./number-2fa.js";
|
|
4
4
|
export { OrganizationInvites } from "./organization-invites.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC;OACM,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oCAAoC,EACzC,KAAK,uBAAuB,GAC7B;OACM,EAAE,mBAAmB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAOgB;AANd,4FAAA,IAAI,OAAA;AAON,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,kEAA6D;AAApD,2HAAA,mBAAmB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAML;OACM,EACL,KAAK,GAIN;OACM,EACL,SAAS,GAKV;OACM,EAAE,mBAAmB,EAAE"}
|
|
@@ -2,17 +2,74 @@ 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 Login extends APIResource {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* User login
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.v1.auth.login.authenticate({
|
|
11
|
+
* email: 'user@example.com',
|
|
12
|
+
* password: 'password123',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
authenticate(body: LoginAuthenticateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Verify 2FA code for login
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.v1.auth.login.verify2fa({
|
|
23
|
+
* code: '123456',
|
|
24
|
+
* email: 'user@example.com',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
6
28
|
verify2fa(body: LoginVerify2faParams, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Verify backup code for login
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.v1.auth.login.verifyBackupCode({
|
|
35
|
+
* backupCode: 'ABCD-EFGH-IJKL',
|
|
36
|
+
* email: 'user@example.com',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
7
40
|
verifyBackupCode(body: LoginVerifyBackupCodeParams, options?: RequestOptions): APIPromise<void>;
|
|
8
41
|
}
|
|
9
|
-
export interface
|
|
42
|
+
export interface LoginAuthenticateParams {
|
|
43
|
+
/**
|
|
44
|
+
* User email address
|
|
45
|
+
*/
|
|
46
|
+
email: string;
|
|
47
|
+
/**
|
|
48
|
+
* User password
|
|
49
|
+
*/
|
|
50
|
+
password: string;
|
|
10
51
|
}
|
|
11
52
|
export interface LoginVerify2faParams {
|
|
53
|
+
/**
|
|
54
|
+
* 6-digit verification code
|
|
55
|
+
*/
|
|
56
|
+
code: string;
|
|
57
|
+
/**
|
|
58
|
+
* User email address
|
|
59
|
+
*/
|
|
60
|
+
email: string;
|
|
12
61
|
}
|
|
13
62
|
export interface LoginVerifyBackupCodeParams {
|
|
63
|
+
/**
|
|
64
|
+
* Backup code
|
|
65
|
+
*/
|
|
66
|
+
backupCode: string;
|
|
67
|
+
/**
|
|
68
|
+
* User email address
|
|
69
|
+
*/
|
|
70
|
+
email: string;
|
|
14
71
|
}
|
|
15
72
|
export declare namespace Login {
|
|
16
|
-
export { type
|
|
73
|
+
export { type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
|
|
17
74
|
}
|
|
18
75
|
//# sourceMappingURL=login.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,
|
|
1
|
+
{"version":3,"file":"login.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQvF;;;;;;;;;;OAUG;IACH,SAAS,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQjF;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOhG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -2,17 +2,74 @@ 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 Login extends APIResource {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* User login
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.v1.auth.login.authenticate({
|
|
11
|
+
* email: 'user@example.com',
|
|
12
|
+
* password: 'password123',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
authenticate(body: LoginAuthenticateParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Verify 2FA code for login
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.v1.auth.login.verify2fa({
|
|
23
|
+
* code: '123456',
|
|
24
|
+
* email: 'user@example.com',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
6
28
|
verify2fa(body: LoginVerify2faParams, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Verify backup code for login
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.v1.auth.login.verifyBackupCode({
|
|
35
|
+
* backupCode: 'ABCD-EFGH-IJKL',
|
|
36
|
+
* email: 'user@example.com',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
7
40
|
verifyBackupCode(body: LoginVerifyBackupCodeParams, options?: RequestOptions): APIPromise<void>;
|
|
8
41
|
}
|
|
9
|
-
export interface
|
|
42
|
+
export interface LoginAuthenticateParams {
|
|
43
|
+
/**
|
|
44
|
+
* User email address
|
|
45
|
+
*/
|
|
46
|
+
email: string;
|
|
47
|
+
/**
|
|
48
|
+
* User password
|
|
49
|
+
*/
|
|
50
|
+
password: string;
|
|
10
51
|
}
|
|
11
52
|
export interface LoginVerify2faParams {
|
|
53
|
+
/**
|
|
54
|
+
* 6-digit verification code
|
|
55
|
+
*/
|
|
56
|
+
code: string;
|
|
57
|
+
/**
|
|
58
|
+
* User email address
|
|
59
|
+
*/
|
|
60
|
+
email: string;
|
|
12
61
|
}
|
|
13
62
|
export interface LoginVerifyBackupCodeParams {
|
|
63
|
+
/**
|
|
64
|
+
* Backup code
|
|
65
|
+
*/
|
|
66
|
+
backupCode: string;
|
|
67
|
+
/**
|
|
68
|
+
* User email address
|
|
69
|
+
*/
|
|
70
|
+
email: string;
|
|
14
71
|
}
|
|
15
72
|
export declare namespace Login {
|
|
16
|
-
export { type
|
|
73
|
+
export { type LoginAuthenticateParams as LoginAuthenticateParams, type LoginVerify2faParams as LoginVerify2faParams, type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams, };
|
|
17
74
|
}
|
|
18
75
|
//# sourceMappingURL=login.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/login.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQvF;;;;;;;;;;OAUG;IACH,SAAS,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQjF;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOhG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|