@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.20

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 (282) hide show
  1. package/COMPATIBILITY.json +4 -4
  2. package/LICENSE +201 -21
  3. package/dist/_chunks/chunk-3Q24IPBK.js +1 -0
  4. package/dist/_chunks/chunk-AFUVP2DC.js +1 -0
  5. package/dist/_chunks/chunk-D3KLEDOI.js +1 -0
  6. package/dist/_chunks/chunk-GJULDJSV.js +1 -0
  7. package/dist/_chunks/chunk-O6YL4JVI.js +1 -0
  8. package/dist/_chunks/chunk-OHONXDFL.js +1 -0
  9. package/dist/_chunks/chunk-QVP4AMRJ.js +1 -0
  10. package/dist/_chunks/chunk-S64F3WZK.js +1 -0
  11. package/dist/_chunks/chunk-SXZY76XB.js +1 -0
  12. package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
  13. package/dist/_chunks/chunk-V636KA7B.js +1 -0
  14. package/dist/_chunks/chunk-VI7HPZJC.js +1 -0
  15. package/dist/_chunks/chunk-XNROPEWC.js +1 -0
  16. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +55 -43
  17. package/dist/_types/contracts/agent-execution-oauth.d.ts +2 -2
  18. package/dist/_types/contracts/agent-execution-registration.d.ts +59 -15
  19. package/dist/_types/contracts/agent-execution-selection.d.ts +7 -7
  20. package/dist/_types/contracts/agent-host-contract.d.ts +189 -0
  21. package/dist/_types/contracts/agent-host-execution.d.ts +92 -61
  22. package/dist/_types/contracts/agent-host-generic-transport.d.ts +4 -4
  23. package/dist/_types/contracts/agent-host-legacy-release.d.ts +31 -0
  24. package/dist/_types/contracts/agent-host-protocol.d.ts +71 -0
  25. package/dist/_types/contracts/agent-host-wire.d.ts +263 -0
  26. package/dist/_types/contracts/agent-host.d.ts +126 -65
  27. package/dist/_types/contracts/artifact-discovery.d.ts +143 -11
  28. package/dist/_types/contracts/audio.d.ts +166 -0
  29. package/dist/_types/contracts/component-status.d.ts +241 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +8 -8
  31. package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
  32. package/dist/_types/contracts/composition-observation.d.ts +1 -1
  33. package/dist/_types/contracts/composition-render-base.d.ts +5 -4
  34. package/dist/_types/contracts/composition-render.d.ts +8 -8
  35. package/dist/_types/contracts/composition-repair.d.ts +10 -10
  36. package/dist/_types/contracts/composition-source-review.d.ts +13 -13
  37. package/dist/_types/contracts/consistency-profile.d.ts +102 -6
  38. package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
  39. package/dist/_types/contracts/delivery-completion.d.ts +1 -1
  40. package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
  41. package/dist/_types/contracts/delivery-operations.d.ts +207 -3915
  42. package/dist/_types/contracts/delivery-summary.d.ts +4 -4
  43. package/dist/_types/contracts/delivery-validation.d.ts +25 -2
  44. package/dist/_types/contracts/device-onboarding.d.ts +35 -0
  45. package/dist/_types/contracts/device-render.d.ts +113 -0
  46. package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
  47. package/dist/_types/contracts/enterprise-brand.d.ts +302 -0
  48. package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
  49. package/dist/_types/contracts/external-agent-access.d.ts +4 -6
  50. package/dist/_types/contracts/federation-event-link-receiver.d.ts +200 -0
  51. package/dist/_types/contracts/federation-event-link.d.ts +485 -0
  52. package/dist/_types/contracts/federation-result.d.ts +239 -0
  53. package/dist/_types/contracts/final-ready.d.ts +24 -24
  54. package/dist/_types/contracts/final-render.d.ts +1742 -6949
  55. package/dist/_types/contracts/human-identity.d.ts +13 -0
  56. package/dist/_types/contracts/human-links.d.ts +58 -0
  57. package/dist/_types/contracts/index.d.ts +26 -0
  58. package/dist/_types/contracts/interface/common.d.ts +18 -0
  59. package/dist/_types/contracts/interface/execution-output.d.ts +9 -6
  60. package/dist/_types/contracts/interface/media-output.d.ts +118 -0
  61. package/dist/_types/contracts/interface/operation.d.ts +30 -0
  62. package/dist/_types/contracts/interface/production-snapshot.d.ts +81 -199
  63. package/dist/_types/contracts/interface/query.d.ts +60 -0
  64. package/dist/_types/contracts/keyframe-generation.d.ts +31 -2
  65. package/dist/_types/contracts/keyframe-review.d.ts +7 -7
  66. package/dist/_types/contracts/lifecycle-event-projections.d.ts +17 -2
  67. package/dist/_types/contracts/lifecycle-events.d.ts +54 -2
  68. package/dist/_types/contracts/local-execution/agent-component-status.d.ts +109 -0
  69. package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -0
  70. package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
  71. package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
  72. package/dist/_types/contracts/local-execution/agent-review.d.ts +529 -71
  73. package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
  74. package/dist/_types/contracts/local-execution/common.d.ts +12 -11
  75. package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
  76. package/dist/_types/contracts/local-execution/components.d.ts +45 -0
  77. package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
  78. package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
  79. package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
  80. package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -0
  81. package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
  82. package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
  83. package/dist/_types/contracts/local-execution/device-inventory.d.ts +108 -0
  84. package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
  85. package/dist/_types/contracts/local-execution/device.d.ts +24 -55
  86. package/dist/_types/contracts/local-execution/enrollment-credential.d.ts +141 -0
  87. package/dist/_types/contracts/local-execution/enrollment-handoff.d.ts +44 -0
  88. package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
  89. package/dist/_types/contracts/local-execution/index.d.ts +36 -0
  90. package/dist/_types/contracts/local-execution/ipc.d.ts +2809 -231
  91. package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
  92. package/dist/_types/contracts/local-execution/library-result.d.ts +428 -0
  93. package/dist/_types/contracts/local-execution/library.d.ts +873 -0
  94. package/dist/_types/contracts/local-execution/lifecycle.d.ts +262 -48
  95. package/dist/_types/contracts/local-execution/local-navigation.d.ts +304 -67
  96. package/dist/_types/contracts/local-execution/management.d.ts +407 -0
  97. package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
  98. package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
  99. package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
  100. package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
  101. package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
  102. package/dist/_types/contracts/local-execution/preview.d.ts +177 -3561
  103. package/dist/_types/contracts/local-execution/processor-capability.d.ts +49 -0
  104. package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
  105. package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1194 -0
  106. package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
  107. package/dist/_types/contracts/local-execution/processor.d.ts +6424 -0
  108. package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
  109. package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
  110. package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
  111. package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
  112. package/dist/_types/contracts/local-execution/tool-selection.d.ts +71 -5
  113. package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
  114. package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
  115. package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
  116. package/dist/_types/contracts/mcp-capabilities.d.ts +16 -0
  117. package/dist/_types/contracts/media-category.d.ts +11 -0
  118. package/dist/_types/contracts/media-observation.d.ts +930 -9
  119. package/dist/_types/contracts/native-speech-model.d.ts +53 -0
  120. package/dist/_types/contracts/native-speech-options.d.ts +25 -0
  121. package/dist/_types/contracts/native-tool-authority.d.ts +25 -21
  122. package/dist/_types/contracts/native-tool-execution.d.ts +60 -39
  123. package/dist/_types/contracts/navigation-context.d.ts +28 -8
  124. package/dist/_types/contracts/navigation-groups.d.ts +2 -2
  125. package/dist/_types/contracts/navigation.d.ts +78 -25
  126. package/dist/_types/contracts/observation-profile.d.ts +3 -3
  127. package/dist/_types/contracts/production-creation.d.ts +30 -0
  128. package/dist/_types/contracts/production-feedback.d.ts +452 -0
  129. package/dist/_types/contracts/production.d.ts +30 -0
  130. package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
  131. package/dist/_types/contracts/programmatic-exploration.d.ts +362 -5999
  132. package/dist/_types/contracts/programmatic-video-review.d.ts +5 -5
  133. package/dist/_types/contracts/project-library.d.ts +30 -0
  134. package/dist/_types/contracts/project.d.ts +30 -0
  135. package/dist/_types/contracts/provider-catalog.d.ts +3 -3
  136. package/dist/_types/contracts/provider-models.d.ts +209 -8
  137. package/dist/_types/contracts/provider.d.ts +66 -1
  138. package/dist/_types/contracts/reference-preview.d.ts +20 -0
  139. package/dist/_types/contracts/render-readiness.d.ts +175 -0
  140. package/dist/_types/contracts/repair-lifecycle.d.ts +64 -396
  141. package/dist/_types/contracts/repair-plan.d.ts +18 -100
  142. package/dist/_types/contracts/repair-strategy.d.ts +163 -4478
  143. package/dist/_types/contracts/review-intelligence-final-output.d.ts +418 -8150
  144. package/dist/_types/contracts/review-intelligence.d.ts +455 -11423
  145. package/dist/_types/contracts/review1-repair-source.d.ts +6 -6
  146. package/dist/_types/contracts/review1-repair-strategy.d.ts +4 -4
  147. package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
  148. package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
  149. package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
  150. package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
  151. package/dist/_types/contracts/series-canon.d.ts +97 -0
  152. package/dist/_types/contracts/series-character.d.ts +23 -0
  153. package/dist/_types/contracts/series-improvement.d.ts +1639 -0
  154. package/dist/_types/contracts/series-standard.d.ts +1641 -0
  155. package/dist/_types/contracts/shares.d.ts +135 -0
  156. package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
  157. package/dist/_types/contracts/shot-preparation.d.ts +4 -4
  158. package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
  159. package/dist/_types/contracts/speech-cost.d.ts +96 -0
  160. package/dist/_types/contracts/speech-parameters.d.ts +39 -0
  161. package/dist/_types/contracts/speech.d.ts +603 -23
  162. package/dist/_types/contracts/temporal-evidence-operation.d.ts +2 -1
  163. package/dist/_types/contracts/timeline-audio.d.ts +20 -4
  164. package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
  165. package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
  166. package/dist/_types/contracts/timeline-v2.d.ts +124 -16
  167. package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
  168. package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
  169. package/dist/_types/contracts/timeline.d.ts +50 -4850
  170. package/dist/_types/contracts/transcription.d.ts +1 -1
  171. package/dist/_types/contracts/video-generation.d.ts +35 -2
  172. package/dist/_types/contracts/video-review.d.ts +7 -7
  173. package/dist/_types/contracts/visual-exploration.d.ts +3 -3
  174. package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
  175. package/dist/_types/contracts/visual-sequence.d.ts +22 -0
  176. package/dist/_types/contracts/voice-consistency.d.ts +183 -0
  177. package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
  178. package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
  179. package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
  180. package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
  181. package/dist/_types/contracts/voice-review.d.ts +1194 -0
  182. package/dist/_types/contracts/workspace.d.ts +83 -0
  183. package/dist/_types/sdk/account.d.ts +13 -0
  184. package/dist/_types/sdk/auxiliary-media.d.ts +1 -0
  185. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +324 -112
  186. package/dist/_types/sdk/catalog/agent-host.d.ts +222 -70
  187. package/dist/_types/sdk/catalog/assembly.d.ts +26 -37628
  188. package/dist/_types/sdk/catalog/audio-caption.d.ts +126 -22
  189. package/dist/_types/sdk/catalog/canonical-repair.d.ts +132 -132
  190. package/dist/_types/sdk/catalog/carriers.d.ts +59 -0
  191. package/dist/_types/sdk/catalog/composition-source.d.ts +14 -14
  192. package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
  193. package/dist/_types/sdk/catalog/core.d.ts +528 -18
  194. package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
  195. package/dist/_types/sdk/catalog/device-library.d.ts +1024 -0
  196. package/dist/_types/sdk/catalog/device-management.d.ts +921 -0
  197. package/dist/_types/sdk/catalog/discovery.d.ts +38 -4
  198. package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
  199. package/dist/_types/sdk/catalog/enterprise-brand.d.ts +462 -0
  200. package/dist/_types/sdk/catalog/federation.d.ts +3981 -0
  201. package/dist/_types/sdk/catalog/generation.d.ts +284 -8
  202. package/dist/_types/sdk/catalog/imported-visual.d.ts +246 -816
  203. package/dist/_types/sdk/catalog/keyframe-review.d.ts +10 -10
  204. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +440 -14
  205. package/dist/_types/sdk/catalog/mcp.d.ts +112 -7
  206. package/dist/_types/sdk/catalog/media-descriptors.d.ts +214 -11
  207. package/dist/_types/sdk/catalog/media-observation.d.ts +1031 -14
  208. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +54 -24
  209. package/dist/_types/sdk/catalog/navigation.d.ts +293 -24
  210. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +136 -8
  211. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
  212. package/dist/_types/sdk/catalog/programmatic-review.d.ts +8 -8
  213. package/dist/_types/sdk/catalog/provider.d.ts +394 -20
  214. package/dist/_types/sdk/catalog/reference-preview.d.ts +58 -30
  215. package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
  216. package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
  217. package/dist/_types/sdk/catalog/series-standard.d.ts +5402 -0
  218. package/dist/_types/sdk/catalog/shares.d.ts +305 -0
  219. package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
  220. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
  221. package/dist/_types/sdk/catalog/source-sync.d.ts +8 -498
  222. package/dist/_types/sdk/catalog/spec.d.ts +10 -2
  223. package/dist/_types/sdk/catalog/speech.d.ts +856 -4
  224. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +4 -2
  225. package/dist/_types/sdk/catalog/video-review.d.ts +10 -10
  226. package/dist/_types/sdk/catalog/visual-exploration.d.ts +556 -440
  227. package/dist/_types/sdk/catalog/voice-profile.d.ts +1547 -0
  228. package/dist/_types/sdk/catalog/voice-review.d.ts +1125 -0
  229. package/dist/_types/sdk/client.d.ts +30 -3
  230. package/dist/_types/sdk/desktop-previews.d.ts +3 -3
  231. package/dist/_types/sdk/desktop-releases.d.ts +2 -2
  232. package/dist/_types/sdk/device-enrollment-handoff.d.ts +249 -0
  233. package/dist/_types/sdk/device-renders.d.ts +3751 -0
  234. package/dist/_types/sdk/direct-source.d.ts +147 -0
  235. package/dist/_types/sdk/errors.d.ts +9 -3
  236. package/dist/_types/sdk/federation-notice-result.d.ts +22 -0
  237. package/dist/_types/sdk/feedback-observer.d.ts +10 -0
  238. package/dist/_types/sdk/host-protocol.d.ts +8 -0
  239. package/dist/_types/sdk/image-media.d.ts +2 -2
  240. package/dist/_types/sdk/immutable-media.d.ts +24 -0
  241. package/dist/_types/sdk/index.d.ts +16 -1
  242. package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
  243. package/dist/_types/sdk/local-runtime/device-client.d.ts +181 -19
  244. package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
  245. package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
  246. package/dist/_types/sdk/local-runtime-client.d.ts +1934 -96
  247. package/dist/_types/sdk/mcp-client.d.ts +13 -5
  248. package/dist/_types/sdk/mcp-discovery.d.ts +14 -0
  249. package/dist/_types/sdk/mcp-image.d.ts +4 -4
  250. package/dist/_types/sdk/mcp-port.d.ts +73 -0
  251. package/dist/_types/sdk/media.d.ts +11 -9
  252. package/dist/_types/sdk/navigation-client.d.ts +56 -122
  253. package/dist/_types/sdk/navigation-facade.d.ts +88 -14
  254. package/dist/_types/sdk/observe.d.ts +13 -0
  255. package/dist/_types/sdk/runtime-authority.d.ts +18 -8
  256. package/dist/_types/sdk/transport/http.d.ts +2 -0
  257. package/dist/_types/sdk/webhook-receiver.d.ts +38 -0
  258. package/dist/account.js +1 -1
  259. package/dist/errors.js +1 -1
  260. package/dist/host-protocol.d.ts +1 -0
  261. package/dist/host-protocol.js +1 -0
  262. package/dist/index.d.ts +2 -2
  263. package/dist/index.js +1 -1
  264. package/dist/local-runtime.js +1 -1
  265. package/dist/mcp-discovery.d.ts +1 -0
  266. package/dist/mcp-discovery.js +1 -0
  267. package/dist/native/helper.exe +0 -0
  268. package/dist/native/helper.json +1 -0
  269. package/dist/runtime-authority.js +1 -1
  270. package/package.json +10 -8
  271. package/README.md +0 -75
  272. package/dist/_chunks/chunk-34KSWLCI.js +0 -1
  273. package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
  274. package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
  275. package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
  276. package/dist/_chunks/chunk-7YCEMDNZ.js +0 -1
  277. package/dist/native/Bootstrap.ps1 +0 -90
  278. package/dist/native/JobNative.cs +0 -127
  279. package/dist/native/JobRunner.cs +0 -360
  280. package/dist/native/NativeMain.cs +0 -146
  281. package/dist/native/PipeBridge.cs +0 -260
  282. package/dist/native/PrivateAccess.cs +0 -152
