Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/xspace-agent/packages/core/src/tenant/index.ts

oversteppingc6a11f8bcfd5
diff --git a/xspace-agent/xspace-agent/packages/core/src/tenant/index.ts b/xspace-agent/xspace-agent/packages/core/src/tenant/index.ts
new file mode 100644
index 000000000..c651849af
--- /dev/null
+++ b/xspace-agent/xspace-agent/packages/core/src/tenant/index.ts
@@ -0,0 +1,74 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§32]
+
+// =============================================================================
+// Multi-Tenant Module — Public Exports
+// =============================================================================
+
+// Types
+export type {
+ OrgId,
+ UserId,
+ PlanTier,
+ Plan,
+ Quotas,
+ FeatureFlags,
+ OrgStatus,
+ SuspensionReason,
+ Organization,
+ OrgRole,
+ OrgMember,
+ CustomRole,
+ Invitation,
+ InvitationStatus,
+ Team,
+ ApiKey,
+ TenantContext,
+ TenantEvent,
+} from './types';
+
+// Plans
+export { PLANS, getPlan, getDefaultQuotas } from './plans';
+
+// Feature flags
+export { createFeatureFlags } from './feature-flags';
+export type { FeatureName } from './feature-flags';
+
+// Tenant context (AsyncLocalStorage)
+export {
+ runWithTenant,
+ getTenantContext,
+ getTenantContextOrNull,
+ getCurrentOrgId,
+} from './context';
+
+// Organization lifecycle
+export {
+ createOrganization,
+ deleteOrganization,
+ suspendOrganization,
+ reactivateOrganization,
+ changePlan,
+ getOrganization,
+ getOrganizationBySlug,
+ resolveApiKey,
+ getOrgMembers,
+ getOrgQuotas,
+ getOrgApiKeys,
+ getTenantEvents,
+ addMember,
+ removeMember,
+} from './organization';
+export type {
+ CreateOrganizationInput,
+ CreateOrganizationResult,
+ AddMemberInput,
+} from './organization';
+
+// Quota enforcement
+export { QuotaEnforcer } from './quota-enforcer';
+
+// Tenant-scoped repository
+export { TenantRepository } from './repository';
+
+