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 +8 -2
- package/dist/cjs/index.d.ts +4 -0
- package/package.json +1 -1
- package/publish_npm.sh +24 -0
- package/src/index.ts +4 -0
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.
|
|
23
|
-
const audio = await client.
|
|
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)
|
package/dist/cjs/index.d.ts
CHANGED
package/package.json
CHANGED
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