New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@visionfi/desktop-sdk

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visionfi/desktop-sdk

Desktop SDK for VisionFI Cloud Run services with Azure AD authentication

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

@visionfi/desktop

Desktop SDK for VisionFI Cloud Run services with Azure AD authentication.

Installation

npm install @visionfi/desktop @azure/msal-node

Quick Start

import { VisionFIDesktop } from '@visionfi/desktop';
import { PublicClientApplication } from '@azure/msal-node';

// Setup MSAL for Azure AD
const msalClient = new PublicClientApplication({
  auth: {
    clientId: 'your-client-id',
    authority: 'https://login.microsoftonline.com/your-tenant-id'
  }
});

// Initialize desktop client
const client = new VisionFIDesktop({
  tenantApiUrl: 'https://your-service.run.app',
  getAccessToken: async () => {
    const result = await msalClient.acquireTokenSilent({
      scopes: ['api://your-scope']
    });
    return result.accessToken;
  },
  offlineMode: true
});

// Connect to service
await client.connect();

// Create package
const pkg = await client.createPackage({
  productType: 'consumer_loan',
  description: 'Loan application'
});

// Analyze with progress tracking
await client.analyzeDocument(fileBuffer, options, (progress) => {
  console.log(`Upload: ${progress.percentage}%`);
});

Features

  • Azure AD authentication integration
  • Upload progress tracking
  • Connection status monitoring
  • Offline queue support (coming soon)
  • Event-driven architecture

Events

client.on('connection:online', () => console.log('Connected'));
client.on('connection:offline', () => console.log('Disconnected'));
client.on('auth:expired', () => console.log('Token expired'));

License

Copyright (c) 2024-2025 VisionFI. All Rights Reserved.

See LICENSE file for details.

Keywords

visionfi

FAQs

Package last updated on 24 Mar 2026

Did you know?

Socket

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.

Install

Related posts