@leash/integration-slite
v0.1.0
Published
Typed Slite integration for Leash
Readme
@leash/integration-slite
Typed Slite integration for Leash — auto-generated by
leash-codegen.
Installation
npm install @leash/integration-sliteRequires @leash/sdk >= 0.2.0 as a peer dependency.
Usage
import { LeashIntegrations } from '@leash/sdk/integrations'
import { createSliteClient } from '@leash/integration-slite'
const leash = new LeashIntegrations({ apiKey: process.env.LEASH_API_KEY! })
const slite = createSliteClient(leash)
// Example: call searchNotes
const result = await slite.searchNotes({ query: '...', parentNoteId: '...', reviewState: '...' })Available Methods
searchNotes(params)— Searches notes in Slite based on a query and returns the top search results.askSlite(params)— Asks a question to Slite and returns an answer with sources.getNote(params)— Retrieves a specific note from Slite by its ID.getNoteChildren(params)— Retrieves all child notes of a specific note from Slite.createNote(params)— Creates a new note in Slite with the specified title and optional content.updateNote(params)— Updates an existing note in Slite. Can update the title and/or content.
License
Apache-2.0
