Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@dynamia-tools/files-sdk

Latest version: v26.11.4

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dynamia.tools
10 Stars
4 Forks
11 Versions
651 Downloads
Java Repo language

Scan summary

@dynamia-tools/files-sdk was last scanned on 23 Nov 2026 at version 26.11.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 3 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 26.11.4.
  • Downloads: 651 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
26.11.4 LATEST 23 Nov 2026 No rules fired
26.11.3 23 Nov 2026 No rules fired
26.11.2 18 Nov 2026 No rules fired
26.11.1 10 Nov 2026 Not shown
26.11.0 9 Nov 2026 Not shown

No rules fired in 26.11.4

Findings

Findings for v26.11.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 26.11.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@dynamia-tools/files-sdk

TypeScript / JavaScript client SDK for the Dynamia Entity Files extension REST API.

@dynamia-tools/files-sdk provides a small, focused client to download, inspect and upload files managed by the Entity Files extension of a Dynamia Platform backend. The package exposes a single API class, FilesApi, which delegates base URL handling to the core @dynamia-tools/sdk HttpClient and reuses the same authentication context for upload operations.

This README explains how to install the package, how to use FilesApi (recommended via DynamiaClient) and how to handle downloads plus the new multipart / base64 upload flows.


Table of Contents

  • Installation
  • Quick Start (recommended)
  • API methods
  • Upload examples
  • Browser example (download and show)
  • Node.js example (save to disk)
  • Authentication & Errors
  • Contributing
  • License

Installation

Install the package using your preferred package manager:

# pnpm (recommended)
pnpm add @dynamia-tools/files-sdk

# npm
npm install @dynamia-tools/files-sdk

# yarn
yarn add @dynamia-tools/files-sdk

This package declares a peer dependency on @dynamia-tools/sdk (see package.json). The recommended pattern is to use the core SDK's DynamiaClient so you reuse the same HTTP client, auth configuration and fetch implementation.


Quick Start (recommended)

Construct FilesApi from an existing DynamiaClient so authentication, base URL and fetch are consistent:

import { DynamiaClient } from '@dynamia-tools/sdk';
import { FilesApi } from '@dynamia-tools/files-sdk';

const client = new DynamiaClient({ baseUrl: 'https://app.example.com', token: '...' });
const files = new FilesApi(client.http);

// Download a file as a Blob (browser)
const blob = await files.download('myfile.pdf', 'f9a3e8c2-...');

// Get file metadata and direct URL from the server
const metadata = await files.export('f9a3e8c2-...');

// Get a direct URL (no network call performed)
const url = files.getUrl('myfile.pdf', 'f9a3e8c2-...');
console.log(url);

Notes:

  • FilesApi methods are thin wrappers over the core HttpClient (get, url) implemented by DynamiaClient.
  • The download() method calls GET /storage/{uuid}/{file} and returns a Blob in browser environments; when running in Node.js the underlying fetch polyfill may provide an ArrayBuffer/Buffer which you should convert to a file.
  • The upload methods call the new REST endpoints exposed by EntityFileStorageController: POST /api/storage/upload and POST /api/storage/upload-base64.

API methods

The implementation in src/api.ts exposes the following methods on FilesApi:

  • export(uuid: string): Promise<EntityFileExportResponse>
    • GET /api/storage/{uuid}/export — Returns server-side metadata such as name, size, version and url.
  • download(file: string, uuid: string): Promise<Blob>
    • GET /storage/{uuid}/{file} — Downloads the file. The SDK returns parsed JSON for application/json responses and a Blob for other content types (binary).
  • getUrl(file: string, uuid: string): string
    • Returns a fully-qualified URL that points to /storage/{uuid}/{file}. No HTTP request is made.
  • uploadMultipart(file: Blob | File, options?: MultipartUploadOptions): Promise<EntityFileUploadResponse>
    • POST /api/storage/upload — Uploads a file using multipart form data.
  • uploadBase64(request: Base64UploadRequest): Promise<EntityFileUploadResponse>
    • POST /api/storage/upload-base64 — Uploads a file using JSON containing base64 or data content.

Use download() when you need the file content programmatically (e.g., for preview or file save). Use getUrl() when you want to put a direct link in an img src, anchor href, or let the browser perform the download. Use export() when you need server-generated metadata or a pre-authorized URL. Use the upload methods when the frontend must create EntityFile records directly.


Upload examples

Multipart upload
const uploaded = await files.uploadMultipart(fileInput.files![0], {
  className: 'com.example.crm.Customer',
  entityId: 15,
  description: 'Signed contract',
  shared: false,
  parentUuid: 'folder-uuid',
});

console.log(uploaded.uuid, uploaded.url);
Base64 JSON upload
const uploaded = await files.uploadBase64({
  fileName: 'avatar.png',
  contentType: 'image/png',
  base64: imageBase64,
  className: 'com.example.crm.Customer',
  entityId: '15',
  shared: true,
});

console.log(uploaded.uuid, uploaded.valid);

Both upload methods support these optional fields:

  • className
  • entityId
  • description
  • shared
  • subfolder
  • storedFileName
  • parentUuid

When className and entityId are omitted, the server creates a temporal file. When both are provided, the uploaded file is attached to the referenced entity.


Browser example (download and show)

// show a downloaded PDF in a new tab
const blob = await files.download('reports/monthly.pdf', 'f9a3e8c2-...');
const url = URL.createObjectURL(blob);
window.open(url, '_blank');
// Remember to revoke the object URL when done
URL.revokeObjectURL(url);

Use files.getUrl('images/logo.png', uuid) directly in <img src={...} /> if you just need to render an image.


Node.js example (save to disk)

When running in Node, the fetch implementation may not return a Blob. Use arrayBuffer() or convert to a Buffer before writing the file to disk:

import fs from 'fs';
import { DynamiaClient } from '@dynamia-tools/sdk';
import { FilesApi } from '@dynamia-tools/files-sdk';

const client = new DynamiaClient({ baseUrl: 'https://app.example.com', token: process.env.TOKEN, fetch: fetch });
const files = new FilesApi(client.http);

const res = await files.download('reports/monthly.pdf', 'f9a3e8c2-...');

// If the returned value has arrayBuffer(), use it
if (res && typeof (res as any).arrayBuffer === 'function') {
  const ab = await (res as any).arrayBuffer();
  const buffer = Buffer.from(ab);
  await fs.promises.writeFile('./monthly.pdf', buffer);
} else if (Buffer.isBuffer(res)) {
  await fs.promises.writeFile('./monthly.pdf', res);
} else {
  // Fallback: inspect the object
  console.error('Unexpected download result:', res);
}

Note: if you are using Node.js < 18 you must provide a fetch implementation (e.g. node-fetch) and pass it to DynamiaClient via the fetch config option.


Authentication & errors

Use the same authentication methods supported by DynamiaClient:

  • Bearer token: pass token to DynamiaClient.
  • HTTP Basic: pass username and password.
  • Session / form-login: use withCredentials: true and perform the login flow before calling the SDK.

Non-2xx responses are translated by the core HttpClient into DynamiaApiError (from @dynamia-tools/sdk). Catch this error to examine status, url and body for logging or user-friendly messages.


Contributing

See the repository-level CONTRIBUTING.md for contribution guidelines.

Quick local steps:

  1. Clone the repo and install dependencies: pnpm install
  2. Work inside framework/extensions/entity-files/packages/files-sdk/
  3. Build and test: pnpm --filter @dynamia-tools/files-sdk build / pnpm --filter @dynamia-tools/files-sdk test

License

Apache License 2.0 — © Dynamia Soluciones IT SAS

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @dynamia-tools/files-sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229