@nocha/cli 4.6.1 → 4.13.0

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 (250) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/NOCHA.schema.json +1670 -3
  3. package/dist/build-info.json +4 -4
  4. package/dist/dev-offline-compiler.js +682 -7
  5. package/dist/dev-offline-runner.js +48 -6
  6. package/dist/development-live-host.js +13 -1
  7. package/dist/nocha.js +804 -60
  8. package/dist/reference-integrity.json +135 -101
  9. package/dist/references/api/README.md +24 -23
  10. package/dist/references/api/signatures.md +23 -2
  11. package/dist/references/base/server/tooling/sdk-sources.ts +2 -2
  12. package/dist/references/base/src/platform/failure.ts +1 -1
  13. package/dist/references/base/src/types/nocha/assets-media.d.ts +8 -0
  14. package/dist/references/base/src/types/nocha/assets-operations.d.ts +3 -0
  15. package/dist/references/base/src/types/nocha/capability-deadlines.d.ts +6 -0
  16. package/dist/references/base/src/types/nocha/capability-needs.d.ts +7 -0
  17. package/dist/references/base/src/types/nocha/capability-operations.d.ts +3 -1
  18. package/dist/references/base/src/types/nocha/drive-operations.d.ts +56 -0
  19. package/dist/references/base/src/types/nocha/drive-types.d.ts +77 -0
  20. package/dist/references/base/src/types/nocha/drive.d.ts +54 -0
  21. package/dist/references/base/src/types/nocha/error-codes.d.ts +9 -0
  22. package/dist/references/base/src/types/nocha/execution.d.ts +1 -1
  23. package/dist/references/base/src/types/nocha/index.d.ts +4 -0
  24. package/dist/references/base/src/types/nocha/media-read.d.ts +29 -0
  25. package/dist/references/base/src/types/nocha/operation-waiting.d.ts +8 -0
  26. package/dist/references/base/src/types/nocha/operation-wire-types.d.ts +30 -2
  27. package/dist/references/base/src/types/nocha/protocol.d.ts +7 -3
  28. package/dist/references/base/src/types/nocha/types/ai-wire.d.ts +40 -1
  29. package/dist/references/base/src/types/nocha/types/ai.d.ts +1 -1
  30. package/dist/references/base/src/types/nocha/types/assets-wire.d.ts +9 -1
  31. package/dist/references/base/src/types/nocha/types/assets.d.ts +22 -5
  32. package/dist/references/base/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
  33. package/dist/references/base/src/types/nocha/types/video-wire.d.ts +120 -7
  34. package/dist/references/base/src/types/nocha/types/video.d.ts +5 -2
  35. package/dist/references/base/src/types/nocha/video-analysis.d.ts +10 -0
  36. package/dist/references/base/src/types/nocha/video-media.d.ts +1 -3
  37. package/dist/references/duel/server/tooling/sdk-sources.ts +2 -2
  38. package/dist/references/duel/src/types/nocha/assets-media.d.ts +8 -0
  39. package/dist/references/duel/src/types/nocha/assets-operations.d.ts +3 -0
  40. package/dist/references/duel/src/types/nocha/capability-deadlines.d.ts +6 -0
  41. package/dist/references/duel/src/types/nocha/capability-needs.d.ts +7 -0
  42. package/dist/references/duel/src/types/nocha/capability-operations.d.ts +3 -1
  43. package/dist/references/duel/src/types/nocha/drive-operations.d.ts +56 -0
  44. package/dist/references/duel/src/types/nocha/drive-types.d.ts +77 -0
  45. package/dist/references/duel/src/types/nocha/drive.d.ts +54 -0
  46. package/dist/references/duel/src/types/nocha/error-codes.d.ts +9 -0
  47. package/dist/references/duel/src/types/nocha/execution.d.ts +1 -1
  48. package/dist/references/duel/src/types/nocha/index.d.ts +4 -0
  49. package/dist/references/duel/src/types/nocha/media-read.d.ts +29 -0
  50. package/dist/references/duel/src/types/nocha/operation-waiting.d.ts +8 -0
  51. package/dist/references/duel/src/types/nocha/operation-wire-types.d.ts +30 -2
  52. package/dist/references/duel/src/types/nocha/protocol.d.ts +7 -3
  53. package/dist/references/duel/src/types/nocha/types/ai-wire.d.ts +40 -1
  54. package/dist/references/duel/src/types/nocha/types/ai.d.ts +1 -1
  55. package/dist/references/duel/src/types/nocha/types/assets-wire.d.ts +9 -1
  56. package/dist/references/duel/src/types/nocha/types/assets.d.ts +22 -5
  57. package/dist/references/duel/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
  58. package/dist/references/duel/src/types/nocha/types/video-wire.d.ts +120 -7
  59. package/dist/references/duel/src/types/nocha/types/video.d.ts +5 -2
  60. package/dist/references/duel/src/types/nocha/video-analysis.d.ts +10 -0
  61. package/dist/references/duel/src/types/nocha/video-media.d.ts +1 -3
  62. package/dist/references/recipes/README.md +1 -0
  63. package/dist/references/recipes/backend-transaction/src/platform/failure.ts +1 -1
  64. package/dist/references/recipes/drive/NOCHA.json +24 -0
  65. package/dist/references/recipes/drive/README.md +15 -0
  66. package/dist/references/recipes/drive/SKILL.md +24 -0
  67. package/dist/references/recipes/drive/recipe.ts +34 -0
  68. package/dist/references/recipes/music/README.md +1 -1
  69. package/dist/references/recipes/types/nocha/assets-media.d.ts +8 -0
  70. package/dist/references/recipes/types/nocha/assets-operations.d.ts +3 -0
  71. package/dist/references/recipes/types/nocha/capability-deadlines.d.ts +6 -0
  72. package/dist/references/recipes/types/nocha/capability-needs.d.ts +7 -0
  73. package/dist/references/recipes/types/nocha/capability-operations.d.ts +3 -1
  74. package/dist/references/recipes/types/nocha/drive-operations.d.ts +56 -0
  75. package/dist/references/recipes/types/nocha/drive-types.d.ts +77 -0
  76. package/dist/references/recipes/types/nocha/drive.d.ts +54 -0
  77. package/dist/references/recipes/types/nocha/error-codes.d.ts +9 -0
  78. package/dist/references/recipes/types/nocha/execution.d.ts +1 -1
  79. package/dist/references/recipes/types/nocha/index.d.ts +4 -0
  80. package/dist/references/recipes/types/nocha/media-read.d.ts +29 -0
  81. package/dist/references/recipes/types/nocha/operation-waiting.d.ts +8 -0
  82. package/dist/references/recipes/types/nocha/operation-wire-types.d.ts +30 -2
  83. package/dist/references/recipes/types/nocha/protocol.d.ts +7 -3
  84. package/dist/references/recipes/types/nocha/types/ai-wire.d.ts +40 -1
  85. package/dist/references/recipes/types/nocha/types/ai.d.ts +1 -1
  86. package/dist/references/recipes/types/nocha/types/assets-wire.d.ts +9 -1
  87. package/dist/references/recipes/types/nocha/types/assets.d.ts +22 -5
  88. package/dist/references/recipes/types/nocha/types/video-sdk-wire.d.ts +174 -13
  89. package/dist/references/recipes/types/nocha/types/video-wire.d.ts +120 -7
  90. package/dist/references/recipes/types/nocha/types/video.d.ts +5 -2
  91. package/dist/references/recipes/types/nocha/video-analysis.d.ts +10 -0
  92. package/dist/references/recipes/types/nocha/video-media.d.ts +1 -3
  93. package/dist/references/stage/server/tooling/sdk-sources.ts +2 -2
  94. package/dist/references/stage/src/types/nocha/assets-media.d.ts +8 -0
  95. package/dist/references/stage/src/types/nocha/assets-operations.d.ts +3 -0
  96. package/dist/references/stage/src/types/nocha/capability-deadlines.d.ts +6 -0
  97. package/dist/references/stage/src/types/nocha/capability-needs.d.ts +7 -0
  98. package/dist/references/stage/src/types/nocha/capability-operations.d.ts +3 -1
  99. package/dist/references/stage/src/types/nocha/drive-operations.d.ts +56 -0
  100. package/dist/references/stage/src/types/nocha/drive-types.d.ts +77 -0
  101. package/dist/references/stage/src/types/nocha/drive.d.ts +54 -0
  102. package/dist/references/stage/src/types/nocha/error-codes.d.ts +9 -0
  103. package/dist/references/stage/src/types/nocha/execution.d.ts +1 -1
  104. package/dist/references/stage/src/types/nocha/index.d.ts +4 -0
  105. package/dist/references/stage/src/types/nocha/media-read.d.ts +29 -0
  106. package/dist/references/stage/src/types/nocha/operation-waiting.d.ts +8 -0
  107. package/dist/references/stage/src/types/nocha/operation-wire-types.d.ts +30 -2
  108. package/dist/references/stage/src/types/nocha/protocol.d.ts +7 -3
  109. package/dist/references/stage/src/types/nocha/types/ai-wire.d.ts +40 -1
  110. package/dist/references/stage/src/types/nocha/types/ai.d.ts +1 -1
  111. package/dist/references/stage/src/types/nocha/types/assets-wire.d.ts +9 -1
  112. package/dist/references/stage/src/types/nocha/types/assets.d.ts +22 -5
  113. package/dist/references/stage/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
  114. package/dist/references/stage/src/types/nocha/types/video-wire.d.ts +120 -7
  115. package/dist/references/stage/src/types/nocha/types/video.d.ts +5 -2
  116. package/dist/references/stage/src/types/nocha/video-analysis.d.ts +10 -0
  117. package/dist/references/stage/src/types/nocha/video-media.d.ts +1 -3
  118. package/dist/references/workshop/server/tooling/sdk-sources.ts +2 -2
  119. package/dist/references/workshop/src/types/nocha/assets-media.d.ts +8 -0
  120. package/dist/references/workshop/src/types/nocha/assets-operations.d.ts +3 -0
  121. package/dist/references/workshop/src/types/nocha/capability-deadlines.d.ts +6 -0
  122. package/dist/references/workshop/src/types/nocha/capability-needs.d.ts +7 -0
  123. package/dist/references/workshop/src/types/nocha/capability-operations.d.ts +3 -1
  124. package/dist/references/workshop/src/types/nocha/drive-operations.d.ts +56 -0
  125. package/dist/references/workshop/src/types/nocha/drive-types.d.ts +77 -0
  126. package/dist/references/workshop/src/types/nocha/drive.d.ts +54 -0
  127. package/dist/references/workshop/src/types/nocha/error-codes.d.ts +9 -0
  128. package/dist/references/workshop/src/types/nocha/execution.d.ts +1 -1
  129. package/dist/references/workshop/src/types/nocha/index.d.ts +4 -0
  130. package/dist/references/workshop/src/types/nocha/media-read.d.ts +29 -0
  131. package/dist/references/workshop/src/types/nocha/operation-waiting.d.ts +8 -0
  132. package/dist/references/workshop/src/types/nocha/operation-wire-types.d.ts +30 -2
  133. package/dist/references/workshop/src/types/nocha/protocol.d.ts +7 -3
  134. package/dist/references/workshop/src/types/nocha/types/ai-wire.d.ts +40 -1
  135. package/dist/references/workshop/src/types/nocha/types/ai.d.ts +1 -1
  136. package/dist/references/workshop/src/types/nocha/types/assets-wire.d.ts +9 -1
  137. package/dist/references/workshop/src/types/nocha/types/assets.d.ts +22 -5
  138. package/dist/references/workshop/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
  139. package/dist/references/workshop/src/types/nocha/types/video-wire.d.ts +120 -7
  140. package/dist/references/workshop/src/types/nocha/types/video.d.ts +5 -2
  141. package/dist/references/workshop/src/types/nocha/video-analysis.d.ts +10 -0
  142. package/dist/references/workshop/src/types/nocha/video-media.d.ts +1 -3
  143. package/dist/sdk-versions.json +1 -1
  144. package/dist/sdks/@nocha/sdk/dist/assets-operations.d.ts +3 -0
  145. package/dist/sdks/@nocha/sdk/dist/bridge.js +3 -3
  146. package/dist/sdks/@nocha/sdk/dist/capabilities.js +2 -2
  147. package/dist/sdks/@nocha/sdk/dist/capability-deadlines.d.ts +6 -0
  148. package/dist/sdks/@nocha/sdk/dist/capability-needs.d.ts +7 -0
  149. package/dist/sdks/@nocha/sdk/dist/capability-operations.d.ts +3 -1
  150. package/dist/sdks/@nocha/sdk/dist/{chunk-A3QFRV4K.js → chunk-7SH7NNX6.js} +2 -2
  151. package/dist/sdks/@nocha/sdk/dist/{chunk-3ULBSRGX.js → chunk-B34FPFNB.js} +1 -1
  152. package/dist/sdks/@nocha/sdk/dist/{chunk-MNRQELK7.js → chunk-EAC27UOG.js} +152 -7
  153. package/dist/sdks/{@watchirl/experience-sdk/dist/nocha/network-operations.d.ts → @nocha/sdk/dist/drive-operations.d.ts} +21 -18
  154. package/dist/sdks/@nocha/sdk/dist/drive-types.d.ts +76 -0
  155. package/dist/sdks/@nocha/sdk/dist/drive.d.ts +53 -0
  156. package/dist/sdks/@nocha/sdk/dist/error-codes.d.ts +9 -0
  157. package/dist/sdks/@nocha/sdk/dist/execution.d.ts +1 -1
  158. package/dist/sdks/@nocha/sdk/dist/host.js +1 -1
  159. package/dist/sdks/@nocha/sdk/dist/index.d.ts +4 -0
  160. package/dist/sdks/@nocha/sdk/dist/index.js +521 -125
  161. package/dist/sdks/@nocha/sdk/dist/operation-wire-types.d.ts +30 -2
  162. package/dist/sdks/@nocha/sdk/dist/protocol.d.ts +7 -3
  163. package/dist/sdks/@nocha/sdk/dist/protocol.js +19 -1
  164. package/dist/sdks/@nocha/sdk/dist/types/ai-wire.d.ts +40 -1
  165. package/dist/sdks/@nocha/sdk/dist/types/ai.d.ts +1 -1
  166. package/dist/sdks/@nocha/sdk/dist/types/assets-wire.d.ts +9 -1
  167. package/dist/sdks/@nocha/sdk/dist/types/assets.d.ts +22 -5
  168. package/dist/sdks/@nocha/sdk/dist/types/video-sdk-wire.d.ts +174 -13
  169. package/dist/sdks/@nocha/sdk/dist/types/video-wire.d.ts +120 -7
  170. package/dist/sdks/@nocha/sdk/dist/types/video.d.ts +5 -2
  171. package/dist/sdks/@nocha/sdk/dist/video-analysis.d.ts +9 -0
  172. package/dist/sdks/@nocha/sdk/dist/vite.js +3 -1
  173. package/dist/sdks/@nocha/sdk/package.json +1 -1
  174. package/dist/sdks/@watchirl/experience-sdk/dist/index.d.ts +2 -2
  175. package/dist/sdks/@watchirl/experience-sdk/dist/index.js +339 -4523
  176. package/dist/sdks/@watchirl/experience-sdk/dist/legacy-video.d.ts +2 -2
  177. package/dist/sdks/@watchirl/experience-sdk/dist/types.d.ts +1 -1
  178. package/dist/watchirl-sdk.js +333 -4515
  179. package/package.json +1 -1
  180. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/access.d.ts +0 -23
  181. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/ai-operations.d.ts +0 -252
  182. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assets-operations.d.ts +0 -102
  183. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-contract.d.ts +0 -29
  184. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-controls.d.ts +0 -11
  185. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant.d.ts +0 -57
  186. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-operations.d.ts +0 -377
  187. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-types.d.ts +0 -156
  188. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations.d.ts +0 -27
  189. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-database.d.ts +0 -17
  190. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-operations.d.ts +0 -71
  191. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-requests.d.ts +0 -57
  192. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-runtime.d.ts +0 -106
  193. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-transactions.d.ts +0 -53
  194. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/bridge.d.ts +0 -6
  195. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-deadlines.d.ts +0 -63
  196. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-needs.d.ts +0 -154
  197. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-operations.d.ts +0 -73
  198. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/clipping-types.d.ts +0 -134
  199. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-operations.d.ts +0 -103
  200. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-types.d.ts +0 -10
  201. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors.d.ts +0 -14
  202. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/context.d.ts +0 -18
  203. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-operations.d.ts +0 -452
  204. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-types.d.ts +0 -53
  205. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email-operations.d.ts +0 -30
  206. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email.d.ts +0 -9
  207. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/error-codes.d.ts +0 -299
  208. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/errors.d.ts +0 -36
  209. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/execution.d.ts +0 -15
  210. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context-types.d.ts +0 -12
  211. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context.d.ts +0 -8
  212. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox-operations.d.ts +0 -58
  213. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox.d.ts +0 -23
  214. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/index.d.ts +0 -101
  215. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-facade.d.ts +0 -44
  216. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-operations.d.ts +0 -80
  217. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer.d.ts +0 -16
  218. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/navigation.d.ts +0 -16
  219. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/network.d.ts +0 -13
  220. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications-operations.d.ts +0 -29
  221. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications.d.ts +0 -9
  222. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-metadata.d.ts +0 -67
  223. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-wire-types.d.ts +0 -319
  224. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl-operations.d.ts +0 -352
  225. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl.d.ts +0 -31
  226. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/presence-operations.d.ts +0 -24
  227. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/protocol.d.ts +0 -378
  228. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/state.d.ts +0 -13
  229. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operation-types.d.ts +0 -49
  230. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operations.d.ts +0 -229
  231. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage.d.ts +0 -32
  232. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/transport.d.ts +0 -36
  233. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai-wire.d.ts +0 -337
  234. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai.d.ts +0 -20
  235. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets-wire.d.ts +0 -27
  236. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets.d.ts +0 -40
  237. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/json.d.ts +0 -8
  238. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/network.d.ts +0 -16
  239. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/outirl.d.ts +0 -326
  240. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/storage.d.ts +0 -74
  241. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-sdk-wire.d.ts +0 -460
  242. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-wire.d.ts +0 -440
  243. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video.d.ts +0 -164
  244. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/voice-wire.d.ts +0 -17
  245. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-operations.d.ts +0 -646
  246. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-properties.d.ts +0 -6
  247. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport-types.d.ts +0 -14
  248. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport.d.ts +0 -7
  249. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/voice.d.ts +0 -13
  250. package/dist/sdks/@watchirl/experience-sdk/dist/nocha/workspace.d.ts +0 -7
