
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@visionfi/server-sdk
Advanced tools
Server-side SDK for VisionFI API access using Google Service Account authentication
Server-side SDK for VisionFI API access using Google Service Account authentication.
npm install @visionfi/server
import { VisionFi } from '@visionfi/server';
// Initialize with service account
const client = new VisionFi({
serviceAccountPath: './service-account.json'
});
// Or use Application Default Credentials
const client = new VisionFi();
// Verify authentication
const auth = await client.verifyAuth();
// Create a package
const pkg = await client.createPackage({
productType: 'consumer_loan_vehicle',
description: 'Vehicle loan application'
});
// Analyze a document
const job = await client.analyzeDocument(fileBuffer, {
fileName: 'document.pdf',
analysisType: 'auto_loan_abstract'
});
// Get results
const results = await client.getResults(job.uuid);
This package supports three authentication methods:
The SDK supports sharing packages with other users with role-based permissions.
// Share with specific users
await client.packages.sharing.addShares('package-uuid', [
{ target: 'user@example.com', role: 'editor' },
{ target: 'viewer@example.com', role: 'viewer' }
]);
// Share with all users in your organization
await client.packages.sharing.addShares('package-uuid', [
{ target: 'AllUsers', role: 'viewer' }
]);
await client.packages.sharing.updateRole('package-uuid', 'user@example.com', 'viewer');
await client.packages.sharing.remove('package-uuid', 'user@example.com');
const info = await client.packages.sharing.getInfo('package-uuid');
// { packageId, owner, shares: [{ target, role }] }
const shared = await client.packages.listShared();
// { packages: [{ packageId, owner, myRole, sharedVia, ... }], total }
// List only owned packages (default)
const owned = await client.packages.list();
// List only shared packages
const shared = await client.packages.list({ include: 'shared' });
// List all accessible packages (owned + shared)
const all = await client.packages.list({ include: 'all' });
All SDK methods support an optional requestOptions parameter that allows you to pass custom headers on a per-request basis. This is useful for B2B2C scenarios where you need to identify the end-user making the request.
import { VisionFi } from '@visionfi/server';
const client = new VisionFi();
// Pass end-user identity via VF-On-Behalf-Of header
const packages = await client.packages.list(
{ productTypes: 'consumer_loan_vehicle' },
{ headers: { 'VF-On-Behalf-Of': 'user@example.com' } }
);
// Works with all SDK methods
const pkg = await client.packages.get(
'package-uuid',
{ headers: { 'VF-On-Behalf-Of': 'user@example.com' } }
);
// Create package on behalf of user
const newPkg = await client.packages.create(
{ productType: 'consumer_loan_vehicle' },
{ headers: { 'VF-On-Behalf-Of': 'user@example.com' } }
);
// Execute processing on behalf of user
const result = await client.packages.processing.execute(
'package-uuid',
{ workflow: 'auto_loan_abstract' },
{ headers: { 'VF-On-Behalf-Of': 'user@example.com' } }
);
For security, the following headers cannot be overridden per-request and will be stripped:
authorization - Managed by SDK authenticationhost - Managed by axiosx-api-key - Managed by SDK configurationCopyright (c) 2024-2025 VisionFI. All Rights Reserved.
See LICENSE file for details.
FAQs
Server-side SDK for VisionFI API access using Google Service Account authentication
We found that @visionfi/server-sdk 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.