@redocly/reef 0.132.0 → 0.133.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -3
- package/dist/cli/build/copy-env-files.js +1 -1
- package/dist/cli/develop.js +1 -1
- package/dist/cli/telemetry/index.js +1 -1
- package/dist/client/app/hooks/catalog/useFetchCatalogEntityRevisions.js +1 -1
- package/dist/constants/common.d.ts +2 -1
- package/dist/constants/common.js +1 -1
- package/dist/server/config/env-config.d.ts +157 -8
- package/dist/server/config/env-config.js +1 -1
- package/dist/server/config/env-schema.d.ts +148 -185
- package/dist/server/config/env-schema.js +1 -3
- package/dist/server/config/env-schemas/auth.d.ts +4 -4
- package/dist/server/config/env-schemas/auth.js +1 -1
- package/dist/server/config/env-schemas/catalog.d.ts +2 -2
- package/dist/server/config/env-schemas/catalog.js +1 -1
- package/dist/server/config/env-schemas/environment-detection.d.ts +13 -13
- package/dist/server/config/env-schemas/environment-detection.js +1 -1
- package/dist/server/config/env-schemas/feature-flags.d.ts +9 -6
- package/dist/server/config/env-schemas/feature-flags.js +1 -1
- package/dist/server/config/env-schemas/search.d.ts +1 -1
- package/dist/server/config/env-schemas/search.js +1 -1
- package/dist/server/config/env-schemas/server-config.d.ts +2 -2
- package/dist/server/config/env-schemas/server-config.js +1 -1
- package/dist/server/constants/entitlements.js +1 -1
- package/dist/server/esbuild/esbuild-logger.js +3 -3
- package/dist/server/esbuild/esbuild.js +2 -2
- package/dist/server/persistence/kv/repositories/kv-remote-repository.d.ts +2 -0
- package/dist/server/persistence/kv/repositories/kv-remote-repository.js +2 -2
- package/dist/server/persistence/kv/services/kv-service.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.js +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js +1 -1
- package/dist/server/plugins/default-theme/index.js +1 -1
- package/dist/server/plugins/enforce-login/index.js +1 -1
- package/dist/server/plugins/entitlements/utils/get-billed-catalog-build-pages-count.js +1 -1
- package/dist/server/plugins/lifecycle.js +1 -1
- package/dist/server/plugins/openapi-docs/search/get-ai-search-documents.js +26 -26
- package/dist/server/plugins/scorecards/plugin.js +1 -1
- package/dist/server/providers/database/base-repository.d.ts +1 -0
- package/dist/server/providers/database/base-repository.js +5 -1
- package/dist/server/providers/database/database-preconnect-service.js +1 -1
- package/dist/server/providers/database/pagination/utils/extract-equal-filter-clause-value.d.ts +6 -0
- package/dist/server/providers/database/pagination/utils/extract-equal-filter-clause-value.js +1 -0
- package/dist/server/providers/database/pagination/utils/index.d.ts +1 -0
- package/dist/server/providers/database/pagination/utils/index.js +1 -1
- package/dist/server/providers/database/utils/storage-limit-validator.d.ts +13 -0
- package/dist/server/providers/database/utils/storage-limit-validator.js +1 -0
- package/dist/server/store.js +1 -1
- package/dist/server/telemetry/index.js +1 -1
- package/dist/server/tools/notifiers/formatter.js +3 -3
- package/dist/server/tools/notifiers/helpers/colors.js +1 -1
- package/dist/server/utils/envs/env-boolean-string.d.ts +12 -0
- package/dist/server/utils/envs/env-boolean-string.js +1 -0
- package/dist/server/utils/envs/load-env-variables.js +1 -1
- package/dist/server/utils/is-catalog-entities-enabled.js +1 -1
- package/dist/server/utils/is-scorecards-enabled.js +1 -1
- package/dist/server/utils/lifecycle-hooks.js +1 -1
- package/dist/server/version.js +1 -1
- package/dist/server/web-server/routes/catalog/bff-catalog-revisions.js +1 -1
- package/dist/server/web-server/routes/dynamic-route.js +1 -1
- package/dist/server/web-server/routes/feedback.js +1 -1
- package/dist/server/web-server/routes/index.js +1 -1
- package/dist/server/web-server/routes/otel/otel.d.ts +2 -16
- package/dist/server/web-server/routes/otel/otel.js +1 -1
- package/dist/server/web-server/routes/otel/otlp.d.ts +4 -1
- package/dist/server/web-server/routes/otel/otlp.js +1 -1
- package/dist/server/web-server/routes/static-content.js +1 -1
- package/dist/server/web-server/utils/content-type.d.ts +2 -0
- package/dist/server/web-server/utils/content-type.js +1 -0
- package/dist/types/entitlements.d.ts +1 -0
- package/package.json +13 -13
- package/dist/server/config/env-schemas/test.d.ts +0 -22
- package/dist/server/config/env-schemas/test.js +0 -1
- package/dist/server/utils/envs/write-env-variable.d.ts +0 -18
- package/dist/server/utils/envs/write-env-variable.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import type { z } from 'zod';
|
|
2
2
|
export declare const envSchema: z.ZodObject<{
|
|
3
|
-
NODE_ENV: z.ZodOptional<z.ZodEnum<["development", "production"
|
|
4
|
-
REDOCLY_ENV: z.
|
|
5
|
-
REDOCLY_EXECUTION_MODE: z.
|
|
6
|
-
REDOCLY_INTERNAL_DEV: z.ZodOptional<z.
|
|
7
|
-
CI: z.ZodOptional<z.
|
|
3
|
+
NODE_ENV: z.ZodOptional<z.ZodEnum<["development", "production"]>>;
|
|
4
|
+
REDOCLY_ENV: z.ZodDefault<z.ZodEnum<["production", "preview", "development"]>>;
|
|
5
|
+
REDOCLY_EXECUTION_MODE: z.ZodDefault<z.ZodEnum<["build", "develop", "runtime"]>>;
|
|
6
|
+
REDOCLY_INTERNAL_DEV: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
7
|
+
CI: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">]>>, boolean | undefined, "1" | "true" | "false" | undefined>;
|
|
8
8
|
} & {
|
|
9
9
|
PORT: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
REDOCLY_LOG_FORMAT: z.ZodOptional<z.ZodString>;
|
|
@@ -16,7 +16,7 @@ export declare const envSchema: z.ZodObject<{
|
|
|
16
16
|
REDOCLY_PORTAL_VERSION: z.ZodOptional<z.ZodString>;
|
|
17
17
|
REDOCLY_TELEMETRY: z.ZodOptional<z.ZodString>;
|
|
18
18
|
REDOCLY_TELEMETRY_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
19
|
-
TELEMETRY_DEV_DEBUG: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
19
|
+
TELEMETRY_DEV_DEBUG: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
20
20
|
WEB_SERVER_IDLE_TIMEOUT: z.ZodOptional<z.ZodString>;
|
|
21
21
|
REDOCLY_PROBLEMS_OUTPUT_FILE: z.ZodOptional<z.ZodString>;
|
|
22
22
|
REDOCLY_METADATA_OUTPUT_FOLDER: z.ZodOptional<z.ZodString>;
|
|
@@ -39,23 +39,24 @@ export declare const envSchema: z.ZodObject<{
|
|
|
39
39
|
OIDC_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
40
40
|
OIDC_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
41
41
|
OIDC_ISSUER_URL: z.ZodOptional<z.ZodString>;
|
|
42
|
-
LOCALHOST_LOGIN: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
42
|
+
LOCALHOST_LOGIN: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
43
43
|
REDOCLY_OAUTH_USE_INTROSPECT: z.ZodOptional<z.ZodString>;
|
|
44
|
-
REDOCLY_ENFORCE_LOGIN: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
44
|
+
REDOCLY_ENFORCE_LOGIN: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
45
45
|
REDOCLY_ENFORCE_RESIDENCY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
46
46
|
} & {
|
|
47
47
|
REDOCLY_SSR_RENDER_MODE: z.ZodOptional<z.ZodEnum<["worker", "main"]>>;
|
|
48
48
|
REDOCLY_SSR_WORKERS_MIN: z.ZodOptional<z.ZodNumber>;
|
|
49
49
|
REDOCLY_SSR_WORKERS_MAX: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
} & {
|
|
51
|
-
NEW_CATALOG_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
52
|
-
NEW_SCORECARDS_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
51
|
+
NEW_CATALOG_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
52
|
+
NEW_SCORECARDS_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
53
53
|
ENABLE_COMMENTS: z.ZodOptional<z.ZodString>;
|
|
54
|
-
|
|
54
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
55
|
+
ENABLE_SOURCE_MAPS: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
55
56
|
PLAN_GATES: z.ZodOptional<z.ZodString>;
|
|
56
57
|
} & {
|
|
57
58
|
SEARCH_DEV_REINIT: z.ZodOptional<z.ZodString>;
|
|
58
|
-
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.
|
|
59
|
+
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "true" | "false" | undefined>;
|
|
59
60
|
TYPESENSE_API_URL: z.ZodOptional<z.ZodString>;
|
|
60
61
|
TYPESENSE_API_KEY: z.ZodOptional<z.ZodString>;
|
|
61
62
|
} & {
|
|
@@ -68,7 +69,7 @@ export declare const envSchema: z.ZodObject<{
|
|
|
68
69
|
SQLD_REMOTE_DATABASE_URL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"NO_SQLD_DEPLOYMENT_YET">]>>;
|
|
69
70
|
SQLD_REMOTE_DATABASE_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
|
|
70
71
|
} & {
|
|
71
|
-
FORCE_CATALOG_CACHE_REVALIDATE: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
72
|
+
FORCE_CATALOG_CACHE_REVALIDATE: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
72
73
|
} & {
|
|
73
74
|
SCORECARDS_POLLING_INTERVAL_MS: z.ZodOptional<z.ZodString>;
|
|
74
75
|
} & {
|
|
@@ -76,176 +77,138 @@ export declare const envSchema: z.ZodObject<{
|
|
|
76
77
|
REQUEST_ID: z.ZodOptional<z.ZodString>;
|
|
77
78
|
} & {
|
|
78
79
|
SITE_URL: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
REDOCLY_SSR_WORKERS_MIN: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
REDOCLY_SSR_WORKERS_MAX: z.ZodOptional<z.ZodNumber>;
|
|
214
|
-
} & {
|
|
215
|
-
NEW_CATALOG_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
216
|
-
NEW_SCORECARDS_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
217
|
-
ENABLE_COMMENTS: z.ZodOptional<z.ZodString>;
|
|
218
|
-
ENABLE_SOURCE_MAPS: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
219
|
-
PLAN_GATES: z.ZodOptional<z.ZodString>;
|
|
220
|
-
} & {
|
|
221
|
-
SEARCH_DEV_REINIT: z.ZodOptional<z.ZodString>;
|
|
222
|
-
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>, boolean, "true" | "false" | undefined>;
|
|
223
|
-
TYPESENSE_API_URL: z.ZodOptional<z.ZodString>;
|
|
224
|
-
TYPESENSE_API_KEY: z.ZodOptional<z.ZodString>;
|
|
225
|
-
} & {
|
|
226
|
-
MAIN_API_URL: z.ZodOptional<z.ZodString>;
|
|
227
|
-
SERVER_EDITOR_APP_URL: z.ZodOptional<z.ZodString>;
|
|
228
|
-
REDOCLY_PUBLIC_URL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
229
|
-
REDOCLY_DIAGRAM_MICROSERVICE_URL: z.ZodOptional<z.ZodString>;
|
|
230
|
-
REDOCLY_CORS_ORIGINS: z.ZodOptional<z.ZodString>;
|
|
231
|
-
} & {
|
|
232
|
-
SQLD_REMOTE_DATABASE_URL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"NO_SQLD_DEPLOYMENT_YET">]>>;
|
|
233
|
-
SQLD_REMOTE_DATABASE_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
|
|
234
|
-
} & {
|
|
235
|
-
FORCE_CATALOG_CACHE_REVALIDATE: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
236
|
-
} & {
|
|
237
|
-
SCORECARDS_POLLING_INTERVAL_MS: z.ZodOptional<z.ZodString>;
|
|
238
|
-
} & {
|
|
239
|
-
OTEL_TRACES_URL: z.ZodOptional<z.ZodString>;
|
|
240
|
-
REQUEST_ID: z.ZodOptional<z.ZodString>;
|
|
241
|
-
} & {
|
|
242
|
-
SITE_URL: z.ZodOptional<z.ZodString>;
|
|
243
|
-
} & {
|
|
244
|
-
TEST_API_KEY: z.ZodOptional<z.ZodString>;
|
|
245
|
-
TEST_SERVER_URL: z.ZodOptional<z.ZodString>;
|
|
246
|
-
DECORATOR_CONFIG: z.ZodOptional<z.ZodString>;
|
|
247
|
-
SECRET_VALUE: z.ZodOptional<z.ZodString>;
|
|
248
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
REDOCLY_EXECUTION_MODE: "build" | "develop" | "runtime";
|
|
82
|
+
REDOCLY_ENV: "development" | "production" | "preview";
|
|
83
|
+
SEARCH_DEV_DEBUG: boolean;
|
|
84
|
+
NODE_ENV?: "development" | "production" | undefined;
|
|
85
|
+
REDOCLY_INTERNAL_DEV?: boolean | undefined;
|
|
86
|
+
CI?: boolean | undefined;
|
|
87
|
+
PORT?: number | undefined;
|
|
88
|
+
REDOCLY_LOG_FORMAT?: string | undefined;
|
|
89
|
+
REDOCLY_LOG_LEVEL?: string | undefined;
|
|
90
|
+
TERM?: string | undefined;
|
|
91
|
+
INSPECT_MODE?: string | undefined;
|
|
92
|
+
REDOCLY_PREFIX_PATHS?: string | undefined;
|
|
93
|
+
REDOCLY_CONTENT_DIR?: string | undefined;
|
|
94
|
+
REDOCLY_PORTAL_VERSION?: string | undefined;
|
|
95
|
+
REDOCLY_TELEMETRY?: string | undefined;
|
|
96
|
+
REDOCLY_TELEMETRY_ENDPOINT?: string | undefined;
|
|
97
|
+
TELEMETRY_DEV_DEBUG?: boolean | undefined;
|
|
98
|
+
WEB_SERVER_IDLE_TIMEOUT?: string | undefined;
|
|
99
|
+
REDOCLY_PROBLEMS_OUTPUT_FILE?: string | undefined;
|
|
100
|
+
REDOCLY_METADATA_OUTPUT_FOLDER?: string | undefined;
|
|
101
|
+
ORGANIZATION_ID?: string | undefined;
|
|
102
|
+
ORGANIZATION_SLUG?: string | undefined;
|
|
103
|
+
ORG_SLUG?: string | undefined;
|
|
104
|
+
PROJECT_ID?: string | undefined;
|
|
105
|
+
PROJECT_SLUG?: string | undefined;
|
|
106
|
+
PROJECT_URL?: string | undefined;
|
|
107
|
+
PROJECT_BUILD_ID?: string | undefined;
|
|
108
|
+
PUBLIC_REDOCLY_BRANCH_NAME?: string | undefined;
|
|
109
|
+
JWT_SECRET_KEY?: string | undefined;
|
|
110
|
+
AUTH_URL?: string | undefined;
|
|
111
|
+
BH_API_URL?: string | undefined;
|
|
112
|
+
ENTITLEMENTS_JWKS_CDN_URL?: string | undefined;
|
|
113
|
+
OAUTH_CLIENT_ID?: string | undefined;
|
|
114
|
+
OAUTH_CLIENT_SECRET?: string | undefined;
|
|
115
|
+
OIDC_CLIENT_ID?: string | undefined;
|
|
116
|
+
OIDC_CLIENT_SECRET?: string | undefined;
|
|
117
|
+
OIDC_ISSUER_URL?: string | undefined;
|
|
118
|
+
LOCALHOST_LOGIN?: boolean | undefined;
|
|
119
|
+
REDOCLY_OAUTH_USE_INTROSPECT?: string | undefined;
|
|
120
|
+
REDOCLY_ENFORCE_LOGIN?: boolean | undefined;
|
|
121
|
+
REDOCLY_ENFORCE_RESIDENCY?: string | undefined;
|
|
122
|
+
REDOCLY_SSR_RENDER_MODE?: "main" | "worker" | undefined;
|
|
123
|
+
REDOCLY_SSR_WORKERS_MIN?: number | undefined;
|
|
124
|
+
REDOCLY_SSR_WORKERS_MAX?: number | undefined;
|
|
125
|
+
NEW_CATALOG_ENABLED?: boolean | undefined;
|
|
126
|
+
NEW_SCORECARDS_ENABLED?: boolean | undefined;
|
|
127
|
+
ENABLE_COMMENTS?: string | undefined;
|
|
128
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION?: boolean | undefined;
|
|
129
|
+
ENABLE_SOURCE_MAPS?: boolean | undefined;
|
|
130
|
+
PLAN_GATES?: string | undefined;
|
|
131
|
+
SEARCH_DEV_REINIT?: string | undefined;
|
|
132
|
+
TYPESENSE_API_URL?: string | undefined;
|
|
133
|
+
TYPESENSE_API_KEY?: string | undefined;
|
|
134
|
+
MAIN_API_URL?: string | undefined;
|
|
135
|
+
SERVER_EDITOR_APP_URL?: string | undefined;
|
|
136
|
+
REDOCLY_PUBLIC_URL?: string | undefined;
|
|
137
|
+
REDOCLY_DIAGRAM_MICROSERVICE_URL?: string | undefined;
|
|
138
|
+
REDOCLY_CORS_ORIGINS?: string | undefined;
|
|
139
|
+
SQLD_REMOTE_DATABASE_URL?: string | undefined;
|
|
140
|
+
SQLD_REMOTE_DATABASE_AUTH_TOKEN?: string | undefined;
|
|
141
|
+
FORCE_CATALOG_CACHE_REVALIDATE?: boolean | undefined;
|
|
142
|
+
SCORECARDS_POLLING_INTERVAL_MS?: string | undefined;
|
|
143
|
+
OTEL_TRACES_URL?: string | undefined;
|
|
144
|
+
REQUEST_ID?: string | undefined;
|
|
145
|
+
SITE_URL?: string | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
REDOCLY_EXECUTION_MODE?: "build" | "develop" | "runtime" | undefined;
|
|
148
|
+
NODE_ENV?: "development" | "production" | undefined;
|
|
149
|
+
REDOCLY_ENV?: "development" | "production" | "preview" | undefined;
|
|
150
|
+
REDOCLY_INTERNAL_DEV?: "true" | "false" | undefined;
|
|
151
|
+
CI?: "1" | "true" | "false" | undefined;
|
|
152
|
+
PORT?: number | undefined;
|
|
153
|
+
REDOCLY_LOG_FORMAT?: string | undefined;
|
|
154
|
+
REDOCLY_LOG_LEVEL?: string | undefined;
|
|
155
|
+
TERM?: string | undefined;
|
|
156
|
+
INSPECT_MODE?: string | undefined;
|
|
157
|
+
REDOCLY_PREFIX_PATHS?: string | undefined;
|
|
158
|
+
REDOCLY_CONTENT_DIR?: string | undefined;
|
|
159
|
+
REDOCLY_PORTAL_VERSION?: string | undefined;
|
|
160
|
+
REDOCLY_TELEMETRY?: string | undefined;
|
|
161
|
+
REDOCLY_TELEMETRY_ENDPOINT?: string | undefined;
|
|
162
|
+
TELEMETRY_DEV_DEBUG?: "true" | "false" | undefined;
|
|
163
|
+
WEB_SERVER_IDLE_TIMEOUT?: string | undefined;
|
|
164
|
+
REDOCLY_PROBLEMS_OUTPUT_FILE?: string | undefined;
|
|
165
|
+
REDOCLY_METADATA_OUTPUT_FOLDER?: string | undefined;
|
|
166
|
+
ORGANIZATION_ID?: string | undefined;
|
|
167
|
+
ORGANIZATION_SLUG?: string | undefined;
|
|
168
|
+
ORG_SLUG?: string | undefined;
|
|
169
|
+
PROJECT_ID?: string | undefined;
|
|
170
|
+
PROJECT_SLUG?: string | undefined;
|
|
171
|
+
PROJECT_URL?: string | undefined;
|
|
172
|
+
PROJECT_BUILD_ID?: string | undefined;
|
|
173
|
+
PUBLIC_REDOCLY_BRANCH_NAME?: string | undefined;
|
|
174
|
+
JWT_SECRET_KEY?: string | undefined;
|
|
175
|
+
AUTH_URL?: string | undefined;
|
|
176
|
+
BH_API_URL?: string | undefined;
|
|
177
|
+
ENTITLEMENTS_JWKS_CDN_URL?: string | undefined;
|
|
178
|
+
OAUTH_CLIENT_ID?: string | undefined;
|
|
179
|
+
OAUTH_CLIENT_SECRET?: string | undefined;
|
|
180
|
+
OIDC_CLIENT_ID?: string | undefined;
|
|
181
|
+
OIDC_CLIENT_SECRET?: string | undefined;
|
|
182
|
+
OIDC_ISSUER_URL?: string | undefined;
|
|
183
|
+
LOCALHOST_LOGIN?: "true" | "false" | undefined;
|
|
184
|
+
REDOCLY_OAUTH_USE_INTROSPECT?: string | undefined;
|
|
185
|
+
REDOCLY_ENFORCE_LOGIN?: "true" | "false" | undefined;
|
|
186
|
+
REDOCLY_ENFORCE_RESIDENCY?: string | undefined;
|
|
187
|
+
REDOCLY_SSR_RENDER_MODE?: "main" | "worker" | undefined;
|
|
188
|
+
REDOCLY_SSR_WORKERS_MIN?: number | undefined;
|
|
189
|
+
REDOCLY_SSR_WORKERS_MAX?: number | undefined;
|
|
190
|
+
NEW_CATALOG_ENABLED?: "true" | "false" | undefined;
|
|
191
|
+
NEW_SCORECARDS_ENABLED?: "true" | "false" | undefined;
|
|
192
|
+
ENABLE_COMMENTS?: string | undefined;
|
|
193
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION?: "true" | "false" | undefined;
|
|
194
|
+
ENABLE_SOURCE_MAPS?: "true" | "false" | undefined;
|
|
195
|
+
PLAN_GATES?: string | undefined;
|
|
196
|
+
SEARCH_DEV_REINIT?: string | undefined;
|
|
197
|
+
SEARCH_DEV_DEBUG?: "true" | "false" | undefined;
|
|
198
|
+
TYPESENSE_API_URL?: string | undefined;
|
|
199
|
+
TYPESENSE_API_KEY?: string | undefined;
|
|
200
|
+
MAIN_API_URL?: string | undefined;
|
|
201
|
+
SERVER_EDITOR_APP_URL?: string | undefined;
|
|
202
|
+
REDOCLY_PUBLIC_URL?: string | undefined;
|
|
203
|
+
REDOCLY_DIAGRAM_MICROSERVICE_URL?: string | undefined;
|
|
204
|
+
REDOCLY_CORS_ORIGINS?: string | undefined;
|
|
205
|
+
SQLD_REMOTE_DATABASE_URL?: string | undefined;
|
|
206
|
+
SQLD_REMOTE_DATABASE_AUTH_TOKEN?: string | undefined;
|
|
207
|
+
FORCE_CATALOG_CACHE_REVALIDATE?: "true" | "false" | undefined;
|
|
208
|
+
SCORECARDS_POLLING_INTERVAL_MS?: string | undefined;
|
|
209
|
+
OTEL_TRACES_URL?: string | undefined;
|
|
210
|
+
REQUEST_ID?: string | undefined;
|
|
211
|
+
SITE_URL?: string | undefined;
|
|
212
|
+
}>;
|
|
249
213
|
export type EnvConfig = z.infer<typeof envSchema>;
|
|
250
|
-
export declare function validateEnv(): EnvConfig;
|
|
251
214
|
//# sourceMappingURL=env-schema.d.ts.map
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`);throw new Error(`Environment validation failed:
|
|
3
|
-
${m}`)}throw r}}export{u as envSchema,q as validateEnv};
|
|
1
|
+
import{environmentDetectionSchema as e}from"./env-schemas/environment-detection.js";import{serverConfigSchema as m}from"./env-schemas/server-config.js";import{organizationProjectSchema as r}from"./env-schemas/organization-project.js";import{authSchema as o}from"./env-schemas/auth.js";import{ssrSchema as t}from"./env-schemas/ssr.js";import{featureFlagsSchema as a}from"./env-schemas/feature-flags.js";import{searchSchema as c}from"./env-schemas/search.js";import{apiUrlsSchema as i}from"./env-schemas/api-urls.js";import{databaseSchema as g}from"./env-schemas/database.js";import{catalogSchema as h}from"./env-schemas/catalog.js";import{scorecardsSchema as p}from"./env-schemas/scorecards.js";import{telemetrySchema as f}from"./env-schemas/telemetry.js";import{siteSchema as S}from"./env-schemas/site.js";const F=e.merge(m).merge(r).merge(o).merge(t).merge(a).merge(c).merge(i).merge(g).merge(h).merge(p).merge(f).merge(S).strip();export{F as envSchema};
|
|
@@ -12,9 +12,9 @@ export declare const authSchema: z.ZodObject<{
|
|
|
12
12
|
OIDC_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
13
13
|
OIDC_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
14
14
|
OIDC_ISSUER_URL: z.ZodOptional<z.ZodString>;
|
|
15
|
-
LOCALHOST_LOGIN: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
15
|
+
LOCALHOST_LOGIN: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
16
16
|
REDOCLY_OAUTH_USE_INTROSPECT: z.ZodOptional<z.ZodString>;
|
|
17
|
-
REDOCLY_ENFORCE_LOGIN: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
17
|
+
REDOCLY_ENFORCE_LOGIN: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
18
18
|
REDOCLY_ENFORCE_RESIDENCY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
JWT_SECRET_KEY?: string | undefined;
|
|
@@ -26,9 +26,9 @@ export declare const authSchema: z.ZodObject<{
|
|
|
26
26
|
OIDC_CLIENT_ID?: string | undefined;
|
|
27
27
|
OIDC_CLIENT_SECRET?: string | undefined;
|
|
28
28
|
OIDC_ISSUER_URL?: string | undefined;
|
|
29
|
-
LOCALHOST_LOGIN?:
|
|
29
|
+
LOCALHOST_LOGIN?: boolean | undefined;
|
|
30
30
|
REDOCLY_OAUTH_USE_INTROSPECT?: string | undefined;
|
|
31
|
-
REDOCLY_ENFORCE_LOGIN?:
|
|
31
|
+
REDOCLY_ENFORCE_LOGIN?: boolean | undefined;
|
|
32
32
|
REDOCLY_ENFORCE_RESIDENCY?: string | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
JWT_SECRET_KEY?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o}from"zod";const
|
|
1
|
+
import{z as o}from"zod";import{envBooleanStringOptional as t}from"../../utils/envs/env-boolean-string.js";const E=o.object({JWT_SECRET_KEY:o.string().optional(),AUTH_URL:o.string().url().optional(),BH_API_URL:o.string().url().optional(),ENTITLEMENTS_JWKS_CDN_URL:o.string().url().optional(),OAUTH_CLIENT_ID:o.string().optional(),OAUTH_CLIENT_SECRET:o.string().optional(),OIDC_CLIENT_ID:o.string().optional(),OIDC_CLIENT_SECRET:o.string().optional(),OIDC_ISSUER_URL:o.string().url().optional(),LOCALHOST_LOGIN:t(),REDOCLY_OAUTH_USE_INTROSPECT:o.string().optional(),REDOCLY_ENFORCE_LOGIN:t(),REDOCLY_ENFORCE_RESIDENCY:o.union([o.string().url(),o.literal("")]).optional()});export{E as authSchema};
|
|
@@ -3,9 +3,9 @@ import { z } from 'zod';
|
|
|
3
3
|
* Schema for catalog configuration variables.
|
|
4
4
|
*/
|
|
5
5
|
export declare const catalogSchema: z.ZodObject<{
|
|
6
|
-
FORCE_CATALOG_CACHE_REVALIDATE: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
6
|
+
FORCE_CATALOG_CACHE_REVALIDATE: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
FORCE_CATALOG_CACHE_REVALIDATE?:
|
|
8
|
+
FORCE_CATALOG_CACHE_REVALIDATE?: boolean | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
FORCE_CATALOG_CACHE_REVALIDATE?: "true" | "false" | undefined;
|
|
11
11
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o}from"zod";const e=o.object({FORCE_CATALOG_CACHE_REVALIDATE:
|
|
1
|
+
import{z as o}from"zod";import{envBooleanStringOptional as t}from"../../utils/envs/env-boolean-string.js";const e=o.object({FORCE_CATALOG_CACHE_REVALIDATE:t()});export{e as catalogSchema};
|
|
@@ -3,22 +3,22 @@ import { z } from 'zod';
|
|
|
3
3
|
* Schema for environment detection variables.
|
|
4
4
|
*/
|
|
5
5
|
export declare const environmentDetectionSchema: z.ZodObject<{
|
|
6
|
-
NODE_ENV: z.ZodOptional<z.ZodEnum<["development", "production"
|
|
7
|
-
REDOCLY_ENV: z.
|
|
8
|
-
REDOCLY_EXECUTION_MODE: z.
|
|
9
|
-
REDOCLY_INTERNAL_DEV: z.ZodOptional<z.
|
|
10
|
-
CI: z.ZodOptional<z.
|
|
6
|
+
NODE_ENV: z.ZodOptional<z.ZodEnum<["development", "production"]>>;
|
|
7
|
+
REDOCLY_ENV: z.ZodDefault<z.ZodEnum<["production", "preview", "development"]>>;
|
|
8
|
+
REDOCLY_EXECUTION_MODE: z.ZodDefault<z.ZodEnum<["build", "develop", "runtime"]>>;
|
|
9
|
+
REDOCLY_INTERNAL_DEV: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
10
|
+
CI: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">, z.ZodLiteral<"1">]>>, boolean | undefined, "1" | "true" | "false" | undefined>;
|
|
11
11
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
REDOCLY_EXECUTION_MODE
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
REDOCLY_INTERNAL_DEV?:
|
|
16
|
-
CI?:
|
|
12
|
+
REDOCLY_EXECUTION_MODE: "build" | "develop" | "runtime";
|
|
13
|
+
REDOCLY_ENV: "development" | "production" | "preview";
|
|
14
|
+
NODE_ENV?: "development" | "production" | undefined;
|
|
15
|
+
REDOCLY_INTERNAL_DEV?: boolean | undefined;
|
|
16
|
+
CI?: boolean | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
REDOCLY_EXECUTION_MODE?: "build" | "develop" | "runtime" | undefined;
|
|
19
|
-
NODE_ENV?: "development" | "production" |
|
|
19
|
+
NODE_ENV?: "development" | "production" | undefined;
|
|
20
20
|
REDOCLY_ENV?: "development" | "production" | "preview" | undefined;
|
|
21
|
-
REDOCLY_INTERNAL_DEV?:
|
|
22
|
-
CI?:
|
|
21
|
+
REDOCLY_INTERNAL_DEV?: "true" | "false" | undefined;
|
|
22
|
+
CI?: "1" | "true" | "false" | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
//# sourceMappingURL=environment-detection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as
|
|
1
|
+
import{z as e}from"zod";import{envBooleanStringOptional as o,envCiBooleanOptional as n}from"../../utils/envs/env-boolean-string.js";const p=e.strictObject({NODE_ENV:e.enum(["development","production"]).optional(),REDOCLY_ENV:e.enum(["production","preview","development"]).default("development"),REDOCLY_EXECUTION_MODE:e.enum(["build","develop","runtime"]).default("develop"),REDOCLY_INTERNAL_DEV:o(),CI:n()});export{p as environmentDetectionSchema};
|
|
@@ -3,21 +3,24 @@ import { z } from 'zod';
|
|
|
3
3
|
* Schema for feature flags.
|
|
4
4
|
*/
|
|
5
5
|
export declare const featureFlagsSchema: z.ZodObject<{
|
|
6
|
-
NEW_CATALOG_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
7
|
-
NEW_SCORECARDS_ENABLED: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
6
|
+
NEW_CATALOG_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
7
|
+
NEW_SCORECARDS_ENABLED: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
8
8
|
ENABLE_COMMENTS: z.ZodOptional<z.ZodString>;
|
|
9
|
-
|
|
9
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
10
|
+
ENABLE_SOURCE_MAPS: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
10
11
|
PLAN_GATES: z.ZodOptional<z.ZodString>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
NEW_CATALOG_ENABLED?:
|
|
13
|
-
NEW_SCORECARDS_ENABLED?:
|
|
13
|
+
NEW_CATALOG_ENABLED?: boolean | undefined;
|
|
14
|
+
NEW_SCORECARDS_ENABLED?: boolean | undefined;
|
|
14
15
|
ENABLE_COMMENTS?: string | undefined;
|
|
15
|
-
|
|
16
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION?: boolean | undefined;
|
|
17
|
+
ENABLE_SOURCE_MAPS?: boolean | undefined;
|
|
16
18
|
PLAN_GATES?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
NEW_CATALOG_ENABLED?: "true" | "false" | undefined;
|
|
19
21
|
NEW_SCORECARDS_ENABLED?: "true" | "false" | undefined;
|
|
20
22
|
ENABLE_COMMENTS?: string | undefined;
|
|
23
|
+
REDOCLY_EXP_DISABLE_MD_VALIDATION?: "true" | "false" | undefined;
|
|
21
24
|
ENABLE_SOURCE_MAPS?: "true" | "false" | undefined;
|
|
22
25
|
PLAN_GATES?: string | undefined;
|
|
23
26
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o}from"zod";const
|
|
1
|
+
import{z as o}from"zod";import{envBooleanStringOptional as E}from"../../utils/envs/env-boolean-string.js";const _=o.object({NEW_CATALOG_ENABLED:E(),NEW_SCORECARDS_ENABLED:E(),ENABLE_COMMENTS:o.string().optional(),REDOCLY_EXP_DISABLE_MD_VALIDATION:E(),ENABLE_SOURCE_MAPS:E(),PLAN_GATES:o.string().optional()});export{_ as featureFlagsSchema};
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const searchSchema: z.ZodObject<{
|
|
6
6
|
SEARCH_DEV_REINIT: z.ZodOptional<z.ZodString>;
|
|
7
|
-
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.
|
|
7
|
+
SEARCH_DEV_DEBUG: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "true" | "false" | undefined>;
|
|
8
8
|
TYPESENSE_API_URL: z.ZodOptional<z.ZodString>;
|
|
9
9
|
TYPESENSE_API_KEY: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as
|
|
1
|
+
import{z as o}from"zod";import{envBooleanStringDefaultFalse as t}from"../../utils/envs/env-boolean-string.js";const n=o.object({SEARCH_DEV_REINIT:o.string().optional(),SEARCH_DEV_DEBUG:t(),TYPESENSE_API_URL:o.string().url().optional(),TYPESENSE_API_KEY:o.string().optional()});export{n as searchSchema};
|
|
@@ -13,7 +13,7 @@ export declare const serverConfigSchema: z.ZodObject<{
|
|
|
13
13
|
REDOCLY_PORTAL_VERSION: z.ZodOptional<z.ZodString>;
|
|
14
14
|
REDOCLY_TELEMETRY: z.ZodOptional<z.ZodString>;
|
|
15
15
|
REDOCLY_TELEMETRY_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
16
|
-
TELEMETRY_DEV_DEBUG: z.ZodOptional<z.ZodEnum<["true", "false"]
|
|
16
|
+
TELEMETRY_DEV_DEBUG: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
17
17
|
WEB_SERVER_IDLE_TIMEOUT: z.ZodOptional<z.ZodString>;
|
|
18
18
|
REDOCLY_PROBLEMS_OUTPUT_FILE: z.ZodOptional<z.ZodString>;
|
|
19
19
|
REDOCLY_METADATA_OUTPUT_FOLDER: z.ZodOptional<z.ZodString>;
|
|
@@ -28,7 +28,7 @@ export declare const serverConfigSchema: z.ZodObject<{
|
|
|
28
28
|
REDOCLY_PORTAL_VERSION?: string | undefined;
|
|
29
29
|
REDOCLY_TELEMETRY?: string | undefined;
|
|
30
30
|
REDOCLY_TELEMETRY_ENDPOINT?: string | undefined;
|
|
31
|
-
TELEMETRY_DEV_DEBUG?:
|
|
31
|
+
TELEMETRY_DEV_DEBUG?: boolean | undefined;
|
|
32
32
|
WEB_SERVER_IDLE_TIMEOUT?: string | undefined;
|
|
33
33
|
REDOCLY_PROBLEMS_OUTPUT_FILE?: string | undefined;
|
|
34
34
|
REDOCLY_METADATA_OUTPUT_FOLDER?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as
|
|
1
|
+
import{z as o}from"zod";import{envBooleanStringOptional as E}from"../../utils/envs/env-boolean-string.js";const i=o.object({PORT:o.coerce.number().optional(),REDOCLY_LOG_FORMAT:o.string().optional(),REDOCLY_LOG_LEVEL:o.string().optional(),TERM:o.string().optional(),INSPECT_MODE:o.string().optional(),REDOCLY_PREFIX_PATHS:o.string().optional(),REDOCLY_CONTENT_DIR:o.string().optional(),REDOCLY_PORTAL_VERSION:o.string().optional(),REDOCLY_TELEMETRY:o.string().optional(),REDOCLY_TELEMETRY_ENDPOINT:o.string().url().optional(),TELEMETRY_DEV_DEBUG:E(),WEB_SERVER_IDLE_TIMEOUT:o.string().optional(),REDOCLY_PROBLEMS_OUTPUT_FILE:o.string().optional(),REDOCLY_METADATA_OUTPUT_FOLDER:o.string().optional()});export{i as serverConfigSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={pro:{rbac:!1,sso:!1,analytics:!0,removeAttribution:!1,advancedSearch:!1,ssoDirect:!1,aiSearchLimit:0,mcp:!1},enterprise:{rbac:!0,sso:!0,analytics:!0,removeAttribution:!0,advancedSearch:!0,ssoDirect:!1,aiSearchLimit:750,mcp:!0}},
|
|
1
|
+
const e={pro:{rbac:!1,sso:!1,analytics:!0,removeAttribution:!1,advancedSearch:!1,ssoDirect:!1,aiSearchLimit:0,kvStorageLimit:.5,mcp:!1},enterprise:{rbac:!0,sso:!0,analytics:!0,removeAttribution:!0,advancedSearch:!0,ssoDirect:!1,aiSearchLimit:750,kvStorageLimit:5,mcp:!0}},t=["@redocly/portal-plugin-async-api/plugin.js","@redocly/portal-plugin-mock-server/plugin.js","@redocly/portal-plugin-soap-api/plugin.js"],r={"code-walkthrough":"codeWalkthrough",step:"codeWalkthrough",toggle:"codeWalkthrough",input:"codeWalkthrough"};export{r as GATED_MARKDOC_TAGS,t as GATED_PLUGINS,e as PLAN_GATES_DEFAULTS};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as f}from"../tools/notifiers/reporter.js";import{envConfig as u}from"../config/env-config.js";import{telemetry as m}from"../../cli/telemetry/index.js";import{stopAllCompilers as
|
|
2
|
-
`),hasMatched:!1};const
|
|
3
|
-
`),{lineText:s}=
|
|
1
|
+
import*as E from"esbuild";import{logger as c}from"../tools/notifiers/logger.js";import{reporter as f}from"../tools/notifiers/reporter.js";import{envConfig as u}from"../config/env-config.js";import{telemetry as m}from"../../cli/telemetry/index.js";import{stopAllCompilers as C}from"./esbuild.js";import{getCodeframe as M}from"../utils/codeframes/codeframes.js";import{shutdowner as w}from"../tools/shutdowner.js";class S extends Error{errors;warnings;constructor({errors:e=[],warnings:r=[]}){super(),this.errors=e,this.warnings=r}}async function T({errors:n,warnings:e}){const r=await d(n,"error"),s=await d(e,"warning");e.forEach((t,o)=>{c.warn(s[o])}),n.forEach((t,o)=>{const i=t.location?.file||"";i&&i.includes("node_modules/")?(c.error(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t)})):(c.contentError(r[o]),m.sendCliErrorCaughtMessage({message:JSON.stringify(t),scope:"content"}))}),n.length&&u.isBuildMode&&(await C(),await w.exitWithCode(1))}async function d(n,e){switch(u.REDOCLY_LOG_FORMAT){case"JSON":return n.map(r=>JSON.stringify(r));default:return await E.formatMessages(n,{kind:e,color:!1,terminalWidth:0})}}function x(n,e){if(!e?.lineText)return{line:1,column:1,lines:n.split(`
|
|
2
|
+
`),hasMatched:!1};const r=n.split(`
|
|
3
|
+
`),{lineText:s}=e,t=i=>{const a=i.indexOf(s);return a===-1?null:a};if(e.line&&e.line<=r.length&&t(r[e.line-1]))return{line:e.line,column:e.column||1,lines:r,hasMatched:!0};const o=r.findIndex(i=>t(i)!==null);if(o>=0){const i=t(r[o]);return{line:o+1,column:(i??0)+1,lines:r,hasMatched:!0}}return{line:1,column:1,lines:r,hasMatched:!1}}function _(n,e,r,s){const{line:t,column:o,lines:i,hasMatched:a}=x(r,s),{frame:h,start:p}=M({start:{line:t,character:o},end:{line:t,character:o+(s?.lineText?.length||0)},lines:i},!0),g=`${n}::${e}::${t}`,l={message:n,sourceFileRelativePath:e,sourceFileLocation:p,codeframe:h,hasMatched:a};return f.getCompilationProblem(g)||f.reportCompilationError({type:"ERROR",severity:"ERROR",...l}),l}export{S as EsbuildError,T as esbuildLogger,_ as reportEsbuildError};
|