@aurora-interactive/sensei-productivity 1.0.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/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +90 -0
- package/README.md +453 -0
- package/RUNTIMES.md +48 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/categories-create.d.ts +14 -0
- package/dist/commonjs/funcs/categories-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/categories-create.js +112 -0
- package/dist/commonjs/funcs/categories-create.js.map +1 -0
- package/dist/commonjs/funcs/categories-delete.d.ts +14 -0
- package/dist/commonjs/funcs/categories-delete.d.ts.map +1 -0
- package/dist/commonjs/funcs/categories-delete.js +117 -0
- package/dist/commonjs/funcs/categories-delete.js.map +1 -0
- package/dist/commonjs/funcs/categories-get-all.d.ts +14 -0
- package/dist/commonjs/funcs/categories-get-all.d.ts.map +1 -0
- package/dist/commonjs/funcs/categories-get-all.js +102 -0
- package/dist/commonjs/funcs/categories-get-all.js.map +1 -0
- package/dist/commonjs/funcs/categories-update.d.ts +14 -0
- package/dist/commonjs/funcs/categories-update.d.ts.map +1 -0
- package/dist/commonjs/funcs/categories-update.js +118 -0
- package/dist/commonjs/funcs/categories-update.js.map +1 -0
- package/dist/commonjs/funcs/schools-get-all.d.ts +14 -0
- package/dist/commonjs/funcs/schools-get-all.d.ts.map +1 -0
- package/dist/commonjs/funcs/schools-get-all.js +102 -0
- package/dist/commonjs/funcs/schools-get-all.js.map +1 -0
- package/dist/commonjs/funcs/schools-get.d.ts +14 -0
- package/dist/commonjs/funcs/schools-get.d.ts.map +1 -0
- package/dist/commonjs/funcs/schools-get.js +117 -0
- package/dist/commonjs/funcs/schools-get.js.map +1 -0
- package/dist/commonjs/funcs/users-delete.d.ts +14 -0
- package/dist/commonjs/funcs/users-delete.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-delete.js +117 -0
- package/dist/commonjs/funcs/users-delete.js.map +1 -0
- package/dist/commonjs/funcs/users-get.d.ts +14 -0
- package/dist/commonjs/funcs/users-get.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-get.js +117 -0
- package/dist/commonjs/funcs/users-get.js.map +1 -0
- package/dist/commonjs/funcs/users-login.d.ts +14 -0
- package/dist/commonjs/funcs/users-login.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-login.js +112 -0
- package/dist/commonjs/funcs/users-login.js.map +1 -0
- package/dist/commonjs/funcs/users-me.d.ts +14 -0
- package/dist/commonjs/funcs/users-me.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-me.js +101 -0
- package/dist/commonjs/funcs/users-me.js.map +1 -0
- package/dist/commonjs/funcs/users-signup.d.ts +14 -0
- package/dist/commonjs/funcs/users-signup.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-signup.js +112 -0
- package/dist/commonjs/funcs/users-signup.js.map +1 -0
- package/dist/commonjs/funcs/users-update.d.ts +14 -0
- package/dist/commonjs/funcs/users-update.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-update.js +118 -0
- package/dist/commonjs/funcs/users-update.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +25 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +84 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +76 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +73 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +38 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +38 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/dlv.d.ts +14 -0
- package/dist/commonjs/lib/dlv.d.ts.map +1 -0
- package/dist/commonjs/lib/dlv.js +49 -0
- package/dist/commonjs/lib/dlv.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +53 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +384 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/env.d.ts +15 -0
- package/dist/commonjs/lib/env.d.ts.map +1 -0
- package/dist/commonjs/lib/env.js +82 -0
- package/dist/commonjs/lib/env.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +77 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +217 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
- package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
- package/dist/commonjs/lib/is-plain-object.js +41 -0
- package/dist/commonjs/lib/is-plain-object.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +222 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +26 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +111 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +153 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +21 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +95 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +273 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +83 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +144 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +25 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/models/errors/http-client-errors.d.ts +44 -0
- package/dist/commonjs/models/errors/http-client-errors.d.ts.map +1 -0
- package/dist/commonjs/models/errors/http-client-errors.js +78 -0
- package/dist/commonjs/models/errors/http-client-errors.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +6 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/models/errors/index.js +25 -0
- package/dist/commonjs/models/errors/index.js.map +1 -0
- package/dist/commonjs/models/errors/response-validation-error.d.ts +26 -0
- package/dist/commonjs/models/errors/response-validation-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/response-validation-error.js +66 -0
- package/dist/commonjs/models/errors/response-validation-error.js.map +1 -0
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts +21 -0
- package/dist/commonjs/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sdk-validation-error.js +82 -0
- package/dist/commonjs/models/errors/sdk-validation-error.js.map +1 -0
- package/dist/commonjs/models/errors/sensei-productivity-default-error.d.ts +10 -0
- package/dist/commonjs/models/errors/sensei-productivity-default-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sensei-productivity-default-error.js +34 -0
- package/dist/commonjs/models/errors/sensei-productivity-default-error.js.map +1 -0
- package/dist/commonjs/models/errors/sensei-productivity-error.d.ts +19 -0
- package/dist/commonjs/models/errors/sensei-productivity-error.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sensei-productivity-error.js +20 -0
- package/dist/commonjs/models/errors/sensei-productivity-error.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +21 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/operations/create-category.d.ts +30 -0
- package/dist/commonjs/models/operations/create-category.d.ts.map +1 -0
- package/dist/commonjs/models/operations/create-category.js +64 -0
- package/dist/commonjs/models/operations/create-category.js.map +1 -0
- package/dist/commonjs/models/operations/delete-category.d.ts +12 -0
- package/dist/commonjs/models/operations/delete-category.d.ts.map +1 -0
- package/dist/commonjs/models/operations/delete-category.js +49 -0
- package/dist/commonjs/models/operations/delete-category.js.map +1 -0
- package/dist/commonjs/models/operations/delete-user.d.ts +12 -0
- package/dist/commonjs/models/operations/delete-user.d.ts.map +1 -0
- package/dist/commonjs/models/operations/delete-user.js +49 -0
- package/dist/commonjs/models/operations/delete-user.js.map +1 -0
- package/dist/commonjs/models/operations/get-current-user.d.ts +19 -0
- package/dist/commonjs/models/operations/get-current-user.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-current-user.js +57 -0
- package/dist/commonjs/models/operations/get-current-user.js.map +1 -0
- package/dist/commonjs/models/operations/get-school-by-id.d.ts +26 -0
- package/dist/commonjs/models/operations/get-school-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-school-by-id.js +62 -0
- package/dist/commonjs/models/operations/get-school-by-id.js.map +1 -0
- package/dist/commonjs/models/operations/get-user-by-id.d.ts +29 -0
- package/dist/commonjs/models/operations/get-user-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-user-by-id.js +65 -0
- package/dist/commonjs/models/operations/get-user-by-id.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +13 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -0
- package/dist/commonjs/models/operations/index.js +32 -0
- package/dist/commonjs/models/operations/index.js.map +1 -0
- package/dist/commonjs/models/operations/list-categories.d.ts +13 -0
- package/dist/commonjs/models/operations/list-categories.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-categories.js +54 -0
- package/dist/commonjs/models/operations/list-categories.js.map +1 -0
- package/dist/commonjs/models/operations/list-schools.d.ts +13 -0
- package/dist/commonjs/models/operations/list-schools.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-schools.js +54 -0
- package/dist/commonjs/models/operations/list-schools.js.map +1 -0
- package/dist/commonjs/models/operations/update-category.d.ts +42 -0
- package/dist/commonjs/models/operations/update-category.d.ts.map +1 -0
- package/dist/commonjs/models/operations/update-category.js +73 -0
- package/dist/commonjs/models/operations/update-category.js.map +1 -0
- package/dist/commonjs/models/operations/update-user.d.ts +45 -0
- package/dist/commonjs/models/operations/update-user.d.ts.map +1 -0
- package/dist/commonjs/models/operations/update-user.js +76 -0
- package/dist/commonjs/models/operations/update-user.js.map +1 -0
- package/dist/commonjs/models/operations/user-login.d.ts +25 -0
- package/dist/commonjs/models/operations/user-login.d.ts.map +1 -0
- package/dist/commonjs/models/operations/user-login.js +60 -0
- package/dist/commonjs/models/operations/user-login.js.map +1 -0
- package/dist/commonjs/models/operations/user-signup.d.ts +33 -0
- package/dist/commonjs/models/operations/user-signup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/user-signup.js +64 -0
- package/dist/commonjs/models/operations/user-signup.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +12 -0
- package/dist/commonjs/models/security.d.ts.map +1 -0
- package/dist/commonjs/models/security.js +54 -0
- package/dist/commonjs/models/security.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/categories.d.ts +21 -0
- package/dist/commonjs/sdk/categories.d.ts.map +1 -0
- package/dist/commonjs/sdk/categories.js +40 -0
- package/dist/commonjs/sdk/categories.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/schools.d.ts +13 -0
- package/dist/commonjs/sdk/schools.d.ts.map +1 -0
- package/dist/commonjs/sdk/schools.js +26 -0
- package/dist/commonjs/sdk/schools.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +13 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +23 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/sdk/users.d.ts +29 -0
- package/dist/commonjs/sdk/users.d.ts.map +1 -0
- package/dist/commonjs/sdk/users.js +54 -0
- package/dist/commonjs/sdk/users.js.map +1 -0
- package/dist/commonjs/types/async.d.ts +23 -0
- package/dist/commonjs/types/async.d.ts.map +1 -0
- package/dist/commonjs/types/async.js +44 -0
- package/dist/commonjs/types/async.js.map +1 -0
- package/dist/commonjs/types/blobs.d.ts +4 -0
- package/dist/commonjs/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/types/blobs.js +62 -0
- package/dist/commonjs/types/blobs.js.map +1 -0
- package/dist/commonjs/types/const-date-time.d.ts +3 -0
- package/dist/commonjs/types/const-date-time.d.ts.map +1 -0
- package/dist/commonjs/types/const-date-time.js +46 -0
- package/dist/commonjs/types/const-date-time.js.map +1 -0
- package/dist/commonjs/types/default-to-zero-value.d.ts +12 -0
- package/dist/commonjs/types/default-to-zero-value.d.ts.map +1 -0
- package/dist/commonjs/types/default-to-zero-value.js +35 -0
- package/dist/commonjs/types/default-to-zero-value.js.map +1 -0
- package/dist/commonjs/types/enums.d.ts +9 -0
- package/dist/commonjs/types/enums.d.ts.map +1 -0
- package/dist/commonjs/types/enums.js +66 -0
- package/dist/commonjs/types/enums.js.map +1 -0
- package/dist/commonjs/types/fp.d.ts +31 -0
- package/dist/commonjs/types/fp.d.ts.map +1 -0
- package/dist/commonjs/types/fp.js +37 -0
- package/dist/commonjs/types/fp.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +10 -0
- package/dist/commonjs/types/index.d.ts.map +1 -0
- package/dist/commonjs/types/index.js +31 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/types/operations.d.ts +27 -0
- package/dist/commonjs/types/operations.d.ts.map +1 -0
- package/dist/commonjs/types/operations.js +83 -0
- package/dist/commonjs/types/operations.js.map +1 -0
- package/dist/commonjs/types/primitives.d.ts +11 -0
- package/dist/commonjs/types/primitives.d.ts.map +1 -0
- package/dist/commonjs/types/primitives.js +176 -0
- package/dist/commonjs/types/primitives.js.map +1 -0
- package/dist/commonjs/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/types/rfcdate.js +46 -0
- package/dist/commonjs/types/rfcdate.js.map +1 -0
- package/dist/commonjs/types/smart-union.d.ts +7 -0
- package/dist/commonjs/types/smart-union.d.ts.map +1 -0
- package/dist/commonjs/types/smart-union.js +153 -0
- package/dist/commonjs/types/smart-union.js.map +1 -0
- package/dist/commonjs/types/streams.d.ts +2 -0
- package/dist/commonjs/types/streams.d.ts.map +1 -0
- package/dist/commonjs/types/streams.js +18 -0
- package/dist/commonjs/types/streams.js.map +1 -0
- package/dist/commonjs/types/unrecognized.d.ts +16 -0
- package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
- package/dist/commonjs/types/unrecognized.js +34 -0
- package/dist/commonjs/types/unrecognized.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/categories-create.d.ts +14 -0
- package/dist/esm/funcs/categories-create.d.ts.map +1 -0
- package/dist/esm/funcs/categories-create.js +76 -0
- package/dist/esm/funcs/categories-create.js.map +1 -0
- package/dist/esm/funcs/categories-delete.d.ts +14 -0
- package/dist/esm/funcs/categories-delete.d.ts.map +1 -0
- package/dist/esm/funcs/categories-delete.js +81 -0
- package/dist/esm/funcs/categories-delete.js.map +1 -0
- package/dist/esm/funcs/categories-get-all.d.ts +14 -0
- package/dist/esm/funcs/categories-get-all.d.ts.map +1 -0
- package/dist/esm/funcs/categories-get-all.js +66 -0
- package/dist/esm/funcs/categories-get-all.js.map +1 -0
- package/dist/esm/funcs/categories-update.d.ts +14 -0
- package/dist/esm/funcs/categories-update.d.ts.map +1 -0
- package/dist/esm/funcs/categories-update.js +82 -0
- package/dist/esm/funcs/categories-update.js.map +1 -0
- package/dist/esm/funcs/schools-get-all.d.ts +14 -0
- package/dist/esm/funcs/schools-get-all.d.ts.map +1 -0
- package/dist/esm/funcs/schools-get-all.js +66 -0
- package/dist/esm/funcs/schools-get-all.js.map +1 -0
- package/dist/esm/funcs/schools-get.d.ts +14 -0
- package/dist/esm/funcs/schools-get.d.ts.map +1 -0
- package/dist/esm/funcs/schools-get.js +81 -0
- package/dist/esm/funcs/schools-get.js.map +1 -0
- package/dist/esm/funcs/users-delete.d.ts +14 -0
- package/dist/esm/funcs/users-delete.d.ts.map +1 -0
- package/dist/esm/funcs/users-delete.js +81 -0
- package/dist/esm/funcs/users-delete.js.map +1 -0
- package/dist/esm/funcs/users-get.d.ts +14 -0
- package/dist/esm/funcs/users-get.d.ts.map +1 -0
- package/dist/esm/funcs/users-get.js +81 -0
- package/dist/esm/funcs/users-get.js.map +1 -0
- package/dist/esm/funcs/users-login.d.ts +14 -0
- package/dist/esm/funcs/users-login.d.ts.map +1 -0
- package/dist/esm/funcs/users-login.js +76 -0
- package/dist/esm/funcs/users-login.js.map +1 -0
- package/dist/esm/funcs/users-me.d.ts +14 -0
- package/dist/esm/funcs/users-me.d.ts.map +1 -0
- package/dist/esm/funcs/users-me.js +65 -0
- package/dist/esm/funcs/users-me.js.map +1 -0
- package/dist/esm/funcs/users-signup.d.ts +14 -0
- package/dist/esm/funcs/users-signup.d.ts.map +1 -0
- package/dist/esm/funcs/users-signup.js +76 -0
- package/dist/esm/funcs/users-signup.js.map +1 -0
- package/dist/esm/funcs/users-update.d.ts +14 -0
- package/dist/esm/funcs/users-update.d.ts.map +1 -0
- package/dist/esm/funcs/users-update.js +82 -0
- package/dist/esm/funcs/users-update.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +25 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +80 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +76 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +31 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +38 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +34 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/dlv.d.ts +14 -0
- package/dist/esm/lib/dlv.d.ts.map +1 -0
- package/dist/esm/lib/dlv.js +46 -0
- package/dist/esm/lib/dlv.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +53 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +370 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/env.d.ts +15 -0
- package/dist/esm/lib/env.d.ts.map +1 -0
- package/dist/esm/lib/env.js +44 -0
- package/dist/esm/lib/env.js.map +1 -0
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +73 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +207 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/is-plain-object.d.ts +2 -0
- package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
- package/dist/esm/lib/is-plain-object.js +38 -0
- package/dist/esm/lib/is-plain-object.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +203 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +26 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +103 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +147 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +21 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +269 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +83 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +137 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +22 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/models/errors/http-client-errors.d.ts +44 -0
- package/dist/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/dist/esm/models/errors/http-client-errors.js +69 -0
- package/dist/esm/models/errors/http-client-errors.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +6 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -0
- package/dist/esm/models/errors/index.js +9 -0
- package/dist/esm/models/errors/index.js.map +1 -0
- package/dist/esm/models/errors/response-validation-error.d.ts +26 -0
- package/dist/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/dist/esm/models/errors/response-validation-error.js +29 -0
- package/dist/esm/models/errors/response-validation-error.js.map +1 -0
- package/dist/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/dist/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/dist/esm/models/errors/sdk-validation-error.js +44 -0
- package/dist/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/dist/esm/models/errors/sensei-productivity-default-error.d.ts +10 -0
- package/dist/esm/models/errors/sensei-productivity-default-error.d.ts.map +1 -0
- package/dist/esm/models/errors/sensei-productivity-default-error.js +30 -0
- package/dist/esm/models/errors/sensei-productivity-default-error.js.map +1 -0
- package/dist/esm/models/errors/sensei-productivity-error.d.ts +19 -0
- package/dist/esm/models/errors/sensei-productivity-error.d.ts.map +1 -0
- package/dist/esm/models/errors/sensei-productivity-error.js +16 -0
- package/dist/esm/models/errors/sensei-productivity-error.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/operations/create-category.d.ts +30 -0
- package/dist/esm/models/operations/create-category.d.ts.map +1 -0
- package/dist/esm/models/operations/create-category.js +26 -0
- package/dist/esm/models/operations/create-category.js.map +1 -0
- package/dist/esm/models/operations/delete-category.d.ts +12 -0
- package/dist/esm/models/operations/delete-category.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-category.js +12 -0
- package/dist/esm/models/operations/delete-category.js.map +1 -0
- package/dist/esm/models/operations/delete-user.d.ts +12 -0
- package/dist/esm/models/operations/delete-user.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-user.js +12 -0
- package/dist/esm/models/operations/delete-user.js.map +1 -0
- package/dist/esm/models/operations/get-current-user.d.ts +19 -0
- package/dist/esm/models/operations/get-current-user.d.ts.map +1 -0
- package/dist/esm/models/operations/get-current-user.js +20 -0
- package/dist/esm/models/operations/get-current-user.js.map +1 -0
- package/dist/esm/models/operations/get-school-by-id.d.ts +26 -0
- package/dist/esm/models/operations/get-school-by-id.d.ts.map +1 -0
- package/dist/esm/models/operations/get-school-by-id.js +24 -0
- package/dist/esm/models/operations/get-school-by-id.js.map +1 -0
- package/dist/esm/models/operations/get-user-by-id.d.ts +29 -0
- package/dist/esm/models/operations/get-user-by-id.d.ts.map +1 -0
- package/dist/esm/models/operations/get-user-by-id.js +27 -0
- package/dist/esm/models/operations/get-user-by-id.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +13 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -0
- package/dist/esm/models/operations/index.js +16 -0
- package/dist/esm/models/operations/index.js.map +1 -0
- package/dist/esm/models/operations/list-categories.d.ts +13 -0
- package/dist/esm/models/operations/list-categories.d.ts.map +1 -0
- package/dist/esm/models/operations/list-categories.js +17 -0
- package/dist/esm/models/operations/list-categories.js.map +1 -0
- package/dist/esm/models/operations/list-schools.d.ts +13 -0
- package/dist/esm/models/operations/list-schools.d.ts.map +1 -0
- package/dist/esm/models/operations/list-schools.js +17 -0
- package/dist/esm/models/operations/list-schools.js.map +1 -0
- package/dist/esm/models/operations/update-category.d.ts +42 -0
- package/dist/esm/models/operations/update-category.d.ts.map +1 -0
- package/dist/esm/models/operations/update-category.js +34 -0
- package/dist/esm/models/operations/update-category.js.map +1 -0
- package/dist/esm/models/operations/update-user.d.ts +45 -0
- package/dist/esm/models/operations/update-user.d.ts.map +1 -0
- package/dist/esm/models/operations/update-user.js +37 -0
- package/dist/esm/models/operations/update-user.js.map +1 -0
- package/dist/esm/models/operations/user-login.d.ts +25 -0
- package/dist/esm/models/operations/user-login.d.ts.map +1 -0
- package/dist/esm/models/operations/user-login.js +22 -0
- package/dist/esm/models/operations/user-login.js.map +1 -0
- package/dist/esm/models/operations/user-signup.d.ts +33 -0
- package/dist/esm/models/operations/user-signup.d.ts.map +1 -0
- package/dist/esm/models/operations/user-signup.js +26 -0
- package/dist/esm/models/operations/user-signup.js.map +1 -0
- package/dist/esm/models/security.d.ts +12 -0
- package/dist/esm/models/security.d.ts.map +1 -0
- package/dist/esm/models/security.js +17 -0
- package/dist/esm/models/security.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/categories.d.ts +21 -0
- package/dist/esm/sdk/categories.d.ts.map +1 -0
- package/dist/esm/sdk/categories.js +36 -0
- package/dist/esm/sdk/categories.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/schools.d.ts +13 -0
- package/dist/esm/sdk/schools.d.ts.map +1 -0
- package/dist/esm/sdk/schools.js +22 -0
- package/dist/esm/sdk/schools.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +13 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +19 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/sdk/users.d.ts +29 -0
- package/dist/esm/sdk/users.d.ts.map +1 -0
- package/dist/esm/sdk/users.js +50 -0
- package/dist/esm/sdk/users.js.map +1 -0
- package/dist/esm/types/async.d.ts +23 -0
- package/dist/esm/types/async.d.ts.map +1 -0
- package/dist/esm/types/async.js +40 -0
- package/dist/esm/types/async.js.map +1 -0
- package/dist/esm/types/blobs.d.ts +4 -0
- package/dist/esm/types/blobs.d.ts.map +1 -0
- package/dist/esm/types/blobs.js +25 -0
- package/dist/esm/types/blobs.js.map +1 -0
- package/dist/esm/types/const-date-time.d.ts +3 -0
- package/dist/esm/types/const-date-time.d.ts.map +1 -0
- package/dist/esm/types/const-date-time.js +10 -0
- package/dist/esm/types/const-date-time.js.map +1 -0
- package/dist/esm/types/default-to-zero-value.d.ts +12 -0
- package/dist/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/dist/esm/types/default-to-zero-value.js +31 -0
- package/dist/esm/types/default-to-zero-value.js.map +1 -0
- package/dist/esm/types/enums.d.ts +9 -0
- package/dist/esm/types/enums.d.ts.map +1 -0
- package/dist/esm/types/enums.js +27 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/fp.d.ts +31 -0
- package/dist/esm/types/fp.d.ts.map +1 -0
- package/dist/esm/types/fp.js +31 -0
- package/dist/esm/types/fp.js.map +1 -0
- package/dist/esm/types/index.d.ts +10 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +10 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/operations.d.ts +27 -0
- package/dist/esm/types/operations.d.ts.map +1 -0
- package/dist/esm/types/operations.js +77 -0
- package/dist/esm/types/operations.js.map +1 -0
- package/dist/esm/types/primitives.d.ts +11 -0
- package/dist/esm/types/primitives.d.ts.map +1 -0
- package/dist/esm/types/primitives.js +132 -0
- package/dist/esm/types/primitives.js.map +1 -0
- package/dist/esm/types/rfcdate.d.ts +21 -0
- package/dist/esm/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/types/rfcdate.js +42 -0
- package/dist/esm/types/rfcdate.js.map +1 -0
- package/dist/esm/types/smart-union.d.ts +7 -0
- package/dist/esm/types/smart-union.d.ts.map +1 -0
- package/dist/esm/types/smart-union.js +117 -0
- package/dist/esm/types/smart-union.js.map +1 -0
- package/dist/esm/types/streams.d.ts +2 -0
- package/dist/esm/types/streams.d.ts.map +1 -0
- package/dist/esm/types/streams.js +15 -0
- package/dist/esm/types/streams.js.map +1 -0
- package/dist/esm/types/unrecognized.d.ts +16 -0
- package/dist/esm/types/unrecognized.d.ts.map +1 -0
- package/dist/esm/types/unrecognized.js +31 -0
- package/dist/esm/types/unrecognized.js.map +1 -0
- package/examples/node_modules/.package-lock.json +174 -0
- package/examples/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2631 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1012 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/package.json +140 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1966 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1675 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +540 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/dotenv/package.json +62 -0
- package/examples/node_modules/esbuild/install.js +289 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2242 -0
- package/examples/node_modules/esbuild/package.json +49 -0
- package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
- package/examples/node_modules/fsevents/fsevents.js +83 -0
- package/examples/node_modules/fsevents/package.json +62 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/examples/node_modules/get-tsconfig/package.json +46 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/package.json +42 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/tsx/package.json +68 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/package.json +55 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/examples/package-lock.json +611 -0
- package/examples/package.json +18 -0
- package/examples/usersLogin.example.ts +29 -0
- package/jsr.json +27 -0
- package/package.json +122 -0
- package/rest-api/cypress/e2e/category-endpoints.cy.ts +192 -0
- package/rest-api/cypress/e2e/school-endpoints.cy.ts +32 -0
- package/rest-api/cypress/e2e/user-endpoints.cy.ts +287 -0
- package/rest-api/cypress/fixtures/example.json +5 -0
- package/rest-api/cypress/support/commands.ts +37 -0
- package/rest-api/cypress/support/e2e.ts +17 -0
- package/rest-api/cypress.config.ts +26 -0
- package/rest-api/index.js +44 -0
- package/rest-api/lib/prisma.d.ts +3 -0
- package/rest-api/lib/prisma.ts +13 -0
- package/rest-api/package-lock.json +4748 -0
- package/rest-api/package.json +37 -0
- package/rest-api/prisma.config.ts +13 -0
- package/rest-api/routes/CategoryFunctions.js +187 -0
- package/rest-api/routes/SchoolFunctions.js +51 -0
- package/rest-api/routes/UserFunctions.js +245 -0
- package/rest-api/tsconfig.json +34 -0
- package/src/core.ts +13 -0
- package/src/funcs/categories-create.ts +158 -0
- package/src/funcs/categories-delete.ts +164 -0
- package/src/funcs/categories-get-all.ts +140 -0
- package/src/funcs/categories-update.ts +165 -0
- package/src/funcs/schools-get-all.ts +140 -0
- package/src/funcs/schools-get.ts +164 -0
- package/src/funcs/users-delete.ts +164 -0
- package/src/funcs/users-get.ts +164 -0
- package/src/funcs/users-login.ts +158 -0
- package/src/funcs/users-me.ts +139 -0
- package/src/funcs/users-signup.ts +158 -0
- package/src/funcs/users-update.ts +165 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +68 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +501 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +358 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +406 -0
- package/src/lib/security.ts +264 -0
- package/src/lib/url.ts +33 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/errors/sensei-productivity-default-error.ts +40 -0
- package/src/models/errors/sensei-productivity-error.ts +35 -0
- package/src/models/index.ts +5 -0
- package/src/models/operations/create-category.ts +71 -0
- package/src/models/operations/delete-category.ts +30 -0
- package/src/models/operations/delete-user.ts +30 -0
- package/src/models/operations/get-current-user.ts +46 -0
- package/src/models/operations/get-school-by-id.ts +65 -0
- package/src/models/operations/get-user-by-id.ts +71 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/list-categories.ts +37 -0
- package/src/models/operations/list-schools.ts +37 -0
- package/src/models/operations/update-category.ts +99 -0
- package/src/models/operations/update-user.ts +105 -0
- package/src/models/operations/user-login.ts +62 -0
- package/src/models/operations/user-signup.ts +74 -0
- package/src/models/security.ts +34 -0
- package/src/sdk/categories.ts +67 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/schools.ts +37 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/users.ts +97 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +168 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
- package/tsconfig.json +40 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { defaultToZeroValue } from "./default-to-zero-value.js";
|
|
7
|
+
import { unrecognized } from "./unrecognized.js";
|
|
8
|
+
|
|
9
|
+
export function string(): z.ZodMiniType<string> {
|
|
10
|
+
return z.union([
|
|
11
|
+
z.string(),
|
|
12
|
+
|
|
13
|
+
// Null or undefined -> ""
|
|
14
|
+
zodDefaultToZeroValue(""),
|
|
15
|
+
|
|
16
|
+
// Any other value -> String(x)
|
|
17
|
+
z.pipe(z.any(), z.transform((x) => unrecognized(JSON.stringify(x)))),
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function boolean(): z.ZodMiniType<boolean> {
|
|
22
|
+
return z.union([
|
|
23
|
+
z.boolean(),
|
|
24
|
+
|
|
25
|
+
// String "true" (case insensitive) -> true, "false" -> false
|
|
26
|
+
z.pipe(
|
|
27
|
+
z.string(),
|
|
28
|
+
z.transform((x, ctx) => {
|
|
29
|
+
const lower = x.toLowerCase();
|
|
30
|
+
if (lower === "true") return unrecognized(true);
|
|
31
|
+
if (lower === "false") return unrecognized(false);
|
|
32
|
+
ctx.issues.push({
|
|
33
|
+
input: x,
|
|
34
|
+
code: "invalid_type",
|
|
35
|
+
expected: "boolean",
|
|
36
|
+
received: "string",
|
|
37
|
+
});
|
|
38
|
+
return z.NEVER;
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
|
|
42
|
+
zodDefaultToZeroValue(false),
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function number(): z.ZodMiniType<number> {
|
|
47
|
+
return z.union([
|
|
48
|
+
z.number(),
|
|
49
|
+
|
|
50
|
+
// String -> Number
|
|
51
|
+
z.pipe(
|
|
52
|
+
z.string(),
|
|
53
|
+
z.transform((x, ctx) => {
|
|
54
|
+
const num = Number(x);
|
|
55
|
+
if (isNaN(num)) {
|
|
56
|
+
ctx.issues.push({
|
|
57
|
+
input: x,
|
|
58
|
+
code: "invalid_type",
|
|
59
|
+
expected: "number",
|
|
60
|
+
received: "string",
|
|
61
|
+
});
|
|
62
|
+
return z.NEVER;
|
|
63
|
+
}
|
|
64
|
+
return unrecognized(num);
|
|
65
|
+
}),
|
|
66
|
+
),
|
|
67
|
+
|
|
68
|
+
// Null or undefined -> 0
|
|
69
|
+
zodDefaultToZeroValue(0),
|
|
70
|
+
]);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function bigint(): z.ZodMiniType<bigint> {
|
|
74
|
+
return z.union([
|
|
75
|
+
z.pipe(
|
|
76
|
+
z.string(),
|
|
77
|
+
z.transform((x, ctx) => {
|
|
78
|
+
try {
|
|
79
|
+
return BigInt(x);
|
|
80
|
+
} catch (error) {
|
|
81
|
+
ctx.issues.push({
|
|
82
|
+
input: x,
|
|
83
|
+
code: "invalid_type",
|
|
84
|
+
expected: "bigint",
|
|
85
|
+
received: "string",
|
|
86
|
+
});
|
|
87
|
+
return z.NEVER;
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
),
|
|
91
|
+
zodDefaultToZeroValue(0n),
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function date(): z.ZodMiniType<Date> {
|
|
96
|
+
return z.union([
|
|
97
|
+
z.pipe(
|
|
98
|
+
z.pipe(
|
|
99
|
+
z.union([z.string(), zodDefaultToZeroValue(0)]),
|
|
100
|
+
z.transform((x) => new Date(x)),
|
|
101
|
+
),
|
|
102
|
+
z.date(),
|
|
103
|
+
),
|
|
104
|
+
z.pipe(
|
|
105
|
+
z.number(),
|
|
106
|
+
z.transform((x, ctx) => {
|
|
107
|
+
const date = new Date(x);
|
|
108
|
+
if (isNaN(date.getTime())) {
|
|
109
|
+
ctx.issues.push({
|
|
110
|
+
input: x,
|
|
111
|
+
code: "invalid_type",
|
|
112
|
+
expected: "date",
|
|
113
|
+
received: "number",
|
|
114
|
+
});
|
|
115
|
+
return z.NEVER;
|
|
116
|
+
}
|
|
117
|
+
return unrecognized(date);
|
|
118
|
+
}),
|
|
119
|
+
),
|
|
120
|
+
]);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function literal<T extends string | number | boolean>(
|
|
124
|
+
value: T,
|
|
125
|
+
): z.ZodMiniType<T> {
|
|
126
|
+
return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function literalBigInt<T extends bigint>(value: T): z.ZodMiniType<T> {
|
|
130
|
+
return z.pipe(z.literal(String(value)), z.transform((x) => BigInt(x))) as any;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function optional<T extends z.ZodMiniType>(t: T) {
|
|
134
|
+
return z.union([
|
|
135
|
+
z.undefined(),
|
|
136
|
+
|
|
137
|
+
// Null -> undefined
|
|
138
|
+
z.pipe(z.null(), z.transform(() => unrecognized(undefined))),
|
|
139
|
+
t,
|
|
140
|
+
]);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function nullable<T extends z.ZodMiniType>(t: T) {
|
|
144
|
+
return z.union([
|
|
145
|
+
z.null(),
|
|
146
|
+
|
|
147
|
+
// Undefined -> null
|
|
148
|
+
z.pipe(z.undefined(), z.transform(() => defaultToZeroValue(null))),
|
|
149
|
+
t,
|
|
150
|
+
]);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function zodDefaultToZeroValue<T>(value: T): z.ZodMiniType<T> {
|
|
154
|
+
return z.pipe(
|
|
155
|
+
z.any(),
|
|
156
|
+
z.transform((input, ctx) => {
|
|
157
|
+
if (input === undefined) return defaultToZeroValue(value);
|
|
158
|
+
if (input === null) return defaultToZeroValue(value);
|
|
159
|
+
ctx.issues.push({
|
|
160
|
+
input: input,
|
|
161
|
+
code: "invalid_type",
|
|
162
|
+
expected: "undefined",
|
|
163
|
+
received: "unknown",
|
|
164
|
+
});
|
|
165
|
+
return z.NEVER;
|
|
166
|
+
}),
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
const dateRE = /^\d{4}-\d{2}-\d{2}$/;
|
|
6
|
+
|
|
7
|
+
export class RFCDate {
|
|
8
|
+
private serialized: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new RFCDate instance using today's date.
|
|
12
|
+
*/
|
|
13
|
+
static today(): RFCDate {
|
|
14
|
+
return new RFCDate(new Date());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new RFCDate instance using the provided input.
|
|
19
|
+
* If a string is used then in must be in the format YYYY-MM-DD.
|
|
20
|
+
*
|
|
21
|
+
* @param date A Date object or a date string in YYYY-MM-DD format
|
|
22
|
+
* @example
|
|
23
|
+
* new RFCDate("2022-01-01")
|
|
24
|
+
* @example
|
|
25
|
+
* new RFCDate(new Date())
|
|
26
|
+
*/
|
|
27
|
+
constructor(date: Date | string) {
|
|
28
|
+
if (typeof date === "string" && !dateRE.test(date)) {
|
|
29
|
+
throw new RangeError(
|
|
30
|
+
"RFCDate: date strings must be in the format YYYY-MM-DD: " + date,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = new Date(date);
|
|
35
|
+
if (isNaN(+value)) {
|
|
36
|
+
throw new RangeError("RFCDate: invalid date provided: " + date);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length);
|
|
40
|
+
if (!dateRE.test(this.serialized)) {
|
|
41
|
+
throw new TypeError(
|
|
42
|
+
`RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
toJSON(): string {
|
|
48
|
+
return this.toString();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
toString(): string {
|
|
52
|
+
return this.serialized;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Not needed if lax mode
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { startCountingDefaultToZeroValue } from "./default-to-zero-value.js";
|
|
8
|
+
import { RFCDate } from "./rfcdate.js";
|
|
9
|
+
import { startCountingUnrecognized } from "./unrecognized.js";
|
|
10
|
+
|
|
11
|
+
interface Candidate {
|
|
12
|
+
data: unknown;
|
|
13
|
+
/** Total number of fields in the parsed data */
|
|
14
|
+
fieldCount: number;
|
|
15
|
+
/** Number of fields which only matched due to lax parsing */
|
|
16
|
+
inexactCount: number;
|
|
17
|
+
/** Number of fields which defaulted to zero values */
|
|
18
|
+
zeroDefaultCount: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Smart union parser that tries all schemas and returns the best match
|
|
23
|
+
* based on the number of populated fields.
|
|
24
|
+
*/
|
|
25
|
+
export function smartUnion<
|
|
26
|
+
Options extends readonly [z.ZodMiniType, z.ZodMiniType, ...z.ZodMiniType[]],
|
|
27
|
+
>(
|
|
28
|
+
options: Options,
|
|
29
|
+
): z.ZodMiniType<z.output<Options[number]>, z.input<Options[number]>> {
|
|
30
|
+
return z.pipe(
|
|
31
|
+
z.unknown(),
|
|
32
|
+
z.transform((input, ctx) => {
|
|
33
|
+
const candidates: Candidate[] = [];
|
|
34
|
+
const errors: z.core.$ZodIssue[][] = options.map(() => []);
|
|
35
|
+
|
|
36
|
+
const parentUnrecognizedCtr = startCountingUnrecognized();
|
|
37
|
+
const parentZeroDefaultCtr = startCountingDefaultToZeroValue();
|
|
38
|
+
|
|
39
|
+
// Filter out invalid options
|
|
40
|
+
for (const [i, option] of options.entries()) {
|
|
41
|
+
const unrecognizedCtr = startCountingUnrecognized();
|
|
42
|
+
const zeroDefaultCtr = startCountingDefaultToZeroValue();
|
|
43
|
+
const result = option.safeParse(input);
|
|
44
|
+
const inexactCount = unrecognizedCtr.end();
|
|
45
|
+
const zeroDefaultCount = zeroDefaultCtr.end();
|
|
46
|
+
if (result.success) {
|
|
47
|
+
candidates.push({
|
|
48
|
+
data: result.data,
|
|
49
|
+
inexactCount,
|
|
50
|
+
zeroDefaultCount,
|
|
51
|
+
fieldCount: -1, // We'll count this later if needed
|
|
52
|
+
});
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
errors[i]!.push(...result.error.issues);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// No valid options
|
|
59
|
+
if (candidates.length === 0) {
|
|
60
|
+
parentUnrecognizedCtr.end(0);
|
|
61
|
+
parentZeroDefaultCtr.end(0);
|
|
62
|
+
ctx.issues.push({
|
|
63
|
+
input: input,
|
|
64
|
+
code: "invalid_union",
|
|
65
|
+
errors: errors,
|
|
66
|
+
});
|
|
67
|
+
return z.NEVER;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
let best = candidates[0]!;
|
|
71
|
+
|
|
72
|
+
// Find the best option
|
|
73
|
+
for (const candidate of candidates) {
|
|
74
|
+
// Minor optimization to avoid counting fields if there's only one candidate
|
|
75
|
+
if (candidates.length > 1) {
|
|
76
|
+
candidate.fieldCount = countFieldsRecursive(candidate.data);
|
|
77
|
+
}
|
|
78
|
+
best = better(candidate, best);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// The cost of this union should be the cost of the best candidate not all the candidates
|
|
82
|
+
parentUnrecognizedCtr.end(best.inexactCount);
|
|
83
|
+
parentZeroDefaultCtr.end(best.zeroDefaultCount);
|
|
84
|
+
|
|
85
|
+
return best.data;
|
|
86
|
+
}),
|
|
87
|
+
) as any;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function better(a: Candidate, b: Candidate): Candidate {
|
|
91
|
+
// First prefer exact matches over inexact ones
|
|
92
|
+
const aIsExact = a.inexactCount === 0;
|
|
93
|
+
const bIsExact = b.inexactCount === 0;
|
|
94
|
+
if (aIsExact !== bIsExact) {
|
|
95
|
+
return aIsExact ? a : b;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Then compare field counts
|
|
99
|
+
const actualFieldCountA = a.fieldCount - a.zeroDefaultCount;
|
|
100
|
+
const actualFieldCountB = b.fieldCount - b.zeroDefaultCount;
|
|
101
|
+
if (actualFieldCountA !== actualFieldCountB) {
|
|
102
|
+
return actualFieldCountA > actualFieldCountB ? a : b;
|
|
103
|
+
}
|
|
104
|
+
return a.inexactCount < b.inexactCount ? a : b;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Counts the number of fields in a parsed value recursively.
|
|
109
|
+
* @param `parsed` assumed to *not* contain cycles
|
|
110
|
+
* fieldCount: total number of fields found
|
|
111
|
+
* inexactCount: number of primitive values that are not unrecognized enum values
|
|
112
|
+
*/
|
|
113
|
+
function countFieldsRecursive(parsed: unknown): number {
|
|
114
|
+
let fieldCount = 0;
|
|
115
|
+
|
|
116
|
+
const queue: unknown[] = [parsed];
|
|
117
|
+
let index = 0;
|
|
118
|
+
|
|
119
|
+
while (index < queue.length) {
|
|
120
|
+
const value = queue[index++];
|
|
121
|
+
if (value === undefined) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Check if it's a primitive value
|
|
126
|
+
const type = typeof value;
|
|
127
|
+
if (
|
|
128
|
+
value === null
|
|
129
|
+
|| type === "number"
|
|
130
|
+
|| type === "string"
|
|
131
|
+
|| type === "boolean"
|
|
132
|
+
|| type === "bigint"
|
|
133
|
+
|| value instanceof Date
|
|
134
|
+
|| value instanceof RFCDate
|
|
135
|
+
) {
|
|
136
|
+
fieldCount++;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Handle arrays
|
|
141
|
+
if (Array.isArray(value)) {
|
|
142
|
+
queue.push(...value);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Handle objects
|
|
147
|
+
if (type === "object") {
|
|
148
|
+
queue.push(...Object.values(value));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return fieldCount;
|
|
153
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export function isReadableStream<T = Uint8Array>(
|
|
6
|
+
val: unknown,
|
|
7
|
+
): val is ReadableStream<T> {
|
|
8
|
+
if (typeof val !== "object" || val === null) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Check for the presence of methods specific to ReadableStream
|
|
13
|
+
const stream = val as ReadableStream<Uint8Array>;
|
|
14
|
+
|
|
15
|
+
// ReadableStream has methods like getReader, cancel, and tee
|
|
16
|
+
return (
|
|
17
|
+
typeof stream.getReader === "function" &&
|
|
18
|
+
typeof stream.cancel === "function" &&
|
|
19
|
+
typeof stream.tee === "function"
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare const __brand: unique symbol;
|
|
6
|
+
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
7
|
+
|
|
8
|
+
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value as Unrecognized<T>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let globalCount = 0;
|
|
14
|
+
let refCount = 0;
|
|
15
|
+
export function startCountingUnrecognized() {
|
|
16
|
+
refCount++;
|
|
17
|
+
const start = globalCount;
|
|
18
|
+
return {
|
|
19
|
+
/**
|
|
20
|
+
* Ends counting and returns the delta.
|
|
21
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
22
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
23
|
+
* If not provided, records all counts since start().
|
|
24
|
+
*/
|
|
25
|
+
end: (delta?: number) => {
|
|
26
|
+
const count = globalCount - start;
|
|
27
|
+
// Reset globalCount back to start, then add only the specified delta
|
|
28
|
+
globalCount = start + (delta ?? count);
|
|
29
|
+
if (--refCount === 0) globalCount = 0;
|
|
30
|
+
return count;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { unrecognized };
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
|
|
8
|
+
"module": "Node16",
|
|
9
|
+
"moduleResolution": "Node16",
|
|
10
|
+
|
|
11
|
+
"allowJs": true,
|
|
12
|
+
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"declarationMap": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"outDir": ".",
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json
|
|
20
|
+
"strict": true,
|
|
21
|
+
"allowUnusedLabels": false,
|
|
22
|
+
"allowUnreachableCode": false,
|
|
23
|
+
"exactOptionalPropertyTypes": true,
|
|
24
|
+
"useUnknownInCatchVariables": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true,
|
|
26
|
+
"noImplicitOverride": true,
|
|
27
|
+
"noImplicitReturns": true,
|
|
28
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
29
|
+
"noUncheckedIndexedAccess": true,
|
|
30
|
+
"noUnusedLocals": true,
|
|
31
|
+
"noUnusedParameters": true,
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
"checkJs": true,
|
|
34
|
+
"esModuleInterop": true,
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"forceConsistentCasingInFileNames": true
|
|
37
|
+
},
|
|
38
|
+
"include": ["src"],
|
|
39
|
+
"exclude": ["node_modules"]
|
|
40
|
+
}
|