
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@plasius/entity-manager
Advanced tools
Entity definitions and validation schemas for the Plasius ecosystem.
This package is part of the Plasius LTD selective open-source strategy. For more on our approach, see ADR-0013: Selective Open Source. This package is maintained as open source to foster community trust and enable integration, while the core Plasius platform remains proprietary.
Apache-2.0. ESM + CJS builds. TypeScript types included.
npm install @plasius/entity-manager
import {
userEntitySchema,
PreferredDisplayOrder,
} from "@plasius/entity-manager";
const user = {
type: "userEntity",
version: "1.0",
email: "alice@example.com",
name: {
firstName: "Alice",
lastName: "Lovelace",
displayName: "Alice L.",
preferredDisplayOrder: PreferredDisplayOrder.DISPLAY_NAME,
},
};
const result = userEntitySchema.validate(user);
if (!result.valid) {
console.error(result.errors);
}
Editable profile validation issues expose stable field and message keys with
en-GB defaults resolved through @plasius/translations.
import {
editableUserProfileValidationTranslationKeys,
mapEditableUserProfileValidationErrors,
translateEditableUserProfileValidationText,
validateEditableUserProfile,
} from "@plasius/entity-manager";
const validation = validateEditableUserProfile(profile);
const mapped = mapEditableUserProfileValidationErrors(validation);
const message = translateEditableUserProfileValidationText(
editableUserProfileValidationTranslationKeys.required,
{ field: "First name" },
);
console.log(mapped.issues[0]?.fieldKey, mapped.issues[0]?.messageKey, message);
baseEntitySchema, baseEntityShape, BaseEntitypartitionKey, id, entityType, createdAt, createdBy, and isDeleted (plus system type and version).partitionKey, createdBy, updatedBy, deletedBy, and deletedReason are marked internal and are omitted by default when calling schema.serialize(...).userEntitySchema, userNameSchema, userAvatarSchemavalidateEditableUserProfile, mapEditableUserProfileValidationErrors,
editableUserProfileFieldTranslationKeys,
editableUserProfileValidationTranslationKeys,
entityManagerEnGbTranslations, translateEditableUserProfileValidationTextsettingsEntitySchema, permissionsEntitySchema, featureFlagEntitySchema, roleEntitySchemaPreferredDisplayOrder, UserEmailPreferences, UserNotificationPreferences, Role, ScopeassetEntitySchema, imageAssetEntitySchema, audioAssetEntitySchema, modelAssetEntitySchema, objectAssetEntitySchemaobjectAssetEntitySchema includes object-specific fields for payload URL, optional thumbnail, optional format/size, and component wiring.
AudioChannel, ModelAssetFormatbaseComponentSchema, physicsComponentSchema, animationComponentSchema, shadowComponentSchema, levelOfDetailComponentSchemaComponentTypesauthenticatedUserSchema, AuthProvidertranslatableSchema, supportedLanguagesSchemaisValidAzureTableKey, isValidEntityType, validateAssetSchemavalidateFeatureFlagValue, validateSettingValueEntity schemas validate the full persisted entity shape, including internal audit and storage metadata.
When returning data to clients, prefer schema.serialize(entity) so only public fields are included by default.
import { baseEntitySchema } from "@plasius/entity-manager";
const payload = baseEntitySchema.serialize({
type: "baseEntity",
version: "1.0.0",
entityType: "baseEntity",
partitionKey: "tenant-a",
id: "row-1",
createdAt: new Date().toISOString(),
createdBy: "user-1",
isDeleted: false,
});
// partitionKey and createdBy are omitted from the serialized payload.
console.log(payload);
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Licensed under the Apache-2.0 License.
FAQs
Entity definition & validation helpers for Plasius ecosystem
We found that @plasius/entity-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.