@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
@@ -42,11 +42,26 @@ type WithSchema<T> = T extends {
42
42
  strict: true;
43
43
  };
44
44
  } : Omit<T, 'schema' | 'schema_name' | 'voice'>;
45
+ /** Voice tuning keeps snake_case inside, as the API reads it. */
46
+ type VoiceSettingsWire = {
47
+ stability?: number;
48
+ similarity_boost?: number;
49
+ style?: number;
50
+ speed?: number;
51
+ use_speaker_boost?: boolean;
52
+ };
45
53
  type WithVoice<T, Original> = Original extends {
46
54
  need: 'audio.synthesize';
47
- } ? T & {
55
+ } ? Omit<T, 'voice_settings'> & {
48
56
  voice_id?: string;
49
57
  model?: string;
58
+ voice_settings?: VoiceSettingsWire;
59
+ } : Original extends {
60
+ need: 'audio.voice_change';
61
+ } ? Omit<T, 'voice_settings'> & {
62
+ voice_id: string;
63
+ model?: string;
64
+ voice_settings?: VoiceSettingsWire;
50
65
  } : T;
51
66
  type GenerateWire<T> = T extends {
52
67
  need: string;
@@ -56,16 +71,22 @@ export type AiGenerateWireInput = GenerateWire<GenerateBase>;
56
71
  type VideoApi = {
57
72
  api: 2;
58
73
  };
74
+ type VideoReplacesWire = {
75
+ subject_id?: string;
76
+ description?: string;
77
+ };
59
78
  export type VideoReferenceWire = {
60
79
  asset_id: string;
61
80
  role?: string;
62
81
  name?: string;
63
82
  description?: string;
83
+ replaces?: VideoReplacesWire;
64
84
  } | {
65
85
  studio_reference_id: string;
66
86
  role?: string;
67
87
  name?: string;
68
88
  description?: string;
89
+ replaces?: VideoReplacesWire;
69
90
  };
70
91
  export type VideoRequestWire = VideoApi & {
71
92
  workflow: Video.VideoWorkflowRef;
@@ -78,6 +99,7 @@ export type VideoRequestWire = VideoApi & {
78
99
  properties?: Video.VideoProperties;
79
100
  references?: VideoReferenceWire[];
80
101
  reference_preparation?: 'auto';
102
+ source_analysis_id?: string;
81
103
  effort?: AI.GenerationEffort;
82
104
  };
83
105
  export type VideoCreateWire = VideoRequestWire & Ceiling & {
@@ -147,8 +169,10 @@ export type CapabilityWireTypes = {
147
169
  'ai.voice.state': Pair<{
148
170
  callId?: string;
149
171
  }, Voice.VoiceCallState>;
172
+ /** `transport: 'binary'` is the `assets.media` host relay only: it answers a read grant the host keeps, never the bytes. */
150
173
  'assets.read': Pair<{
151
174
  asset_id: string;
175
+ transport?: 'binary';
152
176
  } | {
153
177
  path: string;
154
178
  }, Omit<Assets.ReadAssetResult, 'data_url'> | {
@@ -182,7 +206,9 @@ export type CapabilityWireTypes = {
182
206
  'video.workflow': Pair<Video.VideoWorkflowRef, Video.VideoWorkflow>;
183
207
  'video.estimate': Pair<VideoRequestWire, Video.VideoEstimate>;
184
208
  'video.create': Pair<VideoCreateWire, Video.VideoGeneration>;
185
- 'video.list': Pair<VideoApi & Page, Video.VideoGenerationList>;
209
+ 'video.list': Pair<VideoApi & Page & {
210
+ workflow?: string;
211
+ }, Video.VideoGenerationList>;
186
212
  'video.get': Pair<VideoApi & Id, Video.VideoReadableGeneration>;
187
213
  'video.retry': Pair<VideoApi & Id & Ceiling & {
188
214
  restart_from?: string;
@@ -315,5 +341,7 @@ export type CapabilityWireTypes = {
315
341
  'inbox.list': Pair<Host.InboxListInput, Host.InboxListResult>;
316
342
  'inbox.ack': Pair<Host.InboxAckInput, Host.InboxAckResult>;
317
343
  'email.send': Pair<Host.EmailSendInput, Host.EmailSendResult>;
344
+ 'drive.save': Pair<Host.DriveSaveWireInput, Host.DriveSaveResult>;
345
+ 'drive.pick': Pair<Host.DrivePickWireInput, Host.DrivePickWireResult>;
318
346
  };
319
347
  export {};
@@ -21,6 +21,7 @@ export { videoLocales } from './types/video-sdk-wire.js';
21
21
  export type * from './types/video-wire.js';
22
22
  export { tripirlVideoStepIds as videoStepIds } from './types/video-wire.js';
23
23
  export { readEffectiveVideoProperties, readVideoProperties, readVideoPropertyDefinition, videoStepIdPattern } from './video-properties.js';
24
+ export { readVideoAnalysisResult, readVideoEditPlan, readVideoReferenceReplaces, readVideoSourceAnalysis } from './video-analysis.js';
24
25
  /** Iframe transport between an experience and its Nocha host. */
25
26
  export declare const NOCHA_BRIDGE_PROTOCOL: "nocha.bridge.v4";
26
27
  export type BridgeRequest = {
@@ -58,10 +59,10 @@ export type BridgeEvent = {
58
59
  sequence?: number;
59
60
  };
60
61
  /** Availability is descriptive. Every call is still authorized by the host. */
61
- export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
62
+ export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
62
63
  export type ExperienceCapability = typeof experienceCapabilities[number];
63
- export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
64
- export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
64
+ export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
65
+ export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors", "drive"];
65
66
  export declare const assistantVoices: readonly ["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"];
66
67
  export type AssistantVoice = typeof assistantVoices[number];
67
68
  export * from './capability-needs.js';
@@ -375,4 +376,7 @@ export type EmailSendResult = {
375
376
  id: string;
376
377
  status: 'queued' | 'sent' | 'duplicate';
377
378
  };
379
+ export type * from './drive-types.js';
380
+ export { DRIVE_TRANSFER_MAX_BYTES, DRIVE_FOLDER_MAX_DEPTH } from './drive-types.js';
381
+ export { ASSET_MEDIA_MAX_BYTES, assetMediaTypes } from './types/assets-wire.js';
378
382
  export type * from './automations-types.js';
@@ -1,9 +1,12 @@
1
1
  import {
2
+ ASSET_MEDIA_MAX_BYTES,
2
3
  DEVICE_HAPTIC_PATTERNS_PER_SECOND,
3
4
  DEVICE_HAPTIC_PATTERN_MAX_DELAY_MS,
4
5
  DEVICE_HAPTIC_PATTERN_MAX_DURATION_MS,
5
6
  DEVICE_HAPTIC_PATTERN_MAX_STEPS,
6
7
  DEVICE_HAPTIC_PATTERN_MIN_INTERVAL_MS,
8
+ DRIVE_FOLDER_MAX_DEPTH,
9
+ DRIVE_TRANSFER_MAX_BYTES,
7
10
  EXPERIENCE_BACKEND_PROFILE,
8
11
  EXPERIENCE_BACKEND_RUNNER_ABI,
9
12
  NOCHA_BRIDGE_PROTOCOL,
@@ -12,6 +15,7 @@ import {
12
15
  aiGenerateNeeds,
13
16
  aiOperationDefinitions,
14
17
  allCapabilityNeeds,
18
+ assetMediaTypes,
15
19
  assetsOperationDefinitions,
16
20
  assistantVoices,
17
21
  automationsOperationDefinitions,
@@ -26,6 +30,7 @@ import {
26
30
  databaseOperations,
27
31
  deviceHapticStyles,
28
32
  deviceOperationDefinitions,
33
+ driveOperationDefinitions,
29
34
  emailOperationDefinitions,
30
35
  experienceBackendErrorCodes,
31
36
  experienceCapabilities,
@@ -74,8 +79,12 @@ import {
74
79
  publicControlScope,
75
80
  publicReadEligible,
76
81
  readEffectiveVideoProperties,
82
+ readVideoAnalysisResult,
83
+ readVideoEditPlan,
77
84
  readVideoProperties,
78
85
  readVideoPropertyDefinition,
86
+ readVideoReferenceReplaces,
87
+ readVideoSourceAnalysis,
79
88
  stateOperations,
80
89
  storageCapabilities,
81
90
  storageOperationList,
@@ -88,13 +97,16 @@ import {
88
97
  videoStepIdPattern,
89
98
  videoWaitSchedule,
90
99
  voiceCallNeeds
91
- } from "./chunk-MNRQELK7.js";
100
+ } from "./chunk-EAC27UOG.js";
92
101
  export {
102
+ ASSET_MEDIA_MAX_BYTES,
93
103
  DEVICE_HAPTIC_PATTERNS_PER_SECOND,
94
104
  DEVICE_HAPTIC_PATTERN_MAX_DELAY_MS,
95
105
  DEVICE_HAPTIC_PATTERN_MAX_DURATION_MS,
96
106
  DEVICE_HAPTIC_PATTERN_MAX_STEPS,
97
107
  DEVICE_HAPTIC_PATTERN_MIN_INTERVAL_MS,
108
+ DRIVE_FOLDER_MAX_DEPTH,
109
+ DRIVE_TRANSFER_MAX_BYTES,
98
110
  EXPERIENCE_BACKEND_PROFILE,
99
111
  EXPERIENCE_BACKEND_RUNNER_ABI,
100
112
  NOCHA_BRIDGE_PROTOCOL,
@@ -103,6 +115,7 @@ export {
103
115
  aiGenerateNeeds,
104
116
  aiOperationDefinitions,
105
117
  allCapabilityNeeds,
118
+ assetMediaTypes,
106
119
  assetsOperationDefinitions,
107
120
  assistantVoices,
108
121
  automationsOperationDefinitions,
@@ -117,6 +130,7 @@ export {
117
130
  databaseOperations,
118
131
  deviceHapticStyles,
119
132
  deviceOperationDefinitions,
133
+ driveOperationDefinitions,
120
134
  emailOperationDefinitions,
121
135
  experienceBackendErrorCodes,
122
136
  experienceCapabilities,
@@ -165,8 +179,12 @@ export {
165
179
  publicControlScope,
166
180
  publicReadEligible,
167
181
  readEffectiveVideoProperties,
182
+ readVideoAnalysisResult,
183
+ readVideoEditPlan,
168
184
  readVideoProperties,
169
185
  readVideoPropertyDefinition,
186
+ readVideoReferenceReplaces,
187
+ readVideoSourceAnalysis,
170
188
  stateOperations,
171
189
  storageCapabilities,
172
190
  storageOperationList,
@@ -50,6 +50,16 @@ export type AiResearchInput = AiPolicyInput & {
50
50
  };
51
51
  /** Opaque voice id from `ai.voices`; the historical names (alloy…cedar) remain accepted as aliases. */
52
52
  export type SpeechVoice = AssistantVoice | (string & {});
53
+ /** Voice tuning, each field optional: `stability`, `similarityBoost` and `style` (style exaggeration) from 0 to 1,
54
+ * `speed` from 0.7 to 1.2 (synthesis only; voice change ignores it), `useSpeakerBoost` to stress the target voice.
55
+ * Synthesis with `eleven_v4` ignores `style`, `speed` and `useSpeakerBoost`. */
56
+ export type AiVoiceSettings = {
57
+ stability?: number;
58
+ similarityBoost?: number;
59
+ style?: number;
60
+ speed?: number;
61
+ useSpeakerBoost?: boolean;
62
+ };
53
63
  /** `model` absent: Nocha's default speech model. `voice` absent: that model's default voice; a listed voice
54
64
  * other than a historical name is sent with the `model` it was listed for. `language` is BCP-47 (`fr`, `en-GB`,
55
65
  * `pt-BR`); absent, it is detected from the text. */
@@ -59,6 +69,7 @@ export type AiSpeechInput = AiPolicyInput & {
59
69
  model?: string;
60
70
  voice?: SpeechVoice;
61
71
  language?: string;
72
+ voiceSettings?: AiVoiceSettings;
62
73
  };
63
74
  /** 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. */
64
75
  export type AiTranscriptionInput = AiPolicyInput & {
@@ -72,17 +83,26 @@ export type AiTranscriptionInput = AiPolicyInput & {
72
83
  inputAssetIds: [string];
73
84
  audioDataUrl?: never;
74
85
  });
86
+ /** One track (60 s by default). Without `model`, the experience's generation policy picks the model (else Nocha's
87
+ * default). `model: 'music_v2_5'` (Eleven Music) composes 3 to 300 s of MP3 with vocals unless `instrumental: true`
88
+ * (then no `lyrics`); `bpm`, `keyScale`, `timeSignature` and `vocalLanguage` guide it, `seed` is ignored;
89
+ * `inputAssetIds` names one stored audio asset of 1 to 30 s that the track takes its feel, groove and sound from,
90
+ * billed with the track. `model: 'runware:ace-step@v1.5-xl-turbo'` (ACE-Step: 30 to 300 s, `outputFormat` wav, flac
91
+ * or ogg too, `seed`) takes no reference. */
75
92
  export type AiMusicInput = AiPolicyInput & {
76
93
  need: 'audio.generate';
77
94
  prompt: string;
78
95
  durationSeconds?: number;
79
96
  lyrics?: string;
97
+ instrumental?: boolean;
80
98
  seed?: number;
81
99
  bpm?: number;
82
100
  vocalLanguage?: string;
83
101
  keyScale?: string;
84
102
  timeSignature?: 2 | 3 | 4 | 6;
85
103
  outputFormat?: 'mp3' | 'wav' | 'flac' | 'ogg';
104
+ model?: string;
105
+ inputAssetIds?: [string];
86
106
  };
87
107
  export type AiImageInput = (ImageInput & {
88
108
  need: 'image.generate';
@@ -118,8 +138,25 @@ export type AiMediaTransformInput = AiBudgetInput & {
118
138
  durationSeconds?: number;
119
139
  mode?: 'start' | 'end';
120
140
  };
141
+ /** Voice change: one recording of 1 to 300 seconds spoken again in `voice`, an id from `ai.voices` (any model's)
142
+ * or a historical name. Same single source as transcription: `audioDataUrl`, or one authorized stored audio asset.
143
+ * `model` absent: the default voice change model. Billed on the measured recording length, rounded up to the second
144
+ * (the result's `duration_seconds`); the result is one MP3 asset. */
145
+ export type AiVoiceChangeInput = AiBudgetInput & {
146
+ need: 'audio.voice_change';
147
+ voice: SpeechVoice;
148
+ model?: string;
149
+ voiceSettings?: AiVoiceSettings;
150
+ removeBackgroundNoise?: boolean;
151
+ } & ({
152
+ audioDataUrl: string;
153
+ inputAssetIds?: never;
154
+ } | {
155
+ inputAssetIds: [string];
156
+ audioDataUrl?: never;
157
+ });
121
158
  /** One input shape per need; `need` is always explicit. */
122
- export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput;
159
+ export type AiGenerateInput = AiTextInput | AiStructuredInput | AiResearchInput | AiSpeechInput | AiTranscriptionInput | AiMusicInput | AiImageInput | AiVideoInput | AiMediaTransformInput | AiVoiceChangeInput;
123
160
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
124
161
  /** Prices a recording length before recording. Its quote cannot be consumed by `generate`, which always sends the recording. */
125
162
  export type AiTranscriptionEstimateInput = Omit<AiTranscriptionInput, 'quoteId' | 'audioDataUrl' | 'inputAssetIds'> & {
@@ -312,6 +349,7 @@ export type AiVoicesInput = {
312
349
  cursor?: string;
313
350
  limit?: number;
314
351
  };
352
+ /** `price_multiplier`: a library voice billed at that multiple of the model's tariff; absent, 1. */
315
353
  export type AiVoice = {
316
354
  id: string;
317
355
  name: string;
@@ -322,6 +360,7 @@ export type AiVoice = {
322
360
  languages: string[];
323
361
  collection: 'standard' | 'library';
324
362
  alias?: AssistantVoice;
363
+ price_multiplier?: number;
325
364
  };
326
365
  export type AiVoices = {
327
366
  model: string;
@@ -15,6 +15,6 @@ export type NochaAi = {
15
15
  get(input: AiGetInput, options?: RequestOptions): Promise<AiGenerationOperation>;
16
16
  /** Speech models selectable with `model` in `audio.synthesize`. */
17
17
  models(input: AiModelsInput, options?: RequestOptions): Promise<AiModels>;
18
- /** Voices selectable with `voice` in `audio.synthesize`, one page at a time. */
18
+ /** Voices selectable with `voice` in `audio.synthesize` and `audio.voice_change`, one page at a time. */
19
19
  voices(input: AiVoicesInput, options?: RequestOptions): Promise<AiVoices>;
20
20
  };
@@ -1,7 +1,15 @@
1
1
  export type UploadableImageType = 'image/jpeg' | 'image/png' | 'image/webp';
2
- /** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them. */
2
+ /** Videos `assets.upload` stores, such as the `source_video` reference of a video workflow; `read` never returns them,
3
+ * `media` reads them back as a `Blob`. */
3
4
  export type UploadableVideoType = 'video/mp4' | 'video/quicktime';
5
+ /** Audio files `assets.upload` stores, such as the `soundtrack` reference of a video workflow; `read` returns them. */
6
+ export type UploadableAudioType = 'audio/mpeg' | 'audio/wav';
4
7
  export type ReadableAssetType = UploadableImageType | 'audio/mpeg' | 'audio/wav' | 'audio/flac' | 'audio/ogg';
8
+ /** Types of the `Blob` `assets.media` returns: a readable image or audio file, or a video sent with `assets.upload`. */
9
+ export type AssetMediaType = ReadableAssetType | UploadableVideoType;
10
+ export declare const assetMediaTypes: readonly ["image/jpeg", "image/png", "image/webp", "audio/mpeg", "audio/wav", "audio/flac", "audio/ogg", "video/mp4", "video/quicktime"];
11
+ /** Largest file `assets.media` returns: the 64 MiB `assets.upload` takes. */
12
+ export declare const ASSET_MEDIA_MAX_BYTES: number;
5
13
  /** Bytes of a stored image or audio asset; `data_url` is ready for an `<img>` or `<audio>` source. */
6
14
  export type ReadAssetResult = {
7
15
  id: string;
@@ -5,7 +5,7 @@ export type AssetUploadInput = {
5
5
  file: Blob;
6
6
  filename?: string;
7
7
  };
8
- /** `onProgress` reports the bytes the host has sent, for a video only. */
8
+ /** `onProgress` reports the bytes the host has sent, for a video or an audio file only. */
9
9
  export type AssetUploadOptions = RequestOptions & {
10
10
  onProgress?: (progress: {
11
11
  loaded: number;
@@ -23,15 +23,32 @@ export type AttachmentUploadOptions = RequestOptions & {
23
23
  total: number;
24
24
  }) => void;
25
25
  };
26
+ /** Bytes received by the host; `total` is null until the host knows the file size. */
27
+ export type AssetMediaProgress = {
28
+ loaded: number;
29
+ total: number | null;
30
+ };
31
+ /** Aborting `signal` or reaching `timeoutMs` (10 minutes by default) stops the host read; hosts stop it after 15 minutes. */
32
+ export type AssetMediaOptions = Pick<RequestOptions, 'signal' | 'timeoutMs'> & {
33
+ onProgress?: (progress: AssetMediaProgress) => void;
34
+ };
26
35
  export type NochaAssets = {
27
36
  /** Reads an asset this participant may see. Store asset ids, never base64 or data URLs. */
28
37
  read(input: {
29
38
  assetId: string;
30
39
  }, options?: RequestOptions): Promise<ReadAssetResult>;
31
- /** Uploads a JPEG, PNG or WebP image (12 MiB at most), or an MP4 or QuickTime video (64 MiB at most) sent through the
32
- * host's binary transport, such as the `source_video` reference of a video workflow. The asset follows the media
33
- * usage's retention (`durable` keeps it) and stays readable by its author only; `read` returns images and audio, never
34
- * a video. Persist the `idempotencyKey` before a video upload and reuse it after a lost reply. */
40
+ /** Reads the same assets as `read`, and the MP4 or QuickTime videos this participant sent with `assets.upload` under this
41
+ * usage, as a `Blob` of at most 64 MiB (`AssetMediaType`). The usage declares `assets.read`; a generated film goes through
42
+ * `video.media`. The host reads the file with its own identity: no address reaches the frame. Show it through
43
+ * `URL.createObjectURL(blob)` and revoke the URL after use. An older host rejects with `media_unsupported_host`. */
44
+ media(input: {
45
+ assetId: string;
46
+ }, options?: AssetMediaOptions): Promise<Blob>;
47
+ /** Uploads a JPEG, PNG or WebP image (12 MiB at most), or an MP4 or QuickTime video or an MP3 (`audio/mpeg`) or WAV
48
+ * (`audio/wav`) audio file (64 MiB at most) sent through the host's binary transport, such as the `source_video` or
49
+ * `soundtrack` reference of a video workflow. The host checks the content against the type. The asset follows the media
50
+ * usage's retention (`durable` keeps it) and stays readable by its author only; `read` returns images and audio, `media`
51
+ * a video too. Persist the `idempotencyKey` before a video or audio upload and reuse it after a lost reply. */
35
52
  upload(input: AssetUploadInput, options?: AssetUploadOptions): Promise<UploadedAsset>;
36
53
  /** Uploads a workspace attachment through the host's binary transport; the host checks the workspace contribution right. */
37
54
  uploadAttachment(input: AttachmentUploadInput, options?: AttachmentUploadOptions): Promise<UploadedAsset>;