@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 @@
1
+ import{z}from"zod";var HumanEmailSchema=z.string().trim().max(254).toLowerCase().pipe(z.email()).refine(v=>/^[\x21-\x7e]+$/.test(v),"Use an ASCII email address");var HumanPasswordSchema=z.string().max(512).superRefine((v,c)=>{const points=[...v];const control=points.some(c2=>c2.codePointAt(0)<32||c2.codePointAt(0)===127);if(points.length<15||points.length>128||control)c.addIssue({code:"custom",message:"Password must contain 15\u2013128 characters"})});var HumanCodePurposeSchema=z.enum(["REGISTER","RESET_PASSWORD","LINK_EMAIL"]);var HumanCodeRequestSchema=z.strictObject({email:HumanEmailSchema,purpose:HumanCodePurposeSchema});var HumanCodeRequestedSchema=z.strictObject({accepted:z.literal(true),challengeId:z.uuid(),retryAfterSeconds:z.literal(60),expiresInSeconds:z.literal(600)});var proof={challengeId:z.uuid(),email:HumanEmailSchema,code:z.string().regex(/^\d{6}$/),password:HumanPasswordSchema};var HumanRegisterSchema=z.strictObject({...proof,displayName:z.string().trim().min(1).max(80)});var HumanResetSchema=z.strictObject(proof);var HumanLoginSchema=z.strictObject({email:HumanEmailSchema,password:z.string().max(512),rememberMe:z.boolean().optional()});var HumanTenantSchema=z.strictObject({id:z.uuid(),displayName:z.string().max(200)});var HumanAccountSchema=z.strictObject({principalId:z.uuid(),displayName:z.string().max(200),email:HumanEmailSchema.nullable(),tenants:z.array(HumanTenantSchema).max(100)});var HumanDesktopSessionSchema=z.strictObject({tenantId:z.uuid(),scopeKey:z.string().regex(/^[a-f0-9]{64}$/),expiresAt:z.int().positive(),sessionExpiresAt:z.int().positive().optional(),rememberMe:z.boolean(),account:HumanAccountSchema.omit({tenants:true})}).refine(({rememberMe,expiresAt,sessionExpiresAt})=>sessionExpiresAt===void 0||rememberMe&&sessionExpiresAt>=expiresAt,"Desktop persistence requires consent and the session deadline");var ShortHumanSessionSchema=z.strictObject({accessToken:z.string().regex(/^nvsh_[A-Za-z0-9_-]{43}$/),expiresAt:z.iso.datetime(),account:HumanAccountSchema});var HumanRefreshTokenSchema=z.string().regex(/^nvshr_[A-Za-z0-9_-]{43}$/);var HumanRefreshSchema=z.strictObject({refreshToken:HumanRefreshTokenSchema});var HumanSessionSchema=ShortHumanSessionSchema.extend({refreshToken:HumanRefreshTokenSchema.optional(),sessionId:z.uuid().optional(),sessionExpiresAt:z.iso.datetime().optional()}).refine(session=>{const{refreshToken,sessionId,sessionExpiresAt,expiresAt}=session;if(!refreshToken)return sessionId===void 0&&sessionExpiresAt===void 0;return!!sessionId&&!!sessionExpiresAt&&Date.parse(expiresAt)<=Date.parse(sessionExpiresAt)},"Persistent session requires its exact identity and absolute expiry");var HumanIdentityAvailabilitySchema=z.strictObject({passwordLogin:z.boolean(),emailVerification:z.boolean()});var HumanIdentityFailureSchema=z.strictObject({code:z.enum(["INVALID_INPUT","INVALID_CREDENTIALS","INVALID_CODE","RATE_LIMITED","MAIL_UNAVAILABLE","UNAVAILABLE","UNAUTHENTICATED","CONFLICT"])});var CliAccountRedirectSchema=z.string().max(256).refine(value=>{try{const url=new URL(value);return url.protocol==="http:"&&url.hostname==="127.0.0.1"&&Number(url.port)>0&&!url.username&&!url.password&&!url.search&&!url.hash&&/^\/account-callback\/[a-f0-9-]{36}$/.test(url.pathname)&&url.href===value}catch{return false}},"Owned loopback account callback required");var proofKey=z.string().regex(/^[A-Za-z0-9_-]{43}$/);var CliAccountRequestIdSchema=z.uuid();var CliAccountStartSchema=z.strictObject({redirectUri:CliAccountRedirectSchema,state:proofKey,codeChallenge:proofKey});var CliAccountStartedSchema=z.strictObject({requestId:z.uuid(),expiresAt:z.iso.datetime()});var CliAccountPreviewSchema=CliAccountStartedSchema.extend({redirectUri:CliAccountRedirectSchema});var CliAccountDecisionSchema=z.strictObject({requestId:z.uuid(),approved:z.boolean(),expectedPrincipalId:z.uuid()});var CliAccountExchangeSchema=z.strictObject({requestId:z.uuid(),code:proofKey,codeVerifier:proofKey,redirectUri:CliAccountRedirectSchema});var CliAccountSessionSchema=ShortHumanSessionSchema.extend({credentialPurpose:z.literal("CLI_ACCOUNT")});var CliAccountIdentitySchema=z.strictObject({credentialPurpose:z.literal("CLI_ACCOUNT"),account:HumanAccountSchema});export{HumanTenantSchema,CliAccountStartSchema,CliAccountStartedSchema,CliAccountExchangeSchema,CliAccountSessionSchema,CliAccountIdentitySchema};
@@ -0,0 +1 @@
1
+ import{ExternalLifecycleEventSchema,FederationScopeSchema,orderedFederationWindow}from"./chunk-NNDKZ5H5.js";import{z as z3}from"zod";import{z as z2}from"zod";import{z}from"zod";var clean=v=>Array.from(v).every(c=>{const n=c.codePointAt(0);return n>=32&&n!==127&&(n<55296||n>57343)});var FederationPeerRefSchema=z.string().min(1).max(256).refine(clean);var FederationOpaqueUriSchema=z.string().min(1).max(512).regex(/^[A-Za-z][A-Za-z0-9+.-]*:\S+$/u).refine(v=>clean(v)&&URL.canParse(v));var RESOURCE_CHANGE_TYPE="com.nativestudio.federation.resource.changed.v1";var RESOURCE_CHANGE_SCHEMA="urn:nativestudio:federation:resource-change:v1";var FederationSourceScopeSchema=z.strictObject({namespace:FederationPeerRefSchema,ref:FederationPeerRefSchema});var ResourceChangeSchema=z.strictObject({schemaVersion:z.literal(1),sourceScope:FederationSourceScopeSchema,resource:z.strictObject({namespace:FederationPeerRefSchema,ref:FederationOpaqueUriSchema,version:FederationPeerRefSchema}),changeKind:FederationPeerRefSchema,parentRef:FederationOpaqueUriSchema.nullable().optional()});var distinct=a=>new Set(a).size===a.length;var FederationSourceSelectionSchema=z.strictObject({scope:FederationSourceScopeSchema,resourceNamespace:FederationPeerRefSchema,changeKinds:z.array(FederationPeerRefSchema).min(1).max(32).refine(distinct),resourcePrefixes:z.array(FederationOpaqueUriSchema).min(1).max(16).refine(distinct)});var HistoricalSourceScopeSchema=z.record(FederationPeerRefSchema,FederationPeerRefSchema).refine(v=>Object.keys(v).length<=32);var HistoricalSourceSelectionSchema=z.record(FederationPeerRefSchema,z.union([FederationPeerRefSchema,z.array(z.string().min(1).max(512).refine(clean)).max(32),HistoricalSourceScopeSchema])).refine(v=>Object.keys(v).length<=32&&JSON.stringify(v).length<=32768);var uuid=z2.uuid().toLowerCase();var clean2=v=>Array.from(v).every(c=>{const code=c.codePointAt(0);return code>=32&&code!==127&&(code<55296||code>57343)});var ref=z2.string().min(1).max(256).refine(clean2);var uri=z2.string().min(1).max(2048).refine(v=>URL.canParse(v)&&!/\s/.test(v)&&clean2(v));var bindingInput=FederationScopeSchema.extend({connectionRef:ref.optional(),bindingId:uuid,requestId:ref,expectedRevision:z2.int().nonnegative(),source:uri,contractVersion:z2.literal(2),remoteService:ref,sourceSelection:FederationSourceSelectionSchema,remoteTenant:ref,consumerRef:ref,grantRef:ref,grantVersion:z2.int().min(1).max(2147483647),notBefore:z2.iso.datetime(),expiresAt:z2.iso.datetime(),state:z2.enum(["ACTIVE","PAUSED","REVOKED"])}).strict();var InboundBindingConfigureSchema=bindingInput.refine(orderedFederationWindow);var bindingView=bindingInput.omit({requestId:true,expectedRevision:true}).extend({revision:z2.int().positive(),installationSource:uri,connectionRef:ref,direction:z2.literal("INBOUND"),effective:z2.enum(["ACTIVE","PAUSED","REVOKED","EXPIRED","BLOCKED"])}).strict();var CurrentInboundBindingSchema=bindingView.extend({eventType:z2.literal(RESOURCE_CHANGE_TYPE),dataSchema:z2.literal(RESOURCE_CHANGE_SCHEMA)}).refine(orderedFederationWindow);var InboundBindingSchema=z2.union([CurrentInboundBindingSchema,bindingView.extend({contractVersion:z2.literal(1).default(1),sourceSelection:HistoricalSourceSelectionSchema.optional(),eventType:ref.optional(),dataSchema:uri.optional()})]);var InboundNoticeSchema=z2.strictObject({resourceRef:z2.string().min(1).max(512),resourceVersion:ref,changeKind:ref,contractVersion:z2.literal(2).optional(),resourceNamespace:ref.optional(),sourceService:ref.optional(),sourceScope:HistoricalSourceScopeSchema.optional(),parentRef:uri.nullable().optional()}).refine(v=>v.contractVersion!==2||v.sourceService!==void 0&&ResourceChangeSchema.safeParse({schemaVersion:1,sourceScope:v.sourceScope,resource:{namespace:v.resourceNamespace,ref:v.resourceRef,version:v.resourceVersion},changeKind:v.changeKind,...v.parentRef!==void 0?{parentRef:v.parentRef}:{}}).success);var InboundInboxViewSchema=FederationScopeSchema.extend({id:uuid,bindingId:uuid,source:uri,eventId:ref,consumerRef:ref,disposition:z2.enum(["RECEIVED","HOLD","APPLIED","REJECTED","UNKNOWN"]),revision:z2.int().positive(),generation:z2.int().nonnegative(),attempts:z2.int().nonnegative(),recoveryCount:z2.int().min(0).max(3),workState:z2.enum(["READY","QUARANTINED","SETTLED"]),reason:ref.nullable(),receivedAt:z2.iso.datetime(),resourceRef:z2.string().min(1).max(512).refine(clean2),resourceVersion:ref}).strict();var signalBase=FederationScopeSchema.extend({inboxId:uuid,consumerRef:ref,source:uri,sourceTenant:ref,effect:z2.literal("REFRESH_HINT"),appliedAt:z2.iso.datetime()}).strict();var InboundSignalSchema=InboundNoticeSchema.safeExtend(signalBase.shape);var InboundReplaySchema=FederationScopeSchema.extend({inboxId:uuid,requestId:ref,expectedGeneration:z2.int().nonnegative(),expectedReceiptRevision:z2.int().positive(),reason:ref,acknowledgeDuplicateRisk:z2.literal(true)}).strict();var InboundReplayResultSchema=FederationScopeSchema.extend({inboxId:uuid,requestId:ref,replayId:uuid,status:z2.literal("QUEUED_FOR_VERIFICATION"),effect:z2.literal("TRANSPORT_ONLY")}).strict();var InboundReplayViewSchema=InboundReplayResultSchema.omit({status:true}).extend({status:z2.enum(["PENDING","REQUEUED","DENIED"]),reasonCode:ref.nullable()}).strict();var InboundQuarantineViewSchema=FederationScopeSchema.extend({id:uuid,bindingId:uuid,deliveryRef:z2.string().min(1).max(2048).refine(clean2),reasonCode:ref,recordedAt:z2.iso.datetime()}).strict();var InboundQuerySchema=FederationScopeSchema.extend({kind:z2.enum(["bindings","inbox","signals","replays","quarantine"]),after:uuid.optional(),limit:z2.int().min(1).max(50).default(20)}).strict();var InboundSignalsQuerySchema=InboundQuerySchema.omit({kind:true});var page=(kind,schema)=>FederationScopeSchema.extend({kind:z2.literal(kind),items:z2.array(schema).max(50),next:uuid.nullable()}).strict();var signalsPage=page("signals",InboundSignalSchema);var InboundSignalsPageSchema=signalsPage.refine(p=>p.items.every((item,index)=>item.tenantId===p.tenantId&&item.productionId===p.productionId&&(index===0||p.items[index-1].inboxId<item.inboxId))&&(p.next===null||p.items.at(-1)?.inboxId===p.next));var signalPosition=z2.string().regex(/^(0|[1-9][0-9]{0,18})$/).refine(value=>value.length<19||value<="9223372036854775807");var InboundSignalCheckpointSchema=z2.strictObject({epoch:uuid,position:signalPosition,inboxId:uuid.nullable()}).refine(checkpoint=>checkpoint.position==="0"===(checkpoint.inboxId===null));var InboundSignalChangesQuerySchema=FederationScopeSchema.extend({after:z2.union([z2.enum(["CURRENT","BEGINNING"]),InboundSignalCheckpointSchema]),limit:InboundQuerySchema.shape.limit}).strict();var InboundSignalChangesPageSchema=FederationScopeSchema.extend({items:z2.array(InboundSignalSchema).max(50),checkpoint:InboundSignalCheckpointSchema,hasMore:z2.boolean()}).strict().refine(page2=>page2.items.every(item=>item.tenantId===page2.tenantId&&item.productionId===page2.productionId)&&new Set(page2.items.map(item=>item.inboxId)).size===page2.items.length&&(page2.items.length===0?!page2.hasMore:page2.items.at(-1).inboxId===page2.checkpoint.inboxId));function inboundSignalChangesMatch(input,page2){const{after,limit,tenantId,productionId}=input;const{checkpoint,items,hasMore}=page2;if(page2.tenantId!==tenantId||page2.productionId!==productionId||items.length>limit||hasMore&&items.length!==limit)return false;if(after==="CURRENT")return items.length===0;const from=after==="BEGINNING"?0n:BigInt(after.position);if(BigInt(checkpoint.position)!==from+BigInt(items.length))return false;return after==="BEGINNING"||checkpoint.epoch===after.epoch&&(items.length===0?checkpoint.inboxId===after.inboxId:items.every(item=>item.inboxId!==after.inboxId))}var InboundQueryResultSchema=z2.discriminatedUnion("kind",[page("bindings",InboundBindingSchema),page("inbox",InboundInboxViewSchema),signalsPage,page("replays",InboundReplayViewSchema),page("quarantine",InboundQuarantineViewSchema)]);var InboundReceiptInputSchema=FederationScopeSchema.extend({kind:z2.enum(["EVENT","COMMAND"]),source:uri.optional(),eventId:ref.optional(),consumerRef:ref.optional(),requestId:ref.optional()}).strict().refine(v=>v.kind==="EVENT"?v.source!==void 0&&v.eventId!==void 0&&v.consumerRef!==void 0&&v.requestId===void 0:v.requestId!==void 0&&v.source===void 0&&v.eventId===void 0&&v.consumerRef===void 0);var InboundReceiptSchema=z2.discriminatedUnion("kind",[FederationScopeSchema.extend({kind:z2.literal("EVENT"),source:uri,eventId:ref,consumerRef:ref,result:InboundInboxViewSchema.nullable()}).strict(),FederationScopeSchema.extend({kind:z2.literal("COMMAND"),requestId:ref,result:z2.union([InboundBindingSchema,InboundReplayResultSchema]).nullable()}).strict()]);var InboundCatalogSchema=FederationScopeSchema.extend({defaultReceive:z2.literal(false),configuration:z2.enum(["CONFIGURED","UNCONFIGURED"]),effect:z2.literal("REFRESH_HINT"),bindings:z2.array(CurrentInboundBindingSchema).max(32),events:z2.array(z2.strictObject({sourceService:ref,type:ref,dataSchema:uri})).max(32)}).strict().refine(v=>v.bindings.every(b=>b.tenantId===v.tenantId&&b.productionId===v.productionId&&b.effective==="ACTIVE"));var ref2=z3.string().min(1).max(256);var source=z3.string().min(1).max(2048).refine(v=>URL.canParse(v));var FederationResourceTypeSchema=z3.enum(["nvs.lifecycle-event","nvs.federation.refresh-hint"]);var FederationResultRefSchema=z3.strictObject({sourceSystem:z3.literal("native-video-studio"),resourceType:FederationResourceTypeSchema,resourceId:ref2,revision:z3.string().regex(/^[1-9][0-9]{0,18}$/),digest:z3.string().regex(/^sha256:[a-f0-9]{64}$/),evidenceRef:ref2.optional()});var FederationResultLocatorSchema=FederationScopeSchema.extend({resourceType:FederationResourceTypeSchema,resourceId:z3.uuid().toLowerCase()}).strict();var base=FederationScopeSchema.extend({schemaVersion:z3.literal(1),source,resourceId:z3.uuid(),revision:ref2});var FederationResultValueSchema=z3.discriminatedUnion("resourceType",[base.extend({resourceType:z3.literal("nvs.lifecycle-event"),event:ExternalLifecycleEventSchema}).strict(),base.extend({resourceType:z3.literal("nvs.federation.refresh-hint"),revision:z3.literal("1"),consumerRef:ref2,peerSource:source,peerTenant:ref2,resourceRef:z3.string().min(1).max(512),resourceVersion:ref2,changeKind:ref2,contractVersion:z3.literal(2).optional(),resourceNamespace:ref2.optional(),sourceService:ref2.optional(),sourceScope:HistoricalSourceScopeSchema.optional(),parentRef:z3.string().min(1).max(512).nullable().optional(),appliedAt:z3.iso.datetime()}).strict().refine(v=>{if(v.sourceService===void 0&&(v.sourceScope!==void 0||v.parentRef!==void 0))return false;return InboundNoticeSchema.safeParse({resourceRef:v.resourceRef,resourceVersion:v.resourceVersion,changeKind:v.changeKind,contractVersion:v.contractVersion,resourceNamespace:v.resourceNamespace,...v.sourceService?{sourceService:v.sourceService,sourceScope:v.sourceScope,parentRef:v.parentRef}:{}}).success})]).refine(v=>v.resourceType!=="nvs.lifecycle-event"||v.event.tenantId===v.tenantId&&v.event.productionId===v.productionId&&v.event.eventId===v.resourceId&&String(v.event.basis.productionRevision)===v.revision);var FederationResultReadSchema=FederationScopeSchema.extend({source,reference:FederationResultRefSchema}).strict();var FederationResultReferenceSchema=FederationScopeSchema.extend({source,reference:FederationResultRefSchema,meaning:z3.literal("IMMUTABLE_FACT")}).strict();var FederationResultSnapshotSchema=FederationResultReferenceSchema.extend({value:FederationResultValueSchema}).strict().refine(v=>v.value.source===v.source&&v.value.tenantId===v.tenantId&&v.value.productionId===v.productionId&&v.reference.resourceType===v.value.resourceType&&v.reference.resourceId===v.value.resourceId&&v.reference.revision===v.value.revision);function canonicalFederationJson(value){return boundedJson(value,2048,16,32768)}function canonicalFederationReadJson(value){return boundedJson(value,4096,24,65536)}function canonicalFederationCatalogJson(value){return boundedJson(value,2e4,32,131072)}function boundedJson(value,maxNodes,maxDepth,maxBytes){let nodes=0;let bytes=0;const encoder=new TextEncoder;const reserve=size=>{bytes+=size;if(bytes>maxBytes)throw Error("FEDERATION_JSON_SIZE")};const scalar=text=>{reserve(encoder.encode(text).byteLength);return text};const seen=new Set;const encode=(v,depth)=>{if(++nodes>maxNodes||depth>maxDepth)throw Error("FEDERATION_JSON_BUDGET");if(v===null||typeof v==="boolean")return scalar(String(v));if(typeof v==="number"&&Number.isFinite(v))return scalar(JSON.stringify(v));if(typeof v==="string"){if(v.length>maxBytes)throw Error("FEDERATION_JSON_SIZE");if(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/u.test(v))throw Error("FEDERATION_JSON_UNICODE");return scalar(JSON.stringify(v))}if(!v||typeof v!=="object"||seen.has(v))throw Error("FEDERATION_JSON_VALUE");seen.add(v);try{if(Array.isArray(v)){if(v.length>maxNodes-nodes)throw Error("FEDERATION_JSON_BUDGET");if(Reflect.ownKeys(v).length!==v.length+1)throw Error("FEDERATION_JSON_ARRAY");reserve(v.length===0?2:v.length+1);const items=[];for(let index=0;index<v.length;index++){const property=Object.getOwnPropertyDescriptor(v,String(index));if(!property||!("value"in property))throw Error("FEDERATION_JSON_ARRAY");items.push(encode(property.value,depth+1))}return"["+items.join(",")+"]"}if(Object.getPrototypeOf(v)!==Object.prototype&&Object.getPrototypeOf(v)!==null)throw Error("FEDERATION_JSON_OBJECT");if(Object.getOwnPropertySymbols(v).length)throw Error("FEDERATION_JSON_OBJECT");const keys=Object.keys(v);if(keys.length>maxNodes-nodes)throw Error("FEDERATION_JSON_BUDGET");reserve(keys.length===0?2:keys.length*2+1);return"{"+keys.sort().map(key=>{const property=Object.getOwnPropertyDescriptor(v,key);if(!property||!("value"in property))throw Error("FEDERATION_JSON_PROPERTY");return encode(key,depth+1)+":"+encode(property.value,depth+1)}).join(",")+"}"}finally{seen.delete(v)}};return encode(value,0)}export{FederationPeerRefSchema,RESOURCE_CHANGE_TYPE,RESOURCE_CHANGE_SCHEMA,FederationSourceSelectionSchema,InboundBindingConfigureSchema,CurrentInboundBindingSchema,InboundReplaySchema,InboundReplayResultSchema,InboundQuerySchema,InboundSignalsQuerySchema,InboundSignalsPageSchema,InboundSignalChangesQuerySchema,InboundSignalChangesPageSchema,inboundSignalChangesMatch,InboundQueryResultSchema,InboundReceiptInputSchema,InboundReceiptSchema,InboundCatalogSchema,FederationResultLocatorSchema,FederationResultValueSchema,FederationResultReadSchema,FederationResultReferenceSchema,FederationResultSnapshotSchema,canonicalFederationJson,canonicalFederationReadJson,canonicalFederationCatalogJson};
@@ -0,0 +1 @@
1
+ import{NativeStudioHttpTransport,assertResponseBindings,path}from"./chunk-Q53Q74OP.js";import{AgentHostExecutionInputSchema,AgentHostExecutionScopeSchema,AgentHostInstallationTransportSchema,AgentHostNativeToolAuthoritySchema}from"./chunk-2QDPFLIO.js";import{AgentHostReadSelectionSchema,NativeRuntimeProofRequestSchema,NativeToolGrantViewSchema}from"./chunk-NNDKZ5H5.js";import{TenantIdSchema}from"./chunk-AFUVP2DC.js";import{NativeStudioSdkError,sdkInputError}from"./chunk-TT7IA5HB.js";import{z}from"zod";var id=z.uuid().regex(/^[0-9a-f-]{36}$/);var sha=z.string().regex(/^[a-f0-9]{64}$/);var key=z.string().regex(/^[A-Za-z0-9_-]{1,160}$/);var NativeRuntimeQualificationSchema=z.strictObject({protocol:z.literal("NATIVESTUDIO_RUNTIME_TOOLS_V1"),runtimeKey:key,installationId:key,installationRevisionId:key,resource:z.url().max(2048),publicKeyFingerprint:sha,bindingId:id,configurationVersion:z.int().positive(),selection:AgentHostReadSelectionSchema,capabilityDigest:sha,executionClass:z.enum(["LIVE","TEST_ONLY"]),transport:AgentHostInstallationTransportSchema.optional()});var NativeToolPermitSchema=z.strictObject({proof:AgentHostNativeToolAuthoritySchema,input:AgentHostExecutionInputSchema,grant:NativeToolGrantViewSchema,qualification:NativeRuntimeQualificationSchema,requestedByPrincipalId:id,createdAt:z.iso.datetime({offset:true})}).refine(v=>v.proof.tenantId===v.input.tenantId&&v.proof.projectId===v.input.projectId&&v.proof.productionId===v.input.productionId&&v.proof.executionId===v.input.executionId&&v.proof.hostRequestId===v.input.hostRequestId&&v.grant.tenantId===v.input.tenantId&&v.grant.projectId===v.input.projectId&&v.grant.enabled&&v.grant.verifiedAt!==null&&v.proof.bindingId===v.grant.bindingId&&v.proof.configurationVersion===v.grant.configurationVersion&&v.qualification.runtimeKey===v.grant.runtimeKey&&v.qualification.installationId===v.grant.installationId&&v.qualification.installationRevisionId===v.grant.installationRevisionId&&v.qualification.resource===v.grant.resource&&v.qualification.bindingId===v.grant.bindingId&&v.qualification.configurationVersion===v.grant.configurationVersion&&v.qualification.capabilityDigest===v.proof.capabilityDigest&&v.qualification.executionClass===v.proof.executionClass&&(v.proof.transport===void 0?v.qualification.transport===void 0:v.qualification.transport?.protocol===v.proof.transport.protocol&&v.qualification.transport.installationId===v.proof.transport.installationId&&v.qualification.transport.installationRevisionId===v.proof.transport.installationRevisionId&&v.qualification.transport.slotKey===v.proof.transport.slotKey&&(v.proof.transport.protocol!=="NVS_AGENT_HOST_V1"||v.qualification.transport.protocol==="NVS_AGENT_HOST_V1"&&v.qualification.transport.contractDigest===v.proof.transport.contractDigest&&v.qualification.transport.capabilityDigest===v.proof.transport.capabilityDigest)&&v.proof.transport.installationId===v.grant.installationId&&v.proof.transport.installationRevisionId===v.grant.installationRevisionId)&&Date.parse(v.proof.expiresAt)<=Date.parse(v.grant.expiresAt));var NativeToolPermitGetSchema=AgentHostExecutionScopeSchema.extend({authorityRef:id});var NativeExecutionProofClaimsSchema=AgentHostExecutionScopeSchema.extend({iss:key,sub:key,aud:z.url().max(2048),grantId:id,grantRevision:z.int().positive(),installationRevisionId:key,authorityRef:id,executionId:id,hostRequestId:id,inputFingerprint:sha,runKey:key,jti:id,iat:z.int().nonnegative(),exp:z.int().positive()}).refine(v=>v.exp>v.iat&&v.exp-v.iat<=60);var NativeToolCredentialExchangeSchema=NativeToolPermitGetSchema.extend({assertion:z.string().regex(/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/).max(8192).meta({writeOnly:true})});var NativeToolCredentialMetadataSchema=NativeToolPermitGetSchema.extend({protocol:z.literal("NATIVESTUDIO_NATIVE_CREDENTIAL_V1"),tokenId:id,grantId:id,grantRevision:z.int().positive(),executionId:id,hostRequestId:id,runKey:key,jti:id,assertionFingerprint:sha,tokenFingerprint:sha,issuedAt:z.iso.datetime({offset:true}),expiresAt:z.iso.datetime({offset:true})});var NativeToolCredentialReplySchema=z.strictObject({tokenType:z.literal("Bearer"),accessToken:z.string().regex(/^nvst_[0-9a-f-]{36}\.[A-Za-z0-9_-]{43}$/).meta({readOnly:true}),tokenId:id,resource:z.url().max(2048),expiresAt:z.iso.datetime({offset:true})}).refine(v=>v.accessToken.startsWith(`nvst_${v.tokenId}.`));var NativeToolSessionSchema=NativeToolPermitGetSchema.extend({authorityProtocol:z.literal("NVS_GENERIC_EXECUTION_V1").optional(),tokenId:id,executionId:id,hostRequestId:id,grantId:id,grantRevision:z.int().positive(),runKey:key,runtimePrincipalId:id,approvedByPrincipalId:id,requestedByPrincipalId:id,capabilityDigest:sha,resource:z.url().max(2048),issuer:z.url().max(2048),subject:z.string().max(200),executionClass:z.enum(["LIVE","TEST_ONLY"]),expiresAt:z.iso.datetime({offset:true})});var NativeStudioRuntimeAuthorityClient=class{tenantId;origin;transport;constructor(config){const tenant=TenantIdSchema.safeParse(config.tenantId);if(!tenant.success)sdkInputError();this.tenantId=tenant.data.toLowerCase();if(config.maxJsonBytes!==void 0&&config.maxJsonBytes>65536)sdkInputError();try{this.origin=new URL(config.baseUrl);if(this.origin.protocol!=="https:")sdkInputError()}catch{sdkInputError()}this.transport=new NativeStudioHttpTransport({...config,maxJsonBytes:config.maxJsonBytes??65536,authorization:()=>{throw new Error("Runtime proof has no bearer credential")}})}input(schema,raw){if(!raw||typeof raw!=="object"||Array.isArray(raw))sdkInputError();const record=raw;if(record.tenantId!==void 0&&(typeof record.tenantId!=="string"||record.tenantId.toLowerCase()!==this.tenantId))sdkInputError();const parsed=schema.safeParse({...record,tenantId:this.tenantId});if(!parsed.success)sdkInputError();return parsed.data}resource(projectId,resource){if(resource!==new URL(`/mcp/native/v1/projects/${projectId}`,this.origin).href)throw new NativeStudioSdkError("RESPONSE_SCOPE_MISMATCH","INTERNAL_OPERATIONAL_FAILURE","UNKNOWN")}async prove(raw,options={}){const value=this.input(NativeRuntimeProofRequestSchema,raw),result=await this.transport.json({method:"POST",tenantId:this.tenantId,path:path("projects",value.projectId,"native-tool-grants",value.grantId,"proof"),body:{assertion:value.assertion},authentication:"runtime-proof"},NativeToolGrantViewSchema,options);assertResponseBindings(result,value,[["grantId","grantId"]],"POST");this.resource(value.projectId,result.resource);return result}async status(raw,options={}){const value=this.input(NativeRuntimeProofRequestSchema,raw);try{const result=await this.transport.json({method:"POST",tenantId:this.tenantId,path:path("projects",value.projectId,"native-tool-grants",value.grantId,"status"),body:{assertion:value.assertion},authentication:"runtime-proof"},NativeToolGrantViewSchema,options);assertResponseBindings(result,value,[["grantId","grantId"]],"POST");this.resource(value.projectId,result.resource);return result}catch(error){if(error instanceof NativeStudioSdkError)throw new NativeStudioSdkError(error.code,error.semanticStatus,"NO_WRITE",error.status);throw error}}async exchange(raw,options={}){const value=this.input(NativeToolCredentialExchangeSchema,raw),result=await this.transport.json({method:"POST",tenantId:this.tenantId,path:path("projects",value.projectId,"productions",value.productionId,"native-tool-credentials","exchange"),body:{authorityRef:value.authorityRef,assertion:value.assertion},authentication:"runtime-proof"},NativeToolCredentialReplySchema,options);this.resource(value.projectId,result.resource);if(!result.accessToken.startsWith(`nvst_${result.tokenId}.`))throw new NativeStudioSdkError("RESPONSE_SCOPE_MISMATCH","INTERNAL_OPERATIONAL_FAILURE","UNKNOWN");return result}};export{NativeStudioRuntimeAuthorityClient};
@@ -98,7 +98,7 @@ export type AgentExecutionOperation = keyof typeof AgentExecutionPayloadSchemas;
98
98
  export declare const AgentExecutionRequestSchemas: {
99
99
  identity: z.ZodObject<{
100
100
  protocolVersion: z.ZodLiteral<1>;
101
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
101
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
102
102
  capabilityDigest: z.ZodString;
103
103
  requestId: z.ZodUUID;
104
104
  clientId: z.ZodUUID;
@@ -111,7 +111,7 @@ export declare const AgentExecutionRequestSchemas: {
111
111
  }, z.core.$strict>;
112
112
  bind: z.ZodObject<{
113
113
  protocolVersion: z.ZodLiteral<1>;
114
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
114
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
115
115
  capabilityDigest: z.ZodString;
116
116
  requestId: z.ZodUUID;
117
117
  clientId: z.ZodUUID;
@@ -132,7 +132,7 @@ export declare const AgentExecutionRequestSchemas: {
132
132
  }, z.core.$strict>;
133
133
  bindingQuery: z.ZodObject<{
134
134
  protocolVersion: z.ZodLiteral<1>;
135
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
135
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
136
136
  capabilityDigest: z.ZodString;
137
137
  requestId: z.ZodUUID;
138
138
  clientId: z.ZodUUID;
@@ -149,7 +149,7 @@ export declare const AgentExecutionRequestSchemas: {
149
149
  }, z.core.$strict>;
150
150
  access: z.ZodObject<{
151
151
  protocolVersion: z.ZodLiteral<1>;
152
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
152
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
153
153
  capabilityDigest: z.ZodString;
154
154
  requestId: z.ZodUUID;
155
155
  clientId: z.ZodUUID;
@@ -166,7 +166,7 @@ export declare const AgentExecutionRequestSchemas: {
166
166
  }, z.core.$strict>;
167
167
  accessQuery: z.ZodObject<{
168
168
  protocolVersion: z.ZodLiteral<1>;
169
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
169
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
170
170
  capabilityDigest: z.ZodString;
171
171
  requestId: z.ZodUUID;
172
172
  clientId: z.ZodUUID;
@@ -183,7 +183,7 @@ export declare const AgentExecutionRequestSchemas: {
183
183
  }, z.core.$strict>;
184
184
  leaseRenew: z.ZodObject<{
185
185
  protocolVersion: z.ZodLiteral<1>;
186
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
186
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
187
187
  capabilityDigest: z.ZodString;
188
188
  requestId: z.ZodUUID;
189
189
  clientId: z.ZodUUID;
@@ -200,7 +200,7 @@ export declare const AgentExecutionRequestSchemas: {
200
200
  }, z.core.$strict>;
201
201
  leaseQuery: z.ZodObject<{
202
202
  protocolVersion: z.ZodLiteral<1>;
203
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
203
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
204
204
  capabilityDigest: z.ZodString;
205
205
  requestId: z.ZodUUID;
206
206
  clientId: z.ZodUUID;
@@ -217,7 +217,7 @@ export declare const AgentExecutionRequestSchemas: {
217
217
  }, z.core.$strict>;
218
218
  close: z.ZodObject<{
219
219
  protocolVersion: z.ZodLiteral<1>;
220
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
220
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
221
221
  capabilityDigest: z.ZodString;
222
222
  requestId: z.ZodUUID;
223
223
  clientId: z.ZodUUID;
@@ -249,21 +249,24 @@ export type AgentExecutionOperationInput = {
249
249
  export declare const AgentExecutionQualificationSchema: z.ZodObject<{
250
250
  protocol: z.ZodLiteral<"NVS_GENERIC_EXECUTION_QUALIFICATION_V1">;
251
251
  transport: z.ZodObject<{
252
- protocol: z.ZodLiteral<"AGENT_STACK_GENERIC_INSTALLATION_V3">;
252
+ protocol: z.ZodLiteral<"NVS_AGENT_HOST_V1">;
253
+ hostContractDigest: z.ZodLiteral<"c4b254f091c364e0fab8d43ad551f296a3bce2996bdb2c5349307c62295c1769">;
253
254
  installationId: z.ZodString;
254
255
  installationRevisionId: z.ZodString;
255
256
  slotKey: z.ZodString;
256
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
257
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
257
258
  capabilityDigest: z.ZodString;
258
259
  }, z.core.$strict>;
259
260
  selection: z.ZodObject<{
260
- hostKey: z.ZodString;
261
- tenantKey: z.ZodString;
262
- workspaceKey: z.ZodString;
263
- projectKey: z.ZodString;
264
261
  agentKey: z.ZodString;
265
- agentVersion: z.ZodInt;
262
+ agentVersion: z.ZodString;
266
263
  modelOptionKey: z.ZodString;
264
+ contractVersion: z.ZodLiteral<2>;
265
+ hostKey: z.ZodString;
266
+ hostScope: z.ZodObject<{
267
+ namespace: z.ZodString;
268
+ ref: z.ZodString;
269
+ }, z.core.$strict>;
267
270
  }, z.core.$strict>;
268
271
  checkedAt: z.ZodISODateTime;
269
272
  executionClass: z.ZodEnum<{
@@ -290,19 +293,22 @@ export declare const AgentExecutionPermitSchema: z.ZodObject<{
290
293
  LIVE: "LIVE";
291
294
  TEST_ONLY: "TEST_ONLY";
292
295
  }>;
293
- transport: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
294
- protocol: z.ZodLiteral<"AGENT_STACK_NATIVE_INSTALLATION_V2">;
296
+ transport: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
297
+ protocol: z.ZodLiteral<"NVS_AGENT_HOST_V1">;
298
+ hostContractDigest: z.ZodLiteral<"c4b254f091c364e0fab8d43ad551f296a3bce2996bdb2c5349307c62295c1769">;
295
299
  installationId: z.ZodString;
296
300
  installationRevisionId: z.ZodString;
297
301
  slotKey: z.ZodString;
302
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
303
+ capabilityDigest: z.ZodString;
298
304
  }, z.core.$strict>, z.ZodObject<{
299
- protocol: z.ZodLiteral<"AGENT_STACK_GENERIC_INSTALLATION_V3">;
305
+ protocol: z.ZodString;
300
306
  installationId: z.ZodString;
301
307
  installationRevisionId: z.ZodString;
302
308
  slotKey: z.ZodString;
303
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
304
- capabilityDigest: z.ZodString;
305
- }, z.core.$strict>], "protocol">>;
309
+ contractDigest: z.ZodOptional<z.ZodString>;
310
+ capabilityDigest: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strict>]>>;
306
312
  }, z.core.$strict>;
307
313
  input: z.ZodObject<{
308
314
  tenantId: z.ZodUUID;
@@ -361,8 +367,8 @@ export declare const AgentExecutionPermitSchema: z.ZodObject<{
361
367
  instructions: z.ZodString;
362
368
  }, z.core.$strict>;
363
369
  registration: z.ZodObject<{
364
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
365
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
370
+ tenantId: z.ZodUUID;
371
+ projectId: z.ZodUUID;
366
372
  clientId: z.ZodUUID;
367
373
  schemaVersion: z.ZodLiteral<1>;
368
374
  revision: z.ZodInt;
@@ -371,13 +377,13 @@ export declare const AgentExecutionPermitSchema: z.ZodObject<{
371
377
  bindingRevision: z.ZodInt;
372
378
  configurationVersion: z.ZodInt;
373
379
  profile: z.ZodObject<{
374
- schemaVersion: z.ZodLiteral<1>;
380
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
375
381
  profileKey: z.ZodString;
376
382
  revision: z.ZodInt;
377
383
  capabilities: z.ZodObject<{
378
384
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
379
385
  protocolVersion: z.ZodLiteral<1>;
380
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
386
+ contractDigest: z.ZodString;
381
387
  issuer: z.ZodURL;
382
388
  resource: z.ZodURL;
383
389
  endpoints: z.ZodObject<{
@@ -433,7 +439,7 @@ export declare const AgentExecutionPermitSchema: z.ZodObject<{
433
439
  keyId: z.ZodString;
434
440
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
435
441
  protocolVersion: z.ZodLiteral<1>;
436
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
442
+ contractDigest: z.ZodString;
437
443
  capabilityDigest: z.ZodString;
438
444
  }, z.core.$strict>;
439
445
  approvedByPrincipalId: z.ZodUUID;
@@ -453,21 +459,24 @@ export declare const AgentExecutionPermitSchema: z.ZodObject<{
453
459
  qualification: z.ZodObject<{
454
460
  protocol: z.ZodLiteral<"NVS_GENERIC_EXECUTION_QUALIFICATION_V1">;
455
461
  transport: z.ZodObject<{
456
- protocol: z.ZodLiteral<"AGENT_STACK_GENERIC_INSTALLATION_V3">;
462
+ protocol: z.ZodLiteral<"NVS_AGENT_HOST_V1">;
463
+ hostContractDigest: z.ZodLiteral<"c4b254f091c364e0fab8d43ad551f296a3bce2996bdb2c5349307c62295c1769">;
457
464
  installationId: z.ZodString;
458
465
  installationRevisionId: z.ZodString;
459
466
  slotKey: z.ZodString;
460
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
467
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
461
468
  capabilityDigest: z.ZodString;
462
469
  }, z.core.$strict>;
463
470
  selection: z.ZodObject<{
464
- hostKey: z.ZodString;
465
- tenantKey: z.ZodString;
466
- workspaceKey: z.ZodString;
467
- projectKey: z.ZodString;
468
471
  agentKey: z.ZodString;
469
- agentVersion: z.ZodInt;
472
+ agentVersion: z.ZodString;
470
473
  modelOptionKey: z.ZodString;
474
+ contractVersion: z.ZodLiteral<2>;
475
+ hostKey: z.ZodString;
476
+ hostScope: z.ZodObject<{
477
+ namespace: z.ZodString;
478
+ ref: z.ZodString;
479
+ }, z.core.$strict>;
471
480
  }, z.core.$strict>;
472
481
  checkedAt: z.ZodISODateTime;
473
482
  executionClass: z.ZodEnum<{
@@ -486,7 +495,7 @@ export type AgentExecutionAccessMetadata = z.infer<typeof AgentExecutionAccessMe
486
495
  export declare const AgentExecutionBindingSchema: z.ZodObject<{
487
496
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
488
497
  protocolVersion: z.ZodLiteral<1>;
489
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
498
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
490
499
  capabilityDigest: z.ZodString;
491
500
  issuer: z.ZodURL;
492
501
  resource: z.ZodURL;
@@ -510,7 +519,7 @@ export declare const AgentExecutionBindingSchema: z.ZodObject<{
510
519
  keyId: z.ZodString;
511
520
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
512
521
  protocolVersion: z.ZodLiteral<1>;
513
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
522
+ contractDigest: z.ZodString;
514
523
  capabilityDigest: z.ZodString;
515
524
  }, z.core.$strict>;
516
525
  grant: z.ZodObject<{
@@ -569,7 +578,7 @@ export declare const AgentExecutionInstallationObservationSchema: z.ZodObject<{
569
578
  binding: z.ZodObject<{
570
579
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
571
580
  protocolVersion: z.ZodLiteral<1>;
572
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
581
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
573
582
  capabilityDigest: z.ZodString;
574
583
  issuer: z.ZodURL;
575
584
  resource: z.ZodURL;
@@ -593,7 +602,7 @@ export declare const AgentExecutionInstallationObservationSchema: z.ZodObject<{
593
602
  keyId: z.ZodString;
594
603
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
595
604
  protocolVersion: z.ZodLiteral<1>;
596
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
605
+ contractDigest: z.ZodString;
597
606
  capabilityDigest: z.ZodString;
598
607
  }, z.core.$strict>;
599
608
  grant: z.ZodObject<{
@@ -731,19 +740,22 @@ export declare const AgentExecutionBootstrapInputSchema: z.ZodObject<{
731
740
  LIVE: "LIVE";
732
741
  TEST_ONLY: "TEST_ONLY";
733
742
  }>;
734
- transport: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
735
- protocol: z.ZodLiteral<"AGENT_STACK_NATIVE_INSTALLATION_V2">;
743
+ transport: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
744
+ protocol: z.ZodLiteral<"NVS_AGENT_HOST_V1">;
745
+ hostContractDigest: z.ZodLiteral<"c4b254f091c364e0fab8d43ad551f296a3bce2996bdb2c5349307c62295c1769">;
736
746
  installationId: z.ZodString;
737
747
  installationRevisionId: z.ZodString;
738
748
  slotKey: z.ZodString;
749
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
750
+ capabilityDigest: z.ZodString;
739
751
  }, z.core.$strict>, z.ZodObject<{
740
- protocol: z.ZodLiteral<"AGENT_STACK_GENERIC_INSTALLATION_V3">;
752
+ protocol: z.ZodString;
741
753
  installationId: z.ZodString;
742
754
  installationRevisionId: z.ZodString;
743
755
  slotKey: z.ZodString;
744
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
745
- capabilityDigest: z.ZodString;
746
- }, z.core.$strict>], "protocol">>;
756
+ contractDigest: z.ZodOptional<z.ZodString>;
757
+ capabilityDigest: z.ZodOptional<z.ZodString>;
758
+ }, z.core.$strict>]>>;
747
759
  }, z.core.$strict>;
748
760
  }, z.core.$strict>;
749
761
  }, z.core.$strict>;
@@ -10,8 +10,8 @@ export declare const AgentExecutionConsentSchema: z.ZodObject<{
10
10
  code_challenge_method: z.ZodLiteral<"S256">;
11
11
  }, z.core.$strict>;
12
12
  export declare const ApproveAgentExecutionConsentSchema: z.ZodObject<{
13
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
14
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
13
+ tenantId: z.ZodUUID;
14
+ projectId: z.ZodUUID;
15
15
  profileKey: z.ZodString;
16
16
  requestId: z.ZodUUID;
17
17
  consent: z.ZodObject<{
@@ -11,7 +11,7 @@ export declare const AgentExecutionLimitsSchema: z.ZodObject<{
11
11
  export declare const AgentExecutionCapabilitiesSchema: z.ZodObject<{
12
12
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
13
13
  protocolVersion: z.ZodLiteral<1>;
14
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
14
+ contractDigest: z.ZodString;
15
15
  issuer: z.ZodURL;
16
16
  resource: z.ZodURL;
17
17
  endpoints: z.ZodObject<{
@@ -52,13 +52,13 @@ export declare const AgentExecutionDescriptorSchema: z.ZodObject<{
52
52
  }, z.core.$strict>;
53
53
  }, z.core.$strict>;
54
54
  export declare const AgentExecutionProfileSchema: z.ZodObject<{
55
- schemaVersion: z.ZodLiteral<1>;
55
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
56
56
  profileKey: z.ZodString;
57
57
  revision: z.ZodInt;
58
58
  capabilities: z.ZodObject<{
59
59
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
60
60
  protocolVersion: z.ZodLiteral<1>;
61
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
61
+ contractDigest: z.ZodString;
62
62
  issuer: z.ZodURL;
63
63
  resource: z.ZodURL;
64
64
  endpoints: z.ZodObject<{
@@ -95,6 +95,50 @@ export declare const AgentExecutionProfileSchema: z.ZodObject<{
95
95
  argumentsMode: z.ZodLiteral<"task-input">;
96
96
  }, z.core.$strict>;
97
97
  }, z.core.$strict>;
98
+ export declare const CurrentAgentExecutionProfileSchema: z.ZodObject<{
99
+ profileKey: z.ZodString;
100
+ revision: z.ZodInt;
101
+ capabilityDigest: z.ZodString;
102
+ nativeToolCapabilityDigest: z.ZodString;
103
+ redirectOrigins: z.ZodArray<z.ZodURL>;
104
+ scopes: z.ZodArray<z.ZodString>;
105
+ bootstrap: z.ZodObject<{
106
+ slotKey: z.ZodString;
107
+ entryTool: z.ZodString;
108
+ argumentsMode: z.ZodLiteral<"task-input">;
109
+ }, z.core.$strict>;
110
+ schemaVersion: z.ZodLiteral<2>;
111
+ capabilities: z.ZodObject<{
112
+ protocol: z.ZodLiteral<"delegated-mcp-execution">;
113
+ protocolVersion: z.ZodLiteral<1>;
114
+ issuer: z.ZodURL;
115
+ resource: z.ZodURL;
116
+ endpoints: z.ZodObject<{
117
+ capabilities: z.ZodURL;
118
+ authorize: z.ZodURL;
119
+ token: z.ZodURL;
120
+ identity: z.ZodURL;
121
+ bind: z.ZodURL;
122
+ bindingQuery: z.ZodURL;
123
+ access: z.ZodURL;
124
+ accessQuery: z.ZodURL;
125
+ leaseRenew: z.ZodURL;
126
+ leaseQuery: z.ZodURL;
127
+ close: z.ZodURL;
128
+ }, z.core.$strict>;
129
+ supportedProfiles: z.ZodTuple<[z.ZodLiteral<"stateless-json-v1">], null>;
130
+ limits: z.ZodObject<{
131
+ grantMaxSeconds: z.ZodInt;
132
+ executionMaxSeconds: z.ZodInt;
133
+ leaseMaxSeconds: z.ZodInt;
134
+ renewWindowSeconds: z.ZodInt;
135
+ renewBeforeSeconds: z.ZodInt;
136
+ assertionSeconds: z.ZodLiteral<60>;
137
+ clockSkewSeconds: z.ZodLiteral<5>;
138
+ }, z.core.$strict>;
139
+ contractDigest: z.ZodLiteral<"03e0bad50c7c6ecf7979db72c0927fa43904d8fbad67ae02447a87a9263f2730">;
140
+ }, z.core.$strict>;
141
+ }, z.core.$strict>;
98
142
  export declare const AgentExecutionRegistrationSchema: z.ZodObject<{
99
143
  schemaVersion: z.ZodLiteral<1>;
100
144
  runtimeKey: z.ZodString;
@@ -114,12 +158,12 @@ export declare const AgentExecutionRegistrationSchema: z.ZodObject<{
114
158
  keyId: z.ZodString;
115
159
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
116
160
  protocolVersion: z.ZodLiteral<1>;
117
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
161
+ contractDigest: z.ZodString;
118
162
  capabilityDigest: z.ZodString;
119
163
  }, z.core.$strict>;
120
164
  export declare const ApproveAgentExecutionRegistrationSchema: z.ZodObject<{
121
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
122
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
165
+ tenantId: z.ZodUUID;
166
+ projectId: z.ZodUUID;
123
167
  requestId: z.ZodUUID;
124
168
  bindingId: z.ZodUUID;
125
169
  expectedBindingRevision: z.ZodInt;
@@ -141,20 +185,20 @@ export declare const ApproveAgentExecutionRegistrationSchema: z.ZodObject<{
141
185
  }, z.core.$strict>;
142
186
  }, z.core.$strict>;
143
187
  export declare const AgentExecutionRegistrationGetSchema: z.ZodObject<{
144
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
145
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
188
+ tenantId: z.ZodUUID;
189
+ projectId: z.ZodUUID;
146
190
  clientId: z.ZodUUID;
147
191
  }, z.core.$strict>;
148
192
  export declare const RevokeAgentExecutionRegistrationSchema: z.ZodObject<{
149
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
150
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
193
+ tenantId: z.ZodUUID;
194
+ projectId: z.ZodUUID;
151
195
  clientId: z.ZodUUID;
152
196
  requestId: z.ZodUUID;
153
197
  expectedRevision: z.ZodInt;
154
198
  }, z.core.$strict>;
155
199
  export declare const AgentExecutionRegistrationViewSchema: z.ZodObject<{
156
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
157
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
200
+ tenantId: z.ZodUUID;
201
+ projectId: z.ZodUUID;
158
202
  clientId: z.ZodUUID;
159
203
  schemaVersion: z.ZodLiteral<1>;
160
204
  revision: z.ZodInt;
@@ -163,13 +207,13 @@ export declare const AgentExecutionRegistrationViewSchema: z.ZodObject<{
163
207
  bindingRevision: z.ZodInt;
164
208
  configurationVersion: z.ZodInt;
165
209
  profile: z.ZodObject<{
166
- schemaVersion: z.ZodLiteral<1>;
210
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
167
211
  profileKey: z.ZodString;
168
212
  revision: z.ZodInt;
169
213
  capabilities: z.ZodObject<{
170
214
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
171
215
  protocolVersion: z.ZodLiteral<1>;
172
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
216
+ contractDigest: z.ZodString;
173
217
  issuer: z.ZodURL;
174
218
  resource: z.ZodURL;
175
219
  endpoints: z.ZodObject<{
@@ -225,7 +269,7 @@ export declare const AgentExecutionRegistrationViewSchema: z.ZodObject<{
225
269
  keyId: z.ZodString;
226
270
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
227
271
  protocolVersion: z.ZodLiteral<1>;
228
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
272
+ contractDigest: z.ZodString;
229
273
  capabilityDigest: z.ZodString;
230
274
  }, z.core.$strict>;
231
275
  approvedByPrincipalId: z.ZodUUID;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const ActivateAgentExecutionSchema: z.ZodObject<{
3
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
4
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
3
+ tenantId: z.ZodUUID;
4
+ projectId: z.ZodUUID;
5
5
  profileKey: z.ZodString;
6
6
  requestId: z.ZodUUID;
7
7
  bindingId: z.ZodUUID;
@@ -13,8 +13,8 @@ export declare const ActivateAgentExecutionSchema: z.ZodObject<{
13
13
  }, z.core.$strict>;
14
14
  export declare const AgentExecutionSelectionSchema: z.ZodObject<{
15
15
  registration: z.ZodObject<{
16
- tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
17
- projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
16
+ tenantId: z.ZodUUID;
17
+ projectId: z.ZodUUID;
18
18
  clientId: z.ZodUUID;
19
19
  schemaVersion: z.ZodLiteral<1>;
20
20
  revision: z.ZodInt;
@@ -23,13 +23,13 @@ export declare const AgentExecutionSelectionSchema: z.ZodObject<{
23
23
  bindingRevision: z.ZodInt;
24
24
  configurationVersion: z.ZodInt;
25
25
  profile: z.ZodObject<{
26
- schemaVersion: z.ZodLiteral<1>;
26
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
27
27
  profileKey: z.ZodString;
28
28
  revision: z.ZodInt;
29
29
  capabilities: z.ZodObject<{
30
30
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
31
31
  protocolVersion: z.ZodLiteral<1>;
32
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
32
+ contractDigest: z.ZodString;
33
33
  issuer: z.ZodURL;
34
34
  resource: z.ZodURL;
35
35
  endpoints: z.ZodObject<{
@@ -85,7 +85,7 @@ export declare const AgentExecutionSelectionSchema: z.ZodObject<{
85
85
  keyId: z.ZodString;
86
86
  protocol: z.ZodLiteral<"delegated-mcp-execution">;
87
87
  protocolVersion: z.ZodLiteral<1>;
88
- contractDigest: z.ZodLiteral<"834d35515b14007b7900b09bb8e2988169fe6400c77109dba0f793a628c32c90">;
88
+ contractDigest: z.ZodString;
89
89
  capabilityDigest: z.ZodString;
90
90
  }, z.core.$strict>;
91
91
  approvedByPrincipalId: z.ZodUUID;