@openengio/cli 0.39.0 → 0.45.0

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 CHANGED
@@ -556,7 +556,7 @@ protocol (`npm install -g @openengio/cli@0.<protocol>`). JSON adds that command
556
556
  | 3 | `unauthenticated`: not signed in, a sign-in that was cancelled, timed out or whose state differed, or a logout with nothing stored |
557
557
  | 4 | a platform refusal (`refused`), a route result whose arm is `refused`, or the violations `openeng types draft validate` or `openeng types draft try` answers (printed on standard output) |
558
558
  | 5 | `unknown-outcome`, from the host or from a transport that lost the answer; also a non-envelope answer with status 500 to 599 |
559
- | 6 | `invalid-request`, `not-found` or `bound-exceeded` |
559
+ | 6 | `invalid-request`, `not-found` or `bound-exceeded`; `request-duration` means the write did not run, and a retry must use a new idempotency key or none, because the refused request's record stays pending and the same key answers `in-flight` |
560
560
  | 7 | `internal`, `in-flight`, `protocol-mismatch`, a transport failure with no answer, a non-envelope answer with status 400 to 499, or an internal failure of the client |
561
561
 
562
562
  ## Stores
@@ -84,6 +84,29 @@ var FIX_REQUEST = { option: "Correct the request and send it again." };
84
84
  var ASK_ADMINISTRATOR = { option: "Ask an administrator of the organisation to make the change or to grant the permission." };
85
85
  var SIGN_IN_AGAIN = { option: "Sign in again." };
