@orchestraworks/cli 0.5.4 → 0.5.7

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 (606) hide show
  1. package/README.md +1 -1
  2. package/dist/artifacts/prelude.js +10 -1
  3. package/dist/cli/api/execute.js +7 -7
  4. package/dist/cli/core/profile.d.ts +2 -2
  5. package/dist/cli/factory/apply-preview.d.ts +23 -6
  6. package/dist/cli/factory/apply-preview.js +70 -43
  7. package/dist/cli/factory/apply-render.js +12 -4
  8. package/dist/cli/factory/apply.d.ts +7 -2
  9. package/dist/cli/factory/apply.js +86 -29
  10. package/dist/cli/factory/diff.js +20 -12
  11. package/dist/cli/factory/image-upload.d.ts +90 -0
  12. package/dist/cli/factory/image-upload.js +489 -0
  13. package/dist/cli/factory/synth.d.ts +7 -0
  14. package/dist/cli/factory/synth.js +35 -0
  15. package/dist/cli/firstRun.d.ts +2 -2
  16. package/dist/cli/firstRun.js +12 -13
  17. package/dist/cli/main.d.ts +1 -1
  18. package/dist/cli/main.js +4 -3
  19. package/dist/cli/upload.d.ts +3 -1
  20. package/dist/cli/upload.js +9 -2
  21. package/dist/constructs/agent.d.ts +9 -1
  22. package/dist/constructs/agent.js +7 -0
  23. package/dist/constructs/compute-provider.js +2 -2
  24. package/dist/constructs/connection.d.ts +22 -16
  25. package/dist/constructs/connection.js +29 -92
  26. package/dist/constructs/connector.d.ts +3 -1
  27. package/dist/constructs/connector.js +2 -0
  28. package/dist/constructs/egress-preset.d.ts +7 -52
  29. package/dist/constructs/egress-preset.js +7 -91
  30. package/dist/constructs/environment.d.ts +47 -70
  31. package/dist/constructs/environment.js +103 -213
  32. package/dist/constructs/gateway-key.d.ts +4 -1
  33. package/dist/constructs/gateway-key.js +4 -3
  34. package/dist/constructs/interfaces.d.ts +10 -2
  35. package/dist/constructs/model-provider-key.js +2 -3
  36. package/dist/constructs/pipeline.d.ts +5 -2
  37. package/dist/constructs/pipeline.js +4 -0
  38. package/dist/constructs/references.d.ts +4 -0
  39. package/dist/constructs/references.js +20 -0
  40. package/dist/constructs/role.d.ts +32 -0
  41. package/dist/constructs/role.js +77 -0
  42. package/dist/constructs/rules.d.ts +4 -4
  43. package/dist/constructs/rules.js +3 -3
  44. package/dist/constructs/secret.d.ts +36 -13
  45. package/dist/constructs/secret.js +110 -14
  46. package/dist/constructs/service-account.d.ts +12 -0
  47. package/dist/constructs/service-account.js +23 -0
  48. package/dist/constructs/skill.d.ts +3 -1
  49. package/dist/constructs/skill.js +2 -0
  50. package/dist/constructs/team-membership.d.ts +43 -0
  51. package/dist/constructs/team-membership.js +59 -0
  52. package/dist/constructs/team.d.ts +40 -0
  53. package/dist/constructs/team.js +107 -0
  54. package/dist/constructs/trigger.d.ts +7 -4
  55. package/dist/constructs/trigger.js +4 -0
  56. package/dist/constructs/workflow.d.ts +1 -1
  57. package/dist/core/factory.d.ts +0 -7
  58. package/dist/core/factory.js +15 -53
  59. package/dist/core/gateway-key-recipe.js +23 -2
  60. package/dist/core/host-pattern.d.ts +5 -0
  61. package/dist/core/host-pattern.js +14 -0
  62. package/dist/core/labels.d.ts +1 -1
  63. package/dist/core/labels.js +1 -1
  64. package/dist/core/outbound-warning.d.ts +2 -2
  65. package/dist/core/outbound-warning.js +52 -41
  66. package/dist/core/plan.d.ts +14 -11
  67. package/dist/core/plan.js +12 -11
  68. package/dist/engine/apply-core.d.ts +71 -67
  69. package/dist/engine/apply-core.js +120 -95
  70. package/dist/engine/client.d.ts +12 -4
  71. package/dist/engine/client.js +8 -3
  72. package/dist/engine/compute-provider-reconcile.js +1 -1
  73. package/dist/engine/condition-references.d.ts +2 -2
  74. package/dist/engine/condition-references.js +6 -6
  75. package/dist/engine/connection-install-link-reconcile.d.ts +4 -3
  76. package/dist/engine/connection-install-link-reconcile.js +35 -28
  77. package/dist/engine/diff.d.ts +12 -14
  78. package/dist/engine/diff.js +247 -113
  79. package/dist/engine/gateway-key-reconcile.d.ts +12 -9
  80. package/dist/engine/gateway-key-reconcile.js +43 -36
  81. package/dist/engine/model-provider-key-reconcile.js +2 -2
  82. package/dist/engine/pipeline-reconcile.d.ts +8 -9
  83. package/dist/engine/pipeline-reconcile.js +14 -10
  84. package/dist/engine/reconcile.d.ts +7 -21
  85. package/dist/engine/reconcile.js +115 -215
  86. package/dist/engine/refusals.d.ts +14 -31
  87. package/dist/engine/refusals.js +32 -81
  88. package/dist/engine/role-membership-reconcile.d.ts +19 -0
  89. package/dist/engine/role-membership-reconcile.js +276 -0
  90. package/dist/engine/secrets-apply.d.ts +18 -4
  91. package/dist/engine/secrets-apply.js +39 -4
  92. package/dist/engine/trigger-reconcile.d.ts +22 -23
  93. package/dist/engine/trigger-reconcile.js +43 -65
  94. package/dist/engine/workflow-reconcile.d.ts +2 -2
  95. package/dist/engine/workflow-reconcile.js +5 -5
  96. package/dist/generated/cli-commands.json +15398 -11771
  97. package/dist/generated/cli-dispatch.d.ts +4 -3
  98. package/dist/generated/cli-dispatch.js +76 -62
  99. package/dist/index.d.ts +12 -7
  100. package/dist/index.js +5 -3
  101. package/dist/metrics/metric.d.ts +3 -3
  102. package/dist/metrics/metric.js +1 -1
  103. package/docs/REFERENCE.md +84 -89
  104. package/node_modules/@orchestraworks/client/dist/apis/AgentsApi.d.ts +1 -1
  105. package/node_modules/@orchestraworks/client/dist/apis/AgentsApi.js +2 -2
  106. package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.d.ts +1 -1
  107. package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.js +2 -2
  108. package/node_modules/@orchestraworks/client/dist/apis/ConnectionInstallLinksApi.d.ts +1 -1
  109. package/node_modules/@orchestraworks/client/dist/apis/ConnectionInstallLinksApi.js +2 -2
  110. package/node_modules/@orchestraworks/client/dist/apis/ConnectionsApi.d.ts +1 -1
  111. package/node_modules/@orchestraworks/client/dist/apis/ConnectionsApi.js +2 -2
  112. package/node_modules/@orchestraworks/client/dist/apis/EnvironmentsApi.d.ts +1 -1
  113. package/node_modules/@orchestraworks/client/dist/apis/EnvironmentsApi.js +2 -2
  114. package/node_modules/@orchestraworks/client/dist/apis/FilesApi.d.ts +1 -1
  115. package/node_modules/@orchestraworks/client/dist/apis/FilesApi.js +2 -2
  116. package/node_modules/@orchestraworks/client/dist/apis/ImagesApi.d.ts +88 -0
  117. package/node_modules/@orchestraworks/client/dist/apis/ImagesApi.js +239 -0
  118. package/node_modules/@orchestraworks/client/dist/apis/MetricsApi.d.ts +1 -1
  119. package/node_modules/@orchestraworks/client/dist/apis/MetricsApi.js +2 -2
  120. package/node_modules/@orchestraworks/client/dist/apis/OrganizationsApi.d.ts +1 -15
  121. package/node_modules/@orchestraworks/client/dist/apis/OrganizationsApi.js +3 -49
  122. package/node_modules/@orchestraworks/client/dist/apis/PipelinesApi.d.ts +1 -1
  123. package/node_modules/@orchestraworks/client/dist/apis/PipelinesApi.js +2 -2
  124. package/node_modules/@orchestraworks/client/dist/apis/ProviderConnectionIntentsApi.d.ts +1 -1
  125. package/node_modules/@orchestraworks/client/dist/apis/ProviderConnectionIntentsApi.js +2 -2
  126. package/node_modules/@orchestraworks/client/dist/apis/SecretsApi.d.ts +1 -1
  127. package/node_modules/@orchestraworks/client/dist/apis/SecretsApi.js +2 -2
  128. package/node_modules/@orchestraworks/client/dist/apis/SessionsApi.d.ts +1 -1
  129. package/node_modules/@orchestraworks/client/dist/apis/SessionsApi.js +2 -2
  130. package/node_modules/@orchestraworks/client/dist/apis/SkillsApi.d.ts +1 -1
  131. package/node_modules/@orchestraworks/client/dist/apis/SkillsApi.js +2 -2
  132. package/node_modules/@orchestraworks/client/dist/apis/TeamMembershipsApi.d.ts +96 -0
  133. package/node_modules/@orchestraworks/client/dist/apis/{GroupsApi.js → TeamMembershipsApi.js} +62 -59
  134. package/node_modules/@orchestraworks/client/dist/apis/TeamsApi.d.ts +93 -0
  135. package/node_modules/@orchestraworks/client/dist/apis/{ProjectsApi.js → TeamsApi.js} +55 -55
  136. package/node_modules/@orchestraworks/client/dist/apis/TriggersApi.d.ts +1 -1
  137. package/node_modules/@orchestraworks/client/dist/apis/TriggersApi.js +2 -2
  138. package/node_modules/@orchestraworks/client/dist/apis/UsersApi.d.ts +0 -15
  139. package/node_modules/@orchestraworks/client/dist/apis/UsersApi.js +0 -49
  140. package/node_modules/@orchestraworks/client/dist/apis/VolumesApi.d.ts +1 -1
  141. package/node_modules/@orchestraworks/client/dist/apis/VolumesApi.js +2 -2
  142. package/node_modules/@orchestraworks/client/dist/apis/WorkItemsApi.d.ts +2 -2
  143. package/node_modules/@orchestraworks/client/dist/apis/WorkItemsApi.js +4 -4
  144. package/node_modules/@orchestraworks/client/dist/apis/WorkflowsApi.d.ts +1 -1
  145. package/node_modules/@orchestraworks/client/dist/apis/WorkflowsApi.js +2 -2
  146. package/node_modules/@orchestraworks/client/dist/apis/index.d.ts +3 -2
  147. package/node_modules/@orchestraworks/client/dist/apis/index.js +3 -2
  148. package/node_modules/@orchestraworks/client/dist/esm/apis/AgentsApi.d.ts +1 -1
  149. package/node_modules/@orchestraworks/client/dist/esm/apis/AgentsApi.js +2 -2
  150. package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.d.ts +1 -1
  151. package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.js +2 -2
  152. package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionInstallLinksApi.d.ts +1 -1
  153. package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionInstallLinksApi.js +2 -2
  154. package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionsApi.d.ts +1 -1
  155. package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionsApi.js +2 -2
  156. package/node_modules/@orchestraworks/client/dist/esm/apis/EnvironmentsApi.d.ts +1 -1
  157. package/node_modules/@orchestraworks/client/dist/esm/apis/EnvironmentsApi.js +2 -2
  158. package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.d.ts +1 -1
  159. package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.js +2 -2
  160. package/node_modules/@orchestraworks/client/dist/esm/apis/ImagesApi.d.ts +88 -0
  161. package/node_modules/@orchestraworks/client/dist/esm/apis/ImagesApi.js +235 -0
  162. package/node_modules/@orchestraworks/client/dist/esm/apis/MetricsApi.d.ts +1 -1
  163. package/node_modules/@orchestraworks/client/dist/esm/apis/MetricsApi.js +2 -2
  164. package/node_modules/@orchestraworks/client/dist/esm/apis/OrganizationsApi.d.ts +1 -15
  165. package/node_modules/@orchestraworks/client/dist/esm/apis/OrganizationsApi.js +3 -49
  166. package/node_modules/@orchestraworks/client/dist/esm/apis/PipelinesApi.d.ts +1 -1
  167. package/node_modules/@orchestraworks/client/dist/esm/apis/PipelinesApi.js +2 -2
  168. package/node_modules/@orchestraworks/client/dist/esm/apis/ProviderConnectionIntentsApi.d.ts +1 -1
  169. package/node_modules/@orchestraworks/client/dist/esm/apis/ProviderConnectionIntentsApi.js +2 -2
  170. package/node_modules/@orchestraworks/client/dist/esm/apis/SecretsApi.d.ts +1 -1
  171. package/node_modules/@orchestraworks/client/dist/esm/apis/SecretsApi.js +2 -2
  172. package/node_modules/@orchestraworks/client/dist/esm/apis/SessionsApi.d.ts +1 -1
  173. package/node_modules/@orchestraworks/client/dist/esm/apis/SessionsApi.js +2 -2
  174. package/node_modules/@orchestraworks/client/dist/esm/apis/SkillsApi.d.ts +1 -1
  175. package/node_modules/@orchestraworks/client/dist/esm/apis/SkillsApi.js +2 -2
  176. package/node_modules/@orchestraworks/client/dist/esm/apis/TeamMembershipsApi.d.ts +96 -0
  177. package/node_modules/@orchestraworks/client/dist/esm/apis/{GroupsApi.js → TeamMembershipsApi.js} +60 -57
  178. package/node_modules/@orchestraworks/client/dist/esm/apis/TeamsApi.d.ts +93 -0
  179. package/node_modules/@orchestraworks/client/dist/esm/apis/{ProjectsApi.js → TeamsApi.js} +53 -53
  180. package/node_modules/@orchestraworks/client/dist/esm/apis/TriggersApi.d.ts +1 -1
  181. package/node_modules/@orchestraworks/client/dist/esm/apis/TriggersApi.js +2 -2
  182. package/node_modules/@orchestraworks/client/dist/esm/apis/UsersApi.d.ts +0 -15
  183. package/node_modules/@orchestraworks/client/dist/esm/apis/UsersApi.js +0 -49
  184. package/node_modules/@orchestraworks/client/dist/esm/apis/VolumesApi.d.ts +1 -1
  185. package/node_modules/@orchestraworks/client/dist/esm/apis/VolumesApi.js +2 -2
  186. package/node_modules/@orchestraworks/client/dist/esm/apis/WorkItemsApi.d.ts +2 -2
  187. package/node_modules/@orchestraworks/client/dist/esm/apis/WorkItemsApi.js +4 -4
  188. package/node_modules/@orchestraworks/client/dist/esm/apis/WorkflowsApi.d.ts +1 -1
  189. package/node_modules/@orchestraworks/client/dist/esm/apis/WorkflowsApi.js +2 -2
  190. package/node_modules/@orchestraworks/client/dist/esm/apis/index.d.ts +3 -2
  191. package/node_modules/@orchestraworks/client/dist/esm/apis/index.js +3 -2
  192. package/node_modules/@orchestraworks/client/dist/esm/models/AddArtifactVersionRequest.d.ts +1 -1
  193. package/node_modules/@orchestraworks/client/dist/esm/models/Agent.d.ts +9 -3
  194. package/node_modules/@orchestraworks/client/dist/esm/models/Agent.js +3 -2
  195. package/node_modules/@orchestraworks/client/dist/esm/models/ApiErrorDetail.d.ts +9 -1
  196. package/node_modules/@orchestraworks/client/dist/esm/models/ApiErrorDetail.js +5 -1
  197. package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.d.ts +2 -2
  198. package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.js +2 -2
  199. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.d.ts +2 -2
  200. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.js +2 -2
  201. package/node_modules/@orchestraworks/client/dist/esm/models/AssignAction.d.ts +1 -1
  202. package/node_modules/@orchestraworks/client/dist/esm/models/AssignAction.js +2 -2
  203. package/node_modules/@orchestraworks/client/dist/esm/models/AssignWorkItemRequest.d.ts +2 -2
  204. package/node_modules/@orchestraworks/client/dist/esm/models/AssignWorkItemRequest.js +2 -2
  205. package/node_modules/@orchestraworks/client/dist/esm/models/ComputeProviderTarget.d.ts +6 -0
  206. package/node_modules/@orchestraworks/client/dist/esm/models/ComputeProviderTarget.js +2 -0
  207. package/node_modules/@orchestraworks/client/dist/esm/models/Connection.d.ts +16 -3
  208. package/node_modules/@orchestraworks/client/dist/esm/models/Connection.js +8 -2
  209. package/node_modules/@orchestraworks/client/dist/esm/models/ConnectionInstallLink.d.ts +2 -2
  210. package/node_modules/@orchestraworks/client/dist/esm/models/ConnectionInstallLink.js +2 -2
  211. package/node_modules/@orchestraworks/client/dist/esm/models/Connector.d.ts +2 -2
  212. package/node_modules/@orchestraworks/client/dist/esm/models/Connector.js +2 -2
  213. package/node_modules/@orchestraworks/client/dist/esm/models/CreateAgentRequest.d.ts +2 -2
  214. package/node_modules/@orchestraworks/client/dist/esm/models/CreateAgentRequest.js +2 -2
  215. package/node_modules/@orchestraworks/client/dist/esm/models/CreateArtifactRequest.d.ts +4 -4
  216. package/node_modules/@orchestraworks/client/dist/esm/models/CreateArtifactRequest.js +2 -2
  217. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionInstallLinkRequest.d.ts +3 -3
  218. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionInstallLinkRequest.js +2 -2
  219. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionRequest.d.ts +8 -2
  220. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionRequest.js +4 -2
  221. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectorRequest.d.ts +2 -2
  222. package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectorRequest.js +2 -2
  223. package/node_modules/@orchestraworks/client/dist/esm/models/CreateDashboardRequest.d.ts +3 -3
  224. package/node_modules/@orchestraworks/client/dist/esm/models/CreateDashboardRequest.js +2 -2
  225. package/node_modules/@orchestraworks/client/dist/esm/models/CreateEnvironmentRequest.d.ts +2 -2
  226. package/node_modules/@orchestraworks/client/dist/esm/models/CreateEnvironmentRequest.js +2 -2
  227. package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.d.ts +2 -2
  228. package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.js +2 -2
  229. package/node_modules/@orchestraworks/client/dist/esm/models/CreateGatewayKeyRequest.d.ts +2 -2
  230. package/node_modules/@orchestraworks/client/dist/esm/models/CreateGatewayKeyRequest.js +2 -2
  231. package/node_modules/@orchestraworks/client/dist/esm/models/CreateImageRequest.d.ts +38 -0
  232. package/node_modules/@orchestraworks/client/dist/esm/models/{GroupMemberAgent.js → CreateImageRequest.js} +12 -16
  233. package/node_modules/@orchestraworks/client/dist/esm/models/CreateMachineRequest.d.ts +2 -2
  234. package/node_modules/@orchestraworks/client/dist/esm/models/CreateMachineRequest.js +2 -2
  235. package/node_modules/@orchestraworks/client/dist/esm/models/CreateMetricRequest.d.ts +2 -2
  236. package/node_modules/@orchestraworks/client/dist/esm/models/CreateMetricRequest.js +2 -2
  237. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationInvitationRequest.d.ts +4 -4
  238. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationInvitationRequest.js +3 -3
  239. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationMembershipRequest.d.ts +1 -8
  240. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationMembershipRequest.js +0 -3
  241. package/node_modules/@orchestraworks/client/dist/esm/models/CreatePipelineRequest.d.ts +2 -2
  242. package/node_modules/@orchestraworks/client/dist/esm/models/CreatePipelineRequest.js +2 -2
  243. package/node_modules/@orchestraworks/client/dist/esm/models/CreateProviderConnectionIntentRequest.d.ts +3 -3
  244. package/node_modules/@orchestraworks/client/dist/esm/models/CreateProviderConnectionIntentRequest.js +2 -2
  245. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSecretRequest.d.ts +8 -2
  246. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSecretRequest.js +4 -2
  247. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSessionRequest.d.ts +2 -2
  248. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSessionRequest.js +2 -2
  249. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSkillRequest.d.ts +2 -2
  250. package/node_modules/@orchestraworks/client/dist/esm/models/CreateSkillRequest.js +2 -2
  251. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamMembershipRequest.d.ts +65 -0
  252. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamMembershipRequest.js +61 -0
  253. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamRequest.d.ts +80 -0
  254. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamRequest.js +64 -0
  255. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTriggerRequest.d.ts +2 -2
  256. package/node_modules/@orchestraworks/client/dist/esm/models/CreateTriggerRequest.js +2 -2
  257. package/node_modules/@orchestraworks/client/dist/esm/models/CreateVolumeRequest.d.ts +2 -2
  258. package/node_modules/@orchestraworks/client/dist/esm/models/CreateVolumeRequest.js +2 -2
  259. package/node_modules/@orchestraworks/client/dist/esm/models/CreateWorkflowRequest.d.ts +1 -1
  260. package/node_modules/@orchestraworks/client/dist/esm/models/Dashboard.d.ts +8 -2
  261. package/node_modules/@orchestraworks/client/dist/esm/models/Dashboard.js +6 -2
  262. package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChart.d.ts +45 -4
  263. package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChart.js +29 -5
  264. package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChartQuery.d.ts +1 -1
  265. package/node_modules/@orchestraworks/client/dist/esm/models/Delivery.d.ts +2 -2
  266. package/node_modules/@orchestraworks/client/dist/esm/models/Delivery.js +2 -2
  267. package/node_modules/@orchestraworks/client/dist/esm/models/EgressPolicyRule.d.ts +0 -13
  268. package/node_modules/@orchestraworks/client/dist/esm/models/EgressPolicyRule.js +0 -5
  269. package/node_modules/@orchestraworks/client/dist/esm/models/EntitlementTeamUsage.d.ts +58 -0
  270. package/node_modules/@orchestraworks/client/dist/esm/models/EntitlementTeamUsage.js +64 -0
  271. package/node_modules/@orchestraworks/client/dist/esm/models/Environment.d.ts +2 -2
  272. package/node_modules/@orchestraworks/client/dist/esm/models/Environment.js +2 -2
  273. package/node_modules/@orchestraworks/client/dist/esm/models/EnvironmentEgressPolicy.d.ts +1 -1
  274. package/node_modules/@orchestraworks/client/dist/esm/models/GatewayKey.d.ts +2 -2
  275. package/node_modules/@orchestraworks/client/dist/esm/models/GatewayKey.js +2 -2
  276. package/node_modules/@orchestraworks/client/dist/esm/models/Image.d.ts +113 -0
  277. package/node_modules/@orchestraworks/client/dist/esm/models/Image.js +91 -0
  278. package/node_modules/@orchestraworks/client/dist/esm/models/InboundWebhookEdge.d.ts +2 -2
  279. package/node_modules/@orchestraworks/client/dist/esm/models/InboundWebhookEdge.js +2 -2
  280. package/node_modules/@orchestraworks/client/dist/esm/models/InvitationTeamMembership.d.ts +44 -0
  281. package/node_modules/@orchestraworks/client/dist/esm/models/InvitationTeamMembership.js +47 -0
  282. package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressPolicyDiagnostics.d.ts +1 -1
  283. package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressRuleDiagnostics.d.ts +0 -6
  284. package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressRuleDiagnostics.js +0 -4
  285. package/node_modules/@orchestraworks/client/dist/esm/models/MachineView.d.ts +2 -2
  286. package/node_modules/@orchestraworks/client/dist/esm/models/MachineView.js +2 -2
  287. package/node_modules/@orchestraworks/client/dist/esm/models/MessageWorkItemRequest.d.ts +1 -1
  288. package/node_modules/@orchestraworks/client/dist/esm/models/Metric.d.ts +2 -2
  289. package/node_modules/@orchestraworks/client/dist/esm/models/Metric.js +2 -2
  290. package/node_modules/@orchestraworks/client/dist/esm/models/MetricValue.d.ts +2 -2
  291. package/node_modules/@orchestraworks/client/dist/esm/models/MetricValue.js +2 -2
  292. package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.d.ts +2 -2
  293. package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.js +2 -2
  294. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationEntitlements.d.ts +7 -0
  295. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationEntitlements.js +5 -0
  296. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationInvitation.d.ts +4 -4
  297. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationInvitation.js +4 -4
  298. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationMembership.d.ts +5 -5
  299. package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationMembership.js +4 -4
  300. package/node_modules/@orchestraworks/client/dist/esm/models/PageImage.d.ts +51 -0
  301. package/node_modules/@orchestraworks/client/dist/esm/models/{PageProject.js → PageImage.js} +11 -11
  302. package/node_modules/@orchestraworks/client/dist/esm/models/PageTeam.d.ts +51 -0
  303. package/node_modules/@orchestraworks/client/dist/esm/models/{PageGroupSummary.js → PageTeam.js} +11 -11
  304. package/node_modules/@orchestraworks/client/dist/esm/models/PageTeamMembership.d.ts +51 -0
  305. package/node_modules/@orchestraworks/client/dist/esm/models/PageTeamMembership.js +56 -0
  306. package/node_modules/@orchestraworks/client/dist/esm/models/Pipeline.d.ts +2 -2
  307. package/node_modules/@orchestraworks/client/dist/esm/models/Pipeline.js +2 -2
  308. package/node_modules/@orchestraworks/client/dist/esm/models/PolicyAssignment.d.ts +8 -2
  309. package/node_modules/@orchestraworks/client/dist/esm/models/PolicyAssignment.js +4 -2
  310. package/node_modules/@orchestraworks/client/dist/esm/models/ProviderConnectionIntent.d.ts +2 -2
  311. package/node_modules/@orchestraworks/client/dist/esm/models/ProviderConnectionIntent.js +2 -2
  312. package/node_modules/@orchestraworks/client/dist/esm/models/ReferenceSubject.d.ts +1 -1
  313. package/node_modules/@orchestraworks/client/dist/esm/models/ReferenceSubject.js +1 -1
  314. package/node_modules/@orchestraworks/client/dist/esm/models/Role.d.ts +6 -0
  315. package/node_modules/@orchestraworks/client/dist/esm/models/Role.js +4 -0
  316. package/node_modules/@orchestraworks/client/dist/esm/models/Secret.d.ts +16 -3
  317. package/node_modules/@orchestraworks/client/dist/esm/models/Secret.js +8 -2
  318. package/node_modules/@orchestraworks/client/dist/esm/models/ServiceAccount.d.ts +7 -1
  319. package/node_modules/@orchestraworks/client/dist/esm/models/ServiceAccount.js +1 -0
  320. package/node_modules/@orchestraworks/client/dist/esm/models/Session.d.ts +3 -2
  321. package/node_modules/@orchestraworks/client/dist/esm/models/Session.js +3 -2
  322. package/node_modules/@orchestraworks/client/dist/esm/models/SessionSummary.d.ts +3 -2
  323. package/node_modules/@orchestraworks/client/dist/esm/models/SessionSummary.js +3 -2
  324. package/node_modules/@orchestraworks/client/dist/esm/models/Skill.d.ts +2 -2
  325. package/node_modules/@orchestraworks/client/dist/esm/models/Skill.js +2 -2
  326. package/node_modules/@orchestraworks/client/dist/esm/models/SnapshotAnchor.d.ts +1 -1
  327. package/node_modules/@orchestraworks/client/dist/esm/models/Team.d.ts +104 -0
  328. package/node_modules/@orchestraworks/client/dist/esm/models/{GroupSummary.js → Team.js} +25 -15
  329. package/node_modules/@orchestraworks/client/dist/esm/models/TeamMembership.d.ts +83 -0
  330. package/node_modules/@orchestraworks/client/dist/esm/models/TeamMembership.js +77 -0
  331. package/node_modules/@orchestraworks/client/dist/esm/models/Trigger.d.ts +2 -2
  332. package/node_modules/@orchestraworks/client/dist/esm/models/Trigger.js +2 -2
  333. package/node_modules/@orchestraworks/client/dist/esm/models/TriggerTarget.d.ts +1 -1
  334. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateArtifactRequest.d.ts +1 -1
  335. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateConnectionRequest.d.ts +6 -0
  336. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateConnectionRequest.js +2 -0
  337. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationInvitationRequest.d.ts +4 -4
  338. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationInvitationRequest.js +3 -3
  339. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationMembershipRequest.d.ts +1 -8
  340. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationMembershipRequest.js +0 -3
  341. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateSecretRequest.d.ts +6 -0
  342. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateSecretRequest.js +2 -0
  343. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamMembershipRequest.d.ts +47 -0
  344. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamMembershipRequest.js +51 -0
  345. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamRequest.d.ts +68 -0
  346. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamRequest.js +58 -0
  347. package/node_modules/@orchestraworks/client/dist/esm/models/UserGrant.d.ts +2 -2
  348. package/node_modules/@orchestraworks/client/dist/esm/models/UserGrant.js +2 -2
  349. package/node_modules/@orchestraworks/client/dist/esm/models/Volume.d.ts +10 -3
  350. package/node_modules/@orchestraworks/client/dist/esm/models/Volume.js +4 -2
  351. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemActivity.d.ts +2 -2
  352. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemAssignment.d.ts +7 -7
  353. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemAssignment.js +5 -5
  354. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemDraftAssignment.d.ts +2 -2
  355. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemDraftAssignment.js +2 -2
  356. package/node_modules/@orchestraworks/client/dist/esm/models/Workflow.d.ts +2 -2
  357. package/node_modules/@orchestraworks/client/dist/esm/models/Workflow.js +2 -2
  358. package/node_modules/@orchestraworks/client/dist/esm/models/index.d.ts +13 -17
  359. package/node_modules/@orchestraworks/client/dist/esm/models/index.js +13 -17
  360. package/node_modules/@orchestraworks/client/dist/models/AddArtifactVersionRequest.d.ts +1 -1
  361. package/node_modules/@orchestraworks/client/dist/models/Agent.d.ts +9 -3
  362. package/node_modules/@orchestraworks/client/dist/models/Agent.js +3 -2
  363. package/node_modules/@orchestraworks/client/dist/models/ApiErrorDetail.d.ts +9 -1
  364. package/node_modules/@orchestraworks/client/dist/models/ApiErrorDetail.js +5 -1
  365. package/node_modules/@orchestraworks/client/dist/models/Artifact.d.ts +2 -2
  366. package/node_modules/@orchestraworks/client/dist/models/Artifact.js +2 -2
  367. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.d.ts +2 -2
  368. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.js +2 -2
  369. package/node_modules/@orchestraworks/client/dist/models/AssignAction.d.ts +1 -1
  370. package/node_modules/@orchestraworks/client/dist/models/AssignAction.js +2 -2
  371. package/node_modules/@orchestraworks/client/dist/models/AssignWorkItemRequest.d.ts +2 -2
  372. package/node_modules/@orchestraworks/client/dist/models/AssignWorkItemRequest.js +2 -2
  373. package/node_modules/@orchestraworks/client/dist/models/ComputeProviderTarget.d.ts +6 -0
  374. package/node_modules/@orchestraworks/client/dist/models/ComputeProviderTarget.js +2 -0
  375. package/node_modules/@orchestraworks/client/dist/models/Connection.d.ts +16 -3
  376. package/node_modules/@orchestraworks/client/dist/models/Connection.js +8 -2
  377. package/node_modules/@orchestraworks/client/dist/models/ConnectionInstallLink.d.ts +2 -2
  378. package/node_modules/@orchestraworks/client/dist/models/ConnectionInstallLink.js +2 -2
  379. package/node_modules/@orchestraworks/client/dist/models/Connector.d.ts +2 -2
  380. package/node_modules/@orchestraworks/client/dist/models/Connector.js +2 -2
  381. package/node_modules/@orchestraworks/client/dist/models/CreateAgentRequest.d.ts +2 -2
  382. package/node_modules/@orchestraworks/client/dist/models/CreateAgentRequest.js +2 -2
  383. package/node_modules/@orchestraworks/client/dist/models/CreateArtifactRequest.d.ts +4 -4
  384. package/node_modules/@orchestraworks/client/dist/models/CreateArtifactRequest.js +2 -2
  385. package/node_modules/@orchestraworks/client/dist/models/CreateConnectionInstallLinkRequest.d.ts +3 -3
  386. package/node_modules/@orchestraworks/client/dist/models/CreateConnectionInstallLinkRequest.js +2 -2
  387. package/node_modules/@orchestraworks/client/dist/models/CreateConnectionRequest.d.ts +8 -2
  388. package/node_modules/@orchestraworks/client/dist/models/CreateConnectionRequest.js +4 -2
  389. package/node_modules/@orchestraworks/client/dist/models/CreateConnectorRequest.d.ts +2 -2
  390. package/node_modules/@orchestraworks/client/dist/models/CreateConnectorRequest.js +2 -2
  391. package/node_modules/@orchestraworks/client/dist/models/CreateDashboardRequest.d.ts +3 -3
  392. package/node_modules/@orchestraworks/client/dist/models/CreateDashboardRequest.js +2 -2
  393. package/node_modules/@orchestraworks/client/dist/models/CreateEnvironmentRequest.d.ts +2 -2
  394. package/node_modules/@orchestraworks/client/dist/models/CreateEnvironmentRequest.js +2 -2
  395. package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.d.ts +2 -2
  396. package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.js +2 -2
  397. package/node_modules/@orchestraworks/client/dist/models/CreateGatewayKeyRequest.d.ts +2 -2
  398. package/node_modules/@orchestraworks/client/dist/models/CreateGatewayKeyRequest.js +2 -2
  399. package/node_modules/@orchestraworks/client/dist/models/CreateImageRequest.d.ts +38 -0
  400. package/node_modules/@orchestraworks/client/dist/models/CreateImageRequest.js +54 -0
  401. package/node_modules/@orchestraworks/client/dist/models/CreateMachineRequest.d.ts +2 -2
  402. package/node_modules/@orchestraworks/client/dist/models/CreateMachineRequest.js +2 -2
  403. package/node_modules/@orchestraworks/client/dist/models/CreateMetricRequest.d.ts +2 -2
  404. package/node_modules/@orchestraworks/client/dist/models/CreateMetricRequest.js +2 -2
  405. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationInvitationRequest.d.ts +4 -4
  406. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationInvitationRequest.js +3 -3
  407. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationMembershipRequest.d.ts +1 -8
  408. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationMembershipRequest.js +0 -3
  409. package/node_modules/@orchestraworks/client/dist/models/CreatePipelineRequest.d.ts +2 -2
  410. package/node_modules/@orchestraworks/client/dist/models/CreatePipelineRequest.js +2 -2
  411. package/node_modules/@orchestraworks/client/dist/models/CreateProviderConnectionIntentRequest.d.ts +3 -3
  412. package/node_modules/@orchestraworks/client/dist/models/CreateProviderConnectionIntentRequest.js +2 -2
  413. package/node_modules/@orchestraworks/client/dist/models/CreateSecretRequest.d.ts +8 -2
  414. package/node_modules/@orchestraworks/client/dist/models/CreateSecretRequest.js +4 -2
  415. package/node_modules/@orchestraworks/client/dist/models/CreateSessionRequest.d.ts +2 -2
  416. package/node_modules/@orchestraworks/client/dist/models/CreateSessionRequest.js +2 -2
  417. package/node_modules/@orchestraworks/client/dist/models/CreateSkillRequest.d.ts +2 -2
  418. package/node_modules/@orchestraworks/client/dist/models/CreateSkillRequest.js +2 -2
  419. package/node_modules/@orchestraworks/client/dist/models/CreateTeamMembershipRequest.d.ts +65 -0
  420. package/node_modules/@orchestraworks/client/dist/models/CreateTeamMembershipRequest.js +69 -0
  421. package/node_modules/@orchestraworks/client/dist/models/CreateTeamRequest.d.ts +80 -0
  422. package/node_modules/@orchestraworks/client/dist/models/CreateTeamRequest.js +72 -0
  423. package/node_modules/@orchestraworks/client/dist/models/CreateTriggerRequest.d.ts +2 -2
  424. package/node_modules/@orchestraworks/client/dist/models/CreateTriggerRequest.js +2 -2
  425. package/node_modules/@orchestraworks/client/dist/models/CreateVolumeRequest.d.ts +2 -2
  426. package/node_modules/@orchestraworks/client/dist/models/CreateVolumeRequest.js +2 -2
  427. package/node_modules/@orchestraworks/client/dist/models/CreateWorkflowRequest.d.ts +1 -1
  428. package/node_modules/@orchestraworks/client/dist/models/Dashboard.d.ts +8 -2
  429. package/node_modules/@orchestraworks/client/dist/models/Dashboard.js +6 -2
  430. package/node_modules/@orchestraworks/client/dist/models/DashboardChart.d.ts +45 -4
  431. package/node_modules/@orchestraworks/client/dist/models/DashboardChart.js +30 -6
  432. package/node_modules/@orchestraworks/client/dist/models/DashboardChartQuery.d.ts +1 -1
  433. package/node_modules/@orchestraworks/client/dist/models/Delivery.d.ts +2 -2
  434. package/node_modules/@orchestraworks/client/dist/models/Delivery.js +2 -2
  435. package/node_modules/@orchestraworks/client/dist/models/EgressPolicyRule.d.ts +0 -13
  436. package/node_modules/@orchestraworks/client/dist/models/EgressPolicyRule.js +0 -5
  437. package/node_modules/@orchestraworks/client/dist/models/EntitlementTeamUsage.d.ts +58 -0
  438. package/node_modules/@orchestraworks/client/dist/models/EntitlementTeamUsage.js +72 -0
  439. package/node_modules/@orchestraworks/client/dist/models/Environment.d.ts +2 -2
  440. package/node_modules/@orchestraworks/client/dist/models/Environment.js +2 -2
  441. package/node_modules/@orchestraworks/client/dist/models/EnvironmentEgressPolicy.d.ts +1 -1
  442. package/node_modules/@orchestraworks/client/dist/models/GatewayKey.d.ts +2 -2
  443. package/node_modules/@orchestraworks/client/dist/models/GatewayKey.js +2 -2
  444. package/node_modules/@orchestraworks/client/dist/models/Image.d.ts +113 -0
  445. package/node_modules/@orchestraworks/client/dist/models/Image.js +99 -0
  446. package/node_modules/@orchestraworks/client/dist/models/InboundWebhookEdge.d.ts +2 -2
  447. package/node_modules/@orchestraworks/client/dist/models/InboundWebhookEdge.js +2 -2
  448. package/node_modules/@orchestraworks/client/dist/models/InvitationTeamMembership.d.ts +44 -0
  449. package/node_modules/@orchestraworks/client/dist/models/InvitationTeamMembership.js +54 -0
  450. package/node_modules/@orchestraworks/client/dist/models/MachineEgressPolicyDiagnostics.d.ts +1 -1
  451. package/node_modules/@orchestraworks/client/dist/models/MachineEgressRuleDiagnostics.d.ts +0 -6
  452. package/node_modules/@orchestraworks/client/dist/models/MachineEgressRuleDiagnostics.js +0 -4
  453. package/node_modules/@orchestraworks/client/dist/models/MachineView.d.ts +2 -2
  454. package/node_modules/@orchestraworks/client/dist/models/MachineView.js +2 -2
  455. package/node_modules/@orchestraworks/client/dist/models/MessageWorkItemRequest.d.ts +1 -1
  456. package/node_modules/@orchestraworks/client/dist/models/Metric.d.ts +2 -2
  457. package/node_modules/@orchestraworks/client/dist/models/Metric.js +2 -2
  458. package/node_modules/@orchestraworks/client/dist/models/MetricValue.d.ts +2 -2
  459. package/node_modules/@orchestraworks/client/dist/models/MetricValue.js +2 -2
  460. package/node_modules/@orchestraworks/client/dist/models/ModelFile.d.ts +2 -2
  461. package/node_modules/@orchestraworks/client/dist/models/ModelFile.js +2 -2
  462. package/node_modules/@orchestraworks/client/dist/models/OrganizationEntitlements.d.ts +7 -0
  463. package/node_modules/@orchestraworks/client/dist/models/OrganizationEntitlements.js +5 -0
  464. package/node_modules/@orchestraworks/client/dist/models/OrganizationInvitation.d.ts +4 -4
  465. package/node_modules/@orchestraworks/client/dist/models/OrganizationInvitation.js +4 -4
  466. package/node_modules/@orchestraworks/client/dist/models/OrganizationMembership.d.ts +5 -5
  467. package/node_modules/@orchestraworks/client/dist/models/OrganizationMembership.js +4 -4
  468. package/node_modules/@orchestraworks/client/dist/models/PageImage.d.ts +51 -0
  469. package/node_modules/@orchestraworks/client/dist/models/{PageProject.js → PageImage.js} +16 -16
  470. package/node_modules/@orchestraworks/client/dist/models/PageTeam.d.ts +51 -0
  471. package/node_modules/@orchestraworks/client/dist/models/{PageGroupSummary.js → PageTeam.js} +16 -16
  472. package/node_modules/@orchestraworks/client/dist/models/PageTeamMembership.d.ts +51 -0
  473. package/node_modules/@orchestraworks/client/dist/models/PageTeamMembership.js +63 -0
  474. package/node_modules/@orchestraworks/client/dist/models/Pipeline.d.ts +2 -2
  475. package/node_modules/@orchestraworks/client/dist/models/Pipeline.js +2 -2
  476. package/node_modules/@orchestraworks/client/dist/models/PolicyAssignment.d.ts +8 -2
  477. package/node_modules/@orchestraworks/client/dist/models/PolicyAssignment.js +4 -2
  478. package/node_modules/@orchestraworks/client/dist/models/ProviderConnectionIntent.d.ts +2 -2
  479. package/node_modules/@orchestraworks/client/dist/models/ProviderConnectionIntent.js +2 -2
  480. package/node_modules/@orchestraworks/client/dist/models/ReferenceSubject.d.ts +1 -1
  481. package/node_modules/@orchestraworks/client/dist/models/ReferenceSubject.js +1 -1
  482. package/node_modules/@orchestraworks/client/dist/models/Role.d.ts +6 -0
  483. package/node_modules/@orchestraworks/client/dist/models/Role.js +4 -0
  484. package/node_modules/@orchestraworks/client/dist/models/Secret.d.ts +16 -3
  485. package/node_modules/@orchestraworks/client/dist/models/Secret.js +8 -2
  486. package/node_modules/@orchestraworks/client/dist/models/ServiceAccount.d.ts +7 -1
  487. package/node_modules/@orchestraworks/client/dist/models/ServiceAccount.js +1 -0
  488. package/node_modules/@orchestraworks/client/dist/models/Session.d.ts +3 -2
  489. package/node_modules/@orchestraworks/client/dist/models/Session.js +3 -2
  490. package/node_modules/@orchestraworks/client/dist/models/SessionSummary.d.ts +3 -2
  491. package/node_modules/@orchestraworks/client/dist/models/SessionSummary.js +3 -2
  492. package/node_modules/@orchestraworks/client/dist/models/Skill.d.ts +2 -2
  493. package/node_modules/@orchestraworks/client/dist/models/Skill.js +2 -2
  494. package/node_modules/@orchestraworks/client/dist/models/SnapshotAnchor.d.ts +1 -1
  495. package/node_modules/@orchestraworks/client/dist/models/Team.d.ts +104 -0
  496. package/node_modules/@orchestraworks/client/dist/models/{GroupSummary.js → Team.js} +31 -21
  497. package/node_modules/@orchestraworks/client/dist/models/TeamMembership.d.ts +83 -0
  498. package/node_modules/@orchestraworks/client/dist/models/TeamMembership.js +85 -0
  499. package/node_modules/@orchestraworks/client/dist/models/Trigger.d.ts +2 -2
  500. package/node_modules/@orchestraworks/client/dist/models/Trigger.js +2 -2
  501. package/node_modules/@orchestraworks/client/dist/models/TriggerTarget.d.ts +1 -1
  502. package/node_modules/@orchestraworks/client/dist/models/UpdateArtifactRequest.d.ts +1 -1
  503. package/node_modules/@orchestraworks/client/dist/models/UpdateConnectionRequest.d.ts +6 -0
  504. package/node_modules/@orchestraworks/client/dist/models/UpdateConnectionRequest.js +2 -0
  505. package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationInvitationRequest.d.ts +4 -4
  506. package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationInvitationRequest.js +3 -3
  507. package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationMembershipRequest.d.ts +1 -8
  508. package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationMembershipRequest.js +0 -3
  509. package/node_modules/@orchestraworks/client/dist/models/UpdateSecretRequest.d.ts +6 -0
  510. package/node_modules/@orchestraworks/client/dist/models/UpdateSecretRequest.js +2 -0
  511. package/node_modules/@orchestraworks/client/dist/models/UpdateTeamMembershipRequest.d.ts +47 -0
  512. package/node_modules/@orchestraworks/client/dist/models/UpdateTeamMembershipRequest.js +59 -0
  513. package/node_modules/@orchestraworks/client/dist/models/UpdateTeamRequest.d.ts +68 -0
  514. package/node_modules/@orchestraworks/client/dist/models/UpdateTeamRequest.js +66 -0
  515. package/node_modules/@orchestraworks/client/dist/models/UserGrant.d.ts +2 -2
  516. package/node_modules/@orchestraworks/client/dist/models/UserGrant.js +2 -2
  517. package/node_modules/@orchestraworks/client/dist/models/Volume.d.ts +10 -3
  518. package/node_modules/@orchestraworks/client/dist/models/Volume.js +4 -2
  519. package/node_modules/@orchestraworks/client/dist/models/WorkItemActivity.d.ts +2 -2
  520. package/node_modules/@orchestraworks/client/dist/models/WorkItemAssignment.d.ts +7 -7
  521. package/node_modules/@orchestraworks/client/dist/models/WorkItemAssignment.js +5 -5
  522. package/node_modules/@orchestraworks/client/dist/models/WorkItemDraftAssignment.d.ts +2 -2
  523. package/node_modules/@orchestraworks/client/dist/models/WorkItemDraftAssignment.js +2 -2
  524. package/node_modules/@orchestraworks/client/dist/models/Workflow.d.ts +2 -2
  525. package/node_modules/@orchestraworks/client/dist/models/Workflow.js +2 -2
  526. package/node_modules/@orchestraworks/client/dist/models/index.d.ts +13 -17
  527. package/node_modules/@orchestraworks/client/dist/models/index.js +13 -17
  528. package/node_modules/@orchestraworks/client/package.json +1 -1
  529. package/package.json +4 -4
  530. package/skills/orchestra/SKILL.md +74 -64
  531. package/skills/orchestra-fdk/references/authoring.md +75 -39
  532. package/skills/orchestra-fdk/references/environment.md +214 -33
  533. package/skills/orchestra-fdk/references/troubleshooting.md +8 -7
  534. package/templates/bug-fix/main.ts +6 -1
  535. package/templates/engineering-team/README.md +10 -7
  536. package/templates/engineering-team/agents/engineer-agent.md +38 -16
  537. package/templates/engineering-team/lib/environment.ts +15 -3
  538. package/templates/engineering-team/main.ts +1 -1
  539. package/templates/todo-factory/main.ts +6 -1
  540. package/dist/constructs/project.d.ts +0 -33
  541. package/dist/constructs/project.js +0 -82
  542. package/node_modules/@orchestraworks/client/dist/apis/GroupsApi.d.ts +0 -95
  543. package/node_modules/@orchestraworks/client/dist/apis/ProjectsApi.d.ts +0 -93
  544. package/node_modules/@orchestraworks/client/dist/esm/apis/GroupsApi.d.ts +0 -95
  545. package/node_modules/@orchestraworks/client/dist/esm/apis/ProjectsApi.d.ts +0 -93
  546. package/node_modules/@orchestraworks/client/dist/esm/models/CreateGroupRequest.d.ts +0 -82
  547. package/node_modules/@orchestraworks/client/dist/esm/models/CreateGroupRequest.js +0 -74
  548. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationRequest.d.ts +0 -53
  549. package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationRequest.js +0 -50
  550. package/node_modules/@orchestraworks/client/dist/esm/models/CreateProjectRequest.d.ts +0 -52
  551. package/node_modules/@orchestraworks/client/dist/esm/models/CreateProjectRequest.js +0 -49
  552. package/node_modules/@orchestraworks/client/dist/esm/models/CreateUserRequest.d.ts +0 -46
  553. package/node_modules/@orchestraworks/client/dist/esm/models/CreateUserRequest.js +0 -47
  554. package/node_modules/@orchestraworks/client/dist/esm/models/CredentialBinding.d.ts +0 -57
  555. package/node_modules/@orchestraworks/client/dist/esm/models/CredentialBinding.js +0 -50
  556. package/node_modules/@orchestraworks/client/dist/esm/models/Group.d.ts +0 -106
  557. package/node_modules/@orchestraworks/client/dist/esm/models/Group.js +0 -92
  558. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMember.d.ts +0 -40
  559. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMember.js +0 -45
  560. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberAgent.d.ts +0 -44
  561. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberReference.d.ts +0 -38
  562. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberReference.js +0 -43
  563. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberUser.d.ts +0 -38
  564. package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberUser.js +0 -45
  565. package/node_modules/@orchestraworks/client/dist/esm/models/GroupSummary.d.ts +0 -86
  566. package/node_modules/@orchestraworks/client/dist/esm/models/PageGroupSummary.d.ts +0 -51
  567. package/node_modules/@orchestraworks/client/dist/esm/models/PageProject.d.ts +0 -51
  568. package/node_modules/@orchestraworks/client/dist/esm/models/Project.d.ts +0 -76
  569. package/node_modules/@orchestraworks/client/dist/esm/models/Project.js +0 -69
  570. package/node_modules/@orchestraworks/client/dist/esm/models/RoleAssignment.d.ts +0 -38
  571. package/node_modules/@orchestraworks/client/dist/esm/models/RoleAssignment.js +0 -45
  572. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateGroupRequest.d.ts +0 -70
  573. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateGroupRequest.js +0 -60
  574. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateProjectRequest.d.ts +0 -46
  575. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateProjectRequest.js +0 -45
  576. package/node_modules/@orchestraworks/client/dist/models/CreateGroupRequest.d.ts +0 -82
  577. package/node_modules/@orchestraworks/client/dist/models/CreateGroupRequest.js +0 -82
  578. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationRequest.d.ts +0 -53
  579. package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationRequest.js +0 -57
  580. package/node_modules/@orchestraworks/client/dist/models/CreateProjectRequest.d.ts +0 -52
  581. package/node_modules/@orchestraworks/client/dist/models/CreateProjectRequest.js +0 -56
  582. package/node_modules/@orchestraworks/client/dist/models/CreateUserRequest.d.ts +0 -46
  583. package/node_modules/@orchestraworks/client/dist/models/CreateUserRequest.js +0 -54
  584. package/node_modules/@orchestraworks/client/dist/models/CredentialBinding.d.ts +0 -57
  585. package/node_modules/@orchestraworks/client/dist/models/CredentialBinding.js +0 -57
  586. package/node_modules/@orchestraworks/client/dist/models/Group.d.ts +0 -106
  587. package/node_modules/@orchestraworks/client/dist/models/Group.js +0 -100
  588. package/node_modules/@orchestraworks/client/dist/models/GroupMember.d.ts +0 -40
  589. package/node_modules/@orchestraworks/client/dist/models/GroupMember.js +0 -52
  590. package/node_modules/@orchestraworks/client/dist/models/GroupMemberAgent.d.ts +0 -44
  591. package/node_modules/@orchestraworks/client/dist/models/GroupMemberAgent.js +0 -58
  592. package/node_modules/@orchestraworks/client/dist/models/GroupMemberReference.d.ts +0 -38
  593. package/node_modules/@orchestraworks/client/dist/models/GroupMemberReference.js +0 -50
  594. package/node_modules/@orchestraworks/client/dist/models/GroupMemberUser.d.ts +0 -38
  595. package/node_modules/@orchestraworks/client/dist/models/GroupMemberUser.js +0 -52
  596. package/node_modules/@orchestraworks/client/dist/models/GroupSummary.d.ts +0 -86
  597. package/node_modules/@orchestraworks/client/dist/models/PageGroupSummary.d.ts +0 -51
  598. package/node_modules/@orchestraworks/client/dist/models/PageProject.d.ts +0 -51
  599. package/node_modules/@orchestraworks/client/dist/models/Project.d.ts +0 -76
  600. package/node_modules/@orchestraworks/client/dist/models/Project.js +0 -76
  601. package/node_modules/@orchestraworks/client/dist/models/RoleAssignment.d.ts +0 -38
  602. package/node_modules/@orchestraworks/client/dist/models/RoleAssignment.js +0 -52
  603. package/node_modules/@orchestraworks/client/dist/models/UpdateGroupRequest.d.ts +0 -70
  604. package/node_modules/@orchestraworks/client/dist/models/UpdateGroupRequest.js +0 -68
  605. package/node_modules/@orchestraworks/client/dist/models/UpdateProjectRequest.d.ts +0 -46
  606. package/node_modules/@orchestraworks/client/dist/models/UpdateProjectRequest.js +0 -52
