buena-typescript-sdk
Version:
Official TypeScript SDK for Buena.ai API - LinkedIn automation and lead management
97 lines (90 loc) • 2.02 kB
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { createApiKey } from "../funcs/createApiKey.js";
import { createLead } from "../funcs/createLead.js";
import { healthCheck } from "../funcs/healthCheck.js";
import { listApiKeys } from "../funcs/listApiKeys.js";
import { listLeads } from "../funcs/listLeads.js";
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
import * as models from "../models/index.js";
import * as operations from "../models/operations/index.js";
import { unwrapAsync } from "../types/fp.js";
export class SDK extends ClientSDK {
/**
* Health Check
*
* @remarks
* Check the API status and health
*/
async healthCheck(
options?: RequestOptions,
): Promise<operations.HealthCheckResponse> {
return unwrapAsync(healthCheck(
this,
options,
));
}
/**
* Create API Key
*
* @remarks
* Create a new API key
*/
async createApiKey(
request: operations.CreateApiKeyRequest,
options?: RequestOptions,
): Promise<models.ApiKey> {
return unwrapAsync(createApiKey(
this,
request,
options,
));
}
/**
* List API Keys
*
* @remarks
* List all API keys for the user
*/
async listApiKeys(
options?: RequestOptions,
): Promise<Array<models.ApiKey>> {
return unwrapAsync(listApiKeys(
this,
options,
));
}
/**
* List Leads
*
* @remarks
* Get a list of leads with optional filtering
*/
async listLeads(
request?: operations.ListLeadsRequest | undefined,
options?: RequestOptions,
): Promise<operations.ListLeadsResponse> {
return unwrapAsync(listLeads(
this,
request,
options,
));
}
/**
* Create Lead
*
* @remarks
* Create a new lead
*/
async createLead(
request: models.CreateLeadRequest,
options?: RequestOptions,
): Promise<models.Lead> {
return unwrapAsync(createLead(
this,
request,
options,
));
}
}