86
86
  var RULE_ENTRIES = {
87
+ "engines-unavailable": entry("Builds are unavailable on this deployment. Ask your administrator.", ASK_ADMINISTRATOR),
88
+ "output-ambiguous": entry("An output is declared by more than one step.", FIX_REQUEST),
89
+ "build-cycle": entry("The upstream closure contains a cycle.", FIX_REQUEST),
90
+ "binding-mismatch": entry("An input binds an undeclared output or an output of another kind.", FIX_REQUEST),
91
+ "build-input-outside-project": entry("An input is outside the build's project.", FIX_REQUEST),
92
+ "case-invalid": entry("The case check has violations.", FIX_REQUEST),
93
+ "outputs-already-current": entry("Some requested outputs are already current; nothing was started.", { option: "Choose run-all or run-stale and send the request again." }),
94
+ "build-limit-reached": entry("The build exceeds an organisation or closure limit.", FIX_REQUEST),
95
+ "engine-mismatch": entry("The registered engine fails a required engine check.", FIX_REQUEST),
96
+ "engine-image-changed": entry("The engine ran an image other than the one recorded when the step started.", ASK_ADMINISTRATOR),
97
+ "function-entry-unknown": entry("The engine image does not offer the requested entry.", FIX_REQUEST),
98
+ "step-outputs-missing": entry("The output objects do not fill the entry's output slots.", FIX_REQUEST),
99
+ "step-run-closed": entry("The step run is terminal or its result was already accepted.", FIX_REQUEST),
100
+ "claim-refused": entry("The execution claim was refused.", { option: "Stop this execution; a refused claim cannot supply an engine token." }),
101
+ "not-yet-bound": entry("The claim code is live and its execution binding is pending.", { option: "Retry every two seconds for at most sixty seconds." }),
102
+ "engine-invalid": entry("The engine properties, class or runtime are not admitted.", FIX_REQUEST),
103
+ "log-already-written": entry("The step run already has a log.", FIX_REQUEST),
104
+ "output-too-large": entry("The output exceeds its kind's byte limit.", FIX_REQUEST),
105
+ "output-digest-mismatch": entry("The uploaded bytes do not match the declared digest.", FIX_REQUEST),
106
+ "output-malformed": entry("The indexed output fails its format or declared-key check.", FIX_REQUEST),
107
+ "step-ill-formed": entry("The step names more than one function or more than one case.", FIX_REQUEST),
108
+ "output-missing": entry("The engine did not submit every output the step declares.", FIX_REQUEST),
109
+ "output-not-declared": entry("The step spec does not declare this output name.", FIX_REQUEST),
87
110
  "draft-locked": entry("Another person holds this draft lock.", { option: "Wait for the lock to expire or ask its holder to release it." }),
88
111
  "draft-lock-lost": entry("The draft lock is no longer held by you.", { option: "Acquire the draft again before saving." }),
89
112
  "draft-not-flushed": entry("The draft has saves that were not confirmed.", { option: "Save and confirm the latest draft before publishing." }),
@@ -319,6 +342,7 @@ var SHIM_COLLIDING_API_RULES = Object.freeze(["write-refused"]);
319
342
 
320
343
  // packages/api-contract/dist/route-docs.js
321
344
  var ACTOR_LABELS = Object.freeze({
345
+ engine: "engine",
322
346
  person: "person",
323
347
  "agent:explore": "agent:explore",
324
348
  "agent:apply": "agent:apply",
@@ -408,6 +432,35 @@ function doc(does, refuses) {
408
432
  return Object.freeze({ does, refuses: Object.freeze([...refuses]) });
409
433
  }
410
434
  var ROUTE_DOCS = Object.freeze({
435
+ startBuild: doc('Start a build of the named targets on the selected ref; a wholly current selection returns current and stale counts on the first response, but its replay returns only { kind: "unchanged" } because the counts are not stored.', [
436
+ "output-ambiguous",
437
+ "build-cycle",
438
+ "binding-mismatch",
439
+ "build-input-outside-project",
440
+ "case-invalid",
441
+ "outputs-already-current",
442
+ "build-limit-reached",
443
+ "engine-mismatch",
444
+ "function-entry-unknown",
445
+ "step-outputs-missing",
446
+ "step-ill-formed",
447
+ "not-permitted",
448
+ "engines-unavailable"
449
+ ]),
450
+ cancelBuild: doc("Cancel a build and end its live step tokens.", ["not-permitted", "not-found"]),
451
+ readBuildRun: doc("Read a build and its step states. The state is running while any step run is unfinished, then canceled if a person cancelled any, complete, partial or failed. A read ends step runs past their deadline, and a read by a caller who may start builds starts queued step runs no execution holds.", ["not-found"]),
452
+ listBuildRuns: doc("List the build runs that target an output or a case, or that hold a step run of a step, newest first, a page at a time. A list reads only; it ends no step run and starts none.", ["not-found"]),
453
+ readStepRun: doc("Read a step run and its immutable spec and provenance. The spec names each input and holds no input value. A step run waiting for its upstream shows as QUEUED.", ["not-found"]),
454
+ readOutputValues: doc("Read indexed output values and their freshness.", ["not-found"]),
455
+ readStepLog: doc("Read the step log as inert text and its truncation flag.", ["not-found"]),
456
+ checkCase: doc("Check a case and list its object and port violations.", ["not-found", "build-input-outside-project", "engines-unavailable"]),
457
+ registerEngine: doc("Register an ephemeral engine in the token organisation.", ["engine-invalid", "duplicate-name", "not-permitted"]),
458
+ listEngines: doc("List engines in the token organisation.", ["not-permitted"]),
459
+ claimStepRun: doc("Consume a verified execution claim and mint its engine token.", ["not-yet-bound", "claim-refused", "engines-unavailable"]),
460
+ readStepInput: doc("Stream the spec or a named input admitted to this step run.", ["not-found", "step-run-closed"]),
461
+ stageStepOutput: doc("Stream a declared output and check its digest and byte limit.", ["output-not-declared", "output-digest-mismatch", "output-too-large", "step-run-closed"]),
462
+ submitStepResult: doc("Accept one result for the admitted step run.", ["step-run-closed", "output-malformed", "output-missing", "engine-image-changed", "not-found"]),
463
+ postStepLog: doc("Keep the first MiB of the step log and mark truncation.", ["log-already-written", "step-run-closed"]),
411
464
  createObjectSet: doc("Saves a named set of 1 to 200 object addresses in the caller's organisation. Concurrent retries with one key return the same saved set and revision.", [...SCOPED, "head-moved"]),
412
465
  listObjectSets: doc("Lists the organisation's saved sets, newest update first, without members or counts.", SIGNED_IN),
413
466
  readObjectSet: doc("Reads a saved set's visible objects on the selected branch or baseline, a count of missing visible members and one bit for members outside the caller's scope.", [...SCOPED, "head-moved"]),
@@ -520,7 +573,7 @@ var ROUTE_DOCS = Object.freeze({
520
573
  listRefs: doc("Lists the branches of a project, each with its head: readable with a hash, withheld when the caller may not read the branch, or unread after the first 50 refs, including main (so at most 49 branch heads are read). Each row also carries a schema state as a convenience hint; the branch-needs-schema-update refusal on use remains the guard.", [...SCOPED, "organisation-not-ready"]),
521
574
  readCatalogue: doc("Reads the published catalogue of a project's namespace.", SCOPED),
522
575
  readPendingProposal: doc("Reads the proposal waiting for review on a branch, if any.", SCOPED),
523
- submitProposal: doc("Submits a branch for review. Optional target names main, a writable organisation ref or a project branch; it defaults to main. An apply run that names any ref other than its plan's is refused write-refused.", [...REF_READ, "proposal-open", "no-commits", "invalid-proposal-target"]),
576
+ submitProposal: doc("Submits a branch for review. Optional target names main, a writable organisation ref or a project branch; it defaults to main. A client holding branches.proposalSubmit may submit within the person's project permissions. That grant alone permits no other branch write. An apply run that names any ref other than its plan's is refused write-refused.", [...REF_READ, "proposal-open", "no-commits", "invalid-proposal-target"]),
524
577
  createServiceIdentity: doc("Creates a service identity in an organisation.", [...SIGNED_IN, "not-permitted", "capability-missing", "duplicate-name"]),
525
578
  revokeServiceIdentity: doc("Revokes a service identity.", [...SIGNED_IN, "not-permitted", "service_identity.revoke"]),
526
579
  issueServiceCredential: doc("Issues a credential for a service identity.", [...SIGNED_IN, "not-permitted", "capability-missing"]),
@@ -665,6 +718,17 @@ function deepFreeze(value) {
665
718
  return value;
666
719
  }
667
720
  var BINARY_REQUESTS = {
721
+ stageStepOutput: {
722
+ "contentType": "application/octet-stream",
723
+ "nameHeader": "x-oe2-output-name",
724
+ "nameEncoding": "rfc8187",
725
+ "digestHeader": "x-oe2-output-digest",
726
+ "digestEncoding": "sha256-hex"
727
+ },
728
+ postStepLog: {
729
+ "contentType": "application/octet-stream",
730
+ "encoding": "utf8"
731
+ },
668
732
  publishHostedVersion: {
669
733
  "contentType": "application/octet-stream",
670
734
  "selectorHeader": "x-oe2-selector",
@@ -675,6 +739,12 @@ var BINARY_REQUESTS = {
675
739
  };
676
740
  var BINARY_REQUEST_INPUTS = deepFreeze(BINARY_REQUESTS);
677
741
  var BINARY_RESPONSES = {
742
+ readStepInput: {
743
+ "contentType": "application/octet-stream",
744
+ "digestHeader": "x-oe2-input-digest",
745
+ "digestEncoding": "sha256-hex",
746
+ "byteLengthHeader": "content-length"
747
+ },
678
748
  readAttachment: {
679
749
  "contentType": "attachment",
680
750
  "headers": "attachmentResponseHeaders",
@@ -683,6 +753,50 @@ var BINARY_RESPONSES = {
683
753
  };
684
754
  var BINARY_RESPONSE_OUTPUTS = deepFreeze(BINARY_RESPONSES);
685
755
  var SCHEMAS = {
756
+ startBuild: { "type": "object", "properties": { "target": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "outputs" }, "outputIds": { "type": "array", "items": { "type": "string" } } }, "required": ["kind", "outputIds"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "case" }, "caseId": { "type": "string" } }, "required": ["kind", "caseId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "build" }, "buildId": { "type": "string" } }, "required": ["kind", "buildId"], "additionalProperties": false }] }, "choice": { "enum": ["run-all", "run-stale"] } }, "required": ["target"], "additionalProperties": false },
757
+ cancelBuild: { "type": "object", "properties": { "buildRunId": { "type": "string" } }, "required": ["buildRunId"], "additionalProperties": false },
758
+ readBuildRun: { "type": "object", "properties": { "buildRunId": { "type": "string" } }, "required": ["buildRunId"], "additionalProperties": false },
759
+ listBuildRuns: { "type": "object", "properties": { "objectId": { "type": "string" }, "continuation": { "oneOf": [{ "type": "string" }, { "type": "null" }] } }, "required": ["objectId", "continuation"], "additionalProperties": false },
760
+ readStepRun: { "type": "object", "properties": { "stepRunId": { "type": "string" } }, "required": ["stepRunId"], "additionalProperties": false },
761
+ readOutputValues: { "type": "object", "properties": { "outputId": { "type": "string" }, "keys": { "type": "array", "items": { "type": "object", "properties": { "sweep": { "type": "object", "additionalProperties": { "type": "number" } }, "componentId": { "type": "string" }, "variable": { "type": "string" } }, "required": ["sweep", "componentId", "variable"], "additionalProperties": false } }, "runRef": { "type": "string" } }, "required": ["outputId", "keys"], "additionalProperties": false },
762
+ readStepLog: { "type": "object", "properties": { "stepRunId": { "type": "string" } }, "required": ["stepRunId"], "additionalProperties": false },
763
+ checkCase: { "type": "object", "properties": { "caseId": { "type": "string" } }, "required": ["caseId"], "additionalProperties": false },
764
+ registerEngine: { "type": "object", "properties": { "name": { "type": "string" }, "isolation": { "const": "ephemeral" }, "properties": { "type": "object", "additionalProperties": { "type": "string" } }, "runtime": { "type": "object", "properties": { "image": { "type": "string" } }, "required": ["image"], "additionalProperties": false } }, "required": ["name", "isolation", "properties", "runtime"], "additionalProperties": false },
765
+ listEngines: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
766
+ claimStepRun: { "type": "object", "properties": { "googleIdentityToken": { "type": "string", "format": "password", "writeOnly": true }, "executionName": { "type": "string" }, "jobName": { "type": "string" }, "claimCode": { "type": "string", "format": "password", "writeOnly": true } }, "required": ["googleIdentityToken", "executionName", "jobName", "claimCode"], "additionalProperties": false },
767
+ readStepInput: {
768
+ "oneOf": [
769
+ {
770
+ "type": "object",
771
+ "properties": {
772
+ "kind": {
773
+ "const": "spec"
774
+ }
775
+ },
776
+ "required": [
777
+ "kind"
778
+ ],
779
+ "additionalProperties": false
780
+ },
781
+ {
782
+ "type": "object",
783
+ "properties": {
784
+ "kind": {
785
+ "const": "input"
786
+ },
787
+ "name": {
788
+ "type": "string"
789
+ }
790
+ },
791
+ "required": [
792
+ "kind",
793
+ "name"
794
+ ],
795
+ "additionalProperties": false
796
+ }
797
+ ]
798
+ },
799
+ submitStepResult: { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "complete" }, "outputs": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "digest": { "type": "string" } }, "required": ["name", "digest"], "additionalProperties": false } } }, "required": ["kind", "outputs"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "executor-error" }, "message": { "type": "string" } }, "required": ["kind", "message"], "additionalProperties": false }] },
686
800
  createObjectSet: { "type": "object", "properties": { "name": { "type": "string" }, "members": { "type": "array", "items": { "type": "object", "properties": { "objectId": { "type": "string" }, "projectId": { "type": "string" } }, "required": ["objectId", "projectId"], "additionalProperties": false } } }, "required": ["name", "members"], "additionalProperties": false },
687
801
  listObjectSets: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
688
802
  readObjectSet: { "type": "object", "properties": { "setId": { "type": "string" } }, "required": ["setId"], "additionalProperties": false },
@@ -700,12 +814,12 @@ var SCHEMAS = {
700
814
  attachOrganisation: { "type": "object", "properties": { "organisationId": { "type": "string" } }, "required": ["organisationId"], "additionalProperties": false },
701
815
  detachOrganisation: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
702
816
  listOrganisations: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
703
- registerClient: { "type": "object", "properties": { "displayName": { "type": "string" }, "clientType": { "enum": ["public", "confidential"] }, "redirectUris": { "type": "array", "items": { "type": "string" } }, "scopes": { "type": "array", "items": { "enum": ["objects.read", "objects.write", "branches.read", "branches.write", "branches.manage", "offline_access"] } }, "publicKeySet": { "type": "object", "properties": { "keys": { "type": "array", "items": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] } } } }, "required": ["keys"], "additionalProperties": false } }, "required": ["displayName", "clientType", "redirectUris", "scopes"], "additionalProperties": false },
817
+ registerClient: { "type": "object", "properties": { "displayName": { "type": "string" }, "clientType": { "enum": ["public", "confidential"] }, "redirectUris": { "type": "array", "items": { "type": "string" } }, "scopes": { "type": "array", "items": { "enum": ["objects.read", "objects.write", "branches.read", "branches.write", "branches.manage", "builds.run", "offline_access"] } }, "publicKeySet": { "type": "object", "properties": { "keys": { "type": "array", "items": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] } } } }, "required": ["keys"], "additionalProperties": false } }, "required": ["displayName", "clientType", "redirectUris", "scopes"], "additionalProperties": false },
704
818
  listClients: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