@@ -1,6 +1,6 @@
1
1
  import type { InjectionRecipe } from "@orchestraworks/client";
2
2
  import type { PlanDocument, PlanResource } from "../core/plan.js";
3
- import { type ApplyOutcome, type PendingSecretWrite } from "./apply-core.js";
3
+ import { type ApplyOutcome, type DesiredTeam, type PendingSecretWrite, type TeamResolver } from "./apply-core.js";
4
4
  import { type PlatformApis } from "./client.js";
5
5
  import { PreflightError } from "./preflight.js";
6
6
  /**
@@ -17,7 +17,7 @@ export { PENDING_GATEWAY_KEY_TOKEN_LABEL_KEY } from "./refusals.js";
17
17
  export declare const PENDING_GATEWAY_KEY_SECRET_PLACEHOLDER = "orchestra:pending-gateway-key-token";
18
18
  /**
19
19
  * - `steady` — key and Secret present without the marker: nothing to mint, though declared drift on
20
- * either still PATCHes. A project-stamp mismatch never reaches here.
20
+ * either still PATCHes. A team mismatch never reaches here.
21
21
  * - `mint-adopt` — key absent, Secret present without the marker — the normal state right after a
22
22
  * slug-rename rotation.
23
23
  * - `mint-resume` — key absent, Secret present WITH the marker: a previous apply completed the pre-mint
@@ -28,7 +28,7 @@ export type GatewayKeyAction = "steady" | "mint-new" | "mint-adopt" | "mint-resu
28
28
  export interface LiveGatewayKey {
29
29
  id: string;
30
30
  slug?: string;
31
- projectId?: string;
31
+ teamId?: string;
32
32
  displayName?: string;
33
33
  monthlyCreditCap?: number;
34
34
  labels?: Record<string, string>;
@@ -36,8 +36,9 @@ export interface LiveGatewayKey {
36
36
  /** Only the fields this lane compares; the pending marker rides `labels`. */
