@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
@@ -1,440 +0,0 @@
1
- export type TripirlIdempotencyKey = string;
2
- export type TripirlIdempotentReplayHeader = "true" | "false";
3
- export type TripirlLastEventId = number;
4
- export type TripirlEventStream = string;
5
- export type TripirlOpenApiDocument = {
6
- "openapi": "3.1.0";
7
- "info": {
8
- "title": string;
9
- "version": string;
10
- [key: string]: unknown;
11
- };
12
- "servers": ({
13
- [key: string]: unknown;
14
- })[];
15
- "paths": {
16
- [key: string]: unknown;
17
- };
18
- "components": {
19
- [key: string]: unknown;
20
- };
21
- [key: string]: unknown;
22
- };
23
- export type TripirlListCursor = string;
24
- export type TripirlListLimit = number;
25
- export type TripirlIncludeAutomation = "automation";
26
- export type TripirlWorkflowRevision = number;
27
- export type TripirlStepId = "sourceAnalyses" | "projectAnalysis" | "story" | "worldReferences" | "locationBible" | "shotPlan" | "dialogueAudio" | "storyboardSheets" | "clipPrompts" | "clips" | "filmExport";
28
- export type TripirlIdentifier = string;
29
- export type TripirlUuid = string;
30
- export type TripirlTimestamp = string;
31
- export type TripirlModuleRef = {
32
- "id": TripirlIdentifier;
33
- "revision": number;
34
- };
35
- export type TripirlWorkflowRef = {
36
- "id": TripirlIdentifier;
37
- "revision"?: number;
38
- };
39
- export type TripirlWorkflowIdentity = {
40
- "id": TripirlIdentifier;
41
- "revision": number | null;
42
- "name": string;
43
- "digest": string;
44
- };
45
- export type TripirlVideoPropertyValue = string | number | boolean | null | (TripirlVideoPropertyValue)[] | {
46
- [key: string]: TripirlVideoPropertyValue;
47
- };
48
- export type TripirlVideoPropertyDefinition = {
49
- "key": TripirlIdentifier;
50
- "default": TripirlVideoPropertyValue | null;
51
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
52
- "type": "boolean";
53
- "constraints": null;
54
- } | {
55
- "key": TripirlIdentifier;
56
- "default": TripirlVideoPropertyValue | null;
57
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
58
- "type": "integer";
59
- "constraints": {
60
- "minimum"?: number;
61
- "maximum"?: number;
62
- "step"?: number;
63
- };
64
- } | {
65
- "key": TripirlIdentifier;
66
- "default": TripirlVideoPropertyValue | null;
67
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
68
- "type": "number";
69
- "constraints": {
70
- "minimum"?: number;
71
- "maximum"?: number;
72
- "step"?: number;
73
- };
74
- } | {
75
- "key": TripirlIdentifier;
76
- "default": TripirlVideoPropertyValue | null;
77
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
78
- "type": "string";
79
- "constraints": {
80
- "max_length"?: number;
81
- };
82
- } | {
83
- "key": TripirlIdentifier;
84
- "default": TripirlVideoPropertyValue | null;
85
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
86
- "type": "enum";
87
- "constraints": {
88
- "values": (string | number | boolean)[];
89
- };
90
- } | {
91
- "key": TripirlIdentifier;
92
- "default": TripirlVideoPropertyValue | null;
93
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
94
- "type": "route";
95
- "constraints": {
96
- "need"?: string;
97
- "routes": ({
98
- "provider": string;
99
- "model": string;
100
- })[];
101
- };
102
- } | {
103
- "key": TripirlIdentifier;
104
- "default": TripirlVideoPropertyValue | null;
105
- "cost_effect": "none" | "may_change_quantity" | "may_change_unit_price" | "may_change_route";
106
- "type": "object";
107
- "constraints": {
108
- "fields": (TripirlVideoPropertyDefinition)[];
109
- };
110
- };
111
- export type TripirlVideoProperties = {
112
- [key in TripirlStepId]?: {
113
- [key: string]: TripirlVideoPropertyValue;
114
- };
115
- };
116
- export type TripirlEffectiveVideoProperties = {
117
- [key in TripirlStepId]?: {
118
- "module": TripirlModuleRef;
119
- "values": {
120
- [key: string]: TripirlVideoPropertyValue;
121
- };
122
- };
123
- };
124
- export type TripirlVideoGenerationReference = {
125
- "asset_id": TripirlUuid;
126
- "role"?: string;
127
- "name"?: string;
128
- "description"?: string;
129
- };
130
- export type TripirlDataAuthorization = {
131
- "need": string;
132
- "provider": string;
133
- "model": string;
134
- "data_authorization_id": TripirlUuid;
135
- };
136
- export type TripirlNochaOrigin = {
137
- "type": "nocha_experience";
138
- "experience_id": TripirlIdentifier;
139
- "experience_code": TripirlIdentifier;
140
- "experience_title": string;
141
- "revision_id": TripirlIdentifier;
142
- };
143
- export type TripirlGenerationUsagePolicy = {
144
- "mode": "fixed" | "inherit";
145
- "intensity"?: "low" | "medium" | "high";
146
- "min"?: "low" | "medium" | "high";
147
- "max"?: "low" | "medium" | "high";
148
- "allow_local_choice"?: boolean;
149
- };
150
- export type TripirlNochaRequest = {
151
- "data_authorizations": (TripirlDataAuthorization)[];
152
- "creator_delegation_id"?: TripirlUuid;
153
- "creator_generation_id"?: TripirlUuid;
154
- "creator_fee_bps"?: number;
155
- "render_policy"?: "first_pass";
156
- "origin"?: TripirlNochaOrigin;
157
- "usage_policy"?: TripirlGenerationUsagePolicy;
158
- };
159
- export type TripirlEstimateRequest = {
160
- "workflow": TripirlWorkflowRef;
161
- "goal": string;
162
- "duration_seconds": number;
163
- "aspect_ratio": "9:16" | "16:9" | "1:1";
164
- "locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
165
- "speech": "none" | "auto" | "required";
166
- "references"?: (TripirlVideoGenerationReference)[];
167
- "effort"?: "auto" | "low" | "medium" | "high";
168
- "collection_id"?: TripirlIdentifier;
169
- "properties"?: TripirlVideoProperties;
170
- "nocha"?: TripirlNochaRequest;
171
- };
172
- export type TripirlCreateRequest = {
173
- "workflow": TripirlWorkflowRef;
174
- "goal": string;
175
- "duration_seconds": number;
176
- "aspect_ratio": "9:16" | "16:9" | "1:1";
177
- "locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
178
- "speech": "none" | "auto" | "required";
179
- "references"?: (TripirlVideoGenerationReference)[];
180
- "effort"?: "auto" | "low" | "medium" | "high";
181
- "collection_id"?: TripirlIdentifier;
182
- "properties"?: TripirlVideoProperties;
183
- "nocha"?: TripirlNochaRequest;
184
- "confirmed_maximum_microcredits": string;
185
- };
186
- export type TripirlRetryRequest = {
187
- "confirmed_maximum_microcredits": string;
188
- "restart_from"?: TripirlStepId;
189
- "nocha"?: {
190
- "data_authorizations": (TripirlDataAuthorization)[];
191
- };
192
- };
193
- export type TripirlDataRoutesRequest = {
194
- "workflow": TripirlWorkflowRef;
195
- "goal"?: string;
196
- "duration_seconds"?: number;
197
- "aspect_ratio"?: "9:16" | "16:9" | "1:1";
198
- "locale"?: "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
199
- "speech": "none" | "auto" | "required";
200
- "references"?: (TripirlVideoGenerationReference)[];
201
- "effort"?: "auto" | "low" | "medium" | "high";
202
- "collection_id"?: TripirlIdentifier;
203
- "properties"?: TripirlVideoProperties;
204
- "nocha"?: TripirlNochaRequest;
205
- "purpose"?: "generation";
206
- "metadata_only"?: boolean;
207
- "reference_preparation"?: "auto";
208
- } | {
209
- "purpose": "retry";
210
- "generation_id": TripirlUuid;
211
- } | {
212
- "purpose": "clipping";
213
- };
214
- export type TripirlDataRoutesResponse = {
215
- "routes": ({
216
- "need": string;
217
- "provider": string;
218
- "model": string;
219
- })[];
220
- "provider_needs"?: (string)[];
221
- };
222
- export type TripirlEmptyRequest = Record<string, never>;
223
- export type TripirlEstimateResponse = {
224
- "maximum_microcredits": string;
225
- "valid_until": TripirlTimestamp;
226
- "workflow": TripirlWorkflowIdentity;
227
- };
228
- export type TripirlVideoWorkflow = {
229
- "id": TripirlIdentifier;
230
- "origin": "builtin" | "saved";
231
- "revision": number | null;
232
- "latest_revision": number | null;
233
- "digest": string;
234
- "base_id": TripirlIdentifier | null;
235
- "name": string;
236
- "description": string;
237
- "family": "classic" | "narrative" | "image_loop";
238
- "interaction": "none" | "recordings" | "live";
239
- "availability": {
240
- "status": "available";
241
- } | {
242
- "status": "unavailable";
243
- "reason": "interactive" | "providers" | "modules" | "render_target" | "base" | "unavailable";
244
- "message": string;
245
- };
246
- "constraints": {
247
- "durations": {
248
- "min": number;
249
- "max": number;
250
- "allowed": (number)[] | null;
251
- };
252
- "aspect_ratios": ("9:16" | "16:9" | "1:1")[];
253
- "locales": ("fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH")[];
254
- "speech_modes": ({
255
- "mode": "none" | "auto" | "required";
256
- "durations_seconds": (number)[] | null;
257
- })[];
258
- "references": {
259
- "min": number;
260
- "max": number;
261
- "mime_types": (string)[];
262
- "requires_non_character": boolean;
263
- };
264
- };
265
- "steps": ({
266
- "id": TripirlStepId;
267
- "module": {
268
- "id": TripirlIdentifier;
269
- "revision": number;
270
- "title": string;
271
- };
272
- "restartable": boolean;
273
- "properties": (TripirlVideoPropertyDefinition)[];
274
- })[];
275
- };
276
- export type TripirlVideoWorkflowList = {
277
- "workflows": (TripirlVideoWorkflow)[];
278
- };
279
- export type TripirlVideoGenerationRequest = {
280
- "workflow": TripirlWorkflowRef;
281
- "goal": string;
282
- "duration_seconds": number;
283
- "aspect_ratio": "9:16" | "16:9" | "1:1";
284
- "locale": "fr-FR" | "en-US" | "es-ES" | "de-DE" | "it-IT" | "pt-PT" | "nl-NL" | "pl-PL" | "sv-SE" | "da-DK" | "nb-NO" | "fi-FI" | "cs-CZ" | "sk-SK" | "hr-HR" | "bg-BG" | "ro-RO" | "hu-HU" | "el-GR" | "ru-RU" | "uk-UA" | "tr-TR" | "ar-SA" | "hi-IN" | "ta-IN" | "id-ID" | "ms-MY" | "vi-VN" | "zh-CN" | "ja-JP" | "ko-KR" | "th-TH";
285
- "speech": "none" | "auto" | "required";
286
- "references"?: (TripirlVideoGenerationReference)[];
287
- "effort"?: "auto" | "low" | "medium" | "high";
288
- "collection_id": TripirlIdentifier | null;
289
- "properties"?: TripirlVideoProperties;
290
- "confirmed_maximum_microcredits": string | null;
291
- };
292
- export type TripirlVideoGeneration = {
293
- "id": TripirlUuid;
294
- "status": "queued" | "running" | "cancelling" | "succeeded" | "failed" | "cancelled";
295
- "workflow": TripirlWorkflowIdentity;
296
- "request": TripirlVideoGenerationRequest;
297
- "properties": TripirlEffectiveVideoProperties;
298
- "references": ({
299
- "asset_id": TripirlUuid;
300
- "role"?: string;
301
- "name"?: string;
302
- "description"?: string;
303
- "availability": "available" | "expired" | "pending";
304
- "image_url": string | null;
305
- })[];
306
- "origin": TripirlNochaOrigin | null;
307
- "progress": {
308
- "percent": number;
309
- "step": TripirlStepId | null;
310
- "stage": "preparing" | "planning" | "generating_speech" | "generating_media" | "assembling" | null;
311
- };
312
- "automation"?: TripirlVideoGenerationAutomation;
313
- "automation_access": {
314
- "read_only": boolean;
315
- "taken_over_at": TripirlTimestamp | null;
316
- "media_expired_at": TripirlTimestamp | null;
317
- } | null;
318
- "project_id": TripirlIdentifier | null;
319
- "collection_id": TripirlIdentifier | null;
320
- "estimated_maximum_microcredits": string;
321
- "cost": TripirlVideoGenerationCost;
322
- "actual_duration_seconds": number | null;
323
- "error": TripirlVideoGenerationFailure | null;
324
- "result": TripirlVideoGenerationResult | null;
325
- "created_at": TripirlTimestamp;
326
- "updated_at": TripirlTimestamp;
327
- };
328
- export type TripirlVideoGenerationList = {
329
- "items": (TripirlVideoGeneration)[];
330
- "pagination": {
331
- "has_more": boolean;
332
- "next_cursor": string | null;
333
- };
334
- };
335
- export type TripirlVideoGenerationCost = {
336
- "total_microcredits": string;
337
- "base_charge_microcredits"?: string;
338
- "creator_fee_microcredits"?: string;
339
- };
340
- export type TripirlVideoGenerationFailure = {
341
- "code": string;
342
- "message": string;
343
- "retryable": boolean;
344
- };
345
- export type TripirlVideoGenerationResult = {
346
- "actual_duration_seconds": number;
347
- "download_url": string;
348
- "download_url_expires_at": TripirlTimestamp;
349
- "mime_type": "video/mp4";
350
- "sha256": string;
351
- "size_bytes": number;
352
- "asset_id"?: TripirlIdentifier;
353
- "width"?: number;
354
- "height"?: number;
355
- "filename"?: TripirlIdentifier;
356
- };
357
- export type TripirlVideoGenerationResultResponse = {
358
- "result": TripirlVideoGenerationResult;
359
- };
360
- export type TripirlVideoGenerationEvent = {
361
- "created_at": TripirlTimestamp;
362
- "data": {
363
- [key: string]: unknown;
364
- };
365
- "generation_id": TripirlUuid;
366
- "sequence": number;
367
- "type": "generation.created" | "generation.status_changed" | "generation.progress_changed" | "generation.result_ready" | "generation.failed";
368
- };
369
- export type TripirlVideoGenerationAutomation = {
370
- "id": TripirlIdentifier;
371
- "status": "running" | "stopping" | "completed" | "blocked" | "cancelled";
372
- "started_at": TripirlTimestamp;
373
- "updated_at": TripirlTimestamp;
374
- "finished_at": TripirlTimestamp | null;
375
- "error": TripirlVideoGenerationFailure | null;
376
- "steps": (TripirlVideoGenerationAutomationStep)[];
377
- "jobs": (TripirlVideoGenerationAutomationJob)[];
378
- "jobs_total": number;
379
- "jobs_truncated": boolean;
380
- };
381
- export type TripirlVideoGenerationAutomationStep = {
382
- "id": TripirlStepId;
383
- "operation": TripirlIdentifier | null;
384
- "status": "pending" | "queued" | "running" | "retrying" | "completed" | "partial" | "blocked" | "cancelled" | "skipped" | "stale";
385
- "freshness": "fresh" | "outdated" | "update_available" | "missing";
386
- "module": {
387
- "id": TripirlIdentifier;
388
- "instance_id": TripirlIdentifier | null;
389
- "revision": number;
390
- } | null;
391
- "jobs": {
392
- "total": number;
393
- "active": number;
394
- "failed": number;
395
- };
396
- "error": TripirlVideoGenerationFailure | null;
397
- };
398
- export type TripirlVideoGenerationAutomationJob = {
399
- "id": TripirlIdentifier;
400
- "step_id": TripirlStepId | null;
401
- "operation": TripirlIdentifier;
402
- "module": {
403
- "id": TripirlIdentifier;
404
- "instance_id": TripirlIdentifier | null;
405
- "revision": number;
406
- } | null;
407
- "status": "queued" | "running" | "retrying" | "succeeded" | "failed" | "cancelled" | "blocked";
408
- "attempt": number | null;
409
- "progress": {
410
- "percent": number | null;
411
- "completed_units": number | null;
412
- "total_units": number | null;
413
- };
414
- "created_at": TripirlTimestamp;
415
- "started_at": TripirlTimestamp | null;
416
- "updated_at": TripirlTimestamp;
417
- "finished_at": TripirlTimestamp | null;
418
- "error": TripirlVideoGenerationFailure | null;
419
- };
420
- export type TripirlValidationIssue = {
421
- "code": "invalid_format" | "invalid_type" | "invalid_value" | "out_of_range" | "unknown_field";
422
- "field": string;
423
- "message": string;
424
- };
425
- export type TripirlError = {
426
- "trace_id": string;
427
- "correlation_id": string;
428
- "error": {
429
- "code": "invalid_request" | "authentication_required" | "insufficient_scope" | "generation_not_found" | "reference_asset_not_found" | "reference_asset_invalid" | "estimate_exceeded" | "idempotency_conflict" | "generation_not_cancellable" | "generation_not_terminal" | "result_not_ready" | "subscription_required" | "insufficient_credits" | "queue_limit_reached" | "concurrency_limit_reached" | "provider_unavailable" | "speech_requirement_unsatisfied" | "speech_casting_unattributed" | "speech_take_too_long" | "speech_lines_missing" | "workflow_unknown" | "workflow_unsupported" | "request_failed";
430
- "message": string;
431
- "retryable": boolean;
432
- "trace_id": string;
433
- "correlation_id": string;
434
- "details"?: {
435
- [key: string]: unknown;
436
- };
437
- };
438
- };
439
- export declare const tripirlVideoStepIds: readonly ["sourceAnalyses", "projectAnalysis", "story", "worldReferences", "locationBible", "shotPlan", "dialogueAudio", "storyboardSheets", "clipPrompts", "clips", "filmExport"];
440
- export declare const tripirlVideoLocales: readonly ["fr-FR", "en-US", "es-ES", "de-DE", "it-IT", "pt-PT", "nl-NL", "pl-PL", "sv-SE", "da-DK", "nb-NO", "fi-FI", "cs-CZ", "sk-SK", "hr-HR", "bg-BG", "ro-RO", "hu-HU", "el-GR", "ru-RU", "uk-UA", "tr-TR", "ar-SA", "hi-IN", "ta-IN", "id-ID", "ms-MY", "vi-VN", "zh-CN", "ja-JP", "ko-KR", "th-TH"];
@@ -1,164 +0,0 @@
1
- import type { RequestOptions } from '../context.js';
2
- import type { NochaError } from '../errors.js';
3
- import type { ClippingEstimate, ClippingExport, ClippingJob, ClippingList, ClippingResource, ClippingSegment, ClippingSettings } from '../clipping-types.js';
4
- export type * from './video-sdk-wire.js';
5
- export { videoLocales } from './video-sdk-wire.js';
6
- import type { VideoEstimate, VideoGeneration, VideoReadableGeneration, VideoGenerationList, VideoGenerationConnectionAction, VideoGenerationConnection, VideoRequest, VideoCreateRequest, VideoRetryRequest, VideoListRequest, VideoWorkflow, VideoWorkflowList, VideoWorkflowRef, VideoWorkflowsRequest, ClippingMutation } from './video-sdk-wire.js';
7
- /** Options of a paid call (`create`, `retry`): the idempotency key, persisted before the call, is required to resume it
8
- * after a lost reply without paying twice. */
9
- export type VideoPaidOptions = RequestOptions & {
10
- idempotencyKey: string;
11
- };
12
- /** Aborting `signal` only stops local polling; `video.cancel` cancels the remote generation. `wait` returns the
13
- * generation as soon as its status is no longer `queued`, `running` or `cancelling`, a `null` status included. */
14
- export type VideoWaitOptions = Pick<RequestOptions, 'signal'> & {
15
- onUpdate?: (generation: VideoReadableGeneration) => void;
16
- /** Called before retrying a transient status read, up to three consecutive retries. */
17
- onRetry?: (error: NochaError, attempt: number) => void;
18
- /** Fixed interval between reads, 2 000 ms at least. Absent: 2 s for 20 s, 5 s until 2 minutes, then 15 s. */
19
- intervalMs?: number;
20
- };
21
- export type ClippingUploadOptions = RequestOptions & {
22
- onProgress?: (progress: {
23
- loaded: number;
24
- total: number;
25
- }) => void;
26
- };
27
- /** Bytes received by the host; `total` is null until the host knows the file size. */
28
- export type VideoMediaProgress = {
29
- loaded: number;
30
- total: number | null;
31
- };
32
- /** Aborting `signal` or reaching `timeoutMs` (10 minutes by default) stops the host read; hosts stop it after 15 minutes. */
33
- export type VideoMediaOptions = Pick<RequestOptions, 'signal' | 'timeoutMs'> & {
34
- onProgress?: (progress: VideoMediaProgress) => void;
35
- };
36
- /** A protected absolute file URL. It needs the current host session and workspace rights on every GET/Range. */
37
- export type VideoPlayback = {
38
- url: string;
39
- expiresAt: string;
40
- mimeType: 'video/mp4';
41
- };
42
- export type VideoPlaybackOptions = Pick<RequestOptions, 'signal' | 'timeoutMs'>;
43
- export type NochaVideoClipping = {
44
- /** Persist the exact request in the authenticated host before sending a mutation. */
45
- prepareMutation(input: {
46
- slot: string;
47
- request: unknown;
48
- }, options?: RequestOptions): Promise<ClippingMutation>;
49
- readMutation(input: {
50
- slot: string;
51
- }, options?: RequestOptions): Promise<{
52
- pending: ClippingMutation | null;
53
- }>;
54
- /** Clear only a confirmed result using the matching stored key. */
55
- completeMutation(input: {
56
- slot: string;
57
- idempotencyKey: string;
58
- }, options?: RequestOptions): Promise<{
59
- completed: true;
60
- }>;
61
- create(input: {
62
- title: string;
63
- settings?: Partial<ClippingSettings>;
64
- }, options?: RequestOptions): Promise<ClippingResource>;
65
- list(input?: {
66
- limit?: number;
67
- cursor?: string;
68
- }, options?: RequestOptions): Promise<ClippingList>;
69
- get(input: {
70
- id: string;
71
- }, options?: RequestOptions): Promise<ClippingResource>;
72
- remove(input: {
73
- id: string;
74
- }, options?: RequestOptions): Promise<{
75
- deleted: true;
76
- }>;
77
- uploadSource(input: {
78
- id: string;
79
- file: Blob;
80
- filename?: string;
81
- }, options?: ClippingUploadOptions): Promise<ClippingResource>;
82
- /** `settings` and `segments` are passed exactly as a clipping resource returns them. */
83
- estimate(input: {
84
- id: string;
85
- settings: ClippingSettings;
86
- kind?: 'proposal' | 'export';
87
- }, options?: RequestOptions): Promise<ClippingEstimate>;
88
- /** A clipping ceiling may be `"0"` when a previous analysis is reused. */
89
- propose(input: {
90
- id: string;
91
- settings: ClippingSettings;
92
- expectedVersion: number;
93
- confirmedMaximumMicrocredits: string;
94
- }, options?: RequestOptions): Promise<ClippingResource>;
95
- updatePlan(input: {
96
- id: string;
97
- expectedVersion: number;
98
- sourceSignature: string;
99
- segments: ClippingSegment[];
100
- }, options?: RequestOptions): Promise<ClippingResource>;
101
- createExport(input: {
102
- id: string;
103
- planVersion: number;
104
- sourceSignature: string;
105
- confirmedMaximumMicrocredits: string;
106
- }, options?: RequestOptions): Promise<ClippingExport>;
107
- getJob(input: {
108
- id: string;
109
- jobId: string;
110
- }, options?: RequestOptions): Promise<ClippingJob>;
111
- cancelJob(input: {
112
- id: string;
113
- jobId: string;
114
- }, options?: RequestOptions): Promise<ClippingJob>;
115
- resumeJob(input: {
116
- id: string;
117
- jobId: string;
118
- confirmedMaximumMicrocredits: string;
119
- }, options?: RequestOptions): Promise<ClippingJob>;
120
- };
121
- /** Delegated video generations (Tripirl connection) and interactive clipping, under the `video` grant. Each generation
122
- * runs a workflow chosen from `workflows()`. Generative needs such as `video.generate` and `video.extend` belong to
123
- * `nocha.ai`. */
124
- export type NochaVideo = {
125
- connection(input?: {
126
- action?: VideoGenerationConnectionAction;
127
- }, options?: RequestOptions): Promise<VideoGenerationConnection>;
128
- /** The workflows the participant can run: built-in ones, then the `fmt_…` of their Tripirl library. */
129
- workflows(input?: VideoWorkflowsRequest, options?: RequestOptions): Promise<VideoWorkflowList>;
130
- /** One workflow, at a revision for a saved `fmt_…` one. */
131
- workflow(input: VideoWorkflowRef, options?: RequestOptions): Promise<VideoWorkflow>;
132
- estimate(input: VideoRequest, options?: RequestOptions): Promise<VideoEstimate>;
133
- /** Persist `options.idempotencyKey` before the call and reuse it to resume after a lost reply. */
134
- create(input: VideoCreateRequest, options: VideoPaidOptions): Promise<VideoGeneration>;
135
- list(input?: VideoListRequest, options?: RequestOptions): Promise<VideoGenerationList>;
136
- get(input: {
137
- id: string;
138
- }, options?: RequestOptions): Promise<VideoReadableGeneration>;
139
- /** Resumes a failed generation within its confirmed cumulative budget. Persist a key for this action. */
140
- retry(input: VideoRetryRequest, options: VideoPaidOptions): Promise<VideoGeneration>;
141
- cancel(input: {
142
- id: string;
143
- }, options?: RequestOptions): Promise<VideoGeneration>;
144
- remove(input: {
145
- id: string;
146
- }, options?: RequestOptions): Promise<VideoGeneration>;
147
- /** Reads the generation until its status is no longer `queued`, `running` or `cancelling` (`succeeded`, `failed`,
148
- * `cancelled`, or `null` for a status this SDK does not know), and returns it. */
149
- wait(input: {
150
- id: string;
151
- }, options?: VideoWaitOptions): Promise<VideoReadableGeneration>;
152
- /** Authorizes immediate `<video src>` streaming under the declared `video.get` usage, without downloading bytes.
153
- * Call again after expiration or reopening; an older host rejects with `playback_unsupported_host`. No Blob fallback. */
154
- playback(input: {
155
- id: string;
156
- }, options?: VideoPlaybackOptions): Promise<VideoPlayback>;
157
- /** Reads a succeeded film as an MP4 `Blob` of at most 256 MiB. The host authorizes it with `video.get`
158
- * and fetches it with its own identity: `download_url` alone is not readable from the experience frame.
159
- * Show it through `URL.createObjectURL(blob)` (`<video>`, Three.js `VideoTexture`) and revoke the URL after use. */
160
- media(input: {
161
- id: string;
162
- }, options?: VideoMediaOptions): Promise<Blob>;
163
- clipping: NochaVideoClipping;
164
- };
@@ -1,17 +0,0 @@
1
- /** Private media and transcripts stay with the host. This state grants no authority. */
2
- export type VoiceCallState = {
3
- callId: string | null;
4
- connection: 'idle' | 'connecting' | 'connected' | 'reconnecting' | 'closing' | 'closed' | 'failed';
5
- microphone: 'off' | 'on';
6
- playback: 'idle' | 'playing';
7
- reasoning: 'idle' | 'running' | 'awaiting_confirmation';
8
- settlement: 'pending' | 'settled' | 'incomplete';
9
- };
10
- export type VoiceStartInput = {
11
- maximumCostMicrocredits: string;
12
- maxDurationSeconds?: number;
13
- };
14
- export type VoiceStopInput = {
15
- callId: string;
16
- reason?: 'user' | 'experience_closed';
17
- };