@zyno-io/ts-server-foundation 26.712.36
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/README.md +31 -0
- package/dist/devconsole/assets/index-BlWLbczn.css +1 -0
- package/dist/devconsole/assets/index-lSF6DUY3.js +3 -0
- package/dist/devconsole/index.html +13 -0
- package/dist/src/app/base.d.ts +66 -0
- package/dist/src/app/base.d.ts.map +1 -0
- package/dist/src/app/base.js +577 -0
- package/dist/src/app/base.js.map +1 -0
- package/dist/src/app/commands.d.ts +20 -0
- package/dist/src/app/commands.d.ts.map +1 -0
- package/dist/src/app/commands.js +17 -0
- package/dist/src/app/commands.js.map +1 -0
- package/dist/src/app/config-loader.d.ts +9 -0
- package/dist/src/app/config-loader.d.ts.map +1 -0
- package/dist/src/app/config-loader.js +91 -0
- package/dist/src/app/config-loader.js.map +1 -0
- package/dist/src/app/config.d.ts +96 -0
- package/dist/src/app/config.d.ts.map +1 -0
- package/dist/src/app/config.js +114 -0
- package/dist/src/app/config.js.map +1 -0
- package/dist/src/app/const.d.ts +5 -0
- package/dist/src/app/const.d.ts.map +1 -0
- package/dist/src/app/const.js +17 -0
- package/dist/src/app/const.js.map +1 -0
- package/dist/src/app/current.d.ts +5 -0
- package/dist/src/app/current.d.ts.map +1 -0
- package/dist/src/app/current.js +14 -0
- package/dist/src/app/current.js.map +1 -0
- package/dist/src/app/index.d.ts +8 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/app/index.js +13 -0
- package/dist/src/app/index.js.map +1 -0
- package/dist/src/app/lifecycle.d.ts +9 -0
- package/dist/src/app/lifecycle.d.ts.map +1 -0
- package/dist/src/app/lifecycle.js +21 -0
- package/dist/src/app/lifecycle.js.map +1 -0
- package/dist/src/app/migrations-entrypoint.d.ts +3 -0
- package/dist/src/app/migrations-entrypoint.d.ts.map +1 -0
- package/dist/src/app/migrations-entrypoint.js +35 -0
- package/dist/src/app/migrations-entrypoint.js.map +1 -0
- package/dist/src/app/resolver.d.ts +6 -0
- package/dist/src/app/resolver.d.ts.map +1 -0
- package/dist/src/app/resolver.js +15 -0
- package/dist/src/app/resolver.js.map +1 -0
- package/dist/src/auth/index.d.ts +3 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/index.js +15 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/auth/jwt.d.ts +61 -0
- package/dist/src/auth/jwt.d.ts.map +1 -0
- package/dist/src/auth/jwt.js +379 -0
- package/dist/src/auth/jwt.js.map +1 -0
- package/dist/src/auth/provider.d.ts +21 -0
- package/dist/src/auth/provider.d.ts.map +1 -0
- package/dist/src/auth/provider.js +148 -0
- package/dist/src/auth/provider.js.map +1 -0
- package/dist/src/cli/common.d.ts +13 -0
- package/dist/src/cli/common.d.ts.map +1 -0
- package/dist/src/cli/common.js +99 -0
- package/dist/src/cli/common.js.map +1 -0
- package/dist/src/cli/tsf-create-app.d.ts +3 -0
- package/dist/src/cli/tsf-create-app.d.ts.map +1 -0
- package/dist/src/cli/tsf-create-app.js +89 -0
- package/dist/src/cli/tsf-create-app.js.map +1 -0
- package/dist/src/cli/tsf-dev.d.ts +3 -0
- package/dist/src/cli/tsf-dev.d.ts.map +1 -0
- package/dist/src/cli/tsf-dev.js +753 -0
- package/dist/src/cli/tsf-dev.js.map +1 -0
- package/dist/src/cli/tsf-gen-proto.d.ts +3 -0
- package/dist/src/cli/tsf-gen-proto.d.ts.map +1 -0
- package/dist/src/cli/tsf-gen-proto.js +134 -0
- package/dist/src/cli/tsf-gen-proto.js.map +1 -0
- package/dist/src/cli/tsf-install.d.ts +8 -0
- package/dist/src/cli/tsf-install.d.ts.map +1 -0
- package/dist/src/cli/tsf-install.js +424 -0
- package/dist/src/cli/tsf-install.js.map +1 -0
- package/dist/src/cli/tsf-migrate.d.ts +3 -0
- package/dist/src/cli/tsf-migrate.d.ts.map +1 -0
- package/dist/src/cli/tsf-migrate.js +271 -0
- package/dist/src/cli/tsf-migrate.js.map +1 -0
- package/dist/src/cli/tsf-test.d.ts +4 -0
- package/dist/src/cli/tsf-test.d.ts.map +1 -0
- package/dist/src/cli/tsf-test.js +350 -0
- package/dist/src/cli/tsf-test.js.map +1 -0
- package/dist/src/cli/tsf-update.d.ts +3 -0
- package/dist/src/cli/tsf-update.d.ts.map +1 -0
- package/dist/src/cli/tsf-update.js +12 -0
- package/dist/src/cli/tsf-update.js.map +1 -0
- package/dist/src/cli/tsf.d.ts +3 -0
- package/dist/src/cli/tsf.d.ts.map +1 -0
- package/dist/src/cli/tsf.js +29 -0
- package/dist/src/cli/tsf.js.map +1 -0
- package/dist/src/database/database.d.ts +54 -0
- package/dist/src/database/database.d.ts.map +1 -0
- package/dist/src/database/database.js +695 -0
- package/dist/src/database/database.js.map +1 -0
- package/dist/src/database/driver.d.ts +28 -0
- package/dist/src/database/driver.d.ts.map +1 -0
- package/dist/src/database/driver.js +5 -0
- package/dist/src/database/driver.js.map +1 -0
- package/dist/src/database/drivers/index.d.ts +4 -0
- package/dist/src/database/drivers/index.d.ts.map +1 -0
- package/dist/src/database/drivers/index.js +9 -0
- package/dist/src/database/drivers/index.js.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts +40 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.js +180 -0
- package/dist/src/database/drivers/mysql-session-rpc.js.map +1 -0
- package/dist/src/database/drivers/mysql-session.d.ts +25 -0
- package/dist/src/database/drivers/mysql-session.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session.js +124 -0
- package/dist/src/database/drivers/mysql-session.js.map +1 -0
- package/dist/src/database/drivers/mysql.d.ts +20 -0
- package/dist/src/database/drivers/mysql.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql.js +84 -0
- package/dist/src/database/drivers/mysql.js.map +1 -0
- package/dist/src/database/drivers/postgres.d.ts +22 -0
- package/dist/src/database/drivers/postgres.d.ts.map +1 -0
- package/dist/src/database/drivers/postgres.js +80 -0
- package/dist/src/database/drivers/postgres.js.map +1 -0
- package/dist/src/database/entity.d.ts +112 -0
- package/dist/src/database/entity.d.ts.map +1 -0
- package/dist/src/database/entity.js +333 -0
- package/dist/src/database/entity.js.map +1 -0
- package/dist/src/database/errors.d.ts +7 -0
- package/dist/src/database/errors.d.ts.map +1 -0
- package/dist/src/database/errors.js +34 -0
- package/dist/src/database/errors.js.map +1 -0
- package/dist/src/database/factory.d.ts +48 -0
- package/dist/src/database/factory.d.ts.map +1 -0
- package/dist/src/database/factory.js +139 -0
- package/dist/src/database/factory.js.map +1 -0
- package/dist/src/database/identifiers.d.ts +8 -0
- package/dist/src/database/identifiers.d.ts.map +1 -0
- package/dist/src/database/identifiers.js +46 -0
- package/dist/src/database/identifiers.js.map +1 -0
- package/dist/src/database/index.d.ts +14 -0
- package/dist/src/database/index.d.ts.map +1 -0
- package/dist/src/database/index.js +33 -0
- package/dist/src/database/index.js.map +1 -0
- package/dist/src/database/metadata.d.ts +27 -0
- package/dist/src/database/metadata.d.ts.map +1 -0
- package/dist/src/database/metadata.js +70 -0
- package/dist/src/database/metadata.js.map +1 -0
- package/dist/src/database/migration/create/comparator.d.ts +3 -0
- package/dist/src/database/migration/create/comparator.d.ts.map +1 -0
- package/dist/src/database/migration/create/comparator.js +302 -0
- package/dist/src/database/migration/create/comparator.js.map +1 -0
- package/dist/src/database/migration/create/db-reader.d.ts +9 -0
- package/dist/src/database/migration/create/db-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/db-reader.js +478 -0
- package/dist/src/database/migration/create/db-reader.js.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts +4 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.js +431 -0
- package/dist/src/database/migration/create/ddl-generator.js.map +1 -0
- package/dist/src/database/migration/create/entity-reader.d.ts +7 -0
- package/dist/src/database/migration/create/entity-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/entity-reader.js +169 -0
- package/dist/src/database/migration/create/entity-reader.js.map +1 -0
- package/dist/src/database/migration/create/file-generator.d.ts +7 -0
- package/dist/src/database/migration/create/file-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/file-generator.js +60 -0
- package/dist/src/database/migration/create/file-generator.js.map +1 -0
- package/dist/src/database/migration/create/index.d.ts +19 -0
- package/dist/src/database/migration/create/index.d.ts.map +1 -0
- package/dist/src/database/migration/create/index.js +102 -0
- package/dist/src/database/migration/create/index.js.map +1 -0
- package/dist/src/database/migration/create/schema-model.d.ts +99 -0
- package/dist/src/database/migration/create/schema-model.d.ts.map +1 -0
- package/dist/src/database/migration/create/schema-model.js +24 -0
- package/dist/src/database/migration/create/schema-model.js.map +1 -0
- package/dist/src/database/migration/create/type-mapper.d.ts +13 -0
- package/dist/src/database/migration/create/type-mapper.d.ts.map +1 -0
- package/dist/src/database/migration/create/type-mapper.js +293 -0
- package/dist/src/database/migration/create/type-mapper.js.map +1 -0
- package/dist/src/database/migration/index.d.ts +33 -0
- package/dist/src/database/migration/index.d.ts.map +1 -0
- package/dist/src/database/migration/index.js +165 -0
- package/dist/src/database/migration/index.js.map +1 -0
- package/dist/src/database/migration/maintenance.d.ts +26 -0
- package/dist/src/database/migration/maintenance.d.ts.map +1 -0
- package/dist/src/database/migration/maintenance.js +65 -0
- package/dist/src/database/migration/maintenance.js.map +1 -0
- package/dist/src/database/query.d.ts +79 -0
- package/dist/src/database/query.d.ts.map +1 -0
- package/dist/src/database/query.js +435 -0
- package/dist/src/database/query.js.map +1 -0
- package/dist/src/database/schema.d.ts +147 -0
- package/dist/src/database/schema.d.ts.map +1 -0
- package/dist/src/database/schema.js +709 -0
- package/dist/src/database/schema.js.map +1 -0
- package/dist/src/database/session.d.ts +63 -0
- package/dist/src/database/session.d.ts.map +1 -0
- package/dist/src/database/session.js +226 -0
- package/dist/src/database/session.js.map +1 -0
- package/dist/src/database/sql.d.ts +37 -0
- package/dist/src/database/sql.d.ts.map +1 -0
- package/dist/src/database/sql.js +143 -0
- package/dist/src/database/sql.js.map +1 -0
- package/dist/src/database/values.d.ts +6 -0
- package/dist/src/database/values.d.ts.map +1 -0
- package/dist/src/database/values.js +237 -0
- package/dist/src/database/values.js.map +1 -0
- package/dist/src/devconsole/controller.d.ts +11 -0
- package/dist/src/devconsole/controller.d.ts.map +1 -0
- package/dist/src/devconsole/controller.js +78 -0
- package/dist/src/devconsole/controller.js.map +1 -0
- package/dist/src/devconsole/generated/devconsole.d.ts +306 -0
- package/dist/src/devconsole/generated/devconsole.d.ts.map +1 -0
- package/dist/src/devconsole/generated/devconsole.js +4029 -0
- package/dist/src/devconsole/generated/devconsole.js.map +1 -0
- package/dist/src/devconsole/index.d.ts +10 -0
- package/dist/src/devconsole/index.d.ts.map +1 -0
- package/dist/src/devconsole/index.js +26 -0
- package/dist/src/devconsole/index.js.map +1 -0
- package/dist/src/devconsole/observers.d.ts +4 -0
- package/dist/src/devconsole/observers.d.ts.map +1 -0
- package/dist/src/devconsole/observers.js +170 -0
- package/dist/src/devconsole/observers.js.map +1 -0
- package/dist/src/devconsole/runtime.d.ts +16 -0
- package/dist/src/devconsole/runtime.d.ts.map +1 -0
- package/dist/src/devconsole/runtime.js +48 -0
- package/dist/src/devconsole/runtime.js.map +1 -0
- package/dist/src/devconsole/security.d.ts +8 -0
- package/dist/src/devconsole/security.d.ts.map +1 -0
- package/dist/src/devconsole/security.js +33 -0
- package/dist/src/devconsole/security.js.map +1 -0
- package/dist/src/devconsole/server.d.ts +25 -0
- package/dist/src/devconsole/server.d.ts.map +1 -0
- package/dist/src/devconsole/server.js +452 -0
- package/dist/src/devconsole/server.js.map +1 -0
- package/dist/src/devconsole/store.d.ts +111 -0
- package/dist/src/devconsole/store.d.ts.map +1 -0
- package/dist/src/devconsole/store.js +177 -0
- package/dist/src/devconsole/store.js.map +1 -0
- package/dist/src/di/container.d.ts +38 -0
- package/dist/src/di/container.d.ts.map +1 -0
- package/dist/src/di/container.js +252 -0
- package/dist/src/di/container.js.map +1 -0
- package/dist/src/di/errors.d.ts +18 -0
- package/dist/src/di/errors.d.ts.map +1 -0
- package/dist/src/di/errors.js +71 -0
- package/dist/src/di/errors.js.map +1 -0
- package/dist/src/di/index.d.ts +5 -0
- package/dist/src/di/index.d.ts.map +1 -0
- package/dist/src/di/index.js +10 -0
- package/dist/src/di/index.js.map +1 -0
- package/dist/src/di/module.d.ts +29 -0
- package/dist/src/di/module.d.ts.map +1 -0
- package/dist/src/di/module.js +42 -0
- package/dist/src/di/module.js.map +1 -0
- package/dist/src/di/provider.d.ts +34 -0
- package/dist/src/di/provider.d.ts.map +1 -0
- package/dist/src/di/provider.js +24 -0
- package/dist/src/di/provider.js.map +1 -0
- package/dist/src/env.d.ts +122 -0
- package/dist/src/env.d.ts.map +1 -0
- package/dist/src/env.js +61 -0
- package/dist/src/env.js.map +1 -0
- package/dist/src/events/event-bus.d.ts +26 -0
- package/dist/src/events/event-bus.d.ts.map +1 -0
- package/dist/src/events/event-bus.js +67 -0
- package/dist/src/events/event-bus.js.map +1 -0
- package/dist/src/events/index.d.ts +2 -0
- package/dist/src/events/index.d.ts.map +1 -0
- package/dist/src/events/index.js +7 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/health/healthcheck.controller.d.ts +9 -0
- package/dist/src/health/healthcheck.controller.d.ts.map +1 -0
- package/dist/src/health/healthcheck.controller.js +33 -0
- package/dist/src/health/healthcheck.controller.js.map +1 -0
- package/dist/src/health/healthcheck.service.d.ts +13 -0
- package/dist/src/health/healthcheck.service.d.ts.map +1 -0
- package/dist/src/health/healthcheck.service.js +37 -0
- package/dist/src/health/healthcheck.service.js.map +1 -0
- package/dist/src/health/index.d.ts +3 -0
- package/dist/src/health/index.d.ts.map +1 -0
- package/dist/src/health/index.js +8 -0
- package/dist/src/health/index.js.map +1 -0
- package/dist/src/helpers/async/context.d.ts +10 -0
- package/dist/src/helpers/async/context.d.ts.map +1 -0
- package/dist/src/helpers/async/context.js +52 -0
- package/dist/src/helpers/async/context.js.map +1 -0
- package/dist/src/helpers/async/process.d.ts +16 -0
- package/dist/src/helpers/async/process.d.ts.map +1 -0
- package/dist/src/helpers/async/process.js +62 -0
- package/dist/src/helpers/async/process.js.map +1 -0
- package/dist/src/helpers/async/promise.d.ts +11 -0
- package/dist/src/helpers/async/promise.d.ts.map +1 -0
- package/dist/src/helpers/async/promise.js +32 -0
- package/dist/src/helpers/async/promise.js.map +1 -0
- package/dist/src/helpers/data/array.d.ts +5 -0
- package/dist/src/helpers/data/array.d.ts.map +1 -0
- package/dist/src/helpers/data/array.js +27 -0
- package/dist/src/helpers/data/array.js.map +1 -0
- package/dist/src/helpers/data/objects.d.ts +13 -0
- package/dist/src/helpers/data/objects.d.ts.map +1 -0
- package/dist/src/helpers/data/objects.js +55 -0
- package/dist/src/helpers/data/objects.js.map +1 -0
- package/dist/src/helpers/data/serialization.d.ts +5 -0
- package/dist/src/helpers/data/serialization.d.ts.map +1 -0
- package/dist/src/helpers/data/serialization.js +25 -0
- package/dist/src/helpers/data/serialization.js.map +1 -0
- package/dist/src/helpers/data/transformer.d.ts +13 -0
- package/dist/src/helpers/data/transformer.d.ts.map +1 -0
- package/dist/src/helpers/data/transformer.js +50 -0
- package/dist/src/helpers/data/transformer.js.map +1 -0
- package/dist/src/helpers/index.d.ts +19 -0
- package/dist/src/helpers/index.d.ts.map +1 -0
- package/dist/src/helpers/index.js +30 -0
- package/dist/src/helpers/index.js.map +1 -0
- package/dist/src/helpers/io/package.d.ts +10 -0
- package/dist/src/helpers/io/package.d.ts.map +1 -0
- package/dist/src/helpers/io/package.js +35 -0
- package/dist/src/helpers/io/package.js.map +1 -0
- package/dist/src/helpers/io/stream.d.ts +18 -0
- package/dist/src/helpers/io/stream.d.ts.map +1 -0
- package/dist/src/helpers/io/stream.js +131 -0
- package/dist/src/helpers/io/stream.js.map +1 -0
- package/dist/src/helpers/redis/broadcast.d.ts +15 -0
- package/dist/src/helpers/redis/broadcast.d.ts.map +1 -0
- package/dist/src/helpers/redis/broadcast.js +93 -0
- package/dist/src/helpers/redis/broadcast.js.map +1 -0
- package/dist/src/helpers/redis/cache.d.ts +20 -0
- package/dist/src/helpers/redis/cache.d.ts.map +1 -0
- package/dist/src/helpers/redis/cache.js +57 -0
- package/dist/src/helpers/redis/cache.js.map +1 -0
- package/dist/src/helpers/redis/mutex.d.ts +45 -0
- package/dist/src/helpers/redis/mutex.d.ts.map +1 -0
- package/dist/src/helpers/redis/mutex.js +446 -0
- package/dist/src/helpers/redis/mutex.js.map +1 -0
- package/dist/src/helpers/redis/redis.d.ts +12 -0
- package/dist/src/helpers/redis/redis.d.ts.map +1 -0
- package/dist/src/helpers/redis/redis.js +62 -0
- package/dist/src/helpers/redis/redis.js.map +1 -0
- package/dist/src/helpers/security/crypto.d.ts +31 -0
- package/dist/src/helpers/security/crypto.d.ts.map +1 -0
- package/dist/src/helpers/security/crypto.js +108 -0
- package/dist/src/helpers/security/crypto.js.map +1 -0
- package/dist/src/helpers/security/validation.d.ts +3 -0
- package/dist/src/helpers/security/validation.d.ts.map +1 -0
- package/dist/src/helpers/security/validation.js +14 -0
- package/dist/src/helpers/security/validation.js.map +1 -0
- package/dist/src/helpers/utils/date.d.ts +4 -0
- package/dist/src/helpers/utils/date.d.ts.map +1 -0
- package/dist/src/helpers/utils/date.js +16 -0
- package/dist/src/helpers/utils/date.js.map +1 -0
- package/dist/src/helpers/utils/error.d.ts +20 -0
- package/dist/src/helpers/utils/error.d.ts.map +1 -0
- package/dist/src/helpers/utils/error.js +164 -0
- package/dist/src/helpers/utils/error.js.map +1 -0
- package/dist/src/helpers/utils/uuid.d.ts +5 -0
- package/dist/src/helpers/utils/uuid.d.ts.map +1 -0
- package/dist/src/helpers/utils/uuid.js +13 -0
- package/dist/src/helpers/utils/uuid.js.map +1 -0
- package/dist/src/http/auth.d.ts +20 -0
- package/dist/src/http/auth.d.ts.map +1 -0
- package/dist/src/http/auth.js +68 -0
- package/dist/src/http/auth.js.map +1 -0
- package/dist/src/http/base.d.ts +57 -0
- package/dist/src/http/base.d.ts.map +1 -0
- package/dist/src/http/base.js +331 -0
- package/dist/src/http/base.js.map +1 -0
- package/dist/src/http/context.d.ts +6 -0
- package/dist/src/http/context.d.ts.map +1 -0
- package/dist/src/http/context.js +26 -0
- package/dist/src/http/context.js.map +1 -0
- package/dist/src/http/cors.d.ts +25 -0
- package/dist/src/http/cors.d.ts.map +1 -0
- package/dist/src/http/cors.js +124 -0
- package/dist/src/http/cors.js.map +1 -0
- package/dist/src/http/decorators.d.ts +64 -0
- package/dist/src/http/decorators.d.ts.map +1 -0
- package/dist/src/http/decorators.js +102 -0
- package/dist/src/http/decorators.js.map +1 -0
- package/dist/src/http/errors.d.ts +50 -0
- package/dist/src/http/errors.d.ts.map +1 -0
- package/dist/src/http/errors.js +158 -0
- package/dist/src/http/errors.js.map +1 -0
- package/dist/src/http/index.d.ts +31 -0
- package/dist/src/http/index.d.ts.map +1 -0
- package/dist/src/http/index.js +33 -0
- package/dist/src/http/index.js.map +1 -0
- package/dist/src/http/middleware.d.ts +12 -0
- package/dist/src/http/middleware.d.ts.map +1 -0
- package/dist/src/http/middleware.js +31 -0
- package/dist/src/http/middleware.js.map +1 -0
- package/dist/src/http/parameter-resolvers.d.ts +3 -0
- package/dist/src/http/parameter-resolvers.d.ts.map +1 -0
- package/dist/src/http/parameter-resolvers.js +8 -0
- package/dist/src/http/parameter-resolvers.js.map +1 -0
- package/dist/src/http/request-logging.d.ts +34 -0
- package/dist/src/http/request-logging.d.ts.map +1 -0
- package/dist/src/http/request-logging.js +130 -0
- package/dist/src/http/request-logging.js.map +1 -0
- package/dist/src/http/request.d.ts +69 -0
- package/dist/src/http/request.d.ts.map +1 -0
- package/dist/src/http/request.js +366 -0
- package/dist/src/http/request.js.map +1 -0
- package/dist/src/http/response.d.ts +98 -0
- package/dist/src/http/response.d.ts.map +1 -0
- package/dist/src/http/response.js +292 -0
- package/dist/src/http/response.js.map +1 -0
- package/dist/src/http/router.d.ts +100 -0
- package/dist/src/http/router.d.ts.map +1 -0
- package/dist/src/http/router.js +1085 -0
- package/dist/src/http/router.js.map +1 -0
- package/dist/src/http/startup-logging.d.ts +8 -0
- package/dist/src/http/startup-logging.d.ts.map +1 -0
- package/dist/src/http/startup-logging.js +55 -0
- package/dist/src/http/startup-logging.js.map +1 -0
- package/dist/src/http/static-files.d.ts +15 -0
- package/dist/src/http/static-files.d.ts.map +1 -0
- package/dist/src/http/static-files.js +110 -0
- package/dist/src/http/static-files.js.map +1 -0
- package/dist/src/http/store.d.ts +8 -0
- package/dist/src/http/store.d.ts.map +1 -0
- package/dist/src/http/store.js +47 -0
- package/dist/src/http/store.js.map +1 -0
- package/dist/src/http/types.d.ts +23 -0
- package/dist/src/http/types.d.ts.map +1 -0
- package/dist/src/http/types.js +3 -0
- package/dist/src/http/types.js.map +1 -0
- package/dist/src/http/upgrade.d.ts +22 -0
- package/dist/src/http/upgrade.d.ts.map +1 -0
- package/dist/src/http/upgrade.js +164 -0
- package/dist/src/http/upgrade.js.map +1 -0
- package/dist/src/http/uploads.d.ts +36 -0
- package/dist/src/http/uploads.d.ts.map +1 -0
- package/dist/src/http/uploads.js +287 -0
- package/dist/src/http/uploads.js.map +1 -0
- package/dist/src/http/workflow.d.ts +34 -0
- package/dist/src/http/workflow.d.ts.map +1 -0
- package/dist/src/http/workflow.js +40 -0
- package/dist/src/http/workflow.js.map +1 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +88 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/openapi/controller.d.ts +9 -0
- package/dist/src/openapi/controller.d.ts.map +1 -0
- package/dist/src/openapi/controller.js +45 -0
- package/dist/src/openapi/controller.js.map +1 -0
- package/dist/src/openapi/index.d.ts +5 -0
- package/dist/src/openapi/index.d.ts.map +1 -0
- package/dist/src/openapi/index.js +21 -0
- package/dist/src/openapi/index.js.map +1 -0
- package/dist/src/openapi/schema.d.ts +26 -0
- package/dist/src/openapi/schema.d.ts.map +1 -0
- package/dist/src/openapi/schema.js +1128 -0
- package/dist/src/openapi/schema.js.map +1 -0
- package/dist/src/openapi/serializer.d.ts +16 -0
- package/dist/src/openapi/serializer.d.ts.map +1 -0
- package/dist/src/openapi/serializer.js +506 -0
- package/dist/src/openapi/serializer.js.map +1 -0
- package/dist/src/openapi/types.d.ts +84 -0
- package/dist/src/openapi/types.d.ts.map +1 -0
- package/dist/src/openapi/types.js +5 -0
- package/dist/src/openapi/types.js.map +1 -0
- package/dist/src/reflection/annotations.d.ts +15 -0
- package/dist/src/reflection/annotations.d.ts.map +1 -0
- package/dist/src/reflection/annotations.js +228 -0
- package/dist/src/reflection/annotations.js.map +1 -0
- package/dist/src/reflection/conversion.d.ts +15 -0
- package/dist/src/reflection/conversion.d.ts.map +1 -0
- package/dist/src/reflection/conversion.js +360 -0
- package/dist/src/reflection/conversion.js.map +1 -0
- package/dist/src/reflection/deserializer.d.ts +15 -0
- package/dist/src/reflection/deserializer.d.ts.map +1 -0
- package/dist/src/reflection/deserializer.js +42 -0
- package/dist/src/reflection/deserializer.js.map +1 -0
- package/dist/src/reflection/entity.d.ts +9 -0
- package/dist/src/reflection/entity.d.ts.map +1 -0
- package/dist/src/reflection/entity.js +74 -0
- package/dist/src/reflection/entity.js.map +1 -0
- package/dist/src/reflection/errors.d.ts +8 -0
- package/dist/src/reflection/errors.d.ts.map +1 -0
- package/dist/src/reflection/errors.js +21 -0
- package/dist/src/reflection/errors.js.map +1 -0
- package/dist/src/reflection/index.d.ts +8 -0
- package/dist/src/reflection/index.d.ts.map +1 -0
- package/dist/src/reflection/index.js +13 -0
- package/dist/src/reflection/index.js.map +1 -0
- package/dist/src/reflection/metadata-store.d.ts +14 -0
- package/dist/src/reflection/metadata-store.d.ts.map +1 -0
- package/dist/src/reflection/metadata-store.js +18 -0
- package/dist/src/reflection/metadata-store.js.map +1 -0
- package/dist/src/reflection/model.d.ts +271 -0
- package/dist/src/reflection/model.d.ts.map +1 -0
- package/dist/src/reflection/model.js +36 -0
- package/dist/src/reflection/model.js.map +1 -0
- package/dist/src/reflection/reflection-class.d.ts +60 -0
- package/dist/src/reflection/reflection-class.d.ts.map +1 -0
- package/dist/src/reflection/reflection-class.js +263 -0
- package/dist/src/reflection/reflection-class.js.map +1 -0
- package/dist/src/reflection/type-utils.d.ts +34 -0
- package/dist/src/reflection/type-utils.d.ts.map +1 -0
- package/dist/src/reflection/type-utils.js +485 -0
- package/dist/src/reflection/type-utils.js.map +1 -0
- package/dist/src/reflection.d.ts +2 -0
- package/dist/src/reflection.d.ts.map +1 -0
- package/dist/src/reflection.js +5 -0
- package/dist/src/reflection.js.map +1 -0
- package/dist/src/services/cli.d.ts +9 -0
- package/dist/src/services/cli.d.ts.map +1 -0
- package/dist/src/services/cli.js +47 -0
- package/dist/src/services/cli.js.map +1 -0
- package/dist/src/services/index.d.ts +8 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +13 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/leader.d.ts +31 -0
- package/dist/src/services/leader.d.ts.map +1 -0
- package/dist/src/services/leader.js +176 -0
- package/dist/src/services/leader.js.map +1 -0
- package/dist/src/services/logger.d.ts +60 -0
- package/dist/src/services/logger.d.ts.map +1 -0
- package/dist/src/services/logger.js +349 -0
- package/dist/src/services/logger.js.map +1 -0
- package/dist/src/services/mail/index.d.ts +57 -0
- package/dist/src/services/mail/index.d.ts.map +1 -0
- package/dist/src/services/mail/index.js +89 -0
- package/dist/src/services/mail/index.js.map +1 -0
- package/dist/src/services/mail/postmark.d.ts +11 -0
- package/dist/src/services/mail/postmark.d.ts.map +1 -0
- package/dist/src/services/mail/postmark.js +41 -0
- package/dist/src/services/mail/postmark.js.map +1 -0
- package/dist/src/services/mail/smtp.d.ts +11 -0
- package/dist/src/services/mail/smtp.d.ts.map +1 -0
- package/dist/src/services/mail/smtp.js +50 -0
- package/dist/src/services/mail/smtp.js.map +1 -0
- package/dist/src/services/mesh-client/index.d.ts +9 -0
- package/dist/src/services/mesh-client/index.d.ts.map +1 -0
- package/dist/src/services/mesh-client/index.js +18 -0
- package/dist/src/services/mesh-client/index.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts +23 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js +360 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts +16 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js +44 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts +88 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.js +222 -0
- package/dist/src/services/mesh-client/mesh-client-service.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts +95 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js +475 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js.map +1 -0
- package/dist/src/services/mesh-client/types.d.ts +36 -0
- package/dist/src/services/mesh-client/types.d.ts.map +1 -0
- package/dist/src/services/mesh-client/types.js +38 -0
- package/dist/src/services/mesh-client/types.js.map +1 -0
- package/dist/src/services/mesh.d.ts +73 -0
- package/dist/src/services/mesh.d.ts.map +1 -0
- package/dist/src/services/mesh.js +511 -0
- package/dist/src/services/mesh.js.map +1 -0
- package/dist/src/services/worker/entity.d.ts +26 -0
- package/dist/src/services/worker/entity.d.ts.map +1 -0
- package/dist/src/services/worker/entity.js +30 -0
- package/dist/src/services/worker/entity.js.map +1 -0
- package/dist/src/services/worker/index.d.ts +25 -0
- package/dist/src/services/worker/index.d.ts.map +1 -0
- package/dist/src/services/worker/index.js +52 -0
- package/dist/src/services/worker/index.js.map +1 -0
- package/dist/src/services/worker/observer.d.ts +13 -0
- package/dist/src/services/worker/observer.d.ts.map +1 -0
- package/dist/src/services/worker/observer.js +22 -0
- package/dist/src/services/worker/observer.js.map +1 -0
- package/dist/src/services/worker/queue.d.ts +38 -0
- package/dist/src/services/worker/queue.d.ts.map +1 -0
- package/dist/src/services/worker/queue.js +227 -0
- package/dist/src/services/worker/queue.js.map +1 -0
- package/dist/src/services/worker/recorder.d.ts +17 -0
- package/dist/src/services/worker/recorder.d.ts.map +1 -0
- package/dist/src/services/worker/recorder.js +88 -0
- package/dist/src/services/worker/recorder.js.map +1 -0
- package/dist/src/services/worker/runner.d.ts +37 -0
- package/dist/src/services/worker/runner.d.ts.map +1 -0
- package/dist/src/services/worker/runner.js +319 -0
- package/dist/src/services/worker/runner.js.map +1 -0
- package/dist/src/services/worker/types.d.ts +63 -0
- package/dist/src/services/worker/types.d.ts.map +1 -0
- package/dist/src/services/worker/types.js +38 -0
- package/dist/src/services/worker/types.js.map +1 -0
- package/dist/src/srpc/SrpcByteStream.d.ts +60 -0
- package/dist/src/srpc/SrpcByteStream.d.ts.map +1 -0
- package/dist/src/srpc/SrpcByteStream.js +237 -0
- package/dist/src/srpc/SrpcByteStream.js.map +1 -0
- package/dist/src/srpc/SrpcClient.d.ts +67 -0
- package/dist/src/srpc/SrpcClient.d.ts.map +1 -0
- package/dist/src/srpc/SrpcClient.js +406 -0
- package/dist/src/srpc/SrpcClient.js.map +1 -0
- package/dist/src/srpc/SrpcServer.d.ts +56 -0
- package/dist/src/srpc/SrpcServer.d.ts.map +1 -0
- package/dist/src/srpc/SrpcServer.js +519 -0
- package/dist/src/srpc/SrpcServer.js.map +1 -0
- package/dist/src/srpc/index.d.ts +9 -0
- package/dist/src/srpc/index.d.ts.map +1 -0
- package/dist/src/srpc/index.js +17 -0
- package/dist/src/srpc/index.js.map +1 -0
- package/dist/src/srpc/observer.d.ts +21 -0
- package/dist/src/srpc/observer.d.ts.map +1 -0
- package/dist/src/srpc/observer.js +22 -0
- package/dist/src/srpc/observer.js.map +1 -0
- package/dist/src/srpc/types.d.ts +92 -0
- package/dist/src/srpc/types.d.ts.map +1 -0
- package/dist/src/srpc/types.js +28 -0
- package/dist/src/srpc/types.js.map +1 -0
- package/dist/src/telemetry/index.d.ts +3 -0
- package/dist/src/telemetry/index.d.ts.map +1 -0
- package/dist/src/telemetry/index.js +22 -0
- package/dist/src/telemetry/index.js.map +1 -0
- package/dist/src/telemetry/otel/helpers.d.ts +45 -0
- package/dist/src/telemetry/otel/helpers.d.ts.map +1 -0
- package/dist/src/telemetry/otel/helpers.js +142 -0
- package/dist/src/telemetry/otel/helpers.js.map +1 -0
- package/dist/src/telemetry/otel/index.d.ts +22 -0
- package/dist/src/telemetry/otel/index.d.ts.map +1 -0
- package/dist/src/telemetry/otel/index.js +268 -0
- package/dist/src/telemetry/otel/index.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts +5 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.js +82 -0
- package/dist/src/telemetry/otel/metrics.controller.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.d.ts +2 -0
- package/dist/src/telemetry/otel/metrics.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.js +16 -0
- package/dist/src/telemetry/otel/metrics.js.map +1 -0
- package/dist/src/telemetry/sentry.d.ts +9 -0
- package/dist/src/telemetry/sentry.d.ts.map +1 -0
- package/dist/src/telemetry/sentry.js +63 -0
- package/dist/src/telemetry/sentry.js.map +1 -0
- package/dist/src/testing/database-readiness.d.ts +11 -0
- package/dist/src/testing/database-readiness.d.ts.map +1 -0
- package/dist/src/testing/database-readiness.js +102 -0
- package/dist/src/testing/database-readiness.js.map +1 -0
- package/dist/src/testing/expect.d.ts +21 -0
- package/dist/src/testing/expect.d.ts.map +1 -0
- package/dist/src/testing/expect.js +110 -0
- package/dist/src/testing/expect.js.map +1 -0
- package/dist/src/testing/fixtures.d.ts +18 -0
- package/dist/src/testing/fixtures.d.ts.map +1 -0
- package/dist/src/testing/fixtures.js +46 -0
- package/dist/src/testing/fixtures.js.map +1 -0
- package/dist/src/testing/index.d.ts +143 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js +993 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts +3 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.js +77 -0
- package/dist/src/testing/mysql-session-manager-process.js.map +1 -0
- package/dist/src/testing/mysql-session-manager.d.ts +59 -0
- package/dist/src/testing/mysql-session-manager.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager.js +910 -0
- package/dist/src/testing/mysql-session-manager.js.map +1 -0
- package/dist/src/testing/sql.d.ts +47 -0
- package/dist/src/testing/sql.d.ts.map +1 -0
- package/dist/src/testing/sql.js +313 -0
- package/dist/src/testing/sql.js.map +1 -0
- package/dist/src/type-compiler/go/ast_expression.go +161 -0
- package/dist/src/type-compiler/go/ast_metadata.go +355 -0
- package/dist/src/type-compiler/go/collect.go +806 -0
- package/dist/src/type-compiler/go/emission_plan.go +205 -0
- package/dist/src/type-compiler/go/emit_ast.go +406 -0
- package/dist/src/type-compiler/go/emit_ast_test.go +248 -0
- package/dist/src/type-compiler/go/go.mod +10 -0
- package/dist/src/type-compiler/go/plugin.go +308 -0
- package/dist/src/type-compiler/go/plugin_test.go +752 -0
- package/dist/src/type-compiler/go/precompute.go +86 -0
- package/dist/src/type-compiler/go/receive_type.go +837 -0
- package/dist/src/type-compiler/go/resolve.go +265 -0
- package/dist/src/type-compiler/go/source_scan.go +51 -0
- package/dist/src/type-compiler/go/text_parse.go +671 -0
- package/dist/src/type-compiler/go/type_expr.go +1227 -0
- package/dist/src/type-compiler/go/typia_expr.go +2119 -0
- package/dist/src/type-compiler/index.cjs +6 -0
- package/dist/src/types/index.d.ts +7 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +14 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/phone.d.ts +6 -0
- package/dist/src/types/phone.d.ts.map +1 -0
- package/dist/src/types/phone.js +64 -0
- package/dist/src/types/phone.js.map +1 -0
- package/dist/src/types/primitives.d.ts +33 -0
- package/dist/src/types/primitives.d.ts.map +1 -0
- package/dist/src/types/primitives.js +5 -0
- package/dist/src/types/primitives.js.map +1 -0
- package/dist/src/types/runtime.d.ts +5 -0
- package/dist/src/types/runtime.d.ts.map +1 -0
- package/dist/src/types/runtime.js +20 -0
- package/dist/src/types/runtime.js.map +1 -0
- package/dist/src/types/type-annotations.d.ts +28 -0
- package/dist/src/types/type-annotations.d.ts.map +1 -0
- package/dist/src/types/type-annotations.js +33 -0
- package/dist/src/types/type-annotations.js.map +1 -0
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +7 -0
- package/dist/src/types.js.map +1 -0
- package/docs/.vitepress/config.mts +85 -0
- package/docs/content/CONTRIBUTING.md +53 -0
- package/docs/content/README-DEV.md +59 -0
- package/docs/content/README.md +52 -0
- package/docs/content/authentication.md +213 -0
- package/docs/content/cli.md +214 -0
- package/docs/content/configuration.md +191 -0
- package/docs/content/database.md +476 -0
- package/docs/content/devconsole.md +148 -0
- package/docs/content/di.md +212 -0
- package/docs/content/documentation-plan.md +182 -0
- package/docs/content/env.md +120 -0
- package/docs/content/getting-started.md +324 -0
- package/docs/content/health.md +64 -0
- package/docs/content/helpers.md +294 -0
- package/docs/content/http.md +402 -0
- package/docs/content/index.md +109 -0
- package/docs/content/leader-service.md +98 -0
- package/docs/content/logging.md +225 -0
- package/docs/content/mail.md +171 -0
- package/docs/content/mesh-client.md +333 -0
- package/docs/content/mesh-service.md +255 -0
- package/docs/content/migrations.md +190 -0
- package/docs/content/openapi.md +134 -0
- package/docs/content/overview.md +98 -0
- package/docs/content/public/images/devconsole/01-dashboard.png +0 -0
- package/docs/content/public/images/devconsole/02-routes.png +0 -0
- package/docs/content/public/images/devconsole/03-openapi.png +0 -0
- package/docs/content/public/images/devconsole/04-requests.png +0 -0
- package/docs/content/public/images/devconsole/05-srpc.png +0 -0
- package/docs/content/public/images/devconsole/06-database.png +0 -0
- package/docs/content/public/images/devconsole/06b-database-log.png +0 -0
- package/docs/content/public/images/devconsole/07-health.png +0 -0
- package/docs/content/public/images/devconsole/08-mutex.png +0 -0
- package/docs/content/public/images/devconsole/09-repl.png +0 -0
- package/docs/content/public/images/devconsole/10-workers.png +0 -0
- package/docs/content/public-api.md +84 -0
- package/docs/content/redis.md +174 -0
- package/docs/content/reflection.md +180 -0
- package/docs/content/release.md +100 -0
- package/docs/content/sql.md +121 -0
- package/docs/content/srpc.md +292 -0
- package/docs/content/telemetry.md +173 -0
- package/docs/content/testing.md +327 -0
- package/docs/content/type-reflection-architecture.md +149 -0
- package/docs/content/types.md +286 -0
- package/docs/content/uploads.md +145 -0
- package/docs/content/worker.md +182 -0
- package/docs/openapi.md +3 -0
- package/package.json +124 -0
- package/resources/proto/devconsole.proto +286 -0
- package/template-app/.env.development +10 -0
- package/template-app/gitignore.tmpl +11 -0
- package/template-app/package.json.tmpl +25 -0
- package/template-app/src/app.ts +13 -0
- package/template-app/src/config.ts +5 -0
- package/template-app/src/controllers/Example.controller.ts +19 -0
- package/template-app/src/database.ts +5 -0
- package/template-app/src/entities/Example.entity.ts +9 -0
- package/template-app/src/index.ts +7 -0
- package/template-app/src/migrations/.gitkeep +2 -0
- package/template-app/src/services/Example.service.ts +20 -0
- package/template-app/tests/app.spec.ts +8 -0
- package/template-app/tsconfig.json +26 -0
- package/template-app/tsconfig.test.json +5 -0
- package/types.d.ts +4 -0
|
@@ -0,0 +1,1128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__tsfTypeAliases = void 0;
|
|
4
|
+
exports.createOpenApiSchemaContext = createOpenApiSchemaContext;
|
|
5
|
+
exports.typeToOpenApiSchema = typeToOpenApiSchema;
|
|
6
|
+
exports.listOpenApiTypeProperties = listOpenApiTypeProperties;
|
|
7
|
+
exports.unwrapOpenApiType = unwrapOpenApiType;
|
|
8
|
+
exports.allowsUndefined = allowsUndefined;
|
|
9
|
+
exports.typeHasOpenApiFileUpload = typeHasOpenApiFileUpload;
|
|
10
|
+
exports.typeRequiresOpenApiFileUpload = typeRequiresOpenApiFileUpload;
|
|
11
|
+
const reflection_1 = require("../reflection");
|
|
12
|
+
const type_utils_1 = require("../reflection/type-utils");
|
|
13
|
+
const http_1 = require("../http");
|
|
14
|
+
const uploads_1 = require("../http/uploads");
|
|
15
|
+
function createOpenApiSchemaContext() {
|
|
16
|
+
return {
|
|
17
|
+
schemas: {},
|
|
18
|
+
generating: new Set(),
|
|
19
|
+
componentNames: new WeakMap(),
|
|
20
|
+
componentTypes: new Map(),
|
|
21
|
+
objectLiteralComponents: new Map()
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function typeToOpenApiSchema(type, context = createOpenApiSchemaContext()) {
|
|
25
|
+
(0, type_utils_1.normalizeTypeMetadata)(type);
|
|
26
|
+
const schema = typeToOpenApiSchemaInternal(type, context);
|
|
27
|
+
if (shouldApplyValidationAnnotations(type))
|
|
28
|
+
applyValidationAnnotations(type, schema);
|
|
29
|
+
return schema;
|
|
30
|
+
}
|
|
31
|
+
function listOpenApiTypeProperties(type) {
|
|
32
|
+
(0, type_utils_1.normalizeTypeMetadata)(type);
|
|
33
|
+
const unwrapped = unwrapOpenApiType(type);
|
|
34
|
+
if ((0, type_utils_1.isMarkerType)(unwrapped))
|
|
35
|
+
return [];
|
|
36
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.class &&
|
|
37
|
+
!isOpenApiClassType(unwrapped, Date) &&
|
|
38
|
+
!isOpenApiClassType(unwrapped, http_1.FileUpload) &&
|
|
39
|
+
!isOpenApiClassType(unwrapped, Uint8Array) &&
|
|
40
|
+
!isOpenApiClassType(unwrapped, Buffer)) {
|
|
41
|
+
const classType = resolveOpenApiClassType(unwrapped);
|
|
42
|
+
if (!classType)
|
|
43
|
+
return [];
|
|
44
|
+
const reflection = readOpenApiReflectionClass(classType);
|
|
45
|
+
if (!reflection)
|
|
46
|
+
return [];
|
|
47
|
+
return reflection
|
|
48
|
+
.getProperties()
|
|
49
|
+
.filter(property => property.isPublic())
|
|
50
|
+
.map(property => ({
|
|
51
|
+
name: property.getNameAsString(),
|
|
52
|
+
type: property.getType(),
|
|
53
|
+
required: !property.isOptional(),
|
|
54
|
+
description: property.getDescription() || undefined
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
58
|
+
return collectObjectLiteralProperties(unwrapped)
|
|
59
|
+
.filter(property => !isTypiaInternalTagProperty(property))
|
|
60
|
+
.map(property => ({
|
|
61
|
+
name: String(property.name),
|
|
62
|
+
type: property.type,
|
|
63
|
+
required: property.optional !== true && !allowsUndefined(property.type),
|
|
64
|
+
description: property.description
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.intersection)
|
|
68
|
+
return mergeOpenApiIntersectionProperties(unwrapped);
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
function unwrapOpenApiType(type) {
|
|
72
|
+
const openApiName = getOpenApiName(type);
|
|
73
|
+
const httpInner = getHttpAliasInnerType(type);
|
|
74
|
+
if (httpInner)
|
|
75
|
+
return wrapOpenApiTypeName(unwrapOpenApiType(httpInner), openApiName);
|
|
76
|
+
if (type.kind === reflection_1.ReflectionKind.promise)
|
|
77
|
+
return wrapOpenApiTypeName(unwrapOpenApiType(type.type), openApiName);
|
|
78
|
+
if (type.kind === reflection_1.ReflectionKind.intersection) {
|
|
79
|
+
const hasOpenApiWrapper = type.types.some(item => isHttpMarkerType(item) || isOpenApiNameMarkerType(item));
|
|
80
|
+
if (!hasOpenApiWrapper)
|
|
81
|
+
return wrapOpenApiTypeName(type, openApiName);
|
|
82
|
+
const meaningful = type.types.filter(item => item.kind !== reflection_1.ReflectionKind.never &&
|
|
83
|
+
item.kind !== reflection_1.ReflectionKind.unknown &&
|
|
84
|
+
!isHttpMarkerType(item) &&
|
|
85
|
+
!isOpenApiNameMarkerType(item));
|
|
86
|
+
return wrapOpenApiTypeName(unwrapOpenApiType(meaningful[0] ?? type), openApiName);
|
|
87
|
+
}
|
|
88
|
+
return wrapOpenApiTypeName(type, openApiName);
|
|
89
|
+
}
|
|
90
|
+
function getHttpAliasInnerType(type) {
|
|
91
|
+
const typeName = type.typeName;
|
|
92
|
+
const annotation = httpAnnotationName(typeName);
|
|
93
|
+
if (!annotation)
|
|
94
|
+
return undefined;
|
|
95
|
+
return getAnnotationOptionType(type, annotation) ?? type.typeArguments?.[0];
|
|
96
|
+
}
|
|
97
|
+
function allowsUndefined(type) {
|
|
98
|
+
return (type.kind === reflection_1.ReflectionKind.any || (type.kind === reflection_1.ReflectionKind.union && type.types.some(item => item.kind === reflection_1.ReflectionKind.undefined)));
|
|
99
|
+
}
|
|
100
|
+
function typeHasOpenApiFileUpload(type, seenTypes = new Set(), seenClasses = new Set()) {
|
|
101
|
+
(0, type_utils_1.normalizeTypeMetadata)(type);
|
|
102
|
+
const unwrapped = unwrapOpenApiType(type);
|
|
103
|
+
if (seenTypes.has(unwrapped))
|
|
104
|
+
return false;
|
|
105
|
+
seenTypes.add(unwrapped);
|
|
106
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.class) {
|
|
107
|
+
if (isOpenApiClassType(unwrapped, http_1.FileUpload))
|
|
108
|
+
return true;
|
|
109
|
+
if (isOpenApiClassType(unwrapped, Date) || isOpenApiClassType(unwrapped, Uint8Array) || isOpenApiClassType(unwrapped, Buffer)) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
const classType = resolveOpenApiClassType(unwrapped);
|
|
113
|
+
if (!classType)
|
|
114
|
+
return false;
|
|
115
|
+
if (seenClasses.has(classType))
|
|
116
|
+
return false;
|
|
117
|
+
seenClasses.add(classType);
|
|
118
|
+
const reflection = readOpenApiReflectionClass(classType);
|
|
119
|
+
return reflection?.getProperties().some(property => typeHasOpenApiFileUpload(property.getType(), seenTypes, seenClasses)) ?? false;
|
|
120
|
+
}
|
|
121
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
122
|
+
return (collectObjectLiteralProperties(unwrapped).some(property => typeHasOpenApiFileUpload(property.type, seenTypes, seenClasses)) ||
|
|
123
|
+
(unwrapped.index ? typeHasOpenApiFileUpload(unwrapped.index, seenTypes, seenClasses) : false));
|
|
124
|
+
}
|
|
125
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.array)
|
|
126
|
+
return typeHasOpenApiFileUpload(unwrapped.type, seenTypes, seenClasses);
|
|
127
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.tuple)
|
|
128
|
+
return unwrapped.types.some(item => typeHasOpenApiFileUpload(item.type, seenTypes, seenClasses));
|
|
129
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.union || unwrapped.kind === reflection_1.ReflectionKind.intersection) {
|
|
130
|
+
return unwrapped.types.some(item => typeHasOpenApiFileUpload(item, seenTypes, seenClasses));
|
|
131
|
+
}
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
function typeRequiresOpenApiFileUpload(type, seenTypes = new Set(), seenClasses = new Set()) {
|
|
135
|
+
(0, type_utils_1.normalizeTypeMetadata)(type);
|
|
136
|
+
const unwrapped = unwrapOpenApiType(type);
|
|
137
|
+
if (seenTypes.has(unwrapped))
|
|
138
|
+
return false;
|
|
139
|
+
seenTypes.add(unwrapped);
|
|
140
|
+
let classType;
|
|
141
|
+
try {
|
|
142
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.class) {
|
|
143
|
+
if (isOpenApiClassType(unwrapped, http_1.FileUpload))
|
|
144
|
+
return true;
|
|
145
|
+
if (isOpenApiClassType(unwrapped, Date) || isOpenApiClassType(unwrapped, Uint8Array) || isOpenApiClassType(unwrapped, Buffer)) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
classType = resolveOpenApiClassType(unwrapped);
|
|
149
|
+
if (!classType || seenClasses.has(classType))
|
|
150
|
+
return false;
|
|
151
|
+
seenClasses.add(classType);
|
|
152
|
+
}
|
|
153
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.union) {
|
|
154
|
+
const possibleTypes = unwrapped.types.filter(item => item.kind !== reflection_1.ReflectionKind.never);
|
|
155
|
+
return possibleTypes.length > 0 && possibleTypes.every(item => typeRequiresOpenApiFileUpload(item, seenTypes, seenClasses));
|
|
156
|
+
}
|
|
157
|
+
const properties = listOpenApiTypeProperties(unwrapped);
|
|
158
|
+
if (properties.length) {
|
|
159
|
+
return properties.some(property => property.required && typeRequiresOpenApiFileUpload(property.type, seenTypes, seenClasses));
|
|
160
|
+
}
|
|
161
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.intersection) {
|
|
162
|
+
return unwrapped.types.some(item => typeRequiresOpenApiFileUpload(item, seenTypes, seenClasses));
|
|
163
|
+
}
|
|
164
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.tuple) {
|
|
165
|
+
return unwrapped.types.some(item => typeRequiresOpenApiFileUpload(item.type, seenTypes, seenClasses));
|
|
166
|
+
}
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
seenTypes.delete(unwrapped);
|
|
171
|
+
if (classType)
|
|
172
|
+
seenClasses.delete(classType);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function readOpenApiReflectionClass(classType) {
|
|
176
|
+
try {
|
|
177
|
+
return reflection_1.ReflectionClass.from(classType);
|
|
178
|
+
}
|
|
179
|
+
catch (error) {
|
|
180
|
+
if (error instanceof Error && error.message.startsWith('No runtime type metadata for '))
|
|
181
|
+
return undefined;
|
|
182
|
+
throw error;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function resolveOpenApiClassType(type) {
|
|
186
|
+
return (0, type_utils_1.tryResolveClassType)(type.classType);
|
|
187
|
+
}
|
|
188
|
+
function isOpenApiClassType(type, classType) {
|
|
189
|
+
const resolved = resolveOpenApiClassType(type);
|
|
190
|
+
return type.classType === classType || resolved === classType;
|
|
191
|
+
}
|
|
192
|
+
function typeToOpenApiSchemaInternal(type, context, preserveNamedAliases = true) {
|
|
193
|
+
const openApiType = unwrapOpenApiType(type);
|
|
194
|
+
const nullable = isNullable(openApiType);
|
|
195
|
+
const unwrapped = unwrapNullable(openApiType);
|
|
196
|
+
const schema = schemaForNonNullableType(unwrapped, context, preserveNamedAliases);
|
|
197
|
+
if (nullable)
|
|
198
|
+
return withNullableSchema(schema);
|
|
199
|
+
return schema;
|
|
200
|
+
}
|
|
201
|
+
function schemaForNonNullableType(type, context, preserveNamedAliases = true) {
|
|
202
|
+
const foundationType = getTypeAnnotation(type, 'tsf:type');
|
|
203
|
+
if (foundationType?.kind === reflection_1.ReflectionKind.literal) {
|
|
204
|
+
if (foundationType.literal === 'date')
|
|
205
|
+
return { type: 'string', format: 'date' };
|
|
206
|
+
if (foundationType.literal === 'uuid')
|
|
207
|
+
return { type: 'string', format: 'uuid' };
|
|
208
|
+
if (foundationType.literal === 'integer')
|
|
209
|
+
return { type: 'integer' };
|
|
210
|
+
if (foundationType.literal === 'phone' || foundationType.literal === 'phoneNanp')
|
|
211
|
+
return { type: 'string' };
|
|
212
|
+
}
|
|
213
|
+
if ((0, reflection_1.isUUIDType)(type))
|
|
214
|
+
return { type: 'string', format: 'uuid' };
|
|
215
|
+
if (preserveNamedAliases) {
|
|
216
|
+
const named = schemaForNamedAlias(type, context);
|
|
217
|
+
if (named)
|
|
218
|
+
return named;
|
|
219
|
+
}
|
|
220
|
+
if (type.kind === reflection_1.ReflectionKind.union)
|
|
221
|
+
return schemaForUnion(type, context);
|
|
222
|
+
const componentReference = schemaForKnownComponentReference(type, context);
|
|
223
|
+
if (componentReference)
|
|
224
|
+
return componentReference;
|
|
225
|
+
switch (type.kind) {
|
|
226
|
+
case reflection_1.ReflectionKind.any:
|
|
227
|
+
case reflection_1.ReflectionKind.unknown:
|
|
228
|
+
return {};
|
|
229
|
+
case reflection_1.ReflectionKind.void:
|
|
230
|
+
case reflection_1.ReflectionKind.undefined:
|
|
231
|
+
return {};
|
|
232
|
+
case reflection_1.ReflectionKind.null:
|
|
233
|
+
return { type: 'null' };
|
|
234
|
+
case reflection_1.ReflectionKind.string:
|
|
235
|
+
case reflection_1.ReflectionKind.templateLiteral:
|
|
236
|
+
return { type: 'string' };
|
|
237
|
+
case reflection_1.ReflectionKind.number:
|
|
238
|
+
return { type: 'number' };
|
|
239
|
+
case reflection_1.ReflectionKind.bigint:
|
|
240
|
+
return { type: 'integer', format: 'int64' };
|
|
241
|
+
case reflection_1.ReflectionKind.boolean:
|
|
242
|
+
return { type: 'boolean' };
|
|
243
|
+
case reflection_1.ReflectionKind.literal:
|
|
244
|
+
return schemaForLiteral(type.literal);
|
|
245
|
+
case reflection_1.ReflectionKind.enum:
|
|
246
|
+
return schemaForEnum(type.values);
|
|
247
|
+
case reflection_1.ReflectionKind.array:
|
|
248
|
+
return { type: 'array', items: typeToOpenApiSchema(type.type, context) };
|
|
249
|
+
case reflection_1.ReflectionKind.tuple:
|
|
250
|
+
return {
|
|
251
|
+
type: 'array',
|
|
252
|
+
items: type.types.length ? { oneOf: type.types.map(item => typeToOpenApiSchema(item.type, context)) } : {}
|
|
253
|
+
};
|
|
254
|
+
case reflection_1.ReflectionKind.class:
|
|
255
|
+
return schemaForClass(type, context);
|
|
256
|
+
case reflection_1.ReflectionKind.objectLiteral:
|
|
257
|
+
return schemaForObjectLiteral(type, context);
|
|
258
|
+
case reflection_1.ReflectionKind.object:
|
|
259
|
+
return { type: 'object', additionalProperties: true };
|
|
260
|
+
case reflection_1.ReflectionKind.intersection:
|
|
261
|
+
return schemaForIntersection(type, context);
|
|
262
|
+
default:
|
|
263
|
+
return {};
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function schemaForClass(type, context) {
|
|
267
|
+
if (isOpenApiClassType(type, Date))
|
|
268
|
+
return { type: 'string', format: 'date-time' };
|
|
269
|
+
if (isOpenApiClassType(type, Uint8Array) || isOpenApiClassType(type, Buffer))
|
|
270
|
+
return { type: 'string', format: 'binary' };
|
|
271
|
+
if (isOpenApiClassType(type, http_1.FileUpload))
|
|
272
|
+
return schemaForFileUpload(type);
|
|
273
|
+
const name = getClassComponentName(type, context);
|
|
274
|
+
return schemaForComponent(name, listOpenApiTypeProperties(type), context, type.description);
|
|
275
|
+
}
|
|
276
|
+
function schemaForFileUpload(type) {
|
|
277
|
+
const schema = { type: 'string', format: 'binary' };
|
|
278
|
+
const options = type.typeArguments?.[0];
|
|
279
|
+
if (!options)
|
|
280
|
+
return schema;
|
|
281
|
+
const value = openApiPlainValue(options);
|
|
282
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
283
|
+
return schema;
|
|
284
|
+
const record = value;
|
|
285
|
+
const maxSizeBytes = (0, uploads_1.parseByteSize)(record.maxSize);
|
|
286
|
+
const allowedTypes = (0, uploads_1.normalizeAllowedTypes)(record.allowedTypes);
|
|
287
|
+
if (maxSizeBytes !== undefined)
|
|
288
|
+
schema['x-maxSizeBytes'] = maxSizeBytes;
|
|
289
|
+
if (allowedTypes?.length)
|
|
290
|
+
schema['x-allowedTypes'] = allowedTypes;
|
|
291
|
+
return schema;
|
|
292
|
+
}
|
|
293
|
+
function openApiPlainValue(type) {
|
|
294
|
+
if (type.kind === reflection_1.ReflectionKind.literal)
|
|
295
|
+
return type.literal;
|
|
296
|
+
if (type.kind === reflection_1.ReflectionKind.tuple)
|
|
297
|
+
return type.types.map(item => openApiPlainValue(item.type));
|
|
298
|
+
if (type.kind === reflection_1.ReflectionKind.union) {
|
|
299
|
+
const concrete = type.types.filter(item => item.kind !== reflection_1.ReflectionKind.undefined && item.kind !== reflection_1.ReflectionKind.null);
|
|
300
|
+
return concrete.length === 1 ? openApiPlainValue(concrete[0]) : undefined;
|
|
301
|
+
}
|
|
302
|
+
if (type.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
303
|
+
const output = {};
|
|
304
|
+
for (const property of listOpenApiTypeProperties(type))
|
|
305
|
+
output[property.name] = openApiPlainValue(property.type);
|
|
306
|
+
return output;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
function schemaForObjectLiteral(type, context) {
|
|
310
|
+
if (isIntrinsicObjectLiteral(type))
|
|
311
|
+
return { type: 'object', additionalProperties: true };
|
|
312
|
+
const component = getObjectLiteralComponentName(type, context);
|
|
313
|
+
const indexType = getObjectLiteralIndexType(type);
|
|
314
|
+
if (!component)
|
|
315
|
+
return schemaForProperties(listOpenApiTypeProperties(type), context, type.description, indexType);
|
|
316
|
+
return schemaForComponent(component.name, listOpenApiTypeProperties(type), context, type.description, indexType, {
|
|
317
|
+
baseName: component.baseName,
|
|
318
|
+
owner: type
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
function isIntrinsicObjectLiteral(type) {
|
|
322
|
+
const typeName = type.typeName;
|
|
323
|
+
return typeName === 'object' && type.types.length === 0 && !type.index;
|
|
324
|
+
}
|
|
325
|
+
function schemaForIntersection(type, context) {
|
|
326
|
+
const properties = listOpenApiTypeProperties(type);
|
|
327
|
+
if (properties.length) {
|
|
328
|
+
const name = getIntersectionComponentName(type, context);
|
|
329
|
+
if (name)
|
|
330
|
+
return schemaForComponent(name, properties, context, type.description);
|
|
331
|
+
return schemaForProperties(properties, context, type.description);
|
|
332
|
+
}
|
|
333
|
+
const meaningful = firstMeaningfulIntersectionType(type);
|
|
334
|
+
return meaningful ? typeToOpenApiSchemaInternal(meaningful, context) : {};
|
|
335
|
+
}
|
|
336
|
+
function schemaForComponent(name, properties, context, description, indexType, options = {}) {
|
|
337
|
+
if (context.schemas[name])
|
|
338
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
339
|
+
context.schemas[name] = {};
|
|
340
|
+
if (context.generating.has(name))
|
|
341
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
342
|
+
context.generating.add(name);
|
|
343
|
+
const schema = schemaForProperties(properties, context, description, indexType);
|
|
344
|
+
context.generating.delete(name);
|
|
345
|
+
if (options.baseName && name !== options.baseName && !schemaReferencesComponent(schema, name)) {
|
|
346
|
+
const existingName = findEquivalentObjectLiteralComponent(options.baseName, name, schema, context);
|
|
347
|
+
if (existingName) {
|
|
348
|
+
delete context.schemas[name];
|
|
349
|
+
context.componentTypes.delete(name);
|
|
350
|
+
removeObjectLiteralComponent(options.baseName, name, context);
|
|
351
|
+
if (options.owner)
|
|
352
|
+
context.componentNames.set(options.owner, existingName);
|
|
353
|
+
return { $ref: `#/components/schemas/${existingName}` };
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
context.schemas[name] = schema;
|
|
357
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
358
|
+
}
|
|
359
|
+
function schemaForProperties(properties, context, description, indexType) {
|
|
360
|
+
const schema = {
|
|
361
|
+
type: 'object',
|
|
362
|
+
properties: {}
|
|
363
|
+
};
|
|
364
|
+
if (description)
|
|
365
|
+
schema.description = description;
|
|
366
|
+
if (indexType)
|
|
367
|
+
schema.additionalProperties = schemaForAdditionalProperties(indexType, context);
|
|
368
|
+
const required = [];
|
|
369
|
+
for (const property of properties) {
|
|
370
|
+
const propertySchema = typeToOpenApiSchema(property.type, context);
|
|
371
|
+
if (property.description && !('$ref' in propertySchema))
|
|
372
|
+
propertySchema.description = property.description;
|
|
373
|
+
schema.properties[property.name] = propertySchema;
|
|
374
|
+
if (property.required)
|
|
375
|
+
required.push(property.name);
|
|
376
|
+
}
|
|
377
|
+
if (required.length)
|
|
378
|
+
schema.required = required;
|
|
379
|
+
return schema;
|
|
380
|
+
}
|
|
381
|
+
function schemaForAdditionalProperties(type, context) {
|
|
382
|
+
if (type.kind === reflection_1.ReflectionKind.any || type.kind === reflection_1.ReflectionKind.unknown)
|
|
383
|
+
return true;
|
|
384
|
+
return typeToOpenApiSchema(type, context);
|
|
385
|
+
}
|
|
386
|
+
function schemaForUnion(type, context) {
|
|
387
|
+
if (type.kind !== reflection_1.ReflectionKind.union)
|
|
388
|
+
return typeToOpenApiSchemaInternal(type, context);
|
|
389
|
+
const nullable = isNullable(type);
|
|
390
|
+
const nonNull = flattenUnionTypes(type).filter(item => item.kind !== reflection_1.ReflectionKind.null && item.kind !== reflection_1.ReflectionKind.undefined);
|
|
391
|
+
if (nonNull.length === 0)
|
|
392
|
+
return { type: 'null' };
|
|
393
|
+
if (nonNull.length === 1) {
|
|
394
|
+
const schema = typeToOpenApiSchema(nonNull[0], context);
|
|
395
|
+
return nullable ? withNullableSchema(schema) : schema;
|
|
396
|
+
}
|
|
397
|
+
if (nonNull.every(item => item.kind === reflection_1.ReflectionKind.literal)) {
|
|
398
|
+
return schemaForEnum([
|
|
399
|
+
...nonNull.map(item => (item.kind === reflection_1.ReflectionKind.literal ? item.literal : undefined)),
|
|
400
|
+
...(nullable ? [null] : [])
|
|
401
|
+
]);
|
|
402
|
+
}
|
|
403
|
+
return {
|
|
404
|
+
oneOf: [...nonNull.map(item => typeToOpenApiSchema(item, context)), ...(nullable ? [{ type: 'null' }] : [])]
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
function schemaForLiteral(value) {
|
|
408
|
+
if (typeof value === 'string')
|
|
409
|
+
return { type: 'string', enum: [value] };
|
|
410
|
+
if (typeof value === 'number')
|
|
411
|
+
return { type: 'number', enum: [value] };
|
|
412
|
+
if (typeof value === 'boolean')
|
|
413
|
+
return { type: 'boolean', enum: [value] };
|
|
414
|
+
if (typeof value === 'bigint')
|
|
415
|
+
return { type: 'integer', format: 'int64', enum: [Number(value)] };
|
|
416
|
+
if (value instanceof RegExp)
|
|
417
|
+
return { type: 'string', pattern: value.source };
|
|
418
|
+
return {};
|
|
419
|
+
}
|
|
420
|
+
function schemaForEnum(values) {
|
|
421
|
+
const enumValues = values.filter(value => value !== undefined).map(value => (typeof value === 'bigint' ? Number(value) : value));
|
|
422
|
+
const types = uniqueJsonSchemaTypes(enumValues.map(jsonSchemaTypeForValue).filter((type) => type !== undefined));
|
|
423
|
+
const schema = { enum: uniqueEnumValues(enumValues) };
|
|
424
|
+
if (types.length)
|
|
425
|
+
schema.type = types.length === 1 ? types[0] : types;
|
|
426
|
+
return schema;
|
|
427
|
+
}
|
|
428
|
+
function schemaForNamedAlias(type, context) {
|
|
429
|
+
const typeName = type.typeName;
|
|
430
|
+
if (typeName === 'FileUpload')
|
|
431
|
+
return schemaForFileUpload(type);
|
|
432
|
+
const componentName = getNamedAliasComponentName(type);
|
|
433
|
+
if (!componentName)
|
|
434
|
+
return undefined;
|
|
435
|
+
return schemaForNamedAliasComponent(componentName, type, context);
|
|
436
|
+
}
|
|
437
|
+
function schemaForNamedAliasComponent(baseName, type, context) {
|
|
438
|
+
const existingName = context.componentNames.get(type);
|
|
439
|
+
if (existingName)
|
|
440
|
+
return { $ref: `#/components/schemas/${existingName}` };
|
|
441
|
+
const signature = typeSignature(type, new Set());
|
|
442
|
+
const existing = context.objectLiteralComponents.get(baseName)?.find(item => item.signature === signature);
|
|
443
|
+
if (existing) {
|
|
444
|
+
context.componentNames.set(type, existing.name);
|
|
445
|
+
return { $ref: `#/components/schemas/${existing.name}` };
|
|
446
|
+
}
|
|
447
|
+
const name = reserveComponentName(baseName, type, context);
|
|
448
|
+
context.componentNames.set(type, name);
|
|
449
|
+
const components = context.objectLiteralComponents.get(baseName) ?? [];
|
|
450
|
+
components.push({ name, signature });
|
|
451
|
+
context.objectLiteralComponents.set(baseName, components);
|
|
452
|
+
if (context.schemas[name])
|
|
453
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
454
|
+
context.schemas[name] = {};
|
|
455
|
+
if (context.generating.has(name))
|
|
456
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
457
|
+
context.generating.add(name);
|
|
458
|
+
const schema = schemaForNonNullableType(type, context, false);
|
|
459
|
+
context.schemas[name] = '$ref' in schema ? { allOf: [schema] } : schema;
|
|
460
|
+
context.generating.delete(name);
|
|
461
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
462
|
+
}
|
|
463
|
+
function getNamedAliasComponentName(type) {
|
|
464
|
+
if (!isNamedAliasComponentType(type))
|
|
465
|
+
return undefined;
|
|
466
|
+
const rawName = getWrappedOpenApiName(type) ?? type.typeName;
|
|
467
|
+
if (rawName && isIntrinsicTypeName(rawName))
|
|
468
|
+
return undefined;
|
|
469
|
+
const componentName = rawName ? getNamedComponentBaseName(rawName) : undefined;
|
|
470
|
+
return componentName ? sanitizeComponentName(componentName) : undefined;
|
|
471
|
+
}
|
|
472
|
+
function isIntrinsicTypeName(typeName) {
|
|
473
|
+
return ['string', 'number', 'boolean', 'bigint', 'object', 'symbol', 'unknown', 'any', 'never', 'void', 'undefined', 'null'].includes(typeName.trim());
|
|
474
|
+
}
|
|
475
|
+
function isNamedAliasComponentType(type) {
|
|
476
|
+
switch (type.kind) {
|
|
477
|
+
case reflection_1.ReflectionKind.string:
|
|
478
|
+
case reflection_1.ReflectionKind.number:
|
|
479
|
+
case reflection_1.ReflectionKind.boolean:
|
|
480
|
+
case reflection_1.ReflectionKind.bigint:
|
|
481
|
+
case reflection_1.ReflectionKind.object:
|
|
482
|
+
case reflection_1.ReflectionKind.templateLiteral:
|
|
483
|
+
case reflection_1.ReflectionKind.literal:
|
|
484
|
+
case reflection_1.ReflectionKind.enum:
|
|
485
|
+
case reflection_1.ReflectionKind.union:
|
|
486
|
+
case reflection_1.ReflectionKind.array:
|
|
487
|
+
case reflection_1.ReflectionKind.tuple:
|
|
488
|
+
return true;
|
|
489
|
+
default:
|
|
490
|
+
return false;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
function isGeneratedUtilityRootName(typeName) {
|
|
494
|
+
return ['Pick', 'Omit', 'Partial', 'Required', 'Readonly', 'Extract', 'NonNullable', 'OptionalNulls'].includes(typeName);
|
|
495
|
+
}
|
|
496
|
+
function schemaForKnownComponentReference(type, context) {
|
|
497
|
+
if (type.kind !== reflection_1.ReflectionKind.unknown && type.kind !== reflection_1.ReflectionKind.any)
|
|
498
|
+
return undefined;
|
|
499
|
+
const typeName = type.typeName;
|
|
500
|
+
if (!typeName)
|
|
501
|
+
return undefined;
|
|
502
|
+
const name = sanitizeComponentName(typeName);
|
|
503
|
+
if (context.generating.has(name) || context.schemas[name])
|
|
504
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
505
|
+
}
|
|
506
|
+
function collectObjectLiteralProperties(type, seen = new Set()) {
|
|
507
|
+
if (seen.has(type))
|
|
508
|
+
return [];
|
|
509
|
+
if ((0, type_utils_1.isMarkerType)(type))
|
|
510
|
+
return [];
|
|
511
|
+
seen.add(type);
|
|
512
|
+
const own = type.types.filter((item) => item.kind === reflection_1.ReflectionKind.propertySignature);
|
|
513
|
+
const implemented = [];
|
|
514
|
+
for (const item of type.implements ?? []) {
|
|
515
|
+
const unwrapped = unwrapOpenApiType(item);
|
|
516
|
+
if (seen.has(unwrapped))
|
|
517
|
+
continue;
|
|
518
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
519
|
+
implemented.push(...collectObjectLiteralProperties(unwrapped, seen));
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
implemented.push(...listOpenApiTypeProperties(unwrapped).map(property => ({
|
|
523
|
+
kind: reflection_1.ReflectionKind.propertySignature,
|
|
524
|
+
name: property.name,
|
|
525
|
+
type: property.type,
|
|
526
|
+
optional: property.required ? undefined : true,
|
|
527
|
+
description: property.description
|
|
528
|
+
})));
|
|
529
|
+
}
|
|
530
|
+
return [...implemented, ...own];
|
|
531
|
+
}
|
|
532
|
+
function getObjectLiteralIndexType(type, seen = new Set()) {
|
|
533
|
+
if (type.index)
|
|
534
|
+
return type.index;
|
|
535
|
+
if (seen.has(type))
|
|
536
|
+
return undefined;
|
|
537
|
+
seen.add(type);
|
|
538
|
+
for (const item of type.implements ?? []) {
|
|
539
|
+
const unwrapped = unwrapOpenApiType(item);
|
|
540
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
541
|
+
const indexType = getObjectLiteralIndexType(unwrapped, seen);
|
|
542
|
+
if (indexType)
|
|
543
|
+
return indexType;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function mergeOpenApiIntersectionProperties(type) {
|
|
548
|
+
const order = [];
|
|
549
|
+
const byName = new Map();
|
|
550
|
+
const addProperty = (property) => {
|
|
551
|
+
if (!byName.has(property.name))
|
|
552
|
+
order.push(property.name);
|
|
553
|
+
byName.set(property.name, property);
|
|
554
|
+
};
|
|
555
|
+
const collect = (item) => {
|
|
556
|
+
const unwrapped = unwrapOpenApiType(item);
|
|
557
|
+
if ((0, type_utils_1.isMarkerType)(unwrapped))
|
|
558
|
+
return;
|
|
559
|
+
if (unwrapped.kind === reflection_1.ReflectionKind.intersection) {
|
|
560
|
+
for (const child of unwrapped.types)
|
|
561
|
+
collect(child);
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
for (const property of listOpenApiTypeProperties(unwrapped))
|
|
565
|
+
addProperty(property);
|
|
566
|
+
};
|
|
567
|
+
for (const item of type.types)
|
|
568
|
+
collect(item);
|
|
569
|
+
return order.map(name => byName.get(name));
|
|
570
|
+
}
|
|
571
|
+
function firstMeaningfulIntersectionType(type) {
|
|
572
|
+
return type.types.find(item => item.kind !== reflection_1.ReflectionKind.never &&
|
|
573
|
+
item.kind !== reflection_1.ReflectionKind.unknown &&
|
|
574
|
+
!isHttpMarkerType(item) &&
|
|
575
|
+
!isOpenApiNameMarkerType(item) &&
|
|
576
|
+
!(0, type_utils_1.isMarkerType)(item) &&
|
|
577
|
+
!isTypiaInternalTagType(item));
|
|
578
|
+
}
|
|
579
|
+
function isTypiaInternalTagType(type) {
|
|
580
|
+
const unwrapped = unwrapOpenApiType(type);
|
|
581
|
+
return (unwrapped.kind === reflection_1.ReflectionKind.objectLiteral &&
|
|
582
|
+
!unwrapped.index &&
|
|
583
|
+
collectObjectLiteralProperties(unwrapped).length > 0 &&
|
|
584
|
+
collectObjectLiteralProperties(unwrapped).every(isTypiaInternalTagProperty));
|
|
585
|
+
}
|
|
586
|
+
function isTypiaInternalTagProperty(property) {
|
|
587
|
+
return String(property.name) === 'typia.tag';
|
|
588
|
+
}
|
|
589
|
+
function isNullable(type) {
|
|
590
|
+
return type.kind === reflection_1.ReflectionKind.null || (type.kind === reflection_1.ReflectionKind.union && type.types.some(isNullable));
|
|
591
|
+
}
|
|
592
|
+
function unwrapNullable(type) {
|
|
593
|
+
if (type.kind !== reflection_1.ReflectionKind.union)
|
|
594
|
+
return type;
|
|
595
|
+
const nonNull = type.types.filter(item => item.kind !== reflection_1.ReflectionKind.null && item.kind !== reflection_1.ReflectionKind.undefined);
|
|
596
|
+
if (nonNull.length === type.types.length)
|
|
597
|
+
return type;
|
|
598
|
+
return nonNull.length === 1 ? nonNull[0] : { ...type, types: nonNull };
|
|
599
|
+
}
|
|
600
|
+
function flattenUnionTypes(type) {
|
|
601
|
+
if (type.kind !== reflection_1.ReflectionKind.union)
|
|
602
|
+
return [type];
|
|
603
|
+
return type.types.flatMap(flattenUnionTypes);
|
|
604
|
+
}
|
|
605
|
+
function getClassComponentName(type, context) {
|
|
606
|
+
const explicitName = getWrappedOpenApiName(type);
|
|
607
|
+
const typeName = type.typeName;
|
|
608
|
+
const classType = resolveOpenApiClassType(type) ?? type.classType;
|
|
609
|
+
const className = typeof classType === 'function' ? classType.name : undefined;
|
|
610
|
+
const baseName = sanitizeComponentName(explicitName ?? (typeName && typeName !== 'Class' ? typeName : (className ?? 'Class')));
|
|
611
|
+
if (!explicitName) {
|
|
612
|
+
const existingName = context.componentNames.get(classType);
|
|
613
|
+
if (existingName)
|
|
614
|
+
return existingName;
|
|
615
|
+
}
|
|
616
|
+
const name = reserveComponentName(baseName, classType, context);
|
|
617
|
+
if (!explicitName)
|
|
618
|
+
context.componentNames.set(classType, name);
|
|
619
|
+
return name;
|
|
620
|
+
}
|
|
621
|
+
function getObjectLiteralComponentName(type, context) {
|
|
622
|
+
const explicitName = getWrappedOpenApiName(type);
|
|
623
|
+
const rawName = explicitName ?? getObjectLiteralTypeName(type);
|
|
624
|
+
if (!rawName || (!explicitName && isAnonymousObjectLiteralTypeName(rawName)))
|
|
625
|
+
return undefined;
|
|
626
|
+
if (!explicitName) {
|
|
627
|
+
const existingName = context.componentNames.get(type);
|
|
628
|
+
if (existingName)
|
|
629
|
+
return { name: existingName, baseName: sanitizeComponentName(rawName) };
|
|
630
|
+
}
|
|
631
|
+
const baseName = sanitizeComponentName(rawName);
|
|
632
|
+
if (context.generating.has(baseName)) {
|
|
633
|
+
if (!explicitName)
|
|
634
|
+
context.componentNames.set(type, baseName);
|
|
635
|
+
return { name: baseName, baseName };
|
|
636
|
+
}
|
|
637
|
+
const signature = objectLiteralComponentSignature(type);
|
|
638
|
+
const existing = context.objectLiteralComponents.get(baseName)?.find(item => item.signature === signature);
|
|
639
|
+
if (existing) {
|
|
640
|
+
if (!explicitName)
|
|
641
|
+
context.componentNames.set(type, existing.name);
|
|
642
|
+
return { name: existing.name, baseName };
|
|
643
|
+
}
|
|
644
|
+
const name = reserveComponentName(baseName, type, context);
|
|
645
|
+
if (!explicitName)
|
|
646
|
+
context.componentNames.set(type, name);
|
|
647
|
+
const components = context.objectLiteralComponents.get(baseName) ?? [];
|
|
648
|
+
components.push({ name, signature });
|
|
649
|
+
context.objectLiteralComponents.set(baseName, components);
|
|
650
|
+
return { name, baseName };
|
|
651
|
+
}
|
|
652
|
+
function getIntersectionComponentName(type, context) {
|
|
653
|
+
const explicitName = getWrappedOpenApiName(type);
|
|
654
|
+
const typeName = type.typeName;
|
|
655
|
+
const rawName = explicitName ?? (typeName ? getNamedComponentBaseName(typeName) : undefined);
|
|
656
|
+
if (!rawName)
|
|
657
|
+
return undefined;
|
|
658
|
+
if (!explicitName) {
|
|
659
|
+
const existingName = context.componentNames.get(type);
|
|
660
|
+
if (existingName)
|
|
661
|
+
return existingName;
|
|
662
|
+
}
|
|
663
|
+
const baseName = sanitizeComponentName(rawName);
|
|
664
|
+
if (context.generating.has(baseName)) {
|
|
665
|
+
if (!explicitName)
|
|
666
|
+
context.componentNames.set(type, baseName);
|
|
667
|
+
return baseName;
|
|
668
|
+
}
|
|
669
|
+
const signature = typeSignature(type, new Set());
|
|
670
|
+
const existing = context.objectLiteralComponents.get(baseName)?.find(item => item.signature === signature);
|
|
671
|
+
if (existing) {
|
|
672
|
+
if (!explicitName)
|
|
673
|
+
context.componentNames.set(type, existing.name);
|
|
674
|
+
return existing.name;
|
|
675
|
+
}
|
|
676
|
+
const name = reserveComponentName(baseName, type, context);
|
|
677
|
+
if (!explicitName)
|
|
678
|
+
context.componentNames.set(type, name);
|
|
679
|
+
const components = context.objectLiteralComponents.get(baseName) ?? [];
|
|
680
|
+
components.push({ name, signature });
|
|
681
|
+
context.objectLiteralComponents.set(baseName, components);
|
|
682
|
+
return name;
|
|
683
|
+
}
|
|
684
|
+
function getObjectLiteralTypeName(type) {
|
|
685
|
+
const typeName = type.typeName;
|
|
686
|
+
if (!typeName)
|
|
687
|
+
return undefined;
|
|
688
|
+
const displayUtilityName = getUtilityDisplayTypeName(typeName);
|
|
689
|
+
if (displayUtilityName)
|
|
690
|
+
return displayUtilityName;
|
|
691
|
+
const namedComponentName = getNamedComponentBaseName(typeName);
|
|
692
|
+
if (namedComponentName)
|
|
693
|
+
return namedComponentName;
|
|
694
|
+
if (isUtilityObjectLiteralTypeName(typeName)) {
|
|
695
|
+
const source = type.typeArguments?.[0];
|
|
696
|
+
const sourceName = source ? getSourceTypeName(source) : undefined;
|
|
697
|
+
if (sourceName)
|
|
698
|
+
return `${typeName}${sourceName}`;
|
|
699
|
+
}
|
|
700
|
+
return typeName;
|
|
701
|
+
}
|
|
702
|
+
function isUtilityObjectLiteralTypeName(typeName) {
|
|
703
|
+
return ['Pick', 'Omit', 'Partial', 'Required', 'Readonly', 'OptionalNulls'].includes(typeName);
|
|
704
|
+
}
|
|
705
|
+
function getNamedComponentBaseName(typeName) {
|
|
706
|
+
const trimmed = typeName.trim();
|
|
707
|
+
if (!trimmed || isAnonymousObjectLiteralTypeName(trimmed))
|
|
708
|
+
return undefined;
|
|
709
|
+
const parsed = parseGenericDisplayTypeName(trimmed);
|
|
710
|
+
const name = parsed?.name ?? trimmed;
|
|
711
|
+
if (isGeneratedUtilityRootName(name))
|
|
712
|
+
return undefined;
|
|
713
|
+
return name;
|
|
714
|
+
}
|
|
715
|
+
function getUtilityDisplayTypeName(typeName) {
|
|
716
|
+
const parsed = parseGenericDisplayTypeName(typeName);
|
|
717
|
+
if (!parsed || !isUtilityObjectLiteralTypeName(parsed.name))
|
|
718
|
+
return undefined;
|
|
719
|
+
const sourceName = getUtilitySourceDisplayName(parsed.args[0]);
|
|
720
|
+
return sourceName ? `${parsed.name}${sourceName}` : undefined;
|
|
721
|
+
}
|
|
722
|
+
function getUtilitySourceDisplayName(source) {
|
|
723
|
+
if (!source)
|
|
724
|
+
return undefined;
|
|
725
|
+
const trimmed = source.trim().replace(/^typeof\s+/, '');
|
|
726
|
+
const imported = /^import\([^)]+\)\.([A-Za-z_$][\w$]*)$/.exec(trimmed);
|
|
727
|
+
if (imported)
|
|
728
|
+
return imported[1];
|
|
729
|
+
const nested = parseGenericDisplayTypeName(trimmed);
|
|
730
|
+
if (nested) {
|
|
731
|
+
const nestedSource = getUtilitySourceDisplayName(nested.args[0]);
|
|
732
|
+
return nestedSource ? `${nested.name}${nestedSource}` : nested.name;
|
|
733
|
+
}
|
|
734
|
+
const qualified = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.exec(trimmed);
|
|
735
|
+
if (qualified)
|
|
736
|
+
return trimmed.split('.').at(-1);
|
|
737
|
+
}
|
|
738
|
+
function parseGenericDisplayTypeName(typeName) {
|
|
739
|
+
const trimmed = typeName.trim();
|
|
740
|
+
const start = trimmed.indexOf('<');
|
|
741
|
+
if (start <= 0 || !trimmed.endsWith('>'))
|
|
742
|
+
return undefined;
|
|
743
|
+
const name = trimmed.slice(0, start).trim();
|
|
744
|
+
if (!/^[A-Za-z_$][\w$]*$/.test(name))
|
|
745
|
+
return undefined;
|
|
746
|
+
return { name, args: splitTopLevelTypeArguments(trimmed.slice(start + 1, -1)) };
|
|
747
|
+
}
|
|
748
|
+
function splitTopLevelTypeArguments(input) {
|
|
749
|
+
const parts = [];
|
|
750
|
+
let start = 0;
|
|
751
|
+
let angle = 0;
|
|
752
|
+
let brace = 0;
|
|
753
|
+
let bracket = 0;
|
|
754
|
+
let paren = 0;
|
|
755
|
+
let quote;
|
|
756
|
+
for (let index = 0; index < input.length; index++) {
|
|
757
|
+
const char = input[index];
|
|
758
|
+
if (quote) {
|
|
759
|
+
if (char === '\\')
|
|
760
|
+
index++;
|
|
761
|
+
else if (char === quote)
|
|
762
|
+
quote = undefined;
|
|
763
|
+
continue;
|
|
764
|
+
}
|
|
765
|
+
if (char === '"' || char === "'" || char === '`') {
|
|
766
|
+
quote = char;
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
769
|
+
if (char === '<')
|
|
770
|
+
angle++;
|
|
771
|
+
else if (char === '>')
|
|
772
|
+
angle--;
|
|
773
|
+
else if (char === '{')
|
|
774
|
+
brace++;
|
|
775
|
+
else if (char === '}')
|
|
776
|
+
brace--;
|
|
777
|
+
else if (char === '[')
|
|
778
|
+
bracket++;
|
|
779
|
+
else if (char === ']')
|
|
780
|
+
bracket--;
|
|
781
|
+
else if (char === '(')
|
|
782
|
+
paren++;
|
|
783
|
+
else if (char === ')')
|
|
784
|
+
paren--;
|
|
785
|
+
else if (char === ',' && angle === 0 && brace === 0 && bracket === 0 && paren === 0) {
|
|
786
|
+
parts.push(input.slice(start, index).trim());
|
|
787
|
+
start = index + 1;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
parts.push(input.slice(start).trim());
|
|
791
|
+
return parts.filter(Boolean);
|
|
792
|
+
}
|
|
793
|
+
function isAnonymousObjectLiteralTypeName(typeName) {
|
|
794
|
+
const trimmed = typeName.trim();
|
|
795
|
+
return trimmed.startsWith('{') && trimmed.endsWith('}');
|
|
796
|
+
}
|
|
797
|
+
function getSourceTypeName(type) {
|
|
798
|
+
if (type.kind === reflection_1.ReflectionKind.class) {
|
|
799
|
+
return type.typeName ?? resolveOpenApiClassType(type)?.name ?? type.classType.name;
|
|
800
|
+
}
|
|
801
|
+
if (type.kind === reflection_1.ReflectionKind.objectLiteral)
|
|
802
|
+
return getObjectLiteralTypeName(type);
|
|
803
|
+
return type.typeName;
|
|
804
|
+
}
|
|
805
|
+
function objectLiteralComponentSignature(type) {
|
|
806
|
+
return typeSignature(type, new Set());
|
|
807
|
+
}
|
|
808
|
+
function typeSignature(type, seen) {
|
|
809
|
+
if (seen.has(type))
|
|
810
|
+
return '[Circular]';
|
|
811
|
+
seen.add(type);
|
|
812
|
+
const unwrapped = unwrapOpenApiType(type);
|
|
813
|
+
if (unwrapped !== type) {
|
|
814
|
+
if (seen.has(unwrapped))
|
|
815
|
+
return '[Circular]';
|
|
816
|
+
seen.add(unwrapped);
|
|
817
|
+
}
|
|
818
|
+
switch (unwrapped.kind) {
|
|
819
|
+
case reflection_1.ReflectionKind.class:
|
|
820
|
+
return `class:${unwrapped.typeName ?? resolveOpenApiClassType(unwrapped)?.name ?? unwrapped.classType.name}`;
|
|
821
|
+
case reflection_1.ReflectionKind.objectLiteral:
|
|
822
|
+
return `object:${getObjectLiteralTypeName(unwrapped) ?? ''}{${listOpenApiTypeProperties(unwrapped)
|
|
823
|
+
.map(property => `${property.name}${property.required ? '' : '?'}:${typeSignature(property.type, new Set(seen))}`)
|
|
824
|
+
.join(';')}}[${unwrapped.index ? typeSignature(unwrapped.index, new Set(seen)) : ''}]`;
|
|
825
|
+
case reflection_1.ReflectionKind.array:
|
|
826
|
+
return `array:${typeSignature(unwrapped.type, new Set(seen))}`;
|
|
827
|
+
case reflection_1.ReflectionKind.tuple:
|
|
828
|
+
return `tuple:${unwrapped.types.map(item => typeSignature(item.type, new Set(seen))).join(',')}`;
|
|
829
|
+
case reflection_1.ReflectionKind.union: {
|
|
830
|
+
const parts = unwrapped.types.map(item => typeSignature(item, new Set(seen)));
|
|
831
|
+
if (isLiteralLikeUnion(unwrapped))
|
|
832
|
+
parts.sort();
|
|
833
|
+
return `union:${parts.join('|')}`;
|
|
834
|
+
}
|
|
835
|
+
case reflection_1.ReflectionKind.intersection:
|
|
836
|
+
return `intersection:${unwrapped.types.map(item => typeSignature(item, new Set(seen))).join('&')}`;
|
|
837
|
+
case reflection_1.ReflectionKind.literal:
|
|
838
|
+
return `literal:${String(unwrapped.literal)}`;
|
|
839
|
+
case reflection_1.ReflectionKind.enum:
|
|
840
|
+
return `enum:${unwrapped.values
|
|
841
|
+
.map(value => String(value))
|
|
842
|
+
.sort()
|
|
843
|
+
.join('|')}`;
|
|
844
|
+
case reflection_1.ReflectionKind.string:
|
|
845
|
+
case reflection_1.ReflectionKind.templateLiteral:
|
|
846
|
+
case reflection_1.ReflectionKind.number:
|
|
847
|
+
case reflection_1.ReflectionKind.bigint:
|
|
848
|
+
case reflection_1.ReflectionKind.boolean:
|
|
849
|
+
case reflection_1.ReflectionKind.object:
|
|
850
|
+
return `${unwrapped.kind}:${schemaRelevantMetadataSignature(unwrapped)}`;
|
|
851
|
+
default:
|
|
852
|
+
return `${unwrapped.kind}:${unwrapped.typeName ?? ''}`;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function isLiteralLikeUnion(type) {
|
|
856
|
+
return type.types.every(item => item.kind === reflection_1.ReflectionKind.literal || item.kind === reflection_1.ReflectionKind.null || item.kind === reflection_1.ReflectionKind.undefined);
|
|
857
|
+
}
|
|
858
|
+
function schemaRelevantMetadataSignature(type) {
|
|
859
|
+
const annotations = {
|
|
860
|
+
tsfType: serializableTypeValue(getTypeAnnotation(type, 'tsf:type')),
|
|
861
|
+
validation: reflection_1.validationAnnotation.getAnnotations(type).map(annotation => ({
|
|
862
|
+
name: annotation.name,
|
|
863
|
+
args: annotation.args?.map(serializableTypeValue) ?? []
|
|
864
|
+
}))
|
|
865
|
+
};
|
|
866
|
+
return JSON.stringify(annotations);
|
|
867
|
+
}
|
|
868
|
+
function serializableTypeValue(type) {
|
|
869
|
+
const value = literalValue(type);
|
|
870
|
+
if (value instanceof RegExp)
|
|
871
|
+
return { pattern: value.source };
|
|
872
|
+
return value;
|
|
873
|
+
}
|
|
874
|
+
function findEquivalentObjectLiteralComponent(baseName, generatedName, schema, context) {
|
|
875
|
+
const signature = schemaEquivalenceSignature(schema, context);
|
|
876
|
+
return context.objectLiteralComponents
|
|
877
|
+
.get(baseName)
|
|
878
|
+
?.map(component => component.name)
|
|
879
|
+
.find(name => name !== generatedName &&
|
|
880
|
+
context.schemas[name] &&
|
|
881
|
+
!context.generating.has(name) &&
|
|
882
|
+
schemaEquivalenceSignature(context.schemas[name], context) === signature);
|
|
883
|
+
}
|
|
884
|
+
function schemaEquivalenceSignature(schema, context) {
|
|
885
|
+
return JSON.stringify(normalizeSchemaForEquivalence(schema, context, new Set()));
|
|
886
|
+
}
|
|
887
|
+
function normalizeSchemaForEquivalence(value, context, seenRefs) {
|
|
888
|
+
if (Array.isArray(value))
|
|
889
|
+
return value.map(item => normalizeSchemaForEquivalence(item, context, seenRefs));
|
|
890
|
+
if (!value || typeof value !== 'object')
|
|
891
|
+
return value;
|
|
892
|
+
if ('$ref' in value && typeof value.$ref === 'string') {
|
|
893
|
+
const refName = componentNameFromRef(value.$ref);
|
|
894
|
+
if (!refName)
|
|
895
|
+
return { $ref: value.$ref };
|
|
896
|
+
const baseName = refName.replace(/_\d+$/, '');
|
|
897
|
+
if (seenRefs.has(refName))
|
|
898
|
+
return { $ref: baseName };
|
|
899
|
+
const schema = context.schemas[refName];
|
|
900
|
+
if (!schema)
|
|
901
|
+
return { $ref: baseName };
|
|
902
|
+
const nextSeen = new Set(seenRefs);
|
|
903
|
+
nextSeen.add(refName);
|
|
904
|
+
return { $ref: baseName, schema: normalizeSchemaForEquivalence(schema, context, nextSeen) };
|
|
905
|
+
}
|
|
906
|
+
const record = value;
|
|
907
|
+
const output = {};
|
|
908
|
+
for (const key of Object.keys(record).sort()) {
|
|
909
|
+
const normalized = normalizeSchemaForEquivalence(record[key], context, seenRefs);
|
|
910
|
+
output[key] = key === 'enum' && Array.isArray(normalized) ? [...normalized].sort() : normalized;
|
|
911
|
+
}
|
|
912
|
+
return output;
|
|
913
|
+
}
|
|
914
|
+
function componentNameFromRef(ref) {
|
|
915
|
+
const prefix = '#/components/schemas/';
|
|
916
|
+
return ref.startsWith(prefix) ? ref.slice(prefix.length) : undefined;
|
|
917
|
+
}
|
|
918
|
+
function removeObjectLiteralComponent(baseName, name, context) {
|
|
919
|
+
const components = context.objectLiteralComponents.get(baseName);
|
|
920
|
+
if (!components)
|
|
921
|
+
return;
|
|
922
|
+
const next = components.filter(component => component.name !== name);
|
|
923
|
+
if (next.length)
|
|
924
|
+
context.objectLiteralComponents.set(baseName, next);
|
|
925
|
+
else
|
|
926
|
+
context.objectLiteralComponents.delete(baseName);
|
|
927
|
+
}
|
|
928
|
+
function schemaReferencesComponent(schema, name) {
|
|
929
|
+
if ('$ref' in schema)
|
|
930
|
+
return schema.$ref === `#/components/schemas/${name}`;
|
|
931
|
+
return Object.values(schema).some(value => {
|
|
932
|
+
if (!value || typeof value !== 'object')
|
|
933
|
+
return false;
|
|
934
|
+
if (Array.isArray(value))
|
|
935
|
+
return value.some(item => item && typeof item === 'object' && schemaReferencesComponent(item, name));
|
|
936
|
+
return schemaReferencesComponent(value, name);
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
function reserveComponentName(baseName, componentOwner, context) {
|
|
940
|
+
let name = baseName;
|
|
941
|
+
let suffix = 2;
|
|
942
|
+
while (true) {
|
|
943
|
+
const owner = context.componentTypes.get(name);
|
|
944
|
+
if (!owner || owner === componentOwner) {
|
|
945
|
+
context.componentTypes.set(name, componentOwner);
|
|
946
|
+
return name;
|
|
947
|
+
}
|
|
948
|
+
name = `${baseName}_${suffix++}`;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
function sanitizeComponentName(name) {
|
|
952
|
+
return name.replace(/[^a-zA-Z0-9_.-]/g, '_') || 'AnonymousSchema';
|
|
953
|
+
}
|
|
954
|
+
function getOpenApiName(type) {
|
|
955
|
+
const annotation = getTypeAnnotation(type, 'openapi:name');
|
|
956
|
+
return annotation?.kind === reflection_1.ReflectionKind.literal && typeof annotation.literal === 'string' ? annotation.literal : undefined;
|
|
957
|
+
}
|
|
958
|
+
function getWrappedOpenApiName(type) {
|
|
959
|
+
return type.openApiName ?? getOpenApiName(type);
|
|
960
|
+
}
|
|
961
|
+
function wrapOpenApiTypeName(type, openApiName) {
|
|
962
|
+
if (!openApiName)
|
|
963
|
+
return type;
|
|
964
|
+
return { ...type, openApiName, typeName: openApiName };
|
|
965
|
+
}
|
|
966
|
+
function getTypeAnnotation(type, ...names) {
|
|
967
|
+
for (const name of names) {
|
|
968
|
+
const direct = type.annotations?.[name];
|
|
969
|
+
if (direct)
|
|
970
|
+
return direct;
|
|
971
|
+
}
|
|
972
|
+
if ((type.kind === reflection_1.ReflectionKind.union || type.kind === reflection_1.ReflectionKind.intersection) && 'types' in type && Array.isArray(type.types)) {
|
|
973
|
+
const annotations = [];
|
|
974
|
+
for (const child of type.types) {
|
|
975
|
+
const nested = getTypeAnnotation(child, ...names);
|
|
976
|
+
if (nested)
|
|
977
|
+
annotations.push(nested);
|
|
978
|
+
}
|
|
979
|
+
return singleCompatibleAnnotation(annotations);
|
|
980
|
+
}
|
|
981
|
+
for (const name of names) {
|
|
982
|
+
const known = reflection_1.typeAnnotation.getType(type, name);
|
|
983
|
+
if (known)
|
|
984
|
+
return known;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
function singleCompatibleAnnotation(annotations) {
|
|
988
|
+
if (annotations.length === 0)
|
|
989
|
+
return undefined;
|
|
990
|
+
const first = annotations[0];
|
|
991
|
+
const firstKey = annotationIdentity(first);
|
|
992
|
+
if (!firstKey)
|
|
993
|
+
return annotations.length === 1 ? first : undefined;
|
|
994
|
+
return annotations.every(annotation => annotationIdentity(annotation) === firstKey) ? first : undefined;
|
|
995
|
+
}
|
|
996
|
+
function annotationIdentity(type) {
|
|
997
|
+
if (type.kind === reflection_1.ReflectionKind.undefined)
|
|
998
|
+
return 'undefined';
|
|
999
|
+
if (type.kind === reflection_1.ReflectionKind.literal && 'literal' in type)
|
|
1000
|
+
return `literal:${typeof type.literal}:${String(type.literal)}`;
|
|
1001
|
+
}
|
|
1002
|
+
function isHttpMarkerType(type) {
|
|
1003
|
+
return !!(reflection_1.typeAnnotation.getType(type, 'httpBody') ||
|
|
1004
|
+
reflection_1.typeAnnotation.getType(type, 'httpQueries') ||
|
|
1005
|
+
reflection_1.typeAnnotation.getType(type, 'httpPath') ||
|
|
1006
|
+
reflection_1.typeAnnotation.getType(type, 'httpQuery') ||
|
|
1007
|
+
reflection_1.typeAnnotation.getType(type, 'httpHeader'));
|
|
1008
|
+
}
|
|
1009
|
+
function isOpenApiNameMarkerType(type) {
|
|
1010
|
+
return !!reflection_1.typeAnnotation.getType(type, 'openapi:name');
|
|
1011
|
+
}
|
|
1012
|
+
function httpAnnotationName(typeName) {
|
|
1013
|
+
if (typeName === 'HttpBody')
|
|
1014
|
+
return 'httpBody';
|
|
1015
|
+
if (typeName === 'HttpQueries')
|
|
1016
|
+
return 'httpQueries';
|
|
1017
|
+
if (typeName === 'HttpPath')
|
|
1018
|
+
return 'httpPath';
|
|
1019
|
+
if (typeName === 'HttpQuery')
|
|
1020
|
+
return 'httpQuery';
|
|
1021
|
+
if (typeName === 'HttpHeader')
|
|
1022
|
+
return 'httpHeader';
|
|
1023
|
+
}
|
|
1024
|
+
function getAnnotationOptionType(type, annotation) {
|
|
1025
|
+
const options = reflection_1.typeAnnotation.getType(type, annotation) ?? reflection_1.typeAnnotation.getOption(type, annotation);
|
|
1026
|
+
if (!options || typeof options !== 'object')
|
|
1027
|
+
return undefined;
|
|
1028
|
+
if (options.kind === reflection_1.ReflectionKind.objectLiteral) {
|
|
1029
|
+
const property = options.types.find(item => item.kind === reflection_1.ReflectionKind.propertySignature && String(item.name) === 'type');
|
|
1030
|
+
return property?.kind === reflection_1.ReflectionKind.propertySignature ? property.type : undefined;
|
|
1031
|
+
}
|
|
1032
|
+
const value = options.type;
|
|
1033
|
+
return (0, reflection_1.isReflectedType)(value) ? value : undefined;
|
|
1034
|
+
}
|
|
1035
|
+
function shouldApplyValidationAnnotations(type) {
|
|
1036
|
+
if (type.kind !== reflection_1.ReflectionKind.union)
|
|
1037
|
+
return true;
|
|
1038
|
+
const nonNull = flattenUnionTypes(type).filter(item => item.kind !== reflection_1.ReflectionKind.null && item.kind !== reflection_1.ReflectionKind.undefined);
|
|
1039
|
+
return nonNull.length <= 1;
|
|
1040
|
+
}
|
|
1041
|
+
function applyValidationAnnotations(type, schema) {
|
|
1042
|
+
if ('$ref' in schema)
|
|
1043
|
+
return;
|
|
1044
|
+
for (const annotation of reflection_1.validationAnnotation.getAnnotations(type)) {
|
|
1045
|
+
const value = literalValue(annotation.args?.[0]);
|
|
1046
|
+
if (annotation.name === 'minLength' && typeof value === 'number')
|
|
1047
|
+
schema.minLength = value;
|
|
1048
|
+
else if (annotation.name === 'maxLength' && typeof value === 'number')
|
|
1049
|
+
schema.maxLength = value;
|
|
1050
|
+
else if (annotation.name === 'minimum' && typeof value === 'number')
|
|
1051
|
+
schema.minimum = value;
|
|
1052
|
+
else if (annotation.name === 'greaterThan' && typeof value === 'number')
|
|
1053
|
+
schema.exclusiveMinimum = value;
|
|
1054
|
+
else if (annotation.name === 'maximum' && typeof value === 'number')
|
|
1055
|
+
schema.maximum = value;
|
|
1056
|
+
else if (annotation.name === 'lessThan' && typeof value === 'number')
|
|
1057
|
+
schema.exclusiveMaximum = value;
|
|
1058
|
+
else if (annotation.name === 'pattern') {
|
|
1059
|
+
if (value instanceof RegExp)
|
|
1060
|
+
schema.pattern = value.source;
|
|
1061
|
+
else if (typeof value === 'string')
|
|
1062
|
+
schema.pattern = value;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
function literalValue(type) {
|
|
1067
|
+
const runtime = type?.runtime;
|
|
1068
|
+
if (runtime !== undefined)
|
|
1069
|
+
return typeof runtime === 'function' ? runtime() : runtime;
|
|
1070
|
+
return type?.kind === reflection_1.ReflectionKind.literal ? type.literal : undefined;
|
|
1071
|
+
}
|
|
1072
|
+
function withNullableSchema(schema) {
|
|
1073
|
+
if ('$ref' in schema)
|
|
1074
|
+
return { anyOf: [schema, { type: 'null' }] };
|
|
1075
|
+
if (isEmptySchema(schema))
|
|
1076
|
+
return schema;
|
|
1077
|
+
const next = { ...schema };
|
|
1078
|
+
if (next.enum && !next.enum.some(value => value === null))
|
|
1079
|
+
next.enum = [...next.enum, null];
|
|
1080
|
+
if (next.type) {
|
|
1081
|
+
next.type = withNullType(next.type);
|
|
1082
|
+
return next;
|
|
1083
|
+
}
|
|
1084
|
+
if (next.oneOf || next.anyOf || next.allOf)
|
|
1085
|
+
return { anyOf: [next, { type: 'null' }] };
|
|
1086
|
+
next.type = 'null';
|
|
1087
|
+
return next;
|
|
1088
|
+
}
|
|
1089
|
+
function withNullType(type) {
|
|
1090
|
+
const values = Array.isArray(type) ? type : [type];
|
|
1091
|
+
if (values.includes('null'))
|
|
1092
|
+
return type;
|
|
1093
|
+
return [...values, 'null'];
|
|
1094
|
+
}
|
|
1095
|
+
function jsonSchemaTypeForValue(value) {
|
|
1096
|
+
if (value === null)
|
|
1097
|
+
return 'null';
|
|
1098
|
+
if (typeof value === 'string')
|
|
1099
|
+
return 'string';
|
|
1100
|
+
if (typeof value === 'number')
|
|
1101
|
+
return 'number';
|
|
1102
|
+
if (typeof value === 'boolean')
|
|
1103
|
+
return 'boolean';
|
|
1104
|
+
if (typeof value === 'bigint')
|
|
1105
|
+
return 'integer';
|
|
1106
|
+
}
|
|
1107
|
+
function uniqueJsonSchemaTypes(types) {
|
|
1108
|
+
const order = ['string', 'number', 'integer', 'boolean', 'object', 'array', 'null'];
|
|
1109
|
+
const unique = [...new Set(types)];
|
|
1110
|
+
return unique.sort((a, b) => order.indexOf(a) - order.indexOf(b));
|
|
1111
|
+
}
|
|
1112
|
+
function uniqueEnumValues(values) {
|
|
1113
|
+
const seen = new Set();
|
|
1114
|
+
const unique = [];
|
|
1115
|
+
for (const value of values) {
|
|
1116
|
+
const key = `${typeof value}:${String(value)}`;
|
|
1117
|
+
if (seen.has(key))
|
|
1118
|
+
continue;
|
|
1119
|
+
seen.add(key);
|
|
1120
|
+
unique.push(value);
|
|
1121
|
+
}
|
|
1122
|
+
return unique;
|
|
1123
|
+
}
|
|
1124
|
+
function isEmptySchema(schema) {
|
|
1125
|
+
return Object.keys(schema).length === 0;
|
|
1126
|
+
}
|
|
1127
|
+
exports.__tsfTypeAliases = ({ "OpenApiSchemaContext": { kind: 18, typeName: "OpenApiSchemaContext", types: [{ kind: 20, name: "schemas", type: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 2, typeName: "Record<string, OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }], index: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 2, typeName: "Record<string, OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }], index: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 2, typeName: "boolean | OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }], index: { kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 2, typeName: "Record<string, OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }], index: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 2, typeName: "Record<string, OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }], index: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 2, typeName: "boolean | OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 14, type: { kind: 12, types: [{ kind: 18, typeName: "OpenApiSchemaObject", types: [{ kind: 20, name: "type", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 14, type: { kind: 6 } }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "format", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enum", type: { kind: 12, types: [{ kind: 14, type: { kind: 2 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "const", type: { kind: 12, types: [{ kind: 2 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "properties", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }], index: { kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "required", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "items", type: { kind: 12, types: [{ kind: 2, typeName: "OpenApiSchemaObject | OpenApiReferenceObject" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "additionalProperties", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 8 }, { kind: 2, typeName: "OpenApiSchemaObject" }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oneOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "anyOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "allOf", type: { kind: 12, types: [{ kind: 2, typeName: "Array<OpenApiSchemaObject | OpenApiReferenceObject>" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, { kind: 18, typeName: "OpenApiReferenceObject", types: [{ kind: 20, name: "$ref", type: { kind: 6 }, optional: false }] }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maxLength", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "pattern", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "minimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMinimum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "maximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "exclusiveMaximum", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }], index: { kind: 2 } }, types: [] }, optional: false }, { kind: 20, name: "generating", type: { kind: 16, typeName: "Set", classType: () => (typeof Set !== "undefined" ? Set : (typeof exports !== "undefined" ? exports.Set : undefined)), typeArguments: [{ kind: 6 }] }, optional: false }, { kind: 20, name: "componentNames", type: { kind: 16, typeName: "WeakMap", classType: () => (typeof WeakMap !== "undefined" ? WeakMap : (typeof exports !== "undefined" ? exports.WeakMap : undefined)), typeArguments: [{ kind: 17 }, { kind: 6 }] }, optional: false }, { kind: 20, name: "componentTypes", type: { kind: 16, typeName: "Map", classType: () => (typeof Map !== "undefined" ? Map : (typeof exports !== "undefined" ? exports.Map : undefined)), typeArguments: [{ kind: 6 }, { kind: 17 }] }, optional: false }, { kind: 20, name: "objectLiteralComponents", type: { kind: 16, typeName: "Map", classType: () => (typeof Map !== "undefined" ? Map : (typeof exports !== "undefined" ? exports.Map : undefined)), typeArguments: [{ kind: 6 }, { kind: 14, type: { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "signature", type: { kind: 6 }, optional: false }] } }] }, optional: false }] }, "OpenApiTypeProperty": { kind: 18, typeName: "OpenApiTypeProperty", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.property", classType: () => ReflectionKind.property }] }, { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 2, typeName: "TypeBase<ReflectionKind.property> & {\n name: string | number | symbol;\n type: Type;\n optional?: boolean;\n}", typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false }, { kind: 20, name: "required", type: { kind: 8 }, optional: false }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } });
|
|
1128
|
+
//# sourceMappingURL=schema.js.map
|