@@ -31,7 +31,7 @@ export type Failure = {
31
31
  // Codes that only say this host lacks the service, whatever their SDK class.
32
32
  const UNAVAILABLE: ReadonlySet<NochaErrorCode> = new Set<NochaErrorCode>([
33
33
  'bridge_unavailable', 'native_host_required', 'client_update_required', 'navigation_unavailable',
34
- 'voice_host_unavailable', 'media_unsupported_host', 'notifications_unavailable',
34
+ 'voice_host_unavailable', 'media_unsupported_host', 'notifications_unavailable', 'drive_unavailable',
35
35
  ]);
36
36
  // The request may have taken effect remotely before the failure.
37
37
  const UNKNOWN_OUTCOME: ReadonlySet<NochaErrorCode> = new Set<NochaErrorCode>([
@@ -0,0 +1,8 @@
1
+ // Generated by npm run references:generate -w nocha; do not edit.
2
+ import type { NochaContext } from './context.js';
3
+ import type { AssetMediaOptions } from './types/assets.js';
4
+ /** `assets.media` on `nocha.media.v1`: the host asks `assets.read` for a read grant it keeps, then reads the file. A host
5
+ * older than this read refuses it with `invalid_request` before acknowledging it: that answer is `media_unsupported_host`. */
6
+ export declare function readAssetMedia(context: NochaContext, input: {
7
+ assetId: string;
8
+ }, options?: AssetMediaOptions): Promise<Blob>;
@@ -4,6 +4,9 @@ export declare const assetsOperationDefinitions: {
4
4
  readonly facades: readonly [{
5
5
  readonly path: "assets.read";
6
6
  readonly kind: "direct";
7
+ }, {
8
+ readonly path: "assets.media";
9
+ readonly kind: "composite";
7
10
  }];
8
11
  readonly publicRead: "eligible";
9
12
  readonly observer: "declared-public-read";
@@ -14,6 +14,7 @@ export declare const capabilityDeadlines: {
14
14
  readonly assets: {
15
15
  readonly default: 60000;
16
16
  readonly uploadAttachment: number;
17
+ readonly media: number;
17
18
  };
18
19
  readonly video: {
19
20
  readonly default: 30000;
@@ -57,6 +58,11 @@ export declare const capabilityDeadlines: {
57
58
  readonly default: 20000;
58
59
  readonly send: 20000;
59
60
  };
61
+ readonly drive: {
62
+ readonly default: 180000;
63
+ readonly save: number;
64
+ readonly pick: number;
65
+ };
60
66
  readonly navigation: {
61
67
  readonly connect: 15000;
62
68
  readonly command: 15000;
@@ -105,6 +105,13 @@ export declare const capabilityNeeds: {
105
105
  readonly storedMediaResult: true;
106
106
  readonly role: "generate";
107
107
  };
108
+ readonly 'audio.voice_change': {
109
+ readonly providerCapability: "audio.voice_change";
110
+ readonly waitMs: 300000;
111
+ readonly mediaUsage: true;
112
+ readonly storedMediaResult: true;
113
+ readonly role: "generate";
114
+ };
108
115
  readonly 'text.decision': {
109
116
  readonly role: "decide";
110
117
  readonly providerCapability: "text.decide";
@@ -15,8 +15,9 @@ import { inboxOperationDefinitions } from './inbox-operations.js';
15
15
  import { emailOperationDefinitions } from './email-operations.js';
16
16
  import { connectorsOperationDefinitions } from './connectors-operations.js';
17
17
  import { backendOperationDefinitions } from './backend-operations.js';
18
+ import { driveOperationDefinitions } from './drive-operations.js';
18
19
  import { operationDefaults } from './operation-metadata.js';
19
- export { connectorsOperationDefinitions };
20
+ export { connectorsOperationDefinitions, driveOperationDefinitions };
20
21
  export { backendOperationDefinitions, backendOperations } from './backend-operations.js';
21
22
  export { aiOperationDefinitions, assetsOperationDefinitions, videoOperationDefinitions, outirlOperationDefinitions, networkOperationDefinitions, multiplayerOperationDefinitions, deviceOperationDefinitions, presenceOperationDefinitions, notificationsOperationDefinitions, inboxOperationDefinitions, emailOperationDefinitions };
22
23
  export { videoOperations, videoWaitSchedule } from './video-operations.js';
@@ -37,6 +38,7 @@ export type CapabilityOperationGroups = {
37
38
  readonly notifications: typeof notificationsOperationDefinitions;
38
39
  readonly inbox: typeof inboxOperationDefinitions;
39
40
  readonly email: typeof emailOperationDefinitions;
41
+ readonly drive: typeof driveOperationDefinitions;
40
42
  };
41
43
  export declare const capabilityOperations: CapabilityOperationGroups;
42
44
  type Capability = keyof typeof capabilityOperations;
@@ -0,0 +1,56 @@
1
+ // Generated by npm run references:generate -w nocha; do not edit.
2
+ /** Served by the host itself, never by `/playback/invoke`: it opens its Drive dialog, then moves the bytes over its
3
+ * binary channels (`nocha.upload.v1` for a saved file, `nocha.media.v1` for a picked one) or asks the server to copy
4
+ * a finished video. Signed-in players only; the person may always close the dialog (`saved`/`picked: false`). */
5
+ export declare const driveOperationDefinitions: {
6
+ readonly save: {
7
+ readonly capability: "drive";
8
+ readonly operation: "save";
9
+ readonly input: "drive.save";
10
+ readonly output: "drive.save";
11
+ readonly sdkTimeoutMs: number;
12
+ readonly transport: "binary-upload";
13
+ readonly facades: readonly [{
14
+ readonly path: "drive.save";
15
+ readonly kind: "direct";
16
+ }];
17
+ readonly needs: readonly [];
18
+ readonly access: "contribute";
19
+ readonly observer: "denied";
20
+ readonly publicRead: "denied";
21
+ readonly publicControl: null;
22
+ readonly mediaUsage: false;
23
+ readonly spend: "none";
24
+ readonly idempotency: "host-defined";
25
+ readonly waiting: "operation";
26
+ readonly deadlineMs: null;
27
+ readonly sdkMarginMs: null;
28
+ readonly rateBucket: "public-playback";
29
+ readonly compatibility: "current";
30
+ };
31
+ readonly pick: {
32
+ readonly facades: readonly [{
33
+ readonly path: "drive.pick";
34
+ readonly kind: "direct";
35
+ }];
36
+ readonly access: "read";
37
+ readonly idempotency: "read";
38
+ readonly capability: "drive";
39
+ readonly operation: "pick";
40
+ readonly input: "drive.pick";
41
+ readonly output: "drive.pick";
42
+ readonly sdkTimeoutMs: number;
43
+ readonly transport: "host-document";
44
+ readonly needs: readonly [];
45
+ readonly observer: "denied";
46
+ readonly publicRead: "denied";
47
+ readonly publicControl: null;
48
+ readonly mediaUsage: false;
49
+ readonly spend: "none";
50
+ readonly waiting: "operation";
51
+ readonly deadlineMs: null;
52
+ readonly sdkMarginMs: null;
53
+ readonly rateBucket: "public-playback";
54
+ readonly compatibility: "current";
55
+ };
56
+ };
@@ -0,0 +1,77 @@
1
+ // Generated by npm run references:generate -w nocha; do not edit.
2
+ /** Pure wire types of the `drive` capability: the person's Drive (Watchirl), reached only through the Nocha host.
3
+ * The host shows its own dialog: the person picks the folder or the file, never the experience. Folder paths are
4
+ * names from the root of the chosen space; a name has 1 to 255 characters, no `/`, `\` or control character, and
5
+ * is neither `.` nor `..`. */
6
+ /** Largest file `drive.save` sends and `drive.pick` returns: the host's binary transport ceiling (64 MiB). */
7
+ export declare const DRIVE_TRANSFER_MAX_BYTES: number;
8
+ /** Sub-folders an experience may add under its own folder `experiences/<slug>`. */
9
+ export declare const DRIVE_FOLDER_MAX_DEPTH = 30;
10
+ /** A file the host saved. `path` holds the folder names leading to it, `name` its final name (a conflict may
11
+ * have renamed it « name (2).ext »). */
12
+ export type DriveSavedFile = {
13
+ id: string;
14
+ name: string;
15
+ path: string[];
16
+ mimeType: string;
17
+ sizeBytes: number;
18
+ };
19
+ /** `saved: false`: the person closed the dialog. */
20
+ export type DriveSaveResult = {
21
+ saved: false;
22
+ } | {
23
+ saved: true;
24
+ file: DriveSavedFile;
25
+ };
26
+ /** Where a picked file lives in the Drive; its bytes, name and type arrive as a `File`. */
27
+ export type DrivePickedFile = {
28
+ id: string;
29
+ path: string[];
30
+ sizeBytes: number;
31
+ };
32
+ /** `picked: false`: the person closed the dialog. */
33
+ export type DrivePickWireResult = {
34
+ picked: false;
35
+ } | {
36
+ picked: true;
37
+ drive: DrivePickedFile;
38
+ };
39
+ /** Dialog hints shared by both operations: `folder` is relative to the experience folder `experiences/<slug>`
40
+ * (the person may still go elsewhere), `title` replaces the host's dialog title. */
41
+ type DriveDialogHints = {
42
+ folder?: string[];
43
+ title?: string;
44
+ };
45
+ /** `drive.save` of bytes: this input rides the `nocha.upload.v1` envelope beside the file (≤ 64 MiB). */
46
+ export type DriveSaveFileWireInput = DriveDialogHints & {
47
+ name: string;
48
+ mime_type: string;
49
+ size_bytes: number;
50
+ };
51
+ /** `drive.save` of a finished video generation of this experience, read through its video usage and copied by
52
+ * the server: no byte crosses the document. */
53
+ export type DriveSaveVideoWireInput = DriveDialogHints & {
54
+ video: {
55
+ usage: string;
56
+ id: string;
57
+ };
58
+ name?: string;
59
+ };
60
+ export type DriveSaveWireInput = DriveSaveFileWireInput | DriveSaveVideoWireInput;
61
+ /** `drive.pick`: `accept` holds MIME patterns (`audio/*`, `audio/mpeg`), `max_bytes` at most 64 MiB. It rides
62
+ * the `nocha.media.v1` read envelope; `folder` opens the dialog in a sub-folder of the experience folder. */
63
+ export type DrivePickWireInput = DriveDialogHints & {
64
+ accept?: string[];
65
+ max_bytes?: number;
66
+ };
67
+ /** JSON part of the `nocha.media.v1` result that answers a `drive.pick` read; the host adds the bytes as `blob`
68
+ * (a Blob of exactly `drive.sizeBytes` bytes). */
69
+ export type DrivePickTransferResult = {
70
+ picked: false;
71
+ } | {
72
+ picked: true;
73
+ drive: DrivePickedFile;
74
+ name: string;
75
+ mime_type: string;
76
+ };
77
+ export {};
@@ -0,0 +1,54 @@
1
+ // Generated by npm run references:generate -w nocha; do not edit.
2
+ import { type DrivePickedFile, type DriveSaveResult } from './drive-types.js';
3
+ import type { NochaContext, RequestOptions } from './context.js';
4
+ export type DriveTransferProgress = {
5
+ loaded: number;
6
+ total: number | null;
7
+ };
8
+ /** A file of at most 64 MiB, or a finished video generation of this experience read through its video usage. */
9
+ export type DriveSaveInput = {
10
+ file: Blob;
11
+ name?: string;
12
+ mimeType?: string;
13
+ } | {
14
+ video: {
15
+ usage: string;
16
+ id: string;
17
+ };
18
+ name?: string;
19
+ };
20
+ export type DriveSaveOptions = Pick<RequestOptions, 'idempotencyKey' | 'timeoutMs' | 'signal'> & {
21
+ /** Sub-folders of the experience folder `experiences/<slug>` where the dialog opens. */
22
+ folder?: string[];
23
+ /** Replaces the host's dialog title. */
24
+ title?: string;
25
+ /** Bytes of a file sent once the person confirmed. */
26
+ onProgress?: (progress: DriveTransferProgress) => void;
27
+ };
28
+ /** `accept`: MIME patterns (`audio/*`, `audio/mpeg`); `maxBytes`: at most 64 MiB, the default. */
29
+ export type DrivePickInput = {
30
+ accept?: string[];
31
+ maxBytes?: number;
32
+ title?: string;
33
+ folder?: string[];
34
+ };
35
+ export type DrivePickOptions = Pick<RequestOptions, 'timeoutMs' | 'signal'> & {
36
+ onProgress?: (progress: DriveTransferProgress) => void;
37
+ };
38
+ export type DrivePickResult = {
39
+ picked: false;
40
+ } | {
41
+ picked: true;
42
+ file: File;
43
+ drive: DrivePickedFile;
44
+ };
45
+ export type NochaDrive = {
46
+ /** Opens the host's Drive dialog in the experience folder (created only when the person saves there); the
47
+ * person may go elsewhere, create folders or rename the file. Signed-in players only (`sign_in_required`);
48
+ * a host without this capability answers `client_update_required`: hide the button then. */
49
+ save(input: DriveSaveInput, options?: DriveSaveOptions): Promise<DriveSaveResult>;
50
+ /** Lets the person choose one file of their Drive; its bytes come back as a `File`, ready for `assets.upload`. */
51
+ pick(input?: DrivePickInput, options?: DrivePickOptions): Promise<DrivePickResult>;
52
+ };
53
+ /** `nocha.use(id).drive`: the usage declares `drive.save` and/or `drive.pick` (`kind: 'capability'`, `capability: 'drive'`). */
54
+ export declare function createDrive(context: NochaContext): NochaDrive;
@@ -144,6 +144,15 @@ export declare const nochaErrorClasses: {
144
144
  readonly workspace_unavailable: "invalid";
145
145
  readonly automation_schedule_invalid: "invalid";
146
146
  readonly automation_rate_limited: "transient";
147
+ readonly drive_unavailable: "denied";
148
+ readonly sign_in_required: "denied";
149
+ readonly drive_forbidden: "denied";
150
+ readonly drive_not_found: "invalid";
151
+ readonly drive_name_conflict: "invalid";
152
+ readonly drive_invalid_name: "invalid";
153
+ readonly drive_unsupported_type: "invalid";
154
+ readonly drive_upload_expired: "transient";
155
+ readonly drive_file_too_large: "invalid";
147
156
  readonly mail_unavailable: "denied";
148
157
  readonly mail_disabled: "denied";
149
158
  readonly mail_recipient_not_allowed: "invalid";
@@ -1,6 +1,6 @@
1
1
  // Generated by npm run references:generate -w nocha; do not edit.
2
2
  export type NochaMode = 'embedded' | 'standalone';
3
- export declare const runtimeCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "assistant", "voice", "access", "workspace", "context", "navigation"];
3
+ export declare const runtimeCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive", "assistant", "voice", "access", "workspace", "context", "navigation"];
4
4
  export type RuntimeCapability = typeof runtimeCapabilities[number];
5
5
  export type RuntimeCapabilities = Readonly<Record<RuntimeCapability, boolean>>;
6
6
  export type NochaCapabilities = {
@@ -5,6 +5,7 @@ export type * from './automations-types.js';
5
5
  import { type NochaAccess } from './access.js';
6
6
  import type { BackendFacade } from './backend-requests.js';
7
7
  import { type NochaAssistant } from './assistant.js';
8
+ import { type NochaDrive } from './drive.js';
8
9
  import { type NochaExperienceContext } from './experience-context.js';
9
10
  import { type NochaConnectors } from './connectors.js';
10
11
  import { type NochaEmail } from './email.js';
@@ -43,6 +44,8 @@ export type { NochaState, NochaMemory, NochaDatabase } from './storage.js';
43
44
  export type { StateObservation } from './state.js';
44
45
  export type { NochaNetwork } from './network.js';
45
46
  export type { NochaNotifications } from './notifications.js';
47
+ export type { NochaDrive, DriveSaveInput, DriveSaveOptions, DrivePickInput, DrivePickOptions, DrivePickResult, DriveTransferProgress } from './drive.js';
48
+ export type { DriveSaveResult, DriveSavedFile, DrivePickedFile } from './drive-types.js';
46
49
  export type { NochaInbox, InboxWatchOptions } from './inbox.js';
47
50
  export type { NochaOutirl } from './outirl.js';
48
51
  export type { NochaMultiplayer, PresenceOptions } from './multiplayer-facade.js';
@@ -83,6 +86,7 @@ type UsageFacades = {
83
86
  multiplayer: NochaMultiplayer;
84
87
  outirl: NochaOutirl;
85
88
  device: DeviceOperations;
89
+ drive: NochaDrive;
86
90
  voice: NochaVoice;
87
91
  };
88
92
  export type NochaSdk = UsageFacades & {
@@ -0,0 +1,29 @@
1
+ // Generated by npm run references:generate -w nocha; do not edit.
2
+ type MediaReadOptions = {
3
+ signal?: AbortSignal;
4
+ timeoutMs?: number;
5
+ onProgress?: (progress: {
6
+ loaded: number;
7
+ total: number | null;
8
+ }) => void;
9
+ };
10
+ type HostMediaRead<T> = {
11
+ /** `video` or `asset`, as the error messages name it. */
12
+ noun: string;
13
+ timeoutMs: number;
14
+ firstReplyMs: number;
15
+ options: MediaReadOptions;
16
+ /** An older host refuses a read it does not know with `invalid_request` before acknowledging it. */
17
+ unknownReadRefused?: boolean;
18
+ /** The bytes of a valid result, or undefined. */
19
+ accept(result: unknown): T | undefined;
20
+ /** Posts the `read` envelope. */
21
+ send(host: Window, requestId: string): void;
22
+ };
23
+ /** Checks `signal`, `onProgress` and `timeoutMs` (`fallback` when absent) and returns the local deadline. */
24
+ export declare function mediaReadTimeout(options: unknown, fallback: number): number;
25
+ /** Binary read channel `nocha.media.v1`, the reverse of `nocha.upload.v1`: the host authorizes the read with an ordinary
26
+ * invoke, fetches the bytes with its own identity and posts them back. Tokens and cookies stay in the host. A read has
27
+ * no remote effect, so the local deadline also stops it. */
28
+ export declare function readHostMedia<T>(read: HostMediaRead<T>): Promise<T>;
29
+ export {};
@@ -15,6 +15,8 @@ export declare const operationWaiting: {
15
15
  readonly assets: {
16
16
  readonly default: 60000;
17
17
  readonly uploadAttachment: number;
18
+ readonly media: number;
19
+ readonly 'media.firstReply': 15000;
18
20
  };
19
21
  readonly video: {
20
22
  readonly default: 30000;
@@ -49,6 +51,12 @@ export declare const operationWaiting: {
49
51
  readonly notifications: {
50
52
  readonly default: 20000;
51
53
  };
54
+ readonly drive: {
55
+ readonly default: 180000;
56
+ readonly save: number;
57
+ readonly pick: number;
58
+ readonly 'pick.firstReply': 15000;
59
+ };
52
60
  readonly inbox: {
53
61
  readonly default: 15000;
54
62
  };
@@ -43,11 +43,26 @@ type WithSchema<T> = T extends {
43
43
  strict: true;
44
44
  };
45
45
  } : Omit<T, 'schema' | 'schema_name' | 'voice'>;
46
+ /** Voice tuning keeps snake_case inside, as the API reads it. */
47
+ type VoiceSettingsWire = {
48
+ stability?: number;
49
+ similarity_boost?: number;
50
+ style?: number;
51
+ speed?: number;
52
+ use_speaker_boost?: boolean;
53
+ };
46
54
  type WithVoice<T, Original> = Original extends {
47
55
  need: 'audio.synthesize';
48
- } ? T & {
56
+ } ? Omit<T, 'voice_settings'> & {
49
57
  voice_id?: string;
50
58
  model?: string;
59
+ voice_settings?: VoiceSettingsWire;
60
+ } : Original extends {
61
+ need: 'audio.voice_change';
62
+ } ? Omit<T, 'voice_settings'> & {
63
+ voice_id: string;
64
+ model?: string;
65
+ voice_settings?: VoiceSettingsWire;
51
66
  } : T;
52
67
  type GenerateWire<T> = T extends {
53
68
  need: string;
@@ -57,16 +72,22 @@ export type AiGenerateWireInput = GenerateWire<GenerateBase>;
57
72
  type VideoApi = {
58
73
  api: 2;
59
74
  };
75
+ type VideoReplacesWire = {
76
+ subject_id?: string;
77
+ description?: string;
78
+ };
60
79
  export type VideoReferenceWire = {
61
80
  asset_id: string;
62
81
  role?: string;
63
82
  name?: string;
64
83
  description?: string;
84
+ replaces?: VideoReplacesWire;
65
85
  } | {
66
86
  studio_reference_id: string;
67
87
  role?: string;
68
88
  name?: string;
69
89
  description?: string;
90
+ replaces?: VideoReplacesWire;
70
91
  };
71
92
  export type VideoRequestWire = VideoApi & {
72
93
  workflow: Video.VideoWorkflowRef;
@@ -79,6 +100,7 @@ export type VideoRequestWire = VideoApi & {
79
100
  properties?: Video.VideoProperties;
80
101
  references?: VideoReferenceWire[];
81
102
  reference_preparation?: 'auto';
103
+ source_analysis_id?: string;
82
104
  effort?: AI.GenerationEffort;
83
105
  };
84
106
  export type VideoCreateWire = VideoRequestWire & Ceiling & {
@@ -148,8 +170,10 @@ export type CapabilityWireTypes = {
148
170
  'ai.voice.state': Pair<{
149
171
  callId?: string;
150
172
  }, Voice.VoiceCallState>;
173
+ /** `transport: 'binary'` is the `assets.media` host relay only: it answers a read grant the host keeps, never the bytes. */
151
174
  'assets.read': Pair<{
152
175
  asset_id: string;
176
+ transport?: 'binary';
153
177
  } | {
154
178
  path: string;
155
179
  }, Omit<Assets.ReadAssetResult, 'data_url'> | {
@@ -183,7 +207,9 @@ export type CapabilityWireTypes = {
183
207
  'video.workflow': Pair<Video.VideoWorkflowRef, Video.VideoWorkflow>;
184
208
  'video.estimate': Pair<VideoRequestWire, Video.VideoEstimate>;
185
209
  'video.create': Pair<VideoCreateWire, Video.VideoGeneration>;
186
- 'video.list': Pair<VideoApi & Page, Video.VideoGenerationList>;
210
+ 'video.list': Pair<VideoApi & Page & {
211
+ workflow?: string;
212
+ }, Video.VideoGenerationList>;
187
213
  'video.get': Pair<VideoApi & Id, Video.VideoReadableGeneration>;
188
214
  'video.retry': Pair<VideoApi & Id & Ceiling & {
189
215
  restart_from?: string;
@@ -316,5 +342,7 @@ export type CapabilityWireTypes = {
316
342
  'inbox.list': Pair<Host.InboxListInput, Host.InboxListResult>;
317
343
  'inbox.ack': Pair<Host.InboxAckInput, Host.InboxAckResult>;
318
344
  'email.send': Pair<Host.EmailSendInput, Host.EmailSendResult>;
345
+ 'drive.save': Pair<Host.DriveSaveWireInput, Host.DriveSaveResult>;
346
+ 'drive.pick': Pair<Host.DrivePickWireInput, Host.DrivePickWireResult>;
319
347
  };
320
348
  export {};
@@ -22,6 +22,7 @@ export { videoLocales } from './types/video-sdk-wire.js';
22
22
  export type * from './types/video-wire.js';
23
23
  export { tripirlVideoStepIds as videoStepIds } from './types/video-wire.js';
24
24
  export { readEffectiveVideoProperties, readVideoProperties, readVideoPropertyDefinition, videoStepIdPattern } from './video-properties.js';
25
+ export { readVideoAnalysisResult, readVideoEditPlan, readVideoReferenceReplaces, readVideoSourceAnalysis } from './video-analysis.js';
25
26
  /** Iframe transport between an experience and its Nocha host. */
26
27
  export declare const NOCHA_BRIDGE_PROTOCOL: "nocha.bridge.v4";
27
28
  export type BridgeRequest = {
@@ -59,10 +60,10 @@ export type BridgeEvent = {
59
60
  sequence?: number;
60
61
  };
61
62
  /** Availability is descriptive. Every call is still authorized by the host. */
62
- export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
63
+ export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
63
64
  export type ExperienceCapability = typeof experienceCapabilities[number];
64
- export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
65
- export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
65
+ export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
66
+ export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
66
67
  export declare const assistantVoices: readonly ["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"];
67
68
  export type AssistantVoice = typeof assistantVoices[number];
68
69
  export * from './capability-needs.js';
@@ -376,4 +377,7 @@ export type EmailSendResult = {
376
377
  id: string;
377
378
  status: 'queued' | 'sent' | 'duplicate';
378
379
  };
380
+ export type * from './drive-types.js';
381
+ export { DRIVE_TRANSFER_MAX_BYTES, DRIVE_FOLDER_MAX_DEPTH } from './drive-types.js';
382
+ export { ASSET_MEDIA_MAX_BYTES, assetMediaTypes } from './types/assets-wire.js';
379
383
  export type * from './automations-types.js';
@@ -51,6 +51,16 @@ export type AiResearchInput = AiPolicyInput & {
51
51
  };
52
52
  /** Opaque voice id from `ai.voices`; the historical names (alloy…cedar) remain accepted as aliases. */
53
53
  export type SpeechVoice = AssistantVoice | (string & {});
54
+ /** Voice tuning, each field optional: `stability`, `similarityBoost` and `style` (style exaggeration) from 0 to 1,
55
+ * `speed` from 0.7 to 1.2 (synthesis only; voice change ignores it), `useSpeakerBoost` to stress the target voice.
56
+ * Synthesis with `eleven_v4` ignores `style`, `speed` and `useSpeakerBoost`. */
57
+ export type AiVoiceSettings = {
58
+ stability?: number;
59
+ similarityBoost?: number;
60
+ style?: number;
61
+ speed?: number;
62
+ useSpeakerBoost?: boolean;
63
+ };
54
64
  /** `model` absent: Nocha's default speech model. `voice` absent: that model's default voice; a listed voice
55
65
  * other than a historical name is sent with the `model` it was listed for. `language` is BCP-47 (`fr`, `en-GB`,
56
66
  * `pt-BR`); absent, it is detected from the text. */
@@ -60,6 +70,7 @@ export type AiSpeechInput = AiPolicyInput & {
60
70
  model?: string;
61
71
  voice?: SpeechVoice;
62
72
  language?: string;
73
+ voiceSettings?: AiVoiceSettings;
63
74
  };
64
75
  /** Speech to text. `audioDataUrl` is a base64 `audio/wav|mp4|webm|ogg|mpeg` data URL of at most 4 MiB, for example a bounded recording made from `device.media.getUserMedia()`. Alternatively pass one authorized stored audio asset in `inputAssetIds`. `prompt` is an optional vocabulary hint. */
65
76
  export type AiTranscriptionInput = AiPolicyInput & {
@@ -73,17 +84,26 @@ export type AiTranscriptionInput = AiPolicyInput & {
73
84
  inputAssetIds: [string];
74
85
  audioDataUrl?: never;
75
86
  });
87
+ /** One track (60 s by default). Without `model`, the experience's generation policy picks the model (else Nocha's
88
+ * default). `model: 'music_v2_5'` (Eleven Music) composes 3 to 300 s of MP3 with vocals unless `instrumental: true`
89
+ * (then no `lyrics`); `bpm`, `keyScale`, `timeSignature` and `vocalLanguage` guide it, `seed` is ignored;
90
+ * `inputAssetIds` names one stored audio asset of 1 to 30 s that the track takes its feel, groove and sound from,
91
+ * billed with the track. `model: 'runware:ace-step@v1.5-xl-turbo'` (ACE-Step: 30 to 300 s, `outputFormat` wav, flac
92
+ * or ogg too, `seed`) takes no reference. */
76
93
  export type AiMusicInput = AiPolicyInput & {
77
94
  need: 'audio.generate';
78
95
  prompt: string;
79
96
  durationSeconds?: number;
80
97
  lyrics?: string;
98
+ instrumental?: boolean;
81
99
  seed?: number;
82
100
  bpm?: number;
83
101
  vocalLanguage?: string;
84
102
  keyScale?: string;
85
103
  timeSignature?: 2 | 3 | 4 | 6;
86
104
  outputFormat?: 'mp3' | 'wav' | 'flac' | 'ogg';
105
+ model?: string;
106
+ inputAssetIds?: [string];
87
107
  };
88
108
  export type AiImageInput = (ImageInput & {
89
109
  need: 'image.generate';
@@ -119,8 +139,25 @@ export type AiMediaTransformInput = AiBudgetInput & {
119
139
  durationSeconds?: number;
120
140
  mode?: 'start' | 'end';
121
141
  };
142
+ /** Voice change: one recording of 1 to 300 seconds spoken again in `voice`, an id from `ai.voices` (any model's)
143
+ * or a historical name. Same single source as transcription: `audioDataUrl`, or one authorized stored audio asset.
144
+ * `model` absent: the default voice change model. Billed on the measured recording length, rounded up to the second
145
+ * (the result's `duration_seconds`); the result is one MP3 asset. */
146
+ export type AiVoiceChangeInput = AiBudgetInput & {
147
+ need: 'audio.voice_change';
148
+ voice: SpeechVoice;
149
+ model?: string;
150
+ voiceSettings?: AiVoiceSettings;
151
+ removeBackgroundNoise?: boolean;
152
+ } & ({
153
+ audioDataUrl: string;
154
+ inputAssetIds?: never;
155
+ } | {
156
+ inputAssetIds: [string];
157
+ audioDataUrl?: never;
158
+ });
122
159
  /** One input shape per need; `need` is always explicit. */
123
- export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput;
160
+ export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput | AiVoiceChangeInput;
124
161
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
125
162
  /** Prices a recording length before recording. Its quote cannot be consumed by `generate`, which always sends the recording. */
126
163
  export type AiTranscriptionEstimateInput = Omit<AiTranscriptionInput, 'quoteId' | 'audioDataUrl' | 'inputAssetIds'> & {
@@ -313,6 +350,7 @@ export type AiVoicesInput = {
313
350
  cursor?: string;
314
351
  limit?: number;
315
352
  };
353
+ /** `price_multiplier`: a library voice billed at that multiple of the model's tariff; absent, 1. */
316
354
  export type AiVoice = {
317
355
  id: string;
318
356
  name: string;
@@ -323,6 +361,7 @@ export type AiVoice = {
323
361
  languages: string[];
324
362
  collection: 'standard' | 'library';
325
363
  alias?: AssistantVoice;
364
+ price_multiplier?: number;
326
365
  };
327
366
  export type AiVoices = {
328
367
  model: string;
@@ -16,6 +16,6 @@ export type NochaAi = {
16
16
  get(input: AiGetInput, options?: RequestOptions): Promise<AiGenerationOperation>;
17
17
  /** Speech models selectable with `model` in `audio.synthesize`. */
18
18
  models(input: AiModelsInput, options?: RequestOptions): Promise<AiModels>;
19
- /** Voices selectable with `voice` in `audio.synthesize`, one page at a time. */
19
+ /** Voices selectable with `voice` in `audio.synthesize` and `audio.voice_change`, one page at a time. */
20
20
  voices(input: AiVoicesInput, options?: RequestOptions): Promise<AiVoices>;
21
21
  };
@@ -1,8 +1,16 @@
1
1
  // Generated by npm run references:generate -w nocha; do not edit.
2
2
  export type UploadableImageType = 'image/jpeg' | 'image/png' | 'image/webp';
3
- /** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them. */
3
+ /** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them,
4
+ * `media` reads them back as a `Blob`. */
4
5
  export type UploadableVideoType = 'video/mp4' | 'video/quicktime';
6
+ /** Audio files `assets.upload` stores, such as the `soundtrack` reference of a video workflow; `read` returns them. */
7
+ export type UploadableAudioType = 'audio/mpeg' | 'audio/wav';
5
8
  export type ReadableAssetType = UploadableImageType | 'audio/mpeg' | 'audio/wav' | 'audio/flac' | 'audio/ogg';
9
+ /** Types of the `Blob` `assets.media` returns: a readable image or audio file, or a video sent with `assets.upload`. */
10
+ export type AssetMediaType = ReadableAssetType | UploadableVideoType;
11
+ export declare const assetMediaTypes: readonly ["image/jpeg", "image/png", "image/webp", "audio/mpeg", "audio/wav", "audio/flac", "audio/ogg", "video/mp4", "video/quicktime"];
12
+ /** Largest file `assets.media` returns: the 64 MiB `assets.upload` takes. */
13
+ export declare const ASSET_MEDIA_MAX_BYTES: number;
6
14
  /** Bytes of a stored image or audio asset; `data_url` is ready for an `<img>` or `<audio>` source. */
7
15
  export type ReadAssetResult = {
8
16
  id: string;