@@ -0,0 +1,3981 @@
1
+ export declare const federationOperations: {
2
+ readonly "federation.inbound.catalog": import("./spec.js").HttpOperationSpec<{
3
+ tenantId: string;
4
+ productionId: string;
5
+ }, {
6
+ tenantId: string & import("zod").$brand<"TenantId">;
7
+ productionId: string & import("zod").$brand<"ProductionId">;
8
+ }, {
9
+ tenantId: string & import("zod").$brand<"TenantId">;
10
+ productionId: string & import("zod").$brand<"ProductionId">;
11
+ defaultReceive: false;
12
+ configuration: "CONFIGURED" | "UNCONFIGURED";
13
+ effect: "REFRESH_HINT";
14
+ bindings: {
15
+ source: string;
16
+ contractVersion: 2;
17
+ tenantId: string & import("zod").$brand<"TenantId">;
18
+ bindingId: string;
19
+ productionId: string & import("zod").$brand<"ProductionId">;
20
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
21
+ expiresAt: string;
22
+ grantRef: string;
23
+ remoteService: string;
24
+ remoteTenant: string;
25
+ grantVersion: number;
26
+ notBefore: string;
27
+ sourceSelection: {
28
+ scope: {
29
+ namespace: string;
30
+ ref: string;
31
+ };
32
+ resourceNamespace: string;
33
+ changeKinds: string[];
34
+ resourcePrefixes: string[];
35
+ };
36
+ consumerRef: string;
37
+ revision: number;
38
+ installationSource: string;
39
+ connectionRef: string;
40
+ direction: "INBOUND";
41
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
42
+ eventType: "com.nativestudio.federation.resource.changed.v1";
43
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
44
+ }[];
45
+ events: {
46
+ sourceService: string;
47
+ type: string;
48
+ dataSchema: string;
49
+ }[];
50
+ }, {
51
+ tenantId: string;
52
+ productionId: string;
53
+ defaultReceive: false;
54
+ configuration: "CONFIGURED" | "UNCONFIGURED";
55
+ effect: "REFRESH_HINT";
56
+ bindings: {
57
+ source: string;
58
+ contractVersion: 2;
59
+ tenantId: string;
60
+ bindingId: string;
61
+ productionId: string;
62
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
63
+ expiresAt: string;
64
+ grantRef: string;
65
+ remoteService: string;
66
+ remoteTenant: string;
67
+ grantVersion: number;
68
+ notBefore: string;
69
+ sourceSelection: {
70
+ scope: {
71
+ namespace: string;
72
+ ref: string;
73
+ };
74
+ resourceNamespace: string;
75
+ changeKinds: string[];
76
+ resourcePrefixes: string[];
77
+ };
78
+ consumerRef: string;
79
+ revision: number;
80
+ installationSource: string;
81
+ connectionRef: string;
82
+ direction: "INBOUND";
83
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
84
+ eventType: "com.nativestudio.federation.resource.changed.v1";
85
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
86
+ }[];
87
+ events: {
88
+ sourceService: string;
89
+ type: string;
90
+ dataSchema: string;
91
+ }[];
92
+ }>;
93
+ readonly "federation.inbound.configure": import("./spec.js").HttpOperationSpec<{
94
+ tenantId: string;
95
+ productionId: string;
96
+ bindingId: string;
97
+ requestId: string;
98
+ expectedRevision: number;
99
+ source: string;
100
+ contractVersion: 2;
101
+ remoteService: string;
102
+ sourceSelection: {
103
+ scope: {
104
+ namespace: string;
105
+ ref: string;
106
+ };
107
+ resourceNamespace: string;
108
+ changeKinds: string[];
109
+ resourcePrefixes: string[];
110
+ };
111
+ remoteTenant: string;
112
+ consumerRef: string;
113
+ grantRef: string;
114
+ grantVersion: number;
115
+ notBefore: string;
116
+ expiresAt: string;
117
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
118
+ connectionRef?: string | undefined;
119
+ }, {
120
+ tenantId: string & import("zod").$brand<"TenantId">;
121
+ productionId: string & import("zod").$brand<"ProductionId">;
122
+ bindingId: string;
123
+ requestId: string;
124
+ expectedRevision: number;
125
+ source: string;
126
+ contractVersion: 2;
127
+ remoteService: string;
128
+ sourceSelection: {
129
+ scope: {
130
+ namespace: string;
131
+ ref: string;
132
+ };
133
+ resourceNamespace: string;
134
+ changeKinds: string[];
135
+ resourcePrefixes: string[];
136
+ };
137
+ remoteTenant: string;
138
+ consumerRef: string;
139
+ grantRef: string;
140
+ grantVersion: number;
141
+ notBefore: string;
142
+ expiresAt: string;
143
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
144
+ connectionRef?: string | undefined;
145
+ }, {
146
+ source: string;
147
+ contractVersion: 2;
148
+ tenantId: string & import("zod").$brand<"TenantId">;
149
+ bindingId: string;
150
+ productionId: string & import("zod").$brand<"ProductionId">;
151
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
152
+ expiresAt: string;
153
+ grantRef: string;
154
+ remoteService: string;
155
+ remoteTenant: string;
156
+ grantVersion: number;
157
+ notBefore: string;
158
+ sourceSelection: {
159
+ scope: {
160
+ namespace: string;
161
+ ref: string;
162
+ };
163
+ resourceNamespace: string;
164
+ changeKinds: string[];
165
+ resourcePrefixes: string[];
166
+ };
167
+ consumerRef: string;
168
+ revision: number;
169
+ installationSource: string;
170
+ connectionRef: string;
171
+ direction: "INBOUND";
172
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
173
+ eventType: "com.nativestudio.federation.resource.changed.v1";
174
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
175
+ }, {
176
+ source: string;
177
+ contractVersion: 2;
178
+ tenantId: string;
179
+ bindingId: string;
180
+ productionId: string;
181
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
182
+ expiresAt: string;
183
+ grantRef: string;
184
+ remoteService: string;
185
+ remoteTenant: string;
186
+ grantVersion: number;
187
+ notBefore: string;
188
+ sourceSelection: {
189
+ scope: {
190
+ namespace: string;
191
+ ref: string;
192
+ };
193
+ resourceNamespace: string;
194
+ changeKinds: string[];
195
+ resourcePrefixes: string[];
196
+ };
197
+ consumerRef: string;
198
+ revision: number;
199
+ installationSource: string;
200
+ connectionRef: string;
201
+ direction: "INBOUND";
202
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
203
+ eventType: "com.nativestudio.federation.resource.changed.v1";
204
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
205
+ }>;
206
+ readonly "federation.inbound.query": import("./spec.js").HttpOperationSpec<{
207
+ tenantId: string;
208
+ productionId: string;
209
+ kind: "bindings" | "inbox" | "signals" | "replays" | "quarantine";
210
+ after?: string | undefined;
211
+ limit?: number | undefined;
212
+ }, {
213
+ tenantId: string & import("zod").$brand<"TenantId">;
214
+ productionId: string & import("zod").$brand<"ProductionId">;
215
+ kind: "bindings" | "inbox" | "signals" | "replays" | "quarantine";
216
+ limit: number;
217
+ after?: string | undefined;
218
+ }, {
219
+ tenantId: string & import("zod").$brand<"TenantId">;
220
+ productionId: string & import("zod").$brand<"ProductionId">;
221
+ kind: "bindings";
222
+ items: ({
223
+ source: string;
224
+ contractVersion: 2;
225
+ tenantId: string & import("zod").$brand<"TenantId">;
226
+ bindingId: string;
227
+ productionId: string & import("zod").$brand<"ProductionId">;
228
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
229
+ expiresAt: string;
230
+ grantRef: string;
231
+ remoteService: string;
232
+ remoteTenant: string;
233
+ grantVersion: number;
234
+ notBefore: string;
235
+ sourceSelection: {
236
+ scope: {
237
+ namespace: string;
238
+ ref: string;
239
+ };
240
+ resourceNamespace: string;
241
+ changeKinds: string[];
242
+ resourcePrefixes: string[];
243
+ };
244
+ consumerRef: string;
245
+ revision: number;
246
+ installationSource: string;
247
+ connectionRef: string;
248
+ direction: "INBOUND";
249
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
250
+ eventType: "com.nativestudio.federation.resource.changed.v1";
251
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
252
+ } | {
253
+ source: string;
254
+ tenantId: string & import("zod").$brand<"TenantId">;
255
+ bindingId: string;
256
+ productionId: string & import("zod").$brand<"ProductionId">;
257
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
258
+ expiresAt: string;
259
+ grantRef: string;
260
+ remoteService: string;
261
+ remoteTenant: string;
262
+ grantVersion: number;
263
+ notBefore: string;
264
+ consumerRef: string;
265
+ revision: number;
266
+ installationSource: string;
267
+ connectionRef: string;
268
+ direction: "INBOUND";
269
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
270
+ contractVersion: 1;
271
+ sourceSelection?: Record<string, string | string[] | Record<string, string>> | undefined;
272
+ eventType?: string | undefined;
273
+ dataSchema?: string | undefined;
274
+ })[];
275
+ next: string | null;
276
+ } | {
277
+ tenantId: string & import("zod").$brand<"TenantId">;
278
+ productionId: string & import("zod").$brand<"ProductionId">;
279
+ kind: "inbox";
280
+ items: {
281
+ tenantId: string & import("zod").$brand<"TenantId">;
282
+ productionId: string & import("zod").$brand<"ProductionId">;
283
+ id: string;
284
+ bindingId: string;
285
+ source: string;
286
+ eventId: string;
287
+ consumerRef: string;
288
+ disposition: "REJECTED" | "UNKNOWN" | "HOLD" | "RECEIVED" | "APPLIED";
289
+ revision: number;
290
+ generation: number;
291
+ attempts: number;
292
+ recoveryCount: number;
293
+ workState: "READY" | "QUARANTINED" | "SETTLED";
294
+ reason: string | null;
295
+ receivedAt: string;
296
+ resourceRef: string;
297
+ resourceVersion: string;
298
+ }[];
299
+ next: string | null;
300
+ } | {
301
+ tenantId: string & import("zod").$brand<"TenantId">;
302
+ productionId: string & import("zod").$brand<"ProductionId">;
303
+ kind: "signals";
304
+ items: {
305
+ resourceRef: string;
306
+ resourceVersion: string;
307
+ changeKind: string;
308
+ tenantId: string & import("zod").$brand<"TenantId">;
309
+ productionId: string & import("zod").$brand<"ProductionId">;
310
+ inboxId: string;
311
+ consumerRef: string;
312
+ source: string;
313
+ sourceTenant: string;
314
+ effect: "REFRESH_HINT";
315
+ appliedAt: string;
316
+ contractVersion?: 2 | undefined;
317
+ resourceNamespace?: string | undefined;
318
+ sourceService?: string | undefined;
319
+ sourceScope?: Record<string, string> | undefined;
320
+ parentRef?: string | null | undefined;
321
+ }[];
322
+ next: string | null;
323
+ } | {
324
+ tenantId: string & import("zod").$brand<"TenantId">;
325
+ productionId: string & import("zod").$brand<"ProductionId">;
326
+ kind: "replays";
327
+ items: {
328
+ requestId: string;
329
+ tenantId: string & import("zod").$brand<"TenantId">;
330
+ productionId: string & import("zod").$brand<"ProductionId">;
331
+ effect: "TRANSPORT_ONLY";
332
+ inboxId: string;
333
+ replayId: string;
334
+ status: "PENDING" | "REQUEUED" | "DENIED";
335
+ reasonCode: string | null;
336
+ }[];
337
+ next: string | null;
338
+ } | {
339
+ tenantId: string & import("zod").$brand<"TenantId">;
340
+ productionId: string & import("zod").$brand<"ProductionId">;
341
+ kind: "quarantine";
342
+ items: {
343
+ tenantId: string & import("zod").$brand<"TenantId">;
344
+ productionId: string & import("zod").$brand<"ProductionId">;
345
+ id: string;
346
+ bindingId: string;
347
+ deliveryRef: string;
348
+ reasonCode: string;
349
+ recordedAt: string;
350
+ }[];
351
+ next: string | null;
352
+ }, {
353
+ tenantId: string;
354
+ productionId: string;
355
+ kind: "bindings";
356
+ items: ({
357
+ source: string;
358
+ contractVersion: 2;
359
+ tenantId: string;
360
+ bindingId: string;
361
+ productionId: string;
362
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
363
+ expiresAt: string;
364
+ grantRef: string;
365
+ remoteService: string;
366
+ remoteTenant: string;
367
+ grantVersion: number;
368
+ notBefore: string;
369
+ sourceSelection: {
370
+ scope: {
371
+ namespace: string;
372
+ ref: string;
373
+ };
374
+ resourceNamespace: string;
375
+ changeKinds: string[];
376
+ resourcePrefixes: string[];
377
+ };
378
+ consumerRef: string;
379
+ revision: number;
380
+ installationSource: string;
381
+ connectionRef: string;
382
+ direction: "INBOUND";
383
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
384
+ eventType: "com.nativestudio.federation.resource.changed.v1";
385
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
386
+ } | {
387
+ source: string;
388
+ tenantId: string;
389
+ bindingId: string;
390
+ productionId: string;
391
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
392
+ expiresAt: string;
393
+ grantRef: string;
394
+ remoteService: string;
395
+ remoteTenant: string;
396
+ grantVersion: number;
397
+ notBefore: string;
398
+ consumerRef: string;
399
+ revision: number;
400
+ installationSource: string;
401
+ connectionRef: string;
402
+ direction: "INBOUND";
403
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
404
+ contractVersion?: 1 | undefined;
405
+ sourceSelection?: Record<string, string | string[] | Record<string, string>> | undefined;
406
+ eventType?: string | undefined;
407
+ dataSchema?: string | undefined;
408
+ })[];
409
+ next: string | null;
410
+ } | {
411
+ tenantId: string;
412
+ productionId: string;
413
+ kind: "inbox";
414
+ items: {
415
+ tenantId: string;
416
+ productionId: string;
417
+ id: string;
418
+ bindingId: string;
419
+ source: string;
420
+ eventId: string;
421
+ consumerRef: string;
422
+ disposition: "REJECTED" | "UNKNOWN" | "HOLD" | "RECEIVED" | "APPLIED";
423
+ revision: number;
424
+ generation: number;
425
+ attempts: number;
426
+ recoveryCount: number;
427
+ workState: "READY" | "QUARANTINED" | "SETTLED";
428
+ reason: string | null;
429
+ receivedAt: string;
430
+ resourceRef: string;
431
+ resourceVersion: string;
432
+ }[];
433
+ next: string | null;
434
+ } | {
435
+ tenantId: string;
436
+ productionId: string;
437
+ kind: "signals";
438
+ items: {
439
+ resourceRef: string;
440
+ resourceVersion: string;
441
+ changeKind: string;
442
+ tenantId: string;
443
+ productionId: string;
444
+ inboxId: string;
445
+ consumerRef: string;
446
+ source: string;
447
+ sourceTenant: string;
448
+ effect: "REFRESH_HINT";
449
+ appliedAt: string;
450
+ contractVersion?: 2 | undefined;
451
+ resourceNamespace?: string | undefined;
452
+ sourceService?: string | undefined;
453
+ sourceScope?: Record<string, string> | undefined;
454
+ parentRef?: string | null | undefined;
455
+ }[];
456
+ next: string | null;
457
+ } | {
458
+ tenantId: string;
459
+ productionId: string;
460
+ kind: "replays";
461
+ items: {
462
+ requestId: string;
463
+ tenantId: string;
464
+ productionId: string;
465
+ effect: "TRANSPORT_ONLY";
466
+ inboxId: string;
467
+ replayId: string;
468
+ status: "PENDING" | "REQUEUED" | "DENIED";
469
+ reasonCode: string | null;
470
+ }[];
471
+ next: string | null;
472
+ } | {
473
+ tenantId: string;
474
+ productionId: string;
475
+ kind: "quarantine";
476
+ items: {
477
+ tenantId: string;
478
+ productionId: string;
479
+ id: string;
480
+ bindingId: string;
481
+ deliveryRef: string;
482
+ reasonCode: string;
483
+ recordedAt: string;
484
+ }[];
485
+ next: string | null;
486
+ }>;
487
+ readonly "federation.inbound.receipt": import("./spec.js").HttpOperationSpec<{
488
+ tenantId: string;
489
+ productionId: string;
490
+ kind: "EVENT" | "COMMAND";
491
+ source?: string | undefined;
492
+ eventId?: string | undefined;
493
+ consumerRef?: string | undefined;
494
+ requestId?: string | undefined;
495
+ }, {
496
+ tenantId: string & import("zod").$brand<"TenantId">;
497
+ productionId: string & import("zod").$brand<"ProductionId">;
498
+ kind: "EVENT" | "COMMAND";
499
+ source?: string | undefined;
500
+ eventId?: string | undefined;
501
+ consumerRef?: string | undefined;
502
+ requestId?: string | undefined;
503
+ }, {
504
+ tenantId: string & import("zod").$brand<"TenantId">;
505
+ productionId: string & import("zod").$brand<"ProductionId">;
506
+ kind: "EVENT";
507
+ source: string;
508
+ eventId: string;
509
+ consumerRef: string;
510
+ result: {
511
+ tenantId: string & import("zod").$brand<"TenantId">;
512
+ productionId: string & import("zod").$brand<"ProductionId">;
513
+ id: string;
514
+ bindingId: string;
515
+ source: string;
516
+ eventId: string;
517
+ consumerRef: string;
518
+ disposition: "REJECTED" | "UNKNOWN" | "HOLD" | "RECEIVED" | "APPLIED";
519
+ revision: number;
520
+ generation: number;
521
+ attempts: number;
522
+ recoveryCount: number;
523
+ workState: "READY" | "QUARANTINED" | "SETTLED";
524
+ reason: string | null;
525
+ receivedAt: string;
526
+ resourceRef: string;
527
+ resourceVersion: string;
528
+ } | null;
529
+ } | {
530
+ tenantId: string & import("zod").$brand<"TenantId">;
531
+ productionId: string & import("zod").$brand<"ProductionId">;
532
+ kind: "COMMAND";
533
+ requestId: string;
534
+ result: {
535
+ source: string;
536
+ contractVersion: 2;
537
+ tenantId: string & import("zod").$brand<"TenantId">;
538
+ bindingId: string;
539
+ productionId: string & import("zod").$brand<"ProductionId">;
540
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
541
+ expiresAt: string;
542
+ grantRef: string;
543
+ remoteService: string;
544
+ remoteTenant: string;
545
+ grantVersion: number;
546
+ notBefore: string;
547
+ sourceSelection: {
548
+ scope: {
549
+ namespace: string;
550
+ ref: string;
551
+ };
552
+ resourceNamespace: string;
553
+ changeKinds: string[];
554
+ resourcePrefixes: string[];
555
+ };
556
+ consumerRef: string;
557
+ revision: number;
558
+ installationSource: string;
559
+ connectionRef: string;
560
+ direction: "INBOUND";
561
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
562
+ eventType: "com.nativestudio.federation.resource.changed.v1";
563
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
564
+ } | {
565
+ source: string;
566
+ tenantId: string & import("zod").$brand<"TenantId">;
567
+ bindingId: string;
568
+ productionId: string & import("zod").$brand<"ProductionId">;
569
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
570
+ expiresAt: string;
571
+ grantRef: string;
572
+ remoteService: string;
573
+ remoteTenant: string;
574
+ grantVersion: number;
575
+ notBefore: string;
576
+ consumerRef: string;
577
+ revision: number;
578
+ installationSource: string;
579
+ connectionRef: string;
580
+ direction: "INBOUND";
581
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
582
+ contractVersion: 1;
583
+ sourceSelection?: Record<string, string | string[] | Record<string, string>> | undefined;
584
+ eventType?: string | undefined;
585
+ dataSchema?: string | undefined;
586
+ } | {
587
+ tenantId: string & import("zod").$brand<"TenantId">;
588
+ productionId: string & import("zod").$brand<"ProductionId">;
589
+ inboxId: string;
590
+ requestId: string;
591
+ replayId: string;
592
+ status: "QUEUED_FOR_VERIFICATION";
593
+ effect: "TRANSPORT_ONLY";
594
+ } | null;
595
+ }, {
596
+ tenantId: string;
597
+ productionId: string;
598
+ kind: "EVENT";
599
+ source: string;
600
+ eventId: string;
601
+ consumerRef: string;
602
+ result: {
603
+ tenantId: string;
604
+ productionId: string;
605
+ id: string;
606
+ bindingId: string;
607
+ source: string;
608
+ eventId: string;
609
+ consumerRef: string;
610
+ disposition: "REJECTED" | "UNKNOWN" | "HOLD" | "RECEIVED" | "APPLIED";
611
+ revision: number;
612
+ generation: number;
613
+ attempts: number;
614
+ recoveryCount: number;
615
+ workState: "READY" | "QUARANTINED" | "SETTLED";
616
+ reason: string | null;
617
+ receivedAt: string;
618
+ resourceRef: string;
619
+ resourceVersion: string;
620
+ } | null;
621
+ } | {
622
+ tenantId: string;
623
+ productionId: string;
624
+ kind: "COMMAND";
625
+ requestId: string;
626
+ result: {
627
+ source: string;
628
+ contractVersion: 2;
629
+ tenantId: string;
630
+ bindingId: string;
631
+ productionId: string;
632
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
633
+ expiresAt: string;
634
+ grantRef: string;
635
+ remoteService: string;
636
+ remoteTenant: string;
637
+ grantVersion: number;
638
+ notBefore: string;
639
+ sourceSelection: {
640
+ scope: {
641
+ namespace: string;
642
+ ref: string;
643
+ };
644
+ resourceNamespace: string;
645
+ changeKinds: string[];
646
+ resourcePrefixes: string[];
647
+ };
648
+ consumerRef: string;
649
+ revision: number;
650
+ installationSource: string;
651
+ connectionRef: string;
652
+ direction: "INBOUND";
653
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
654
+ eventType: "com.nativestudio.federation.resource.changed.v1";
655
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
656
+ } | {
657
+ source: string;
658
+ tenantId: string;
659
+ bindingId: string;
660
+ productionId: string;
661
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
662
+ expiresAt: string;
663
+ grantRef: string;
664
+ remoteService: string;
665
+ remoteTenant: string;
666
+ grantVersion: number;
667
+ notBefore: string;
668
+ consumerRef: string;
669
+ revision: number;
670
+ installationSource: string;
671
+ connectionRef: string;
672
+ direction: "INBOUND";
673
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
674
+ contractVersion?: 1 | undefined;
675
+ sourceSelection?: Record<string, string | string[] | Record<string, string>> | undefined;
676
+ eventType?: string | undefined;
677
+ dataSchema?: string | undefined;
678
+ } | {
679
+ tenantId: string;
680
+ productionId: string;
681
+ inboxId: string;
682
+ requestId: string;
683
+ replayId: string;
684
+ status: "QUEUED_FOR_VERIFICATION";
685
+ effect: "TRANSPORT_ONLY";
686
+ } | null;
687
+ }>;
688
+ readonly "federation.inbound.replay": import("./spec.js").HttpOperationSpec<{
689
+ tenantId: string;
690
+ productionId: string;
691
+ inboxId: string;
692
+ requestId: string;
693
+ expectedGeneration: number;
694
+ expectedReceiptRevision: number;
695
+ reason: string;
696
+ acknowledgeDuplicateRisk: true;
697
+ }, {
698
+ tenantId: string & import("zod").$brand<"TenantId">;
699
+ productionId: string & import("zod").$brand<"ProductionId">;
700
+ inboxId: string;
701
+ requestId: string;
702
+ expectedGeneration: number;
703
+ expectedReceiptRevision: number;
704
+ reason: string;
705
+ acknowledgeDuplicateRisk: true;
706
+ }, {
707
+ tenantId: string & import("zod").$brand<"TenantId">;
708
+ productionId: string & import("zod").$brand<"ProductionId">;
709
+ inboxId: string;
710
+ requestId: string;
711
+ replayId: string;
712
+ status: "QUEUED_FOR_VERIFICATION";
713
+ effect: "TRANSPORT_ONLY";
714
+ }, {
715
+ tenantId: string;
716
+ productionId: string;
717
+ inboxId: string;
718
+ requestId: string;
719
+ replayId: string;
720
+ status: "QUEUED_FOR_VERIFICATION";
721
+ effect: "TRANSPORT_ONLY";
722
+ }>;
723
+ readonly "federation.observe": import("./spec.js").HttpOperationSpec<{
724
+ tenantId: string;
725
+ productionId: string;
726
+ }, {
727
+ tenantId: string & import("zod").$brand<"TenantId">;
728
+ productionId: string & import("zod").$brand<"ProductionId">;
729
+ }, {
730
+ tenantId: string & import("zod").$brand<"TenantId">;
731
+ productionId: string & import("zod").$brand<"ProductionId">;
732
+ asOf: string;
733
+ routes: {
734
+ routeId: string;
735
+ state: "ACTIVE" | "PAUSED";
736
+ gap: boolean;
737
+ position: string;
738
+ sourceHead: string | null;
739
+ sourceLag: string | null;
740
+ pending: number;
741
+ unknown: number;
742
+ hold: number;
743
+ published: number;
744
+ demandBlocked: number;
745
+ inFlight: number;
746
+ oldestUnsettledEventAt: string | null;
747
+ lastTickAt: string | null;
748
+ faultCode: string | null;
749
+ }[];
750
+ workers: {
751
+ source: string;
752
+ workerRef: string;
753
+ instanceId: string;
754
+ status: "DISABLED" | "STARTING" | "CONNECTED" | "RECONNECTING" | "SHADOW" | "CONFIGURATION_ERROR" | "STOPPED";
755
+ observedAt: string;
756
+ configurationRevision: string | null;
757
+ fresh: boolean;
758
+ connected: boolean;
759
+ }[];
760
+ workersTruncated: boolean;
761
+ meaning: "BROKER_ACK_IS_NOT_APPLIED";
762
+ }, {
763
+ tenantId: string;
764
+ productionId: string;
765
+ asOf: string;
766
+ routes: {
767
+ routeId: string;
768
+ state: "ACTIVE" | "PAUSED";
769
+ gap: boolean;
770
+ position: string;
771
+ sourceHead: string | null;
772
+ sourceLag: string | null;
773
+ pending: number;
774
+ unknown: number;
775
+ hold: number;
776
+ published: number;
777
+ demandBlocked: number;
778
+ inFlight: number;
779
+ oldestUnsettledEventAt: string | null;
780
+ lastTickAt: string | null;
781
+ faultCode: string | null;
782
+ }[];
783
+ workers: {
784
+ source: string;
785
+ workerRef: string;
786
+ instanceId: string;
787
+ status: "DISABLED" | "STARTING" | "CONNECTED" | "RECONNECTING" | "SHADOW" | "CONFIGURATION_ERROR" | "STOPPED";
788
+ observedAt: string;
789
+ configurationRevision: string | null;
790
+ fresh: boolean;
791
+ connected: boolean;
792
+ }[];
793
+ workersTruncated: boolean;
794
+ meaning: "BROKER_ACK_IS_NOT_APPLIED";
795
+ }>;
796
+ readonly "federation.recover": import("./spec.js").HttpOperationSpec<{
797
+ tenantId: string;
798
+ productionId: string;
799
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
800
+ routeId: string;
801
+ requestId: string;
802
+ expectedRevision: number;
803
+ reason: string;
804
+ deliveryId?: string | undefined;
805
+ expectedAttempts?: number | undefined;
806
+ acknowledgeDuplicateRisk?: true | undefined;
807
+ }, {
808
+ tenantId: string & import("zod").$brand<"TenantId">;
809
+ productionId: string & import("zod").$brand<"ProductionId">;
810
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
811
+ routeId: string;
812
+ requestId: string;
813
+ expectedRevision: number;
814
+ reason: string;
815
+ deliveryId?: string | undefined;
816
+ expectedAttempts?: number | undefined;
817
+ acknowledgeDuplicateRisk?: true | undefined;
818
+ }, {
819
+ tenantId: string & import("zod").$brand<"TenantId">;
820
+ productionId: string & import("zod").$brand<"ProductionId">;
821
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
822
+ requestId: string;
823
+ recoveryId: string;
824
+ routeId: string;
825
+ revision: number;
826
+ epoch: string;
827
+ position: string;
828
+ gap: boolean;
829
+ deliveryId: string | null;
830
+ attempts: number | null;
831
+ recoveryCount: number | null;
832
+ effect: "TRANSPORT_ONLY";
833
+ }, {
834
+ tenantId: string;
835
+ productionId: string;
836
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
837
+ requestId: string;
838
+ recoveryId: string;
839
+ routeId: string;
840
+ revision: number;
841
+ epoch: string;
842
+ position: string;
843
+ gap: boolean;
844
+ deliveryId: string | null;
845
+ attempts: number | null;
846
+ recoveryCount: number | null;
847
+ effect: "TRANSPORT_ONLY";
848
+ }>;
849
+ readonly "federation.catalog": import("./spec.js").HttpOperationSpec<{
850
+ tenantId: string;
851
+ productionId: string;
852
+ }, {
853
+ tenantId: string & import("zod").$brand<"TenantId">;
854
+ productionId: string & import("zod").$brand<"ProductionId">;
855
+ }, {
856
+ tenantId: string & import("zod").$brand<"TenantId">;
857
+ productionId: string & import("zod").$brand<"ProductionId">;
858
+ configuration: "CONFIGURED" | "UNCONFIGURED";
859
+ transport: "NOT_OBSERVED";
860
+ profile: "eventsdk/1.2";
861
+ runtimeSubscription: "EXPLICIT_SELECTION";
862
+ runtimeWake: "RECEIVER_OWNED";
863
+ defaultPublication: false;
864
+ bootstrap: {
865
+ tenantId: string & import("zod").$brand<"TenantId">;
866
+ productionId: string & import("zod").$brand<"ProductionId">;
867
+ cursor: string;
868
+ feedback: {
869
+ tenantId: string & import("zod").$brand<"TenantId">;
870
+ productionId: string & import("zod").$brand<"ProductionId">;
871
+ projectId: string;
872
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
873
+ productionRevision: number;
874
+ state: {
875
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
876
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
877
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
878
+ revision: number;
879
+ blockingReason: string | null;
880
+ waitingReason: string | null;
881
+ };
882
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
883
+ work: {
884
+ total: number;
885
+ pending: number;
886
+ ready: number;
887
+ running: number;
888
+ waiting: number;
889
+ succeeded: number;
890
+ failed: number;
891
+ cancelled: number;
892
+ superseded: number;
893
+ attempts: number;
894
+ };
895
+ blockers: string[];
896
+ nextActions: {
897
+ capability: string;
898
+ targetType: string;
899
+ targetId: string;
900
+ availability: "UNAVAILABLE" | "AVAILABLE";
901
+ reason: string | null;
902
+ }[];
903
+ media: {
904
+ previewReady: boolean;
905
+ finalRenderReady: boolean;
906
+ deliveryComplete: boolean;
907
+ };
908
+ humanLinks: {
909
+ status: "AVAILABLE";
910
+ items: {
911
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
912
+ href: string;
913
+ }[];
914
+ } | {
915
+ status: "UNAVAILABLE" | "UNCONFIGURED";
916
+ items: {
917
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
918
+ href: string;
919
+ }[];
920
+ };
921
+ };
922
+ };
923
+ routes: {
924
+ tenantId: string & import("zod").$brand<"TenantId">;
925
+ productionId: string & import("zod").$brand<"ProductionId">;
926
+ state: "ACTIVE" | "PAUSED";
927
+ expiresAt: string;
928
+ grantRef: string;
929
+ routeId: string;
930
+ remoteService: string;
931
+ remoteTenant: string;
932
+ grantVersion: number;
933
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
934
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
935
+ notBefore: string;
936
+ connectionRef: string;
937
+ source: string;
938
+ serviceRef: "native-video-studio";
939
+ revision: number;
940
+ epoch: string;
941
+ position: string;
942
+ gap: boolean;
943
+ publicationMode: "FIXED" | "ON_DEMAND";
944
+ }[];
945
+ events: {
946
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
947
+ wireType: string;
948
+ dataschema: string;
949
+ defaultEnabled: false;
950
+ }[];
951
+ }, {
952
+ tenantId: string;
953
+ productionId: string;
954
+ configuration: "CONFIGURED" | "UNCONFIGURED";
955
+ transport: "NOT_OBSERVED";
956
+ profile: "eventsdk/1.2";
957
+ runtimeSubscription: "EXPLICIT_SELECTION";
958
+ runtimeWake: "RECEIVER_OWNED";
959
+ defaultPublication: false;
960
+ bootstrap: {
961
+ tenantId: string;
962
+ productionId: string;
963
+ cursor: string;
964
+ feedback: {
965
+ tenantId: string;
966
+ productionId: string;
967
+ projectId: string;
968
+ operationId: string | null;
969
+ productionRevision: number;
970
+ state: {
971
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
972
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
973
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
974
+ revision: number;
975
+ blockingReason: string | null;
976
+ waitingReason: string | null;
977
+ };
978
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
979
+ work: {
980
+ total: number;
981
+ pending: number;
982
+ ready: number;
983
+ running: number;
984
+ waiting: number;
985
+ succeeded: number;
986
+ failed: number;
987
+ cancelled: number;
988
+ superseded: number;
989
+ attempts: number;
990
+ };
991
+ blockers: string[];
992
+ nextActions: {
993
+ capability: string;
994
+ targetType: string;
995
+ targetId: string;
996
+ availability: "UNAVAILABLE" | "AVAILABLE";
997
+ reason: string | null;
998
+ }[];
999
+ media: {
1000
+ previewReady: boolean;
1001
+ finalRenderReady: boolean;
1002
+ deliveryComplete: boolean;
1003
+ };
1004
+ humanLinks: {
1005
+ status: "AVAILABLE";
1006
+ items: {
1007
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1008
+ href: string;
1009
+ }[];
1010
+ } | {
1011
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1012
+ items: {
1013
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1014
+ href: string;
1015
+ }[];
1016
+ };
1017
+ };
1018
+ };
1019
+ routes: {
1020
+ tenantId: string;
1021
+ productionId: string;
1022
+ state: "ACTIVE" | "PAUSED";
1023
+ expiresAt: string;
1024
+ grantRef: string;
1025
+ routeId: string;
1026
+ remoteService: string;
1027
+ remoteTenant: string;
1028
+ grantVersion: number;
1029
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1030
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1031
+ notBefore: string;
1032
+ connectionRef: string;
1033
+ source: string;
1034
+ serviceRef: "native-video-studio";
1035
+ revision: number;
1036
+ epoch: string;
1037
+ position: string;
1038
+ gap: boolean;
1039
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
1040
+ }[];
1041
+ events: {
1042
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
1043
+ wireType: string;
1044
+ dataschema: string;
1045
+ defaultEnabled: false;
1046
+ }[];
1047
+ }>;
1048
+ readonly "federation.route.configure": import("./spec.js").HttpOperationSpec<{
1049
+ tenantId: string;
1050
+ productionId: string;
1051
+ routeId: string;
1052
+ requestId: string;
1053
+ expectedRevision: number;
1054
+ remoteService: string;
1055
+ remoteTenant: string;
1056
+ grantRef: string;
1057
+ grantVersion: number;
1058
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1059
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1060
+ notBefore: string;
1061
+ expiresAt: string;
1062
+ state: "ACTIVE" | "PAUSED";
1063
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
1064
+ }, {
1065
+ tenantId: string & import("zod").$brand<"TenantId">;
1066
+ productionId: string & import("zod").$brand<"ProductionId">;
1067
+ routeId: string;
1068
+ requestId: string;
1069
+ expectedRevision: number;
1070
+ remoteService: string;
1071
+ remoteTenant: string;
1072
+ grantRef: string;
1073
+ grantVersion: number;
1074
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1075
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1076
+ notBefore: string;
1077
+ expiresAt: string;
1078
+ state: "ACTIVE" | "PAUSED";
1079
+ publicationMode: "FIXED" | "ON_DEMAND";
1080
+ }, {
1081
+ tenantId: string & import("zod").$brand<"TenantId">;
1082
+ productionId: string & import("zod").$brand<"ProductionId">;
1083
+ state: "ACTIVE" | "PAUSED";
1084
+ expiresAt: string;
1085
+ grantRef: string;
1086
+ routeId: string;
1087
+ remoteService: string;
1088
+ remoteTenant: string;
1089
+ grantVersion: number;
1090
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1091
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1092
+ notBefore: string;
1093
+ connectionRef: string;
1094
+ source: string;
1095
+ serviceRef: "native-video-studio";
1096
+ revision: number;
1097
+ epoch: string;
1098
+ position: string;
1099
+ gap: boolean;
1100
+ publicationMode: "FIXED" | "ON_DEMAND";
1101
+ }, {
1102
+ tenantId: string;
1103
+ productionId: string;
1104
+ state: "ACTIVE" | "PAUSED";
1105
+ expiresAt: string;
1106
+ grantRef: string;
1107
+ routeId: string;
1108
+ remoteService: string;
1109
+ remoteTenant: string;
1110
+ grantVersion: number;
1111
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1112
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1113
+ notBefore: string;
1114
+ connectionRef: string;
1115
+ source: string;
1116
+ serviceRef: "native-video-studio";
1117
+ revision: number;
1118
+ epoch: string;
1119
+ position: string;
1120
+ gap: boolean;
1121
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
1122
+ }>;
1123
+ readonly "federation.subscription.set": import("./spec.js").HttpOperationSpec<{
1124
+ tenantId: string;
1125
+ productionId: string;
1126
+ subscriptionId: string;
1127
+ routeId: string;
1128
+ requestId: string;
1129
+ expectedRevision: number;
1130
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1131
+ subscriberRef: string;
1132
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1133
+ expiresAt: string;
1134
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1135
+ }, {
1136
+ tenantId: string & import("zod").$brand<"TenantId">;
1137
+ productionId: string & import("zod").$brand<"ProductionId">;
1138
+ subscriptionId: string;
1139
+ routeId: string;
1140
+ requestId: string;
1141
+ expectedRevision: number;
1142
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1143
+ subscriberRef: string;
1144
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1145
+ expiresAt: string;
1146
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1147
+ }, {
1148
+ tenantId: string & import("zod").$brand<"TenantId">;
1149
+ productionId: string & import("zod").$brand<"ProductionId">;
1150
+ subscription: {
1151
+ tenantId: string & import("zod").$brand<"TenantId">;
1152
+ productionId: string & import("zod").$brand<"ProductionId">;
1153
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1154
+ expiresAt: string;
1155
+ subscriptionId: string;
1156
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1157
+ routeId: string;
1158
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1159
+ subscriberRef: string;
1160
+ revision: number;
1161
+ startCursor: string;
1162
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1163
+ };
1164
+ bootstrap: {
1165
+ tenantId: string & import("zod").$brand<"TenantId">;
1166
+ productionId: string & import("zod").$brand<"ProductionId">;
1167
+ cursor: string;
1168
+ feedback: {
1169
+ tenantId: string & import("zod").$brand<"TenantId">;
1170
+ productionId: string & import("zod").$brand<"ProductionId">;
1171
+ projectId: string;
1172
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
1173
+ productionRevision: number;
1174
+ state: {
1175
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1176
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1177
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1178
+ revision: number;
1179
+ blockingReason: string | null;
1180
+ waitingReason: string | null;
1181
+ };
1182
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1183
+ work: {
1184
+ total: number;
1185
+ pending: number;
1186
+ ready: number;
1187
+ running: number;
1188
+ waiting: number;
1189
+ succeeded: number;
1190
+ failed: number;
1191
+ cancelled: number;
1192
+ superseded: number;
1193
+ attempts: number;
1194
+ };
1195
+ blockers: string[];
1196
+ nextActions: {
1197
+ capability: string;
1198
+ targetType: string;
1199
+ targetId: string;
1200
+ availability: "UNAVAILABLE" | "AVAILABLE";
1201
+ reason: string | null;
1202
+ }[];
1203
+ media: {
1204
+ previewReady: boolean;
1205
+ finalRenderReady: boolean;
1206
+ deliveryComplete: boolean;
1207
+ };
1208
+ humanLinks: {
1209
+ status: "AVAILABLE";
1210
+ items: {
1211
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1212
+ href: string;
1213
+ }[];
1214
+ } | {
1215
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1216
+ items: {
1217
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1218
+ href: string;
1219
+ }[];
1220
+ };
1221
+ };
1222
+ };
1223
+ }, {
1224
+ tenantId: string;
1225
+ productionId: string;
1226
+ subscription: {
1227
+ tenantId: string;
1228
+ productionId: string;
1229
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1230
+ expiresAt: string;
1231
+ subscriptionId: string;
1232
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1233
+ routeId: string;
1234
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1235
+ subscriberRef: string;
1236
+ revision: number;
1237
+ startCursor: string;
1238
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1239
+ };
1240
+ bootstrap: {
1241
+ tenantId: string;
1242
+ productionId: string;
1243
+ cursor: string;
1244
+ feedback: {
1245
+ tenantId: string;
1246
+ productionId: string;
1247
+ projectId: string;
1248
+ operationId: string | null;
1249
+ productionRevision: number;
1250
+ state: {
1251
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1252
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1253
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1254
+ revision: number;
1255
+ blockingReason: string | null;
1256
+ waitingReason: string | null;
1257
+ };
1258
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1259
+ work: {
1260
+ total: number;
1261
+ pending: number;
1262
+ ready: number;
1263
+ running: number;
1264
+ waiting: number;
1265
+ succeeded: number;
1266
+ failed: number;
1267
+ cancelled: number;
1268
+ superseded: number;
1269
+ attempts: number;
1270
+ };
1271
+ blockers: string[];
1272
+ nextActions: {
1273
+ capability: string;
1274
+ targetType: string;
1275
+ targetId: string;
1276
+ availability: "UNAVAILABLE" | "AVAILABLE";
1277
+ reason: string | null;
1278
+ }[];
1279
+ media: {
1280
+ previewReady: boolean;
1281
+ finalRenderReady: boolean;
1282
+ deliveryComplete: boolean;
1283
+ };
1284
+ humanLinks: {
1285
+ status: "AVAILABLE";
1286
+ items: {
1287
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1288
+ href: string;
1289
+ }[];
1290
+ } | {
1291
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1292
+ items: {
1293
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1294
+ href: string;
1295
+ }[];
1296
+ };
1297
+ };
1298
+ };
1299
+ }>;
1300
+ readonly "federation.subscription.get": import("./spec.js").HttpOperationSpec<{
1301
+ tenantId: string;
1302
+ productionId: string;
1303
+ subscriptionId: string;
1304
+ }, {
1305
+ tenantId: string & import("zod").$brand<"TenantId">;
1306
+ productionId: string & import("zod").$brand<"ProductionId">;
1307
+ subscriptionId: string;
1308
+ }, {
1309
+ tenantId: string & import("zod").$brand<"TenantId">;
1310
+ productionId: string & import("zod").$brand<"ProductionId">;
1311
+ subscription: {
1312
+ tenantId: string & import("zod").$brand<"TenantId">;
1313
+ productionId: string & import("zod").$brand<"ProductionId">;
1314
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1315
+ expiresAt: string;
1316
+ subscriptionId: string;
1317
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1318
+ routeId: string;
1319
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1320
+ subscriberRef: string;
1321
+ revision: number;
1322
+ startCursor: string;
1323
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1324
+ };
1325
+ bootstrap: {
1326
+ tenantId: string & import("zod").$brand<"TenantId">;
1327
+ productionId: string & import("zod").$brand<"ProductionId">;
1328
+ cursor: string;
1329
+ feedback: {
1330
+ tenantId: string & import("zod").$brand<"TenantId">;
1331
+ productionId: string & import("zod").$brand<"ProductionId">;
1332
+ projectId: string;
1333
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
1334
+ productionRevision: number;
1335
+ state: {
1336
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1337
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1338
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1339
+ revision: number;
1340
+ blockingReason: string | null;
1341
+ waitingReason: string | null;
1342
+ };
1343
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1344
+ work: {
1345
+ total: number;
1346
+ pending: number;
1347
+ ready: number;
1348
+ running: number;
1349
+ waiting: number;
1350
+ succeeded: number;
1351
+ failed: number;
1352
+ cancelled: number;
1353
+ superseded: number;
1354
+ attempts: number;
1355
+ };
1356
+ blockers: string[];
1357
+ nextActions: {
1358
+ capability: string;
1359
+ targetType: string;
1360
+ targetId: string;
1361
+ availability: "UNAVAILABLE" | "AVAILABLE";
1362
+ reason: string | null;
1363
+ }[];
1364
+ media: {
1365
+ previewReady: boolean;
1366
+ finalRenderReady: boolean;
1367
+ deliveryComplete: boolean;
1368
+ };
1369
+ humanLinks: {
1370
+ status: "AVAILABLE";
1371
+ items: {
1372
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1373
+ href: string;
1374
+ }[];
1375
+ } | {
1376
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1377
+ items: {
1378
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1379
+ href: string;
1380
+ }[];
1381
+ };
1382
+ };
1383
+ };
1384
+ }, {
1385
+ tenantId: string;
1386
+ productionId: string;
1387
+ subscription: {
1388
+ tenantId: string;
1389
+ productionId: string;
1390
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1391
+ expiresAt: string;
1392
+ subscriptionId: string;
1393
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1394
+ routeId: string;
1395
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1396
+ subscriberRef: string;
1397
+ revision: number;
1398
+ startCursor: string;
1399
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1400
+ };
1401
+ bootstrap: {
1402
+ tenantId: string;
1403
+ productionId: string;
1404
+ cursor: string;
1405
+ feedback: {
1406
+ tenantId: string;
1407
+ productionId: string;
1408
+ projectId: string;
1409
+ operationId: string | null;
1410
+ productionRevision: number;
1411
+ state: {
1412
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1413
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1414
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1415
+ revision: number;
1416
+ blockingReason: string | null;
1417
+ waitingReason: string | null;
1418
+ };
1419
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1420
+ work: {
1421
+ total: number;
1422
+ pending: number;
1423
+ ready: number;
1424
+ running: number;
1425
+ waiting: number;
1426
+ succeeded: number;
1427
+ failed: number;
1428
+ cancelled: number;
1429
+ superseded: number;
1430
+ attempts: number;
1431
+ };
1432
+ blockers: string[];
1433
+ nextActions: {
1434
+ capability: string;
1435
+ targetType: string;
1436
+ targetId: string;
1437
+ availability: "UNAVAILABLE" | "AVAILABLE";
1438
+ reason: string | null;
1439
+ }[];
1440
+ media: {
1441
+ previewReady: boolean;
1442
+ finalRenderReady: boolean;
1443
+ deliveryComplete: boolean;
1444
+ };
1445
+ humanLinks: {
1446
+ status: "AVAILABLE";
1447
+ items: {
1448
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1449
+ href: string;
1450
+ }[];
1451
+ } | {
1452
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1453
+ items: {
1454
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1455
+ href: string;
1456
+ }[];
1457
+ };
1458
+ };
1459
+ };
1460
+ }>;
1461
+ readonly "federation.query": import("./spec.js").HttpOperationSpec<{
1462
+ tenantId: string;
1463
+ productionId: string;
1464
+ kind: "subscriptions" | "deliveries" | "routes";
1465
+ routeId?: string | undefined;
1466
+ eventId?: string | undefined;
1467
+ deliveryId?: string | undefined;
1468
+ after?: string | undefined;
1469
+ limit?: number | undefined;
1470
+ }, {
1471
+ tenantId: string & import("zod").$brand<"TenantId">;
1472
+ productionId: string & import("zod").$brand<"ProductionId">;
1473
+ kind: "subscriptions" | "deliveries" | "routes";
1474
+ limit: number;
1475
+ routeId?: string | undefined;
1476
+ eventId?: string | undefined;
1477
+ deliveryId?: string | undefined;
1478
+ after?: string | undefined;
1479
+ }, {
1480
+ tenantId: string & import("zod").$brand<"TenantId">;
1481
+ productionId: string & import("zod").$brand<"ProductionId">;
1482
+ kind: "routes";
1483
+ items: {
1484
+ tenantId: string & import("zod").$brand<"TenantId">;
1485
+ productionId: string & import("zod").$brand<"ProductionId">;
1486
+ state: "ACTIVE" | "PAUSED";
1487
+ expiresAt: string;
1488
+ grantRef: string;
1489
+ routeId: string;
1490
+ remoteService: string;
1491
+ remoteTenant: string;
1492
+ grantVersion: number;
1493
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1494
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1495
+ notBefore: string;
1496
+ connectionRef: string;
1497
+ source: string;
1498
+ serviceRef: "native-video-studio";
1499
+ revision: number;
1500
+ epoch: string;
1501
+ position: string;
1502
+ gap: boolean;
1503
+ publicationMode: "FIXED" | "ON_DEMAND";
1504
+ }[];
1505
+ next: string | null;
1506
+ } | {
1507
+ tenantId: string & import("zod").$brand<"TenantId">;
1508
+ productionId: string & import("zod").$brand<"ProductionId">;
1509
+ kind: "subscriptions";
1510
+ items: {
1511
+ tenantId: string & import("zod").$brand<"TenantId">;
1512
+ productionId: string & import("zod").$brand<"ProductionId">;
1513
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1514
+ expiresAt: string;
1515
+ subscriptionId: string;
1516
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1517
+ routeId: string;
1518
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1519
+ subscriberRef: string;
1520
+ revision: number;
1521
+ startCursor: string;
1522
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1523
+ }[];
1524
+ next: string | null;
1525
+ } | {
1526
+ tenantId: string & import("zod").$brand<"TenantId">;
1527
+ productionId: string & import("zod").$brand<"ProductionId">;
1528
+ kind: "deliveries";
1529
+ items: {
1530
+ tenantId: string & import("zod").$brand<"TenantId">;
1531
+ productionId: string & import("zod").$brand<"ProductionId">;
1532
+ routeId: string;
1533
+ eventId: string;
1534
+ deliveryId: string;
1535
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
1536
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
1537
+ attempts: number;
1538
+ acknowledgement: "BROKER_STORED" | "NOT_CONFIRMED";
1539
+ reason: string | null;
1540
+ }[];
1541
+ next: string | null;
1542
+ }, {
1543
+ tenantId: string;
1544
+ productionId: string;
1545
+ kind: "routes";
1546
+ items: {
1547
+ tenantId: string;
1548
+ productionId: string;
1549
+ state: "ACTIVE" | "PAUSED";
1550
+ expiresAt: string;
1551
+ grantRef: string;
1552
+ routeId: string;
1553
+ remoteService: string;
1554
+ remoteTenant: string;
1555
+ grantVersion: number;
1556
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1557
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1558
+ notBefore: string;
1559
+ connectionRef: string;
1560
+ source: string;
1561
+ serviceRef: "native-video-studio";
1562
+ revision: number;
1563
+ epoch: string;
1564
+ position: string;
1565
+ gap: boolean;
1566
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
1567
+ }[];
1568
+ next: string | null;
1569
+ } | {
1570
+ tenantId: string;
1571
+ productionId: string;
1572
+ kind: "subscriptions";
1573
+ items: {
1574
+ tenantId: string;
1575
+ productionId: string;
1576
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1577
+ expiresAt: string;
1578
+ subscriptionId: string;
1579
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1580
+ routeId: string;
1581
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1582
+ subscriberRef: string;
1583
+ revision: number;
1584
+ startCursor: string;
1585
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1586
+ }[];
1587
+ next: string | null;
1588
+ } | {
1589
+ tenantId: string;
1590
+ productionId: string;
1591
+ kind: "deliveries";
1592
+ items: {
1593
+ tenantId: string;
1594
+ productionId: string;
1595
+ routeId: string;
1596
+ eventId: string;
1597
+ deliveryId: string;
1598
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
1599
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
1600
+ attempts: number;
1601
+ acknowledgement: "BROKER_STORED" | "NOT_CONFIRMED";
1602
+ reason: string | null;
1603
+ }[];
1604
+ next: string | null;
1605
+ }>;
1606
+ readonly "federation.receipt": import("./spec.js").HttpOperationSpec<{
1607
+ tenantId: string;
1608
+ productionId: string;
1609
+ requestId: string;
1610
+ }, {
1611
+ tenantId: string & import("zod").$brand<"TenantId">;
1612
+ productionId: string & import("zod").$brand<"ProductionId">;
1613
+ requestId: string;
1614
+ }, {
1615
+ tenantId: string & import("zod").$brand<"TenantId">;
1616
+ productionId: string & import("zod").$brand<"ProductionId">;
1617
+ requestId: string;
1618
+ result: {
1619
+ tenantId: string & import("zod").$brand<"TenantId">;
1620
+ productionId: string & import("zod").$brand<"ProductionId">;
1621
+ subscription: {
1622
+ tenantId: string & import("zod").$brand<"TenantId">;
1623
+ productionId: string & import("zod").$brand<"ProductionId">;
1624
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1625
+ expiresAt: string;
1626
+ subscriptionId: string;
1627
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1628
+ routeId: string;
1629
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1630
+ subscriberRef: string;
1631
+ revision: number;
1632
+ startCursor: string;
1633
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1634
+ };
1635
+ bootstrap: {
1636
+ tenantId: string & import("zod").$brand<"TenantId">;
1637
+ productionId: string & import("zod").$brand<"ProductionId">;
1638
+ cursor: string;
1639
+ feedback: {
1640
+ tenantId: string & import("zod").$brand<"TenantId">;
1641
+ productionId: string & import("zod").$brand<"ProductionId">;
1642
+ projectId: string;
1643
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
1644
+ productionRevision: number;
1645
+ state: {
1646
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1647
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1648
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1649
+ revision: number;
1650
+ blockingReason: string | null;
1651
+ waitingReason: string | null;
1652
+ };
1653
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1654
+ work: {
1655
+ total: number;
1656
+ pending: number;
1657
+ ready: number;
1658
+ running: number;
1659
+ waiting: number;
1660
+ succeeded: number;
1661
+ failed: number;
1662
+ cancelled: number;
1663
+ superseded: number;
1664
+ attempts: number;
1665
+ };
1666
+ blockers: string[];
1667
+ nextActions: {
1668
+ capability: string;
1669
+ targetType: string;
1670
+ targetId: string;
1671
+ availability: "UNAVAILABLE" | "AVAILABLE";
1672
+ reason: string | null;
1673
+ }[];
1674
+ media: {
1675
+ previewReady: boolean;
1676
+ finalRenderReady: boolean;
1677
+ deliveryComplete: boolean;
1678
+ };
1679
+ humanLinks: {
1680
+ status: "AVAILABLE";
1681
+ items: {
1682
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1683
+ href: string;
1684
+ }[];
1685
+ } | {
1686
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1687
+ items: {
1688
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1689
+ href: string;
1690
+ }[];
1691
+ };
1692
+ };
1693
+ };
1694
+ } | {
1695
+ tenantId: string & import("zod").$brand<"TenantId">;
1696
+ productionId: string & import("zod").$brand<"ProductionId">;
1697
+ state: "ACTIVE" | "PAUSED";
1698
+ expiresAt: string;
1699
+ grantRef: string;
1700
+ routeId: string;
1701
+ remoteService: string;
1702
+ remoteTenant: string;
1703
+ grantVersion: number;
1704
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1705
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1706
+ notBefore: string;
1707
+ connectionRef: string;
1708
+ source: string;
1709
+ serviceRef: "native-video-studio";
1710
+ revision: number;
1711
+ epoch: string;
1712
+ position: string;
1713
+ gap: boolean;
1714
+ publicationMode: "FIXED" | "ON_DEMAND";
1715
+ } | {
1716
+ tenantId: string & import("zod").$brand<"TenantId">;
1717
+ productionId: string & import("zod").$brand<"ProductionId">;
1718
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
1719
+ requestId: string;
1720
+ recoveryId: string;
1721
+ routeId: string;
1722
+ revision: number;
1723
+ epoch: string;
1724
+ position: string;
1725
+ gap: boolean;
1726
+ deliveryId: string | null;
1727
+ attempts: number | null;
1728
+ recoveryCount: number | null;
1729
+ effect: "TRANSPORT_ONLY";
1730
+ } | null;
1731
+ }, {
1732
+ tenantId: string;
1733
+ productionId: string;
1734
+ requestId: string;
1735
+ result: {
1736
+ tenantId: string;
1737
+ productionId: string;
1738
+ subscription: {
1739
+ tenantId: string;
1740
+ productionId: string;
1741
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1742
+ expiresAt: string;
1743
+ subscriptionId: string;
1744
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1745
+ routeId: string;
1746
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1747
+ subscriberRef: string;
1748
+ revision: number;
1749
+ startCursor: string;
1750
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1751
+ };
1752
+ bootstrap: {
1753
+ tenantId: string;
1754
+ productionId: string;
1755
+ cursor: string;
1756
+ feedback: {
1757
+ tenantId: string;
1758
+ productionId: string;
1759
+ projectId: string;
1760
+ operationId: string | null;
1761
+ productionRevision: number;
1762
+ state: {
1763
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1764
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1765
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1766
+ revision: number;
1767
+ blockingReason: string | null;
1768
+ waitingReason: string | null;
1769
+ };
1770
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1771
+ work: {
1772
+ total: number;
1773
+ pending: number;
1774
+ ready: number;
1775
+ running: number;
1776
+ waiting: number;
1777
+ succeeded: number;
1778
+ failed: number;
1779
+ cancelled: number;
1780
+ superseded: number;
1781
+ attempts: number;
1782
+ };
1783
+ blockers: string[];
1784
+ nextActions: {
1785
+ capability: string;
1786
+ targetType: string;
1787
+ targetId: string;
1788
+ availability: "UNAVAILABLE" | "AVAILABLE";
1789
+ reason: string | null;
1790
+ }[];
1791
+ media: {
1792
+ previewReady: boolean;
1793
+ finalRenderReady: boolean;
1794
+ deliveryComplete: boolean;
1795
+ };
1796
+ humanLinks: {
1797
+ status: "AVAILABLE";
1798
+ items: {
1799
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1800
+ href: string;
1801
+ }[];
1802
+ } | {
1803
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1804
+ items: {
1805
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1806
+ href: string;
1807
+ }[];
1808
+ };
1809
+ };
1810
+ };
1811
+ } | {
1812
+ tenantId: string;
1813
+ productionId: string;
1814
+ kind: "RETRY_HOLD" | "REPAIR_GAP";
1815
+ requestId: string;
1816
+ recoveryId: string;
1817
+ routeId: string;
1818
+ revision: number;
1819
+ epoch: string;
1820
+ position: string;
1821
+ gap: boolean;
1822
+ deliveryId: string | null;
1823
+ attempts: number | null;
1824
+ recoveryCount: number | null;
1825
+ effect: "TRANSPORT_ONLY";
1826
+ } | {
1827
+ tenantId: string;
1828
+ productionId: string;
1829
+ state: "ACTIVE" | "PAUSED";
1830
+ expiresAt: string;
1831
+ grantRef: string;
1832
+ routeId: string;
1833
+ remoteService: string;
1834
+ remoteTenant: string;
1835
+ grantVersion: number;
1836
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1837
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1838
+ notBefore: string;
1839
+ connectionRef: string;
1840
+ source: string;
1841
+ serviceRef: "native-video-studio";
1842
+ revision: number;
1843
+ epoch: string;
1844
+ position: string;
1845
+ gap: boolean;
1846
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
1847
+ } | null;
1848
+ }>;
1849
+ readonly "federation.subscription.contract": import("./spec.js").HttpOperationSpec<{
1850
+ tenantId: string;
1851
+ productionId: string;
1852
+ subscriptionId: string;
1853
+ expectedRevision: number;
1854
+ expectedSource?: string | undefined;
1855
+ expectedCatalogDigest?: string | undefined;
1856
+ }, {
1857
+ tenantId: string & import("zod").$brand<"TenantId">;
1858
+ productionId: string & import("zod").$brand<"ProductionId">;
1859
+ subscriptionId: string;
1860
+ expectedRevision: number;
1861
+ expectedSource?: string | undefined;
1862
+ expectedCatalogDigest?: string | undefined;
1863
+ }, {
1864
+ tenantId: string & import("zod").$brand<"TenantId">;
1865
+ productionId: string & import("zod").$brand<"ProductionId">;
1866
+ subscription: {
1867
+ tenantId: string & import("zod").$brand<"TenantId">;
1868
+ productionId: string & import("zod").$brand<"ProductionId">;
1869
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1870
+ expiresAt: string;
1871
+ subscriptionId: string;
1872
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1873
+ routeId: string;
1874
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1875
+ subscriberRef: string;
1876
+ revision: number;
1877
+ startCursor: string;
1878
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1879
+ };
1880
+ bootstrap: {
1881
+ tenantId: string & import("zod").$brand<"TenantId">;
1882
+ productionId: string & import("zod").$brand<"ProductionId">;
1883
+ cursor: string;
1884
+ feedback: {
1885
+ tenantId: string & import("zod").$brand<"TenantId">;
1886
+ productionId: string & import("zod").$brand<"ProductionId">;
1887
+ projectId: string;
1888
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
1889
+ productionRevision: number;
1890
+ state: {
1891
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
1892
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
1893
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
1894
+ revision: number;
1895
+ blockingReason: string | null;
1896
+ waitingReason: string | null;
1897
+ };
1898
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
1899
+ work: {
1900
+ total: number;
1901
+ pending: number;
1902
+ ready: number;
1903
+ running: number;
1904
+ waiting: number;
1905
+ succeeded: number;
1906
+ failed: number;
1907
+ cancelled: number;
1908
+ superseded: number;
1909
+ attempts: number;
1910
+ };
1911
+ blockers: string[];
1912
+ nextActions: {
1913
+ capability: string;
1914
+ targetType: string;
1915
+ targetId: string;
1916
+ availability: "UNAVAILABLE" | "AVAILABLE";
1917
+ reason: string | null;
1918
+ }[];
1919
+ media: {
1920
+ previewReady: boolean;
1921
+ finalRenderReady: boolean;
1922
+ deliveryComplete: boolean;
1923
+ };
1924
+ humanLinks: {
1925
+ status: "AVAILABLE";
1926
+ items: {
1927
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1928
+ href: string;
1929
+ }[];
1930
+ } | {
1931
+ status: "UNAVAILABLE" | "UNCONFIGURED";
1932
+ items: {
1933
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
1934
+ href: string;
1935
+ }[];
1936
+ };
1937
+ };
1938
+ };
1939
+ contract: "nvs-agent-event-handoff/1";
1940
+ source: string;
1941
+ notificationProfile: "eventsdk/1.2";
1942
+ receiptProfile: "eventsdk/1.1";
1943
+ status: "READY" | "NOT_ACTIVE";
1944
+ defaultReceive: false;
1945
+ wake: "RECEIVER_OWNED";
1946
+ adoption: "RECEIVER_OWNER_GOAL_REQUIRED";
1947
+ cursorMeaning: "NVS_SOURCE_COMMIT_POSITION_NOT_RECEIVER_SEQUENCE";
1948
+ resultReferenceOperation: "federation.result.reference";
1949
+ resultReadOperation: "federation.result.read";
1950
+ receiptMeaning: "LOCAL_APPLIED_IS_NOT_AGENT_ADOPTION";
1951
+ events: {
1952
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
1953
+ wireType: string;
1954
+ dataSchema: string;
1955
+ }[];
1956
+ producerContract: "nvs-producer-contract/1";
1957
+ catalog: {
1958
+ schemaVersion: 1;
1959
+ serviceRef: "native-video-studio";
1960
+ events: {
1961
+ type: string;
1962
+ dataschema: string;
1963
+ description: string;
1964
+ dataSchema: Record<string, import("zod").JSONType>;
1965
+ resourceAccess: {
1966
+ providerPath: "/v1/federation/result-read";
1967
+ tools: ["federation_result_reference", "federation_result_read"];
1968
+ };
1969
+ }[];
1970
+ } | null;
1971
+ catalogDigest: string | null;
1972
+ maxCatalogBytes: 131072;
1973
+ maxEventBytes: 32768;
1974
+ maxResultValueBytes: 32768;
1975
+ qualification: "NVS_CONTRACT_ONLY";
1976
+ }, {
1977
+ tenantId: string;
1978
+ productionId: string;
1979
+ subscription: {
1980
+ tenantId: string;
1981
+ productionId: string;
1982
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
1983
+ expiresAt: string;
1984
+ subscriptionId: string;
1985
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
1986
+ routeId: string;
1987
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
1988
+ subscriberRef: string;
1989
+ revision: number;
1990
+ startCursor: string;
1991
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
1992
+ };
1993
+ bootstrap: {
1994
+ tenantId: string;
1995
+ productionId: string;
1996
+ cursor: string;
1997
+ feedback: {
1998
+ tenantId: string;
1999
+ productionId: string;
2000
+ projectId: string;
2001
+ operationId: string | null;
2002
+ productionRevision: number;
2003
+ state: {
2004
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
2005
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
2006
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
2007
+ revision: number;
2008
+ blockingReason: string | null;
2009
+ waitingReason: string | null;
2010
+ };
2011
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2012
+ work: {
2013
+ total: number;
2014
+ pending: number;
2015
+ ready: number;
2016
+ running: number;
2017
+ waiting: number;
2018
+ succeeded: number;
2019
+ failed: number;
2020
+ cancelled: number;
2021
+ superseded: number;
2022
+ attempts: number;
2023
+ };
2024
+ blockers: string[];
2025
+ nextActions: {
2026
+ capability: string;
2027
+ targetType: string;
2028
+ targetId: string;
2029
+ availability: "UNAVAILABLE" | "AVAILABLE";
2030
+ reason: string | null;
2031
+ }[];
2032
+ media: {
2033
+ previewReady: boolean;
2034
+ finalRenderReady: boolean;
2035
+ deliveryComplete: boolean;
2036
+ };
2037
+ humanLinks: {
2038
+ status: "AVAILABLE";
2039
+ items: {
2040
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2041
+ href: string;
2042
+ }[];
2043
+ } | {
2044
+ status: "UNAVAILABLE" | "UNCONFIGURED";
2045
+ items: {
2046
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2047
+ href: string;
2048
+ }[];
2049
+ };
2050
+ };
2051
+ };
2052
+ contract: "nvs-agent-event-handoff/1";
2053
+ source: string;
2054
+ notificationProfile: "eventsdk/1.2";
2055
+ receiptProfile: "eventsdk/1.1";
2056
+ status: "READY" | "NOT_ACTIVE";
2057
+ defaultReceive: false;
2058
+ wake: "RECEIVER_OWNED";
2059
+ adoption: "RECEIVER_OWNER_GOAL_REQUIRED";
2060
+ cursorMeaning: "NVS_SOURCE_COMMIT_POSITION_NOT_RECEIVER_SEQUENCE";
2061
+ resultReferenceOperation: "federation.result.reference";
2062
+ resultReadOperation: "federation.result.read";
2063
+ receiptMeaning: "LOCAL_APPLIED_IS_NOT_AGENT_ADOPTION";
2064
+ events: {
2065
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2066
+ wireType: string;
2067
+ dataSchema: string;
2068
+ }[];
2069
+ producerContract: "nvs-producer-contract/1";
2070
+ catalog: unknown;
2071
+ catalogDigest: string | null;
2072
+ maxCatalogBytes: 131072;
2073
+ maxEventBytes: 32768;
2074
+ maxResultValueBytes: 32768;
2075
+ qualification: "NVS_CONTRACT_ONLY";
2076
+ }>;
2077
+ readonly "federation.result.reference": import("./spec.js").HttpOperationSpec<{
2078
+ tenantId: string;
2079
+ productionId: string;
2080
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2081
+ resourceId: string;
2082
+ }, {
2083
+ tenantId: string & import("zod").$brand<"TenantId">;
2084
+ productionId: string & import("zod").$brand<"ProductionId">;
2085
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2086
+ resourceId: string;
2087
+ }, {
2088
+ tenantId: string & import("zod").$brand<"TenantId">;
2089
+ productionId: string & import("zod").$brand<"ProductionId">;
2090
+ source: string;
2091
+ reference: {
2092
+ sourceSystem: "native-video-studio";
2093
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2094
+ resourceId: string;
2095
+ revision: string;
2096
+ digest: string;
2097
+ evidenceRef?: string | undefined;
2098
+ };
2099
+ meaning: "IMMUTABLE_FACT";
2100
+ }, {
2101
+ tenantId: string;
2102
+ productionId: string;
2103
+ source: string;
2104
+ reference: {
2105
+ sourceSystem: "native-video-studio";
2106
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2107
+ resourceId: string;
2108
+ revision: string;
2109
+ digest: string;
2110
+ evidenceRef?: string | undefined;
2111
+ };
2112
+ meaning: "IMMUTABLE_FACT";
2113
+ }>;
2114
+ readonly "federation.result.read": import("./spec.js").HttpOperationSpec<{
2115
+ tenantId: string;
2116
+ productionId: string;
2117
+ source: string;
2118
+ reference: {
2119
+ sourceSystem: "native-video-studio";
2120
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2121
+ resourceId: string;
2122
+ revision: string;
2123
+ digest: string;
2124
+ evidenceRef?: string | undefined;
2125
+ };
2126
+ }, {
2127
+ tenantId: string & import("zod").$brand<"TenantId">;
2128
+ productionId: string & import("zod").$brand<"ProductionId">;
2129
+ source: string;
2130
+ reference: {
2131
+ sourceSystem: "native-video-studio";
2132
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2133
+ resourceId: string;
2134
+ revision: string;
2135
+ digest: string;
2136
+ evidenceRef?: string | undefined;
2137
+ };
2138
+ }, {
2139
+ tenantId: string & import("zod").$brand<"TenantId">;
2140
+ productionId: string & import("zod").$brand<"ProductionId">;
2141
+ source: string;
2142
+ reference: {
2143
+ sourceSystem: "native-video-studio";
2144
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2145
+ resourceId: string;
2146
+ revision: string;
2147
+ digest: string;
2148
+ evidenceRef?: string | undefined;
2149
+ };
2150
+ meaning: "IMMUTABLE_FACT";
2151
+ value: {
2152
+ tenantId: string & import("zod").$brand<"TenantId">;
2153
+ productionId: string & import("zod").$brand<"ProductionId">;
2154
+ schemaVersion: 1;
2155
+ source: string;
2156
+ resourceId: string;
2157
+ resourceType: "nvs.federation.refresh-hint";
2158
+ revision: "1";
2159
+ consumerRef: string;
2160
+ peerSource: string;
2161
+ peerTenant: string;
2162
+ resourceRef: string;
2163
+ resourceVersion: string;
2164
+ changeKind: string;
2165
+ appliedAt: string;
2166
+ contractVersion?: 2 | undefined;
2167
+ resourceNamespace?: string | undefined;
2168
+ sourceService?: string | undefined;
2169
+ sourceScope?: Record<string, string> | undefined;
2170
+ parentRef?: string | null | undefined;
2171
+ } | {
2172
+ tenantId: string & import("zod").$brand<"TenantId">;
2173
+ productionId: string & import("zod").$brand<"ProductionId">;
2174
+ schemaVersion: 1;
2175
+ source: string;
2176
+ resourceId: string;
2177
+ revision: string;
2178
+ resourceType: "nvs.lifecycle-event";
2179
+ event: {
2180
+ schemaVersion: 1;
2181
+ eventId: string;
2182
+ tenantId: string & import("zod").$brand<"TenantId">;
2183
+ productionId: string & import("zod").$brand<"ProductionId">;
2184
+ projectId: string;
2185
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2186
+ target: {
2187
+ type: string;
2188
+ id: string;
2189
+ };
2190
+ occurredAt: string;
2191
+ basis: {
2192
+ productionRevision: number;
2193
+ };
2194
+ payload: {
2195
+ sourceEventType: string;
2196
+ artifactId?: string | undefined;
2197
+ candidateId?: string | undefined;
2198
+ reviewId?: string | undefined;
2199
+ findingId?: string | undefined;
2200
+ shotId?: string | undefined;
2201
+ manifestId?: string | undefined;
2202
+ validationId?: string | undefined;
2203
+ action?: string | undefined;
2204
+ result?: string | undefined;
2205
+ executionClass?: "LIVE" | "TEST_ONLY" | undefined;
2206
+ };
2207
+ };
2208
+ };
2209
+ }, {
2210
+ tenantId: string;
2211
+ productionId: string;
2212
+ source: string;
2213
+ reference: {
2214
+ sourceSystem: "native-video-studio";
2215
+ resourceType: "nvs.lifecycle-event" | "nvs.federation.refresh-hint";
2216
+ resourceId: string;
2217
+ revision: string;
2218
+ digest: string;
2219
+ evidenceRef?: string | undefined;
2220
+ };
2221
+ meaning: "IMMUTABLE_FACT";
2222
+ value: {
2223
+ tenantId: string;
2224
+ productionId: string;
2225
+ schemaVersion: 1;
2226
+ source: string;
2227
+ resourceId: string;
2228
+ resourceType: "nvs.federation.refresh-hint";
2229
+ revision: "1";
2230
+ consumerRef: string;
2231
+ peerSource: string;
2232
+ peerTenant: string;
2233
+ resourceRef: string;
2234
+ resourceVersion: string;
2235
+ changeKind: string;
2236
+ appliedAt: string;
2237
+ contractVersion?: 2 | undefined;
2238
+ resourceNamespace?: string | undefined;
2239
+ sourceService?: string | undefined;
2240
+ sourceScope?: Record<string, string> | undefined;
2241
+ parentRef?: string | null | undefined;
2242
+ } | {
2243
+ tenantId: string;
2244
+ productionId: string;
2245
+ schemaVersion: 1;
2246
+ source: string;
2247
+ resourceId: string;
2248
+ revision: string;
2249
+ resourceType: "nvs.lifecycle-event";
2250
+ event: {
2251
+ schemaVersion: 1;
2252
+ eventId: string;
2253
+ tenantId: string;
2254
+ productionId: string;
2255
+ projectId: string;
2256
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2257
+ target: {
2258
+ type: string;
2259
+ id: string;
2260
+ };
2261
+ occurredAt: string;
2262
+ basis: {
2263
+ productionRevision: number;
2264
+ };
2265
+ payload: {
2266
+ sourceEventType: string;
2267
+ artifactId?: string | undefined;
2268
+ candidateId?: string | undefined;
2269
+ reviewId?: string | undefined;
2270
+ findingId?: string | undefined;
2271
+ shotId?: string | undefined;
2272
+ manifestId?: string | undefined;
2273
+ validationId?: string | undefined;
2274
+ action?: string | undefined;
2275
+ result?: string | undefined;
2276
+ executionClass?: "LIVE" | "TEST_ONLY" | undefined;
2277
+ };
2278
+ };
2279
+ };
2280
+ }>;
2281
+ readonly "federation.receipt-route.configure": import("./spec.js").HttpOperationSpec<{
2282
+ tenantId: string;
2283
+ productionId: string;
2284
+ routeId: string;
2285
+ bindingId: string;
2286
+ requestId: string;
2287
+ expectedRevision: number;
2288
+ grantRef: string;
2289
+ grantVersion: number;
2290
+ notBefore: string;
2291
+ expiresAt: string;
2292
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2293
+ receiptProfile: "eventsdk/1.1";
2294
+ }, {
2295
+ tenantId: string & import("zod").$brand<"TenantId">;
2296
+ productionId: string & import("zod").$brand<"ProductionId">;
2297
+ routeId: string;
2298
+ bindingId: string;
2299
+ requestId: string;
2300
+ expectedRevision: number;
2301
+ grantRef: string;
2302
+ grantVersion: number;
2303
+ notBefore: string;
2304
+ expiresAt: string;
2305
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2306
+ receiptProfile: "eventsdk/1.1";
2307
+ }, {
2308
+ tenantId: string & import("zod").$brand<"TenantId">;
2309
+ bindingId: string;
2310
+ productionId: string & import("zod").$brand<"ProductionId">;
2311
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2312
+ expiresAt: string;
2313
+ grantRef: string;
2314
+ routeId: string;
2315
+ grantVersion: number;
2316
+ notBefore: string;
2317
+ receiptProfile: "eventsdk/1.1";
2318
+ revision: number;
2319
+ source: string;
2320
+ connectionRef: string;
2321
+ remoteService: string;
2322
+ remoteTenant: string;
2323
+ peerSource: string;
2324
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2325
+ }, {
2326
+ tenantId: string;
2327
+ bindingId: string;
2328
+ productionId: string;
2329
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2330
+ expiresAt: string;
2331
+ grantRef: string;
2332
+ routeId: string;
2333
+ grantVersion: number;
2334
+ notBefore: string;
2335
+ receiptProfile: "eventsdk/1.1";
2336
+ revision: number;
2337
+ source: string;
2338
+ connectionRef: string;
2339
+ remoteService: string;
2340
+ remoteTenant: string;
2341
+ peerSource: string;
2342
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2343
+ }>;
2344
+ readonly "federation.receipt.query": import("./spec.js").HttpOperationSpec<{
2345
+ tenantId: string;
2346
+ productionId: string;
2347
+ kind: "deliveries" | "routes";
2348
+ routeId?: string | undefined;
2349
+ inboxId?: string | undefined;
2350
+ originDeliveryId?: string | undefined;
2351
+ after?: string | undefined;
2352
+ limit?: number | undefined;
2353
+ }, {
2354
+ tenantId: string & import("zod").$brand<"TenantId">;
2355
+ productionId: string & import("zod").$brand<"ProductionId">;
2356
+ kind: "deliveries" | "routes";
2357
+ limit: number;
2358
+ routeId?: string | undefined;
2359
+ inboxId?: string | undefined;
2360
+ originDeliveryId?: string | undefined;
2361
+ after?: string | undefined;
2362
+ }, {
2363
+ tenantId: string & import("zod").$brand<"TenantId">;
2364
+ productionId: string & import("zod").$brand<"ProductionId">;
2365
+ kind: "routes";
2366
+ items: {
2367
+ tenantId: string & import("zod").$brand<"TenantId">;
2368
+ bindingId: string;
2369
+ productionId: string & import("zod").$brand<"ProductionId">;
2370
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2371
+ expiresAt: string;
2372
+ grantRef: string;
2373
+ routeId: string;
2374
+ grantVersion: number;
2375
+ notBefore: string;
2376
+ receiptProfile: "eventsdk/1.1";
2377
+ revision: number;
2378
+ source: string;
2379
+ connectionRef: string;
2380
+ remoteService: string;
2381
+ remoteTenant: string;
2382
+ peerSource: string;
2383
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2384
+ }[];
2385
+ next: string | null;
2386
+ } | {
2387
+ tenantId: string & import("zod").$brand<"TenantId">;
2388
+ productionId: string & import("zod").$brand<"ProductionId">;
2389
+ kind: "deliveries";
2390
+ items: {
2391
+ tenantId: string & import("zod").$brand<"TenantId">;
2392
+ productionId: string & import("zod").$brand<"ProductionId">;
2393
+ id: string;
2394
+ routeId: string;
2395
+ inboxId: string;
2396
+ eventId: string;
2397
+ receiptRef: string;
2398
+ receiptRevision: number;
2399
+ grantRef: string;
2400
+ grantVersion: number;
2401
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
2402
+ attempts: number;
2403
+ generation: number;
2404
+ recoveryCount: number;
2405
+ reason: string | null;
2406
+ ack: {
2407
+ stream: string;
2408
+ sequence: number;
2409
+ duplicate: boolean;
2410
+ } | null;
2411
+ originDelivery?: {
2412
+ schemaVersion: 1;
2413
+ sourceService: string;
2414
+ bindingId: string;
2415
+ source: string;
2416
+ sourceTenant: string;
2417
+ eventId: string;
2418
+ deliveryId: string;
2419
+ digest: string;
2420
+ logicalDigest: string;
2421
+ connectionRef: string;
2422
+ grantRef: string;
2423
+ grantVersion: number;
2424
+ consumerRef: string;
2425
+ targetScope: string;
2426
+ deliveryRef: string;
2427
+ } | undefined;
2428
+ }[];
2429
+ next: string | null;
2430
+ }, {
2431
+ tenantId: string;
2432
+ productionId: string;
2433
+ kind: "routes";
2434
+ items: {
2435
+ tenantId: string;
2436
+ bindingId: string;
2437
+ productionId: string;
2438
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2439
+ expiresAt: string;
2440
+ grantRef: string;
2441
+ routeId: string;
2442
+ grantVersion: number;
2443
+ notBefore: string;
2444
+ receiptProfile: "eventsdk/1.1";
2445
+ revision: number;
2446
+ source: string;
2447
+ connectionRef: string;
2448
+ remoteService: string;
2449
+ remoteTenant: string;
2450
+ peerSource: string;
2451
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2452
+ }[];
2453
+ next: string | null;
2454
+ } | {
2455
+ tenantId: string;
2456
+ productionId: string;
2457
+ kind: "deliveries";
2458
+ items: {
2459
+ tenantId: string;
2460
+ productionId: string;
2461
+ id: string;
2462
+ routeId: string;
2463
+ inboxId: string;
2464
+ eventId: string;
2465
+ receiptRef: string;
2466
+ receiptRevision: number;
2467
+ grantRef: string;
2468
+ grantVersion: number;
2469
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
2470
+ attempts: number;
2471
+ generation: number;
2472
+ recoveryCount: number;
2473
+ reason: string | null;
2474
+ ack: {
2475
+ stream: string;
2476
+ sequence: number;
2477
+ duplicate: boolean;
2478
+ } | null;
2479
+ originDelivery?: {
2480
+ schemaVersion: 1;
2481
+ sourceService: string;
2482
+ bindingId: string;
2483
+ source: string;
2484
+ sourceTenant: string;
2485
+ eventId: string;
2486
+ deliveryId: string;
2487
+ digest: string;
2488
+ logicalDigest: string;
2489
+ connectionRef: string;
2490
+ grantRef: string;
2491
+ grantVersion: number;
2492
+ consumerRef: string;
2493
+ targetScope: string;
2494
+ deliveryRef: string;
2495
+ } | undefined;
2496
+ }[];
2497
+ next: string | null;
2498
+ }>;
2499
+ readonly "federation.receipt.command": import("./spec.js").HttpOperationSpec<{
2500
+ tenantId: string;
2501
+ productionId: string;
2502
+ requestId: string;
2503
+ }, {
2504
+ tenantId: string & import("zod").$brand<"TenantId">;
2505
+ productionId: string & import("zod").$brand<"ProductionId">;
2506
+ requestId: string;
2507
+ }, {
2508
+ tenantId: string & import("zod").$brand<"TenantId">;
2509
+ productionId: string & import("zod").$brand<"ProductionId">;
2510
+ requestId: string;
2511
+ result: {
2512
+ tenantId: string & import("zod").$brand<"TenantId">;
2513
+ bindingId: string;
2514
+ productionId: string & import("zod").$brand<"ProductionId">;
2515
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2516
+ expiresAt: string;
2517
+ grantRef: string;
2518
+ routeId: string;
2519
+ grantVersion: number;
2520
+ notBefore: string;
2521
+ receiptProfile: "eventsdk/1.1";
2522
+ revision: number;
2523
+ source: string;
2524
+ connectionRef: string;
2525
+ remoteService: string;
2526
+ remoteTenant: string;
2527
+ peerSource: string;
2528
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2529
+ } | {
2530
+ tenantId: string & import("zod").$brand<"TenantId">;
2531
+ productionId: string & import("zod").$brand<"ProductionId">;
2532
+ routeId: string;
2533
+ deliveryId: string;
2534
+ requestId: string;
2535
+ recoveryId: string;
2536
+ attempts: number;
2537
+ generation: number;
2538
+ recoveryCount: number;
2539
+ effect: "TRANSPORT_ONLY";
2540
+ } | null;
2541
+ }, {
2542
+ tenantId: string;
2543
+ productionId: string;
2544
+ requestId: string;
2545
+ result: {
2546
+ tenantId: string;
2547
+ bindingId: string;
2548
+ productionId: string;
2549
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2550
+ expiresAt: string;
2551
+ grantRef: string;
2552
+ routeId: string;
2553
+ grantVersion: number;
2554
+ notBefore: string;
2555
+ receiptProfile: "eventsdk/1.1";
2556
+ revision: number;
2557
+ source: string;
2558
+ connectionRef: string;
2559
+ remoteService: string;
2560
+ remoteTenant: string;
2561
+ peerSource: string;
2562
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2563
+ } | {
2564
+ tenantId: string;
2565
+ productionId: string;
2566
+ routeId: string;
2567
+ deliveryId: string;
2568
+ requestId: string;
2569
+ recoveryId: string;
2570
+ attempts: number;
2571
+ generation: number;
2572
+ recoveryCount: number;
2573
+ effect: "TRANSPORT_ONLY";
2574
+ } | null;
2575
+ }>;
2576
+ readonly "federation.receipt.recover": import("./spec.js").HttpOperationSpec<{
2577
+ tenantId: string;
2578
+ productionId: string;
2579
+ routeId: string;
2580
+ deliveryId: string;
2581
+ requestId: string;
2582
+ expectedGeneration: number;
2583
+ expectedAttempts: number;
2584
+ reason: string;
2585
+ acknowledgeDuplicateRisk: true;
2586
+ }, {
2587
+ tenantId: string & import("zod").$brand<"TenantId">;
2588
+ productionId: string & import("zod").$brand<"ProductionId">;
2589
+ routeId: string;
2590
+ deliveryId: string;
2591
+ requestId: string;
2592
+ expectedGeneration: number;
2593
+ expectedAttempts: number;
2594
+ reason: string;
2595
+ acknowledgeDuplicateRisk: true;
2596
+ }, {
2597
+ tenantId: string & import("zod").$brand<"TenantId">;
2598
+ productionId: string & import("zod").$brand<"ProductionId">;
2599
+ routeId: string;
2600
+ deliveryId: string;
2601
+ requestId: string;
2602
+ recoveryId: string;
2603
+ attempts: number;
2604
+ generation: number;
2605
+ recoveryCount: number;
2606
+ effect: "TRANSPORT_ONLY";
2607
+ }, {
2608
+ tenantId: string;
2609
+ productionId: string;
2610
+ routeId: string;
2611
+ deliveryId: string;
2612
+ requestId: string;
2613
+ recoveryId: string;
2614
+ attempts: number;
2615
+ generation: number;
2616
+ recoveryCount: number;
2617
+ effect: "TRANSPORT_ONLY";
2618
+ }>;
2619
+ readonly "federation.subscription.handoff": import("./spec.js").HttpOperationSpec<{
2620
+ tenantId: string;
2621
+ productionId: string;
2622
+ subscriptionId: string;
2623
+ expectedRevision?: number | undefined;
2624
+ }, {
2625
+ tenantId: string & import("zod").$brand<"TenantId">;
2626
+ productionId: string & import("zod").$brand<"ProductionId">;
2627
+ subscriptionId: string;
2628
+ expectedRevision?: number | undefined;
2629
+ }, {
2630
+ tenantId: string & import("zod").$brand<"TenantId">;
2631
+ productionId: string & import("zod").$brand<"ProductionId">;
2632
+ subscription: {
2633
+ tenantId: string & import("zod").$brand<"TenantId">;
2634
+ productionId: string & import("zod").$brand<"ProductionId">;
2635
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
2636
+ expiresAt: string;
2637
+ subscriptionId: string;
2638
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
2639
+ routeId: string;
2640
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
2641
+ subscriberRef: string;
2642
+ revision: number;
2643
+ startCursor: string;
2644
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
2645
+ };
2646
+ bootstrap: {
2647
+ tenantId: string & import("zod").$brand<"TenantId">;
2648
+ productionId: string & import("zod").$brand<"ProductionId">;
2649
+ cursor: string;
2650
+ feedback: {
2651
+ tenantId: string & import("zod").$brand<"TenantId">;
2652
+ productionId: string & import("zod").$brand<"ProductionId">;
2653
+ projectId: string;
2654
+ operationId: (string & import("zod").$brand<"OperationId">) | null;
2655
+ productionRevision: number;
2656
+ state: {
2657
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
2658
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
2659
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
2660
+ revision: number;
2661
+ blockingReason: string | null;
2662
+ waitingReason: string | null;
2663
+ };
2664
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2665
+ work: {
2666
+ total: number;
2667
+ pending: number;
2668
+ ready: number;
2669
+ running: number;
2670
+ waiting: number;
2671
+ succeeded: number;
2672
+ failed: number;
2673
+ cancelled: number;
2674
+ superseded: number;
2675
+ attempts: number;
2676
+ };
2677
+ blockers: string[];
2678
+ nextActions: {
2679
+ capability: string;
2680
+ targetType: string;
2681
+ targetId: string;
2682
+ availability: "UNAVAILABLE" | "AVAILABLE";
2683
+ reason: string | null;
2684
+ }[];
2685
+ media: {
2686
+ previewReady: boolean;
2687
+ finalRenderReady: boolean;
2688
+ deliveryComplete: boolean;
2689
+ };
2690
+ humanLinks: {
2691
+ status: "AVAILABLE";
2692
+ items: {
2693
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2694
+ href: string;
2695
+ }[];
2696
+ } | {
2697
+ status: "UNAVAILABLE" | "UNCONFIGURED";
2698
+ items: {
2699
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2700
+ href: string;
2701
+ }[];
2702
+ };
2703
+ };
2704
+ };
2705
+ contract: "nvs-agent-event-handoff/1";
2706
+ source: string;
2707
+ notificationProfile: "eventsdk/1.2";
2708
+ receiptProfile: "eventsdk/1.1";
2709
+ status: "READY" | "NOT_ACTIVE";
2710
+ defaultReceive: false;
2711
+ wake: "RECEIVER_OWNED";
2712
+ adoption: "RECEIVER_OWNER_GOAL_REQUIRED";
2713
+ cursorMeaning: "NVS_SOURCE_COMMIT_POSITION_NOT_RECEIVER_SEQUENCE";
2714
+ resultReferenceOperation: "federation.result.reference";
2715
+ resultReadOperation: "federation.result.read";
2716
+ receiptMeaning: "LOCAL_APPLIED_IS_NOT_AGENT_ADOPTION";
2717
+ events: {
2718
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2719
+ wireType: string;
2720
+ dataSchema: string;
2721
+ }[];
2722
+ }, {
2723
+ tenantId: string;
2724
+ productionId: string;
2725
+ subscription: {
2726
+ tenantId: string;
2727
+ productionId: string;
2728
+ state: "ACTIVE" | "CANCELLED" | "PAUSED";
2729
+ expiresAt: string;
2730
+ subscriptionId: string;
2731
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
2732
+ routeId: string;
2733
+ subscriberKind: "SYSTEM" | "AGENT_RUNTIME" | "HOST_BOT";
2734
+ subscriberRef: string;
2735
+ revision: number;
2736
+ startCursor: string;
2737
+ effective: "BLOCKED" | "ACTIVE" | "CANCELLED" | "PAUSED" | "EXPIRED";
2738
+ };
2739
+ bootstrap: {
2740
+ tenantId: string;
2741
+ productionId: string;
2742
+ cursor: string;
2743
+ feedback: {
2744
+ tenantId: string;
2745
+ productionId: string;
2746
+ projectId: string;
2747
+ operationId: string | null;
2748
+ productionRevision: number;
2749
+ state: {
2750
+ lifecycle: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
2751
+ phase: "INTAKE" | "PLANNING" | "PREPARING_GENERATION" | "GENERATING" | "SHOT_REVIEW" | "ASSEMBLING" | "ROUGH_CUT_REVIEW" | "FINAL_READY" | "FINAL_RENDERING" | "DELIVERY_VALIDATION";
2752
+ condition: "BLOCKED" | "RUNNABLE" | "RUNNING" | "WAITING_PROVIDER" | "WAITING_HUMAN" | "RETRYING";
2753
+ revision: number;
2754
+ blockingReason: string | null;
2755
+ waitingReason: string | null;
2756
+ };
2757
+ semanticStatus: "INVALID_INPUT" | "NOT_FOUND" | "BLOCKED" | "REVISION_CONFLICT" | "CAPABILITY_UNAVAILABLE" | "INTERNAL_OPERATIONAL_FAILURE" | "CANCELLED" | "WAITING_PROVIDER" | "RETRYING" | "SUCCESS" | "ACCEPTED" | "NO_CHANGE" | "STALE_BASIS" | "WAITING_INPUT" | "PROVIDER_UNAVAILABLE" | "BUDGET_BLOCKED" | "SUPERSEDED";
2758
+ work: {
2759
+ total: number;
2760
+ pending: number;
2761
+ ready: number;
2762
+ running: number;
2763
+ waiting: number;
2764
+ succeeded: number;
2765
+ failed: number;
2766
+ cancelled: number;
2767
+ superseded: number;
2768
+ attempts: number;
2769
+ };
2770
+ blockers: string[];
2771
+ nextActions: {
2772
+ capability: string;
2773
+ targetType: string;
2774
+ targetId: string;
2775
+ availability: "UNAVAILABLE" | "AVAILABLE";
2776
+ reason: string | null;
2777
+ }[];
2778
+ media: {
2779
+ previewReady: boolean;
2780
+ finalRenderReady: boolean;
2781
+ deliveryComplete: boolean;
2782
+ };
2783
+ humanLinks: {
2784
+ status: "AVAILABLE";
2785
+ items: {
2786
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2787
+ href: string;
2788
+ }[];
2789
+ } | {
2790
+ status: "UNAVAILABLE" | "UNCONFIGURED";
2791
+ items: {
2792
+ rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
2793
+ href: string;
2794
+ }[];
2795
+ };
2796
+ };
2797
+ };
2798
+ contract: "nvs-agent-event-handoff/1";
2799
+ source: string;
2800
+ notificationProfile: "eventsdk/1.2";
2801
+ receiptProfile: "eventsdk/1.1";
2802
+ status: "READY" | "NOT_ACTIVE";
2803
+ defaultReceive: false;
2804
+ wake: "RECEIVER_OWNED";
2805
+ adoption: "RECEIVER_OWNER_GOAL_REQUIRED";
2806
+ cursorMeaning: "NVS_SOURCE_COMMIT_POSITION_NOT_RECEIVER_SEQUENCE";
2807
+ resultReferenceOperation: "federation.result.reference";
2808
+ resultReadOperation: "federation.result.read";
2809
+ receiptMeaning: "LOCAL_APPLIED_IS_NOT_AGENT_ADOPTION";
2810
+ events: {
2811
+ type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2812
+ wireType: string;
2813
+ dataSchema: string;
2814
+ }[];
2815
+ }>;
2816
+ readonly "federation.receipt-inbound.handoff": import("./spec.js").HttpOperationSpec<{
2817
+ tenantId: string;
2818
+ productionId: string;
2819
+ eventId: string;
2820
+ deliveryId: string;
2821
+ routeId: string;
2822
+ bindingId: string;
2823
+ expectedRevision: number;
2824
+ expectedSource: string;
2825
+ expectedDeliveryDigest: string;
2826
+ expectedAcceptanceDigest?: string | undefined;
2827
+ }, {
2828
+ tenantId: string & import("zod").$brand<"TenantId">;
2829
+ productionId: string & import("zod").$brand<"ProductionId">;
2830
+ eventId: string;
2831
+ deliveryId: string;
2832
+ routeId: string;
2833
+ bindingId: string;
2834
+ expectedRevision: number;
2835
+ expectedSource: string;
2836
+ expectedDeliveryDigest: string;
2837
+ expectedAcceptanceDigest?: string | undefined;
2838
+ }, {
2839
+ tenantId: string & import("zod").$brand<"TenantId">;
2840
+ productionId: string & import("zod").$brand<"ProductionId">;
2841
+ contract: "nvs-receipt-handoff/1";
2842
+ source: string;
2843
+ inspection: {
2844
+ tenantId: string & import("zod").$brand<"TenantId">;
2845
+ productionId: string & import("zod").$brand<"ProductionId">;
2846
+ contract: "nvs-federation-delivery-inspection/1";
2847
+ asOf: string;
2848
+ source: string;
2849
+ delivery: {
2850
+ tenantId: string & import("zod").$brand<"TenantId">;
2851
+ productionId: string & import("zod").$brand<"ProductionId">;
2852
+ routeId: string;
2853
+ eventId: string;
2854
+ deliveryId: string;
2855
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
2856
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
2857
+ attempts: number;
2858
+ acknowledgement: "BROKER_STORED" | "NOT_CONFIRMED";
2859
+ reason: string | null;
2860
+ source: string;
2861
+ digest: string;
2862
+ connectionRef: string;
2863
+ grantRef: string;
2864
+ grantVersion: number;
2865
+ };
2866
+ receiptBinding: {
2867
+ source: string;
2868
+ tenantId: string & import("zod").$brand<"TenantId">;
2869
+ bindingId: string;
2870
+ productionId: string & import("zod").$brand<"ProductionId">;
2871
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2872
+ expiresAt: string;
2873
+ grantRef: string;
2874
+ routeId: string;
2875
+ remoteTenant: string;
2876
+ grantVersion: number;
2877
+ notBefore: string;
2878
+ consumerRef: string;
2879
+ peerType: string;
2880
+ peerConsumerRef: string;
2881
+ peerTargetScope: string;
2882
+ installationSource: string;
2883
+ remoteService: string;
2884
+ contractVersion: 2 | 1;
2885
+ connectionRef: string;
2886
+ direction: "INBOUND";
2887
+ profile: "eventsdk/1.1";
2888
+ revision: number;
2889
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2890
+ } | null;
2891
+ receiptObservation: {
2892
+ tenantId: string & import("zod").$brand<"TenantId">;
2893
+ productionId: string & import("zod").$brand<"ProductionId">;
2894
+ id: string;
2895
+ bindingId: string;
2896
+ routeId: string;
2897
+ originalEventId: string;
2898
+ originalDeliveryId: string;
2899
+ originalDigest: string;
2900
+ peerSource: string;
2901
+ peerTenant: string;
2902
+ receiptRef: string;
2903
+ receiptRevision: number;
2904
+ peerConsumerRef: string;
2905
+ peerTargetScope: string;
2906
+ disposition: "REJECTED" | "APPLIED";
2907
+ peerRecordedAt: string;
2908
+ receivedAt: string;
2909
+ hasResultRef: boolean;
2910
+ meaning: "PEER_REPORTED_ONLY";
2911
+ } | null;
2912
+ receiptStatus: "NOT_OBSERVED" | "NOT_REQUESTED" | "PEER_REPORTED";
2913
+ meaning: "NATIVE_TRANSPORT_AND_PEER_REPORT_ONLY";
2914
+ };
2915
+ acceptance: {
2916
+ tenantId: string & import("zod").$brand<"TenantId">;
2917
+ productionId: string & import("zod").$brand<"ProductionId">;
2918
+ contract: "nvs-receipt-acceptance/1";
2919
+ source: string;
2920
+ binding: {
2921
+ source: string;
2922
+ tenantId: string & import("zod").$brand<"TenantId">;
2923
+ bindingId: string;
2924
+ productionId: string & import("zod").$brand<"ProductionId">;
2925
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2926
+ expiresAt: string;
2927
+ grantRef: string;
2928
+ routeId: string;
2929
+ remoteTenant: string;
2930
+ grantVersion: number;
2931
+ notBefore: string;
2932
+ consumerRef: string;
2933
+ peerType: string;
2934
+ peerConsumerRef: string;
2935
+ peerTargetScope: string;
2936
+ installationSource: string;
2937
+ remoteService: string;
2938
+ contractVersion: 2 | 1;
2939
+ connectionRef: string;
2940
+ direction: "INBOUND";
2941
+ profile: "eventsdk/1.1";
2942
+ revision: number;
2943
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
2944
+ };
2945
+ status: "NOT_ACTIVE" | "POLICY_ACTIVE";
2946
+ document: Record<string, import("zod").JSONType> | null;
2947
+ digest: string | null;
2948
+ maxDocumentBytes: 65536;
2949
+ qualification: "NVS_RECEIVER_POLICY_ONLY";
2950
+ };
2951
+ status: "PEER_REPORTED" | "ORIGINAL_NOT_ATTEMPTED" | "POLICY_NOT_ACTIVE" | "AWAITING_PEER_REPORT";
2952
+ association: {
2953
+ resourcenamespace: "native-video-studio";
2954
+ resourceref: string;
2955
+ correlationid: string;
2956
+ causationid: string;
2957
+ } | null;
2958
+ maxReplyBytes: 131072;
2959
+ qualification: "NVS_READ_SNAPSHOT_ONLY";
2960
+ }, unknown>;
2961
+ readonly "federation.receipt-inbound.contract": import("./spec.js").HttpOperationSpec<{
2962
+ tenantId: string;
2963
+ productionId: string;
2964
+ bindingId: string;
2965
+ expectedRevision: number;
2966
+ expectedSource?: string | undefined;
2967
+ expectedDigest?: string | undefined;
2968
+ }, {
2969
+ tenantId: string & import("zod").$brand<"TenantId">;
2970
+ productionId: string & import("zod").$brand<"ProductionId">;
2971
+ bindingId: string;
2972
+ expectedRevision: number;
2973
+ expectedSource?: string | undefined;
2974
+ expectedDigest?: string | undefined;
2975
+ }, {
2976
+ tenantId: string & import("zod").$brand<"TenantId">;
2977
+ productionId: string & import("zod").$brand<"ProductionId">;
2978
+ contract: "nvs-receipt-acceptance/1";
2979
+ source: string;
2980
+ binding: {
2981
+ source: string;
2982
+ tenantId: string & import("zod").$brand<"TenantId">;
2983
+ bindingId: string;
2984
+ productionId: string & import("zod").$brand<"ProductionId">;
2985
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
2986
+ expiresAt: string;
2987
+ grantRef: string;
2988
+ routeId: string;
2989
+ remoteTenant: string;
2990
+ grantVersion: number;
2991
+ notBefore: string;
2992
+ consumerRef: string;
2993
+ peerType: string;
2994
+ peerConsumerRef: string;
2995
+ peerTargetScope: string;
2996
+ installationSource: string;
2997
+ remoteService: string;
2998
+ contractVersion: 2 | 1;
2999
+ connectionRef: string;
3000
+ direction: "INBOUND";
3001
+ profile: "eventsdk/1.1";
3002
+ revision: number;
3003
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3004
+ };
3005
+ status: "NOT_ACTIVE" | "POLICY_ACTIVE";
3006
+ document: Record<string, import("zod").JSONType> | null;
3007
+ digest: string | null;
3008
+ maxDocumentBytes: 65536;
3009
+ qualification: "NVS_RECEIVER_POLICY_ONLY";
3010
+ }, {
3011
+ tenantId: string;
3012
+ productionId: string;
3013
+ contract: "nvs-receipt-acceptance/1";
3014
+ source: string;
3015
+ binding: {
3016
+ source: string;
3017
+ tenantId: string;
3018
+ bindingId: string;
3019
+ productionId: string;
3020
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3021
+ expiresAt: string;
3022
+ grantRef: string;
3023
+ routeId: string;
3024
+ remoteTenant: string;
3025
+ grantVersion: number;
3026
+ notBefore: string;
3027
+ consumerRef: string;
3028
+ peerType: string;
3029
+ peerConsumerRef: string;
3030
+ peerTargetScope: string;
3031
+ installationSource: string;
3032
+ remoteService: string;
3033
+ connectionRef: string;
3034
+ direction: "INBOUND";
3035
+ profile: "eventsdk/1.1";
3036
+ revision: number;
3037
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3038
+ contractVersion?: 2 | 1 | undefined;
3039
+ };
3040
+ status: "NOT_ACTIVE" | "POLICY_ACTIVE";
3041
+ document: unknown;
3042
+ digest: string | null;
3043
+ maxDocumentBytes: 65536;
3044
+ qualification: "NVS_RECEIVER_POLICY_ONLY";
3045
+ }>;
3046
+ readonly "federation.receipt-inbound.configure": import("./spec.js").HttpOperationSpec<{
3047
+ tenantId: string;
3048
+ productionId: string;
3049
+ contractVersion: 2;
3050
+ remoteService: string;
3051
+ bindingId: string;
3052
+ routeId: string;
3053
+ requestId: string;
3054
+ expectedRevision: number;
3055
+ source: string;
3056
+ remoteTenant: string;
3057
+ peerType: string;
3058
+ consumerRef: string;
3059
+ peerConsumerRef: string;
3060
+ peerTargetScope: string;
3061
+ grantRef: string;
3062
+ grantVersion: number;
3063
+ notBefore: string;
3064
+ expiresAt: string;
3065
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3066
+ }, {
3067
+ tenantId: string & import("zod").$brand<"TenantId">;
3068
+ productionId: string & import("zod").$brand<"ProductionId">;
3069
+ contractVersion: 2;
3070
+ remoteService: string;
3071
+ bindingId: string;
3072
+ routeId: string;
3073
+ requestId: string;
3074
+ expectedRevision: number;
3075
+ source: string;
3076
+ remoteTenant: string;
3077
+ peerType: string;
3078
+ consumerRef: string;
3079
+ peerConsumerRef: string;
3080
+ peerTargetScope: string;
3081
+ grantRef: string;
3082
+ grantVersion: number;
3083
+ notBefore: string;
3084
+ expiresAt: string;
3085
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3086
+ }, {
3087
+ source: string;
3088
+ tenantId: string & import("zod").$brand<"TenantId">;
3089
+ bindingId: string;
3090
+ productionId: string & import("zod").$brand<"ProductionId">;
3091
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3092
+ expiresAt: string;
3093
+ grantRef: string;
3094
+ routeId: string;
3095
+ remoteTenant: string;
3096
+ grantVersion: number;
3097
+ notBefore: string;
3098
+ consumerRef: string;
3099
+ peerType: string;
3100
+ peerConsumerRef: string;
3101
+ peerTargetScope: string;
3102
+ installationSource: string;
3103
+ remoteService: string;
3104
+ connectionRef: string;
3105
+ direction: "INBOUND";
3106
+ profile: "eventsdk/1.1";
3107
+ revision: number;
3108
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3109
+ contractVersion: 2;
3110
+ }, {
3111
+ source: string;
3112
+ tenantId: string;
3113
+ bindingId: string;
3114
+ productionId: string;
3115
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3116
+ expiresAt: string;
3117
+ grantRef: string;
3118
+ routeId: string;
3119
+ remoteTenant: string;
3120
+ grantVersion: number;
3121
+ notBefore: string;
3122
+ consumerRef: string;
3123
+ peerType: string;
3124
+ peerConsumerRef: string;
3125
+ peerTargetScope: string;
3126
+ installationSource: string;
3127
+ remoteService: string;
3128
+ connectionRef: string;
3129
+ direction: "INBOUND";
3130
+ profile: "eventsdk/1.1";
3131
+ revision: number;
3132
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3133
+ contractVersion: 2;
3134
+ }>;
3135
+ readonly "federation.receipt-inbound.catalog": import("./spec.js").HttpOperationSpec<{
3136
+ tenantId: string;
3137
+ productionId: string;
3138
+ }, {
3139
+ tenantId: string & import("zod").$brand<"TenantId">;
3140
+ productionId: string & import("zod").$brand<"ProductionId">;
3141
+ }, {
3142
+ tenantId: string & import("zod").$brand<"TenantId">;
3143
+ productionId: string & import("zod").$brand<"ProductionId">;
3144
+ defaultReceive: false;
3145
+ meaning: "PEER_REPORTED_ONLY";
3146
+ bindings: {
3147
+ source: string;
3148
+ tenantId: string & import("zod").$brand<"TenantId">;
3149
+ bindingId: string;
3150
+ productionId: string & import("zod").$brand<"ProductionId">;
3151
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3152
+ expiresAt: string;
3153
+ grantRef: string;
3154
+ routeId: string;
3155
+ remoteTenant: string;
3156
+ grantVersion: number;
3157
+ notBefore: string;
3158
+ consumerRef: string;
3159
+ peerType: string;
3160
+ peerConsumerRef: string;
3161
+ peerTargetScope: string;
3162
+ installationSource: string;
3163
+ remoteService: string;
3164
+ connectionRef: string;
3165
+ direction: "INBOUND";
3166
+ profile: "eventsdk/1.1";
3167
+ revision: number;
3168
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3169
+ contractVersion: 2;
3170
+ }[];
3171
+ }, {
3172
+ tenantId: string;
3173
+ productionId: string;
3174
+ defaultReceive: false;
3175
+ meaning: "PEER_REPORTED_ONLY";
3176
+ bindings: {
3177
+ source: string;
3178
+ tenantId: string;
3179
+ bindingId: string;
3180
+ productionId: string;
3181
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3182
+ expiresAt: string;
3183
+ grantRef: string;
3184
+ routeId: string;
3185
+ remoteTenant: string;
3186
+ grantVersion: number;
3187
+ notBefore: string;
3188
+ consumerRef: string;
3189
+ peerType: string;
3190
+ peerConsumerRef: string;
3191
+ peerTargetScope: string;
3192
+ installationSource: string;
3193
+ remoteService: string;
3194
+ connectionRef: string;
3195
+ direction: "INBOUND";
3196
+ profile: "eventsdk/1.1";
3197
+ revision: number;
3198
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3199
+ contractVersion: 2;
3200
+ }[];
3201
+ }>;
3202
+ readonly "federation.receipt-inbound.query": import("./spec.js").HttpOperationSpec<{
3203
+ tenantId: string;
3204
+ productionId: string;
3205
+ kind: "bindings" | "quarantine" | "observations";
3206
+ bindingId?: string | undefined;
3207
+ originalDeliveryId?: string | undefined;
3208
+ limit?: number | undefined;
3209
+ after?: string | undefined;
3210
+ }, {
3211
+ tenantId: string & import("zod").$brand<"TenantId">;
3212
+ productionId: string & import("zod").$brand<"ProductionId">;
3213
+ kind: "bindings" | "quarantine" | "observations";
3214
+ limit: number;
3215
+ bindingId?: string | undefined;
3216
+ originalDeliveryId?: string | undefined;
3217
+ after?: string | undefined;
3218
+ }, {
3219
+ tenantId: string & import("zod").$brand<"TenantId">;
3220
+ productionId: string & import("zod").$brand<"ProductionId">;
3221
+ next: string | null;
3222
+ kind: "bindings";
3223
+ items: {
3224
+ source: string;
3225
+ tenantId: string & import("zod").$brand<"TenantId">;
3226
+ bindingId: string;
3227
+ productionId: string & import("zod").$brand<"ProductionId">;
3228
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3229
+ expiresAt: string;
3230
+ grantRef: string;
3231
+ routeId: string;
3232
+ remoteTenant: string;
3233
+ grantVersion: number;
3234
+ notBefore: string;
3235
+ consumerRef: string;
3236
+ peerType: string;
3237
+ peerConsumerRef: string;
3238
+ peerTargetScope: string;
3239
+ installationSource: string;
3240
+ remoteService: string;
3241
+ contractVersion: 2 | 1;
3242
+ connectionRef: string;
3243
+ direction: "INBOUND";
3244
+ profile: "eventsdk/1.1";
3245
+ revision: number;
3246
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3247
+ }[];
3248
+ } | {
3249
+ tenantId: string & import("zod").$brand<"TenantId">;
3250
+ productionId: string & import("zod").$brand<"ProductionId">;
3251
+ next: string | null;
3252
+ kind: "observations";
3253
+ items: {
3254
+ tenantId: string & import("zod").$brand<"TenantId">;
3255
+ productionId: string & import("zod").$brand<"ProductionId">;
3256
+ id: string;
3257
+ bindingId: string;
3258
+ routeId: string;
3259
+ originalEventId: string;
3260
+ originalDeliveryId: string;
3261
+ originalDigest: string;
3262
+ peerSource: string;
3263
+ peerTenant: string;
3264
+ receiptRef: string;
3265
+ receiptRevision: number;
3266
+ peerConsumerRef: string;
3267
+ peerTargetScope: string;
3268
+ disposition: "REJECTED" | "APPLIED";
3269
+ peerRecordedAt: string;
3270
+ receivedAt: string;
3271
+ hasResultRef: boolean;
3272
+ meaning: "PEER_REPORTED_ONLY";
3273
+ }[];
3274
+ } | {
3275
+ tenantId: string & import("zod").$brand<"TenantId">;
3276
+ productionId: string & import("zod").$brand<"ProductionId">;
3277
+ next: string | null;
3278
+ kind: "quarantine";
3279
+ items: {
3280
+ tenantId: string & import("zod").$brand<"TenantId">;
3281
+ productionId: string & import("zod").$brand<"ProductionId">;
3282
+ id: string;
3283
+ bindingId: string;
3284
+ deliveryRef: string;
3285
+ reasonCode: string;
3286
+ recordedAt: string;
3287
+ }[];
3288
+ }, {
3289
+ tenantId: string;
3290
+ productionId: string;
3291
+ next: string | null;
3292
+ kind: "bindings";
3293
+ items: {
3294
+ source: string;
3295
+ tenantId: string;
3296
+ bindingId: string;
3297
+ productionId: string;
3298
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3299
+ expiresAt: string;
3300
+ grantRef: string;
3301
+ routeId: string;
3302
+ remoteTenant: string;
3303
+ grantVersion: number;
3304
+ notBefore: string;
3305
+ consumerRef: string;
3306
+ peerType: string;
3307
+ peerConsumerRef: string;
3308
+ peerTargetScope: string;
3309
+ installationSource: string;
3310
+ remoteService: string;
3311
+ connectionRef: string;
3312
+ direction: "INBOUND";
3313
+ profile: "eventsdk/1.1";
3314
+ revision: number;
3315
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3316
+ contractVersion?: 2 | 1 | undefined;
3317
+ }[];
3318
+ } | {
3319
+ tenantId: string;
3320
+ productionId: string;
3321
+ next: string | null;
3322
+ kind: "observations";
3323
+ items: {
3324
+ tenantId: string;
3325
+ productionId: string;
3326
+ id: string;
3327
+ bindingId: string;
3328
+ routeId: string;
3329
+ originalEventId: string;
3330
+ originalDeliveryId: string;
3331
+ originalDigest: string;
3332
+ peerSource: string;
3333
+ peerTenant: string;
3334
+ receiptRef: string;
3335
+ receiptRevision: number;
3336
+ peerConsumerRef: string;
3337
+ peerTargetScope: string;
3338
+ disposition: "REJECTED" | "APPLIED";
3339
+ peerRecordedAt: string;
3340
+ receivedAt: string;
3341
+ hasResultRef: boolean;
3342
+ meaning: "PEER_REPORTED_ONLY";
3343
+ }[];
3344
+ } | {
3345
+ tenantId: string;
3346
+ productionId: string;
3347
+ next: string | null;
3348
+ kind: "quarantine";
3349
+ items: {
3350
+ tenantId: string;
3351
+ productionId: string;
3352
+ id: string;
3353
+ bindingId: string;
3354
+ deliveryRef: string;
3355
+ reasonCode: string;
3356
+ recordedAt: string;
3357
+ }[];
3358
+ }>;
3359
+ readonly "federation.receipt-inbound.command": import("./spec.js").HttpOperationSpec<{
3360
+ tenantId: string;
3361
+ productionId: string;
3362
+ requestId: string;
3363
+ }, {
3364
+ tenantId: string & import("zod").$brand<"TenantId">;
3365
+ productionId: string & import("zod").$brand<"ProductionId">;
3366
+ requestId: string;
3367
+ }, {
3368
+ tenantId: string & import("zod").$brand<"TenantId">;
3369
+ productionId: string & import("zod").$brand<"ProductionId">;
3370
+ requestId: string;
3371
+ result: {
3372
+ source: string;
3373
+ tenantId: string & import("zod").$brand<"TenantId">;
3374
+ bindingId: string;
3375
+ productionId: string & import("zod").$brand<"ProductionId">;
3376
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3377
+ expiresAt: string;
3378
+ grantRef: string;
3379
+ routeId: string;
3380
+ remoteTenant: string;
3381
+ grantVersion: number;
3382
+ notBefore: string;
3383
+ consumerRef: string;
3384
+ peerType: string;
3385
+ peerConsumerRef: string;
3386
+ peerTargetScope: string;
3387
+ installationSource: string;
3388
+ remoteService: string;
3389
+ contractVersion: 2 | 1;
3390
+ connectionRef: string;
3391
+ direction: "INBOUND";
3392
+ profile: "eventsdk/1.1";
3393
+ revision: number;
3394
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3395
+ } | null;
3396
+ }, {
3397
+ tenantId: string;
3398
+ productionId: string;
3399
+ requestId: string;
3400
+ result: {
3401
+ source: string;
3402
+ tenantId: string;
3403
+ bindingId: string;
3404
+ productionId: string;
3405
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3406
+ expiresAt: string;
3407
+ grantRef: string;
3408
+ routeId: string;
3409
+ remoteTenant: string;
3410
+ grantVersion: number;
3411
+ notBefore: string;
3412
+ consumerRef: string;
3413
+ peerType: string;
3414
+ peerConsumerRef: string;
3415
+ peerTargetScope: string;
3416
+ installationSource: string;
3417
+ remoteService: string;
3418
+ connectionRef: string;
3419
+ direction: "INBOUND";
3420
+ profile: "eventsdk/1.1";
3421
+ revision: number;
3422
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3423
+ contractVersion?: 2 | 1 | undefined;
3424
+ } | null;
3425
+ }>;
3426
+ readonly "federation.delivery.inspect": import("./spec.js").HttpOperationSpec<{
3427
+ tenantId: string;
3428
+ productionId: string;
3429
+ routeId: string;
3430
+ eventId: string;
3431
+ deliveryId: string;
3432
+ expectedSource?: string | undefined;
3433
+ expectedDigest?: string | undefined;
3434
+ receiptBindingId?: string | undefined;
3435
+ }, {
3436
+ tenantId: string & import("zod").$brand<"TenantId">;
3437
+ productionId: string & import("zod").$brand<"ProductionId">;
3438
+ routeId: string;
3439
+ eventId: string;
3440
+ deliveryId: string;
3441
+ expectedSource?: string | undefined;
3442
+ expectedDigest?: string | undefined;
3443
+ receiptBindingId?: string | undefined;
3444
+ }, {
3445
+ tenantId: string & import("zod").$brand<"TenantId">;
3446
+ productionId: string & import("zod").$brand<"ProductionId">;
3447
+ contract: "nvs-federation-delivery-inspection/1";
3448
+ asOf: string;
3449
+ source: string;
3450
+ delivery: {
3451
+ tenantId: string & import("zod").$brand<"TenantId">;
3452
+ productionId: string & import("zod").$brand<"ProductionId">;
3453
+ routeId: string;
3454
+ eventId: string;
3455
+ deliveryId: string;
3456
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3457
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
3458
+ attempts: number;
3459
+ acknowledgement: "BROKER_STORED" | "NOT_CONFIRMED";
3460
+ reason: string | null;
3461
+ source: string;
3462
+ digest: string;
3463
+ connectionRef: string;
3464
+ grantRef: string;
3465
+ grantVersion: number;
3466
+ };
3467
+ receiptBinding: {
3468
+ source: string;
3469
+ tenantId: string & import("zod").$brand<"TenantId">;
3470
+ bindingId: string;
3471
+ productionId: string & import("zod").$brand<"ProductionId">;
3472
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3473
+ expiresAt: string;
3474
+ grantRef: string;
3475
+ routeId: string;
3476
+ remoteTenant: string;
3477
+ grantVersion: number;
3478
+ notBefore: string;
3479
+ consumerRef: string;
3480
+ peerType: string;
3481
+ peerConsumerRef: string;
3482
+ peerTargetScope: string;
3483
+ installationSource: string;
3484
+ remoteService: string;
3485
+ contractVersion: 2 | 1;
3486
+ connectionRef: string;
3487
+ direction: "INBOUND";
3488
+ profile: "eventsdk/1.1";
3489
+ revision: number;
3490
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3491
+ } | null;
3492
+ receiptObservation: {
3493
+ tenantId: string & import("zod").$brand<"TenantId">;
3494
+ productionId: string & import("zod").$brand<"ProductionId">;
3495
+ id: string;
3496
+ bindingId: string;
3497
+ routeId: string;
3498
+ originalEventId: string;
3499
+ originalDeliveryId: string;
3500
+ originalDigest: string;
3501
+ peerSource: string;
3502
+ peerTenant: string;
3503
+ receiptRef: string;
3504
+ receiptRevision: number;
3505
+ peerConsumerRef: string;
3506
+ peerTargetScope: string;
3507
+ disposition: "REJECTED" | "APPLIED";
3508
+ peerRecordedAt: string;
3509
+ receivedAt: string;
3510
+ hasResultRef: boolean;
3511
+ meaning: "PEER_REPORTED_ONLY";
3512
+ } | null;
3513
+ receiptStatus: "NOT_OBSERVED" | "NOT_REQUESTED" | "PEER_REPORTED";
3514
+ meaning: "NATIVE_TRANSPORT_AND_PEER_REPORT_ONLY";
3515
+ }, {
3516
+ tenantId: string;
3517
+ productionId: string;
3518
+ contract: "nvs-federation-delivery-inspection/1";
3519
+ asOf: string;
3520
+ source: string;
3521
+ delivery: {
3522
+ tenantId: string;
3523
+ productionId: string;
3524
+ routeId: string;
3525
+ eventId: string;
3526
+ deliveryId: string;
3527
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3528
+ state: "UNKNOWN" | "PENDING" | "PUBLISHED" | "HOLD";
3529
+ attempts: number;
3530
+ acknowledgement: "BROKER_STORED" | "NOT_CONFIRMED";
3531
+ reason: string | null;
3532
+ source: string;
3533
+ digest: string;
3534
+ connectionRef: string;
3535
+ grantRef: string;
3536
+ grantVersion: number;
3537
+ };
3538
+ receiptBinding: {
3539
+ source: string;
3540
+ tenantId: string;
3541
+ bindingId: string;
3542
+ productionId: string;
3543
+ state: "REVOKED" | "ACTIVE" | "PAUSED";
3544
+ expiresAt: string;
3545
+ grantRef: string;
3546
+ routeId: string;
3547
+ remoteTenant: string;
3548
+ grantVersion: number;
3549
+ notBefore: string;
3550
+ consumerRef: string;
3551
+ peerType: string;
3552
+ peerConsumerRef: string;
3553
+ peerTargetScope: string;
3554
+ installationSource: string;
3555
+ remoteService: string;
3556
+ connectionRef: string;
3557
+ direction: "INBOUND";
3558
+ profile: "eventsdk/1.1";
3559
+ revision: number;
3560
+ effective: "REVOKED" | "BLOCKED" | "ACTIVE" | "PAUSED" | "EXPIRED";
3561
+ contractVersion?: 2 | 1 | undefined;
3562
+ } | null;
3563
+ receiptObservation: {
3564
+ tenantId: string;
3565
+ productionId: string;
3566
+ id: string;
3567
+ bindingId: string;
3568
+ routeId: string;
3569
+ originalEventId: string;
3570
+ originalDeliveryId: string;
3571
+ originalDigest: string;
3572
+ peerSource: string;
3573
+ peerTenant: string;
3574
+ receiptRef: string;
3575
+ receiptRevision: number;
3576
+ peerConsumerRef: string;
3577
+ peerTargetScope: string;
3578
+ disposition: "REJECTED" | "APPLIED";
3579
+ peerRecordedAt: string;
3580
+ receivedAt: string;
3581
+ hasResultRef: boolean;
3582
+ meaning: "PEER_REPORTED_ONLY";
3583
+ } | null;
3584
+ receiptStatus: "NOT_OBSERVED" | "NOT_REQUESTED" | "PEER_REPORTED";
3585
+ meaning: "NATIVE_TRANSPORT_AND_PEER_REPORT_ONLY";
3586
+ }>;
3587
+ readonly "federation.link.receiver": import("./spec.js").HttpOperationSpec<{
3588
+ tenantId: string;
3589
+ productionId: string;
3590
+ }, {
3591
+ tenantId: string & import("zod").$brand<"TenantId">;
3592
+ productionId: string & import("zod").$brand<"ProductionId">;
3593
+ }, {
3594
+ tenantId: string & import("zod").$brand<"TenantId">;
3595
+ productionId: string & import("zod").$brand<"ProductionId">;
3596
+ role: "RECEIVER";
3597
+ protocol: "event-link/1";
3598
+ sdkVersion: "0.4.0";
3599
+ configuration: "CONFIGURED" | "UNCONFIGURED";
3600
+ authorizationEndpoint: string | null;
3601
+ tokenEndpoint: string | null;
3602
+ eventType: "com.nativestudio.federation.resource.changed.v1";
3603
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
3604
+ effect: "REFRESH_HINT";
3605
+ defaultReceive: false;
3606
+ }, {
3607
+ tenantId: string;
3608
+ productionId: string;
3609
+ role: "RECEIVER";
3610
+ protocol: "event-link/1";
3611
+ sdkVersion: "0.4.0";
3612
+ configuration: "CONFIGURED" | "UNCONFIGURED";
3613
+ authorizationEndpoint: string | null;
3614
+ tokenEndpoint: string | null;
3615
+ eventType: "com.nativestudio.federation.resource.changed.v1";
3616
+ dataSchema: "urn:nativestudio:federation:resource-change:v1";
3617
+ effect: "REFRESH_HINT";
3618
+ defaultReceive: false;
3619
+ }>;
3620
+ readonly "federation.link.targets": import("./spec.js").HttpOperationSpec<{
3621
+ tenantId: string;
3622
+ productionId: string;
3623
+ }, {
3624
+ tenantId: string & import("zod").$brand<"TenantId">;
3625
+ productionId: string & import("zod").$brand<"ProductionId">;
3626
+ }, {
3627
+ tenantId: string & import("zod").$brand<"TenantId">;
3628
+ productionId: string & import("zod").$brand<"ProductionId">;
3629
+ sdkVersion: "0.4.0";
3630
+ protocol: "event-link/1";
3631
+ role: "SENDER";
3632
+ configuration: "CONFIGURED" | "UNCONFIGURED";
3633
+ targets: {
3634
+ id: string;
3635
+ displayName: string;
3636
+ serviceRef: string;
3637
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3638
+ }[];
3639
+ }, {
3640
+ tenantId: string;
3641
+ productionId: string;
3642
+ sdkVersion: "0.4.0";
3643
+ protocol: "event-link/1";
3644
+ role: "SENDER";
3645
+ configuration: "CONFIGURED" | "UNCONFIGURED";
3646
+ targets: {
3647
+ id: string;
3648
+ displayName: string;
3649
+ serviceRef: string;
3650
+ eventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3651
+ }[];
3652
+ }>;
3653
+ readonly "federation.link.start": import("./spec.js").HttpOperationSpec<{
3654
+ tenantId: string;
3655
+ productionId: string;
3656
+ requestId: string;
3657
+ targetId: string;
3658
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3659
+ }, {
3660
+ tenantId: string & import("zod").$brand<"TenantId">;
3661
+ productionId: string & import("zod").$brand<"ProductionId">;
3662
+ requestId: string;
3663
+ targetId: string;
3664
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3665
+ }, {
3666
+ tenantId: string & import("zod").$brand<"TenantId">;
3667
+ productionId: string & import("zod").$brand<"ProductionId">;
3668
+ requestId: string;
3669
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3670
+ targetId: string;
3671
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3672
+ expiresAt: string;
3673
+ peer: {
3674
+ serviceRef: string;
3675
+ tenantRef: string;
3676
+ displayName: string;
3677
+ } | null;
3678
+ route: {
3679
+ tenantId: string & import("zod").$brand<"TenantId">;
3680
+ productionId: string & import("zod").$brand<"ProductionId">;
3681
+ state: "ACTIVE" | "PAUSED";
3682
+ expiresAt: string;
3683
+ grantRef: string;
3684
+ routeId: string;
3685
+ remoteService: string;
3686
+ remoteTenant: string;
3687
+ grantVersion: number;
3688
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3689
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3690
+ notBefore: string;
3691
+ connectionRef: string;
3692
+ source: string;
3693
+ serviceRef: "native-video-studio";
3694
+ revision: number;
3695
+ epoch: string;
3696
+ position: string;
3697
+ gap: boolean;
3698
+ publicationMode: "FIXED" | "ON_DEMAND";
3699
+ } | null;
3700
+ authorizationUrl: string | null;
3701
+ continuationUrl: string;
3702
+ }, {
3703
+ tenantId: string;
3704
+ productionId: string;
3705
+ requestId: string;
3706
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3707
+ targetId: string;
3708
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3709
+ expiresAt: string;
3710
+ peer: {
3711
+ serviceRef: string;
3712
+ tenantRef: string;
3713
+ displayName: string;
3714
+ } | null;
3715
+ route: {
3716
+ tenantId: string;
3717
+ productionId: string;
3718
+ state: "ACTIVE" | "PAUSED";
3719
+ expiresAt: string;
3720
+ grantRef: string;
3721
+ routeId: string;
3722
+ remoteService: string;
3723
+ remoteTenant: string;
3724
+ grantVersion: number;
3725
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3726
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3727
+ notBefore: string;
3728
+ connectionRef: string;
3729
+ source: string;
3730
+ serviceRef: "native-video-studio";
3731
+ revision: number;
3732
+ epoch: string;
3733
+ position: string;
3734
+ gap: boolean;
3735
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
3736
+ } | null;
3737
+ authorizationUrl: string | null;
3738
+ continuationUrl: string;
3739
+ }>;
3740
+ readonly "federation.link.get": import("./spec.js").HttpOperationSpec<{
3741
+ tenantId: string;
3742
+ productionId: string;
3743
+ requestId: string;
3744
+ }, {
3745
+ tenantId: string & import("zod").$brand<"TenantId">;
3746
+ productionId: string & import("zod").$brand<"ProductionId">;
3747
+ requestId: string;
3748
+ }, {
3749
+ tenantId: string & import("zod").$brand<"TenantId">;
3750
+ productionId: string & import("zod").$brand<"ProductionId">;
3751
+ requestId: string;
3752
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3753
+ targetId: string;
3754
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3755
+ expiresAt: string;
3756
+ peer: {
3757
+ serviceRef: string;
3758
+ tenantRef: string;
3759
+ displayName: string;
3760
+ } | null;
3761
+ route: {
3762
+ tenantId: string & import("zod").$brand<"TenantId">;
3763
+ productionId: string & import("zod").$brand<"ProductionId">;
3764
+ state: "ACTIVE" | "PAUSED";
3765
+ expiresAt: string;
3766
+ grantRef: string;
3767
+ routeId: string;
3768
+ remoteService: string;
3769
+ remoteTenant: string;
3770
+ grantVersion: number;
3771
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3772
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3773
+ notBefore: string;
3774
+ connectionRef: string;
3775
+ source: string;
3776
+ serviceRef: "native-video-studio";
3777
+ revision: number;
3778
+ epoch: string;
3779
+ position: string;
3780
+ gap: boolean;
3781
+ publicationMode: "FIXED" | "ON_DEMAND";
3782
+ } | null;
3783
+ }, {
3784
+ tenantId: string;
3785
+ productionId: string;
3786
+ requestId: string;
3787
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3788
+ targetId: string;
3789
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3790
+ expiresAt: string;
3791
+ peer: {
3792
+ serviceRef: string;
3793
+ tenantRef: string;
3794
+ displayName: string;
3795
+ } | null;
3796
+ route: {
3797
+ tenantId: string;
3798
+ productionId: string;
3799
+ state: "ACTIVE" | "PAUSED";
3800
+ expiresAt: string;
3801
+ grantRef: string;
3802
+ routeId: string;
3803
+ remoteService: string;
3804
+ remoteTenant: string;
3805
+ grantVersion: number;
3806
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3807
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3808
+ notBefore: string;
3809
+ connectionRef: string;
3810
+ source: string;
3811
+ serviceRef: "native-video-studio";
3812
+ revision: number;
3813
+ epoch: string;
3814
+ position: string;
3815
+ gap: boolean;
3816
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
3817
+ } | null;
3818
+ }>;
3819
+ readonly "federation.link.confirm": import("./spec.js").HttpOperationSpec<{
3820
+ tenantId: string;
3821
+ productionId: string;
3822
+ requestId: string;
3823
+ expiresAt: string;
3824
+ publicationMode: "FIXED" | "ON_DEMAND";
3825
+ }, {
3826
+ tenantId: string & import("zod").$brand<"TenantId">;
3827
+ productionId: string & import("zod").$brand<"ProductionId">;
3828
+ requestId: string;
3829
+ expiresAt: string;
3830
+ publicationMode: "FIXED" | "ON_DEMAND";
3831
+ }, {
3832
+ tenantId: string & import("zod").$brand<"TenantId">;
3833
+ productionId: string & import("zod").$brand<"ProductionId">;
3834
+ requestId: string;
3835
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3836
+ targetId: string;
3837
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3838
+ expiresAt: string;
3839
+ peer: {
3840
+ serviceRef: string;
3841
+ tenantRef: string;
3842
+ displayName: string;
3843
+ } | null;
3844
+ route: {
3845
+ tenantId: string & import("zod").$brand<"TenantId">;
3846
+ productionId: string & import("zod").$brand<"ProductionId">;
3847
+ state: "ACTIVE" | "PAUSED";
3848
+ expiresAt: string;
3849
+ grantRef: string;
3850
+ routeId: string;
3851
+ remoteService: string;
3852
+ remoteTenant: string;
3853
+ grantVersion: number;
3854
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3855
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3856
+ notBefore: string;
3857
+ connectionRef: string;
3858
+ source: string;
3859
+ serviceRef: "native-video-studio";
3860
+ revision: number;
3861
+ epoch: string;
3862
+ position: string;
3863
+ gap: boolean;
3864
+ publicationMode: "FIXED" | "ON_DEMAND";
3865
+ } | null;
3866
+ }, {
3867
+ tenantId: string;
3868
+ productionId: string;
3869
+ requestId: string;
3870
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3871
+ targetId: string;
3872
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3873
+ expiresAt: string;
3874
+ peer: {
3875
+ serviceRef: string;
3876
+ tenantRef: string;
3877
+ displayName: string;
3878
+ } | null;
3879
+ route: {
3880
+ tenantId: string;
3881
+ productionId: string;
3882
+ state: "ACTIVE" | "PAUSED";
3883
+ expiresAt: string;
3884
+ grantRef: string;
3885
+ routeId: string;
3886
+ remoteService: string;
3887
+ remoteTenant: string;
3888
+ grantVersion: number;
3889
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3890
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3891
+ notBefore: string;
3892
+ connectionRef: string;
3893
+ source: string;
3894
+ serviceRef: "native-video-studio";
3895
+ revision: number;
3896
+ epoch: string;
3897
+ position: string;
3898
+ gap: boolean;
3899
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
3900
+ } | null;
3901
+ }>;
3902
+ readonly "federation.link.cancel": import("./spec.js").HttpOperationSpec<{
3903
+ tenantId: string;
3904
+ productionId: string;
3905
+ requestId: string;
3906
+ }, {
3907
+ tenantId: string & import("zod").$brand<"TenantId">;
3908
+ productionId: string & import("zod").$brand<"ProductionId">;
3909
+ requestId: string;
3910
+ }, {
3911
+ tenantId: string & import("zod").$brand<"TenantId">;
3912
+ productionId: string & import("zod").$brand<"ProductionId">;
3913
+ requestId: string;
3914
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3915
+ targetId: string;
3916
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3917
+ expiresAt: string;
3918
+ peer: {
3919
+ serviceRef: string;
3920
+ tenantRef: string;
3921
+ displayName: string;
3922
+ } | null;
3923
+ route: {
3924
+ tenantId: string & import("zod").$brand<"TenantId">;
3925
+ productionId: string & import("zod").$brand<"ProductionId">;
3926
+ state: "ACTIVE" | "PAUSED";
3927
+ expiresAt: string;
3928
+ grantRef: string;
3929
+ routeId: string;
3930
+ remoteService: string;
3931
+ remoteTenant: string;
3932
+ grantVersion: number;
3933
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3934
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3935
+ notBefore: string;
3936
+ connectionRef: string;
3937
+ source: string;
3938
+ serviceRef: "native-video-studio";
3939
+ revision: number;
3940
+ epoch: string;
3941
+ position: string;
3942
+ gap: boolean;
3943
+ publicationMode: "FIXED" | "ON_DEMAND";
3944
+ } | null;
3945
+ }, {
3946
+ tenantId: string;
3947
+ productionId: string;
3948
+ requestId: string;
3949
+ phase: "CANCELLED" | "UNKNOWN" | "EXPIRED" | "DENIED" | "LOGIN" | "EXCHANGING" | "CONFIRM" | "CONFIRMED";
3950
+ targetId: string;
3951
+ eventType: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
3952
+ expiresAt: string;
3953
+ peer: {
3954
+ serviceRef: string;
3955
+ tenantRef: string;
3956
+ displayName: string;
3957
+ } | null;
3958
+ route: {
3959
+ tenantId: string;
3960
+ productionId: string;
3961
+ state: "ACTIVE" | "PAUSED";
3962
+ expiresAt: string;
3963
+ grantRef: string;
3964
+ routeId: string;
3965
+ remoteService: string;
3966
+ remoteTenant: string;
3967
+ grantVersion: number;
3968
+ grantEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3969
+ selectedEventTypes: ("production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed")[];
3970
+ notBefore: string;
3971
+ connectionRef: string;
3972
+ source: string;
3973
+ serviceRef: "native-video-studio";
3974
+ revision: number;
3975
+ epoch: string;
3976
+ position: string;
3977
+ gap: boolean;
3978
+ publicationMode?: "FIXED" | "ON_DEMAND" | undefined;
3979
+ } | null;
3980
+ }>;
3981
+ };