37
37
  export interface LiveSecretRow {
38
38
  id: string;
39
- projectId?: string;
39
+ teamId?: string;
40
40
  injection?: InjectionRecipe;
41
+ hosts?: string[];
41
42
  labels?: Record<string, string>;
42
43
  }
43
44
  /** Value-free. */
@@ -50,6 +51,8 @@ export interface GatewayKeyDecision {
50
51
  readonly secretSlug: string;
51
52
  readonly liveKey?: LiveGatewayKey;
52
53
  readonly liveSecret?: LiveSecretRow;
54
+ /** The pair's one team, which a mint's two creates carry. */
55
+ readonly team?: DesiredTeam;
53
56
  }
54
57
  /**
55
58
  * For the unrecoverable states detected DURING the write; the pre-write ones come from the aggregate
@@ -63,12 +66,12 @@ export declare class GatewayKeyRotationError extends PreflightError {
63
66
  * Reads only, and runs BEFORE the consolidated credential confirmation, so an author is never asked to
64
67
  * approve a write that cannot work.
65
68
  *
66
- * It is also the ONE place this lane settles project identity, comparing BOTH readable pair members so
69
+ * It is also the ONE place this lane settles team identity, comparing BOTH readable pair members so
67
70
  * `steady`, `mint-adopt` and `mint-resume` are covered by one check rather than three per-branch ones —
68
- * `mint-resume` in particular is how a mint into project B while the marked Secret sits in project A would
69
- * otherwise slip through.
71
+ * `mint-resume` in particular is how a mint into team B while the marked Secret sits in team A would
72
+ * otherwise slip through. Synth places both members in one team, so the key's team is the pair's.
70
73
  */
