@orchestraworks/cli 0.5.5 → 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.
- package/README.md +1 -1
- package/dist/artifacts/prelude.js +10 -1
- package/dist/cli/api/execute.js +7 -7
- package/dist/cli/core/profile.d.ts +2 -2
- package/dist/cli/factory/apply-preview.d.ts +23 -6
- package/dist/cli/factory/apply-preview.js +70 -43
- package/dist/cli/factory/apply-render.js +12 -4
- package/dist/cli/factory/apply.d.ts +7 -2
- package/dist/cli/factory/apply.js +86 -29
- package/dist/cli/factory/diff.js +20 -12
- package/dist/cli/factory/image-upload.d.ts +90 -0
- package/dist/cli/factory/image-upload.js +489 -0
- package/dist/cli/factory/synth.d.ts +7 -0
- package/dist/cli/factory/synth.js +35 -0
- package/dist/cli/firstRun.d.ts +2 -2
- package/dist/cli/firstRun.js +12 -13
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.js +4 -3
- package/dist/cli/upload.d.ts +3 -1
- package/dist/cli/upload.js +9 -2
- package/dist/constructs/agent.d.ts +9 -1
- package/dist/constructs/agent.js +7 -0
- package/dist/constructs/compute-provider.js +2 -2
- package/dist/constructs/connection.d.ts +22 -16
- package/dist/constructs/connection.js +29 -92
- package/dist/constructs/connector.d.ts +3 -1
- package/dist/constructs/connector.js +2 -0
- package/dist/constructs/egress-preset.d.ts +7 -52
- package/dist/constructs/egress-preset.js +7 -91
- package/dist/constructs/environment.d.ts +47 -70
- package/dist/constructs/environment.js +103 -213
- package/dist/constructs/gateway-key.d.ts +4 -1
- package/dist/constructs/gateway-key.js +4 -3
- package/dist/constructs/interfaces.d.ts +10 -2
- package/dist/constructs/model-provider-key.js +2 -3
- package/dist/constructs/pipeline.d.ts +5 -2
- package/dist/constructs/pipeline.js +4 -0
- package/dist/constructs/references.d.ts +4 -0
- package/dist/constructs/references.js +20 -0
- package/dist/constructs/role.d.ts +32 -0
- package/dist/constructs/role.js +77 -0
- package/dist/constructs/rules.d.ts +4 -4
- package/dist/constructs/rules.js +3 -3
- package/dist/constructs/secret.d.ts +36 -13
- package/dist/constructs/secret.js +110 -14
- package/dist/constructs/service-account.d.ts +12 -0
- package/dist/constructs/service-account.js +23 -0
- package/dist/constructs/skill.d.ts +3 -1
- package/dist/constructs/skill.js +2 -0
- package/dist/constructs/team-membership.d.ts +43 -0
- package/dist/constructs/team-membership.js +59 -0
- package/dist/constructs/team.d.ts +40 -0
- package/dist/constructs/team.js +107 -0
- package/dist/constructs/trigger.d.ts +7 -4
- package/dist/constructs/trigger.js +4 -0
- package/dist/constructs/workflow.d.ts +1 -1
- package/dist/core/factory.d.ts +0 -7
- package/dist/core/factory.js +15 -53
- package/dist/core/gateway-key-recipe.js +23 -2
- package/dist/core/host-pattern.d.ts +5 -0
- package/dist/core/host-pattern.js +14 -0
- package/dist/core/labels.d.ts +1 -1
- package/dist/core/labels.js +1 -1
- package/dist/core/outbound-warning.d.ts +2 -2
- package/dist/core/outbound-warning.js +52 -41
- package/dist/core/plan.d.ts +14 -11
- package/dist/core/plan.js +12 -11
- package/dist/engine/apply-core.d.ts +71 -67
- package/dist/engine/apply-core.js +120 -95
- package/dist/engine/client.d.ts +12 -4
- package/dist/engine/client.js +8 -3
- package/dist/engine/compute-provider-reconcile.js +1 -1
- package/dist/engine/condition-references.d.ts +2 -2
- package/dist/engine/condition-references.js +6 -6
- package/dist/engine/connection-install-link-reconcile.d.ts +4 -3
- package/dist/engine/connection-install-link-reconcile.js +35 -28
- package/dist/engine/diff.d.ts +12 -14
- package/dist/engine/diff.js +247 -113
- package/dist/engine/gateway-key-reconcile.d.ts +12 -9
- package/dist/engine/gateway-key-reconcile.js +43 -36
- package/dist/engine/model-provider-key-reconcile.js +2 -2
- package/dist/engine/pipeline-reconcile.d.ts +8 -9
- package/dist/engine/pipeline-reconcile.js +14 -10
- package/dist/engine/reconcile.d.ts +7 -21
- package/dist/engine/reconcile.js +115 -215
- package/dist/engine/refusals.d.ts +14 -31
- package/dist/engine/refusals.js +32 -81
- package/dist/engine/role-membership-reconcile.d.ts +19 -0
- package/dist/engine/role-membership-reconcile.js +276 -0
- package/dist/engine/secrets-apply.d.ts +18 -4
- package/dist/engine/secrets-apply.js +39 -4
- package/dist/engine/trigger-reconcile.d.ts +22 -23
- package/dist/engine/trigger-reconcile.js +43 -65
- package/dist/engine/workflow-reconcile.d.ts +2 -2
- package/dist/engine/workflow-reconcile.js +5 -5
- package/dist/generated/cli-commands.json +15398 -11771
- package/dist/generated/cli-dispatch.d.ts +4 -3
- package/dist/generated/cli-dispatch.js +76 -62
- package/dist/index.d.ts +12 -7
- package/dist/index.js +5 -3
- package/dist/metrics/metric.d.ts +3 -3
- package/dist/metrics/metric.js +1 -1
- package/docs/REFERENCE.md +84 -89
- package/node_modules/@orchestraworks/client/dist/apis/AgentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/AgentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/ConnectionInstallLinksApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/ConnectionInstallLinksApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/ConnectionsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/ConnectionsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/EnvironmentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/EnvironmentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/FilesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/FilesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/ImagesApi.d.ts +88 -0
- package/node_modules/@orchestraworks/client/dist/apis/ImagesApi.js +239 -0
- package/node_modules/@orchestraworks/client/dist/apis/MetricsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/MetricsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/OrganizationsApi.d.ts +1 -15
- package/node_modules/@orchestraworks/client/dist/apis/OrganizationsApi.js +3 -49
- package/node_modules/@orchestraworks/client/dist/apis/PipelinesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/PipelinesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/ProviderConnectionIntentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/ProviderConnectionIntentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/SecretsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/SecretsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/SessionsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/SessionsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/SkillsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/SkillsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/TeamMembershipsApi.d.ts +96 -0
- package/node_modules/@orchestraworks/client/dist/apis/{GroupsApi.js → TeamMembershipsApi.js} +62 -59
- package/node_modules/@orchestraworks/client/dist/apis/TeamsApi.d.ts +93 -0
- package/node_modules/@orchestraworks/client/dist/apis/{ProjectsApi.js → TeamsApi.js} +55 -55
- package/node_modules/@orchestraworks/client/dist/apis/TriggersApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/TriggersApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/UsersApi.d.ts +0 -15
- package/node_modules/@orchestraworks/client/dist/apis/UsersApi.js +0 -49
- package/node_modules/@orchestraworks/client/dist/apis/VolumesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/VolumesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/WorkItemsApi.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/WorkItemsApi.js +4 -4
- package/node_modules/@orchestraworks/client/dist/apis/WorkflowsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/apis/WorkflowsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/apis/index.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/apis/index.js +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/AgentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/AgentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionInstallLinksApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionInstallLinksApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/ConnectionsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/EnvironmentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/EnvironmentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/ImagesApi.d.ts +88 -0
- package/node_modules/@orchestraworks/client/dist/esm/apis/ImagesApi.js +235 -0
- package/node_modules/@orchestraworks/client/dist/esm/apis/MetricsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/MetricsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/OrganizationsApi.d.ts +1 -15
- package/node_modules/@orchestraworks/client/dist/esm/apis/OrganizationsApi.js +3 -49
- package/node_modules/@orchestraworks/client/dist/esm/apis/PipelinesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/PipelinesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/ProviderConnectionIntentsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/ProviderConnectionIntentsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/SecretsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/SecretsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/SessionsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/SessionsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/SkillsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/SkillsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/TeamMembershipsApi.d.ts +96 -0
- package/node_modules/@orchestraworks/client/dist/esm/apis/{GroupsApi.js → TeamMembershipsApi.js} +60 -57
- package/node_modules/@orchestraworks/client/dist/esm/apis/TeamsApi.d.ts +93 -0
- package/node_modules/@orchestraworks/client/dist/esm/apis/{ProjectsApi.js → TeamsApi.js} +53 -53
- package/node_modules/@orchestraworks/client/dist/esm/apis/TriggersApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/TriggersApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/UsersApi.d.ts +0 -15
- package/node_modules/@orchestraworks/client/dist/esm/apis/UsersApi.js +0 -49
- package/node_modules/@orchestraworks/client/dist/esm/apis/VolumesApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/VolumesApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/WorkItemsApi.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/WorkItemsApi.js +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/apis/WorkflowsApi.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/apis/WorkflowsApi.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/index.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/apis/index.js +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/AddArtifactVersionRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Agent.d.ts +9 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/Agent.js +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ApiErrorDetail.d.ts +9 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/ApiErrorDetail.js +5 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/AssignAction.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/AssignAction.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/AssignWorkItemRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/AssignWorkItemRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ComputeProviderTarget.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/ComputeProviderTarget.js +2 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Connection.d.ts +16 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/Connection.js +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ConnectionInstallLink.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ConnectionInstallLink.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Connector.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Connector.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateAgentRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateAgentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateArtifactRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateArtifactRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionInstallLinkRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionInstallLinkRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionRequest.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectionRequest.js +4 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectorRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateConnectorRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateDashboardRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateDashboardRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateEnvironmentRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateEnvironmentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateGatewayKeyRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateGatewayKeyRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateImageRequest.d.ts +38 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/{GroupMemberAgent.js → CreateImageRequest.js} +12 -16
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateMachineRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateMachineRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateMetricRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateMetricRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationInvitationRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationInvitationRequest.js +3 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationMembershipRequest.d.ts +1 -8
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationMembershipRequest.js +0 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/CreatePipelineRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreatePipelineRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateProviderConnectionIntentRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateProviderConnectionIntentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSecretRequest.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSecretRequest.js +4 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSessionRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSessionRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSkillRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateSkillRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamMembershipRequest.d.ts +65 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamMembershipRequest.js +61 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamRequest.d.ts +80 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTeamRequest.js +64 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTriggerRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateTriggerRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateVolumeRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateVolumeRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateWorkflowRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Dashboard.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Dashboard.js +6 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChart.d.ts +45 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChart.js +29 -5
- package/node_modules/@orchestraworks/client/dist/esm/models/DashboardChartQuery.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Delivery.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Delivery.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/EgressPolicyRule.d.ts +0 -13
- package/node_modules/@orchestraworks/client/dist/esm/models/EgressPolicyRule.js +0 -5
- package/node_modules/@orchestraworks/client/dist/esm/models/EntitlementTeamUsage.d.ts +58 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/EntitlementTeamUsage.js +64 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Environment.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Environment.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/EnvironmentEgressPolicy.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/GatewayKey.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/GatewayKey.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Image.d.ts +113 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Image.js +91 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/InboundWebhookEdge.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/InboundWebhookEdge.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/InvitationTeamMembership.d.ts +44 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/InvitationTeamMembership.js +47 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressPolicyDiagnostics.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressRuleDiagnostics.d.ts +0 -6
- package/node_modules/@orchestraworks/client/dist/esm/models/MachineEgressRuleDiagnostics.js +0 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/MachineView.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/MachineView.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/MessageWorkItemRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Metric.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Metric.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/MetricValue.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/MetricValue.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationEntitlements.d.ts +7 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationEntitlements.js +5 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationInvitation.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationInvitation.js +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationMembership.d.ts +5 -5
- package/node_modules/@orchestraworks/client/dist/esm/models/OrganizationMembership.js +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/PageImage.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/{PageProject.js → PageImage.js} +11 -11
- package/node_modules/@orchestraworks/client/dist/esm/models/PageTeam.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/{PageGroupSummary.js → PageTeam.js} +11 -11
- package/node_modules/@orchestraworks/client/dist/esm/models/PageTeamMembership.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/PageTeamMembership.js +56 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Pipeline.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Pipeline.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/PolicyAssignment.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/PolicyAssignment.js +4 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ProviderConnectionIntent.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ProviderConnectionIntent.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ReferenceSubject.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/ReferenceSubject.js +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Role.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Role.js +4 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Secret.d.ts +16 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/Secret.js +8 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/ServiceAccount.d.ts +7 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/ServiceAccount.js +1 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Session.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Session.js +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/SessionSummary.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/SessionSummary.js +3 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Skill.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Skill.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/SnapshotAnchor.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/Team.d.ts +104 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/{GroupSummary.js → Team.js} +25 -15
- package/node_modules/@orchestraworks/client/dist/esm/models/TeamMembership.d.ts +83 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/TeamMembership.js +77 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/Trigger.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Trigger.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/TriggerTarget.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateArtifactRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateConnectionRequest.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateConnectionRequest.js +2 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationInvitationRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationInvitationRequest.js +3 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationMembershipRequest.d.ts +1 -8
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateOrganizationMembershipRequest.js +0 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateSecretRequest.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateSecretRequest.js +2 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamMembershipRequest.d.ts +47 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamMembershipRequest.js +51 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamRequest.d.ts +68 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateTeamRequest.js +58 -0
- package/node_modules/@orchestraworks/client/dist/esm/models/UserGrant.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/UserGrant.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Volume.d.ts +10 -3
- package/node_modules/@orchestraworks/client/dist/esm/models/Volume.js +4 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemActivity.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemAssignment.d.ts +7 -7
- package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemAssignment.js +5 -5
- package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemDraftAssignment.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/WorkItemDraftAssignment.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Workflow.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/Workflow.js +2 -2
- package/node_modules/@orchestraworks/client/dist/esm/models/index.d.ts +13 -17
- package/node_modules/@orchestraworks/client/dist/esm/models/index.js +13 -17
- package/node_modules/@orchestraworks/client/dist/models/AddArtifactVersionRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Agent.d.ts +9 -3
- package/node_modules/@orchestraworks/client/dist/models/Agent.js +3 -2
- package/node_modules/@orchestraworks/client/dist/models/ApiErrorDetail.d.ts +9 -1
- package/node_modules/@orchestraworks/client/dist/models/ApiErrorDetail.js +5 -1
- package/node_modules/@orchestraworks/client/dist/models/Artifact.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Artifact.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/AssignAction.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/AssignAction.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/AssignWorkItemRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/AssignWorkItemRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ComputeProviderTarget.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/models/ComputeProviderTarget.js +2 -0
- package/node_modules/@orchestraworks/client/dist/models/Connection.d.ts +16 -3
- package/node_modules/@orchestraworks/client/dist/models/Connection.js +8 -2
- package/node_modules/@orchestraworks/client/dist/models/ConnectionInstallLink.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ConnectionInstallLink.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Connector.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Connector.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateAgentRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateAgentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateArtifactRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/models/CreateArtifactRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectionInstallLinkRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectionInstallLinkRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectionRequest.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectionRequest.js +4 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectorRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateConnectorRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateDashboardRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/models/CreateDashboardRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateEnvironmentRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateEnvironmentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateGatewayKeyRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateGatewayKeyRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateImageRequest.d.ts +38 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateImageRequest.js +54 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateMachineRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateMachineRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateMetricRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateMetricRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationInvitationRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationInvitationRequest.js +3 -3
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationMembershipRequest.d.ts +1 -8
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationMembershipRequest.js +0 -3
- package/node_modules/@orchestraworks/client/dist/models/CreatePipelineRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreatePipelineRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateProviderConnectionIntentRequest.d.ts +3 -3
- package/node_modules/@orchestraworks/client/dist/models/CreateProviderConnectionIntentRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSecretRequest.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSecretRequest.js +4 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSessionRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSessionRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSkillRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateSkillRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateTeamMembershipRequest.d.ts +65 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateTeamMembershipRequest.js +69 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateTeamRequest.d.ts +80 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateTeamRequest.js +72 -0
- package/node_modules/@orchestraworks/client/dist/models/CreateTriggerRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateTriggerRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateVolumeRequest.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateVolumeRequest.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/CreateWorkflowRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Dashboard.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/models/Dashboard.js +6 -2
- package/node_modules/@orchestraworks/client/dist/models/DashboardChart.d.ts +45 -4
- package/node_modules/@orchestraworks/client/dist/models/DashboardChart.js +30 -6
- package/node_modules/@orchestraworks/client/dist/models/DashboardChartQuery.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Delivery.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Delivery.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/EgressPolicyRule.d.ts +0 -13
- package/node_modules/@orchestraworks/client/dist/models/EgressPolicyRule.js +0 -5
- package/node_modules/@orchestraworks/client/dist/models/EntitlementTeamUsage.d.ts +58 -0
- package/node_modules/@orchestraworks/client/dist/models/EntitlementTeamUsage.js +72 -0
- package/node_modules/@orchestraworks/client/dist/models/Environment.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Environment.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/EnvironmentEgressPolicy.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/GatewayKey.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/GatewayKey.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Image.d.ts +113 -0
- package/node_modules/@orchestraworks/client/dist/models/Image.js +99 -0
- package/node_modules/@orchestraworks/client/dist/models/InboundWebhookEdge.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/InboundWebhookEdge.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/InvitationTeamMembership.d.ts +44 -0
- package/node_modules/@orchestraworks/client/dist/models/InvitationTeamMembership.js +54 -0
- package/node_modules/@orchestraworks/client/dist/models/MachineEgressPolicyDiagnostics.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/MachineEgressRuleDiagnostics.d.ts +0 -6
- package/node_modules/@orchestraworks/client/dist/models/MachineEgressRuleDiagnostics.js +0 -4
- package/node_modules/@orchestraworks/client/dist/models/MachineView.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/MachineView.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/MessageWorkItemRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Metric.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Metric.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/MetricValue.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/MetricValue.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ModelFile.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ModelFile.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/OrganizationEntitlements.d.ts +7 -0
- package/node_modules/@orchestraworks/client/dist/models/OrganizationEntitlements.js +5 -0
- package/node_modules/@orchestraworks/client/dist/models/OrganizationInvitation.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/models/OrganizationInvitation.js +4 -4
- package/node_modules/@orchestraworks/client/dist/models/OrganizationMembership.d.ts +5 -5
- package/node_modules/@orchestraworks/client/dist/models/OrganizationMembership.js +4 -4
- package/node_modules/@orchestraworks/client/dist/models/PageImage.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/models/{PageProject.js → PageImage.js} +16 -16
- package/node_modules/@orchestraworks/client/dist/models/PageTeam.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/models/{PageGroupSummary.js → PageTeam.js} +16 -16
- package/node_modules/@orchestraworks/client/dist/models/PageTeamMembership.d.ts +51 -0
- package/node_modules/@orchestraworks/client/dist/models/PageTeamMembership.js +63 -0
- package/node_modules/@orchestraworks/client/dist/models/Pipeline.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Pipeline.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/PolicyAssignment.d.ts +8 -2
- package/node_modules/@orchestraworks/client/dist/models/PolicyAssignment.js +4 -2
- package/node_modules/@orchestraworks/client/dist/models/ProviderConnectionIntent.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ProviderConnectionIntent.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/ReferenceSubject.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/ReferenceSubject.js +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Role.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/models/Role.js +4 -0
- package/node_modules/@orchestraworks/client/dist/models/Secret.d.ts +16 -3
- package/node_modules/@orchestraworks/client/dist/models/Secret.js +8 -2
- package/node_modules/@orchestraworks/client/dist/models/ServiceAccount.d.ts +7 -1
- package/node_modules/@orchestraworks/client/dist/models/ServiceAccount.js +1 -0
- package/node_modules/@orchestraworks/client/dist/models/Session.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/models/Session.js +3 -2
- package/node_modules/@orchestraworks/client/dist/models/SessionSummary.d.ts +3 -2
- package/node_modules/@orchestraworks/client/dist/models/SessionSummary.js +3 -2
- package/node_modules/@orchestraworks/client/dist/models/Skill.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Skill.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/SnapshotAnchor.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/Team.d.ts +104 -0
- package/node_modules/@orchestraworks/client/dist/models/{GroupSummary.js → Team.js} +31 -21
- package/node_modules/@orchestraworks/client/dist/models/TeamMembership.d.ts +83 -0
- package/node_modules/@orchestraworks/client/dist/models/TeamMembership.js +85 -0
- package/node_modules/@orchestraworks/client/dist/models/Trigger.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Trigger.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/TriggerTarget.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/UpdateArtifactRequest.d.ts +1 -1
- package/node_modules/@orchestraworks/client/dist/models/UpdateConnectionRequest.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateConnectionRequest.js +2 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationInvitationRequest.d.ts +4 -4
- package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationInvitationRequest.js +3 -3
- package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationMembershipRequest.d.ts +1 -8
- package/node_modules/@orchestraworks/client/dist/models/UpdateOrganizationMembershipRequest.js +0 -3
- package/node_modules/@orchestraworks/client/dist/models/UpdateSecretRequest.d.ts +6 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateSecretRequest.js +2 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateTeamMembershipRequest.d.ts +47 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateTeamMembershipRequest.js +59 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateTeamRequest.d.ts +68 -0
- package/node_modules/@orchestraworks/client/dist/models/UpdateTeamRequest.js +66 -0
- package/node_modules/@orchestraworks/client/dist/models/UserGrant.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/UserGrant.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Volume.d.ts +10 -3
- package/node_modules/@orchestraworks/client/dist/models/Volume.js +4 -2
- package/node_modules/@orchestraworks/client/dist/models/WorkItemActivity.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/WorkItemAssignment.d.ts +7 -7
- package/node_modules/@orchestraworks/client/dist/models/WorkItemAssignment.js +5 -5
- package/node_modules/@orchestraworks/client/dist/models/WorkItemDraftAssignment.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/WorkItemDraftAssignment.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Workflow.d.ts +2 -2
- package/node_modules/@orchestraworks/client/dist/models/Workflow.js +2 -2
- package/node_modules/@orchestraworks/client/dist/models/index.d.ts +13 -17
- package/node_modules/@orchestraworks/client/dist/models/index.js +13 -17
- package/node_modules/@orchestraworks/client/package.json +1 -1
- package/package.json +4 -4
- package/skills/orchestra/SKILL.md +74 -64
- package/skills/orchestra-fdk/references/authoring.md +75 -39
- package/skills/orchestra-fdk/references/environment.md +214 -33
- package/skills/orchestra-fdk/references/troubleshooting.md +8 -7
- package/templates/bug-fix/main.ts +6 -1
- package/templates/engineering-team/README.md +10 -7
- package/templates/engineering-team/agents/engineer-agent.md +38 -16
- package/templates/engineering-team/lib/environment.ts +15 -3
- package/templates/engineering-team/main.ts +1 -1
- package/templates/todo-factory/main.ts +6 -1
- package/dist/constructs/project.d.ts +0 -33
- package/dist/constructs/project.js +0 -82
- package/node_modules/@orchestraworks/client/dist/apis/GroupsApi.d.ts +0 -95
- package/node_modules/@orchestraworks/client/dist/apis/ProjectsApi.d.ts +0 -93
- package/node_modules/@orchestraworks/client/dist/esm/apis/GroupsApi.d.ts +0 -95
- package/node_modules/@orchestraworks/client/dist/esm/apis/ProjectsApi.d.ts +0 -93
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateGroupRequest.d.ts +0 -82
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateGroupRequest.js +0 -74
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationRequest.d.ts +0 -53
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateOrganizationRequest.js +0 -50
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateProjectRequest.d.ts +0 -52
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateProjectRequest.js +0 -49
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateUserRequest.d.ts +0 -46
- package/node_modules/@orchestraworks/client/dist/esm/models/CreateUserRequest.js +0 -47
- package/node_modules/@orchestraworks/client/dist/esm/models/CredentialBinding.d.ts +0 -57
- package/node_modules/@orchestraworks/client/dist/esm/models/CredentialBinding.js +0 -50
- package/node_modules/@orchestraworks/client/dist/esm/models/Group.d.ts +0 -106
- package/node_modules/@orchestraworks/client/dist/esm/models/Group.js +0 -92
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMember.d.ts +0 -40
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMember.js +0 -45
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberAgent.d.ts +0 -44
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberReference.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberReference.js +0 -43
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberUser.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupMemberUser.js +0 -45
- package/node_modules/@orchestraworks/client/dist/esm/models/GroupSummary.d.ts +0 -86
- package/node_modules/@orchestraworks/client/dist/esm/models/PageGroupSummary.d.ts +0 -51
- package/node_modules/@orchestraworks/client/dist/esm/models/PageProject.d.ts +0 -51
- package/node_modules/@orchestraworks/client/dist/esm/models/Project.d.ts +0 -76
- package/node_modules/@orchestraworks/client/dist/esm/models/Project.js +0 -69
- package/node_modules/@orchestraworks/client/dist/esm/models/RoleAssignment.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/esm/models/RoleAssignment.js +0 -45
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateGroupRequest.d.ts +0 -70
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateGroupRequest.js +0 -60
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateProjectRequest.d.ts +0 -46
- package/node_modules/@orchestraworks/client/dist/esm/models/UpdateProjectRequest.js +0 -45
- package/node_modules/@orchestraworks/client/dist/models/CreateGroupRequest.d.ts +0 -82
- package/node_modules/@orchestraworks/client/dist/models/CreateGroupRequest.js +0 -82
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationRequest.d.ts +0 -53
- package/node_modules/@orchestraworks/client/dist/models/CreateOrganizationRequest.js +0 -57
- package/node_modules/@orchestraworks/client/dist/models/CreateProjectRequest.d.ts +0 -52
- package/node_modules/@orchestraworks/client/dist/models/CreateProjectRequest.js +0 -56
- package/node_modules/@orchestraworks/client/dist/models/CreateUserRequest.d.ts +0 -46
- package/node_modules/@orchestraworks/client/dist/models/CreateUserRequest.js +0 -54
- package/node_modules/@orchestraworks/client/dist/models/CredentialBinding.d.ts +0 -57
- package/node_modules/@orchestraworks/client/dist/models/CredentialBinding.js +0 -57
- package/node_modules/@orchestraworks/client/dist/models/Group.d.ts +0 -106
- package/node_modules/@orchestraworks/client/dist/models/Group.js +0 -100
- package/node_modules/@orchestraworks/client/dist/models/GroupMember.d.ts +0 -40
- package/node_modules/@orchestraworks/client/dist/models/GroupMember.js +0 -52
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberAgent.d.ts +0 -44
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberAgent.js +0 -58
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberReference.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberReference.js +0 -50
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberUser.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/models/GroupMemberUser.js +0 -52
- package/node_modules/@orchestraworks/client/dist/models/GroupSummary.d.ts +0 -86
- package/node_modules/@orchestraworks/client/dist/models/PageGroupSummary.d.ts +0 -51
- package/node_modules/@orchestraworks/client/dist/models/PageProject.d.ts +0 -51
- package/node_modules/@orchestraworks/client/dist/models/Project.d.ts +0 -76
- package/node_modules/@orchestraworks/client/dist/models/Project.js +0 -76
- package/node_modules/@orchestraworks/client/dist/models/RoleAssignment.d.ts +0 -38
- package/node_modules/@orchestraworks/client/dist/models/RoleAssignment.js +0 -52
- package/node_modules/@orchestraworks/client/dist/models/UpdateGroupRequest.d.ts +0 -70
- package/node_modules/@orchestraworks/client/dist/models/UpdateGroupRequest.js +0 -68
- package/node_modules/@orchestraworks/client/dist/models/UpdateProjectRequest.d.ts +0 -46
- package/node_modules/@orchestraworks/client/dist/models/UpdateProjectRequest.js +0 -52
package/dist/core/plan.d.ts
CHANGED
|
@@ -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
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `compute-provider` before `environment`, which
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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 ["
|
|
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
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `compute-provider` before `environment`, which
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
"
|
|
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
|
|
83
|
-
*
|
|
84
|
-
* - `
|
|
85
|
-
*
|
|
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
|
|
94
|
+
export type DesiredTeam = {
|
|
90
95
|
state: "resolved";
|
|
91
|
-
|
|
96
|
+
teamId: string;
|
|
97
|
+
shared?: boolean;
|
|
92
98
|
} | {
|
|
93
|
-
state: "
|
|
94
|
-
projectRef: string;
|
|
99
|
+
state: "shared";
|
|
95
100
|
} | {
|
|
96
|
-
state: "
|
|
101
|
+
state: "pending-managed";
|
|
102
|
+
teamRef: string;
|
|
97
103
|
};
|
|
98
104
|
/**
|
|
99
|
-
*
|
|
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`
|
|
115
|
-
*
|
|
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
|
|
110
|
+
export type TeamIdentityRefusal = {
|
|
119
111
|
resourceKind: string;
|
|
120
112
|
slug: string;
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
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
|
-
}):
|
|
132
|
+
}): TeamIdentityConflictError;
|
|
153
133
|
/**
|
|
154
|
-
* NEVER throws, so the diff path can use it as a per-row verdict
|
|
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
|
|
137
|
+
export declare function classifyTeamIdentity(input: {
|
|
162
138
|
resourceKind: string;
|
|
163
139
|
slug: string;
|
|
164
140
|
live: {
|
|
165
|
-
|
|
141
|
+
teamId?: string | null;
|
|
166
142
|
} | undefined;
|
|
167
|
-
desired:
|
|
168
|
-
pairContext?:
|
|
169
|
-
}):
|
|
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
|
|
172
|
-
*
|
|
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
|
|
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
|
-
|
|
40
|
-
|
|
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(
|
|
63
|
-
this.name = "
|
|
44
|
+
super(describeTeamIdentityRefusal(refusal), outcomes, options);
|
|
45
|
+
this.name = "TeamIdentityConflictError";
|
|
64
46
|
this.refusal = refusal;
|
|
65
47
|
}
|
|
66
48
|
}
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
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
|
|
57
|
+
export function classifyTeamIdentity(input) {
|
|
83
58
|
const { resourceKind, slug, live, desired, pairContext } = input;
|
|
84
|
-
if (live === undefined
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
73
|
+
liveTeamId,
|
|
74
|
+
desiredTeam: desired,
|
|
96
75
|
...(pairContext !== undefined ? { pairContext } : {}),
|
|
97
76
|
};
|
|
98
77
|
}
|
|
99
78
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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.`);
|
package/dist/engine/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentsApi, ComputeProvidersApi, ConnectionInstallLinksApi, ConnectionsApi, ConnectorsApi, ProvidersApi, EnvironmentsApi, type FetchAPI, FilesApi, GatewayKeysApi,
|
|
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
|
|
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
|
}
|
package/dist/engine/client.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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
|
|
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`
|