@premai/api-sdk 1.0.29 → 1.0.30

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.
Files changed (2) hide show
  1. package/README.md +13 -13
  2. package/package.json +58 -58
package/README.md CHANGED
@@ -11,7 +11,7 @@ npm install
11
11
  ## Quick Start
12
12
 
13
13
  ```typescript
14
- import createRvencClient from "@premai/api-sdk-ts";
14
+ import createRvencClient from "@premai/pcci-sdk-ts";
15
15
 
16
16
  // Create client (encryption keys auto-generated)
17
17
  const client = await createRvencClient({
@@ -42,14 +42,14 @@ Run as a standalone server with automatic DEK store management per API key:
42
42
  ```bash
43
43
  # ways to run the termination proxy
44
44
  ## run command from local/remote NPM package
45
- bunx -p @premai/api-sdk-ts pcci-proxy
46
- npx -p @premai/api-sdk-ts pcci-proxy
45
+ bunx -p @premai/pcci-sdk-ts pcci-proxy
46
+ npx -p @premai/pcci-sdk-ts pcci-proxy
47
47
 
48
48
  ## install globally
49
49
  ## make sure to have the "global bin dir" in your PATH
50
50
  ## `npm config get prefix`, for pure node runtime
51
- npm i -g @premai/api-sdk-ts
52
- bun i -g @premai/api-sdk-ts
51
+ npm i -g @premai/pcci-sdk-ts
52
+ bun i -g @premai/pcci-sdk-ts
53
53
 
54
54
  # Server runs on http://localhost:3000
55
55
  ```
@@ -162,7 +162,7 @@ console.log(response.choices[0].message.content);
162
162
  Transcribe audio files to text:
163
163
 
164
164
  ```typescript
165
- import createRvencClient from "@premai/api-sdk-ts";
165
+ import createRvencClient from "@premai/pcci-sdk-ts";
166
166
  import fs from "fs";
167
167
 