71
- export declare function decideGatewayKeys(plan: PlanDocument, apis: PlatformApis, outcomes: ApplyOutcome[], projectId: string | undefined): Promise<GatewayKeyDecision[]>;
74
+ export declare function decideGatewayKeys(plan: PlanDocument, apis: PlatformApis, outcomes: ApplyOutcome[], teams: TeamResolver): Promise<GatewayKeyDecision[]>;
72
75
  /** A `steady` pair writes no credential material and contributes no row. */
73
76
  export declare function gatewayKeyPendingWrites(decisions: GatewayKeyDecision[], organizationId: string | undefined): PendingSecretWrite[];
74
77
  /**
@@ -76,4 +79,4 @@ export declare function gatewayKeyPendingWrites(decisions: GatewayKeyDecision[],
76
79
  * `secret` outcomes and registers both ids, because `applySecrets` deliberately skips a gateway-key-backed
77
80
  * Secret: this lane owns its whole write.
78
81
  */
79
- export declare function writeGatewayKeys(decisions: GatewayKeyDecision[], apis: PlatformApis, outcomes: ApplyOutcome[], applied: Map<string, string>, projectId: string | undefined, factory: string): Promise<void>;
82
+ export declare function writeGatewayKeys(decisions: GatewayKeyDecision[], apis: PlatformApis, outcomes: ApplyOutcome[], applied: Map<string, string>, factory: string): Promise<void>;
@@ -3,7 +3,7 @@
3
3
  //
