0.0.3 • Published 9 months ago

@saharaai/devportal-sdk v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@saharaai/devportal-sdk

Overview

The @saharaai/devportal-sdk is a comprehensive TypeScript SDK for interacting with the Sahara AI platform. It provides a wide range of functionalities for managing various aspects of the platform, including API keys, applications, datasets, compute resources, payments, pipelines, tags, and vaults.

Features

The SDK offers methods for:

  1. API Key Management
  2. Application Management
  3. Dataset Management
  4. Compute Management
  5. Credits Management
  6. Dashboard Operations
  7. DataHub (Marketplace) Interactions
  8. Payment Processing
  9. Pipeline Management
  10. Tag Management
  11. Vault Operations

Installation

npm install @saharaai/devportal-sdk

Usage

import { SaharaSDK } from "@saharaai/devportal-sdk";

const sdk = new SaharaSDK({
  url: "https://api.sahara.ai",
  apiKey: "your-api-key",
  secret: "your-secret-key",
});

Examples

// Get API Keys
const apiKeys = await sdk.getApiKeys();

// Create a new API Key
const newApiKey = await sdk.createApiKey({
  algorithm: "ED25519",
  apiName: "My New API Key",
  expiresAt: "2024-12-31T23:59:59Z",
  privateKey: "your-private-key",
  publicKey: "your-public-key",
  resourceIds: [1, 2, 3],
  signatureRequired: true,
  trustedIps: ["192.168.1.1"],
  type: "APPLICATION",
});
0.0.3

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago