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

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