@opengeni/config 3.3.0 → 3.4.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/dist/index.d.ts +4 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
110
110
|
serverVersion: z.ZodOptional<z.ZodString>;
|
|
111
111
|
databaseUrl: z.ZodDefault<z.ZodString>;
|
|
112
112
|
apiDatabasePoolMax: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
113
|
+
databasePreparedStatements: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
113
114
|
dbSchema: z.ZodDefault<z.ZodString>;
|
|
114
115
|
rlsStrategy: z.ZodDefault<z.ZodEnum<{
|
|
115
116
|
force: "force";
|
|
@@ -1198,6 +1199,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
1198
1199
|
stripePublishableKey: z.ZodOptional<z.ZodString>;
|
|
1199
1200
|
stripeWebhookSecret: z.ZodOptional<z.ZodString>;
|
|
1200
1201
|
stripeCreditsProductId: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
subscriptionPlansEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1201
1203
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1202
1204
|
id: z.ZodString;
|
|
1203
1205
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1247,6 +1249,7 @@ declare const ArtifactOutboxSettingsSchema: z.ZodObject<{
|
|
|
1247
1249
|
serviceName: z.ZodDefault<z.ZodString>;
|
|
1248
1250
|
environment: z.ZodDefault<z.ZodString>;
|
|
1249
1251
|
deploymentRevision: z.ZodDefault<z.ZodString>;
|
|
1252
|
+
databasePreparedStatements: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1250
1253
|
dbSchema: z.ZodDefault<z.ZodString>;
|
|
1251
1254
|
rlsStrategy: z.ZodDefault<z.ZodEnum<{
|
|
1252
1255
|
force: "force";
|
|
@@ -1288,6 +1291,7 @@ declare const ArtifactMaterializerSettingsSchema: z.ZodObject<{
|
|
|
1288
1291
|
serviceName: z.ZodDefault<z.ZodString>;
|
|
1289
1292
|
environment: z.ZodDefault<z.ZodString>;
|
|
1290
1293
|
deploymentRevision: z.ZodDefault<z.ZodString>;
|
|
1294
|
+
databasePreparedStatements: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1291
1295
|
dbSchema: z.ZodDefault<z.ZodString>;
|
|
1292
1296
|
rlsStrategy: z.ZodDefault<z.ZodEnum<{
|
|
1293
1297
|
force: "force";
|
package/dist/index.js
CHANGED
|
@@ -1024,6 +1024,11 @@ var SettingsSchema = z5.object({
|
|
|
1024
1024
|
// reuses the application handle. Keep the historical default for existing
|
|
1025
1025
|
// deployments and let operators budget this per process with replica counts.
|
|
1026
1026
|
apiDatabasePoolMax: z5.coerce.number().int().positive().default(32),
|
|
1027
|
+
// Named prepared statements for the application database pools. Unset → on
|
|
1028
|
+
// for direct connections and off when the URL targets port 6432 (PgBouncer's
|
|
1029
|
+
// port, including Azure Flexible Server's built-in pooler). Set false for any
|
|
1030
|
+
// other transaction-pooling proxy; set true to force them on.
|
|
1031
|
+
databasePreparedStatements: EnvBoolean.optional(),
|
|
1027
1032
|
// Step I (§7.8 runtime half). Dedicated Postgres schema for the EMBEDDED
|
|
1028
1033
|
// topology. Default "" → standalone: no search_path scoping, server default
|
|
1029
1034
|
// (`public`). When set (e.g. "opengeni"), the db handle + the managed-auth
|
|
@@ -2318,6 +2323,8 @@ var SettingsSchema = z5.object({
|
|
|
2318
2323
|
stripePublishableKey: z5.string().optional(),
|
|
2319
2324
|
stripeWebhookSecret: z5.string().optional(),
|
|
2320
2325
|
stripeCreditsProductId: z5.string().optional(),
|
|
2326
|
+
// Enables subscription service paths only; top-up billing remains independent.
|
|
2327
|
+
subscriptionPlansEnabled: EnvBoolean.default(false),
|
|
2321
2328
|
mcpServers: z5.array(
|
|
2322
2329
|
z5.object({
|
|
2323
2330
|
id: z5.string().min(1).regex(registryId),
|
|
@@ -2352,6 +2359,7 @@ var ArtifactServiceSettingsSchema = SettingsSchema.pick({
|
|
|
2352
2359
|
deploymentRevision: true,
|
|
2353
2360
|
dbSchema: true,
|
|
2354
2361
|
rlsStrategy: true,
|
|
2362
|
+
databasePreparedStatements: true,
|
|
2355
2363
|
observabilityStructuredLogs: true,
|
|
2356
2364
|
observabilityMetricsEnabled: true,
|
|
2357
2365
|
observabilityOtlpEndpoint: true,
|
|
@@ -2392,6 +2400,7 @@ function artifactServiceEnvironment(source) {
|
|
|
2392
2400
|
deploymentRevision: optional("OPENGENI_DEPLOYMENT_REVISION") ?? optional("SOURCE_VERSION") ?? optional("GITHUB_SHA"),
|
|
2393
2401
|
dbSchema: optional("OPENGENI_DB_SCHEMA"),
|
|
2394
2402
|
rlsStrategy: optional("OPENGENI_RLS_STRATEGY"),
|
|
2403
|
+
databasePreparedStatements: optional("OPENGENI_DATABASE_PREPARED_STATEMENTS"),
|
|
2395
2404
|
observabilityStructuredLogs: optional("OPENGENI_OBSERVABILITY_STRUCTURED_LOGS"),
|
|
2396
2405
|
observabilityMetricsEnabled: optional("OPENGENI_OBSERVABILITY_METRICS_ENABLED"),
|
|
2397
2406
|
observabilityOtlpEndpoint: optional("OPENGENI_OTEL_EXPORTER_OTLP_ENDPOINT") ?? optional("OTEL_EXPORTER_OTLP_ENDPOINT"),
|
|
@@ -4217,6 +4226,7 @@ function getSettings(source = process.env) {
|
|
|
4217
4226
|
serverVersion: optional("OPENGENI_SERVER_VERSION"),
|
|
4218
4227
|
databaseUrl: optional("OPENGENI_DATABASE_URL"),
|
|
4219
4228
|
apiDatabasePoolMax: optional("OPENGENI_API_DATABASE_POOL_MAX"),
|
|
4229
|
+
databasePreparedStatements: optional("OPENGENI_DATABASE_PREPARED_STATEMENTS"),
|
|
4220
4230
|
dbSchema: optional("OPENGENI_DB_SCHEMA"),
|
|
4221
4231
|
rlsStrategy: optional("OPENGENI_RLS_STRATEGY"),
|
|
4222
4232
|
runtimeDatabaseRole: optional("OPENGENI_RUNTIME_DATABASE_ROLE"),
|
|
@@ -4832,6 +4842,7 @@ function getSettings(source = process.env) {
|
|
|
4832
4842
|
stripePublishableKey: optional("OPENGENI_STRIPE_PUBLISHABLE_KEY"),
|
|
4833
4843
|
stripeWebhookSecret: optional("OPENGENI_STRIPE_WEBHOOK_SECRET"),
|
|
4834
4844
|
stripeCreditsProductId: optional("OPENGENI_STRIPE_CREDITS_PRODUCT_ID"),
|
|
4845
|
+
subscriptionPlansEnabled: optional("OPENGENI_SUBSCRIPTION_PLANS_ENABLED"),
|
|
4835
4846
|
mcpServers: parseMcpServers(optional("OPENGENI_MCP_SERVERS"))
|
|
4836
4847
|
};
|
|
4837
4848
|
const parsed = SettingsSchema.parse(raw);
|