@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,18 +1,17 @@
1
1
  import type { TriggerDocument } from "../constructs/trigger.js";
2
2
  export type { TriggerDocument } from "../constructs/trigger.js";
3
3
  /**
4
- * Fixed dependency order — `PLAN_KINDS.indexOf(kind)` is the sort key for resources within a plan, so the
5
- * edges that force it are: `project` first, because it is the confinement scope every stamped resource
6
- * resolves its `projectId` against; `gateway-key` before `secret`, because a key's paired Secret takes its
7
- * value from the key; `secret` before `connector` and `connection`, which reference secrets for their
8
- * app-registration and auth material; `connector` before `connection`, which names it; `connection` and
9
- * `compute-provider` before `environment`, which binds a connection in its egress policy and names the
10
- * compute provider whose Launcher runs its machines; and `skill` before `agent`, whose `skillIds` resolve to
11
- * skills applied earlier in the run; `pipeline` after `agent`, whose ids its check grants name. `workflow` is
12
- * not reconciled with the rest: it applies in its own phase after the plan kinds, because its rules name the
13
- * pipeline's live stages and the pipeline's entries name the version it writes.
4
+ * Fixed dependency order: `PLAN_KINDS.indexOf(kind)` sorts a plan's resources. `team` comes first, because every
5
+ * placed row resolves its `teamId` against it; `role` before `team-membership`, whose rows name custom roles;
6
+ * `gateway-key` before `secret`, whose paired Secret takes the key's value; `secret` before `connector` and
7
+ * `connection`, which reference secrets; `connector` before `connection`, which names it; `connection` before
8
+ * `environment`, so an incomplete installation stops the apply before any environment is written;
9
+ * `compute-provider` before `environment`, which names it; `skill` before `agent`, whose `skillIds` resolve to it;
10
+ * `pipeline` and `team-membership` after `agent`, whose id each names. `workflow` applies in its own phase after the
11
+ * plan kinds, because its rules name the pipeline's live stages and the pipeline's entries name the version it
12
+ * writes.
14
13
  */
15
- export declare const PLAN_KINDS: readonly ["project", "gateway-key", "model-provider-key", "secret", "connector", "connection", "compute-provider", "environment", "skill", "agent", "pipeline", "workflow"];
14
+ export declare const PLAN_KINDS: readonly ["team", "role", "gateway-key", "model-provider-key", "secret", "connector", "connection", "compute-provider", "environment", "skill", "agent", "pipeline", "team-membership", "workflow"];
16
15
  export type PlanKind = (typeof PLAN_KINDS)[number];
17
16
  /**
18
17
  * Names only, never values: every compound arm is a recipe resolved at apply. The `cli:` suffix is a display
@@ -39,6 +38,10 @@ export type ValueFrom = `env:${string}` | `cli:${string}` | {
39
38
  accessKeyIdSource: ValueFrom;
40
39
  secretAccessKeySource: ValueFrom;
41
40
  };
41
+ } | {
42
+ fields: {
43
+ [name: string]: ValueFrom;
44
+ };
42
45
  } | {
43
46
  gatewayKey: {
44
47
  ref: string;
package/dist/core/plan.js CHANGED
@@ -2,19 +2,19 @@
2
2
  // ever enters it: cross-references are symbolic `${ref:…}` tokens and declared secret values are byte-free
3
3
  // `valueFrom` recipes naming a source.
4
4
  /**
5
- * Fixed dependency order — `PLAN_KINDS.indexOf(kind)` is the sort key for resources within a plan, so the
6
- * edges that force it are: `project` first, because it is the confinement scope every stamped resource
7
- * resolves its `projectId` against; `gateway-key` before `secret`, because a key's paired Secret takes its
8
- * value from the key; `secret` before `connector` and `connection`, which reference secrets for their
9
- * app-registration and auth material; `connector` before `connection`, which names it; `connection` and
10
- * `compute-provider` before `environment`, which binds a connection in its egress policy and names the
11
- * compute provider whose Launcher runs its machines; and `skill` before `agent`, whose `skillIds` resolve to
12
- * skills applied earlier in the run; `pipeline` after `agent`, whose ids its check grants name. `workflow` is
13
- * not reconciled with the rest: it applies in its own phase after the plan kinds, because its rules name the
14
- * pipeline's live stages and the pipeline's entries name the version it writes.
5
+ * Fixed dependency order: `PLAN_KINDS.indexOf(kind)` sorts a plan's resources. `team` comes first, because every
6
+ * placed row resolves its `teamId` against it; `role` before `team-membership`, whose rows name custom roles;
7
+ * `gateway-key` before `secret`, whose paired Secret takes the key's value; `secret` before `connector` and
8
+ * `connection`, which reference secrets; `connector` before `connection`, which names it; `connection` before
9
+ * `environment`, so an incomplete installation stops the apply before any environment is written;
10
+ * `compute-provider` before `environment`, which names it; `skill` before `agent`, whose `skillIds` resolve to it;
11
+ * `pipeline` and `team-membership` after `agent`, whose id each names. `workflow` applies in its own phase after the
12
+ * plan kinds, because its rules name the pipeline's live stages and the pipeline's entries name the version it
13
+ * writes.
15
14
  */
16
15
  export const PLAN_KINDS = [
17
- "project",
16
+ "team",
17
+ "role",
18
18
  "gateway-key",
19
19
  "model-provider-key",
20
20
  "secret",
@@ -25,6 +25,7 @@ export const PLAN_KINDS = [
25
25
  "skill",
26
26
  "agent",
27
27
  "pipeline",
28
+ "team-membership",
28
29
  "workflow",
29
30
  ];
30
31
  export function emptyPlanDocument(factory) {
@@ -1,10 +1,11 @@
1
1
  import { PLAN_FEATURE_DISABLED_CODE } from "../cli/core/errors.js";
2
2
  import type { PlanKind, PlanResource } from "../core/plan.js";
3
+ import { type PlatformApis } from "./client.js";
3
4
  /**
4
5
  * `needs-attention` is a connection created or observed `NEEDS_ATTENTION` with a server-owned
5
6
  * `auth.authorizationUrl` — non-fatal: apply continues and the context collects its setup handoff.
6
7
  */
7
- export type Action = "created" | "updated" | "unchanged" | "needs-attention";
8
+ export type Action = "created" | "updated" | "unchanged" | "needs-attention" | "refused";
8
9
  /** `id` is the resolved canonical id. */
9
10
  export interface ApplyOutcome {
10
11
  path: string;
@@ -21,6 +22,8 @@ export interface ApplyOutcome {
21
22
  * itself, whose sensitivity is output-side. Value-free: it says THAT bytes were written, never what.
22
23
  */
23
24
  sensitive?: "credential-value";
25
+ /** Set on a `refused` row: why the platform would not write it, in the platform's own words. */
26
+ reason?: string;
24
27
  /**
25
28
  * Set when the bytes this apply wrote REPLACED the live value of a credential that already existed, from a
26
29
  * source the author did not type at the prompt. Never present without {@link sensitive}: a replacement is a
@@ -79,101 +82,102 @@ export declare class ApplyError extends Error {
79
82
  });
80
83
  }
81
84
  /**
82
- * - `resolved` — the Factory's project exists and its canonical id is in hand. Apply only ever
83
- * reaches the comparison in this state.
84
- * - `pending-managed` — a MANAGED project declaration whose row does not exist yet, which only diff sees.
85
- * No live stamp can equal a project that has not been created, so every readable row
85
+ * - `resolved` — the declared team exists and its canonical id is in hand. `shared` marks Shared, the
86
+ * team a row that names none is created in.
87
+ * - `shared` — the row names no team, so it is in Shared, and no live row has needed Shared's id
88
+ * yet. A live row that reports a team is judged only after `TeamResolver.judged` has
89
+ * read Shared, so a platform that serves no teams is never asked for one.
90
+ * - `pending-managed` — a team this program manages whose row does not exist yet, which only diff sees. No
91
+ * live row can sit in a team that has not been created, so every readable row
86
92
  * conflicts; the payload names the declared plan slug and never invents an id.
87
- * - `none` — the declaration manages no project, so the field is unmanaged and inert.
88
93
  */
89
- export type DesiredProject = {
94
+ export type DesiredTeam = {
90
95
  state: "resolved";
91
- projectId: string;
96
+ teamId: string;
97
+ shared?: boolean;
92
98
  } | {
93
- state: "pending-managed";
94
- projectRef: string;
99
+ state: "shared";
95
100
  } | {
96
- state: "none";
101
+ state: "pending-managed";
102
+ teamRef: string;
97
103
  };
98
104
  /**
99
- * No lane spells this mapping itself, because `undefined` must mean "the field is UNMANAGED and inert" and
100
- * never "commons": a lane writing its own ternary could get that backwards and start refusing every
101
- * project-less declaration whose live row someone moved in the console.
102
- */
103
- export declare function desiredProjectOf(projectId: string | undefined): DesiredProject;
104
- /**
105
- * The diff-side twin, for the one state apply never sees. `projectRef` is the project's DECLARED PLAN SLUG,
106
- * the single canonical public representation of a pending project. `undefined` maps to `none` rather than to
107
- * a fabricated reference: the synthesized `${ref:project:…}` token is explicitly not one.
108
- */
109
- export declare function pendingDesiredProject(projectRef: string | undefined): DesiredProject;
110
- /**
111
- * `liveProjectId` is normalized: the generated client represents a commons row as `projectId: undefined`, and
112
- * no public payload may expose that — commons is `null`.
105
+ * `liveTeamId` is `null` for a live row that reports no team, which the platform reads as Shared.
113
106
  *
114
- * `pairContext` is LIFECYCLE-NEUTRAL. It says only that two slugs are the members of one gateway-key pair,
115
- * claiming nothing about whether that pair is steady, mid-mint, adopted or resumed, which is what makes its
116
- * two remedies safe at every point in the mint protocol.
107
+ * `pairContext` says only that two slugs are the members of one gateway-key pair, claiming nothing about
108
+ * where that pair is in the mint protocol, which is what makes its remedy safe at every point.
117
109
  */
118
- export type ProjectIdentityRefusal = {
110
+ export type TeamIdentityRefusal = {
119
111
  resourceKind: string;
120
112
  slug: string;
121
- liveProjectId: string | null;
122
- desiredProject: {
123
- state: "resolved";
124
- projectId: string;
125
- } | {
126
- state: "pending-managed";
127
- projectRef: string;
128
- };
113
+ liveTeamId: string | null;
114
+ desiredTeam: DesiredTeam;
129
115
  pairContext?: {
130
116
  kind: "gateway-key-secret";
131
117
  gatewayKeySlug: string;
132
118
  secretSlug: string;
133
119
  };
134
120
  };
135
- /**
136
- * A distinct class rather than an `ApplyError` carrying similar text, so `instanceof` and `error.code`
137
- * survive all four conversion boundaries the raised error passes through.
138
- */
139
- export declare class ProjectIdentityConflictError extends ApplyError {
140
- readonly code = "PROJECT_IDENTITY_CONFLICT";
141
- readonly refusal: ProjectIdentityRefusal;
142
- constructor(refusal: ProjectIdentityRefusal, outcomes: ApplyOutcome[], options?: {
121
+ /** A distinct class, so `instanceof` and `error.code` survive every boundary the raised error crosses. */
122
+ export declare class TeamIdentityConflictError extends ApplyError {
123
+ readonly code = "TEAM_IDENTITY_CONFLICT";
124
+ readonly refusal: TeamIdentityRefusal;
125
+ constructor(refusal: TeamIdentityRefusal, outcomes: ApplyOutcome[], options?: {
143
126
  cause?: unknown;
144
127
  });
145
128
  }
146
- /**
147
- * Every lane calls this rather than `new`-ing the error, so the outcomes are always COPIED: a later mutation
148
- * of the caller's accumulator cannot rewrite the partial progress a raised error already reported.
149
- */
150
- export declare function projectIdentityConflict(refusal: ProjectIdentityRefusal, outcomes: ApplyOutcome[], options?: {
129
+ /** Copies the outcomes, so a later push to the caller's accumulator cannot rewrite the progress reported. */
130
+ export declare function teamIdentityConflict(refusal: TeamIdentityRefusal, outcomes: ApplyOutcome[], options?: {
151
131
  cause?: unknown;
152
- }): ProjectIdentityConflictError;
132
+ }): TeamIdentityConflictError;
153
133
  /**
154
- * NEVER throws, so the diff path can use it as a per-row verdict — a throw would abort the whole preview.
155
- *
156
- * `live` is the LIVE ROW rather than a bare id deliberately: an absent row has no identity to conflict with
157
- * and must still apply as a create, whereas a readable row whose `projectId` is absent really is in the org
158
- * commons. Passing `live?.projectId` would collapse those two and refuse every create. The commons
159
- * normalization happens here and only here.
134
+ * NEVER throws, so the diff path can use it as a per-row verdict. `live` is the live row rather than a bare
135
+ * id: an absent row has nothing to conflict with and still applies as a create.
160
136
  */
161
- export declare function classifyProjectIdentity(input: {
137
+ export declare function classifyTeamIdentity(input: {
162
138
  resourceKind: string;
163
139
  slug: string;
164
140
  live: {
165
- projectId?: string | null;
141
+ teamId?: string | null;
166
142
  } | undefined;
167
- desired: DesiredProject;
168
- pairContext?: ProjectIdentityRefusal["pairContext"];
169
- }): ProjectIdentityRefusal | undefined;
143
+ desired: DesiredTeam;
144
+ pairContext?: TeamIdentityRefusal["pairContext"];
145
+ }): TeamIdentityRefusal | undefined;
146
+ /**
147
+ * The one formatter, called by the error's own message and by every diff renderer, so apply and preview cannot
148
+ * word one conflict two ways.
149
+ */
150
+ export declare function describeTeamIdentityRefusal(refusal: TeamIdentityRefusal): string;
151
+ /**
152
+ * Resolves the team each row names to the id apply compares and sends. A row that names none is in Shared;
153
+ * a managed team is read from `applied` once its phase has run; an imported team is read by id or slug once
154
+ * per run. In a preview, a managed team that does not exist yet is `pending-managed`, and an import the
155
+ * caller cannot read is left unjudged rather than refused.
156
+ */
157
+ export interface TeamResolver {
158
+ desired(raw: unknown, ctx: ErrorSurface, outcomes: ApplyOutcome[]): Promise<DesiredTeam | undefined>;
159
+ /**
160
+ * The team to judge `live` against. A row in Shared whose live row reports a team needs Shared's id to tell
161
+ * Shared from another team, so Shared is read here and only then.
162
+ */
163
+ judged(team: DesiredTeam | undefined, live: unknown, ctx: ErrorSurface, outcomes: ApplyOutcome[]): Promise<DesiredTeam | undefined>;
164
+ /** Shared's row, the organization's built-in team. */
165
+ shared(ctx: ErrorSurface, outcomes: ApplyOutcome[]): Promise<{
166
+ id: string;
167
+ }>;
168
+ /** A managed team the platform refused to write, so a row placed in it stops with a named reason. */
169
+ markRefused(token: string, slug: string): void;
170
+ }
171
+ export declare function createTeamResolver(apis: PlatformApis, applied: ReadonlyMap<string, string>, options?: {
172
+ preview?: {
173
+ pendingManaged: ReadonlyMap<string, string>;
174
+ };
175
+ }): TeamResolver;
170
176
  /**
171
- * The one formatter, called by the error's own message and by all three diff renderers, so apply and preview
172
- * cannot word the same conflict differently. It offers only remedies the affected kind actually supports, and
173
- * every create-in-the-intended-project remedy insists on a NEW slug because reusing the old one just
174
- * rediscovers or collides with the row already there.
177
+ * The id a create body carries: the resolved team, or nothing for Shared, so a team-less row's body is the
178
+ * one the platform has always taken. Every update body strips the field, because a team is fixed at create.
175
179
  */
176
- export declare function describeProjectIdentityRefusal(refusal: ProjectIdentityRefusal): string;
180
+ export declare function stampTeam(body: Record<string, unknown>, desired: DesiredTeam | undefined): void;
177
181
  /**
178
182
  * Records the outcome row plus its `${ref:kind:path}` → canonical-id entry, so a later resource can resolve a
179
183
  * reference to it. `markers` is stamped by the lane that PERFORMED the write, because only that lane knows
@@ -6,7 +6,8 @@
6
6
  // Value hygiene: nothing here ever sees a secret value. `mapError` reads the platform's `ApiError` body,
7
7
  // whose message/code/details triple is non-secret by the platform's own contract.
8
8
  import { PLAN_FEATURE_DISABLED_CODE, readApiError } from "../cli/core/errors.js";
9
- import { refToken } from "../core/tokens.js";
9
+ import { isRefToken, refToken } from "../core/tokens.js";
10
+ import { SHARED_TEAM_SLUG } from "../constructs/team.js";
10
11
  import { httpStatusOf } from "./client.js";
11
12
  import { PreflightError, RedactedRefError } from "./preflight.js";
12
13
  /**
@@ -35,123 +36,139 @@ export class ApplyError extends Error {
35
36
  this.outcomes = outcomes;
36
37
  }
37
38
  }
38
- /**
39
- * No lane spells this mapping itself, because `undefined` must mean "the field is UNMANAGED and inert" and
40
- * never "commons": a lane writing its own ternary could get that backwards and start refusing every
41
- * project-less declaration whose live row someone moved in the console.
42
- */
43
- export function desiredProjectOf(projectId) {
44
- return projectId === undefined ? { state: "none" } : { state: "resolved", projectId };
45
- }
46
- /**
47
- * The diff-side twin, for the one state apply never sees. `projectRef` is the project's DECLARED PLAN SLUG,
48
- * the single canonical public representation of a pending project. `undefined` maps to `none` rather than to
49
- * a fabricated reference: the synthesized `${ref:project:…}` token is explicitly not one.
50
- */
51
- export function pendingDesiredProject(projectRef) {
52
- return projectRef === undefined ? { state: "none" } : { state: "pending-managed", projectRef };
53
- }
54
- /**
55
- * A distinct class rather than an `ApplyError` carrying similar text, so `instanceof` and `error.code`
56
- * survive all four conversion boundaries the raised error passes through.
57
- */
58
- export class ProjectIdentityConflictError extends ApplyError {
59
- code = "PROJECT_IDENTITY_CONFLICT";
39
+ /** A distinct class, so `instanceof` and `error.code` survive every boundary the raised error crosses. */
40
+ export class TeamIdentityConflictError extends ApplyError {
41
+ code = "TEAM_IDENTITY_CONFLICT";
60
42
  refusal;
61
43
  constructor(refusal, outcomes, options) {
62
- super(describeProjectIdentityRefusal(refusal), outcomes, options);
63
- this.name = "ProjectIdentityConflictError";
44
+ super(describeTeamIdentityRefusal(refusal), outcomes, options);
45
+ this.name = "TeamIdentityConflictError";
64
46
  this.refusal = refusal;
65
47
  }
66
48
  }
67
- /**
68
- * Every lane calls this rather than `new`-ing the error, so the outcomes are always COPIED: a later mutation
69
- * of the caller's accumulator cannot rewrite the partial progress a raised error already reported.
70
- */
71
- export function projectIdentityConflict(refusal, outcomes, options) {
72
- return new ProjectIdentityConflictError(refusal, [...outcomes], options);
49
+ /** Copies the outcomes, so a later push to the caller's accumulator cannot rewrite the progress reported. */
50
+ export function teamIdentityConflict(refusal, outcomes, options) {
51
+ return new TeamIdentityConflictError(refusal, [...outcomes], options);
73
52
  }
74
53
  /**
75
- * NEVER throws, so the diff path can use it as a per-row verdict — a throw would abort the whole preview.
76
- *
77
- * `live` is the LIVE ROW rather than a bare id deliberately: an absent row has no identity to conflict with
78
- * and must still apply as a create, whereas a readable row whose `projectId` is absent really is in the org
79
- * commons. Passing `live?.projectId` would collapse those two and refuse every create. The commons
80
- * normalization happens here and only here.
54
+ * NEVER throws, so the diff path can use it as a per-row verdict. `live` is the live row rather than a bare
55
+ * id: an absent row has nothing to conflict with and still applies as a create.
81
56
  */
82
- export function classifyProjectIdentity(input) {
57
+ export function classifyTeamIdentity(input) {
83
58
  const { resourceKind, slug, live, desired, pairContext } = input;
84
- if (live === undefined || desired.state === "none") {
59
+ if (live === undefined)
85
60
  return undefined;
61
+ const liveTeamId = live.teamId ?? null;
62
+ if (desired.state === "resolved") {
63
+ if (liveTeamId === desired.teamId)
64
+ return undefined;
65
+ if (liveTeamId === null && desired.shared === true)
66
+ return undefined;
86
67
  }
87
- const liveProjectId = live.projectId ?? null;
88
- if (desired.state === "resolved" && liveProjectId === desired.projectId) {
68
+ if (desired.state === "shared" && liveTeamId === null)
89
69
  return undefined;
90
- }
91
70
  return {
92
71
  resourceKind,
93
72
  slug,
94
- liveProjectId,
95
- desiredProject: desired,
73
+ liveTeamId,
74
+ desiredTeam: desired,
96
75
  ...(pairContext !== undefined ? { pairContext } : {}),
97
76
  };
98
77
  }
99
78
  /**
100
- * Pinned to the real construct statics by a test, so a construct that gains or loses an importer fails the
101
- * build instead of letting the message lie. A kind absent from the table has NO importer, which is the
102
- * truthful default: the formatter must never recommend one that does not exist.
79
+ * The one formatter, called by the error's own message and by every diff renderer, so apply and preview cannot
80
+ * word one conflict two ways.
103
81
  */
104
- const IMPORTERS_BY_RESOURCE_KIND = {
105
- agent: ["Agent.fromSlug", "Agent.fromId"],
106
- connection: ["Connection.fromSlug", "Connection.fromId", "Connection.fromEnv"],
107
- connector: ["Connector.fromSlug", "Connector.fromId"],
108
- environment: ["Environment.fromSlug"],
109
- secret: ["Secret.fromSlug", "Secret.fromId"],
110
- skill: ["Skill.fromSlug", "Skill.fromId"],
111
- // No entry — and no importer — for `gateway-key`, `workflow`, and `trigger`.
112
- };
113
- /** `a`, `a or b`, `a, b or c` — the importer list, read out in prose. */
114
- function orList(items) {
115
- return items.length <= 1
116
- ? items.join("")
117
- : `${items.slice(0, -1).join(", ")} or ${items[items.length - 1]}`;
82
+ export function describeTeamIdentityRefusal(refusal) {
83
+ const { resourceKind, slug, liveTeamId, desiredTeam, pairContext } = refusal;
84
+ const livePlacement = liveTeamId === null ? "Shared" : `team '${liveTeamId}'`;
85
+ const desiredPlacement = desiredTeam.state === "resolved"
86
+ ? desiredTeam.shared === true
87
+ ? `Shared (team '${desiredTeam.teamId}')`
88
+ : `team '${desiredTeam.teamId}'`
89
+ : desiredTeam.state === "shared"
90
+ ? "Shared"
91
+ : `the team '${desiredTeam.teamRef}', which apply has not created yet`;
92
+ const remedy = pairContext !== undefined
93
+ ? `A gateway key and its paired Secret are one unit (GatewayKey '${pairContext.gatewayKeySlug}' and ` +
94
+ `Secret '${pairContext.secretSlug}'), so act on both: remove both rows and let apply recreate both in ` +
95
+ `the declared team, or declare both back in ${livePlacement}.`
96
+ : `Remove the live row and let apply recreate it in the declared team, or declare it back in ` +
97
+ `${livePlacement}.`;
98
+ return (`${resourceKind} '${slug}': the live row is in ${livePlacement}, but this program places it in ` +
99
+ `${desiredPlacement}. A row's team is fixed when it is created, so apply never moves it. ${remedy}`);
118
100
  }
119
- /**
120
- * The one formatter, called by the error's own message and by all three diff renderers, so apply and preview
121
- * cannot word the same conflict differently. It offers only remedies the affected kind actually supports, and
122
- * every create-in-the-intended-project remedy insists on a NEW slug because reusing the old one just
123
- * rediscovers or collides with the row already there.
124
- */
125
- export function describeProjectIdentityRefusal(refusal) {
126
- const { resourceKind, slug, liveProjectId, desiredProject, pairContext } = refusal;
127
- const livePlacement = liveProjectId === null ? "the org commons (no project)" : `project '${liveProjectId}'`;
128
- const desiredPlacement = desiredProject.state === "resolved"
129
- ? `project '${desiredProject.projectId}'`
130
- : `the managed project '${desiredProject.projectRef}', which apply has not created yet`;
131
- const newSlugReason = `reusing an existing slug would rediscover or collide with the row that is already there`;
132
- const remedy = (() => {
133
- if (pairContext !== undefined) {
134
- return (`A gateway key and its paired Secret are one unit (GatewayKey '${pairContext.gatewayKeySlug}' and ` +
135
- `Secret '${pairContext.secretSlug}'), so both remedies act on the pair: either remove BOTH ` +
136
- `declarations from this Factory, which leaves whatever exists untouched where it is for a human to ` +
137
- `inspect or clean up; or declare BOTH members under NEW slugs in the intended project, which mints a ` +
138
- `fresh pair (${newSlugReason}). Importing the paired Secret is never a remedy: its value is ` +
139
- `meaningful only as the counterpart of one specific minted key, and may be an inert placeholder or a ` +
140
- `stale credential.`);
101
+ export function createTeamResolver(apis, applied, options = {}) {
102
+ const reads = new Map();
103
+ const refused = new Map();
104
+ const read = (ref) => {
105
+ let found = reads.get(ref);
106
+ if (found === undefined) {
107
+ found = getBySlugOrUndefined(() => apis.teams.getTeam({ id: ref }));
108
+ reads.set(ref, found);
141
109
  }
142
- const importers = IMPORTERS_BY_RESOURCE_KIND[resourceKind];
143
- if (importers === undefined) {
144
- return (`A ${resourceKind} has no importer, so the existing row cannot be referenced from a declaration: ` +
145
- `either declare it under a NEW slug in the intended project (${newSlugReason}), or stop declaring ` +
146
- `that row in this Factory and leave it where it is.`);
110
+ return found;
111
+ };
112
+ const shared = async (ctx, outcomes) => {
113
+ const row = await failing(() => read(SHARED_TEAM_SLUG), ctx, outcomes);
114
+ if (row === undefined) {
115
+ throw new ApplyError(`${ctx.kind} '${ctx.slug}': the organization's Shared team could not be read. Check that the key ` +
116
+ `may read teams in this organization.`, [...outcomes]);
147
117
  }
148
- return (`Either keep the live placement and reference the existing row instead of declaring it ` +
149
- `(${orList(importers)}), or declare it under a NEW slug in the intended project (${newSlugReason}) ` +
150
- `and repoint whatever references it.`);
151
- })();
152
- return (`${resourceKind} '${slug}': the live row is in ${livePlacement}, but this Factory declares ` +
153
- `${desiredPlacement}. A project placement is identity, not drift — orchestra never moves an existing row ` +
154
- `into another project. ${remedy}`);
118
+ return row;
119
+ };
120
+ return {
121
+ shared,
122
+ markRefused(token, slug) {
123
+ refused.set(token, slug);
124
+ },
125
+ async judged(team, live, ctx, outcomes) {
126
+ if (team?.state !== "shared")
127
+ return team;
128
+ const liveTeamId = live?.teamId ?? null;
129
+ if (liveTeamId === null)
130
+ return team;
131
+ const row = await shared(ctx, outcomes);
132
+ return { state: "resolved", teamId: row.id, shared: true };
133
+ },
134
+ async desired(raw, ctx, outcomes) {
135
+ if (typeof raw !== "string" || raw === "")
136
+ return { state: "shared" };
137
+ if (isRefToken(raw)) {
138
+ const id = applied.get(raw);
139
+ if (id !== undefined)
140
+ return { state: "resolved", teamId: id };
141
+ const refusedSlug = refused.get(raw);
142
+ if (refusedSlug !== undefined) {
143
+ throw new ApplyError(`${ctx.kind} '${ctx.slug}' is placed in team '${refusedSlug}', which the platform refused to write ` +
144
+ `with this key, so it cannot be applied.`, [...outcomes]);
145
+ }
146
+ const pending = options.preview?.pendingManaged.get(raw);
147
+ if (pending !== undefined)
148
+ return { state: "pending-managed", teamRef: pending };
149
+ throw new ApplyError(`${ctx.kind} '${ctx.slug}' names team reference ${raw}, which this run has not resolved.`, [...outcomes]);
150
+ }
151
+ const row = options.preview !== undefined
152
+ ? await read(raw).catch(() => undefined)
153
+ : await failing(() => read(raw), ctx, outcomes);
154
+ if (row === undefined) {
155
+ if (options.preview !== undefined)
156
+ return undefined;
157
+ throw new PreflightError(`team '${raw}' was not found in this organization. Create it or fix the reference.`);
158
+ }
159
+ return { state: "resolved", teamId: row.id, ...(row.slug === SHARED_TEAM_SLUG || row.builtIn === true ? { shared: true } : {}) };
160
+ },
161
+ };
162
+ }
163
+ /**
164
+ * The id a create body carries: the resolved team, or nothing for Shared, so a team-less row's body is the
165
+ * one the platform has always taken. Every update body strips the field, because a team is fixed at create.
166
+ */
167
+ export function stampTeam(body, desired) {
168
+ if (desired?.state === "resolved" && desired.shared !== true)
169
+ body.teamId = desired.teamId;
170
+ else
171
+ delete body.teamId;
155
172
  }
156
173
  /**
157
174
  * Records the outcome row plus its `${ref:kind:path}` → canonical-id entry, so a later resource can resolve a
@@ -336,6 +353,14 @@ export async function mapError(error, ctx) {
336
353
  return `${ctx.kind} '${ctx.slug}': the platform refused the ${ctx.op} (403): ${body.message}`;
337
354
  }
338
355
  }
356
+ // The local environment answers every route outside its subset 501 with a sentence naming what it serves, which
357
+ // says more than "a platform error" would.
358
+ if (status === 501) {
359
+ const offender = await platformErrorMessage(error);
360
+ if (offender !== undefined && offender.trim() !== "") {
361
+ return `${ctx.kind} '${ctx.slug}': the platform does not serve this ${ctx.op} (501): ${offender}`;
362
+ }
363
+ }
339
364
  if (status === 401 || status === 403) {
340
365
  return (`${ctx.kind} '${ctx.slug}': the platform returned ${status}. The token is expired or cannot access ` +
341
366
  `the resolved organization — re-login (\`orchestra auth login\`) or fix ORCHESTRA_ORGANIZATION_ID.`);
@@ -1,4 +1,4 @@
1
- import { AgentsApi, ComputeProvidersApi, ConnectionInstallLinksApi, ConnectionsApi, ConnectorsApi, ProvidersApi, EnvironmentsApi, type FetchAPI, FilesApi, GatewayKeysApi, GroupsApi, ModelProviderKeysApi, OrganizationsApi, PipelinesApi, ProjectsApi, SecretsApi, SkillsApi, TriggersApi, UserGrantsApi, VolumesApi, WorkflowsApi } from "@orchestraworks/client";
1
+ import { AgentsApi, ComputeProvidersApi, ConnectionInstallLinksApi, ConnectionsApi, ConnectorsApi, ProvidersApi, EnvironmentsApi, type FetchAPI, FilesApi, GatewayKeysApi, ImagesApi, ModelProviderKeysApi, OrganizationMembershipsApi, OrganizationsApi, PipelinesApi, PoliciesApi, RolesApi, SecretsApi, ServiceAccountsApi, SkillsApi, TeamMembershipsApi, TeamsApi, TriggersApi, UserGrantsApi, VolumesApi, WorkflowsApi } from "@orchestraworks/client";
2
2
  import { type PlatformTarget } from "../cli/core/platform-client.js";
3
3
  /**
4
4
  * `target` is exposed so a downstream phase can re-check the transport rule without re-plumbing the base URL,
@@ -8,11 +8,21 @@ import { type PlatformTarget } from "../cli/core/platform-client.js";
8
8
  export interface PlatformApis {
9
9
  readonly target: PlatformTarget;
10
10
  readonly organizations: OrganizationsApi;
11
- readonly projects: ProjectsApi;
11
+ readonly teams: TeamsApi;
12
+ readonly teamMemberships: TeamMembershipsApi;
13
+ readonly roles: RolesApi;
14
+ /** Read only: apply finds an agent's or a service account's membership to write its team rows on. */
15
+ readonly organizationMemberships: OrganizationMembershipsApi;
16
+ /** Read only: an imported service account must exist; the kit creates none. */
17
+ readonly serviceAccounts: ServiceAccountsApi;
18
+ /** Read only: a custom role's policies are imported by id. */
19
+ readonly policies: PoliciesApi;
12
20
  readonly secrets: SecretsApi;
13
21
  readonly environments: EnvironmentsApi;
14
22
  readonly skills: SkillsApi;
15
23
  readonly files: FilesApi;
24
+ /** Apply's image phase alone: an image is uploaded and read, never declared as a plan kind. */
25
+ readonly images: ImagesApi;
16
26
  readonly agents: AgentsApi;
17
27
  readonly connections: ConnectionsApi;
18
28
  readonly connectors: ConnectorsApi;
@@ -31,8 +41,6 @@ export interface PlatformApis {
31
41
  readonly workflows: WorkflowsApi;
32
42
  readonly triggers: TriggersApi;
33
43
  readonly pipelines: PipelinesApi;
34
- /** Read only: a rule or a stage gate names a group, and orchestra declares none. */
35
- readonly groups: GroupsApi;
36
44
  /** A grant is driven, never declared: no plan kind, no reconcile phase, so the CLI alone uses this. */
37
45
  readonly userGrants: UserGrantsApi;
38
46
  }
@@ -5,7 +5,7 @@
5
5
  //
6
6
  // Secret hygiene invariants this module upholds: the API token travels only in the `Authorization` header and
7
7
  // never the URL; no middleware logs bodies; and no thrown error message interpolates the token.
8
- import { AgentsApi, ComputeProvidersApi, ConnectionInstallLinksApi, ConnectionsApi, ConnectorsApi, ProvidersApi, EnvironmentsApi, FilesApi, GatewayKeysApi, GroupsApi, ModelProviderKeysApi, OrganizationsApi, PipelinesApi, ProjectsApi, SecretsApi, SkillsApi, TriggersApi, UserGrantsApi, VolumesApi, WorkflowsApi, } from "@orchestraworks/client";
8
+ import { AgentsApi, ComputeProvidersApi, ConnectionInstallLinksApi, ConnectionsApi, ConnectorsApi, ProvidersApi, EnvironmentsApi, FilesApi, GatewayKeysApi, ImagesApi, ModelProviderKeysApi, OrganizationMembershipsApi, OrganizationsApi, PipelinesApi, PoliciesApi, RolesApi, SecretsApi, ServiceAccountsApi, SkillsApi, TeamMembershipsApi, TeamsApi, TriggersApi, UserGrantsApi, VolumesApi, WorkflowsApi, } from "@orchestraworks/client";
9
9
  import { platformConfiguration } from "../cli/core/platform-client.js";
10
10
  /**
11
11
  * `fetchApi` is a test seam; production leaves it undefined and the SDK uses global `fetch`. A target with no
@@ -18,11 +18,17 @@ export function makeApis(target, fetchApi) {
18
18
  return {
19
19
  target,
20
20
  organizations: new OrganizationsApi(configuration),
21
- projects: new ProjectsApi(configuration),
21
+ teams: new TeamsApi(configuration),
22
+ teamMemberships: new TeamMembershipsApi(configuration),
23
+ roles: new RolesApi(configuration),
24
+ organizationMemberships: new OrganizationMembershipsApi(configuration),
25
+ serviceAccounts: new ServiceAccountsApi(configuration),
26
+ policies: new PoliciesApi(configuration),
22
27
  secrets: new SecretsApi(configuration),
23
28
  environments: new EnvironmentsApi(configuration),
24
29
  skills: new SkillsApi(configuration),
25
30
  files: new FilesApi(configuration),
31
+ images: new ImagesApi(configuration),
26
32
  agents: new AgentsApi(configuration),
27
33
  connections: new ConnectionsApi(configuration),
28
34
  connectors: new ConnectorsApi(configuration),
@@ -35,7 +41,6 @@ export function makeApis(target, fetchApi) {
35
41
  workflows: new WorkflowsApi(configuration),
36
42
  triggers: new TriggersApi(configuration),
37
43
  pipelines: new PipelinesApi(configuration),
38
- groups: new GroupsApi(configuration),
39
44
  userGrants: new UserGrantsApi(configuration),
40
45
  };
41
46
  }
@@ -1,5 +1,5 @@
1
1
  // The compute provider apply lane: find the record by its slug, then POST it, or PATCH the drifted name and
2
- // the whole Azure block. The record is organization-wide, so no body carries a project.
2
+ // the whole Azure block. The record is organization-wide, so no body carries a team.
3
3
  //
4
4
  // Key hygiene: a create answers the record's key once. The key leaves this lane through exactly one seam,
5
5
  // the caller's `onKey` step, and never enters an outcome, the `applied` id map, a thrown message, `plan.json`