epist 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,8 +19,14 @@ const client = new Epist({
19
19
  apiKey: process.env.EPIST_API_KEY,
20
20
  });
21
21
 
22
- // 1. Upload and Transcribe
23
- const audio = await client.uploadFile(file);
22
+ // 1. Transcribe from URL with Webhooks
23
+ const audio = await client.transcribeUrl(
24
+ "https://example.com/audio.mp3",
25
+ true,
26
+ "en",
27
+ "general",
28
+ "https://your-app.com/webhooks"
29
+ );
24
30
  console.log(`Processing: ${audio.id}`);
25
31
 
26
32
  // 2. Ingest entire RSS Feed (Beta)
@@ -16,6 +16,10 @@ export interface AudioStatus {
16
16
  title: string;
17
17
  created_at: string;
18
18
  error?: string;
19
+ webhook_url?: string;
20
+ transcript?: string;
21
+ summary?: string;
22
+ entities?: any[];
19
23
  }
20
24
  export interface TranscriptSegment {
21
25
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epist",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Official JavaScript/TypeScript SDK for Epist.ai",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/publish_npm.sh ADDED
@@ -0,0 +1,24 @@
1
+ #!/bin/bash
2
+
3
+ # Script to publish the JS SDK to NPM
4
+ # Usage: ./publish_npm.sh
5
+
6
+ set -e
7
+
8
+ echo "🚀 Starting NPM publish process for epist-js..."
9
+
10
+ # 1. Navigate to JS SDK directory
11
+ cd "$(dirname "$0")"
12
+
13
+ # 2. Build the package
14
+ echo "📦 Building package..."
15
+ npm install
16
+ npm run build
17
+
18
+ # 3. Publish to NPM
19
+ echo "🚢 Publishing to NPM..."
20
+ # In CI, we use --access public and rely on NPM_TOKEN
21
+ # For manual use, this might require npm login
22
+ npm publish --access public
23
+
24
+ echo "✅ Successfully published epist version $(node -p "require('./package.json').version")"
package/src/index.ts CHANGED
@@ -20,6 +20,10 @@ export interface AudioStatus {
20
20
  title: string;
21
21
  created_at: string;
22
22
  error?: string;
23
+ webhook_url?: string;
24
+ transcript?: string;
25
+ summary?: string;
26
+ entities?: any[];
23
27
  }
24
28
 
25
29
  export interface TranscriptSegment {