@hewnventures/levrops-sdk
v1.9.0
Published
TypeScript SDK for the LevrOps API.
Readme
@hewnventures/levrops-sdk
TypeScript SDK for the LevrOps Public API. Generated from OpenAPI specifications.
Installation
npm install @hewnventures/levrops-sdkUsage
import { OpenAPI } from '@hewnventures/levrops-sdk';
import {
AuthService,
CrmService,
EditorialService,
InsightsService,
KpIsService,
TasksService,
ActivitiesService,
BillingService,
BrandVoiceService,
CommerceService,
DesignOpsService,
VoiceService
} from '@hewnventures/levrops-sdk';
// Configure the API base URL
OpenAPI.BASE = 'https://api.levrops.com';
// Set your access token
OpenAPI.TOKEN = process.env.LEVROPS_ACCESS_TOKEN;
// Use the services
const tokenResponse = await AuthService.authLogin({
requestBody: {
email: '[email protected]',
password: 'password123'
}
});
const contacts = await CrmService.contactList();
const textArtifacts = await InsightsService.textArtifactList();Services
- ActivitiesService - Activity session tracking and metrics
- AuthService - Authentication, authorization, and session management
- BillingService - Billing accounts, invoices, and usage tracking
- BrandVoiceService - Brand voice configuration and synthesis
- CommerceService - Product and order management
- CrmService - Contact, identity, and membership management
- DesignOpsService - Design system, project, and artifact management
- EditorialService - Editorial planning, content, and campaign endpoints
- InsightsService - Reflective writing artifacts and advisor insight sessions
- KpIsService - Analytics KPI definitions and readings
- TasksService - Operational task templates and instances
- VoiceService - Voice model and synthesis management
Generated Types
All request/response types are fully typed based on the OpenAPI schema. Import models from the package:
import type { Contact, TextArtifact, InsightSession } from '@hewnventures/levrops-sdk';Versioning
This SDK follows semantic versioning and matches the LevrOps API contract version. See the levrops-contracts repository for contract specifications and change history.
License
MIT
