@opengeni/api-router 1.0.2 → 1.2.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/app.js +1 -1
- package/dist/artifact-catalog-cursor.d.ts +1 -0
- package/dist/{chunk-6TZ5LG3O.js → chunk-BAZXDFT2.js} +353 -161
- package/dist/{chunk-6TZ5LG3O.js.map → chunk-BAZXDFT2.js.map} +1 -1
- package/dist/credit-promotion-snapshot.d.ts +6 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/integrations/marketplace-plugin.d.ts +43 -43
- package/dist/mcp/server.d.ts +1 -1
- package/dist/routes/billing.d.ts +3 -1
- package/package.json +20 -20
- package/src/app.ts +8 -2
- package/src/artifact-catalog-cursor.ts +1 -0
- package/src/credit-promotion-snapshot.ts +36 -0
- package/src/index.ts +0 -2
- package/src/mcp/action-catalog.gen.ts +35 -16
- package/src/mcp/server.ts +3 -0
- package/src/mcp-oauth.ts +8 -2
- package/src/model-catalog.ts +1 -0
- package/src/routes/artifact-catalog.ts +92 -0
- package/src/routes/billing.ts +72 -15
- package/src/routes/managed-onboarding.ts +2 -0
- package/src/routes/organization-memberships.ts +2 -5
- package/src/routes/sessions.ts +11 -1
- package/src/routes/workspaces.ts +27 -12
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PromotionalCreditScope } from "@opengeni/contracts";
|
|
2
|
+
/** Preserve scoped status and fallback eligibility; runtime policy can update coverage.
|
|
3
|
+
* Stripe metadata values are limited to 500 characters. Keep each chunk below that. */
|
|
4
|
+
export declare function creditScopeMetadata(scope?: PromotionalCreditScope): Record<string, string>;
|
|
5
|
+
/** Missing metadata is a legacy checkout; incomplete metadata must never become unrestricted. */
|
|
6
|
+
export declare function creditScopeFromMetadata(metadata: Record<string, string> | null | undefined): PromotionalCreditScope | undefined;
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
startSlackInteractionPump,
|
|
13
13
|
startTemporalScheduleCleanupPump,
|
|
14
14
|
withAccessGrantSessionRlsContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BAZXDFT2.js";
|
|
16
16
|
import "./chunk-OGQDXVXY.js";
|
|
17
17
|
|
|
18
18
|
// src/index.ts
|
|
@@ -3282,8 +3282,7 @@ async function startApi(options = {}) {
|
|
|
3282
3282
|
const databasePosture = {
|
|
3283
3283
|
rlsStrategy: settings.rlsStrategy,
|
|
3284
3284
|
expectedRole: settings.runtimeDatabaseRole,
|
|
3285
|
-
targetSchema: settings.dbSchema.trim() || "public"
|
|
3286
|
-
organizationTenancyCanonicalActivationEnabled: settings.organizationTenancyCanonicalActivationEnabled
|
|
3285
|
+
targetSchema: settings.dbSchema.trim() || "public"
|
|
3287
3286
|
};
|
|
3288
3287
|
const controlPlaneAuth = resolveNatsControlPlaneAuth(settings);
|
|
3289
3288
|
try {
|