@studyfetch/sdk 0.1.0-alpha.1
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 +15 -0
- package/LICENSE +201 -0
- package/README.md +401 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +177 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +177 -0
- package/client.d.ts.map +1 -0
- package/client.js +448 -0
- package/client.js.map +1 -0
- package/client.mjs +444 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- 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/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +139 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -0
- package/resources/v1/admin/admin.d.mts +27 -0
- package/resources/v1/admin/admin.d.mts.map +1 -0
- package/resources/v1/admin/admin.d.ts +27 -0
- package/resources/v1/admin/admin.d.ts.map +1 -0
- package/resources/v1/admin/admin.js +38 -0
- package/resources/v1/admin/admin.js.map +1 -0
- package/resources/v1/admin/admin.mjs +33 -0
- package/resources/v1/admin/admin.mjs.map +1 -0
- package/resources/v1/admin/index.d.mts +5 -0
- package/resources/v1/admin/index.d.mts.map +1 -0
- package/resources/v1/admin/index.d.ts +5 -0
- package/resources/v1/admin/index.d.ts.map +1 -0
- package/resources/v1/admin/index.js +13 -0
- package/resources/v1/admin/index.js.map +1 -0
- package/resources/v1/admin/index.mjs +6 -0
- package/resources/v1/admin/index.mjs.map +1 -0
- package/resources/v1/admin/models.d.mts +13 -0
- package/resources/v1/admin/models.d.mts.map +1 -0
- package/resources/v1/admin/models.d.ts +13 -0
- package/resources/v1/admin/models.d.ts.map +1 -0
- package/resources/v1/admin/models.js +22 -0
- package/resources/v1/admin/models.js.map +1 -0
- package/resources/v1/admin/models.mjs +18 -0
- package/resources/v1/admin/models.mjs.map +1 -0
- package/resources/v1/admin/organization-invites.d.mts +41 -0
- package/resources/v1/admin/organization-invites.d.mts.map +1 -0
- package/resources/v1/admin/organization-invites.d.ts +41 -0
- package/resources/v1/admin/organization-invites.d.ts.map +1 -0
- package/resources/v1/admin/organization-invites.js +62 -0
- package/resources/v1/admin/organization-invites.js.map +1 -0
- package/resources/v1/admin/organization-invites.mjs +58 -0
- package/resources/v1/admin/organization-invites.mjs.map +1 -0
- package/resources/v1/admin/organizations/index.d.mts +3 -0
- package/resources/v1/admin/organizations/index.d.mts.map +1 -0
- package/resources/v1/admin/organizations/index.d.ts +3 -0
- package/resources/v1/admin/organizations/index.d.ts.map +1 -0
- package/resources/v1/admin/organizations/index.js +9 -0
- package/resources/v1/admin/organizations/index.js.map +1 -0
- package/resources/v1/admin/organizations/index.mjs +4 -0
- package/resources/v1/admin/organizations/index.mjs.map +1 -0
- package/resources/v1/admin/organizations/models/excluded.d.mts +24 -0
- package/resources/v1/admin/organizations/models/excluded.d.mts.map +1 -0
- package/resources/v1/admin/organizations/models/excluded.d.ts +24 -0
- package/resources/v1/admin/organizations/models/excluded.d.ts.map +1 -0
- package/resources/v1/admin/organizations/models/excluded.js +39 -0
- package/resources/v1/admin/organizations/models/excluded.js.map +1 -0
- package/resources/v1/admin/organizations/models/excluded.mjs +35 -0
- package/resources/v1/admin/organizations/models/excluded.mjs.map +1 -0
- package/resources/v1/admin/organizations/models/index.d.mts +3 -0
- package/resources/v1/admin/organizations/models/index.d.mts.map +1 -0
- package/resources/v1/admin/organizations/models/index.d.ts +3 -0
- package/resources/v1/admin/organizations/models/index.d.ts.map +1 -0
- package/resources/v1/admin/organizations/models/index.js +9 -0
- package/resources/v1/admin/organizations/models/index.js.map +1 -0
- package/resources/v1/admin/organizations/models/index.mjs +4 -0
- package/resources/v1/admin/organizations/models/index.mjs.map +1 -0
- package/resources/v1/admin/organizations/models/models.d.mts +10 -0
- package/resources/v1/admin/organizations/models/models.d.mts.map +1 -0
- package/resources/v1/admin/organizations/models/models.d.ts +10 -0
- package/resources/v1/admin/organizations/models/models.d.ts.map +1 -0
- package/resources/v1/admin/organizations/models/models.js +17 -0
- package/resources/v1/admin/organizations/models/models.js.map +1 -0
- package/resources/v1/admin/organizations/models/models.mjs +12 -0
- package/resources/v1/admin/organizations/models/models.mjs.map +1 -0
- package/resources/v1/admin/organizations/models.d.mts +2 -0
- package/resources/v1/admin/organizations/models.d.mts.map +1 -0
- package/resources/v1/admin/organizations/models.d.ts +2 -0
- package/resources/v1/admin/organizations/models.d.ts.map +1 -0
- package/resources/v1/admin/organizations/models.js +6 -0
- package/resources/v1/admin/organizations/models.js.map +1 -0
- package/resources/v1/admin/organizations/models.mjs +3 -0
- package/resources/v1/admin/organizations/models.mjs.map +1 -0
- package/resources/v1/admin/organizations/organizations.d.mts +19 -0
- package/resources/v1/admin/organizations/organizations.d.mts.map +1 -0
- package/resources/v1/admin/organizations/organizations.d.ts +19 -0
- package/resources/v1/admin/organizations/organizations.d.ts.map +1 -0
- package/resources/v1/admin/organizations/organizations.js +30 -0
- package/resources/v1/admin/organizations/organizations.js.map +1 -0
- package/resources/v1/admin/organizations/organizations.mjs +25 -0
- package/resources/v1/admin/organizations/organizations.mjs.map +1 -0
- package/resources/v1/admin/organizations.d.mts +2 -0
- package/resources/v1/admin/organizations.d.mts.map +1 -0
- package/resources/v1/admin/organizations.d.ts +2 -0
- package/resources/v1/admin/organizations.d.ts.map +1 -0
- package/resources/v1/admin/organizations.js +6 -0
- package/resources/v1/admin/organizations.js.map +1 -0
- package/resources/v1/admin/organizations.mjs +3 -0
- package/resources/v1/admin/organizations.mjs.map +1 -0
- package/resources/v1/admin.d.mts +2 -0
- package/resources/v1/admin.d.mts.map +1 -0
- package/resources/v1/admin.d.ts +2 -0
- package/resources/v1/admin.d.ts.map +1 -0
- package/resources/v1/admin.js +6 -0
- package/resources/v1/admin.js.map +1 -0
- package/resources/v1/admin.mjs +3 -0
- package/resources/v1/admin.mjs.map +1 -0
- package/resources/v1/audio-recaps/audio-recaps.d.mts +44 -0
- package/resources/v1/audio-recaps/audio-recaps.d.mts.map +1 -0
- package/resources/v1/audio-recaps/audio-recaps.d.ts +44 -0
- package/resources/v1/audio-recaps/audio-recaps.d.ts.map +1 -0
- package/resources/v1/audio-recaps/audio-recaps.js +63 -0
- package/resources/v1/audio-recaps/audio-recaps.js.map +1 -0
- package/resources/v1/audio-recaps/audio-recaps.mjs +58 -0
- package/resources/v1/audio-recaps/audio-recaps.mjs.map +1 -0
- package/resources/v1/audio-recaps/index.d.mts +3 -0
- package/resources/v1/audio-recaps/index.d.mts.map +1 -0
- package/resources/v1/audio-recaps/index.d.ts +3 -0
- package/resources/v1/audio-recaps/index.d.ts.map +1 -0
- package/resources/v1/audio-recaps/index.js +9 -0
- package/resources/v1/audio-recaps/index.js.map +1 -0
- package/resources/v1/audio-recaps/index.mjs +4 -0
- package/resources/v1/audio-recaps/index.mjs.map +1 -0
- package/resources/v1/audio-recaps/sections.d.mts +35 -0
- package/resources/v1/audio-recaps/sections.d.mts.map +1 -0
- package/resources/v1/audio-recaps/sections.d.ts +35 -0
- package/resources/v1/audio-recaps/sections.d.ts.map +1 -0
- package/resources/v1/audio-recaps/sections.js +42 -0
- package/resources/v1/audio-recaps/sections.js.map +1 -0
- package/resources/v1/audio-recaps/sections.mjs +38 -0
- package/resources/v1/audio-recaps/sections.mjs.map +1 -0
- package/resources/v1/audio-recaps.d.mts +2 -0
- package/resources/v1/audio-recaps.d.mts.map +1 -0
- package/resources/v1/audio-recaps.d.ts +2 -0
- package/resources/v1/audio-recaps.d.ts.map +1 -0
- package/resources/v1/audio-recaps.js +6 -0
- package/resources/v1/audio-recaps.js.map +1 -0
- package/resources/v1/audio-recaps.mjs +3 -0
- package/resources/v1/audio-recaps.mjs.map +1 -0
- package/resources/v1/auth/auth.d.mts +128 -0
- package/resources/v1/auth/auth.d.mts.map +1 -0
- package/resources/v1/auth/auth.d.ts +128 -0
- package/resources/v1/auth/auth.d.ts.map +1 -0
- package/resources/v1/auth/auth.js +136 -0
- package/resources/v1/auth/auth.js.map +1 -0
- package/resources/v1/auth/auth.mjs +131 -0
- package/resources/v1/auth/auth.mjs.map +1 -0
- package/resources/v1/auth/index.d.mts +5 -0
- package/resources/v1/auth/index.d.mts.map +1 -0
- package/resources/v1/auth/index.d.ts +5 -0
- package/resources/v1/auth/index.d.ts.map +1 -0
- package/resources/v1/auth/index.js +13 -0
- package/resources/v1/auth/index.js.map +1 -0
- package/resources/v1/auth/index.mjs +6 -0
- package/resources/v1/auth/index.mjs.map +1 -0
- package/resources/v1/auth/login.d.mts +75 -0
- package/resources/v1/auth/login.d.mts.map +1 -0
- package/resources/v1/auth/login.d.ts +75 -0
- package/resources/v1/auth/login.d.ts.map +1 -0
- package/resources/v1/auth/login.js +64 -0
- package/resources/v1/auth/login.js.map +1 -0
- package/resources/v1/auth/login.mjs +60 -0
- package/resources/v1/auth/login.mjs.map +1 -0
- package/resources/v1/auth/number-2fa.d.mts +84 -0
- package/resources/v1/auth/number-2fa.d.mts.map +1 -0
- package/resources/v1/auth/number-2fa.d.ts +84 -0
- package/resources/v1/auth/number-2fa.d.ts.map +1 -0
- package/resources/v1/auth/number-2fa.js +90 -0
- package/resources/v1/auth/number-2fa.js.map +1 -0
- package/resources/v1/auth/number-2fa.mjs +86 -0
- package/resources/v1/auth/number-2fa.mjs.map +1 -0
- package/resources/v1/auth/organization-invites.d.mts +13 -0
- package/resources/v1/auth/organization-invites.d.mts.map +1 -0
- package/resources/v1/auth/organization-invites.d.ts +13 -0
- package/resources/v1/auth/organization-invites.d.ts.map +1 -0
- package/resources/v1/auth/organization-invites.js +23 -0
- package/resources/v1/auth/organization-invites.js.map +1 -0
- package/resources/v1/auth/organization-invites.mjs +19 -0
- package/resources/v1/auth/organization-invites.mjs.map +1 -0
- package/resources/v1/auth.d.mts +2 -0
- package/resources/v1/auth.d.mts.map +1 -0
- package/resources/v1/auth.d.ts +2 -0
- package/resources/v1/auth.d.ts.map +1 -0
- package/resources/v1/auth.js +6 -0
- package/resources/v1/auth.js.map +1 -0
- package/resources/v1/auth.mjs +3 -0
- package/resources/v1/auth.mjs.map +1 -0
- package/resources/v1/chat/chat.d.mts +156 -0
- package/resources/v1/chat/chat.d.mts.map +1 -0
- package/resources/v1/chat/chat.d.ts +156 -0
- package/resources/v1/chat/chat.d.ts.map +1 -0
- package/resources/v1/chat/chat.js +99 -0
- package/resources/v1/chat/chat.js.map +1 -0
- package/resources/v1/chat/chat.mjs +94 -0
- package/resources/v1/chat/chat.mjs.map +1 -0
- package/resources/v1/chat/index.d.mts +4 -0
- package/resources/v1/chat/index.d.mts.map +1 -0
- package/resources/v1/chat/index.d.ts +4 -0
- package/resources/v1/chat/index.d.ts.map +1 -0
- package/resources/v1/chat/index.js +11 -0
- package/resources/v1/chat/index.js.map +1 -0
- package/resources/v1/chat/index.mjs +5 -0
- package/resources/v1/chat/index.mjs.map +1 -0
- package/resources/v1/chat/sessions.d.mts +28 -0
- package/resources/v1/chat/sessions.d.mts.map +1 -0
- package/resources/v1/chat/sessions.d.ts +28 -0
- package/resources/v1/chat/sessions.d.ts.map +1 -0
- package/resources/v1/chat/sessions.js +38 -0
- package/resources/v1/chat/sessions.js.map +1 -0
- package/resources/v1/chat/sessions.mjs +34 -0
- package/resources/v1/chat/sessions.mjs.map +1 -0
- package/resources/v1/chat/test.d.mts +20 -0
- package/resources/v1/chat/test.d.mts.map +1 -0
- package/resources/v1/chat/test.d.ts +20 -0
- package/resources/v1/chat/test.d.ts.map +1 -0
- package/resources/v1/chat/test.js +34 -0
- package/resources/v1/chat/test.js.map +1 -0
- package/resources/v1/chat/test.mjs +30 -0
- package/resources/v1/chat/test.mjs.map +1 -0
- package/resources/v1/chat.d.mts +2 -0
- package/resources/v1/chat.d.mts.map +1 -0
- package/resources/v1/chat.d.ts +2 -0
- package/resources/v1/chat.d.ts.map +1 -0
- package/resources/v1/chat.js +6 -0
- package/resources/v1/chat.js.map +1 -0
- package/resources/v1/chat.mjs +3 -0
- package/resources/v1/chat.mjs.map +1 -0
- package/resources/v1/components.d.mts +253 -0
- package/resources/v1/components.d.mts.map +1 -0
- package/resources/v1/components.d.ts +253 -0
- package/resources/v1/components.d.ts.map +1 -0
- package/resources/v1/components.js +140 -0
- package/resources/v1/components.js.map +1 -0
- package/resources/v1/components.mjs +136 -0
- package/resources/v1/components.mjs.map +1 -0
- package/resources/v1/embed/component.d.mts +48 -0
- package/resources/v1/embed/component.d.mts.map +1 -0
- package/resources/v1/embed/component.d.ts +48 -0
- package/resources/v1/embed/component.d.ts.map +1 -0
- package/resources/v1/embed/component.js +48 -0
- package/resources/v1/embed/component.js.map +1 -0
- package/resources/v1/embed/component.mjs +44 -0
- package/resources/v1/embed/component.mjs.map +1 -0
- package/resources/v1/embed/embed.d.mts +52 -0
- package/resources/v1/embed/embed.d.mts.map +1 -0
- package/resources/v1/embed/embed.d.ts +52 -0
- package/resources/v1/embed/embed.d.ts.map +1 -0
- package/resources/v1/embed/embed.js +62 -0
- package/resources/v1/embed/embed.js.map +1 -0
- package/resources/v1/embed/embed.mjs +57 -0
- package/resources/v1/embed/embed.mjs.map +1 -0
- package/resources/v1/embed/index.d.mts +3 -0
- package/resources/v1/embed/index.d.mts.map +1 -0
- package/resources/v1/embed/index.d.ts +3 -0
- package/resources/v1/embed/index.d.ts.map +1 -0
- package/resources/v1/embed/index.js +9 -0
- package/resources/v1/embed/index.js.map +1 -0
- package/resources/v1/embed/index.mjs +4 -0
- package/resources/v1/embed/index.mjs.map +1 -0
- package/resources/v1/embed.d.mts +2 -0
- package/resources/v1/embed.d.mts.map +1 -0
- package/resources/v1/embed.d.ts +2 -0
- package/resources/v1/embed.d.ts.map +1 -0
- package/resources/v1/embed.js +6 -0
- package/resources/v1/embed.js.map +1 -0
- package/resources/v1/embed.mjs +3 -0
- package/resources/v1/embed.mjs.map +1 -0
- package/resources/v1/explainers.d.mts +32 -0
- package/resources/v1/explainers.d.mts.map +1 -0
- package/resources/v1/explainers.d.ts +32 -0
- package/resources/v1/explainers.d.ts.map +1 -0
- package/resources/v1/explainers.js +41 -0
- package/resources/v1/explainers.js.map +1 -0
- package/resources/v1/explainers.mjs +37 -0
- package/resources/v1/explainers.mjs.map +1 -0
- package/resources/v1/flashcards.d.mts +257 -0
- package/resources/v1/flashcards.d.mts.map +1 -0
- package/resources/v1/flashcards.d.ts +257 -0
- package/resources/v1/flashcards.d.ts.map +1 -0
- package/resources/v1/flashcards.js +113 -0
- package/resources/v1/flashcards.js.map +1 -0
- package/resources/v1/flashcards.mjs +109 -0
- package/resources/v1/flashcards.mjs.map +1 -0
- package/resources/v1/folders.d.mts +103 -0
- package/resources/v1/folders.d.mts.map +1 -0
- package/resources/v1/folders.d.ts +103 -0
- package/resources/v1/folders.d.ts.map +1 -0
- package/resources/v1/folders.js +122 -0
- package/resources/v1/folders.js.map +1 -0
- package/resources/v1/folders.mjs +118 -0
- package/resources/v1/folders.mjs.map +1 -0
- package/resources/v1/index.d.mts +17 -0
- package/resources/v1/index.d.mts.map +1 -0
- package/resources/v1/index.d.ts +17 -0
- package/resources/v1/index.d.ts.map +1 -0
- package/resources/v1/index.js +37 -0
- package/resources/v1/index.js.map +1 -0
- package/resources/v1/index.mjs +18 -0
- package/resources/v1/index.mjs.map +1 -0
- package/resources/v1/materials/bulk.d.mts +13 -0
- package/resources/v1/materials/bulk.d.mts.map +1 -0
- package/resources/v1/materials/bulk.d.ts +13 -0
- package/resources/v1/materials/bulk.d.ts.map +1 -0
- package/resources/v1/materials/bulk.js +22 -0
- package/resources/v1/materials/bulk.js.map +1 -0
- package/resources/v1/materials/bulk.mjs +18 -0
- package/resources/v1/materials/bulk.mjs.map +1 -0
- package/resources/v1/materials/index.d.mts +5 -0
- package/resources/v1/materials/index.d.mts.map +1 -0
- package/resources/v1/materials/index.d.ts +5 -0
- package/resources/v1/materials/index.d.ts.map +1 -0
- package/resources/v1/materials/index.js +13 -0
- package/resources/v1/materials/index.js.map +1 -0
- package/resources/v1/materials/index.mjs +6 -0
- package/resources/v1/materials/index.mjs.map +1 -0
- package/resources/v1/materials/materials.d.mts +157 -0
- package/resources/v1/materials/materials.d.mts.map +1 -0
- package/resources/v1/materials/materials.d.ts +157 -0
- package/resources/v1/materials/materials.d.ts.map +1 -0
- package/resources/v1/materials/materials.js +175 -0
- package/resources/v1/materials/materials.js.map +1 -0
- package/resources/v1/materials/materials.mjs +170 -0
- package/resources/v1/materials/materials.mjs.map +1 -0
- package/resources/v1/materials/test.d.mts +34 -0
- package/resources/v1/materials/test.d.mts.map +1 -0
- package/resources/v1/materials/test.d.ts +34 -0
- package/resources/v1/materials/test.d.ts.map +1 -0
- package/resources/v1/materials/test.js +58 -0
- package/resources/v1/materials/test.js.map +1 -0
- package/resources/v1/materials/test.mjs +54 -0
- package/resources/v1/materials/test.mjs.map +1 -0
- package/resources/v1/materials/upload.d.mts +73 -0
- package/resources/v1/materials/upload.d.mts.map +1 -0
- package/resources/v1/materials/upload.d.ts +73 -0
- package/resources/v1/materials/upload.d.ts.map +1 -0
- package/resources/v1/materials/upload.js +67 -0
- package/resources/v1/materials/upload.js.map +1 -0
- package/resources/v1/materials/upload.mjs +63 -0
- package/resources/v1/materials/upload.mjs.map +1 -0
- package/resources/v1/materials.d.mts +2 -0
- package/resources/v1/materials.d.mts.map +1 -0
- package/resources/v1/materials.d.ts +2 -0
- package/resources/v1/materials.d.ts.map +1 -0
- package/resources/v1/materials.js +6 -0
- package/resources/v1/materials.js.map +1 -0
- package/resources/v1/materials.mjs +3 -0
- package/resources/v1/materials.mjs.map +1 -0
- package/resources/v1/organizations/api-keys.d.mts +40 -0
- package/resources/v1/organizations/api-keys.d.mts.map +1 -0
- package/resources/v1/organizations/api-keys.d.ts +40 -0
- package/resources/v1/organizations/api-keys.d.ts.map +1 -0
- package/resources/v1/organizations/api-keys.js +52 -0
- package/resources/v1/organizations/api-keys.js.map +1 -0
- package/resources/v1/organizations/api-keys.mjs +48 -0
- package/resources/v1/organizations/api-keys.mjs.map +1 -0
- package/resources/v1/organizations/index.d.mts +8 -0
- package/resources/v1/organizations/index.d.mts.map +1 -0
- package/resources/v1/organizations/index.d.ts +8 -0
- package/resources/v1/organizations/index.d.ts.map +1 -0
- package/resources/v1/organizations/index.js +19 -0
- package/resources/v1/organizations/index.js.map +1 -0
- package/resources/v1/organizations/index.mjs +9 -0
- package/resources/v1/organizations/index.mjs.map +1 -0
- package/resources/v1/organizations/logo/index.d.mts +3 -0
- package/resources/v1/organizations/logo/index.d.mts.map +1 -0
- package/resources/v1/organizations/logo/index.d.ts +3 -0
- package/resources/v1/organizations/logo/index.d.ts.map +1 -0
- package/resources/v1/organizations/logo/index.js +9 -0
- package/resources/v1/organizations/logo/index.js.map +1 -0
- package/resources/v1/organizations/logo/index.mjs +4 -0
- package/resources/v1/organizations/logo/index.mjs.map +1 -0
- package/resources/v1/organizations/logo/logo.d.mts +19 -0
- package/resources/v1/organizations/logo/logo.d.mts.map +1 -0
- package/resources/v1/organizations/logo/logo.d.ts +19 -0
- package/resources/v1/organizations/logo/logo.d.ts.map +1 -0
- package/resources/v1/organizations/logo/logo.js +30 -0
- package/resources/v1/organizations/logo/logo.js.map +1 -0
- package/resources/v1/organizations/logo/logo.mjs +25 -0
- package/resources/v1/organizations/logo/logo.mjs.map +1 -0
- package/resources/v1/organizations/logo/upload.d.mts +20 -0
- package/resources/v1/organizations/logo/upload.d.mts.map +1 -0
- package/resources/v1/organizations/logo/upload.d.ts +20 -0
- package/resources/v1/organizations/logo/upload.d.ts.map +1 -0
- package/resources/v1/organizations/logo/upload.js +34 -0
- package/resources/v1/organizations/logo/upload.js.map +1 -0
- package/resources/v1/organizations/logo/upload.mjs +30 -0
- package/resources/v1/organizations/logo/upload.mjs.map +1 -0
- package/resources/v1/organizations/logo.d.mts +2 -0
- package/resources/v1/organizations/logo.d.mts.map +1 -0
- package/resources/v1/organizations/logo.d.ts +2 -0
- package/resources/v1/organizations/logo.d.ts.map +1 -0
- package/resources/v1/organizations/logo.js +6 -0
- package/resources/v1/organizations/logo.js.map +1 -0
- package/resources/v1/organizations/logo.mjs +3 -0
- package/resources/v1/organizations/logo.mjs.map +1 -0
- package/resources/v1/organizations/organizations.d.mts +49 -0
- package/resources/v1/organizations/organizations.d.mts.map +1 -0
- package/resources/v1/organizations/organizations.d.ts +49 -0
- package/resources/v1/organizations/organizations.d.ts.map +1 -0
- package/resources/v1/organizations/organizations.js +64 -0
- package/resources/v1/organizations/organizations.js.map +1 -0
- package/resources/v1/organizations/organizations.mjs +59 -0
- package/resources/v1/organizations/organizations.mjs.map +1 -0
- package/resources/v1/organizations/profile/index.d.mts +4 -0
- package/resources/v1/organizations/profile/index.d.mts.map +1 -0
- package/resources/v1/organizations/profile/index.d.ts +4 -0
- package/resources/v1/organizations/profile/index.d.ts.map +1 -0
- package/resources/v1/organizations/profile/index.js +11 -0
- package/resources/v1/organizations/profile/index.js.map +1 -0
- package/resources/v1/organizations/profile/index.mjs +5 -0
- package/resources/v1/organizations/profile/index.mjs.map +1 -0
- package/resources/v1/organizations/profile/models.d.mts +13 -0
- package/resources/v1/organizations/profile/models.d.mts.map +1 -0
- package/resources/v1/organizations/profile/models.d.ts +13 -0
- package/resources/v1/organizations/profile/models.d.ts.map +1 -0
- package/resources/v1/organizations/profile/models.js +22 -0
- package/resources/v1/organizations/profile/models.js.map +1 -0
- package/resources/v1/organizations/profile/models.mjs +18 -0
- package/resources/v1/organizations/profile/models.mjs.map +1 -0
- package/resources/v1/organizations/profile/profile.d.mts +36 -0
- package/resources/v1/organizations/profile/profile.d.mts.map +1 -0
- package/resources/v1/organizations/profile/profile.d.ts +36 -0
- package/resources/v1/organizations/profile/profile.d.ts.map +1 -0
- package/resources/v1/organizations/profile/profile.js +49 -0
- package/resources/v1/organizations/profile/profile.js.map +1 -0
- package/resources/v1/organizations/profile/profile.mjs +44 -0
- package/resources/v1/organizations/profile/profile.mjs.map +1 -0
- package/resources/v1/organizations/profile/team.d.mts +61 -0
- package/resources/v1/organizations/profile/team.d.mts.map +1 -0
- package/resources/v1/organizations/profile/team.d.ts +61 -0
- package/resources/v1/organizations/profile/team.d.ts.map +1 -0
- package/resources/v1/organizations/profile/team.js +89 -0
- package/resources/v1/organizations/profile/team.js.map +1 -0
- package/resources/v1/organizations/profile/team.mjs +85 -0
- package/resources/v1/organizations/profile/team.mjs.map +1 -0
- package/resources/v1/organizations/profile.d.mts +2 -0
- package/resources/v1/organizations/profile.d.mts.map +1 -0
- package/resources/v1/organizations/profile.d.ts +2 -0
- package/resources/v1/organizations/profile.d.ts.map +1 -0
- package/resources/v1/organizations/profile.js +6 -0
- package/resources/v1/organizations/profile.js.map +1 -0
- package/resources/v1/organizations/profile.mjs +3 -0
- package/resources/v1/organizations/profile.mjs.map +1 -0
- package/resources/v1/organizations/team/index.d.mts +3 -0
- package/resources/v1/organizations/team/index.d.mts.map +1 -0
- package/resources/v1/organizations/team/index.d.ts +3 -0
- package/resources/v1/organizations/team/index.d.ts.map +1 -0
- package/resources/v1/organizations/team/index.js +9 -0
- package/resources/v1/organizations/team/index.js.map +1 -0
- package/resources/v1/organizations/team/index.mjs +4 -0
- package/resources/v1/organizations/team/index.mjs.map +1 -0
- package/resources/v1/organizations/team/invite.d.mts +27 -0
- package/resources/v1/organizations/team/invite.d.mts.map +1 -0
- package/resources/v1/organizations/team/invite.d.ts +27 -0
- package/resources/v1/organizations/team/invite.d.ts.map +1 -0
- package/resources/v1/organizations/team/invite.js +38 -0
- package/resources/v1/organizations/team/invite.js.map +1 -0
- package/resources/v1/organizations/team/invite.mjs +34 -0
- package/resources/v1/organizations/team/invite.mjs.map +1 -0
- package/resources/v1/organizations/team/team.d.mts +72 -0
- package/resources/v1/organizations/team/team.d.mts.map +1 -0
- package/resources/v1/organizations/team/team.d.ts +72 -0
- package/resources/v1/organizations/team/team.d.ts.map +1 -0
- package/resources/v1/organizations/team/team.js +102 -0
- package/resources/v1/organizations/team/team.js.map +1 -0
- package/resources/v1/organizations/team/team.mjs +97 -0
- package/resources/v1/organizations/team/team.mjs.map +1 -0
- package/resources/v1/organizations/team.d.mts +2 -0
- package/resources/v1/organizations/team.d.mts.map +1 -0
- package/resources/v1/organizations/team.d.ts +2 -0
- package/resources/v1/organizations/team.d.ts.map +1 -0
- package/resources/v1/organizations/team.js +6 -0
- package/resources/v1/organizations/team.js.map +1 -0
- package/resources/v1/organizations/team.mjs +3 -0
- package/resources/v1/organizations/team.mjs.map +1 -0
- package/resources/v1/organizations/theme.d.mts +20 -0
- package/resources/v1/organizations/theme.d.mts.map +1 -0
- package/resources/v1/organizations/theme.d.ts +20 -0
- package/resources/v1/organizations/theme.d.ts.map +1 -0
- package/resources/v1/organizations/theme.js +34 -0
- package/resources/v1/organizations/theme.js.map +1 -0
- package/resources/v1/organizations/theme.mjs +30 -0
- package/resources/v1/organizations/theme.mjs.map +1 -0
- package/resources/v1/organizations/usage.d.mts +15 -0
- package/resources/v1/organizations/usage.d.mts.map +1 -0
- package/resources/v1/organizations/usage.d.ts +15 -0
- package/resources/v1/organizations/usage.d.ts.map +1 -0
- package/resources/v1/organizations/usage.js +25 -0
- package/resources/v1/organizations/usage.js.map +1 -0
- package/resources/v1/organizations/usage.mjs +21 -0
- package/resources/v1/organizations/usage.mjs.map +1 -0
- package/resources/v1/organizations.d.mts +2 -0
- package/resources/v1/organizations.d.mts.map +1 -0
- package/resources/v1/organizations.d.ts +2 -0
- package/resources/v1/organizations.d.ts.map +1 -0
- package/resources/v1/organizations.js +6 -0
- package/resources/v1/organizations.js.map +1 -0
- package/resources/v1/organizations.mjs +3 -0
- package/resources/v1/organizations.mjs.map +1 -0
- package/resources/v1/scenarios/component.d.mts +41 -0
- package/resources/v1/scenarios/component.d.mts.map +1 -0
- package/resources/v1/scenarios/component.d.ts +41 -0
- package/resources/v1/scenarios/component.d.ts.map +1 -0
- package/resources/v1/scenarios/component.js +57 -0
- package/resources/v1/scenarios/component.js.map +1 -0
- package/resources/v1/scenarios/component.mjs +53 -0
- package/resources/v1/scenarios/component.mjs.map +1 -0
- package/resources/v1/scenarios/index.d.mts +5 -0
- package/resources/v1/scenarios/index.d.mts.map +1 -0
- package/resources/v1/scenarios/index.d.ts +5 -0
- package/resources/v1/scenarios/index.d.ts.map +1 -0
- package/resources/v1/scenarios/index.js +13 -0
- package/resources/v1/scenarios/index.js.map +1 -0
- package/resources/v1/scenarios/index.mjs +6 -0
- package/resources/v1/scenarios/index.mjs.map +1 -0
- package/resources/v1/scenarios/scenarios.d.mts +86 -0
- package/resources/v1/scenarios/scenarios.d.mts.map +1 -0
- package/resources/v1/scenarios/scenarios.d.ts +86 -0
- package/resources/v1/scenarios/scenarios.d.ts.map +1 -0
- package/resources/v1/scenarios/scenarios.js +125 -0
- package/resources/v1/scenarios/scenarios.js.map +1 -0
- package/resources/v1/scenarios/scenarios.mjs +120 -0
- package/resources/v1/scenarios/scenarios.mjs.map +1 -0
- package/resources/v1/scenarios/sessions.d.mts +20 -0
- package/resources/v1/scenarios/sessions.d.mts.map +1 -0
- package/resources/v1/scenarios/sessions.d.ts +20 -0
- package/resources/v1/scenarios/sessions.d.ts.map +1 -0
- package/resources/v1/scenarios/sessions.js +35 -0
- package/resources/v1/scenarios/sessions.js.map +1 -0
- package/resources/v1/scenarios/sessions.mjs +31 -0
- package/resources/v1/scenarios/sessions.mjs.map +1 -0
- package/resources/v1/scenarios/submissions/index.d.mts +3 -0
- package/resources/v1/scenarios/submissions/index.d.mts.map +1 -0
- package/resources/v1/scenarios/submissions/index.d.ts +3 -0
- package/resources/v1/scenarios/submissions/index.d.ts.map +1 -0
- package/resources/v1/scenarios/submissions/index.js +9 -0
- package/resources/v1/scenarios/submissions/index.js.map +1 -0
- package/resources/v1/scenarios/submissions/index.mjs +4 -0
- package/resources/v1/scenarios/submissions/index.mjs.map +1 -0
- package/resources/v1/scenarios/submissions/submissions.d.mts +10 -0
- package/resources/v1/scenarios/submissions/submissions.d.mts.map +1 -0
- package/resources/v1/scenarios/submissions/submissions.d.ts +10 -0
- package/resources/v1/scenarios/submissions/submissions.d.ts.map +1 -0
- package/resources/v1/scenarios/submissions/submissions.js +17 -0
- package/resources/v1/scenarios/submissions/submissions.js.map +1 -0
- package/resources/v1/scenarios/submissions/submissions.mjs +12 -0
- package/resources/v1/scenarios/submissions/submissions.mjs.map +1 -0
- package/resources/v1/scenarios/submissions/user.d.mts +20 -0
- package/resources/v1/scenarios/submissions/user.d.mts.map +1 -0
- package/resources/v1/scenarios/submissions/user.d.ts +20 -0
- package/resources/v1/scenarios/submissions/user.d.ts.map +1 -0
- package/resources/v1/scenarios/submissions/user.js +35 -0
- package/resources/v1/scenarios/submissions/user.js.map +1 -0
- package/resources/v1/scenarios/submissions/user.mjs +31 -0
- package/resources/v1/scenarios/submissions/user.mjs.map +1 -0
- package/resources/v1/scenarios/submissions.d.mts +2 -0
- package/resources/v1/scenarios/submissions.d.mts.map +1 -0
- package/resources/v1/scenarios/submissions.d.ts +2 -0
- package/resources/v1/scenarios/submissions.d.ts.map +1 -0
- package/resources/v1/scenarios/submissions.js +6 -0
- package/resources/v1/scenarios/submissions.js.map +1 -0
- package/resources/v1/scenarios/submissions.mjs +3 -0
- package/resources/v1/scenarios/submissions.mjs.map +1 -0
- package/resources/v1/scenarios.d.mts +2 -0
- package/resources/v1/scenarios.d.mts.map +1 -0
- package/resources/v1/scenarios.d.ts +2 -0
- package/resources/v1/scenarios.d.ts.map +1 -0
- package/resources/v1/scenarios.js +6 -0
- package/resources/v1/scenarios.js.map +1 -0
- package/resources/v1/scenarios.mjs +3 -0
- package/resources/v1/scenarios.mjs.map +1 -0
- package/resources/v1/tests/component.d.mts +13 -0
- package/resources/v1/tests/component.d.mts.map +1 -0
- package/resources/v1/tests/component.d.ts +13 -0
- package/resources/v1/tests/component.d.ts.map +1 -0
- package/resources/v1/tests/component.js +23 -0
- package/resources/v1/tests/component.js.map +1 -0
- package/resources/v1/tests/component.mjs +19 -0
- package/resources/v1/tests/component.mjs.map +1 -0
- package/resources/v1/tests/index.d.mts +3 -0
- package/resources/v1/tests/index.d.mts.map +1 -0
- package/resources/v1/tests/index.d.ts +3 -0
- package/resources/v1/tests/index.d.ts.map +1 -0
- package/resources/v1/tests/index.js +9 -0
- package/resources/v1/tests/index.js.map +1 -0
- package/resources/v1/tests/index.mjs +4 -0
- package/resources/v1/tests/index.mjs.map +1 -0
- package/resources/v1/tests/tests.d.mts +117 -0
- package/resources/v1/tests/tests.d.mts.map +1 -0
- package/resources/v1/tests/tests.d.ts +117 -0
- package/resources/v1/tests/tests.d.ts.map +1 -0
- package/resources/v1/tests/tests.js +113 -0
- package/resources/v1/tests/tests.js.map +1 -0
- package/resources/v1/tests/tests.mjs +108 -0
- package/resources/v1/tests/tests.mjs.map +1 -0
- package/resources/v1/tests.d.mts +2 -0
- package/resources/v1/tests.d.mts.map +1 -0
- package/resources/v1/tests.d.ts +2 -0
- package/resources/v1/tests.d.ts.map +1 -0
- package/resources/v1/tests.js +6 -0
- package/resources/v1/tests.js.map +1 -0
- package/resources/v1/tests.mjs +3 -0
- package/resources/v1/tests.mjs.map +1 -0
- 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 +295 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +295 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +111 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +107 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +66 -0
- package/resources/v1/v1.d.mts.map +1 -0
- package/resources/v1/v1.d.ts +66 -0
- package/resources/v1/v1.d.ts.map +1 -0
- package/resources/v1/v1.js +73 -0
- package/resources/v1/v1.js.map +1 -0
- package/resources/v1/v1.mjs +68 -0
- package/resources/v1/v1.mjs.map +1 -0
- package/resources/v1.d.mts +2 -0
- package/resources/v1.d.mts.map +1 -0
- package/resources/v1.d.ts +2 -0
- package/resources/v1.d.ts.map +1 -0
- package/resources/v1.js +6 -0
- package/resources/v1.js.map +1 -0
- package/resources/v1.mjs +3 -0
- package/resources/v1.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +709 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- 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/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/v1/admin/admin.ts +47 -0
- package/src/resources/v1/admin/index.ts +6 -0
- package/src/resources/v1/admin/models.ts +21 -0
- package/src/resources/v1/admin/organization-invites.ts +70 -0
- package/src/resources/v1/admin/organizations/index.ts +4 -0
- package/src/resources/v1/admin/organizations/models/excluded.ts +39 -0
- package/src/resources/v1/admin/organizations/models/index.ts +4 -0
- package/src/resources/v1/admin/organizations/models/models.ts +15 -0
- package/src/resources/v1/admin/organizations/models.ts +3 -0
- package/src/resources/v1/admin/organizations/organizations.ts +31 -0
- package/src/resources/v1/admin/organizations.ts +3 -0
- package/src/resources/v1/admin.ts +3 -0
- package/src/resources/v1/audio-recaps/audio-recaps.ts +79 -0
- package/src/resources/v1/audio-recaps/index.ts +4 -0
- package/src/resources/v1/audio-recaps/sections.ts +53 -0
- package/src/resources/v1/audio-recaps.ts +3 -0
- package/src/resources/v1/auth/auth.ts +215 -0
- package/src/resources/v1/auth/index.ts +23 -0
- package/src/resources/v1/auth/login.ts +109 -0
- package/src/resources/v1/auth/number-2fa.ts +133 -0
- package/src/resources/v1/auth/organization-invites.ts +22 -0
- package/src/resources/v1/auth.ts +3 -0
- package/src/resources/v1/chat/chat.ts +233 -0
- package/src/resources/v1/chat/index.ts +10 -0
- package/src/resources/v1/chat/sessions.ts +46 -0
- package/src/resources/v1/chat/test.ts +34 -0
- package/src/resources/v1/chat.ts +3 -0
- package/src/resources/v1/components.ts +372 -0
- package/src/resources/v1/embed/component.ts +74 -0
- package/src/resources/v1/embed/embed.ts +85 -0
- package/src/resources/v1/embed/index.ts +4 -0
- package/src/resources/v1/embed.ts +3 -0
- package/src/resources/v1/explainers.ts +54 -0
- package/src/resources/v1/flashcards.ts +354 -0
- package/src/resources/v1/folders.ts +167 -0
- package/src/resources/v1/index.ts +68 -0
- package/src/resources/v1/materials/bulk.ts +21 -0
- package/src/resources/v1/materials/index.ts +11 -0
- package/src/resources/v1/materials/materials.ts +259 -0
- package/src/resources/v1/materials/test.ts +60 -0
- package/src/resources/v1/materials/upload.ts +114 -0
- package/src/resources/v1/materials.ts +3 -0
- package/src/resources/v1/organizations/api-keys.ts +64 -0
- package/src/resources/v1/organizations/index.ts +15 -0
- package/src/resources/v1/organizations/logo/index.ts +4 -0
- package/src/resources/v1/organizations/logo/logo.ts +31 -0
- package/src/resources/v1/organizations/logo/upload.ts +34 -0
- package/src/resources/v1/organizations/logo.ts +3 -0
- package/src/resources/v1/organizations/organizations.ts +96 -0
- package/src/resources/v1/organizations/profile/index.ts +11 -0
- package/src/resources/v1/organizations/profile/models.ts +21 -0
- package/src/resources/v1/organizations/profile/profile.ts +68 -0
- package/src/resources/v1/organizations/profile/team.ts +110 -0
- package/src/resources/v1/organizations/profile.ts +3 -0
- package/src/resources/v1/organizations/team/index.ts +10 -0
- package/src/resources/v1/organizations/team/invite.ts +44 -0
- package/src/resources/v1/organizations/team/team.ts +129 -0
- package/src/resources/v1/organizations/team.ts +3 -0
- package/src/resources/v1/organizations/theme.ts +34 -0
- package/src/resources/v1/organizations/usage.ts +24 -0
- package/src/resources/v1/organizations.ts +3 -0
- package/src/resources/v1/scenarios/component.ts +66 -0
- package/src/resources/v1/scenarios/index.ts +6 -0
- package/src/resources/v1/scenarios/scenarios.ts +149 -0
- package/src/resources/v1/scenarios/sessions.ts +35 -0
- package/src/resources/v1/scenarios/submissions/index.ts +4 -0
- package/src/resources/v1/scenarios/submissions/submissions.ts +15 -0
- package/src/resources/v1/scenarios/submissions/user.ts +35 -0
- package/src/resources/v1/scenarios/submissions.ts +3 -0
- package/src/resources/v1/scenarios.ts +3 -0
- package/src/resources/v1/tests/component.ts +22 -0
- package/src/resources/v1/tests/index.ts +10 -0
- package/src/resources/v1/tests/tests.ts +179 -0
- package/src/resources/v1/tests.ts +3 -0
- 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 +475 -0
- package/src/resources/v1/v1.ts +211 -0
- package/src/resources/v1.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NullableHeaders } from "./headers.mjs";
|
|
2
|
+
import type { BodyInit } from "./builtin-types.mjs";
|
|
3
|
+
import type { HTTPMethod, MergedRequestInit } from "./types.mjs";
|
|
4
|
+
import { type HeadersLike } from "./headers.mjs";
|
|
5
|
+
export type FinalRequestOptions = RequestOptions & {
|
|
6
|
+
method: HTTPMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
export type RequestOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
|
12
|
+
*/
|
|
13
|
+
method?: HTTPMethod;
|
|
14
|
+
/**
|
|
15
|
+
* The URL path for the request.
|
|
16
|
+
*
|
|
17
|
+
* @example "/v1/foo"
|
|
18
|
+
*/
|
|
19
|
+
path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Query parameters to include in the request URL.
|
|
22
|
+
*/
|
|
23
|
+
query?: object | undefined | null;
|
|
24
|
+
/**
|
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
|
26
|
+
*/
|
|
27
|
+
body?: unknown;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
|
30
|
+
*/
|
|
31
|
+
headers?: HeadersLike;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
35
|
+
*
|
|
36
|
+
* @default 2
|
|
37
|
+
*/
|
|
38
|
+
maxRetries?: number;
|
|
39
|
+
stream?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
42
|
+
* from the server before timing out a single request.
|
|
43
|
+
*
|
|
44
|
+
* @unit milliseconds
|
|
45
|
+
*/
|
|
46
|
+
timeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
|
49
|
+
* These options will be merged with the client's default fetch options.
|
|
50
|
+
*/
|
|
51
|
+
fetchOptions?: MergedRequestInit;
|
|
52
|
+
/**
|
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
|
54
|
+
*/
|
|
55
|
+
signal?: AbortSignal | undefined | null;
|
|
56
|
+
/**
|
|
57
|
+
* A unique key for this request to enable idempotency.
|
|
58
|
+
*/
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Override the default base URL for this specific request.
|
|
62
|
+
*/
|
|
63
|
+
defaultBaseURL?: string | undefined;
|
|
64
|
+
__binaryResponse?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type EncodedContent = {
|
|
67
|
+
bodyHeaders: HeadersLike;
|
|
68
|
+
body: BodyInit;
|
|
69
|
+
};
|
|
70
|
+
export type RequestEncoder = (request: {
|
|
71
|
+
headers: NullableHeaders;
|
|
72
|
+
body: unknown;
|
|
73
|
+
}) => EncodedContent;
|
|
74
|
+
export declare const FallbackEncoder: RequestEncoder;
|
|
75
|
+
//# sourceMappingURL=request-options.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.d.mts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { NullableHeaders } from "./headers.js";
|
|
2
|
+
import type { BodyInit } from "./builtin-types.js";
|
|
3
|
+
import type { HTTPMethod, MergedRequestInit } from "./types.js";
|
|
4
|
+
import { type HeadersLike } from "./headers.js";
|
|
5
|
+
export type FinalRequestOptions = RequestOptions & {
|
|
6
|
+
method: HTTPMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
export type RequestOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
|
12
|
+
*/
|
|
13
|
+
method?: HTTPMethod;
|
|
14
|
+
/**
|
|
15
|
+
* The URL path for the request.
|
|
16
|
+
*
|
|
17
|
+
* @example "/v1/foo"
|
|
18
|
+
*/
|
|
19
|
+
path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Query parameters to include in the request URL.
|
|
22
|
+
*/
|
|
23
|
+
query?: object | undefined | null;
|
|
24
|
+
/**
|
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
|
26
|
+
*/
|
|
27
|
+
body?: unknown;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
|
30
|
+
*/
|
|
31
|
+
headers?: HeadersLike;
|
|
32
|
+
/**
|
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
35
|
+
*
|
|
36
|
+
* @default 2
|
|
37
|
+
*/
|
|
38
|
+
maxRetries?: number;
|
|
39
|
+
stream?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
42
|
+
* from the server before timing out a single request.
|
|
43
|
+
*
|
|
44
|
+
* @unit milliseconds
|
|
45
|
+
*/
|
|
46
|
+
timeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
|
49
|
+
* These options will be merged with the client's default fetch options.
|
|
50
|
+
*/
|
|
51
|
+
fetchOptions?: MergedRequestInit;
|
|
52
|
+
/**
|
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
|
54
|
+
*/
|
|
55
|
+
signal?: AbortSignal | undefined | null;
|
|
56
|
+
/**
|
|
57
|
+
* A unique key for this request to enable idempotency.
|
|
58
|
+
*/
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Override the default base URL for this specific request.
|
|
62
|
+
*/
|
|
63
|
+
defaultBaseURL?: string | undefined;
|
|
64
|
+
__binaryResponse?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type EncodedContent = {
|
|
67
|
+
bodyHeaders: HeadersLike;
|
|
68
|
+
body: BodyInit;
|
|
69
|
+
};
|
|
70
|
+
export type RequestEncoder = (request: {
|
|
71
|
+
headers: NullableHeaders;
|
|
72
|
+
body: unknown;
|
|
73
|
+
}) => EncodedContent;
|
|
74
|
+
export declare const FallbackEncoder: RequestEncoder;
|
|
75
|
+
//# sourceMappingURL=request-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FallbackEncoder = void 0;
|
|
5
|
+
const FallbackEncoder = ({ headers, body }) => {
|
|
6
|
+
return {
|
|
7
|
+
bodyHeaders: {
|
|
8
|
+
'content-type': 'application/json',
|
|
9
|
+
},
|
|
10
|
+
body: JSON.stringify(body),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.FallbackEncoder = FallbackEncoder;
|
|
14
|
+
//# sourceMappingURL=request-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAmF/E,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const FallbackEncoder = ({ headers, body }) => {
|
|
3
|
+
return {
|
|
4
|
+
bodyHeaders: {
|
|
5
|
+
'content-type': 'application/json',
|
|
6
|
+
},
|
|
7
|
+
body: JSON.stringify(body),
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=request-options.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAmFtF,MAAM,CAAC,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shims for types that we can't always rely on being available globally.
|
|
3
|
+
*
|
|
4
|
+
* Note: these only exist at the type-level, there is no corresponding runtime
|
|
5
|
+
* version for any of these symbols.
|
|
6
|
+
*/
|
|
7
|
+
type NeverToAny<T> = T extends never ? any : T;
|
|
8
|
+
/** @ts-ignore */
|
|
9
|
+
type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
|
|
10
|
+
/** @ts-ignore */
|
|
11
|
+
type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
|
|
12
|
+
type _ConditionalNodeReadableStream<R = any> = typeof globalThis extends {
|
|
13
|
+
ReadableStream: any;
|
|
14
|
+
} ? never : _NodeReadableStream<R>;
|
|
15
|
+
type _ReadableStream<R = any> = NeverToAny<([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>) | ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)>;
|
|
16
|
+
export type { _ReadableStream as ReadableStream };
|
|
17
|
+
//# sourceMappingURL=shim-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shim-types.d.mts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shims for types that we can't always rely on being available globally.
|
|
3
|
+
*
|
|
4
|
+
* Note: these only exist at the type-level, there is no corresponding runtime
|
|
5
|
+
* version for any of these symbols.
|
|
6
|
+
*/
|
|
7
|
+
type NeverToAny<T> = T extends never ? any : T;
|
|
8
|
+
/** @ts-ignore */
|
|
9
|
+
type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
|
|
10
|
+
/** @ts-ignore */
|
|
11
|
+
type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
|
|
12
|
+
type _ConditionalNodeReadableStream<R = any> = typeof globalThis extends {
|
|
13
|
+
ReadableStream: any;
|
|
14
|
+
} ? never : _NodeReadableStream<R>;
|
|
15
|
+
type _ReadableStream<R = any> = NeverToAny<([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>) | ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)>;
|
|
16
|
+
export type { _ReadableStream as ReadableStream };
|
|
17
|
+
//# sourceMappingURL=shim-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shim-types.d.ts","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;AAE/C,iBAAiB;AACjB,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAEhE,iBAAiB;AACjB,KAAK,mBAAmB,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,8BAA8B,CAAC,CAAC,GAAG,GAAG,IACzC,OAAO,UAAU,SAAS;IAAE,cAAc,EAAE,GAAG,CAAA;CAAE,GAAG,KAAK,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,CACtC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACzE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;AAEF,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shim-types.js","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shim-types.mjs","sourceRoot":"","sources":["../src/internal/shim-types.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Fetch } from "./builtin-types.mjs";
|
|
2
|
+
import type { ReadableStream } from "./shim-types.mjs";
|
|
3
|
+
export declare function getDefaultFetch(): Fetch;
|
|
4
|
+
type ReadableStreamArgs = ConstructorParameters<typeof ReadableStream>;
|
|
5
|
+
export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream;
|
|
6
|
+
export declare function ReadableStreamFrom<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
|
|
7
|
+
/**
|
|
8
|
+
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
9
|
+
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
10
|
+
*
|
|
11
|
+
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
12
|
+
*/
|
|
13
|
+
export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Cancels a ReadableStream we don't need to consume.
|
|
16
|
+
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
17
|
+
*/
|
|
18
|
+
export declare function CancelReadableStream(stream: any): Promise<void>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=shims.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.d.mts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Fetch } from "./builtin-types.js";
|
|
2
|
+
import type { ReadableStream } from "./shim-types.js";
|
|
3
|
+
export declare function getDefaultFetch(): Fetch;
|
|
4
|
+
type ReadableStreamArgs = ConstructorParameters<typeof ReadableStream>;
|
|
5
|
+
export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream;
|
|
6
|
+
export declare function ReadableStreamFrom<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
|
|
7
|
+
/**
|
|
8
|
+
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
9
|
+
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
10
|
+
*
|
|
11
|
+
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
12
|
+
*/
|
|
13
|
+
export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Cancels a ReadableStream we don't need to consume.
|
|
16
|
+
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
17
|
+
*/
|
|
18
|
+
export declare function CancelReadableStream(stream: any): Promise<void>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=shims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"OASO,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,cAAc,EAAE;AAE9B,wBAAgB,eAAe,IAAI,KAAK,CAQvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,GAAG,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAW9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrE"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getDefaultFetch = getDefaultFetch;
|
|
5
|
+
exports.makeReadableStream = makeReadableStream;
|
|
6
|
+
exports.ReadableStreamFrom = ReadableStreamFrom;
|
|
7
|
+
exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable;
|
|
8
|
+
exports.CancelReadableStream = CancelReadableStream;
|
|
9
|
+
function getDefaultFetch() {
|
|
10
|
+
if (typeof fetch !== 'undefined') {
|
|
11
|
+
return fetch;
|
|
12
|
+
}
|
|
13
|
+
throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new StudyfetchSDK({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
|
|
14
|
+
}
|
|
15
|
+
function makeReadableStream(...args) {
|
|
16
|
+
const ReadableStream = globalThis.ReadableStream;
|
|
17
|
+
if (typeof ReadableStream === 'undefined') {
|
|
18
|
+
// Note: All of the platforms / runtimes we officially support already define
|
|
19
|
+
// `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
|
|
20
|
+
throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
|
|
21
|
+
}
|
|
22
|
+
return new ReadableStream(...args);
|
|
23
|
+
}
|
|
24
|
+
function ReadableStreamFrom(iterable) {
|
|
25
|
+
let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
26
|
+
return makeReadableStream({
|
|
27
|
+
start() { },
|
|
28
|
+
async pull(controller) {
|
|
29
|
+
const { done, value } = await iter.next();
|
|
30
|
+
if (done) {
|
|
31
|
+
controller.close();
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
controller.enqueue(value);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
async cancel() {
|
|
38
|
+
await iter.return?.();
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
44
|
+
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
45
|
+
*
|
|
46
|
+
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
47
|
+
*/
|
|
48
|
+
function ReadableStreamToAsyncIterable(stream) {
|
|
49
|
+
if (stream[Symbol.asyncIterator])
|
|
50
|
+
return stream;
|
|
51
|
+
const reader = stream.getReader();
|
|
52
|
+
return {
|
|
53
|
+
async next() {
|
|
54
|
+
try {
|
|
55
|
+
const result = await reader.read();
|
|
56
|
+
if (result?.done)
|
|
57
|
+
reader.releaseLock(); // release lock when stream becomes closed
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
reader.releaseLock(); // release lock when stream becomes errored
|
|
62
|
+
throw e;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
async return() {
|
|
66
|
+
const cancelPromise = reader.cancel();
|
|
67
|
+
reader.releaseLock();
|
|
68
|
+
await cancelPromise;
|
|
69
|
+
return { done: true, value: undefined };
|
|
70
|
+
},
|
|
71
|
+
[Symbol.asyncIterator]() {
|
|
72
|
+
return this;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Cancels a ReadableStream we don't need to consume.
|
|
78
|
+
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
79
|
+
*/
|
|
80
|
+
async function CancelReadableStream(stream) {
|
|
81
|
+
if (stream === null || typeof stream !== 'object')
|
|
82
|
+
return;
|
|
83
|
+
if (stream[Symbol.asyncIterator]) {
|
|
84
|
+
await stream[Symbol.asyncIterator]().return?.();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const reader = stream.getReader();
|
|
88
|
+
const cancelPromise = reader.cancel();
|
|
89
|
+
reader.releaseLock();
|
|
90
|
+
await cancelPromise;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=shims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.js","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAYtF,0CAQC;AAID,gDAWC;AAED,gDAkBC;AAQD,sEAyBC;AAMD,oDAYC;AA9FD,SAAgB,eAAe;IAC7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,OAAO,KAAY,CAAC;IACtB,CAAC;IAED,MAAM,IAAI,KAAK,CACb,0JAA0J,CAC3J,CAAC;AACJ,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAG,IAAwB;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,cAAc,CAAC;IAC1D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE,CAAC;QAC1C,6EAA6E;QAC7E,yFAAyF;QACzF,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,kBAAkB,CAAI,QAAwC;IAC5E,IAAI,IAAI,GACN,MAAM,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IAEpG,OAAO,kBAAkB,CAAC;QACxB,KAAK,KAAI,CAAC;QACV,KAAK,CAAC,IAAI,CAAC,UAAe;YACxB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YAC1C,IAAI,IAAI,EAAE,CAAC;gBACT,UAAU,CAAC,KAAK,EAAE,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;QACxB,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAgB,6BAA6B,CAAI,MAAW;IAC1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,MAAM,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnC,IAAI,MAAM,EAAE,IAAI;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,0CAA0C;gBAClF,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,2CAA2C;gBACjE,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,aAAa,CAAC;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,oBAAoB,CAAC,MAAW;IACpD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO;IAE1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAChD,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACrB,MAAM,aAAa,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export function getDefaultFetch() {
|
|
3
|
+
if (typeof fetch !== 'undefined') {
|
|
4
|
+
return fetch;
|
|
5
|
+
}
|
|
6
|
+
throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new StudyfetchSDK({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
|
|
7
|
+
}
|
|
8
|
+
export function makeReadableStream(...args) {
|
|
9
|
+
const ReadableStream = globalThis.ReadableStream;
|
|
10
|
+
if (typeof ReadableStream === 'undefined') {
|
|
11
|
+
// Note: All of the platforms / runtimes we officially support already define
|
|
12
|
+
// `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
|
|
13
|
+
throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
|
|
14
|
+
}
|
|
15
|
+
return new ReadableStream(...args);
|
|
16
|
+
}
|
|
17
|
+
export function ReadableStreamFrom(iterable) {
|
|
18
|
+
let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
19
|
+
return makeReadableStream({
|
|
20
|
+
start() { },
|
|
21
|
+
async pull(controller) {
|
|
22
|
+
const { done, value } = await iter.next();
|
|
23
|
+
if (done) {
|
|
24
|
+
controller.close();
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
controller.enqueue(value);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
async cancel() {
|
|
31
|
+
await iter.return?.();
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
37
|
+
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
38
|
+
*
|
|
39
|
+
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
40
|
+
*/
|
|
41
|
+
export function ReadableStreamToAsyncIterable(stream) {
|
|
42
|
+
if (stream[Symbol.asyncIterator])
|
|
43
|
+
return stream;
|
|
44
|
+
const reader = stream.getReader();
|
|
45
|
+
return {
|
|
46
|
+
async next() {
|
|
47
|
+
try {
|
|
48
|
+
const result = await reader.read();
|
|
49
|
+
if (result?.done)
|
|
50
|
+
reader.releaseLock(); // release lock when stream becomes closed
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
catch (e) {
|
|
54
|
+
reader.releaseLock(); // release lock when stream becomes errored
|
|
55
|
+
throw e;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
async return() {
|
|
59
|
+
const cancelPromise = reader.cancel();
|
|
60
|
+
reader.releaseLock();
|
|
61
|
+
await cancelPromise;
|
|
62
|
+
return { done: true, value: undefined };
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Cancels a ReadableStream we don't need to consume.
|
|
71
|
+
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
72
|
+
*/
|
|
73
|
+
export async function CancelReadableStream(stream) {
|
|
74
|
+
if (stream === null || typeof stream !== 'object')
|
|
75
|
+
return;
|
|
76
|
+
if (stream[Symbol.asyncIterator]) {
|
|
77
|
+
await stream[Symbol.asyncIterator]().return?.();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const reader = stream.getReader();
|
|
81
|
+
const cancelPromise = reader.cancel();
|
|
82
|
+
reader.releaseLock();
|
|
83
|
+
await cancelPromise;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=shims.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.mjs","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { FilePropertyBag } from "./builtin-types.mjs";
|
|
2
|
+
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
|
|
3
|
+
/**
|
|
4
|
+
* Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
|
|
5
|
+
* Don't add arrayBuffer here, node-fetch doesn't have it
|
|
6
|
+
*/
|
|
7
|
+
interface BlobLike {
|
|
8
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
9
|
+
readonly size: number;
|
|
10
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
11
|
+
readonly type: string;
|
|
12
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
13
|
+
text(): Promise<string>;
|
|
14
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
15
|
+
slice(start?: number, end?: number): BlobLike;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Intended to match DOM File, node:buffer File, undici File, etc.
|
|
19
|
+
*/
|
|
20
|
+
interface FileLike extends BlobLike {
|
|
21
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
22
|
+
readonly lastModified: number;
|
|
23
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Intended to match DOM Response, node-fetch Response, undici Response, etc.
|
|
28
|
+
*/
|
|
29
|
+
export interface ResponseLike {
|
|
30
|
+
url: string;
|
|
31
|
+
blob(): Promise<BlobLike>;
|
|
32
|
+
}
|
|
33
|
+
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
|
+
/**
|
|
35
|
+
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
37
|
+
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
|
+
* @param {Object=} options additional properties
|
|
39
|
+
* @param {string=} options.type the MIME type of the content
|
|
40
|
+
* @param {number=} options.lastModified the last modified timestamp
|
|
41
|
+
* @returns a {@link File} with the given properties
|
|
42
|
+
*/
|
|
43
|
+
export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=to-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-file.d.mts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { FilePropertyBag } from "./builtin-types.js";
|
|
2
|
+
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
|
|
3
|
+
/**
|
|
4
|
+
* Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
|
|
5
|
+
* Don't add arrayBuffer here, node-fetch doesn't have it
|
|
6
|
+
*/
|
|
7
|
+
interface BlobLike {
|
|
8
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
9
|
+
readonly size: number;
|
|
10
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
11
|
+
readonly type: string;
|
|
12
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
13
|
+
text(): Promise<string>;
|
|
14
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
15
|
+
slice(start?: number, end?: number): BlobLike;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Intended to match DOM File, node:buffer File, undici File, etc.
|
|
19
|
+
*/
|
|
20
|
+
interface FileLike extends BlobLike {
|
|
21
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
22
|
+
readonly lastModified: number;
|
|
23
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Intended to match DOM Response, node-fetch Response, undici Response, etc.
|
|
28
|
+
*/
|
|
29
|
+
export interface ResponseLike {
|
|
30
|
+
url: string;
|
|
31
|
+
blob(): Promise<BlobLike>;
|
|
32
|
+
}
|
|
33
|
+
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
|
+
/**
|
|
35
|
+
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
37
|
+
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
|
+
* @param {Object=} options additional properties
|
|
39
|
+
* @param {string=} options.type the MIME type of the content
|
|
40
|
+
* @param {number=} options.lastModified the last modified timestamp
|
|
41
|
+
* @returns a {@link File} with the given properties
|
|
42
|
+
*/
|
|
43
|
+
export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=to-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-file.d.ts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|