4
4
  // The write order per key is fixed: (1) make the paired Secret DETECTABLY PENDING — a new one is POSTed with
5
5
  // a placeholder value and the reserved marker key, which also reserves the org-unique slug so a Secret hidden
6
- // behind a project fence surfaces as a 409 before anything irreversible happens, while an adopted one takes a
6
+ // from this key surfaces as a 409 before anything irreversible happens, while an adopted one takes a
7
7
  // labels-only PATCH that leaves its value and every existing entry intact; (2) only once that succeeded,
8
8
  // mint; (3) one PATCH replaces the value with the token and removes the marker.
9
9
  //
@@ -12,12 +12,12 @@
12
12
  // named rotation error fires rather than trusting a Secret holding a placeholder or a stale token.
13
13
  import { gatewayKeyRefOf } from "../core/gateway-key-recipe.js";
14
14
  import { refToken } from "../core/tokens.js";
15
- import { credentialValueWritten, desiredProjectOf, driftedFields, failing, getBySlugOrUndefined, pushOutcome, } from "./apply-core.js";
15
+ import { credentialValueWritten, driftedFields, failing, getBySlugOrUndefined, pushOutcome, stampTeam, } from "./apply-core.js";
16
16
  import { PENDING_GATEWAY_KEY_TOKEN_LABEL_KEY, refuseIf } from "./refusals.js";