705
819
  revokeClient: { "type": "object", "properties": { "clientId": { "type": "string" } }, "required": ["clientId"], "additionalProperties": false },
706
820
  replaceClientKeys: { "type": "object", "properties": { "clientId": { "type": "string" }, "publicKeySet": { "type": "object", "properties": { "keys": { "type": "array", "items": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }] } } } }, "required": ["keys"], "additionalProperties": false } }, "required": ["clientId", "publicKeySet"], "additionalProperties": false },
707
821
  readConsentRequest: { "type": "object", "properties": { "interactionId": { "type": "string" } }, "required": ["interactionId"], "additionalProperties": false },
708
- decideConsent: { "oneOf": [{ "type": "object", "properties": { "interactionId": { "type": "string" }, "decision": { "const": "approve" }, "approvedScopes": { "type": "array", "items": { "enum": ["objects.read", "objects.write", "branches.read", "branches.write", "branches.manage", "offline_access"] } } }, "required": ["interactionId", "decision", "approvedScopes"], "additionalProperties": false }, { "type": "object", "properties": { "interactionId": { "type": "string" }, "decision": { "const": "deny" } }, "required": ["interactionId", "decision"], "additionalProperties": false }] },
822
+ decideConsent: { "oneOf": [{ "type": "object", "properties": { "interactionId": { "type": "string" }, "decision": { "const": "approve" }, "approvedScopes": { "type": "array", "items": { "enum": ["objects.read", "objects.write", "branches.read", "branches.write", "branches.manage", "builds.run", "offline_access"] } } }, "required": ["interactionId", "decision", "approvedScopes"], "additionalProperties": false }, { "type": "object", "properties": { "interactionId": { "type": "string" }, "decision": { "const": "deny" } }, "required": ["interactionId", "decision"], "additionalProperties": false }] },
709
823
  listConnectedApps: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
710
824
  revokeConnectedApp: { "type": "object", "properties": { "clientId": { "type": "string" } }, "required": ["clientId"], "additionalProperties": false },
711
825
  readStepUpRequest: { "type": "object", "properties": { "pendingId": { "type": "string" } }, "required": ["pendingId"], "additionalProperties": false },