168
168
  const client = await createRvencClient({
@@ -211,7 +211,7 @@ const models = await client.models.list({
211
211
  ### First Time Setup
212
212
 
213
213
  ```typescript
214
- import createRvencClient, { serializeDEKStore } from "@premai/api-sdk-ts";
214
+ import createRvencClient, { serializeDEKStore } from "@premai/pcci-sdk-ts";
215
215
  import fs from "fs";
216
216
 
217
217
  // Create client (DEK store auto-generated)
@@ -230,7 +230,7 @@ console.log("✅ DEK store saved. Keep this file secure!");
230
230
  ### Subsequent Usage
231
231
 
232
232
  ```typescript
233
- import createRvencClient, { deserializeDEKStore } from "@premai/api-sdk-ts";
233
+ import createRvencClient, { deserializeDEKStore } from "@premai/pcci-sdk-ts";
234
234
  import fs from "fs";
235
235
 
236
236
  // Load existing DEK store
@@ -249,7 +249,7 @@ const client = await createRvencClient({
249
249
 
250
250
  ```typescript
251
251
  import fs from "fs";
252
- import { serializeDEKStore } from "@premai/api-sdk-ts";
252
+ import { serializeDEKStore } from "@premai/pcci-sdk-ts";
253
253
 
254
254
  const fileContent = fs.readFileSync("./document.pdf");
255
255
  const result = await client.files.upload({
@@ -720,7 +720,7 @@ interface DEKStore {
720
720
  ### Initialize New DEK Store
721
721
 
722
722
  ```typescript
723
- import { initializeDEKStore, serializeDEKStore } from "@premai/api-sdk-ts";
723
+ import { initializeDEKStore, serializeDEKStore } from "@premai/pcci-sdk-ts";
724
724
 
725
725
  // Create new DEK store with KEK from environment variable
726
726
  const dekStore = initializeDEKStore();
@@ -733,7 +733,7 @@ fs.writeFileSync("dek-store.json", serialized);
733
733
  ### Serialize for Storage
734
734
 
735
735
  ```typescript
736
- import { serializeDEKStore } from "@premai/api-sdk-ts";
736
+ import { serializeDEKStore } from "@premai/pcci-sdk-ts";
737
737
 
738
738
  const serialized = serializeDEKStore(client.dekStore);
739
739
  fs.writeFileSync("dek-store.json", serialized);
@@ -742,7 +742,7 @@ fs.writeFileSync("dek-store.json", serialized);
742
742
  ### Deserialize from Storage
743
743
 
744
744
  ```typescript
745
- import { deserializeDEKStore } from "@premai/api-sdk-ts";
745
+ import { deserializeDEKStore } from "@premai/pcci-sdk-ts";
746
746
 
747
747
  const serialized = fs.readFileSync("dek-store.json", "utf-8");
748
748
  const dekStore = deserializeDEKStore(serialized);
@@ -895,5 +895,5 @@ import type {
895
895
  DeleteIndexResponse,
896
896
  FileMetadata,
897
897
  PaginationInfo,
898
- } from "@premai/api-sdk-ts";
898
+ } from "@premai/pcci-sdk-ts";
899
899
  ```
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
1
  {
2
- "repository": {
3
- "url": "https://github.com/premai-io/api-sdk-ts"
2
+ "repository": {
3
+ "url": "https://github.com/premai-io/api-sdk-ts"
4
+ },
5
+ "homepage": "https://github.com/premai-io/api-sdk-ts",
6
+ "name": "@premai/api-sdk",
7
+ "version": "1.0.30",
8
+ "main": "./dist/index.cjs",
9
+ "bin": {
10
+ "pcci-proxy": "./dist/cli.cjs"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "description": "",
16
+ "exports": {
17
+ ".": {
18
+ "node": "./dist/index.cjs",
19
+ "require": "./dist/index.cjs",
20
+ "import": "./dist/index.mjs",
21
+ "types": "./dist/index.d.ts"
4
22
  },
5
- "homepage": "https://github.com/premai-io/api-sdk-ts",
6
- "name": "@premai/api-sdk",
7
- "version": "1.0.29",
8
- "main": "./dist/index.cjs",
9
- "bin": {
10
- "pcci-proxy": "./dist/cli.cjs"
11
- },
12
- "keywords": [],
13
- "author": "",
14
- "license": "ISC",
15
- "description": "",
16
- "exports": {
17
- ".": {
18
- "node": "./dist/index.cjs",
19
- "require": "./dist/index.cjs",
20
- "import": "./dist/index.mjs",
21
- "types": "./dist/index.d.ts"
22
- },
23
- "./browser": {
24
- "require": "./dist/core.browser.cjs",
25
- "import": "./dist/core.browser.mjs",
26
- "types": "./dist/index.d.ts"
27
- }
28
- },
29
- "files": [
30
- "./dist",
31
- "README.md"
32
- ],
33
- "scripts": {
34
- "dev": "bun run script.ts",
35
- "build": "bun run types && bun scripts/build.ts",
36
- "types": "tsc --emitDeclarationOnly",
37
- "server": "bun run src/server.ts"
38
- },
39
- "dependencies": {
40
- "@deepgram/sdk": "^5.0.0",
41
- "@noble/ciphers": "^2.1.1",
42
- "@noble/curves": "^1.8.1",
43
- "@noble/hashes": "^1.7.1",
44
- "@noble/post-quantum": "^0.5.2",
45
- "@premai/prem-rs": "0.3.0",
46
- "date-fns": "^4.1.0",
47
- "dotenv": "^17.2.3",
48
- "express": "^4.18.2",
49
- "multer": "^2.0.2",
50
- "openai": "^6.9.1",
51
- "typescript": "^5.9.3",
52
- "zod": "^4.2.1"
53
- },
54
- "devDependencies": {
55
- "@biomejs/biome": "2.3.10",
56
- "@types/express": "^4.17.21",
57
- "@types/multer": "^2.0.0",
58
- "@types/bun": "^1.3.6",
59
- "@types/node": "^22.15.21",
60
- "ts-node": "^10.9.2"
23
+ "./browser": {
24
+ "require": "./dist/core.browser.cjs",
25
+ "import": "./dist/core.browser.mjs",
26
+ "types": "./dist/index.d.ts"
61
27
  }
28
+ },
29
+ "files": [
30
+ "./dist",
31
+ "README.md"
32
+ ],
33
+ "scripts": {
34
+ "dev": "bun run script.ts",
35
+ "build": "bun run types && bun scripts/build.ts",
36
+ "types": "tsc --emitDeclarationOnly",
37
+ "server": "bun run src/server.ts"
38
+ },
39
+ "dependencies": {
40
+ "@deepgram/sdk": "^5.0.0",
41
+ "@noble/ciphers": "^2.1.1",
42
+ "@noble/curves": "^1.8.1",
43
+ "@noble/hashes": "^1.7.1",
44
+ "@noble/post-quantum": "^0.5.2",
45
+ "@premai/prem-rs": "0.3.0",
46
+ "date-fns": "^4.1.0",
47
+ "dotenv": "^17.2.3",
48
+ "express": "^4.18.2",
49
+ "multer": "^2.0.2",
50
+ "openai": "^6.9.1",
51
+ "typescript": "^5.9.3",
52
+ "zod": "^4.2.1"
53
+ },
54
+ "devDependencies": {
55
+ "@biomejs/biome": "2.3.10",
56
+ "@types/express": "^4.17.21",
57
+ "@types/multer": "^2.0.0",
58
+ "@types/bun": "^1.3.6",
59
+ "@types/node": "^22.15.21",
60
+ "ts-node": "^10.9.2"
61
+ }
62
62
  }