@shogo-ai/voice 1.4.1

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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/chunk-D2EVSUZX.js +27 -0
  4. package/dist/chunk-Q3TJAJ54.js +165 -0
  5. package/dist/chunk-QHDIEE7O.js +453 -0
  6. package/dist/chunk-S3S2RNO6.js +671 -0
  7. package/dist/chunk-ZGYHDC5G.js +423 -0
  8. package/dist/index.cjs +1316 -0
  9. package/dist/index.d.cts +432 -0
  10. package/dist/index.d.ts +432 -0
  11. package/dist/index.js +735 -0
  12. package/dist/native/index.cjs +1667 -0
  13. package/dist/native/index.d.cts +285 -0
  14. package/dist/native/index.d.ts +285 -0
  15. package/dist/native/index.js +949 -0
  16. package/dist/organicParticlesShaders-DIva0vBO.d.cts +693 -0
  17. package/dist/organicParticlesShaders-DIva0vBO.d.ts +693 -0
  18. package/dist/react/index.cjs +1670 -0
  19. package/dist/react/index.d.cts +423 -0
  20. package/dist/react/index.d.ts +423 -0
  21. package/dist/react/index.js +952 -0
  22. package/dist/route/agent.cjs +981 -0
  23. package/dist/route/agent.d.cts +20 -0
  24. package/dist/route/agent.d.ts +20 -0
  25. package/dist/route/agent.js +17 -0
  26. package/dist/route/audio-tags.cjs +975 -0
  27. package/dist/route/audio-tags.d.cts +16 -0
  28. package/dist/route/audio-tags.d.ts +16 -0
  29. package/dist/route/audio-tags.js +13 -0
  30. package/dist/route/index.cjs +987 -0
  31. package/dist/route/index.d.cts +115 -0
  32. package/dist/route/index.d.ts +115 -0
  33. package/dist/route/index.js +12 -0
  34. package/dist/route/signed-url.cjs +975 -0
  35. package/dist/route/signed-url.d.cts +12 -0
  36. package/dist/route/signed-url.d.ts +12 -0
  37. package/dist/route/signed-url.js +13 -0
  38. package/dist/route/tts-preview.cjs +975 -0
  39. package/dist/route/tts-preview.d.cts +17 -0
  40. package/dist/route/tts-preview.d.ts +17 -0
  41. package/dist/route/tts-preview.js +13 -0
  42. package/dist/server.cjs +999 -0
  43. package/dist/server.d.cts +88 -0
  44. package/dist/server.d.ts +88 -0
  45. package/dist/server.js +11 -0
  46. package/dist/types-BKJtOUbE.d.cts +352 -0
  47. package/dist/types-BKJtOUbE.d.ts +352 -0
  48. package/package.json +148 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Drop-in companion CRUD handlers (`POST` / `PATCH` / `DELETE`) on
3
+ * the `/voice/agent` resource.
4
+ *
5
+ * Note: in runtime-token proxy mode all three return 501 — companion
6
+ * CRUD requires a per-user context that pod apps don't own. Use
7
+ * `createVoiceRoute({ apiKey, getUser, companionStore })` from
8
+ * `@shogo-ai/sdk/voice/route` for BYO-EL deployments.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // app/api/voice/agent+api.ts (Expo Router)
13
+ * export { POST, PATCH, DELETE } from '@shogo-ai/sdk/voice/route/agent'
14
+ * ```
15
+ */
16
+ declare const POST: (req: Request) => Promise<Response>;
17
+ declare const PATCH: (req: Request) => Promise<Response>;
18
+ declare const DELETE: (req: Request) => Promise<Response>;
19
+
20
+ export { DELETE, PATCH, POST };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Drop-in companion CRUD handlers (`POST` / `PATCH` / `DELETE`) on
3
+ * the `/voice/agent` resource.
4
+ *
5
+ * Note: in runtime-token proxy mode all three return 501 — companion
6
+ * CRUD requires a per-user context that pod apps don't own. Use
7
+ * `createVoiceRoute({ apiKey, getUser, companionStore })` from
8
+ * `@shogo-ai/sdk/voice/route` for BYO-EL deployments.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // app/api/voice/agent+api.ts (Expo Router)
13
+ * export { POST, PATCH, DELETE } from '@shogo-ai/sdk/voice/route/agent'
14
+ * ```
15
+ */
16
+ declare const POST: (req: Request) => Promise<Response>;
17
+ declare const PATCH: (req: Request) => Promise<Response>;
18
+ declare const DELETE: (req: Request) => Promise<Response>;
19
+
20
+ export { DELETE, PATCH, POST };
@@ -0,0 +1,17 @@
1
+ import {
2
+ defaultHandlers
3
+ } from "../chunk-D2EVSUZX.js";
4
+ import "../chunk-QHDIEE7O.js";
5
+ import "../chunk-ZGYHDC5G.js";
6
+ import "../chunk-Q3TJAJ54.js";
7
+
8
+ // src/route/agent.ts
9
+ var POST = (req) => defaultHandlers().agent.create(req);
10
+ var PATCH = (req) => defaultHandlers().agent.patch(req);
11
+ var DELETE = (req) => defaultHandlers().agent.delete(req);
12
+ export {
13
+ DELETE,
14
+ PATCH,
15
+ POST
16
+ };
17
+ //# sourceMappingURL=agent.js.map