@openengio/cli 0.39.0 → 0.44.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/bin/public/openeng.js +416 -12
- package/package.json +1 -1
- package/skill/openeng/SKILL.md +60 -0
package/bin/public/openeng.js
CHANGED
|
@@ -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"]),
|
|
@@ -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 =
|
|
1210
|
+
var PROTOCOL_VERSION = 44;
|
|
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
|
|
|
@@ -3373,6 +3732,8 @@ var SDK_CORE_ROUTE_ENTRIES = routeEntriesOf("sdk-core");
|
|
|
3373
3732
|
// packages/admin-sdk/dist/index.js
|
|
3374
3733
|
var ADMIN_ROUTE_ENTRIES = routeEntriesOf("admin-sdk");
|
|
3375
3734
|
var ADMIN_ROUTE_NAMES = Object.freeze([
|
|
3735
|
+
"registerEngine",
|
|
3736
|
+
"listEngines",
|
|
3376
3737
|
"registerClient",
|
|
3377
3738
|
"listClients",
|
|
3378
3739
|
"revokeClient",
|
|
@@ -3729,6 +4090,14 @@ async function uploadAttachment(transport, origin, token, selector, source, opti
|
|
|
3729
4090
|
// packages/objects-sdk/dist/transport-client.js
|
|
3730
4091
|
var OBJECTS_ROUTE_ENTRIES = routeEntriesOf("objects-sdk");
|
|
3731
4092
|
var OBJECTS_ROUTE_NAMES = [
|
|
4093
|
+
"startBuild",
|
|
4094
|
+
"cancelBuild",
|
|
4095
|
+
"readBuildRun",
|
|
4096
|
+
"listBuildRuns",
|
|
4097
|
+
"readStepRun",
|
|
4098
|
+
"readOutputValues",
|
|
4099
|
+
"readStepLog",
|
|
4100
|
+
"checkCase",
|
|
3732
4101
|
"openAttachmentUpload",
|
|
3733
4102
|
"completeAttachmentUpload",
|
|
3734
4103
|
"readAttachment",
|
|
@@ -4947,6 +5316,7 @@ function edgeProspective(published) {
|
|
|
4947
5316
|
requiredPropertyKeys: stringListOf(published.requiredPropertyKeys, `${what} requiredPropertyKeys`),
|
|
4948
5317
|
readRule: oneOf(published.readRule, RULES, `${what} readRule`),
|
|
4949
5318
|
writeRule: oneOf(published.writeRule, RULES, `${what} writeRule`),
|
|
5319
|
+
...published.editorHidden ? { editorHidden: true } : {},
|
|
4950
5320
|
...published.review === void 0 || published.review === null ? {} : { review: published.review }
|
|
4951
5321
|
};
|
|
4952
5322
|
}
|
|
@@ -5338,11 +5708,21 @@ function withoutCorrelation(example) {
|
|
|
5338
5708
|
function schemaHelpLines(entry2) {
|
|
5339
5709
|
if (isBinaryRequestRoute(entry2.name)) {
|
|
5340
5710
|
const binary = BINARY_REQUEST_INPUTS[entry2.name];
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
`${binary.selectorHeader}: selector as JSON text
|
|
5344
|
-
|
|
5345
|
-
|
|
5711
|
+
const lines2 = [`content-type: ${binary.contentType}`];
|
|
5712
|
+
if ("selectorHeader" in binary) {
|
|
5713
|
+
lines2.push(`${binary.selectorHeader}: selector as JSON text`);
|
|
5714
|
+
}
|
|
5715
|
+
if ("nameHeader" in binary) {
|
|
5716
|
+
const name = binary.nameHeader === "x-oe2-attachment-name" ? "attachment name" : "output name";
|
|
5717
|
+
lines2.push(`${binary.nameHeader}: ${name} as an RFC 8187 ext-value`);
|
|
5718
|
+
}
|
|
5719
|
+
if ("digestHeader" in binary) {
|
|
5720
|
+
lines2.push(`${binary.digestHeader}: output digest encoded as ${binary.digestEncoding}`);
|
|
5721
|
+
}
|
|
5722
|
+
if ("encoding" in binary) {
|
|
5723
|
+
lines2.push(`body: ${binary.encoding} byte stream`);
|
|
5724
|
+
}
|
|
5725
|
+
return lines2;
|
|
5346
5726
|
}
|
|
5347
5727
|
const schemas = schemasOf(entry2);
|
|
5348
5728
|
const input = fieldLines(schemas.input, schemas.input, " ");
|
|
@@ -5471,6 +5851,12 @@ function refusalLines(refusal2, settle2, request3, host, reference) {
|
|
|
5471
5851
|
if (refusal2.kind === "refused" && refusal2.rule === "owned-type-not-presentation" && refusal2.detail !== void 0) {
|
|
5472
5852
|
lines.push(`type: ${refusal2.detail.typeKey}; field: ${refusal2.detail.field}`);
|
|
5473
5853
|
}
|
|
5854
|
+
if (refusal2.kind === "refused" && refusal2.rule === "outputs-already-current" && refusal2.outputs !== void 0) {
|
|
5855
|
+
lines.push(
|
|
5856
|
+
`current: ${refusal2.outputs.current}; stale: ${refusal2.outputs.stale}`,
|
|
5857
|
+
"Choose run-all or run-stale explicitly and send a new request."
|
|
5858
|
+
);
|
|
5859
|
+
}
|
|
5474
5860
|
const allowed = allowedFieldOf(refusal2, request3);
|
|
5475
5861
|
const allowedValues = allowed?.allowedValues ?? [];
|
|
5476
5862
|
if (request3 !== void 0 && allowed !== null && allowed.allowedKinds.length > 0 && allowed.discriminator !== void 0) {
|
|
@@ -13991,12 +14377,30 @@ function boundText(bound) {
|
|
|
13991
14377
|
function boundsText(bounds) {
|
|
13992
14378
|
return "bounds" in bounds ? `${bounds.state}; ${bounds.bounds.map(boundText).join("; ")}` : bounds.state;
|
|
13993
14379
|
}
|
|
14380
|
+
var RESULT_LABELS = {
|
|
14381
|
+
current: "Current",
|
|
14382
|
+
stale: "Stale",
|
|
14383
|
+
"no-result": "No result",
|
|
14384
|
+
"not-visible": "Not visible",
|
|
14385
|
+
"too-many-links": "Too many links",
|
|
14386
|
+
nonRepeatable: "Non-repeatable"
|
|
14387
|
+
};
|
|
14388
|
+
function resultText(result) {
|
|
14389
|
+
const label = RESULT_LABELS[result.state];
|
|
14390
|
+
if (result.state === "current" || result.state === "stale") {
|
|
14391
|
+
const value = displayPropertyValue(result.value, { kind: "number", unit: result.unit });
|
|
14392
|
+
return `${label}${result.nonRepeatable ? `; ${RESULT_LABELS.nonRepeatable}` : ""}; ${value}; ${result.ref}`;
|
|
14393
|
+
}
|
|
14394
|
+
if (result.state === "no-result") return `${label}; ${result.key.componentId}; ${result.key.variable}; ${JSON.stringify(result.key.sweep)}`;
|
|
14395
|
+
return label;
|
|
14396
|
+
}
|
|
13994
14397
|
function statusText(answer) {
|
|
13995
14398
|
return [
|
|
13996
14399
|
`head: ${answer.head}`,
|
|
13997
14400
|
...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
14401
|
review: ${link2.review.state}${"upstreamVersion" in link2.review ? `; version ${link2.review.upstreamVersion}` : ""}
|
|
13999
|
-
bounds: ${boundsText(link2.bounds)}` + (link2.
|
|
14402
|
+
bounds: ${boundsText(link2.bounds)}` + (link2.result === null ? "" : `
|
|
14403
|
+
Result: ${resultText(link2.result)}`) + (link2.clearing === null ? "" : `
|
|
14000
14404
|
cleared by ${link2.clearing.clearedBy} at ${link2.clearing.clearedAt}`)),
|
|
14001
14405
|
...answer.aggregates.map((bound) => `aggregate ${boundText(bound)}`)
|
|
14002
14406
|
].join("\n");
|
package/package.json
CHANGED
package/skill/openeng/SKILL.md
CHANGED
|
@@ -674,3 +674,63 @@ openeng objects-sdk recover --selector '{"projectId":"<project-id>","ref":"<proj
|
|
|
674
674
|
Recovery can report a committed change and its hash, and finish the recovery record. It never sends
|
|
675
675
|
the original mutation again. If the saved evidence still cannot establish an outcome, it returns
|
|
676
676
|
`unknown`; it cannot undo a successful write, restore a deleted object, or retry a failed operation.
|
|
677
|
+
|
|
678
|
+
## Builds
|
|
679
|
+
|
|
680
|
+
Save a step and its immutable output declarations with the objects SDK's `saveStep`, then check
|
|
681
|
+
its case before starting. Named inputs bind a case or an output by object identifier.
|
|
682
|
+
A property binding is a data-input edge from the step to the object, of a published edge type
|
|
683
|
+
of the data-input shape: from `build-step`, with exactly two properties, `name` and `property`,
|
|
684
|
+
both required.
|
|
685
|
+
The pack names these types `reads-data-from-<type>` and hides them in the ontology editor.
|
|
686
|
+
The edge reads the named property of the object at the ref, and a bound value is at most 1 MiB.
|
|
687
|
+
The shipped engine entry `modelica-compile` declares no property input, so such a binding answers
|
|
688
|
+
`binding-mismatch` until an entry declares one. Do not retry by silently dropping the property.
|
|
689
|
+
Functions name a runtime key and entry. The server derives image pins, scope and content keys.
|
|
690
|
+
|
|
691
|
+
```sh
|
|
692
|
+
openeng objects-sdk checkCase --selector '{"projectId":"p","ref":"main"}' --input '{"caseId":"case"}'
|
|
693
|
+
openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"outputs","outputIds":["out"]}}'
|
|
694
|
+
openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"case","caseId":"case"},"choice":"run-stale"}'
|
|
695
|
+
openeng objects-sdk startBuild --selector '{"projectId":"p","ref":"main"}' --input '{"target":{"kind":"build","buildId":"build"},"choice":"run-all"}'
|
|
696
|
+
openeng objects-sdk cancelBuild --selector '{"projectId":"p"}' --input '{"buildRunId":"run"}'
|
|
697
|
+
openeng admin-sdk registerEngine --input '{"name":"engine","isolation":"ephemeral","properties":{},"runtime":{"image":"openmodelica"}}'
|
|
698
|
+
openeng admin-sdk listEngines --input '{}'
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
```sh
|
|
702
|
+
openeng objects-sdk readBuildRun --selector '{"projectId":"p"}' --input '{"buildRunId":"run"}'
|
|
703
|
+
openeng objects-sdk readStepRun --selector '{"projectId":"p"}' --input '{"stepRunId":"step-run"}'
|
|
704
|
+
openeng objects-sdk readStepLog --selector '{"projectId":"p"}' --input '{"stepRunId":"step-run"}'
|
|
705
|
+
openeng objects-sdk listBuildRuns --selector '{"projectId":"p"}' --input '{"objectId":"out","continuation":null}'
|
|
706
|
+
openeng objects-sdk readOutputValues --selector '{"projectId":"p","ref":"main"}' --input '{"outputId":"out","keys":[{"sweep":{},"componentId":"component","variable":"temperature"}]}'
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
`listBuildRuns` takes `{ objectId, continuation }` and the project from
|
|
710
|
+
`selector: { projectId }`. It lists runs that target an output or case, or contain a step run of
|
|
711
|
+
that step, newest start first (ties by build-run identifier ascending), at most 20 per page.
|
|
712
|
+
The result is `{ runs, continuation }`; begin with `continuation: null`, pass the returned token
|
|
713
|
+
unchanged for the next page, and stop when it is null. Each run includes its ref, target, state,
|
|
714
|
+
start time, starter and step summaries. Listing ends no step run and starts none.
|
|
715
|
+
|
|
716
|
+
`readOutputValues` takes `{ outputId, keys, runRef? }` with
|
|
717
|
+
`selector: { projectId, ref }`; the project comes from the selector. Each key is
|
|
718
|
+
`{ sweep, componentId, variable }`, where `sweep` maps parameter names to numbers. `runRef`
|
|
719
|
+
optionally restricts stored runs to that ref. The result is `{ values }`, one entry per requested
|
|
720
|
+
key: `current` or `stale` with the key, numeric value, unit, step-run identifier, ref, engine
|
|
721
|
+
identifier and `nonRepeatable` flag, or `no-result` with the key when no value matches.
|
|
722
|
+
Freshness compares the stored content key with the current one for the selector's ref;
|
|
723
|
+
`nonRepeatable` reports differing digests for the same content key. Missing runs or unavailable
|
|
724
|
+
indexed output answer `not-found`; opaque output cannot be read through this route.
|
|
725
|
+
|
|
726
|
+
An unfinished build reads `running`. A cancel by a person reads `canceled`; a step run cancelled because its
|
|
727
|
+
upstream failed names that upstream in its error. A `not-found` answer means the row is hidden or absent.
|
|
728
|
+
A step run's log is plain text; show it as text and never as markup.
|
|
729
|
+
|
|
730
|
+
An `outputs-already-current` refusal includes current/stale counts and writes nothing. Ask the user
|
|
731
|
+
which explicit choice to send; the notice grants no permission to choose `run-all` or `run-stale`.
|
|
732
|
+
A start returns `kind: started` with identifiers, or `kind: unchanged` with counts and no build ID.
|
|
733
|
+
`run-all` reruns upstream work too; `run-stale` reuses complete upstream work with source-run/output
|
|
734
|
+
provenance. Compile can run once while simulation expands sweep points. Engine registration is an
|
|
735
|
+
administrator operation in the authenticated organisation and follows the marked-route step-up.
|
|
736
|
+
When builds are unavailable, ask the administrator about engine registration and compute setup.
|