17
17
  import { httpStatusOf } from "./client.js";
18
18
  import { PreflightError } from "./preflight.js";
19
19
  import { createLabels, labelsPatch, MANAGED_BY_LABEL_KEY } from "../core/labels.js";
20
- import { metadataInjectionChange, pendingSecretWrite, reconcileInjection } from "./secrets-apply.js";
20
+ import { declaredSecretHosts, metadataHostsChange, metadataInjectionChange, pendingSecretWrite, reconcileInjection, } from "./secrets-apply.js";
21
21
  /**
22
22
  * The reserved marker rides the ordinary labels wire field — never smuggled into the write-only value or a
23
23
  * second column — and is removed by the final token PATCH. It lives in a leaf module because the aggregate
@@ -45,25 +45,25 @@ export class GatewayKeyRotationError extends PreflightError {
45
45
  * Reads only, and runs BEFORE the consolidated credential confirmation, so an author is never asked to
46
46
  * approve a write that cannot work.
47
47
  *
48
- * It is also the ONE place this lane settles project identity, comparing BOTH readable pair members so
48
+ * It is also the ONE place this lane settles team identity, comparing BOTH readable pair members so
49
49
  * `steady`, `mint-adopt` and `mint-resume` are covered by one check rather than three per-branch ones —
50
- * `mint-resume` in particular is how a mint into project B while the marked Secret sits in project A would
51
- * otherwise slip through.
50
+ * `mint-resume` in particular is how a mint into team B while the marked Secret sits in team A would
51
+ * otherwise slip through. Synth places both members in one team, so the key's team is the pair's.
52
52
  */