@@ -828,7 +942,7 @@ var SCHEMAS = {
828
942
  readCurrentChangeSet: { "type": "object", "properties": {}, "required": [], "additionalProperties": false },
829
943
  readChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" } }, "required": ["changeSetId"], "additionalProperties": false },
830
944
  readChangeSetState: { "type": "object", "properties": { "changeSetId": { "type": "string" } }, "required": ["changeSetId"], "additionalProperties": false },
831
- reviseChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" }, "expectedRevision": { "type": "string" }, "changes": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "typeCategory": { "const": "object" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "description": { "oneOf": [{ "type": "string" }, { "type": "null" }] }, "schemaLanguageVersion": { "type": "string" }, "propertyDefinitions": { "type": "object", "additionalProperties": {} }, "requiredPropertyKeys": { "type": "array", "items": { "type": "string" } }, "presentationBindings": { "type": "object", "properties": { "views": { "type": "object", "properties": { "object": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false }, "app": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false }, "card": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false } }, "required": [], "additionalProperties": false }, "title": { "type": "string" }, "summary": { "type": "string" }, "icon": { "type": "string" }, "typeIcon": { "type": "string" }, "propertyLabels": { "type": "object", "additionalProperties": { "type": "string" } }, "propertyOrder": { "type": "array", "items": { "type": "string" } }, "rail": { "type": "object", "properties": { "group": { "type": "string" }, "order": { "type": "number" } }, "required": ["group", "order"], "additionalProperties": false } }, "required": [], "additionalProperties": false }, "structureDeclaration": { "type": "object", "properties": { "relationships": { "type": "array", "items": { "type": "string" } }, "views": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "label": { "type": "string" }, "steps": { "type": "array", "items": { "type": "string" } }, "decoration": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "label": { "type": "string" } }, "required": ["key", "label"], "additionalProperties": false } } }, "required": ["key", "label", "steps"], "additionalProperties": false } } }, "required": [], "additionalProperties": false }, "bodyFormat": { "const": "markdown" }, "subscriptionRoles": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false }, "approver": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false }, "watcher": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false } }, "required": [], "additionalProperties": false } }, "required": ["typeCategory", "typeKey", "version", "displayName", "description", "schemaLanguageVersion", "propertyDefinitions", "requiredPropertyKeys"], "additionalProperties": false }, { "type": "object", "properties": { "typeCategory": { "const": "edge" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "sourceObjectType": { "type": "string" }, "targetObjectType": { "type": "string" }, "kind": { "enum": ["structural", "traceability"] }, "subjectEnd": { "enum": ["source", "target"] }, "parentEnd": { "oneOf": [{ "const": "source" }, { "const": "target" }, { "type": "null" }] }, "sourceLabel": { "type": "string" }, "targetLabel": { "type": "string" }, "schemaLanguageVersion": { "type": "string" }, "propertyDefinitions": { "type": "object", "additionalProperties": {} }, "requiredPropertyKeys": { "type": "array", "items": { "type": "string" } }, "readRule": { "enum": ["both-endpoints", "either-endpoint"] }, "writeRule": { "enum": ["both-endpoints", "either-endpoint"] }, "review": { "type": "object", "properties": { "upstream": { "enum": ["source", "target"] }, "significant": { "type": "array", "items": { "type": "string" } }, "newLinks": { "enum": ["cleared", "unreviewed"] }, "propagation": { "enum": ["direct", "chain"] }, "chainDepth": { "type": "number" } }, "required": ["upstream"], "additionalProperties": false } }, "required": ["typeCategory", "typeKey", "version", "displayName", "sourceObjectType", "targetObjectType", "kind", "subjectEnd", "parentEnd", "sourceLabel", "targetLabel", "schemaLanguageVersion", "propertyDefinitions", "requiredPropertyKeys", "readRule", "writeRule"], "additionalProperties": false }, { "type": "object", "properties": { "typeCategory": { "const": "verb" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "description": { "oneOf": [{ "type": "string" }, { "type": "null" }] }, "allowedSubjectTypes": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "none" } }, "required": ["kind"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "types" }, "types": { "type": "array", "items": { "type": "string" } } }, "required": ["kind", "types"], "additionalProperties": false }] }, "inputSchema": {}, "resultSchema": {}, "handlerKey": { "type": "string" }, "template": { "type": "object", "properties": { "query": { "type": "object", "properties": { "typeKey": { "type": "string" }, "filters": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "op": { "enum": ["=", ">", ">=", "<", "<="] }, "value": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] } }, "required": ["kind", "property", "op", "value"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "op": { "const": "in" }, "values": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] } } }, "required": ["kind", "property", "op", "values"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "text" }, "term": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] }, "properties": { "type": "array", "items": { "type": "string" } } }, "required": ["kind", "term"], "additionalProperties": false }] } }, "sort": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "direction": { "enum": ["asc", "desc"] } }, "required": ["kind", "property", "direction"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "identity" }, "direction": { "enum": ["asc", "desc"] } }, "required": ["kind", "direction"], "additionalProperties": false }] }, "limit": { "type": "integer" } }, "required": ["typeKey", "limit"], "additionalProperties": false }, "operations": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "create-object" }, "typeKey": { "type": "string" }, "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } } }, "required": ["kind", "typeKey", "properties"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "update-object" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "changes": { "type": "object", "additionalProperties": { "type": "object", "properties": { "from": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "absent" } }, "required": ["slot"], "additionalProperties": false }] }, "to": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "absent" } }, "required": ["slot"], "additionalProperties": false }] } }, "required": ["from", "to"], "additionalProperties": false } } }, "required": ["kind", "typeKey", "target", "changes"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "delete-object" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } }, "required": ["kind", "typeKey", "target"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "create-edge" }, "typeKey": { "type": "string" }, "source": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } } }, "required": ["kind", "typeKey", "source", "target", "properties"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "delete-edge" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } }, "required": ["kind", "typeKey", "target"], "additionalProperties": false }] } } }, "required": ["operations"], "additionalProperties": false }, "schemaLanguageVersion": { "type": "string" } }, "required": ["typeCategory", "typeKey", "version", "displayName", "description", "allowedSubjectTypes", "inputSchema", "resultSchema", "schemaLanguageVersion"], "additionalProperties": false }] } }, "railGroups": { "type": "array", "items": { "type": "string" } } }, "required": ["changeSetId", "expectedRevision", "changes"], "additionalProperties": false },
945
+ reviseChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" }, "expectedRevision": { "type": "string" }, "changes": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "instanceRule": { "enum": ["direct", "immutable"] }, "typeCategory": { "const": "object" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "description": { "oneOf": [{ "type": "string" }, { "type": "null" }] }, "schemaLanguageVersion": { "type": "string" }, "propertyDefinitions": { "type": "object", "additionalProperties": {} }, "requiredPropertyKeys": { "type": "array", "items": { "type": "string" } }, "presentationBindings": { "type": "object", "properties": { "views": { "type": "object", "properties": { "object": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false }, "app": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false }, "card": { "type": "object", "properties": { "root": { "type": "string" }, "elements": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": { "type": "string" }, "props": { "type": "object", "additionalProperties": {} }, "children": { "type": "array", "items": { "type": "string" } }, "repeat": { "type": "object", "properties": { "statePath": { "type": "string" }, "key": { "type": "string" } }, "required": ["statePath"], "additionalProperties": false }, "on": { "type": "object", "properties": { "press": { "oneOf": [{ "type": "object", "properties": { "action": { "const": "set-properties" }, "params": { "type": "object", "properties": { "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "object", "properties": { "$state": { "type": "string" } }, "required": ["$state"], "additionalProperties": false }] } } }, "required": ["properties"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }, { "type": "object", "properties": { "action": { "const": "run-verb" }, "params": { "type": "object", "properties": { "verb": { "type": "string" } }, "required": ["verb"], "additionalProperties": false } }, "required": ["action", "params"], "additionalProperties": false }] } }, "required": ["press"], "additionalProperties": false } }, "required": ["type", "props", "children"], "additionalProperties": false } } }, "required": ["root", "elements"], "additionalProperties": false } }, "required": [], "additionalProperties": false }, "title": { "type": "string" }, "summary": { "type": "string" }, "icon": { "type": "string" }, "typeIcon": { "type": "string" }, "propertyLabels": { "type": "object", "additionalProperties": { "type": "string" } }, "propertyOrder": { "type": "array", "items": { "type": "string" } }, "multiline": { "type": "array", "items": { "type": "string" } }, "rail": { "type": "object", "properties": { "group": { "type": "string" }, "order": { "type": "number" } }, "required": ["group", "order"], "additionalProperties": false } }, "required": [], "additionalProperties": false }, "structureDeclaration": { "type": "object", "properties": { "relationships": { "type": "array", "items": { "type": "string" } }, "views": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "label": { "type": "string" }, "steps": { "type": "array", "items": { "type": "string" } }, "decoration": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "label": { "type": "string" } }, "required": ["key", "label"], "additionalProperties": false } } }, "required": ["key", "label", "steps"], "additionalProperties": false } } }, "required": [], "additionalProperties": false }, "bodyFormat": { "const": "markdown" }, "subscriptionRoles": { "type": "object", "properties": { "owner": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false }, "approver": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false }, "watcher": { "type": "object", "properties": { "max": { "type": "number" } }, "required": [], "additionalProperties": false } }, "required": [], "additionalProperties": false } }, "required": ["typeCategory", "typeKey", "version", "displayName", "description", "schemaLanguageVersion", "propertyDefinitions", "requiredPropertyKeys"], "additionalProperties": false }, { "type": "object", "properties": { "typeCategory": { "const": "edge" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "sourceObjectType": { "type": "string" }, "targetObjectType": { "type": "string" }, "kind": { "enum": ["structural", "traceability"] }, "subjectEnd": { "enum": ["source", "target"] }, "parentEnd": { "oneOf": [{ "const": "source" }, { "const": "target" }, { "type": "null" }] }, "sourceLabel": { "type": "string" }, "targetLabel": { "type": "string" }, "schemaLanguageVersion": { "type": "string" }, "propertyDefinitions": { "type": "object", "additionalProperties": {} }, "requiredPropertyKeys": { "type": "array", "items": { "type": "string" } }, "readRule": { "enum": ["both-endpoints", "either-endpoint"] }, "writeRule": { "enum": ["both-endpoints", "either-endpoint"] }, "editorHidden": { "type": "boolean" }, "review": { "type": "object", "properties": { "upstream": { "enum": ["source", "target"] }, "significant": { "type": "array", "items": { "type": "string" } }, "newLinks": { "enum": ["cleared", "unreviewed"] }, "propagation": { "enum": ["direct", "chain"] }, "chainDepth": { "type": "number" } }, "required": ["upstream"], "additionalProperties": false } }, "required": ["typeCategory", "typeKey", "version", "displayName", "sourceObjectType", "targetObjectType", "kind", "subjectEnd", "parentEnd", "sourceLabel", "targetLabel", "schemaLanguageVersion", "propertyDefinitions", "requiredPropertyKeys", "readRule", "writeRule"], "additionalProperties": false }, { "type": "object", "properties": { "typeCategory": { "const": "verb" }, "typeKey": { "type": "string" }, "version": { "type": "integer" }, "displayName": { "type": "string" }, "description": { "oneOf": [{ "type": "string" }, { "type": "null" }] }, "allowedSubjectTypes": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "none" } }, "required": ["kind"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "types" }, "types": { "type": "array", "items": { "type": "string" } } }, "required": ["kind", "types"], "additionalProperties": false }] }, "inputSchema": {}, "resultSchema": {}, "handlerKey": { "type": "string" }, "template": { "type": "object", "properties": { "query": { "type": "object", "properties": { "typeKey": { "type": "string" }, "filters": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "op": { "enum": ["=", ">", ">=", "<", "<="] }, "value": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] } }, "required": ["kind", "property", "op", "value"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "op": { "const": "in" }, "values": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] } } }, "required": ["kind", "property", "op", "values"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "text" }, "term": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }] }, "properties": { "type": "array", "items": { "type": "string" } } }, "required": ["kind", "term"], "additionalProperties": false }] } }, "sort": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "property" }, "property": { "type": "string" }, "direction": { "enum": ["asc", "desc"] } }, "required": ["kind", "property", "direction"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "identity" }, "direction": { "enum": ["asc", "desc"] } }, "required": ["kind", "direction"], "additionalProperties": false }] }, "limit": { "type": "integer" } }, "required": ["typeKey", "limit"], "additionalProperties": false }, "operations": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "const": "create-object" }, "typeKey": { "type": "string" }, "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } } }, "required": ["kind", "typeKey", "properties"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "update-object" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "changes": { "type": "object", "additionalProperties": { "type": "object", "properties": { "from": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "absent" } }, "required": ["slot"], "additionalProperties": false }] }, "to": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "absent" } }, "required": ["slot"], "additionalProperties": false }] } }, "required": ["from", "to"], "additionalProperties": false } } }, "required": ["kind", "typeKey", "target", "changes"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "delete-object" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } }, "required": ["kind", "typeKey", "target"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "create-edge" }, "typeKey": { "type": "string" }, "source": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] }, "properties": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "literal" }, "value": {} }, "required": ["slot", "value"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" }, "property": { "type": "string" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } } }, "required": ["kind", "typeKey", "source", "target", "properties"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "delete-edge" }, "typeKey": { "type": "string" }, "target": { "oneOf": [{ "type": "object", "properties": { "slot": { "const": "input" }, "key": { "type": "string" } }, "required": ["slot", "key"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "subject" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "item" } }, "required": ["slot"], "additionalProperties": false }, { "type": "object", "properties": { "slot": { "const": "step" }, "index": { "type": "integer" } }, "required": ["slot", "index"], "additionalProperties": false }] } }, "required": ["kind", "typeKey", "target"], "additionalProperties": false }] } } }, "required": ["operations"], "additionalProperties": false }, "schemaLanguageVersion": { "type": "string" } }, "required": ["typeCategory", "typeKey", "version", "displayName", "description", "allowedSubjectTypes", "inputSchema", "resultSchema", "schemaLanguageVersion"], "additionalProperties": false }] } }, "railGroups": { "type": "array", "items": { "type": "string" } } }, "required": ["changeSetId", "expectedRevision", "changes"], "additionalProperties": false },
832
946
  validateChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" }, "revision": { "type": "string" } }, "required": ["changeSetId", "revision"], "additionalProperties": false },
833
947
  discardChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" } }, "required": ["changeSetId"], "additionalProperties": false },
834
948
  acceptChangeSet: { "type": "object", "properties": { "changeSetId": { "type": "string" }, "revision": { "type": "string" }, "correlationId": { "type": "string" } }, "required": ["changeSetId", "revision"], "additionalProperties": false },
@@ -889,6 +1003,21 @@ var SELECTORS = {
889
1003
  };
890
1004
  var SELECTOR_SCHEMAS = deepFreeze(SELECTORS);
891
1005
  var EXAMPLES = {
1006
+ startBuild: { "target": { "kind": "outputs", "outputIds": [] } },
1007
+ cancelBuild: { "buildRunId": "<buildRunId>" },
1008
+ readBuildRun: { "buildRunId": "<buildRunId>" },
1009
+ listBuildRuns: { "objectId": "<objectId>", "continuation": null },
1010
+ readStepRun: { "stepRunId": "<stepRunId>" },
1011
+ readOutputValues: { "outputId": "<outputId>", "keys": [] },
1012
+ readStepLog: { "stepRunId": "<stepRunId>" },
1013
+ checkCase: { "caseId": "<caseId>" },
1014
+ registerEngine: { "name": "<name>", "isolation": "ephemeral", "properties": {}, "runtime": { "image": "<image>" } },
1015
+ listEngines: {},
1016
+ claimStepRun: { "googleIdentityToken": "<googleIdentityToken>", "executionName": "<executionName>", "jobName": "<jobName>", "claimCode": "<claimCode>" },
1017
+ readStepInput: {
1018
+ "kind": "spec"
1019
+ },
1020
+ submitStepResult: { "kind": "complete", "outputs": [] },
892
1021
  createObjectSet: { "name": "Saved set", "members": [{ "objectId": "obj_aaaaaaaaaaaaaaaaaaaaaaaaaa", "projectId": "<projectId>" }] },
893
1022
  listObjectSets: {},
894
1023
  readObjectSet: { "setId": "ost_aaaaaaaaaaaaaaaaaaaaaaaaaa" },
@@ -1078,7 +1207,7 @@ var ROUTE_INPUT_EXAMPLES = deepFreeze(EXAMPLES);
1078
1207
  var DESCRIPTION_ROUTES = Object.freeze(["queryRows", "queryObjects", "aggregateObjects", "queryGraph", "readStructure", "findPaths"]);
1079
1208
 
1080
1209
  // packages/api-contract/dist/routes.js
1081
- var PROTOCOL_VERSION = 39;
1210
+ var PROTOCOL_VERSION = 45;
1082
1211
  var VERSION_HEADER = "oe2-protocol-version";
1083
1212
  var TOKEN_HEADER = "authorization";
1084
1213
  var IDEMPOTENCY_HEADER = "oe2-idempotency-key";
@@ -1087,9 +1216,14 @@ var STEP_UP_KEY_HEADER = "oe2-step-up-key";
1087
1216
  var IDEMPOTENCY_KEY_PATTERN = /^[A-Za-z0-9._~-]{1,128}$/;
1088
1217
  var STREAMED_ROUTE_NAMES = Object.freeze(["sendMessageStreamed", "answerPlanStreamed"]);
1089
1218
  var BINARY_REQUEST_ROUTE_NAMES = Object.freeze([
1090
- "publishHostedVersion"
1219
+ "publishHostedVersion",
1220
+ "stageStepOutput",
1221
+ "postStepLog"
1222
+ ]);
1223
+ var BINARY_RESPONSE_ROUTE_NAMES = Object.freeze([
1224
+ "readAttachment",
1225
+ "readStepInput"
1091
1226
  ]);
1092
- var BINARY_RESPONSE_ROUTE_NAMES = Object.freeze(["readAttachment"]);
1093
1227
  function isBinaryRequestRoute(name) {
1094
1228
  return BINARY_REQUEST_ROUTE_NAMES.some((binary) => binary === name);
1095
1229
  }
@@ -1103,6 +1237,7 @@ var OMITTABLE_GROUPS = Object.freeze([
1103
1237
  "agent"
1104
1238
  ]);
1105
1239
  var ACTOR_TOKEN_KINDS = Object.freeze({
1240
+ engine: "engine",
1106
1241
  person: "user",
1107
1242
  "agent:explore": "agent:explore",
1108
1243
  "agent:apply": "agent:apply",
@@ -1112,6 +1247,21 @@ var ACTOR_TOKEN_KINDS = Object.freeze({
1112
1247
  service: "service"
1113
1248
  });
1114
1249
  var STEP_UP_ROUTE_GROUPS = Object.freeze({
1250
+ startBuild: "unmarked",
1251
+ cancelBuild: "unmarked",
1252
+ readBuildRun: "unmarked",
1253
+ listBuildRuns: "unmarked",
1254
+ readStepRun: "unmarked",
1255
+ readOutputValues: "unmarked",
1256
+ readStepLog: "unmarked",
1257
+ checkCase: "unmarked",
1258
+ registerEngine: "marked",
1259
+ listEngines: "unmarked",
1260
+ claimStepRun: "unmarked",
1261
+ readStepInput: "unmarked",
1262
+ stageStepOutput: "unmarked",
1263
+ submitStepResult: "unmarked",
1264
+ postStepLog: "unmarked",
1115
1265
  createObjectSet: "unmarked",
1116
1266
  listObjectSets: "unmarked",
1117
1267
  readObjectSet: "unmarked",
@@ -1349,6 +1499,196 @@ function route(entry2) {
1349
1499
  return Object.freeze({ ...entry2, policy, admittedTokenKinds: kinds, doc: documented });
1350
1500
  }
1351
1501
  var ROUTES = Object.freeze({
1502
+ startBuild: route({
1503
+ name: "startBuild",
1504
+ method: "POST",
1505
+ path: "/builds/start",
1506
+ group: "write",
1507
+ selector: "object",
1508
+ subject: "project",
1509
+ idempotent: true,
1510
+ policy: admittingActors("person", "agent:apply", "app:client"),
1511
+ versioned: true,
1512
+ module: "objects-sdk",
1513
+ capability: "objects.build"
1514
+ }),
1515
+ cancelBuild: route({
1516
+ name: "cancelBuild",
1517
+ method: "POST",
1518
+ path: "/builds/cancel",
1519
+ group: "write",
1520
+ selector: "project",
1521
+ subject: "project",
1522
+ idempotent: false,
1523
+ policy: admittingActors("person", "agent:apply", "app:client"),
1524
+ versioned: true,
1525
+ module: "objects-sdk",
1526
+ capability: "objects.build"
1527
+ }),
1528
+ readBuildRun: route({
1529
+ name: "readBuildRun",
1530
+ method: "POST",
1531
+ path: "/builds/read",
1532
+ group: "read",
1533
+ selector: "project",
1534
+ subject: "project",
1535
+ idempotent: false,
1536
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1537
+ versioned: true,
1538
+ module: "objects-sdk",
1539
+ capability: "objects.read"
1540
+ }),
1541
+ listBuildRuns: route({
1542
+ name: "listBuildRuns",
1543
+ method: "POST",
1544
+ path: "/builds/list",
1545
+ group: "read",
1546
+ selector: "project",
1547
+ subject: "project",
1548
+ idempotent: false,
1549
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1550
+ versioned: true,
1551
+ module: "objects-sdk",
1552
+ capability: "objects.read"
1553
+ }),
1554
+ readStepRun: route({
1555
+ name: "readStepRun",
1556
+ method: "POST",
1557
+ path: "/step-runs/read",
1558
+ group: "read",
1559
+ selector: "project",
1560
+ subject: "project",
1561
+ idempotent: false,
1562
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1563
+ versioned: true,
1564
+ module: "objects-sdk",
1565
+ capability: "objects.read"
1566
+ }),
1567
+ readOutputValues: route({
1568
+ name: "readOutputValues",
1569
+ method: "POST",
1570
+ path: "/outputs/values",
1571
+ group: "read",
1572
+ selector: "object",
1573
+ subject: "project",
1574
+ idempotent: false,
1575
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1576
+ versioned: true,
1577
+ module: "objects-sdk",
1578
+ capability: "objects.read"
1579
+ }),
1580
+ readStepLog: route({
1581
+ name: "readStepLog",
1582
+ method: "POST",
1583
+ path: "/step-runs/log",
1584
+ group: "read",
1585
+ selector: "project",
1586
+ subject: "project",
1587
+ idempotent: false,
1588
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1589
+ versioned: true,
1590
+ module: "objects-sdk",
1591
+ capability: "objects.read"
1592
+ }),
1593
+ checkCase: route({
1594
+ name: "checkCase",
1595
+ method: "POST",
1596
+ path: "/cases/check",
1597
+ group: "read",
1598
+ selector: "object",
1599
+ subject: "project",
1600
+ idempotent: false,
1601
+ policy: admittingActors("person", "service", "agent:explore", "agent:apply", "app:client", "app:hosted"),
1602
+ versioned: true,
1603
+ module: "objects-sdk",
1604
+ capability: "objects.read"
1605
+ }),
1606
+ registerEngine: route({
1607
+ name: "registerEngine",
1608
+ method: "POST",
1609
+ path: "/engines/register",
1610
+ group: "administration",
1611
+ selector: "none",
1612
+ subject: "none",
1613
+ idempotent: false,
1614
+ policy: admittingActors("person"),
1615
+ versioned: true,
1616
+ module: "admin-sdk",
1617
+ capability: "admin.engineRegistration"
1618
+ }),
1619
+ listEngines: route({
1620
+ name: "listEngines",
1621
+ method: "POST",
1622
+ path: "/engines/list",
1623
+ group: "read",
1624
+ selector: "none",
1625
+ subject: "none",
1626
+ idempotent: false,
1627
+ policy: admittingActors("person"),
1628
+ versioned: true,
1629
+ module: "admin-sdk",
1630
+ capability: "admin.engines"
1631
+ }),
1632
+ claimStepRun: route({
1633
+ name: "claimStepRun",
1634
+ method: "POST",
1635
+ path: "/engine/claim",
1636
+ group: "engine",
1637
+ selector: "none",
1638
+ subject: "platform",
1639
+ idempotent: false,
1640
+ policy: NO_ACTORS,
1641
+ versioned: true,
1642
+ module: "sdk-core"
1643
+ }),
1644
+ readStepInput: route({
1645
+ name: "readStepInput",
1646
+ method: "POST",
1647
+ path: "/engine/input",
1648
+ group: "engine",
1649
+ selector: "none",
1650
+ subject: "platform",
1651
+ idempotent: false,
1652
+ policy: admittingActors("engine"),
1653
+ versioned: true,
1654
+ module: "sdk-core"
1655
+ }),
1656
+ stageStepOutput: route({
1657
+ name: "stageStepOutput",
1658
+ method: "POST",
1659
+ path: "/engine/output",
1660
+ group: "engine",
1661
+ selector: "none",
1662
+ subject: "platform",
1663
+ idempotent: false,
1664
+ policy: admittingActors("engine"),
1665
+ versioned: true,
1666
+ module: "sdk-core"
1667
+ }),
1668
+ submitStepResult: route({
1669
+ name: "submitStepResult",
1670
+ method: "POST",
1671
+ path: "/engine/result",
1672
+ group: "engine",
1673
+ selector: "none",
1674
+ subject: "platform",
1675
+ idempotent: false,
1676
+ policy: admittingActors("engine"),
1677
+ versioned: true,
1678
+ module: "sdk-core"
1679
+ }),
1680
+ postStepLog: route({
1681
+ name: "postStepLog",
1682
+ method: "POST",
1683
+ path: "/engine/log",
1684
+ group: "engine",
1685
+ selector: "none",
1686
+ subject: "platform",
1687
+ idempotent: false,
1688
+ policy: admittingActors("engine"),
1689
+ versioned: true,
1690
+ module: "sdk-core"
1691
+ }),
1352
1692
  createObjectSet: route({ name: "createObjectSet", method: "POST", path: "/object-sets", group: "write", selector: "object", subject: "project", idempotent: true, policy: admittingActors("person", "app:hosted"), versioned: true, module: "objects-sdk", capability: "objects.createObjectSet" }),
1353
1693
  listObjectSets: route({ name: "listObjectSets", method: "POST", path: "/object-sets/list", group: "read", selector: "none", subject: "none", idempotent: false, policy: admittingActors("person", "app:hosted"), versioned: true, module: "objects-sdk", capability: "objects.listObjectSets" }),
1354
1694
  readObjectSet: route({ name: "readObjectSet", method: "POST", path: "/object-sets/read", group: "read", selector: "object", subject: "project", idempotent: false, policy: admittingActors("person", "app:hosted"), versioned: true, module: "objects-sdk", capability: "objects.readObjectSet" }),
@@ -1905,6 +2245,21 @@ var ROUTES = Object.freeze({
1905
2245
  listHostedOneWallGrants: route({ name: "listHostedOneWallGrants", method: "POST", path: "/hosted-one-wall-grants/list", group: "read", selector: "none", subject: "none", idempotent: false, policy: admittingActors("person"), versioned: true, module: "hosted-apps-sdk", capability: "hostedApps.oneWallGrants" })
1906
2246
  });
1907
2247
  var ROUTE_CARRIES_CREDENTIAL = Object.freeze({
2248
+ startBuild: false,
2249
+ cancelBuild: false,
2250
+ readBuildRun: false,
2251
+ listBuildRuns: false,
2252
+ readStepRun: false,
2253
+ readOutputValues: false,
2254
+ readStepLog: false,
2255
+ checkCase: false,
2256
+ registerEngine: false,
2257
+ listEngines: false,
2258
+ claimStepRun: true,
2259
+ readStepInput: false,
2260
+ stageStepOutput: false,
2261
+ submitStepResult: false,
2262
+ postStepLog: false,
1908
2263
  createObjectSet: false,
1909
2264
  listObjectSets: false,
1910
2265
  readObjectSet: false,
@@ -2154,6 +2509,10 @@ var CLIENT_SCOPES = Object.freeze({
2154
2509
  consentLine: "Create and abandon branches, submit and refuse proposals, and read your branches, as you."
2155
2510
  }),
2156
2511
  "branches.manage": Object.freeze({ capabilities: Object.freeze(["branches.merge", "branches.disposal", "objects.recovery"]), consentLine: "Merge branches into the branches and trunks you may change, delete branches and other refs, and recover changes, as you." }),
2512
+ "builds.run": Object.freeze({
2513
+ capabilities: Object.freeze(["objects.build"]),
2514
+ consentLine: "Start and cancel builds in your projects, as you."
2515
+ }),
2157
2516
  offline_access: Object.freeze({ capabilities: Object.freeze([]), consentLine: "Stay connected when you are away, until you disconnect it." })
2158
2517
  });
2159
2518
 
@@ -2207,7 +2566,8 @@ var BOUND_LABEL = {
2207
2566
  "rate-per-principal": "the request-rate limit per principal",
2208
2567
  "rate-per-address": "the request-rate limit per address",
2209
2568
  "resolve-in-flight": "the concurrent name-resolution limit",
2210
- "pending-sign-ins": "the pending sign-in limit"
2569
+ "pending-sign-ins": "the pending sign-in limit",
2570
+ "request-duration": "the time limit on one request"
2211
2571
  };
2212
2572
  function explainKind(kind) {
2213
2573
  if (!Object.hasOwn(BY_KIND, kind)) {
@@ -2217,7 +2577,10 @@ function explainKind(kind) {
2217
2577
  if (kind !== "bound-exceeded") {
2218
2578
  return Object.freeze({ explanation, explains: "kind" });
2219
2579
  }
2220
- return Object.freeze({ explanation: withMeaning(explanation, "The exceeded limit is the request-body, query-page, concurrency, request-rate, address-rate, resolve-capacity or pending-sign-in limit."), explains: "kind" });
2580
+ return Object.freeze({
2581
+ explanation: withMeaning(explanation, "The exceeded limit is the request-body, query-page, concurrency, request-rate, address-rate, resolve-capacity, pending-sign-in or request-duration limit."),
2582
+ explains: "kind"
2583
+ });
2221
2584
  }
2222
2585
  function withMeaning(explanation, detail) {
2223
2586
  return Object.freeze({ meaning: `${explanation.meaning} ${detail}`, next: explanation.next });
@@ -3373,6 +3736,8 @@ var SDK_CORE_ROUTE_ENTRIES = routeEntriesOf("sdk-core");
3373
3736
  // packages/admin-sdk/dist/index.js
3374
3737
  var ADMIN_ROUTE_ENTRIES = routeEntriesOf("admin-sdk");
3375
3738
  var ADMIN_ROUTE_NAMES = Object.freeze([
3739
+ "registerEngine",
3740
+ "listEngines",
3376
3741
  "registerClient",
3377
3742
  "listClients",
3378
3743
  "revokeClient",
@@ -3729,6 +4094,14 @@ async function uploadAttachment(transport, origin, token, selector, source, opti
3729
4094
  // packages/objects-sdk/dist/transport-client.js
3730
4095
  var OBJECTS_ROUTE_ENTRIES = routeEntriesOf("objects-sdk");
3731
4096
  var OBJECTS_ROUTE_NAMES = [
4097
+ "startBuild",
4098
+ "cancelBuild",
4099
+ "readBuildRun",
4100
+ "listBuildRuns",
4101
+ "readStepRun",
4102
+ "readOutputValues",
4103
+ "readStepLog",
4104
+ "checkCase",
3732
4105
  "openAttachmentUpload",
3733
4106
  "completeAttachmentUpload",
3734
4107
  "readAttachment",
@@ -4947,6 +5320,7 @@ function edgeProspective(published) {
4947
5320
  requiredPropertyKeys: stringListOf(published.requiredPropertyKeys, `${what} requiredPropertyKeys`),
4948
5321
  readRule: oneOf(published.readRule, RULES, `${what} readRule`),
4949
5322
  writeRule: oneOf(published.writeRule, RULES, `${what} writeRule`),
5323
+ ...published.editorHidden ? { editorHidden: true } : {},
4950
5324
  ...published.review === void 0 || published.review === null ? {} : { review: published.review }
4951
5325
  };
4952
5326
  }
@@ -5338,11 +5712,21 @@ function withoutCorrelation(example) {
5338
5712
  function schemaHelpLines(entry2) {
5339
5713
  if (isBinaryRequestRoute(entry2.name)) {
5340
5714
  const binary = BINARY_REQUEST_INPUTS[entry2.name];
5341
- return [
5342
- `content-type: ${binary.contentType}`,
5343
- `${binary.selectorHeader}: selector as JSON text`,
5344
- `${binary.nameHeader}: attachment name as an RFC 8187 ext-value`
5345
- ];
5715
+ const lines2 = [`content-type: ${binary.contentType}`];
5716
+ if ("selectorHeader" in binary) {
5717
+ lines2.push(`${binary.selectorHeader}: selector as JSON text`);
5718
+ }
5719
+ if ("nameHeader" in binary) {
5720
+ const name = binary.nameHeader === "x-oe2-attachment-name" ? "attachment name" : "output name";
5721
+ lines2.push(`${binary.nameHeader}: ${name} as an RFC 8187 ext-value`);
5722
+ }
5723
+ if ("digestHeader" in binary) {
5724
+ lines2.push(`${binary.digestHeader}: output digest encoded as ${binary.digestEncoding}`);
5725
+ }
5726
+ if ("encoding" in binary) {
5727
+ lines2.push(`body: ${binary.encoding} byte stream`);
5728
+ }
5729
+ return lines2;
5346
5730
  }
5347
5731
  const schemas = schemasOf(entry2);
5348
5732
  const input = fieldLines(schemas.input, schemas.input, " ");
@@ -5471,6 +5855,12 @@ function refusalLines(refusal2, settle2, request3, host, reference) {
5471
5855
  if (refusal2.kind === "refused" && refusal2.rule === "owned-type-not-presentation" && refusal2.detail !== void 0) {
5472
5856
  lines.push(`type: ${refusal2.detail.typeKey}; field: ${refusal2.detail.field}`);
5473
5857
  }
5858
+ if (refusal2.kind === "refused" && refusal2.rule === "outputs-already-current" && refusal2.outputs !== void 0) {
5859
+ lines.push(
5860
+ `current: ${refusal2.outputs.current}; stale: ${refusal2.outputs.stale}`,
5861
+ "Choose run-all or run-stale explicitly and send a new request."
5862
+ );
5863
+ }
5474
5864
  const allowed = allowedFieldOf(refusal2, request3);
5475
5865
  const allowedValues = allowed?.allowedValues ?? [];
5476
5866
  if (request3 !== void 0 && allowed !== null && allowed.allowedKinds.length > 0 && allowed.discriminator !== void 0) {
@@ -13991,12 +14381,30 @@ function boundText(bound) {
13991
14381
  function boundsText(bounds) {
13992
14382
  return "bounds" in bounds ? `${bounds.state}; ${bounds.bounds.map(boundText).join("; ")}` : bounds.state;
13993
14383
  }
14384
+ var RESULT_LABELS = {
14385
+ current: "Current",
14386
+ stale: "Stale",
14387
+ "no-result": "No result",
14388
+ "not-visible": "Not visible",
14389
+ "too-many-links": "Too many links",
14390
+ nonRepeatable: "Non-repeatable"
14391
+ };
14392
+ function resultText(result) {
14393
+ const label = RESULT_LABELS[result.state];
14394
+ if (result.state === "current" || result.state === "stale") {
14395
+ const value = displayPropertyValue(result.value, { kind: "number", unit: result.unit });
14396
+ return `${label}${result.nonRepeatable ? `; ${RESULT_LABELS.nonRepeatable}` : ""}; ${value}; ${result.ref}`;
14397
+ }
14398
+ if (result.state === "no-result") return `${label}; ${result.key.componentId}; ${result.key.variable}; ${JSON.stringify(result.key.sweep)}`;
14399
+ return label;
14400
+ }
13994
14401
  function statusText(answer) {
13995
14402
  return [
13996
14403
  `head: ${answer.head}`,
13997
14404
  ...answer.links.length === 0 ? ["no tracked links"] : answer.links.map((link2) => `${link2.linkId} (${link2.typeKey}) ${link2.upstream.projectId}/${link2.upstream.objectId} -> ${link2.downstream.projectId}/${link2.downstream.objectId}
13998
14405
  review: ${link2.review.state}${"upstreamVersion" in link2.review ? `; version ${link2.review.upstreamVersion}` : ""}
13999
- bounds: ${boundsText(link2.bounds)}` + (link2.clearing === null ? "" : `
14406
+ bounds: ${boundsText(link2.bounds)}` + (link2.result === null ? "" : `
14407
+ Result: ${resultText(link2.result)}`) + (link2.clearing === null ? "" : `
14000
14408
  cleared by ${link2.clearing.clearedBy} at ${link2.clearing.clearedAt}`)),
14001
14409
  ...answer.aggregates.map((bound) => `aggregate ${boundText(bound)}`)
14002
14410
  ].join("\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openengio/cli",
3
- "version": "0.39.0",
3
+ "version": "0.45.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -389,7 +389,9 @@ grant access to its title, type or properties. Any cursor that is not a current
389
389
  and no matching rule restricts deletions, or when no rule matches even with a pending proposal.
390
390
  Otherwise the caller must be on every matching rule's bypass list. A bypass member may dispose
391
391
  with or without a proposal, including under restricted deletions, with write access to all affected
392
- projects. Success discards the pending proposal after the engine disposal succeeds.
392
+ projects. A person's bypass counts only from a web session or a CLI session in human mode: an
393
+ agent-mode CLI session, or a session with no recorded channel, takes no bypass for a merge, a
394
+ disposal or a direct edit. Success discards the pending proposal after the engine disposal succeeds.
393
395
 
394
396
  Merge and disposal admit people, services and client apps. Agent runs and hosted apps are refused
395
397
  `token-kind-not-admitted`. With no rule matching the merge target, a writer of all affected projects
@@ -674,3 +676,65 @@ openeng objects-sdk recover --selector '{"projectId":"<project-id>","ref":"<proj
674
676
  Recovery can report a committed change and its hash, and finish the recovery record. It never sends
675
677
  the original mutation again. If the saved evidence still cannot establish an outcome, it returns
676
678
  `unknown`; it cannot undo a successful write, restore a deleted object, or retry a failed operation.
679
+
680
+ A client with the `branches.proposalSubmit` grant may submit a proposal under the person's
681
+ project permissions. That grant alone permits no other branch write.
682
+ ## Builds
683
+
684
+ Save a step and its immutable output declarations with the objects SDK's `saveStep`, then check
685
+ its case before starting. Named inputs bind a case or an output by object identifier.
686
+ A property binding is a data-input edge from the step to the object, of a published edge type
687
+ of the data-input shape: from `build-step`, with exactly two properties, `name` and `property`,
688
+ both required.
689
+ The pack names these types `reads-data-from-<type>` and hides them in the ontology editor.
690
+ The edge reads the named property of the object at the ref, and a bound value is at most 1 MiB.
691
+ The shipped engine entry `modelica-compile` declares no property input, so such a binding answers
692
+ `binding-mismatch` until an entry declares one. Do not retry by silently dropping the property.
693
+ Functions name a runtime key and entry. The server derives image pins, scope and content keys.
694
+
695
+ ```sh
696
+ openeng objects-sdk checkCase --selector '{"projectId":"p","ref":"main"}' --input '{"caseId":"case"}'
697
+ openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"outputs","outputIds":["out"]}}'
698
+ openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"case","caseId":"case"},"choice":"run-stale"}'
699
+ openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"build","buildId":"build"},"choice":"run-all"}'
700
+ openeng objects-sdk cancelBuild --selector '{"projectId":"p"}' --input '{"buildRunId":"run"}'
701
+ openeng admin-sdk registerEngine --input '{"name":"engine","isolation":"ephemeral","properties":{},"runtime":{"image":"openmodelica"}}'
702
+ openeng admin-sdk listEngines --input '{}'
703
+ ```
704
+
705
+ ```sh
706
+ openeng objects-sdk readBuildRun --selector '{"projectId":"p"}' --input '{"buildRunId":"run"}'
707
+ openeng objects-sdk readStepRun --selector '{"projectId":"p"}' --input '{"stepRunId":"step-run"}'
708
+ openeng objects-sdk readStepLog --selector '{"projectId":"p"}' --input '{"stepRunId":"step-run"}'
709
+ openeng objects-sdk listBuildRuns --selector '{"projectId":"p"}' --input '{"objectId":"out","continuation":null}'
710
+ openeng objects-sdk readOutputValues --selector '{"projectId":"p","ref":"main"}' --input '{"outputId":"out","keys":[{"sweep":{},"componentId":"component","variable":"temperature"}]}'
711
+ ```
712
+
713
+ `listBuildRuns` takes `{ objectId, continuation }` and the project from
714
+ `selector: { projectId }`. It lists runs that target an output or case, or contain a step run of
715
+ that step, newest start first (ties by build-run identifier ascending), at most 20 per page.
716
+ The result is `{ runs, continuation }`; begin with `continuation: null`, pass the returned token
717
+ unchanged for the next page, and stop when it is null. Each run includes its ref, target, state,
718
+ start time, starter and step summaries. Listing ends no step run and starts none.
719
+
720
+ `readOutputValues` takes `{ outputId, keys, runRef? }` with
721
+ `selector: { projectId, ref }`; the project comes from the selector. Each key is
722
+ `{ sweep, componentId, variable }`, where `sweep` maps parameter names to numbers. `runRef`
723
+ optionally restricts stored runs to that ref. The result is `{ values }`, one entry per requested
724
+ key: `current` or `stale` with the key, numeric value, unit, step-run identifier, ref, engine
725
+ identifier and `nonRepeatable` flag, or `no-result` with the key when no value matches.
726
+ Freshness compares the stored content key with the current one for the selector's ref;
727
+ `nonRepeatable` reports differing digests for the same content key. Missing runs or unavailable
728
+ indexed output answer `not-found`; opaque output cannot be read through this route.
729
+
730
+ An unfinished build reads `running`. A cancel by a person reads `canceled`; a step run cancelled because its
731
+ upstream failed names that upstream in its error. A `not-found` answer means the row is hidden or absent.
732
+ A step run's log is plain text; show it as text and never as markup.
733
+
734
+ An `outputs-already-current` refusal includes current/stale counts and writes nothing. Ask the user
735
+ which explicit choice to send; the notice grants no permission to choose `run-all` or `run-stale`.
736
+ A start returns `kind: started` with identifiers, or `kind: unchanged` with counts and no build ID.
737
+ `run-all` reruns upstream work too; `run-stale` reuses complete upstream work with source-run/output
738
+ provenance. Compile can run once while simulation expands sweep points. Engine registration is an
739
+ administrator operation in the authenticated organisation and follows the marked-route step-up.
740
+ When builds are unavailable, ask the administrator about engine registration and compute setup.