Nirmos
Platform setup

Privacy and data controls

Project policy, transient images, explicit memory permission and deletion operations.

Workspace policy limits project capabilities. Projects and requests can restrict those limits. The runtime enforces policy independently of dashboard controls. Deployments must initialize project governance and apply the reviewed migration before enabling these APIs.

Transient images

const result = await nirmos.images.generate({
  model: "provider/model",
  prompt: "A mountain landscape",
  storage: { mode: "transient" },
});

Transient output is base64. It does not require S3 or create a retained image asset. response_format: "url" conflicts with transient mode and fails before provider execution. Explicitly permitted temporary/persistent modes create private assets. Providers retain their own processing policies.

Memory permission and conversation opt-out

An administrator first permits memory at workspace and project scope. A properly scoped customer application declares the user's permission; this mechanism does not determine lawful consent or legal basis.

await nirmos.memory.permissions.update("opaque-user-id", {
  expectedRevision: 0,
  status: "granted",
  authorizationReference: "app-permission-record-id",
});

const conversation = await nirmos.conversations.create({
  userId: "opaque-user-id",
  memoryEnabled: false,
  historyEnabled: false,
});

await nirmos.gateway.chat.create({
  model: "provider/model",
  messages: [{ role: "user", content: "Hello" }],
  conversation: { id: conversation.id },
  memory: { enabled: false },
  privacy: { inputLogging: false, outputLogging: false, cache: false },
});

Chat does not automatically invoke memory. Explicit memory.ingest, memory.context and memory.search calls require the user and conversation identifiers for conversational processing. A disabled conversation skips retrieval and extraction. Skipped ingestion has no run ID. Conversation memory cannot be re-enabled through a permissive request; create a new appropriately authorized conversation.

User-wide memory deletion

const operation = await nirmos.memory.deleteAllForUser({
  userId: "opaque-user-id",
  revokePermission: true,
});
const status = await nirmos.privacy.operations.get(operation.id);

Deletion defaults to revoking future collection. It is project-scoped and available even when memory is disabled. pending means cleanup is incomplete. Revocation, deleting memories, deleting chat history and deleting the account are separate actions. Permission changes require memory:managePermissions; user-wide deletion requires memory:erase; operation polling requires privacy:read.

Exports and deployment limits

memory.exportForUser and conversations.export return asynchronous operations. Completed exports provide paged JSON downloads through privacy.operations.download. Artifacts expire after 24 hours and require export permission. Existing signed links and downloaded files have independent revocation limits.

Project/workspace cleanup is asynchronous; security audit and authentication/account retention are separate. Shorter deadlines reconcile existing records without extending previous expiration. Backup replay is an isolated operator procedure, never an automatic restoration of permission. Reviewed migration, scheduler provisioning, real-store failure/restore testing, production infrastructure verification and legal review are release prerequisites. Do not infer a compliance certification, data residency or provider training guarantee from these APIs.

Explicit history and sensitive requests

Chat history remains off by default. Use conversations.create({ userId, historyEnabled: true }) within permitted project policy, then explicitly append messages; gateway generation never automatically records a transcript. conversations.deleteForUser(userId) fences and schedules history deletion independently of extracted memories. Old conversations cannot resume history collection after that deletion; new explicitly enabled conversations can do so after cleanup completes.

Use privacy: { sensitive: true } on gateway calls to prohibit body capture, response caching and deferred processing. Ordinary requests can restrict inputLogging, outputLogging and cache separately. These options cannot enable a workspace-prohibited capability. Sampling and generic redaction cannot guarantee all personal information is removed from arbitrary text.

Workspace/project policy mutations require administrative identity and privacy:update; an ordinary project service key cannot administer them. Authorized operators can retry blocked cleanup and manage narrowly scoped preservation exceptions. Deleting a workspace's managed data does not immediately remove security records, immutable backups, external provider records, or the authentication account.

Image-generation history follows usage-metadata retention. A retained image asset can outlive its generation-history row and remains accessible through authorized media APIs until its own expiration or deletion.

On this page