ishtarengine-sdk
v1.0.2
Published
Client TypeScript typé pour l'API IshtarEngine
Maintainers
Readme
IshtarEngine SDK
Client TypeScript typé pour l'API IshtarEngine.
Installation
npm install ishtarengine-sdkUsage
import { IshtarEngineClient } from 'ishtarengine-sdk';
const client = new IshtarEngineClient({
baseUrl: 'https://api.psychomantic.com',
apiKey: 'ish_...', // mode B2B
// ou
accessToken: 'jwt...', // mode B2C
});
// Health check
const health = await client.health();
// Thème natal
const natal = await client.natal({
date: '1990-06-15',
time: '14:30:00',
latitude: 48.8566,
longitude: 2.3522,
timezone: 'Europe/Paris',
includeAsteroids: true,
});
// Auth B2C
const session = await client.register({
email: '[email protected]',
password: 'Str0ngP@ss!',
name: 'Jane Doe',
});
// Profils
const profiles = await client.listProfiles();Scripts
npm run generate— régénèresrc/openapi.tsdepuisIshtarEngine/openapi.yamlnpm run typecheck— vérifie les typesnpm run build— compile le SDKnpm run validate-openapi— valide la spécification OpenAPI
Architecture
src/openapi.ts: types générés automatiquement paropenapi-typescriptsrc/client.ts: wrapper haut niveau (IshtarEngineClient) basé suropenapi-fetchdist/: sortie de compilation