53
- export async function decideGatewayKeys(plan, apis, outcomes, projectId) {
54
- // Apply only ever reaches the comparison with a resolved project (or none at all); `pending-managed` is
55
- // the diff path's state.
56
- const desired = desiredProjectOf(projectId);
53
+ export async function decideGatewayKeys(plan, apis, outcomes, teams) {
57
54
  const decisions = [];
58
55
  for (const resource of plan.resources) {
59
56
  if (resource.kind !== "gateway-key")
60
57
  continue;
61
58
  const slug = resource.slug;
59
+ const declared = await teams.desired(resource.payload.teamId, { kind: "gateway-key", slug, op: "get" }, outcomes);
62
60
  const secretResource = pairedSecretResource(plan, resource);
63
61
  const secretSlug = secretResource.slug;
64
62
  const liveKey = await failing(() => getBySlugOrUndefined(() => apis.gatewayKeys.getGatewayKey({ id: slug })), { kind: "gateway-key", slug, op: "get" }, outcomes);
65
63
  const liveSecret = await failing(() => getBySlugOrUndefined(() => apis.secrets.getSecret({ id: secretSlug })), { kind: "secret", slug: secretSlug, op: "get" }, outcomes);
66
64
  const marked = liveSecret !== undefined && hasPendingMarker(liveSecret);
65
+ const surface = { kind: "gateway-key", slug, op: "get" };
66
+ const desired = await teams.judged(await teams.judged(declared, liveKey, surface, outcomes), liveSecret, surface, outcomes);
67
67
  // Every pre-write refusal goes through the ONE aggregate classifier, and an absent member has no
68
68
  // identity to conflict with, so a first mint is untouched. It raises the CONCRETE identity class rather
69
69
  // than a `PreflightError` saying the same thing: `reconcile()`'s outer catch passes an `ApplyError`
@@ -73,7 +73,7 @@ export async function decideGatewayKeys(plan, apis, outcomes, projectId) {
73
73
  // No `env` is supplied: a gateway key's value comes from the MINT and never the environment, so this
74
74
  // lane holds no source evidence and the classifier's source arms are gated off by that absence.
75
75
  refuseIf("gateway-key", resource, {
76
- project: desired,
76
+ ...(desired !== undefined ? { team: desired } : {}),
77
77
  live: { key: liveKey, secret: liveSecret, secretMarked: marked },
78
78
  gatewayPair: { kind: "gateway-key-secret", gatewayKeySlug: slug, secretSlug },
79
79
  }, outcomes);
@@ -86,6 +86,7 @@ export async function decideGatewayKeys(plan, apis, outcomes, projectId) {
86
86
  secretSlug,
87
87
  ...(liveKey !== undefined ? { liveKey } : {}),
88
88
  ...(liveSecret !== undefined ? { liveSecret } : {}),
89
+ ...(desired !== undefined ? { team: desired } : {}),
89
90
  });
90
91
  }
91
92
  return decisions;
@@ -111,7 +112,7 @@ export function gatewayKeyPendingWrites(decisions, organizationId) {
111
112
  * `secret` outcomes and registers both ids, because `applySecrets` deliberately skips a gateway-key-backed
112
113
  * Secret: this lane owns its whole write.
113
114
  */
114
- export async function writeGatewayKeys(decisions, apis, outcomes, applied, projectId, factory) {
115
+ export async function writeGatewayKeys(decisions, apis, outcomes, applied, factory) {
115
116
  // The ONE place a minted token exists, scoped to this call and cleared unconditionally.
116
117
  const tokens = new Map();
117
118
  try {
@@ -120,7 +121,7 @@ export async function writeGatewayKeys(decisions, apis, outcomes, applied, proje
120
121
  await applySteadyGatewayKey(decision, apis, outcomes, applied);
121
122
  continue;
122
123
  }
123
- await mintGatewayKey(decision, apis, outcomes, applied, projectId, tokens, factory);
124
+ await mintGatewayKey(decision, apis, outcomes, applied, tokens, factory);
124
125
  }
125
126
  }
126
127
  finally {
@@ -128,9 +129,9 @@ export async function writeGatewayKeys(decisions, apis, outcomes, applied, proje
128
129
  }
129
130
  }
130
131
  /**
131
- * Nothing is minted; the only writes are ordinary drift reconciliation. Neither carries `projectId`, and
132
- * neither needs to: the decide phase refuses a placement mismatch on either pair member before this runs, so
133
- * a placement reaching here is by construction the declared one.
132
+ * Nothing is minted; the only writes are ordinary drift reconciliation. Neither carries a team, and neither
133
+ * needs to: the decide phase refuses a team mismatch on either pair member before this runs, so a team
134
+ * reaching here is by construction the declared one.
134
135
  */
135
136
  async function applySteadyGatewayKey(decision, apis, outcomes, applied) {
136
137
  const live = decision.liveKey;
@@ -148,30 +149,34 @@ async function applySteadyGatewayKey(decision, apis, outcomes, applied) {
148
149
  action = "updated";
149
150
  }
150
151
  pushOutcome(outcomes, applied, decision.resource, live.id, action);
151
- // The paired Secret needs no value write in steady state, but an injection-recipe edit still reconciles
152
- // through a recipe-only PATCH — exactly what `applySecrets` would have done had this lane not owned it.
152
+ // The paired Secret needs no value write in steady state, but a recipe or hosts edit still reconciles
153
+ // through a value-less PATCH — exactly what `applySecrets` would have done had this lane not owned it.
153
154
  const liveSecret = decision.liveSecret;
154
155
  const injectionChange = metadataInjectionChange(secretInjection(decision.secretResource), liveSecret.injection);
156
+ const hostsChange = metadataHostsChange(declaredSecretHosts(decision.secretResource.payload), liveSecret.hosts);
155
157
  let secretAction = "unchanged";
156
- if (injectionChange !== undefined) {
157
- const body = { injection: injectionChange.injection };
158
+ if (injectionChange !== undefined || hostsChange !== undefined) {
159
+ const body = { ...injectionChange, ...hostsChange };
158
160
  await failing(() => apis.secrets.updateSecret({ id: liveSecret.id, updateSecretRequest: body }), { kind: "secret", slug: decision.secretSlug, op: "update" }, outcomes);
159
161
  secretAction = "updated";
160
162
  }
161
163
  pushOutcome(outcomes, applied, decision.secretResource, liveSecret.id, secretAction);
162
164
  }
163
165
  /**
164
- * The three minting paths, sharing steps 2 and 3. Only the CREATE bodies carry `projectId`, because a create
165
- * is where a stamp is placed; neither PATCH carries one, and neither needs to, since the decide phase already
166
- * refused every readable member whose live stamp is not the declared project.
166
+ * The three minting paths, sharing steps 2 and 3. Only the CREATE bodies carry a team, because a create is
167
+ * where a team is chosen; neither PATCH carries one, and neither needs to, since the decide phase already
168
+ * refused every readable member whose live team is not the declared one.
167
169
  */
168
- async function mintGatewayKey(decision, apis, outcomes, applied, projectId, tokens, factory) {
170
+ async function mintGatewayKey(decision, apis, outcomes, applied, tokens, factory) {
169
171
  const payload = decision.resource.payload;
172
+ const placement = {};
173
+ stampTeam(placement, decision.team);
170
174
  const refKey = refToken("gateway-key", decision.resource.path.split("/"));
171
175
  // The FINAL patch removes the pending marker and stamps ownership; the merge keeps every caller-authored entry
172
176
  // an adopted Secret carries.
173
177
  const finalLabels = { [MANAGED_BY_LABEL_KEY]: factory, [PENDING_GATEWAY_KEY_TOKEN_LABEL_KEY]: null };
174
178
  const declaredInjection = secretInjection(decision.secretResource);
179
+ const declaredHosts = declaredSecretHosts(decision.secretResource.payload);
175
180
  // (1) Make the paired Secret detectably pending BEFORE the mint.
176
181
  let secretId;
177
182
  if (decision.action === "mint-new") {
@@ -181,8 +186,9 @@ async function mintGatewayKey(decision, apis, outcomes, applied, projectId, toke
181
186
  description: decision.secretResource.payload.description,
182
187
  value: PENDING_GATEWAY_KEY_SECRET_PLACEHOLDER,
183
188
  labels: { [PENDING_GATEWAY_KEY_TOKEN_LABEL_KEY]: decision.slug },
184
- ...(projectId !== undefined ? { projectId } : {}),
189
+ ...placement,
185
190
  ...(declaredInjection !== undefined ? { injection: declaredInjection } : {}),
191
+ ...(declaredHosts !== undefined ? { hosts: declaredHosts } : {}),
186
192
  };
187
193
  const created = await failing(() => apis.secrets.createSecret({ createSecretRequest: createBody }), { kind: "secret", slug: decision.secretSlug, op: "create" }, outcomes);
188
194
  secretId = created.id;
@@ -192,7 +198,7 @@ async function mintGatewayKey(decision, apis, outcomes, applied, projectId, toke
192
198
  secretId = liveSecret.id;
193
199
  if (decision.action === "mint-adopt") {
194
200
  // Labels ONLY: `value` is omitted so the live credential survives a failure here and no token can be
195
- // stranded, and `projectId` is omitted because a placement is identity rather than drift.
201
+ // stranded, and the team is omitted because a team is identity rather than drift.
196
202
  await patchSecretPendingMarker(apis, outcomes, decision.secretSlug, secretId, {
197
203
  [MANAGED_BY_LABEL_KEY]: factory,
198
204
  [PENDING_GATEWAY_KEY_TOKEN_LABEL_KEY]: decision.slug,
@@ -209,13 +215,13 @@ async function mintGatewayKey(decision, apis, outcomes, applied, projectId, toke
209
215
  displayName: payload.displayName,
210
216
  labels: createLabels(payload.labels, { [MANAGED_BY_LABEL_KEY]: factory }),
211
217
  ...(payload.monthlyCreditCap !== undefined ? { monthlyCreditCap: payload.monthlyCreditCap } : {}),
212
- ...(projectId !== undefined ? { projectId } : {}),
218
+ ...placement,
213
219
  },
214
220
  });
215
221
  }
216
222
  catch (error) {
217
223
  if (httpStatusOf(error) === 409)
218
- throw projectFenceRefusal(decision.slug);
224
+ throw hiddenOrRevokedSlugRefusal(decision.slug);
219
225
  throw error;
220
226
  }
221
227
  }, { kind: "gateway-key", slug: decision.slug, op: "create" }, outcomes);
@@ -228,9 +234,11 @@ async function mintGatewayKey(decision, apis, outcomes, applied, projectId, toke
228
234
  updateSecretRequest: {
229
235
  value: tokens.get(refKey),
230
236
  labels: finalLabels,
231
- // No `projectId`: a `mint-new` reservation already stamped the create, and an adopted or resumed
232
- // Secret is only here because the decide phase found it already in the declared project.
237
+ // No team: a `mint-new` reservation already placed the create, and an adopted or resumed Secret is
238
+ // only here because the decide phase found it already in the declared team.
233
239
  ...(injection !== undefined ? { injection } : {}),
240
+ // A `mint-new` reservation already carried the hosts on its create.
241
+ ...(decision.action !== "mint-new" && declaredHosts !== undefined ? { hosts: declaredHosts } : {}),
234
242
  },
235
243
  }), { kind: "secret", slug: decision.secretSlug, op: "update" }, outcomes);
236
244
  // The pinned asymmetry between the pair's two rows: the `gateway-key` row is the MINT, whose sensitivity
@@ -244,15 +252,14 @@ async function mintGatewayKey(decision, apis, outcomes, applied, projectId, toke
244
252
  * Raised as a {@link GatewayKeyRotationError} so `failing`/`mapError` pass the message through verbatim,
245
253
  * a `PreflightError` being already-redacted named output.
246
254
  */
247
- function projectFenceRefusal(slug) {
248
- return new GatewayKeyRotationError(`gateway key '${slug}': a gateway key with this slug already exists outside this project's ` +
249
- `visibility, or was previously revoked (revoked slugs are permanently reserved); choose another ` +
250
- `slug. \`UpdateGatewayKeyRequest\` carries no project move, so a key you cannot see cannot be ` +
251
- `adopted into this project.`);
255
+ function hiddenOrRevokedSlugRefusal(slug) {
256
+ return new GatewayKeyRotationError(`gateway key '${slug}': a gateway key with this slug already exists in a team this key cannot read, or ` +
257
+ `was previously revoked (revoked slugs are permanently reserved); choose another slug. A team is fixed ` +
258
+ `when a key is created, so a key you cannot see cannot be adopted into this team.`);
252
259
  }
253
260
  /**
254
261
  * The body is EXACTLY the labels map: `value` is deliberately absent, so the live credential survives a
255
- * crash here, and so is `projectId`.
262
+ * crash here, and so is the team.
256
263
  */
257
264
  async function patchSecretPendingMarker(apis, outcomes, slug, id, labels) {
258
265
  await failing(() => apis.secrets.updateSecret({ id, updateSecretRequest: { labels } }), { kind: "secret", slug, op: "update" }, outcomes);
@@ -66,8 +66,8 @@ export async function decideModelProviderKeys(plan, apis, env, outcomes) {
66
66
  const live = scanned.find((row) => row.modelProvider === modelProvider);
67
67
  // This lane's three pre-write refusals are one call to the ONE aggregate classifier, which `orchestra fdk diff`
68
68
  // stamps `DiffEntry.blocked` from identically, so a preview can never present as executable a
69
- // declaration this phase is about to refuse. No `project` is supplied because a BYOK row is org-commons
70
- // by construction, so there is no placement to compare and the classifier's identity arm stays off.
69
+ // declaration this phase is about to refuse. No team is supplied because a BYOK row is organization-wide
70
+ // by construction, so there is no team to compare and the classifier's identity arm stays off.
71
71
  refuseIf("model-provider-key", resource, { env, ...(live !== undefined ? { live } : {}) }, outcomes);
72
72
  const credentialSource = allRootSourceLabels(credential).join(", ");
73
73
  // Credential PRESENCE only, never the bytes, through the same predicate `orchestra fdk diff` marks sensitivity
@@ -3,7 +3,7 @@ import { type PipelinePayload } from "../constructs/pipeline.js";
3
3
  import { type ConditionResolvers } from "./condition-references.js";
4
4
  import type { TriggerDocument } from "../constructs/trigger.js";
5
5
  import type { PlanResource } from "../core/plan.js";
6
- import { type ApplyOutcome, type DesiredProject } from "./apply-core.js";
6
+ import { type ApplyOutcome, type TeamResolver } from "./apply-core.js";
7
7
  import type { PlatformApis } from "./client.js";
8
8
  /** What one apply does to one pipeline, computed from the declaration and the live read. */
9
9
  export interface PipelineChange {
@@ -34,10 +34,10 @@ export interface PendingPipelineWrite {
34
34
  }
35
35
  /** Resolves an agent reference, a managed token or an id or slug, to its id. */
36
36
  export type AgentIdResolver = (ref: string) => Promise<string>;
37
- /** A group by id or slug; orchestra declares no group, so a missing one is always the author's to fix. */
38
- export declare function groupIdOf(apis: PlatformApis, ref: string): Promise<string>;
39
- /** The declaration with every agent and group its stage gates name as the id the platform stores. */
40
- export declare function resolveGateReferences(payload: PipelinePayload, resolvers: Pick<ConditionResolvers, "agent" | "group">): Promise<PipelinePayload>;
37
+ /** A team a gate or a rule names, by id or slug, as the id the platform stores. */
38
+ export declare function teamIdOf(apis: PlatformApis, ref: string): Promise<string>;
39
+ /** The declaration with every agent and team its stage gates name as the id the platform stores. */
40
+ export declare function resolveGateReferences(payload: PipelinePayload, resolvers: Pick<ConditionResolvers, "agent" | "team">): Promise<PipelinePayload>;
41
41
  export declare function pipelineChange(payload: PipelinePayload, live: Pipeline | undefined): Promise<PipelineChange>;
42
42
  /** Name, description, labels and stages all agree, and no stage is to be removed. */
43
43
  export declare function pipelineUnchanged(payload: PipelinePayload, live: Pipeline): Promise<boolean>;
@@ -46,11 +46,10 @@ export declare function pipelineUnchanged(payload: PipelinePayload, live: Pipeli
46
46
  * every live stage, and holds the removals, gates and closes for {@link finishPipelineWrites}.
47
47
  */
48
48
  export declare function applyPipeline(resource: PlanResource, apis: PlatformApis, outcomes: ApplyOutcome[], applied: Map<string, string>, context: {
49
- projectId: string | undefined;
50
- desiredProject: DesiredProject;
49
+ teams: TeamResolver;
51
50
  resolveAgentId: AgentIdResolver;
52
- /** Resolves a group reference, an id or slug, to its id. */
53
- resolveGroupId: (ref: string) => Promise<string>;
51
+ /** Resolves a team reference, an id or slug, to its id. */
52
+ resolveTeamId: (ref: string) => Promise<string>;
54
53
  notices?: string[];
55
54
  pending: PendingPipelineWrite[];
56
55
  }): Promise<void>;
@@ -6,25 +6,25 @@
6
6
  // by its live id, so its items stay where they are. The workflow entries are written after the workflow phase
7
7
  // (`pipeline-workflow-reconcile.ts`).
8
8
  //
9
- // A stage gate names agents and groups by slug in factory code, and the platform stores and reads back their
9
+ // A stage gate names agents and teams by slug in factory code, and the platform stores and reads back their
10
10
  // ids, so the declaration is resolved to ids before any comparison or write.
11
11
  import { OPEN_CATEGORIES } from "../constructs/pipeline.js";
12
12
  import { resolveConditionReferences, resolveStageInField } from "./condition-references.js";
13
13
  import { wireNode } from "../constructs/workflow-filter.js";
14
14
  import { createLabels, labelsPatch, MANAGED_BY_LABEL_KEY } from "../core/labels.js";
15
15
  import { refToken } from "../core/tokens.js";
16
- import { exactDeepEqual, failing, getBySlugOrUndefined, } from "./apply-core.js";
16
+ import { exactDeepEqual, failing, getBySlugOrUndefined, stampTeam, } from "./apply-core.js";
17
17
  import { PreflightError } from "./preflight-errors.js";
18
18
  import { refuseIf } from "./refusals.js";
19
- /** A group by id or slug; orchestra declares no group, so a missing one is always the author's to fix. */
20
- export async function groupIdOf(apis, ref) {
21
- const live = await getBySlugOrUndefined(() => apis.groups.getGroup({ id: ref }));
19
+ /** A team a gate or a rule names, by id or slug, as the id the platform stores. */
20
+ export async function teamIdOf(apis, ref) {
21
+ const live = await getBySlugOrUndefined(() => apis.teams.getTeam({ id: ref }));
22
22
  if (live === undefined) {
23
- throw new PreflightError(`group '${ref}' was not found in this organization. Create it or fix the reference.`);
23
+ throw new PreflightError(`team '${ref}' was not found in this organization. Create it or fix the reference.`);
24
24
  }
25
25
  return live.id;
26
26
  }
27
- /** The declaration with every agent and group its stage gates name as the id the platform stores. */
27
+ /** The declaration with every agent and team its stage gates name as the id the platform stores. */
28
28
  export async function resolveGateReferences(payload, resolvers) {
29
29
  const stages = await Promise.all(payload.stages.map(async (stage) => ({
30
30
  ...stage,
@@ -103,14 +103,18 @@ export async function applyPipeline(resource, apis, outcomes, applied, context)
103
103
  const surface = { kind: "pipeline", slug: resource.slug };
104
104
  const payload = await failing(() => resolveGateReferences(resource.payload, {
105
105
  agent: context.resolveAgentId,
106
- group: context.resolveGroupId,
106
+ team: context.resolveTeamId,
107
107
  }), { ...surface, op: "get" }, outcomes);
108
+ const declared = await context.teams.desired(payload.teamId, { ...surface, op: "get" }, outcomes);
108
109
  const live = await failing(() => getBySlugOrUndefined(() => apis.pipelines.getPipeline({ id: resource.slug })), { ...surface, op: "get" }, outcomes);
109
- refuseIf("pipeline", resource, { project: context.desiredProject, ...(live !== undefined ? { live } : {}) }, outcomes);
110
+ const team = await context.teams.judged(declared, live, { ...surface, op: "get" }, outcomes);
111
+ refuseIf("pipeline", resource, { ...(team !== undefined ? { team } : {}), ...(live !== undefined ? { live } : {}) }, outcomes);
110
112
  let id;
111
113
  let action;
112
114
  if (live === undefined) {
113
115
  const labels = createLabels(payload.labels);
116
+ const placement = {};
117
+ stampTeam(placement, team);
114
118
  const body = {
115
119
  slug: resource.slug,
116
120
  name: payload.name,
@@ -118,7 +122,7 @@ export async function applyPipeline(resource, apis, outcomes, applied, context)
118
122
  itemSlugPrefix: payload.itemSlugPrefix,
119
123
  labels,
120
124
  stages: (await pipelineChange(payload, undefined)).finalStages,
121
- ...(context.projectId !== undefined ? { projectId: context.projectId } : {}),
125
+ ...placement,
122
126
  };
123
127
  const created = await failing(() => apis.pipelines.createPipeline({ createPipelineRequest: body }), { ...surface, op: "create" }, outcomes);
124
128
  id = created.id;
@@ -1,6 +1,6 @@
1
1
  import type { Connection } from "@orchestraworks/client";
2
2
  import type { PlanDocument, PlanImport } from "../core/plan.js";
3
- import { type ApplyOutcome, type PendingSecretWrite } from "./apply-core.js";
3
+ import { type ApplyOutcome, type PendingSecretWrite, type TeamResolver } from "./apply-core.js";
4
4
  import { type ApprovalLevel } from "../cli/core/approval-policy.js";
5
5
  import { type PlatformApis } from "./client.js";
6
6
  import { type Provenance } from "./provenance.js";
@@ -12,14 +12,6 @@ export { ApplyError, describeTargetOrganization, getBySlugOrUndefined, platformE
12
12
  export type { Action, ApplyOutcome, PendingSecretWrite } from "./apply-core.js";
13
13
  /** Given every pending write, resolve `true` to proceed. */
14
14
  export type ConfirmFn = (writes: PendingSecretWrite[]) => Promise<boolean>;
15
- /**
16
- * Carries the factory's resolved project id out of the plan phase, for both a managed project and a
17
- * `fromSlug` import. The trigger phase needs it because a synth `${ref:project:…}` token cannot be resolved
18
- * any earlier. An out-param rather than a new return shape, so existing callers are untouched.
19
- */
20
- export interface ProjectResolution {
21
- projectId?: string;
22
- }
23
15
  export interface ReconcileOptions {
24
16
  approveSecrets: boolean;
25
17
  confirm: ConfirmFn;
@@ -111,6 +103,11 @@ export interface ReconcileOptions {
111
103
  * key is dropped. The engine never logs, stores or throws it.
112
104
  */
113
105
  onComputeProviderKey?: (step: ComputeProviderKeyStep) => void;
106
+ /**
107
+ * Resolves each row's team. The CLI passes the one it also hands the trigger phase, so a managed team
108
+ * created here resolves there; absent, apply builds its own over the run's `applied` map.
109
+ */
110
+ teams?: TeamResolver;
114
111
  }
115
112
  /** One expression, called at the one place a gate decision is made, so the derivation cannot drift. */
116
113
  export declare function effectiveApprovalLevel(opts: Pick<ReconcileOptions, "requireApproval" | "approveSecrets">): ApprovalLevel;
@@ -123,8 +120,6 @@ export declare function effectiveApprovalLevel(opts: Pick<ReconcileOptions, "req
123
120
  export declare class UnresolvedManagedRefError extends PreflightError {
124
121
  constructor(message: string);
125
122
  }
126
- /** Exported so the workflow phase resolves the same stamp through the identical seam. */
127
- export declare function resolveProjectReference(apis: PlatformApis, ref: string, applied: Map<string, string>): Promise<string>;
128
123
  /** A stable, non-secret authorization action surfaced only after the complete apply graph succeeds. */
129
124
  export interface AuthorizationHandoff {
130
125
  connectionId: string;
@@ -153,7 +148,7 @@ export declare class ConnectionResolutionContext {
153
148
  * return shape, so every existing `ApplyOutcome[]`-returning caller is untouched; the workflow phase reuses
154
149
  * the map it fills to resolve each agent assignment through the identical machinery.
155
150
  */
156
- export declare function reconcile(plan: PlanDocument, apis: PlatformApis, opts: ReconcileOptions, appliedOut?: Map<string, string>, projectOut?: ProjectResolution): Promise<ApplyOutcome[]>;
151
+ export declare function reconcile(plan: PlanDocument, apis: PlatformApis, opts: ReconcileOptions, appliedOut?: Map<string, string>): Promise<ApplyOutcome[]>;
157
152
  /**
158
153
  * `status` is server-owned and excluded. `autoRespond` is compared EXACTLY rather than by the subset rule,
159
154
  * because its PATCH replaces the whole block — under the subset rule, dropping an authored knob would read as
@@ -165,15 +160,6 @@ export declare function connectionUnchanged(desired: Record<string, unknown>, li
165
160
  * re-run. Env-markers pre-resolve fail-fast, so an unset variable never surfaces mid-apply.
166
161
  */
167
162
  export declare function resolveConnectionReference(apis: PlatformApis, ref: string, imports: PlanImport[], applied: Map<string, string>, env: NodeJS.ProcessEnv): Promise<string>;
168
- /**
169
- * Apply and preview must classify a binding identically or the two paths drift, so the discrimination lives
170
- * here once. `connection` is not a secret, so it stands outside the reserved-secret guard and the
171
- * pairwise-distinct check: one connection may back several rules. `secret` is the DEFAULT arm on purpose — no
172
- * `connectionId`, so a secret.
173
- */
174
- export type CredentialBindingArm = "connection" | "secret";
175
- /** Decides an egress credential binding's arm — see {@link CredentialBindingArm} for what each one means. */
176
- export declare function credentialBindingArm(binding: Record<string, unknown>): CredentialBindingArm;
177
163
  /**
178
164
  * `policyVersion` is server-managed, so it is excluded. The platform leaves an empty `image`, `command` or
179
165
  * `setup` out of a read, so the empty value orchestra sends for an undeclared one matches an absent live one.