@opengeni/config 3.3.0 → 3.3.1-canary.38922642121001
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 +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1198,6 +1198,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
1198
1198
|
stripePublishableKey: z.ZodOptional<z.ZodString>;
|
|
1199
1199
|
stripeWebhookSecret: z.ZodOptional<z.ZodString>;
|
|
1200
1200
|
stripeCreditsProductId: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
subscriptionPlansEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1201
1202
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1202
1203
|
id: z.ZodString;
|
|
1203
1204
|
name: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -2318,6 +2318,8 @@ var SettingsSchema = z5.object({
|
|
|
2318
2318
|
stripePublishableKey: z5.string().optional(),
|
|
2319
2319
|
stripeWebhookSecret: z5.string().optional(),
|
|
2320
2320
|
stripeCreditsProductId: z5.string().optional(),
|
|
2321
|
+
// Enables subscription service paths only; top-up billing remains independent.
|
|
2322
|
+
subscriptionPlansEnabled: EnvBoolean.default(false),
|
|
2321
2323
|
mcpServers: z5.array(
|
|
2322
2324
|
z5.object({
|
|
2323
2325
|
id: z5.string().min(1).regex(registryId),
|
|
@@ -4832,6 +4834,7 @@ function getSettings(source = process.env) {
|
|
|
4832
4834
|
stripePublishableKey: optional("OPENGENI_STRIPE_PUBLISHABLE_KEY"),
|
|
4833
4835
|
stripeWebhookSecret: optional("OPENGENI_STRIPE_WEBHOOK_SECRET"),
|
|
4834
4836
|
stripeCreditsProductId: optional("OPENGENI_STRIPE_CREDITS_PRODUCT_ID"),
|
|
4837
|
+
subscriptionPlansEnabled: optional("OPENGENI_SUBSCRIPTION_PLANS_ENABLED"),
|
|
4835
4838
|
mcpServers: parseMcpServers(optional("OPENGENI_MCP_SERVERS"))
|
|
4836
4839
|
};
|
|
4837
4840
|
const parsed = SettingsSchema.parse(raw);
|