@almadar/core 11.4.0 → 11.5.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.
Files changed (49) hide show
  1. package/dist/{builders-CAQ_shuO.d.ts → builders-JiXD6W1T.d.ts} +2434 -266
  2. package/dist/builders.d.ts +5 -5
  3. package/dist/builders.js +3 -3
  4. package/dist/{bus-QFvlnIfW.d.ts → bus-__zVNcsp.d.ts} +26 -6
  5. package/dist/{chunk-OLSKERKZ.js → chunk-27Y5AXHB.js} +21 -0
  6. package/dist/chunk-2WLRKYD5.js +3823 -0
  7. package/dist/{chunk-UCP26C3C.js → chunk-J64IR3DR.js} +14 -4
  8. package/dist/{chunk-ISAUHHDU.js → chunk-J64YVVB4.js} +1 -1
  9. package/dist/{chunk-JPJQCTJI.js → chunk-JN3MMQTB.js} +3 -1
  10. package/dist/{chunk-JCRN3F6T.js → chunk-LQZXCL47.js} +62 -26
  11. package/dist/{chunk-O2ZUOWNK.js → chunk-OQ3Y5SL3.js} +1 -1
  12. package/dist/{chunk-TOAMAGC7.js → chunk-Q4OJQNYY.js} +5 -2
  13. package/dist/{chunk-QV6J4EAF.js → chunk-VC3HXUWQ.js} +7071 -48
  14. package/dist/{chunk-7JO77HA6.js → chunk-VQWE3FCB.js} +1 -1
  15. package/dist/{chunk-DHWP7B4S.js → chunk-XYHBAUWE.js} +102 -5
  16. package/dist/{effect--PY8R4Oi.d.ts → effect-gddySYLX.d.ts} +212 -49
  17. package/dist/{effect-result-fH1ZTxn6.d.ts → effect-result-BvBwmspK.d.ts} +76 -9
  18. package/dist/factory/index.d.ts +2 -2
  19. package/dist/factory/index.js +4 -4
  20. package/dist/factory-runtime/index.d.ts +3 -3
  21. package/dist/factory-runtime/index.js +10 -10
  22. package/dist/fixtures.d.ts +3 -3
  23. package/dist/fixtures.js +2 -2
  24. package/dist/i18n/index.js +1 -1
  25. package/dist/{index-Dk2AoJdI.d.ts → index-h6KrpmjR.d.ts} +27 -27
  26. package/dist/index.d.ts +14 -14
  27. package/dist/index.js +15 -15
  28. package/dist/kernel-wire.d.ts +2 -2
  29. package/dist/kernel-wire.js +1 -1
  30. package/dist/language/constructs.json +13 -3
  31. package/dist/language/program-types.json +22 -1
  32. package/dist/language/validation-codes.json +96 -1
  33. package/dist/language/vocabulary.json +19 -1
  34. package/dist/language-data.js +1 -1
  35. package/dist/patterns/component-mapping.json +11 -1
  36. package/dist/patterns/definitions.d.ts +1 -1
  37. package/dist/patterns/definitions.js +1 -1
  38. package/dist/patterns/event-contracts.json +1 -1
  39. package/dist/patterns/index.d.ts +41 -3
  40. package/dist/patterns/index.js +2 -2
  41. package/dist/patterns/patterns-registry.json +7071 -48
  42. package/dist/patterns/registry.json +7071 -48
  43. package/dist/{trait-BO2gbBte.d.ts → trait-Oun4JgeZ.d.ts} +113 -73
  44. package/dist/types/index.d.ts +8 -8
  45. package/dist/types/index.js +7 -7
  46. package/dist/{types-CSBhbbse.d.ts → types-B-r7Z7Lf.d.ts} +2 -2
  47. package/package.json +6 -6
  48. package/dist/chunk-AIRZM37O.js +0 -3809
  49. package/dist/{domain-Cpmja5ak.d.ts → domain-WtYcvBMH.d.ts} +51 -51
@@ -138,6 +138,9 @@ function checkCanvasTheme(v) {
138
138
  function checkClientAuth(v) {
139
139
  return v === "body" || v === "basic" || v === "none";
140
140
  }
141
+ function checkClientCredentialsSpec(v) {
142
+ return isRecord(v) && typeof v["grantType"] === "string" && (Array.isArray(v["params"]) && v["params"].every((e) => checkTokenParam(e))) && checkParamsIn(v["paramsIn"]);
143
+ }
141
144
  function checkClientEffect(v) {
142
145
  return Array.isArray(v) && v.length === 3 && v[0] === "render-ui" && typeof v[1] === "string" && (accepts((x, q) => rec(x, q), v[2]) || v[2] === null) || Array.isArray(v) && v.length === 2 && v[0] === "navigate" && typeof v[1] === "string" || Array.isArray(v) && v.length === 3 && v[0] === "navigate" && typeof v[1] === "string" && (isRecord(v[2]) && Object.values(v[2]).every((e) => typeof e === "string") || v[2] === null) || Array.isArray(v) && v.length === 4 && v[0] === "navigate" && typeof v[1] === "string" && (isRecord(v[2]) && Object.values(v[2]).every((e) => typeof e === "string") || v[2] === null) && checkNavigateOptions(v[3]) || Array.isArray(v) && v.length === 1 && v[0] === "navigate-back" || Array.isArray(v) && v.length === 3 && v[0] === "host-ask" && typeof v[1] === "string" && (Array.isArray(v[2]) && v[2].every((e) => accepts((x, q) => any(x, q), e))) || Array.isArray(v) && v.length === 4 && v[0] === "host-ask" && typeof v[1] === "string" && (Array.isArray(v[2]) && v[2].every((e) => accepts((x, q) => any(x, q), e))) && checkHostAskCompletion(v[3]);
143
146
  }
@@ -151,7 +154,7 @@ function checkConnectFailureKind(v) {
151
154
  return v === "unavailable" || v === "unsigned" || v === "denied" || v === "invalid_grant" || v === "invalid_client" || v === "transport" || v === "malformed" || v === "refused";
152
155
  }
153
156
  function checkCredentialGrantWire(v) {
154
- return isRecord(v) && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") && typeof v["tokenEndpoint"] === "string" && typeof v["grant"] === "string" && typeof v["code"] === "string" && typeof v["redirectUri"] === "string" && (v["verifier"] === void 0 || typeof v["verifier"] === "string") && typeof v["clientId"] === "string" && (v["clientSecret"] === void 0 || typeof v["clientSecret"] === "string") && checkClientAuth(v["clientAuth"]) && (Array.isArray(v["scopes"]) && v["scopes"].every((e) => typeof e === "string")) && (v["refreshCredential"] === void 0 || typeof v["refreshCredential"] === "string") && (v["assertion"] === void 0 || checkAssertionSpec(v["assertion"])) && (v["jsonToken"] === void 0 || checkJsonTokenSpec(v["jsonToken"]));
157
+ return isRecord(v) && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") && typeof v["tokenEndpoint"] === "string" && typeof v["grant"] === "string" && typeof v["code"] === "string" && typeof v["redirectUri"] === "string" && (v["verifier"] === void 0 || typeof v["verifier"] === "string") && typeof v["clientId"] === "string" && (v["clientSecret"] === void 0 || typeof v["clientSecret"] === "string") && checkClientAuth(v["clientAuth"]) && (Array.isArray(v["scopes"]) && v["scopes"].every((e) => typeof e === "string")) && (v["refreshCredential"] === void 0 || typeof v["refreshCredential"] === "string") && (v["assertion"] === void 0 || checkAssertionSpec(v["assertion"])) && (v["jsonToken"] === void 0 || checkJsonTokenSpec(v["jsonToken"])) && (v["clientCredentials"] === void 0 || checkClientCredentialsSpec(v["clientCredentials"]));
155
158
  }
156
159
  function checkCredentialKind(v) {
157
160
  return v === "admin";
@@ -208,7 +211,10 @@ function checkEnvTails(v) {
208
211
  return isRecord(v) && v["kind"] === "held" && (Array.isArray(v["tails"]) && v["tails"].every((e) => checkEnvTail(e))) || isRecord(v) && v["kind"] === "unsupported";
209
212
  }
210
213
  function checkEnvelope(v) {
211
- return isRecord(v) && typeof v["id"] === "string" && checkInstanceRef(v["from"]) && checkInstanceRef(v["to"]) && typeof v["event"] === "string" && accepts((x, q) => any(x, q), v["payload"]) && typeof v["causalId"] === "string" && typeof v["hop"] === "number";
214
+ return isRecord(v) && typeof v["id"] === "string" && checkInstanceRef(v["from"]) && checkInstanceRef(v["to"]) && typeof v["event"] === "string" && accepts((x, q) => any(x, q), v["payload"]) && typeof v["causalId"] === "string" && typeof v["hop"] === "number" && (v["listen"] === void 0 || checkEnvelopeListen(v["listen"]));
215
+ }
216
+ function checkEnvelopeListen(v) {
217
+ return isRecord(v) && typeof v["event"] === "string" && accepts((x, q) => any(x, q), v["payload"]);
212
218
  }
213
219
  function checkEvalStepKind(v) {
214
220
  return v === "enter" || v === "exit" || v === "iter" || v === "skip";
@@ -217,7 +223,7 @@ function checkEvalStepWire(v) {
217
223
  return isRecord(v) && checkEvalStepKind(v["kind"]) && (Array.isArray(v["path"]) && v["path"].every((e) => typeof e === "number" || typeof e === "string")) && (v["value"] === void 0 || accepts((x, q) => any(x, q), v["value"])) && (v["error"] === void 0 || typeof v["error"] === "string");
218
224
  }
219
225
  function checkEventRequest(v) {
220
- return isRecord(v) && typeof v["event"] === "string" && (v["eventId"] === void 0 || accepts((x, q) => asEventId(str(x, q)), v["eventId"])) && (v["payload"] === void 0 || accepts((x, q) => rec(x, q), v["payload"])) && (v["entityId"] === void 0 || typeof v["entityId"] === "string") && (v["targetTrait"] === void 0 || typeof v["targetTrait"] === "string") && (v["clientId"] === void 0 || typeof v["clientId"] === "string") && (v["locale"] === void 0 || typeof v["locale"] === "string") && (v["tick"] === void 0 || typeof v["tick"] === "string") && (v["sourceTrait"] === void 0 || typeof v["sourceTrait"] === "string") && (v["runTick"] === void 0 || checkRunTick(v["runTick"])) && (v["traits"] === void 0 || Array.isArray(v["traits"]) && v["traits"].every((e) => checkTraitFrom(e))) && (v["entityByTrait"] === void 0 || isRecord(v["entityByTrait"]) && Object.values(v["entityByTrait"]).every((e) => accepts((x, q) => entityRow(x, q), e))) && (v["behavior"] === void 0 || typeof v["behavior"] === "string") && (v["delivery"] === void 0 || checkDeliveryRecord(v["delivery"])) && (v["dispatchLog"] === void 0 || checkDispatchLog(v["dispatchLog"])) && (v["mount"] === void 0 || Array.isArray(v["mount"]) && v["mount"].every((e) => checkMountSeed(e))) && (v["route"] === void 0 || typeof v["route"] === "string") && (v["crumb"] === void 0 || typeof v["crumb"] === "string") && (v["residence"] === void 0 || checkLegResidence(v["residence"])) && (v["framesSince"] === void 0 || typeof v["framesSince"] === "number") && (v["heldPayload"] === void 0 || typeof v["heldPayload"] === "number");
226
+ return isRecord(v) && typeof v["event"] === "string" && (v["eventId"] === void 0 || accepts((x, q) => asEventId(str(x, q)), v["eventId"])) && (v["payload"] === void 0 || accepts((x, q) => rec(x, q), v["payload"])) && (v["entityId"] === void 0 || typeof v["entityId"] === "string") && (v["targetTrait"] === void 0 || typeof v["targetTrait"] === "string") && (v["clientId"] === void 0 || typeof v["clientId"] === "string") && (v["locale"] === void 0 || typeof v["locale"] === "string") && (v["tick"] === void 0 || typeof v["tick"] === "string") && (v["sourceTrait"] === void 0 || typeof v["sourceTrait"] === "string") && (v["runTick"] === void 0 || checkRunTick(v["runTick"])) && (v["traits"] === void 0 || Array.isArray(v["traits"]) && v["traits"].every((e) => checkTraitFrom(e))) && (v["entityByTrait"] === void 0 || isRecord(v["entityByTrait"]) && Object.values(v["entityByTrait"]).every((e) => accepts((x, q) => entityRow(x, q), e))) && (v["behavior"] === void 0 || typeof v["behavior"] === "string") && (v["delivery"] === void 0 || checkDeliveryRecord(v["delivery"])) && (v["dispatchLog"] === void 0 || checkDispatchLog(v["dispatchLog"])) && (v["mount"] === void 0 || Array.isArray(v["mount"]) && v["mount"].every((e) => checkMountSeed(e))) && (v["unmount"] === void 0 || Array.isArray(v["unmount"]) && v["unmount"].every((e) => typeof e === "string")) && (v["route"] === void 0 || typeof v["route"] === "string") && (v["crumb"] === void 0 || typeof v["crumb"] === "string") && (v["residence"] === void 0 || checkLegResidence(v["residence"])) && (v["framesSince"] === void 0 || typeof v["framesSince"] === "number") && (v["heldPayload"] === void 0 || typeof v["heldPayload"] === "number");
221
227
  }
222
228
  function checkEventResponse(v) {
223
229
  return isRecord(v) && typeof v["success"] === "boolean" && typeof v["transitioned"] === "boolean" && (isRecord(v["states"]) && Object.values(v["states"]).every((e) => typeof e === "string")) && (Array.isArray(v["emittedEvents"]) && v["emittedEvents"].every((e) => checkEmittedEvent(e))) && (v["data"] === void 0 || isRecord(v["data"]) && Object.values(v["data"]).every((e) => Array.isArray(e) && e.every((e2) => accepts((x, q) => entityRow(x, q), e2)))) && (v["dataRefs"] === void 0 || isRecord(v["dataRefs"]) && Object.values(v["dataRefs"]).every((e) => checkRowSetRef(e))) && (v["frames"] === void 0 || checkFrameDelta(v["frames"])) && (v["clientEffectsByTrait"] === void 0 || Array.isArray(v["clientEffectsByTrait"]) && v["clientEffectsByTrait"].every((e) => checkClientEffectByTrait(e))) && (v["effectResults"] === void 0 || Array.isArray(v["effectResults"]) && v["effectResults"].every((e) => checkServerEffectResult(e))) && (v["guardFailed"] === void 0 || typeof v["guardFailed"] === "string") && (v["rejections"] === void 0 || Array.isArray(v["rejections"]) && v["rejections"].every((e) => checkTransitionRejection(e))) && (v["cascadeTruncated"] === void 0 || Array.isArray(v["cascadeTruncated"]) && v["cascadeTruncated"].every((e) => typeof e === "string")) && (v["transitions"] === void 0 || Array.isArray(v["transitions"]) && v["transitions"].every((e) => checkTransitionHop(e))) && (v["error"] === void 0 || typeof v["error"] === "string");
@@ -298,7 +304,7 @@ function checkIoReplyWire(v) {
298
304
  return isRecord(v) && typeof v["id"] === "number" && checkIoAnswerWire(v["answer"]);
299
305
  }
300
306
  function checkIoRequestWire(v) {
301
- return isRecord(v) && v["kind"] === "readRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" || isRecord(v) && v["kind"] === "listRows" && typeof v["entityType"] === "string" || isRecord(v) && v["kind"] === "queryRows" && typeof v["entityType"] === "string" && checkRowQuery(v["query"]) && checkRowProjection(v["project"]) || isRecord(v) && v["kind"] === "writeRows" && checkRowWriteBatch(v["batch"]) || isRecord(v) && v["kind"] === "commitRows" && (Array.isArray(v["rows"]) && v["rows"].every((e) => checkRowCommit(e))) || isRecord(v) && v["kind"] === "createRow" && typeof v["entityType"] === "string" && accepts((x, q) => any(x, q), v["data"]) || isRecord(v) && v["kind"] === "writeRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" && accepts((x, q) => any(x, q), v["data"]) || isRecord(v) && v["kind"] === "deleteRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" || isRecord(v) && v["kind"] === "callService" && typeof v["service"] === "string" && typeof v["method"] === "string" && accepts((x, q) => any(x, q), v["args"]) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["caller"] === void 0 || checkCallerWire(v["caller"])) && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "cancelCall" && typeof v["key"] === "string" || isRecord(v) && v["kind"] === "substrate" && typeof v["op"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "pageFacts" && (Array.isArray(v["fields"]) && v["fields"].every((e) => checkPageFactFieldWire(e))) || isRecord(v) && v["kind"] === "prompt" && typeof v["text"] === "string" && typeof v["schema"] === "string" && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "embed" && (Array.isArray(v["texts"]) && v["texts"].every((e) => typeof e === "string")) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "tab" && checkTabAsk(v["ask"]) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "secret" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "secretSet" && typeof v["name"] === "string" && typeof v["value"] === "string" && typeof v["ttlMs"] === "number" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "secretRotate" && typeof v["name"] === "string" && typeof v["value"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "deliver" && checkEnvelope(v["envelope"]) && (v["key"] === void 0 || typeof v["key"] === "string") && checkCallSiteWire(v["site"]) || isRecord(v) && v["kind"] === "guest" && typeof v["guest"] === "string" && (Array.isArray(v["targets"]) && v["targets"].every((e) => typeof e === "string")) && typeof v["event"] === "string" && accepts((x, q) => any(x, q), v["payload"]) && checkOsGrants(v["grants"]) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "random" && typeof v["bytes"] === "number" || isRecord(v) && v["kind"] === "clock" || isRecord(v) && v["kind"] === "sealed" && typeof v["op"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) || isRecord(v) && v["kind"] === "gpu" && typeof v["ticket"] === "number" && checkOsOp(v["op"]) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "os" && checkOsOp(v["op"]) && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) && (v["principal"] === void 0 || typeof v["principal"] === "string") && (v["orbital"] === void 0 || typeof v["orbital"] === "string") || isRecord(v) && v["kind"] === "credentialStatus" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "credentialForget" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "credentialConnect" && checkCredentialGrantWire(v["grant"]) || isRecord(v) && v["kind"] === "credentialStoreList" || isRecord(v) && v["kind"] === "credentialEnvTails" && (Array.isArray(v["names"]) && v["names"].every((e) => typeof e === "string")) || isRecord(v) && v["kind"] === "credentialStoreRead" && typeof v["name"] === "string" || isRecord(v) && v["kind"] === "credentialStoreWrite" && typeof v["service"] === "string" && typeof v["name"] === "string" && typeof v["value"] === "string" || isRecord(v) && v["kind"] === "credentialStoreRemove" && typeof v["name"] === "string" || isRecord(v) && v["kind"] === "credentialStoreRotate" || isRecord(v) && v["kind"] === "credentialModeRead" || isRecord(v) && v["kind"] === "credentialModeWrite" && typeof v["mode"] === "string";
307
+ return isRecord(v) && v["kind"] === "readRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" || isRecord(v) && v["kind"] === "listRows" && typeof v["entityType"] === "string" || isRecord(v) && v["kind"] === "queryRows" && typeof v["entityType"] === "string" && checkRowQuery(v["query"]) && checkRowProjection(v["project"]) || isRecord(v) && v["kind"] === "writeRows" && checkRowWriteBatch(v["batch"]) || isRecord(v) && v["kind"] === "commitRows" && (Array.isArray(v["rows"]) && v["rows"].every((e) => checkRowCommit(e))) || isRecord(v) && v["kind"] === "createRow" && typeof v["entityType"] === "string" && accepts((x, q) => any(x, q), v["data"]) || isRecord(v) && v["kind"] === "writeRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" && accepts((x, q) => any(x, q), v["data"]) || isRecord(v) && v["kind"] === "deleteRow" && typeof v["entityType"] === "string" && typeof v["id"] === "string" || isRecord(v) && v["kind"] === "callService" && typeof v["service"] === "string" && typeof v["method"] === "string" && accepts((x, q) => any(x, q), v["args"]) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["caller"] === void 0 || checkCallerWire(v["caller"])) && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "cancelCall" && typeof v["key"] === "string" || isRecord(v) && v["kind"] === "substrate" && typeof v["op"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "pageFacts" && (Array.isArray(v["fields"]) && v["fields"].every((e) => checkPageFactFieldWire(e))) || isRecord(v) && v["kind"] === "prompt" && typeof v["text"] === "string" && typeof v["schema"] === "string" && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "embed" && (Array.isArray(v["texts"]) && v["texts"].every((e) => typeof e === "string")) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "tab" && checkTabAsk(v["ask"]) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "secret" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "secretSet" && typeof v["name"] === "string" && typeof v["value"] === "string" && typeof v["ttlMs"] === "number" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "secretRotate" && typeof v["name"] === "string" && typeof v["value"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "deliver" && checkEnvelope(v["envelope"]) && (v["key"] === void 0 || typeof v["key"] === "string") && checkCallSiteWire(v["site"]) || isRecord(v) && v["kind"] === "guest" && typeof v["guest"] === "string" && (Array.isArray(v["targets"]) && v["targets"].every((e) => typeof e === "string")) && typeof v["event"] === "string" && accepts((x, q) => any(x, q), v["payload"]) && checkOsGrants(v["grants"]) && (v["leg"] === void 0 || accepts((x, q) => any(x, q), v["leg"])) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) || isRecord(v) && v["kind"] === "random" && typeof v["bytes"] === "number" || isRecord(v) && v["kind"] === "clock" || isRecord(v) && v["kind"] === "sealed" && typeof v["op"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) || isRecord(v) && v["kind"] === "gpu" && typeof v["ticket"] === "number" && checkOsOp(v["op"]) && (v["key"] === void 0 || typeof v["key"] === "string") || isRecord(v) && v["kind"] === "os" && checkOsOp(v["op"]) && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && (v["key"] === void 0 || typeof v["key"] === "string") && (v["site"] === void 0 || checkCallSiteWire(v["site"])) && (v["principal"] === void 0 || typeof v["principal"] === "string") && (v["orbital"] === void 0 || typeof v["orbital"] === "string") || isRecord(v) && v["kind"] === "credentialStatus" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "credentialForget" && typeof v["name"] === "string" && (v["principal"] === void 0 || typeof v["principal"] === "string") || isRecord(v) && v["kind"] === "credentialConnect" && checkCredentialGrantWire(v["grant"]) || isRecord(v) && v["kind"] === "credentialStoreList" || isRecord(v) && v["kind"] === "credentialEnvTails" && (Array.isArray(v["names"]) && v["names"].every((e) => typeof e === "string")) || isRecord(v) && v["kind"] === "credentialStoreRead" && typeof v["name"] === "string" || isRecord(v) && v["kind"] === "credentialStoreWrite" && typeof v["service"] === "string" && typeof v["name"] === "string" && typeof v["value"] === "string" || isRecord(v) && v["kind"] === "credentialStoreRemove" && typeof v["name"] === "string" || isRecord(v) && v["kind"] === "credentialStoreRotate" || isRecord(v) && v["kind"] === "credentialModeRead" || isRecord(v) && v["kind"] === "credentialModeWrite" && typeof v["mode"] === "string";
302
308
  }
303
309
  function checkJsonTokenSpec(v) {
304
310
  return isRecord(v) && typeof v["clientIdField"] === "string" && typeof v["clientSecretField"] === "string" && typeof v["accessField"] === "string" && (v["refreshField"] === void 0 || (typeof v["refreshField"] === "string" || v["refreshField"] === null)) && (v["expiresInField"] === void 0 || (typeof v["expiresInField"] === "string" || v["expiresInField"] === null)) && (v["refreshEndpoint"] === void 0 || (typeof v["refreshEndpoint"] === "string" || v["refreshEndpoint"] === null)) && (v["refreshBodyField"] === void 0 || (typeof v["refreshBodyField"] === "string" || v["refreshBodyField"] === null));
@@ -307,13 +313,13 @@ function checkKernelGrant(v) {
307
313
  return isRecord(v) && typeof v["target"] === "string" && (Array.isArray(v["kinds"]) && v["kinds"].every((e) => checkKernelKind(e)));
308
314
  }
309
315
  function checkKernelKind(v) {
310
- return v === "call" || v === "reorder" || v === "read" || v === "spawn" || v === "declared";
316
+ return v === "call" || v === "reorder" || v === "read" || v === "spawn" || v === "declared" || v === "program";
311
317
  }
312
318
  function checkKvMode(v) {
313
319
  return v === "read" || v === "write";
314
320
  }
315
321
  function checkLeft(v) {
316
- return isRecord(v) && typeof v["trait"] === "string" && typeof v["orbital"] === "string" && checkEventRequest(v["leg"]);
322
+ return isRecord(v) && typeof v["orbital"] === "string" && (Array.isArray(v["traits"]) && v["traits"].every((e) => typeof e === "string")) && checkEventRequest(v["leg"]);
317
323
  }
318
324
  function checkLegResidence(v) {
319
325
  return v === "browser" || v === "server";
@@ -382,7 +388,7 @@ function checkOsGrantsReport(v) {
382
388
  return isRecord(v) && (Array.isArray(v["findings"]) && v["findings"].every((e) => checkOsGrantFinding(e)));
383
389
  }
384
390
  function checkOsOp(v) {
385
- return v === "os/read-file" || v === "os/write-file" || v === "os/append-file" || v === "os/open" || v === "os/close" || v === "os/read" || v === "os/write" || v === "os/seek" || v === "os/truncate" || v === "os/fsync" || v === "os/copy" || v === "os/rename" || v === "os/remove" || v === "os/link" || v === "os/symlink" || v === "os/readlink" || v === "os/watch-files" || v === "os/mkdir" || v === "os/rmdir" || v === "os/list-dir" || v === "os/glob" || v === "os/mktemp" || v === "os/realpath" || v === "os/cwd" || v === "os/chdir" || v === "os/stat" || v === "os/lstat" || v === "os/access" || v === "os/exists" || v === "os/chmod" || v === "os/chown" || v === "os/utimes" || v === "os/spawn" || v === "os/wait" || v === "os/kill" || v === "os/pid" || v === "os/ppid" || v === "os/current-exe" || v === "os/watch-process" || v === "os/watch-signal" || v === "os/getenv" || v === "os/setenv" || v === "os/unsetenv" || v === "os/environ" || v === "os/watch-env" || v === "os/stdin-read" || v === "os/stdout-write" || v === "os/stderr-write" || v === "os/isatty" || v === "os/tty-size" || v === "os/tcp-connect" || v === "os/tcp-listen" || v === "os/tls-upgrade" || v === "os/send" || v === "os/recv" || v === "os/udp-bind" || v === "os/sendto" || v === "os/recvfrom" || v === "os/dns-resolve" || v === "os/shutdown" || v === "os/watch-port" || v === "os/fetch" || v === "os/clock-monotonic" || v === "os/uid" || v === "os/gid" || v === "os/username" || v === "os/group-of" || v === "os/watch-cron" || v === "os/cpu-usage" || v === "os/memory-info" || v === "os/uptime" || v === "os/load-avg" || v === "os/hostname" || v === "os/uname" || v === "os/disk-usage" || v === "os/mounts" || v === "os/disk-io" || v === "os/network-interfaces" || v === "os/network-stats" || v === "os/network-connected" || v === "os/default-gateway" || v === "os/battery-status" || v === "os/ac-power" || v === "os/thermal-zones" || v === "os/notify" || v === "os/speak" || v === "os/brightness-get" || v === "os/brightness-set" || v === "os/volume-get" || v === "os/volume-set" || v === "os/volume-mute" || v === "os/suspend" || v === "os/hibernate" || v === "os/mmio-read" || v === "os/mmio-write" || v === "os/irq-wait" || v === "os/irq-ack" || v === "kv/get" || v === "kv/put" || v === "kv/delete" || v === "kv/scan" || v === "kv/batch" || v === "mem/arena-new" || v === "mem/arena-drop" || v === "mem/alloc" || v === "mem/free" || v === "mem/borrow" || v === "mem/release" || v === "mem/write" || v === "mem/freeze" || v === "mem/atomic-load" || v === "mem/atomic-store" || v === "mem/atomic-add" || v === "mem/atomic-cas" || v === "kernel/queue-front" || v === "kernel/queue-back" || v === "ffi/call" || v === "gpu/device-open" || v === "gpu/device-close" || v === "gpu/buffer-create" || v === "gpu/texture-create" || v === "gpu/sampler-create" || v === "gpu/query-create" || v === "gpu/shader-create" || v === "gpu/pipeline-create" || v === "gpu/bind-group-create" || v === "gpu/submit" || v === "gpu/release";
391
+ return v === "os/read-file" || v === "os/write-file" || v === "os/append-file" || v === "os/open" || v === "os/close" || v === "os/read" || v === "os/write" || v === "os/seek" || v === "os/truncate" || v === "os/fsync" || v === "os/copy" || v === "os/rename" || v === "os/remove" || v === "os/link" || v === "os/symlink" || v === "os/readlink" || v === "os/watch-files" || v === "os/mkdir" || v === "os/rmdir" || v === "os/list-dir" || v === "os/glob" || v === "os/mktemp" || v === "os/realpath" || v === "os/cwd" || v === "os/chdir" || v === "os/stat" || v === "os/lstat" || v === "os/access" || v === "os/exists" || v === "os/chmod" || v === "os/chown" || v === "os/utimes" || v === "os/spawn" || v === "os/wait" || v === "os/kill" || v === "os/pid" || v === "os/ppid" || v === "os/current-exe" || v === "os/watch-process" || v === "os/watch-signal" || v === "os/getenv" || v === "os/setenv" || v === "os/unsetenv" || v === "os/environ" || v === "os/watch-env" || v === "os/stdin-read" || v === "os/stdout-write" || v === "os/stderr-write" || v === "os/isatty" || v === "os/tty-size" || v === "os/tcp-connect" || v === "os/tcp-listen" || v === "os/tls-upgrade" || v === "os/send" || v === "os/recv" || v === "os/udp-bind" || v === "os/sendto" || v === "os/recvfrom" || v === "os/dns-resolve" || v === "os/shutdown" || v === "os/watch-port" || v === "os/fetch" || v === "os/clock-monotonic" || v === "os/uid" || v === "os/gid" || v === "os/username" || v === "os/group-of" || v === "os/watch-cron" || v === "os/cpu-usage" || v === "os/memory-info" || v === "os/process-list" || v === "os/uptime" || v === "os/load-avg" || v === "os/hostname" || v === "os/uname" || v === "os/disk-usage" || v === "os/mounts" || v === "os/disk-io" || v === "os/network-interfaces" || v === "os/network-stats" || v === "os/network-connected" || v === "os/default-gateway" || v === "os/battery-status" || v === "os/ac-power" || v === "os/thermal-zones" || v === "os/notify" || v === "os/speak" || v === "os/brightness-get" || v === "os/brightness-set" || v === "os/volume-get" || v === "os/volume-set" || v === "os/volume-mute" || v === "os/suspend" || v === "os/hibernate" || v === "os/mmio-read" || v === "os/mmio-write" || v === "os/irq-wait" || v === "os/irq-ack" || v === "kv/get" || v === "kv/put" || v === "kv/delete" || v === "kv/scan" || v === "kv/batch" || v === "mem/arena-new" || v === "mem/arena-drop" || v === "mem/alloc" || v === "mem/free" || v === "mem/borrow" || v === "mem/release" || v === "mem/write" || v === "mem/freeze" || v === "mem/atomic-load" || v === "mem/atomic-store" || v === "mem/atomic-add" || v === "mem/atomic-cas" || v === "audio/decode" || v === "kernel/queue-front" || v === "kernel/queue-back" || v === "ffi/call" || v === "gpu/device-open" || v === "gpu/device-close" || v === "gpu/buffer-create" || v === "gpu/texture-create" || v === "gpu/sampler-create" || v === "gpu/query-create" || v === "gpu/shader-create" || v === "gpu/pipeline-create" || v === "gpu/bind-group-create" || v === "gpu/submit" || v === "gpu/release";
386
392
  }
387
393
  function checkPageFactFieldWire(v) {
388
394
  return v === "hostname" || v === "referrer" || v === "screenWidth" || v === "href";
@@ -390,6 +396,9 @@ function checkPageFactFieldWire(v) {
390
396
  function checkPageFactsWire(v) {
391
397
  return isRecord(v) && typeof v["available"] === "boolean" && typeof v["hostname"] === "string" && typeof v["referrer"] === "string" && (typeof v["screenWidth"] === "number" || v["screenWidth"] === null) && typeof v["href"] === "string";
392
398
  }
399
+ function checkParamsIn(v) {
400
+ return v === "body" || v === "query";
401
+ }
393
402
  function checkPendingAsk(v) {
394
403
  return isRecord(v) && typeof v["trait"] === "string" && typeof v["operator"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && typeof v["key"] === "string";
395
404
  }
@@ -397,7 +406,7 @@ function checkPendingRequestWire(v) {
397
406
  return isRecord(v) && typeof v["id"] === "number" && checkIoRequestWire(v["request"]);
398
407
  }
399
408
  function checkPlayedEffect(v) {
400
- return isRecord(v) && typeof v["type"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && checkPlayedEffectStatus(v["status"]) && (v["error"] === void 0 || typeof v["error"] === "string") && typeof v["routed"] === "boolean" && (v["nested"] === void 0 || Array.isArray(v["nested"]) && v["nested"].every((e) => checkPlayedEffect(e)));
409
+ return isRecord(v) && typeof v["type"] === "string" && (Array.isArray(v["args"]) && v["args"].every((e) => accepts((x, q) => any(x, q), e))) && checkPlayedEffectStatus(v["status"]) && (v["error"] === void 0 || typeof v["error"] === "string") && (v["code"] === void 0 || checkServerEffectCode(v["code"])) && typeof v["routed"] === "boolean" && (v["nested"] === void 0 || Array.isArray(v["nested"]) && v["nested"].every((e) => checkPlayedEffect(e))) && (v["cost"] === void 0 || checkStepCost(v["cost"]));
401
410
  }
402
411
  function checkPlayedEffectStatus(v) {
403
412
  return v === "executed" || v === "failed" || v === "skipped";
@@ -412,10 +421,10 @@ function checkPlayedGuard(v) {
412
421
  return isRecord(v) && typeof v["arm"] === "number" && accepts((x, q) => any(x, q), v["guard"]) && typeof v["passed"] === "boolean" && (Array.isArray(v["trace"]) && v["trace"].every((e) => checkEvalStepWire(e))) && (v["error"] === void 0 || typeof v["error"] === "string");
413
422
  }
414
423
  function checkPlayedOutcome(v) {
415
- return isRecord(v) && typeof v["orbital"] === "string" && typeof v["trait"] === "string" && typeof v["event"] === "string" && typeof v["from"] === "string" && typeof v["to"] === "string" && (v["arm"] === void 0 || typeof v["arm"] === "number") && typeof v["fired"] === "boolean" && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (Array.isArray(v["emitted"]) && v["emitted"].every((e) => checkPlayedEmit(e)));
424
+ return isRecord(v) && typeof v["orbital"] === "string" && typeof v["trait"] === "string" && typeof v["event"] === "string" && typeof v["from"] === "string" && typeof v["to"] === "string" && (v["arm"] === void 0 || typeof v["arm"] === "number") && typeof v["fired"] === "boolean" && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (Array.isArray(v["emitted"]) && v["emitted"].every((e) => checkPlayedEmit(e))) && (v["cost"] === void 0 || checkStepCost(v["cost"]));
416
425
  }
417
426
  function checkPlayedResult(v) {
418
- return isRecord(v) && typeof v["trait"] === "string" && typeof v["event"] === "string" && typeof v["transitionFired"] === "boolean" && checkGuardVerdict(v["guard"]) && (v["firedArm"] === void 0 || typeof v["firedArm"] === "number") && checkPlayedState(v["state"]) && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (Array.isArray(v["emitted"]) && v["emitted"].every((e) => checkPlayedEmit(e))) && (Array.isArray(v["guards"]) && v["guards"].every((e) => checkPlayedGuard(e))) && (Array.isArray(v["ensures"]) && v["ensures"].every((e) => checkPlayedEnsures(e))) && (v["rendered"] === void 0 || Array.isArray(v["rendered"]) && v["rendered"].every((e) => checkRenderedSlot(e))) && (v["failure"] === void 0 || typeof v["failure"] === "string") && (accepts((x, q) => rec(x, q), v["entityAfter"]) || v["entityAfter"] === null) && (Array.isArray(v["pendingAsks"]) && v["pendingAsks"].every((e) => checkPendingAsk(e))) && (Array.isArray(v["outcomes"]) && v["outcomes"].every((e) => checkPlayedOutcome(e)));
427
+ return isRecord(v) && typeof v["trait"] === "string" && typeof v["event"] === "string" && typeof v["transitionFired"] === "boolean" && checkGuardVerdict(v["guard"]) && (v["firedArm"] === void 0 || typeof v["firedArm"] === "number") && checkPlayedState(v["state"]) && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (Array.isArray(v["emitted"]) && v["emitted"].every((e) => checkPlayedEmit(e))) && (Array.isArray(v["guards"]) && v["guards"].every((e) => checkPlayedGuard(e))) && (Array.isArray(v["ensures"]) && v["ensures"].every((e) => checkPlayedEnsures(e))) && (v["rendered"] === void 0 || Array.isArray(v["rendered"]) && v["rendered"].every((e) => checkRenderedSlot(e))) && (v["failure"] === void 0 || typeof v["failure"] === "string") && (accepts((x, q) => rec(x, q), v["entityAfter"]) || v["entityAfter"] === null) && (Array.isArray(v["pendingAsks"]) && v["pendingAsks"].every((e) => checkPendingAsk(e))) && (Array.isArray(v["outcomes"]) && v["outcomes"].every((e) => checkPlayedOutcome(e))) && (v["collapsed"] === void 0 || Array.isArray(v["collapsed"]) && v["collapsed"].every((e) => checkStepCollapsed(e))) && (v["cost"] === void 0 || checkStepCost(v["cost"]));
419
428
  }
420
429
  function checkPlayedState(v) {
421
430
  return isRecord(v) && (typeof v["before"] === "string" || v["before"] === null) && (typeof v["after"] === "string" || v["after"] === null);
@@ -543,6 +552,12 @@ function checkStatefulLegWire(v) {
543
552
  function checkStdioKind(v) {
544
553
  return v === "in" || v === "out" || v === "err";
545
554
  }
555
+ function checkStepCollapsed(v) {
556
+ return isRecord(v) && typeof v["trait"] === "string" && typeof v["event"] === "string" && (accepts((x, q) => rec(x, q), v["payload"]) || v["payload"] === null);
557
+ }
558
+ function checkStepCost(v) {
559
+ return isRecord(v) && typeof v["startNs"] === "number" && typeof v["ns"] === "number" && typeof v["allocs"] === "number" && typeof v["allocBytes"] === "number";
560
+ }
546
561
  function checkStepEmit(v) {
547
562
  return isRecord(v) && typeof v["event"] === "string" && (accepts((x, q) => rec(x, q), v["payload"]) || v["payload"] === null);
548
563
  }
@@ -550,7 +565,7 @@ function checkStepGuard(v) {
550
565
  return isRecord(v) && typeof v["arm"] === "number" && accepts((x, q) => any(x, q), v["guard"]) && typeof v["passed"] === "boolean" && (v["error"] === void 0 || typeof v["error"] === "string");
551
566
  }
552
567
  function checkStepOutcome(v) {
553
- return isRecord(v) && typeof v["trait"] === "string" && typeof v["executed"] === "boolean" && typeof v["previousState"] === "string" && typeof v["newState"] === "string" && (Array.isArray(v["emits"]) && v["emits"].every((e) => checkStepEmit(e))) && (typeof v["firedArm"] === "number" || v["firedArm"] === null) && (Array.isArray(v["guards"]) && v["guards"].every((e) => checkStepGuard(e))) && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (typeof v["failure"] === "string" || v["failure"] === null) && typeof v["orbital"] === "string" && typeof v["event"] === "string" && (Array.isArray(v["ensures"]) && v["ensures"].every((e) => checkPlayedEnsures(e)));
568
+ return isRecord(v) && typeof v["trait"] === "string" && typeof v["executed"] === "boolean" && typeof v["previousState"] === "string" && typeof v["newState"] === "string" && (Array.isArray(v["emits"]) && v["emits"].every((e) => checkStepEmit(e))) && (typeof v["firedArm"] === "number" || v["firedArm"] === null) && (Array.isArray(v["guards"]) && v["guards"].every((e) => checkStepGuard(e))) && (Array.isArray(v["effects"]) && v["effects"].every((e) => checkPlayedEffect(e))) && (typeof v["failure"] === "string" || v["failure"] === null) && typeof v["orbital"] === "string" && typeof v["event"] === "string" && (Array.isArray(v["ensures"]) && v["ensures"].every((e) => checkPlayedEnsures(e))) && (v["collapsed"] === void 0 || Array.isArray(v["collapsed"]) && v["collapsed"].every((e) => checkStepCollapsed(e))) && (v["cost"] === void 0 || checkStepCost(v["cost"]));
554
569
  }
555
570
  function checkStepRefusal(v) {
556
571
  return isRecord(v) && v["success"] === false && typeof v["error"] === "string" && (typeof v["trait"] === "string" || v["trait"] === null) && (Array.isArray(v["outcomes"]) && v["outcomes"].every((e) => checkStepOutcome(e)));
@@ -571,7 +586,7 @@ function checkSubstrateFailureWire(v) {
571
586
  return isRecord(v) && typeof v["message"] === "string" && (Array.isArray(v["errors"]) && v["errors"].every((e) => accepts((x, q) => any(x, q), e)));
572
587
  }
573
588
  function checkSysKind(v) {
574
- return v === "cpu" || v === "memory" || v === "disk" || v === "network" || v === "power-state" || v === "identity" || v === "self-signal";
589
+ return v === "cpu" || v === "memory" || v === "disk" || v === "network" || v === "power-state" || v === "identity" || v === "processes" || v === "self-signal" || v === "process-signal";
575
590
  }
576
591
  function checkTabAction(v) {
577
592
  return v === "click" || v === "focus" || v === "type";
@@ -603,6 +618,9 @@ function checkTabImageFormat(v) {
603
618
  function checkTabStyle(v) {
604
619
  return isRecord(v) && typeof v["property"] === "string" && typeof v["value"] === "string";
605
620
  }
621
+ function checkTokenParam(v) {
622
+ return isRecord(v) && typeof v["name"] === "string" && typeof v["value"] === "string";
623
+ }
606
624
  function checkTraitFrom(v) {
607
625
  return isRecord(v) && typeof v["trait"] === "string" && typeof v["from"] === "string" && (v["event"] === void 0 || typeof v["event"] === "string");
608
626
  }
@@ -619,7 +637,7 @@ function checkTransitionRejection(v) {
619
637
  return isRecord(v) && checkTransitionRejectionCode(v["code"]) && (v["trait"] === void 0 || typeof v["trait"] === "string") && (v["from"] === void 0 || typeof v["from"] === "string") && (v["event"] === void 0 || typeof v["event"] === "string") && (v["statesDeclaringEvent"] === void 0 || Array.isArray(v["statesDeclaringEvent"]) && v["statesDeclaringEvent"].every((e) => typeof e === "string")) && (v["transition"] === void 0 || typeof v["transition"] === "string") && (v["guard"] === void 0 || accepts((x, q) => any(x, q), v["guard"])) && (v["error"] === void 0 || typeof v["error"] === "string") && (v["slot"] === void 0 || typeof v["slot"] === "string");
620
638
  }
621
639
  function checkTransitionRejectionCode(v) {
622
- return v === "no-matching-transition" || v === "guard-rejected" || v === "no-dispatchable-traits" || v === "not-an-external-input" || v === "inbound-only-event" || v === "effect-failed" || v === "locale-not-declared" || v === "client-circuit-state-refused" || v === "repaint-failed";
640
+ return v === "no-matching-transition" || v === "guard-rejected" || v === "no-dispatchable-traits" || v === "not-an-external-input" || v === "inbound-only-event" || v === "effect-failed" || v === "locale-not-declared" || v === "client-circuit-state-refused" || v === "repaint-failed" || v === "cascade-capped";
623
641
  }
624
642
  function checkValidationJsonError(v) {
625
643
  return isRecord(v) && typeof v["code"] === "string" && typeof v["path"] === "string" && typeof v["message"] === "string" && (v["suggestion"] === void 0 || typeof v["suggestion"] === "string") && (v["fixGuidance"] === void 0 || typeof v["fixGuidance"] === "string") && (v["expectedShape"] === void 0 || typeof v["expectedShape"] === "string") && (v["validValues"] === void 0 || Array.isArray(v["validValues"]) && v["validValues"].every((e) => typeof e === "string")) && (v["line"] === void 0 || typeof v["line"] === "number") && (v["column"] === void 0 || typeof v["column"] === "number") && (v["endLine"] === void 0 || typeof v["endLine"] === "number") && (v["endColumn"] === void 0 || typeof v["endColumn"] === "number") && typeof v["approximate"] === "boolean" && (v["needsInstall"] === void 0 || typeof v["needsInstall"] === "boolean") && (v["entity"] === void 0 || typeof v["entity"] === "string") && (v["field"] === void 0 || typeof v["field"] === "string");
@@ -678,6 +696,9 @@ function buildCanvasTheme(v, p) {
678
696
  function buildClientAuth(v, p) {
679
697
  return oneOf(v, p, ["body", "basic", "none"]);
680
698
  }
699
+ function buildClientCredentialsSpec(v, p) {
700
+ return obj(v, p, null, (r0) => ({ "grantType": str(r0["grantType"], p + ".grantType"), "params": r0["params"] === void 0 ? [] : list(r0["params"], p + ".params", (e1, q1) => buildTokenParam(e1, q1)), "paramsIn": buildParamsIn(r0["paramsIn"], p + ".paramsIn") }));
701
+ }
681
702
  function buildClientEffect(v, p) {
682
703
  return Array.isArray(v) && v.length === 3 && v[0] === "render-ui" && typeof v[1] === "string" && (accepts((x, q) => rec(x, q), v[2]) || v[2] === null) ? tuple(v, p, 3, (t0) => [lit(t0[0], p + "[0]", "render-ui"), str(t0[1], p + "[1]"), t0[2] === null ? null : rec(t0[2], p + "[2]")]) : Array.isArray(v) && v.length === 2 && v[0] === "navigate" && typeof v[1] === "string" ? tuple(v, p, 2, (t0) => [lit(t0[0], p + "[0]", "navigate"), str(t0[1], p + "[1]")]) : Array.isArray(v) && v.length === 3 && v[0] === "navigate" && typeof v[1] === "string" && (isRecord(v[2]) && Object.values(v[2]).every((e) => typeof e === "string") || v[2] === null) ? tuple(v, p, 3, (t0) => [lit(t0[0], p + "[0]", "navigate"), str(t0[1], p + "[1]"), t0[2] === null ? null : dict(t0[2], p + "[2]", (e1, q1) => str(e1, q1))]) : Array.isArray(v) && v.length === 4 && v[0] === "navigate" && typeof v[1] === "string" && (isRecord(v[2]) && Object.values(v[2]).every((e) => typeof e === "string") || v[2] === null) && checkNavigateOptions(v[3]) ? tuple(v, p, 4, (t0) => [lit(t0[0], p + "[0]", "navigate"), str(t0[1], p + "[1]"), t0[2] === null ? null : dict(t0[2], p + "[2]", (e1, q1) => str(e1, q1)), buildNavigateOptions(t0[3], p + "[3]")]) : Array.isArray(v) && v.length === 1 && v[0] === "navigate-back" ? tuple(v, p, 1, (t0) => [lit(t0[0], p + "[0]", "navigate-back")]) : Array.isArray(v) && v.length === 3 && v[0] === "host-ask" && typeof v[1] === "string" && (Array.isArray(v[2]) && v[2].every((e) => accepts((x, q) => any(x, q), e))) ? tuple(v, p, 3, (t0) => [lit(t0[0], p + "[0]", "host-ask"), str(t0[1], p + "[1]"), list(t0[2], p + "[2]", (e1, q1) => any(e1, q1))]) : Array.isArray(v) && v.length === 4 && v[0] === "host-ask" && typeof v[1] === "string" && (Array.isArray(v[2]) && v[2].every((e) => accepts((x, q) => any(x, q), e))) && checkHostAskCompletion(v[3]) ? tuple(v, p, 4, (t0) => [lit(t0[0], p + "[0]", "host-ask"), str(t0[1], p + "[1]"), list(t0[2], p + "[2]", (e1, q1) => any(e1, q1)), buildHostAskCompletion(t0[3], p + "[3]")]) : fail(miss(p, "a list of 3 | a list of 2 | a list of 3 | a list of 4 | a list of 1 | a list of 3 | a list of 4"));
683
704
  }
@@ -691,7 +712,7 @@ function buildConnectFailureKind(v, p) {
691
712
  return oneOf(v, p, ["unavailable", "unsigned", "denied", "invalid_grant", "invalid_client", "transport", "malformed", "refused"]);
692
713
  }
693
714
  function buildCredentialGrantWire(v, p) {
694
- return obj(v, p, null, (r0) => ({ "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") }, "tokenEndpoint": str(r0["tokenEndpoint"], p + ".tokenEndpoint"), "grant": str(r0["grant"], p + ".grant"), "code": str(r0["code"], p + ".code"), "redirectUri": str(r0["redirectUri"], p + ".redirectUri"), ...r0["verifier"] === void 0 || r0["verifier"] === null ? {} : { "verifier": str(r0["verifier"], p + ".verifier") }, "clientId": str(r0["clientId"], p + ".clientId"), ...r0["clientSecret"] === void 0 || r0["clientSecret"] === null ? {} : { "clientSecret": str(r0["clientSecret"], p + ".clientSecret") }, "clientAuth": buildClientAuth(r0["clientAuth"], p + ".clientAuth"), "scopes": r0["scopes"] === void 0 ? [] : list(r0["scopes"], p + ".scopes", (e1, q1) => str(e1, q1)), ...r0["refreshCredential"] === void 0 || r0["refreshCredential"] === null ? {} : { "refreshCredential": str(r0["refreshCredential"], p + ".refreshCredential") }, ...r0["assertion"] === void 0 || r0["assertion"] === null ? {} : { "assertion": buildAssertionSpec(r0["assertion"], p + ".assertion") }, ...r0["jsonToken"] === void 0 || r0["jsonToken"] === null ? {} : { "jsonToken": buildJsonTokenSpec(r0["jsonToken"], p + ".jsonToken") } }));
715
+ return obj(v, p, null, (r0) => ({ "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") }, "tokenEndpoint": str(r0["tokenEndpoint"], p + ".tokenEndpoint"), "grant": str(r0["grant"], p + ".grant"), "code": str(r0["code"], p + ".code"), "redirectUri": str(r0["redirectUri"], p + ".redirectUri"), ...r0["verifier"] === void 0 || r0["verifier"] === null ? {} : { "verifier": str(r0["verifier"], p + ".verifier") }, "clientId": str(r0["clientId"], p + ".clientId"), ...r0["clientSecret"] === void 0 || r0["clientSecret"] === null ? {} : { "clientSecret": str(r0["clientSecret"], p + ".clientSecret") }, "clientAuth": buildClientAuth(r0["clientAuth"], p + ".clientAuth"), "scopes": r0["scopes"] === void 0 ? [] : list(r0["scopes"], p + ".scopes", (e1, q1) => str(e1, q1)), ...r0["refreshCredential"] === void 0 || r0["refreshCredential"] === null ? {} : { "refreshCredential": str(r0["refreshCredential"], p + ".refreshCredential") }, ...r0["assertion"] === void 0 || r0["assertion"] === null ? {} : { "assertion": buildAssertionSpec(r0["assertion"], p + ".assertion") }, ...r0["jsonToken"] === void 0 || r0["jsonToken"] === null ? {} : { "jsonToken": buildJsonTokenSpec(r0["jsonToken"], p + ".jsonToken") }, ...r0["clientCredentials"] === void 0 || r0["clientCredentials"] === null ? {} : { "clientCredentials": buildClientCredentialsSpec(r0["clientCredentials"], p + ".clientCredentials") } }));
695
716
  }
696
717
  function buildCredentialKind(v, p) {
697
718
  return lit(v, p, "admin");
@@ -748,7 +769,10 @@ function buildEnvTails(v, p) {
748
769
  return rec(v, p)["kind"] === "held" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "held"), "tails": list(r0["tails"], p + ".tails", (e1, q1) => buildEnvTail(e1, q1)) })) : rec(v, p)["kind"] === "unsupported" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "unsupported") })) : fail(unknownTag(p, "kind", rec(v, p)["kind"]));
749
770
  }
750
771
  function buildEnvelope(v, p) {
751
- return obj(v, p, null, (r0) => ({ "id": str(r0["id"], p + ".id"), "from": buildInstanceRef(r0["from"], p + ".from"), "to": buildInstanceRef(r0["to"], p + ".to"), "event": str(r0["event"], p + ".event"), "payload": any(r0["payload"], p + ".payload"), "causalId": str(r0["causalId"], p + ".causalId"), "hop": int(r0["hop"], p + ".hop", 0, 4294967295, "u32") }));
772
+ return obj(v, p, null, (r0) => ({ "id": str(r0["id"], p + ".id"), "from": buildInstanceRef(r0["from"], p + ".from"), "to": buildInstanceRef(r0["to"], p + ".to"), "event": str(r0["event"], p + ".event"), "payload": any(r0["payload"], p + ".payload"), "causalId": str(r0["causalId"], p + ".causalId"), "hop": int(r0["hop"], p + ".hop", 0, 4294967295, "u32"), ...r0["listen"] === void 0 || r0["listen"] === null ? {} : { "listen": buildEnvelopeListen(r0["listen"], p + ".listen") } }));
773
+ }
774
+ function buildEnvelopeListen(v, p) {
775
+ return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), "payload": any(r0["payload"], p + ".payload") }));
752
776
  }
753
777
  function buildEvalStepKind(v, p) {
754
778
  return oneOf(v, p, ["enter", "exit", "iter", "skip"]);
@@ -757,7 +781,7 @@ function buildEvalStepWire(v, p) {
757
781
  return obj(v, p, null, (r0) => ({ "kind": buildEvalStepKind(r0["kind"], p + ".kind"), "path": list(r0["path"], p + ".path", (e1, q1) => typeof e1 === "number" ? num(e1, q1) : typeof e1 === "string" ? str(e1, q1) : fail(miss(q1, "a number | a string"))), ...r0["value"] === void 0 || r0["value"] === null ? {} : { "value": any(r0["value"], p + ".value") }, ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
758
782
  }
759
783
  function buildEventRequest(v, p) {
760
- return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), ...r0["eventId"] === void 0 || r0["eventId"] === null ? {} : { "eventId": asEventId(str(r0["eventId"], p + ".eventId")) }, ...r0["payload"] === void 0 || r0["payload"] === null ? {} : { "payload": rec(r0["payload"], p + ".payload") }, ...r0["entityId"] === void 0 || r0["entityId"] === null ? {} : { "entityId": str(r0["entityId"], p + ".entityId") }, ...r0["targetTrait"] === void 0 || r0["targetTrait"] === null ? {} : { "targetTrait": str(r0["targetTrait"], p + ".targetTrait") }, ...r0["clientId"] === void 0 || r0["clientId"] === null ? {} : { "clientId": str(r0["clientId"], p + ".clientId") }, ...r0["locale"] === void 0 || r0["locale"] === null ? {} : { "locale": str(r0["locale"], p + ".locale") }, ...r0["tick"] === void 0 || r0["tick"] === null ? {} : { "tick": str(r0["tick"], p + ".tick") }, ...r0["sourceTrait"] === void 0 || r0["sourceTrait"] === null ? {} : { "sourceTrait": str(r0["sourceTrait"], p + ".sourceTrait") }, ...r0["runTick"] === void 0 || r0["runTick"] === null ? {} : { "runTick": buildRunTick(r0["runTick"], p + ".runTick") }, ...r0["traits"] === void 0 || r0["traits"] === null ? {} : { "traits": list(r0["traits"], p + ".traits", (e1, q1) => buildTraitFrom(e1, q1)) }, ...r0["entityByTrait"] === void 0 || r0["entityByTrait"] === null ? {} : { "entityByTrait": dict(r0["entityByTrait"], p + ".entityByTrait", (e1, q1) => entityRow(e1, q1)) }, ...r0["behavior"] === void 0 || r0["behavior"] === null ? {} : { "behavior": str(r0["behavior"], p + ".behavior") }, ...r0["delivery"] === void 0 || r0["delivery"] === null ? {} : { "delivery": buildDeliveryRecord(r0["delivery"], p + ".delivery") }, ...r0["dispatchLog"] === void 0 || r0["dispatchLog"] === null ? {} : { "dispatchLog": buildDispatchLog(r0["dispatchLog"], p + ".dispatchLog") }, ...r0["mount"] === void 0 || r0["mount"] === null ? {} : { "mount": list(r0["mount"], p + ".mount", (e1, q1) => buildMountSeed(e1, q1)) }, ...r0["route"] === void 0 || r0["route"] === null ? {} : { "route": str(r0["route"], p + ".route") }, ...r0["crumb"] === void 0 || r0["crumb"] === null ? {} : { "crumb": str(r0["crumb"], p + ".crumb") }, ...r0["residence"] === void 0 || r0["residence"] === null ? {} : { "residence": buildLegResidence(r0["residence"], p + ".residence") }, ...r0["framesSince"] === void 0 || r0["framesSince"] === null ? {} : { "framesSince": int(r0["framesSince"], p + ".framesSince", 0, Number.MAX_SAFE_INTEGER, "u64") }, ...r0["heldPayload"] === void 0 || r0["heldPayload"] === null ? {} : { "heldPayload": int(r0["heldPayload"], p + ".heldPayload", 0, Number.MAX_SAFE_INTEGER, "u64") } }));
784
+ return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), ...r0["eventId"] === void 0 || r0["eventId"] === null ? {} : { "eventId": asEventId(str(r0["eventId"], p + ".eventId")) }, ...r0["payload"] === void 0 || r0["payload"] === null ? {} : { "payload": rec(r0["payload"], p + ".payload") }, ...r0["entityId"] === void 0 || r0["entityId"] === null ? {} : { "entityId": str(r0["entityId"], p + ".entityId") }, ...r0["targetTrait"] === void 0 || r0["targetTrait"] === null ? {} : { "targetTrait": str(r0["targetTrait"], p + ".targetTrait") }, ...r0["clientId"] === void 0 || r0["clientId"] === null ? {} : { "clientId": str(r0["clientId"], p + ".clientId") }, ...r0["locale"] === void 0 || r0["locale"] === null ? {} : { "locale": str(r0["locale"], p + ".locale") }, ...r0["tick"] === void 0 || r0["tick"] === null ? {} : { "tick": str(r0["tick"], p + ".tick") }, ...r0["sourceTrait"] === void 0 || r0["sourceTrait"] === null ? {} : { "sourceTrait": str(r0["sourceTrait"], p + ".sourceTrait") }, ...r0["runTick"] === void 0 || r0["runTick"] === null ? {} : { "runTick": buildRunTick(r0["runTick"], p + ".runTick") }, ...r0["traits"] === void 0 || r0["traits"] === null ? {} : { "traits": list(r0["traits"], p + ".traits", (e1, q1) => buildTraitFrom(e1, q1)) }, ...r0["entityByTrait"] === void 0 || r0["entityByTrait"] === null ? {} : { "entityByTrait": dict(r0["entityByTrait"], p + ".entityByTrait", (e1, q1) => entityRow(e1, q1)) }, ...r0["behavior"] === void 0 || r0["behavior"] === null ? {} : { "behavior": str(r0["behavior"], p + ".behavior") }, ...r0["delivery"] === void 0 || r0["delivery"] === null ? {} : { "delivery": buildDeliveryRecord(r0["delivery"], p + ".delivery") }, ...r0["dispatchLog"] === void 0 || r0["dispatchLog"] === null ? {} : { "dispatchLog": buildDispatchLog(r0["dispatchLog"], p + ".dispatchLog") }, ...r0["mount"] === void 0 || r0["mount"] === null ? {} : { "mount": list(r0["mount"], p + ".mount", (e1, q1) => buildMountSeed(e1, q1)) }, ...r0["unmount"] === void 0 || r0["unmount"] === null ? {} : { "unmount": list(r0["unmount"], p + ".unmount", (e1, q1) => str(e1, q1)) }, ...r0["route"] === void 0 || r0["route"] === null ? {} : { "route": str(r0["route"], p + ".route") }, ...r0["crumb"] === void 0 || r0["crumb"] === null ? {} : { "crumb": str(r0["crumb"], p + ".crumb") }, ...r0["residence"] === void 0 || r0["residence"] === null ? {} : { "residence": buildLegResidence(r0["residence"], p + ".residence") }, ...r0["framesSince"] === void 0 || r0["framesSince"] === null ? {} : { "framesSince": int(r0["framesSince"], p + ".framesSince", 0, Number.MAX_SAFE_INTEGER, "u64") }, ...r0["heldPayload"] === void 0 || r0["heldPayload"] === null ? {} : { "heldPayload": int(r0["heldPayload"], p + ".heldPayload", 0, Number.MAX_SAFE_INTEGER, "u64") } }));
761
785
  }
762
786
  function buildEventResponse(v, p) {
763
787
  return obj(v, p, null, (r0) => ({ "success": r0["success"] === void 0 ? false : bool(r0["success"], p + ".success"), "transitioned": r0["transitioned"] === void 0 ? false : bool(r0["transitioned"], p + ".transitioned"), "states": r0["states"] === void 0 ? {} : dict(r0["states"], p + ".states", (e1, q1) => str(e1, q1)), "emittedEvents": r0["emittedEvents"] === void 0 ? [] : list(r0["emittedEvents"], p + ".emittedEvents", (e1, q1) => buildEmittedEvent(e1, q1)), ...r0["data"] === void 0 || r0["data"] === null ? {} : { "data": dict(r0["data"], p + ".data", (e1, q1) => list(e1, q1, (e2, q2) => entityRow(e2, q2))) }, ...r0["dataRefs"] === void 0 || r0["dataRefs"] === null ? {} : { "dataRefs": dict(r0["dataRefs"], p + ".dataRefs", (e1, q1) => buildRowSetRef(e1, q1)) }, ...r0["frames"] === void 0 || r0["frames"] === null ? {} : { "frames": buildFrameDelta(r0["frames"], p + ".frames") }, ...r0["clientEffectsByTrait"] === void 0 || r0["clientEffectsByTrait"] === null ? {} : { "clientEffectsByTrait": list(r0["clientEffectsByTrait"], p + ".clientEffectsByTrait", (e1, q1) => buildClientEffectByTrait(e1, q1)) }, ...r0["effectResults"] === void 0 || r0["effectResults"] === null ? {} : { "effectResults": list(r0["effectResults"], p + ".effectResults", (e1, q1) => buildServerEffectResult(e1, q1)) }, ...r0["guardFailed"] === void 0 || r0["guardFailed"] === null ? {} : { "guardFailed": str(r0["guardFailed"], p + ".guardFailed") }, ...r0["rejections"] === void 0 || r0["rejections"] === null ? {} : { "rejections": list(r0["rejections"], p + ".rejections", (e1, q1) => buildTransitionRejection(e1, q1)) }, ...r0["cascadeTruncated"] === void 0 || r0["cascadeTruncated"] === null ? {} : { "cascadeTruncated": list(r0["cascadeTruncated"], p + ".cascadeTruncated", (e1, q1) => str(e1, q1)) }, ...r0["transitions"] === void 0 || r0["transitions"] === null ? {} : { "transitions": list(r0["transitions"], p + ".transitions", (e1, q1) => buildTransitionHop(e1, q1)) }, ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
@@ -838,7 +862,7 @@ function buildIoReplyWire(v, p) {
838
862
  return obj(v, p, null, (r0) => ({ "id": int(r0["id"], p + ".id", 0, Number.MAX_SAFE_INTEGER, "u64"), "answer": buildIoAnswerWire(r0["answer"], p + ".answer") }));
839
863
  }
840
864
  function buildIoRequestWire(v, p) {
841
- return rec(v, p)["kind"] === "readRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "readRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id") })) : rec(v, p)["kind"] === "listRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "listRows"), "entityType": str(r0["entityType"], p + ".entityType") })) : rec(v, p)["kind"] === "queryRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "queryRows"), "entityType": str(r0["entityType"], p + ".entityType"), "query": buildRowQuery(r0["query"], p + ".query"), "project": buildRowProjection(r0["project"], p + ".project") })) : rec(v, p)["kind"] === "writeRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "writeRows"), "batch": buildRowWriteBatch(r0["batch"], p + ".batch") })) : rec(v, p)["kind"] === "commitRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "commitRows"), "rows": list(r0["rows"], p + ".rows", (e1, q1) => buildRowCommit(e1, q1)) })) : rec(v, p)["kind"] === "createRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "createRow"), "entityType": str(r0["entityType"], p + ".entityType"), "data": any(r0["data"], p + ".data") })) : rec(v, p)["kind"] === "writeRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "writeRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id"), "data": any(r0["data"], p + ".data") })) : rec(v, p)["kind"] === "deleteRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "deleteRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id") })) : rec(v, p)["kind"] === "callService" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "callService"), "service": str(r0["service"], p + ".service"), "method": str(r0["method"], p + ".method"), "args": any(r0["args"], p + ".args"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["caller"] === void 0 || r0["caller"] === null ? {} : { "caller": buildCallerWire(r0["caller"], p + ".caller") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "cancelCall" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "cancelCall"), "key": str(r0["key"], p + ".key") })) : rec(v, p)["kind"] === "substrate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "substrate"), "op": str(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "pageFacts" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "pageFacts"), "fields": list(r0["fields"], p + ".fields", (e1, q1) => buildPageFactFieldWire(e1, q1)) })) : rec(v, p)["kind"] === "prompt" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "prompt"), "text": str(r0["text"], p + ".text"), "schema": str(r0["schema"], p + ".schema"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "embed" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "embed"), "texts": list(r0["texts"], p + ".texts", (e1, q1) => str(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "tab" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "tab"), "ask": buildTabAsk(r0["ask"], p + ".ask"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "secret" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secret"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "secretSet" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secretSet"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value"), "ttlMs": int(r0["ttlMs"], p + ".ttlMs", 0, Number.MAX_SAFE_INTEGER, "u64"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "secretRotate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secretRotate"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "deliver" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "deliver"), "envelope": buildEnvelope(r0["envelope"], p + ".envelope"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, "site": buildCallSiteWire(r0["site"], p + ".site") })) : rec(v, p)["kind"] === "guest" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "guest"), "guest": str(r0["guest"], p + ".guest"), "targets": list(r0["targets"], p + ".targets", (e1, q1) => str(e1, q1)), "event": str(r0["event"], p + ".event"), "payload": any(r0["payload"], p + ".payload"), "grants": buildOsGrants(r0["grants"], p + ".grants"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "random" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "random"), "bytes": int(r0["bytes"], p + ".bytes", 0, 4294967295, "u32") })) : rec(v, p)["kind"] === "clock" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "clock") })) : rec(v, p)["kind"] === "sealed" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "sealed"), "op": str(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)) })) : rec(v, p)["kind"] === "gpu" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "gpu"), "ticket": int(r0["ticket"], p + ".ticket", 0, Number.MAX_SAFE_INTEGER, "u64"), "op": buildOsOp(r0["op"], p + ".op"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "os" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "os"), "op": buildOsOp(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") }, ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") }, ...r0["orbital"] === void 0 || r0["orbital"] === null ? {} : { "orbital": str(r0["orbital"], p + ".orbital") } })) : rec(v, p)["kind"] === "credentialStatus" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStatus"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "credentialForget" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialForget"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "credentialConnect" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialConnect"), "grant": buildCredentialGrantWire(r0["grant"], p + ".grant") })) : rec(v, p)["kind"] === "credentialStoreList" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreList") })) : rec(v, p)["kind"] === "credentialEnvTails" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialEnvTails"), "names": list(r0["names"], p + ".names", (e1, q1) => str(e1, q1)) })) : rec(v, p)["kind"] === "credentialStoreRead" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRead"), "name": str(r0["name"], p + ".name") })) : rec(v, p)["kind"] === "credentialStoreWrite" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreWrite"), "service": str(r0["service"], p + ".service"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value") })) : rec(v, p)["kind"] === "credentialStoreRemove" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRemove"), "name": str(r0["name"], p + ".name") })) : rec(v, p)["kind"] === "credentialStoreRotate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRotate") })) : rec(v, p)["kind"] === "credentialModeRead" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialModeRead") })) : rec(v, p)["kind"] === "credentialModeWrite" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialModeWrite"), "mode": str(r0["mode"], p + ".mode") })) : fail(unknownTag(p, "kind", rec(v, p)["kind"]));
865
+ return rec(v, p)["kind"] === "readRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "readRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id") })) : rec(v, p)["kind"] === "listRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "listRows"), "entityType": str(r0["entityType"], p + ".entityType") })) : rec(v, p)["kind"] === "queryRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "queryRows"), "entityType": str(r0["entityType"], p + ".entityType"), "query": buildRowQuery(r0["query"], p + ".query"), "project": buildRowProjection(r0["project"], p + ".project") })) : rec(v, p)["kind"] === "writeRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "writeRows"), "batch": buildRowWriteBatch(r0["batch"], p + ".batch") })) : rec(v, p)["kind"] === "commitRows" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "commitRows"), "rows": list(r0["rows"], p + ".rows", (e1, q1) => buildRowCommit(e1, q1)) })) : rec(v, p)["kind"] === "createRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "createRow"), "entityType": str(r0["entityType"], p + ".entityType"), "data": any(r0["data"], p + ".data") })) : rec(v, p)["kind"] === "writeRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "writeRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id"), "data": any(r0["data"], p + ".data") })) : rec(v, p)["kind"] === "deleteRow" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "deleteRow"), "entityType": str(r0["entityType"], p + ".entityType"), "id": str(r0["id"], p + ".id") })) : rec(v, p)["kind"] === "callService" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "callService"), "service": str(r0["service"], p + ".service"), "method": str(r0["method"], p + ".method"), "args": any(r0["args"], p + ".args"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["caller"] === void 0 || r0["caller"] === null ? {} : { "caller": buildCallerWire(r0["caller"], p + ".caller") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "cancelCall" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "cancelCall"), "key": str(r0["key"], p + ".key") })) : rec(v, p)["kind"] === "substrate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "substrate"), "op": str(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "pageFacts" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "pageFacts"), "fields": list(r0["fields"], p + ".fields", (e1, q1) => buildPageFactFieldWire(e1, q1)) })) : rec(v, p)["kind"] === "prompt" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "prompt"), "text": str(r0["text"], p + ".text"), "schema": str(r0["schema"], p + ".schema"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "embed" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "embed"), "texts": list(r0["texts"], p + ".texts", (e1, q1) => str(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "tab" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "tab"), "ask": buildTabAsk(r0["ask"], p + ".ask"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "secret" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secret"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "secretSet" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secretSet"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value"), "ttlMs": int(r0["ttlMs"], p + ".ttlMs", 0, Number.MAX_SAFE_INTEGER, "u64"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "secretRotate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "secretRotate"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "deliver" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "deliver"), "envelope": buildEnvelope(r0["envelope"], p + ".envelope"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, "site": buildCallSiteWire(r0["site"], p + ".site") })) : rec(v, p)["kind"] === "guest" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "guest"), "guest": str(r0["guest"], p + ".guest"), "targets": list(r0["targets"], p + ".targets", (e1, q1) => str(e1, q1)), "event": str(r0["event"], p + ".event"), "payload": any(r0["payload"], p + ".payload"), "grants": buildOsGrants(r0["grants"], p + ".grants"), ...r0["leg"] === void 0 || r0["leg"] === null ? {} : { "leg": any(r0["leg"], p + ".leg") }, ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") } })) : rec(v, p)["kind"] === "random" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "random"), "bytes": int(r0["bytes"], p + ".bytes", 0, 4294967295, "u32") })) : rec(v, p)["kind"] === "clock" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "clock") })) : rec(v, p)["kind"] === "sealed" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "sealed"), "op": str(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)) })) : rec(v, p)["kind"] === "gpu" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "gpu"), "ticket": int(r0["ticket"], p + ".ticket", 0, Number.MAX_SAFE_INTEGER, "u64"), "op": buildOsOp(r0["op"], p + ".op"), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") } })) : rec(v, p)["kind"] === "os" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "os"), "op": buildOsOp(r0["op"], p + ".op"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), ...r0["key"] === void 0 || r0["key"] === null ? {} : { "key": str(r0["key"], p + ".key") }, ...r0["site"] === void 0 || r0["site"] === null ? {} : { "site": buildCallSiteWire(r0["site"], p + ".site") }, ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") }, ...r0["orbital"] === void 0 || r0["orbital"] === null ? {} : { "orbital": str(r0["orbital"], p + ".orbital") } })) : rec(v, p)["kind"] === "credentialStatus" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStatus"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "credentialForget" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialForget"), "name": str(r0["name"], p + ".name"), ...r0["principal"] === void 0 || r0["principal"] === null ? {} : { "principal": str(r0["principal"], p + ".principal") } })) : rec(v, p)["kind"] === "credentialConnect" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialConnect"), "grant": buildCredentialGrantWire(r0["grant"], p + ".grant") })) : rec(v, p)["kind"] === "credentialStoreList" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreList") })) : rec(v, p)["kind"] === "credentialEnvTails" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialEnvTails"), "names": list(r0["names"], p + ".names", (e1, q1) => str(e1, q1)) })) : rec(v, p)["kind"] === "credentialStoreRead" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRead"), "name": str(r0["name"], p + ".name") })) : rec(v, p)["kind"] === "credentialStoreWrite" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreWrite"), "service": str(r0["service"], p + ".service"), "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value") })) : rec(v, p)["kind"] === "credentialStoreRemove" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRemove"), "name": str(r0["name"], p + ".name") })) : rec(v, p)["kind"] === "credentialStoreRotate" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialStoreRotate") })) : rec(v, p)["kind"] === "credentialModeRead" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialModeRead") })) : rec(v, p)["kind"] === "credentialModeWrite" ? obj(v, p, null, (r0) => ({ "kind": lit(r0["kind"], p + ".kind", "credentialModeWrite"), "mode": str(r0["mode"], p + ".mode") })) : fail(unknownTag(p, "kind", rec(v, p)["kind"]));
842
866
  }
843
867
  function buildJsonTokenSpec(v, p) {
844
868
  return obj(v, p, null, (r0) => ({ "clientIdField": str(r0["clientIdField"], p + ".clientIdField"), "clientSecretField": str(r0["clientSecretField"], p + ".clientSecretField"), "accessField": str(r0["accessField"], p + ".accessField"), ...r0["refreshField"] === void 0 || r0["refreshField"] === null ? {} : { "refreshField": r0["refreshField"] === null ? null : str(r0["refreshField"], p + ".refreshField") }, ...r0["expiresInField"] === void 0 || r0["expiresInField"] === null ? {} : { "expiresInField": r0["expiresInField"] === null ? null : str(r0["expiresInField"], p + ".expiresInField") }, ...r0["refreshEndpoint"] === void 0 || r0["refreshEndpoint"] === null ? {} : { "refreshEndpoint": r0["refreshEndpoint"] === null ? null : str(r0["refreshEndpoint"], p + ".refreshEndpoint") }, ...r0["refreshBodyField"] === void 0 || r0["refreshBodyField"] === null ? {} : { "refreshBodyField": r0["refreshBodyField"] === null ? null : str(r0["refreshBodyField"], p + ".refreshBodyField") } }));
@@ -847,13 +871,13 @@ function buildKernelGrant(v, p) {
847
871
  return obj(v, p, ["target", "kinds"], (r0) => ({ "target": str(r0["target"], p + ".target"), "kinds": list(r0["kinds"], p + ".kinds", (e1, q1) => buildKernelKind(e1, q1)) }));
848
872
  }
849
873
  function buildKernelKind(v, p) {
850
- return oneOf(v, p, ["call", "reorder", "read", "spawn", "declared"]);
874
+ return oneOf(v, p, ["call", "reorder", "read", "spawn", "declared", "program"]);
851
875
  }
852
876
  function buildKvMode(v, p) {
853
877
  return oneOf(v, p, ["read", "write"]);
854
878
  }
855
879
  function buildLeft(v, p) {
856
- return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "orbital": str(r0["orbital"], p + ".orbital"), "leg": buildEventRequest(r0["leg"], p + ".leg") }));
880
+ return obj(v, p, null, (r0) => ({ "orbital": str(r0["orbital"], p + ".orbital"), "traits": list(r0["traits"], p + ".traits", (e1, q1) => str(e1, q1)), "leg": buildEventRequest(r0["leg"], p + ".leg") }));
857
881
  }
858
882
  function buildLegResidence(v, p) {
859
883
  return oneOf(v, p, ["browser", "server"]);
@@ -922,7 +946,7 @@ function buildOsGrantsReport(v, p) {
922
946
  return obj(v, p, null, (r0) => ({ "findings": list(r0["findings"], p + ".findings", (e1, q1) => buildOsGrantFinding(e1, q1)) }));
923
947
  }
924
948
  function buildOsOp(v, p) {
925
- return oneOf(v, p, ["os/read-file", "os/write-file", "os/append-file", "os/open", "os/close", "os/read", "os/write", "os/seek", "os/truncate", "os/fsync", "os/copy", "os/rename", "os/remove", "os/link", "os/symlink", "os/readlink", "os/watch-files", "os/mkdir", "os/rmdir", "os/list-dir", "os/glob", "os/mktemp", "os/realpath", "os/cwd", "os/chdir", "os/stat", "os/lstat", "os/access", "os/exists", "os/chmod", "os/chown", "os/utimes", "os/spawn", "os/wait", "os/kill", "os/pid", "os/ppid", "os/current-exe", "os/watch-process", "os/watch-signal", "os/getenv", "os/setenv", "os/unsetenv", "os/environ", "os/watch-env", "os/stdin-read", "os/stdout-write", "os/stderr-write", "os/isatty", "os/tty-size", "os/tcp-connect", "os/tcp-listen", "os/tls-upgrade", "os/send", "os/recv", "os/udp-bind", "os/sendto", "os/recvfrom", "os/dns-resolve", "os/shutdown", "os/watch-port", "os/fetch", "os/clock-monotonic", "os/uid", "os/gid", "os/username", "os/group-of", "os/watch-cron", "os/cpu-usage", "os/memory-info", "os/uptime", "os/load-avg", "os/hostname", "os/uname", "os/disk-usage", "os/mounts", "os/disk-io", "os/network-interfaces", "os/network-stats", "os/network-connected", "os/default-gateway", "os/battery-status", "os/ac-power", "os/thermal-zones", "os/notify", "os/speak", "os/brightness-get", "os/brightness-set", "os/volume-get", "os/volume-set", "os/volume-mute", "os/suspend", "os/hibernate", "os/mmio-read", "os/mmio-write", "os/irq-wait", "os/irq-ack", "kv/get", "kv/put", "kv/delete", "kv/scan", "kv/batch", "mem/arena-new", "mem/arena-drop", "mem/alloc", "mem/free", "mem/borrow", "mem/release", "mem/write", "mem/freeze", "mem/atomic-load", "mem/atomic-store", "mem/atomic-add", "mem/atomic-cas", "kernel/queue-front", "kernel/queue-back", "ffi/call", "gpu/device-open", "gpu/device-close", "gpu/buffer-create", "gpu/texture-create", "gpu/sampler-create", "gpu/query-create", "gpu/shader-create", "gpu/pipeline-create", "gpu/bind-group-create", "gpu/submit", "gpu/release"]);
949
+ return oneOf(v, p, ["os/read-file", "os/write-file", "os/append-file", "os/open", "os/close", "os/read", "os/write", "os/seek", "os/truncate", "os/fsync", "os/copy", "os/rename", "os/remove", "os/link", "os/symlink", "os/readlink", "os/watch-files", "os/mkdir", "os/rmdir", "os/list-dir", "os/glob", "os/mktemp", "os/realpath", "os/cwd", "os/chdir", "os/stat", "os/lstat", "os/access", "os/exists", "os/chmod", "os/chown", "os/utimes", "os/spawn", "os/wait", "os/kill", "os/pid", "os/ppid", "os/current-exe", "os/watch-process", "os/watch-signal", "os/getenv", "os/setenv", "os/unsetenv", "os/environ", "os/watch-env", "os/stdin-read", "os/stdout-write", "os/stderr-write", "os/isatty", "os/tty-size", "os/tcp-connect", "os/tcp-listen", "os/tls-upgrade", "os/send", "os/recv", "os/udp-bind", "os/sendto", "os/recvfrom", "os/dns-resolve", "os/shutdown", "os/watch-port", "os/fetch", "os/clock-monotonic", "os/uid", "os/gid", "os/username", "os/group-of", "os/watch-cron", "os/cpu-usage", "os/memory-info", "os/process-list", "os/uptime", "os/load-avg", "os/hostname", "os/uname", "os/disk-usage", "os/mounts", "os/disk-io", "os/network-interfaces", "os/network-stats", "os/network-connected", "os/default-gateway", "os/battery-status", "os/ac-power", "os/thermal-zones", "os/notify", "os/speak", "os/brightness-get", "os/brightness-set", "os/volume-get", "os/volume-set", "os/volume-mute", "os/suspend", "os/hibernate", "os/mmio-read", "os/mmio-write", "os/irq-wait", "os/irq-ack", "kv/get", "kv/put", "kv/delete", "kv/scan", "kv/batch", "mem/arena-new", "mem/arena-drop", "mem/alloc", "mem/free", "mem/borrow", "mem/release", "mem/write", "mem/freeze", "mem/atomic-load", "mem/atomic-store", "mem/atomic-add", "mem/atomic-cas", "audio/decode", "kernel/queue-front", "kernel/queue-back", "ffi/call", "gpu/device-open", "gpu/device-close", "gpu/buffer-create", "gpu/texture-create", "gpu/sampler-create", "gpu/query-create", "gpu/shader-create", "gpu/pipeline-create", "gpu/bind-group-create", "gpu/submit", "gpu/release"]);
926
950
  }
927
951
  function buildPageFactFieldWire(v, p) {
928
952
  return oneOf(v, p, ["hostname", "referrer", "screenWidth", "href"]);
@@ -930,6 +954,9 @@ function buildPageFactFieldWire(v, p) {
930
954
  function buildPageFactsWire(v, p) {
931
955
  return obj(v, p, null, (r0) => ({ "available": bool(r0["available"], p + ".available"), "hostname": str(r0["hostname"], p + ".hostname"), "referrer": str(r0["referrer"], p + ".referrer"), "screenWidth": r0["screenWidth"] === void 0 ? null : r0["screenWidth"] === null ? null : num(r0["screenWidth"], p + ".screenWidth"), "href": str(r0["href"], p + ".href") }));
932
956
  }
957
+ function buildParamsIn(v, p) {
958
+ return oneOf(v, p, ["body", "query"]);
959
+ }
933
960
  function buildPendingAsk(v, p) {
934
961
  return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "operator": str(r0["operator"], p + ".operator"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), "key": str(r0["key"], p + ".key") }));
935
962
  }
@@ -937,7 +964,7 @@ function buildPendingRequestWire(v, p) {
937
964
  return obj(v, p, null, (r0) => ({ "id": int(r0["id"], p + ".id", 0, Number.MAX_SAFE_INTEGER, "u64"), "request": buildIoRequestWire(r0["request"], p + ".request") }));
938
965
  }
939
966
  function buildPlayedEffect(v, p) {
940
- return obj(v, p, null, (r0) => ({ "type": str(r0["type"], p + ".type"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), "status": buildPlayedEffectStatus(r0["status"], p + ".status"), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") }, "routed": bool(r0["routed"], p + ".routed"), ...r0["nested"] === void 0 || r0["nested"] === null ? {} : { "nested": list(r0["nested"], p + ".nested", (e1, q1) => buildPlayedEffect(e1, q1)) } }));
967
+ return obj(v, p, null, (r0) => ({ "type": str(r0["type"], p + ".type"), "args": list(r0["args"], p + ".args", (e1, q1) => any(e1, q1)), "status": buildPlayedEffectStatus(r0["status"], p + ".status"), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") }, ...r0["code"] === void 0 || r0["code"] === null ? {} : { "code": buildServerEffectCode(r0["code"], p + ".code") }, "routed": bool(r0["routed"], p + ".routed"), ...r0["nested"] === void 0 || r0["nested"] === null ? {} : { "nested": list(r0["nested"], p + ".nested", (e1, q1) => buildPlayedEffect(e1, q1)) }, ...r0["cost"] === void 0 || r0["cost"] === null ? {} : { "cost": buildStepCost(r0["cost"], p + ".cost") } }));
941
968
  }
942
969
  function buildPlayedEffectStatus(v, p) {
943
970
  return oneOf(v, p, ["executed", "failed", "skipped"]);
@@ -952,10 +979,10 @@ function buildPlayedGuard(v, p) {
952
979
  return obj(v, p, null, (r0) => ({ "arm": int(r0["arm"], p + ".arm", 0, 4294967295, "u32"), "guard": any(r0["guard"], p + ".guard"), "passed": bool(r0["passed"], p + ".passed"), "trace": list(r0["trace"], p + ".trace", (e1, q1) => buildEvalStepWire(e1, q1)), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
953
980
  }
954
981
  function buildPlayedOutcome(v, p) {
955
- return obj(v, p, null, (r0) => ({ "orbital": str(r0["orbital"], p + ".orbital"), "trait": str(r0["trait"], p + ".trait"), "event": str(r0["event"], p + ".event"), "from": str(r0["from"], p + ".from"), "to": str(r0["to"], p + ".to"), ...r0["arm"] === void 0 || r0["arm"] === null ? {} : { "arm": int(r0["arm"], p + ".arm", 0, 4294967295, "u32") }, "fired": bool(r0["fired"], p + ".fired"), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "emitted": list(r0["emitted"], p + ".emitted", (e1, q1) => buildPlayedEmit(e1, q1)) }));
982
+ return obj(v, p, null, (r0) => ({ "orbital": str(r0["orbital"], p + ".orbital"), "trait": str(r0["trait"], p + ".trait"), "event": str(r0["event"], p + ".event"), "from": str(r0["from"], p + ".from"), "to": str(r0["to"], p + ".to"), ...r0["arm"] === void 0 || r0["arm"] === null ? {} : { "arm": int(r0["arm"], p + ".arm", 0, 4294967295, "u32") }, "fired": bool(r0["fired"], p + ".fired"), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "emitted": list(r0["emitted"], p + ".emitted", (e1, q1) => buildPlayedEmit(e1, q1)), ...r0["cost"] === void 0 || r0["cost"] === null ? {} : { "cost": buildStepCost(r0["cost"], p + ".cost") } }));
956
983
  }
957
984
  function buildPlayedResult(v, p) {
958
- return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "event": str(r0["event"], p + ".event"), "transitionFired": bool(r0["transitionFired"], p + ".transitionFired"), "guard": buildGuardVerdict(r0["guard"], p + ".guard"), ...r0["firedArm"] === void 0 || r0["firedArm"] === null ? {} : { "firedArm": int(r0["firedArm"], p + ".firedArm", 0, 4294967295, "u32") }, "state": buildPlayedState(r0["state"], p + ".state"), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "emitted": list(r0["emitted"], p + ".emitted", (e1, q1) => buildPlayedEmit(e1, q1)), "guards": list(r0["guards"], p + ".guards", (e1, q1) => buildPlayedGuard(e1, q1)), "ensures": list(r0["ensures"], p + ".ensures", (e1, q1) => buildPlayedEnsures(e1, q1)), ...r0["rendered"] === void 0 || r0["rendered"] === null ? {} : { "rendered": list(r0["rendered"], p + ".rendered", (e1, q1) => buildRenderedSlot(e1, q1)) }, ...r0["failure"] === void 0 || r0["failure"] === null ? {} : { "failure": str(r0["failure"], p + ".failure") }, "entityAfter": r0["entityAfter"] === null ? null : rec(r0["entityAfter"], p + ".entityAfter"), "pendingAsks": list(r0["pendingAsks"], p + ".pendingAsks", (e1, q1) => buildPendingAsk(e1, q1)), "outcomes": list(r0["outcomes"], p + ".outcomes", (e1, q1) => buildPlayedOutcome(e1, q1)) }));
985
+ return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "event": str(r0["event"], p + ".event"), "transitionFired": bool(r0["transitionFired"], p + ".transitionFired"), "guard": buildGuardVerdict(r0["guard"], p + ".guard"), ...r0["firedArm"] === void 0 || r0["firedArm"] === null ? {} : { "firedArm": int(r0["firedArm"], p + ".firedArm", 0, 4294967295, "u32") }, "state": buildPlayedState(r0["state"], p + ".state"), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "emitted": list(r0["emitted"], p + ".emitted", (e1, q1) => buildPlayedEmit(e1, q1)), "guards": list(r0["guards"], p + ".guards", (e1, q1) => buildPlayedGuard(e1, q1)), "ensures": list(r0["ensures"], p + ".ensures", (e1, q1) => buildPlayedEnsures(e1, q1)), ...r0["rendered"] === void 0 || r0["rendered"] === null ? {} : { "rendered": list(r0["rendered"], p + ".rendered", (e1, q1) => buildRenderedSlot(e1, q1)) }, ...r0["failure"] === void 0 || r0["failure"] === null ? {} : { "failure": str(r0["failure"], p + ".failure") }, "entityAfter": r0["entityAfter"] === null ? null : rec(r0["entityAfter"], p + ".entityAfter"), "pendingAsks": list(r0["pendingAsks"], p + ".pendingAsks", (e1, q1) => buildPendingAsk(e1, q1)), "outcomes": list(r0["outcomes"], p + ".outcomes", (e1, q1) => buildPlayedOutcome(e1, q1)), ...r0["collapsed"] === void 0 || r0["collapsed"] === null ? {} : { "collapsed": list(r0["collapsed"], p + ".collapsed", (e1, q1) => buildStepCollapsed(e1, q1)) }, ...r0["cost"] === void 0 || r0["cost"] === null ? {} : { "cost": buildStepCost(r0["cost"], p + ".cost") } }));
959
986
  }
960
987
  function buildPlayedState(v, p) {
961
988
  return obj(v, p, null, (r0) => ({ "before": r0["before"] === void 0 ? null : r0["before"] === null ? null : str(r0["before"], p + ".before"), "after": r0["after"] === void 0 ? null : r0["after"] === null ? null : str(r0["after"], p + ".after") }));
@@ -1083,6 +1110,12 @@ function buildStatefulLegWire(v, p) {
1083
1110
  function buildStdioKind(v, p) {
1084
1111
  return oneOf(v, p, ["in", "out", "err"]);
1085
1112
  }
1113
+ function buildStepCollapsed(v, p) {
1114
+ return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "event": str(r0["event"], p + ".event"), "payload": r0["payload"] === null ? null : rec(r0["payload"], p + ".payload") }));
1115
+ }
1116
+ function buildStepCost(v, p) {
1117
+ return obj(v, p, null, (r0) => ({ "startNs": int(r0["startNs"], p + ".startNs", 0, Number.MAX_SAFE_INTEGER, "u64"), "ns": int(r0["ns"], p + ".ns", 0, Number.MAX_SAFE_INTEGER, "u64"), "allocs": int(r0["allocs"], p + ".allocs", 0, Number.MAX_SAFE_INTEGER, "u64"), "allocBytes": int(r0["allocBytes"], p + ".allocBytes", 0, Number.MAX_SAFE_INTEGER, "u64") }));
1118
+ }
1086
1119
  function buildStepEmit(v, p) {
1087
1120
  return obj(v, p, null, (r0) => ({ "event": str(r0["event"], p + ".event"), "payload": r0["payload"] === null ? null : rec(r0["payload"], p + ".payload") }));
1088
1121
  }
@@ -1090,7 +1123,7 @@ function buildStepGuard(v, p) {
1090
1123
  return obj(v, p, null, (r0) => ({ "arm": int(r0["arm"], p + ".arm", 0, Number.MAX_SAFE_INTEGER, "usize"), "guard": any(r0["guard"], p + ".guard"), "passed": bool(r0["passed"], p + ".passed"), ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") } }));
1091
1124
  }
1092
1125
  function buildStepOutcome(v, p) {
1093
- return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "executed": bool(r0["executed"], p + ".executed"), "previousState": str(r0["previousState"], p + ".previousState"), "newState": str(r0["newState"], p + ".newState"), "emits": list(r0["emits"], p + ".emits", (e1, q1) => buildStepEmit(e1, q1)), "firedArm": r0["firedArm"] === void 0 ? null : r0["firedArm"] === null ? null : int(r0["firedArm"], p + ".firedArm", 0, Number.MAX_SAFE_INTEGER, "usize"), "guards": list(r0["guards"], p + ".guards", (e1, q1) => buildStepGuard(e1, q1)), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "failure": r0["failure"] === void 0 ? null : r0["failure"] === null ? null : str(r0["failure"], p + ".failure"), "orbital": str(r0["orbital"], p + ".orbital"), "event": str(r0["event"], p + ".event"), "ensures": list(r0["ensures"], p + ".ensures", (e1, q1) => buildPlayedEnsures(e1, q1)) }));
1126
+ return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "executed": bool(r0["executed"], p + ".executed"), "previousState": str(r0["previousState"], p + ".previousState"), "newState": str(r0["newState"], p + ".newState"), "emits": list(r0["emits"], p + ".emits", (e1, q1) => buildStepEmit(e1, q1)), "firedArm": r0["firedArm"] === void 0 ? null : r0["firedArm"] === null ? null : int(r0["firedArm"], p + ".firedArm", 0, Number.MAX_SAFE_INTEGER, "usize"), "guards": list(r0["guards"], p + ".guards", (e1, q1) => buildStepGuard(e1, q1)), "effects": list(r0["effects"], p + ".effects", (e1, q1) => buildPlayedEffect(e1, q1)), "failure": r0["failure"] === void 0 ? null : r0["failure"] === null ? null : str(r0["failure"], p + ".failure"), "orbital": str(r0["orbital"], p + ".orbital"), "event": str(r0["event"], p + ".event"), "ensures": list(r0["ensures"], p + ".ensures", (e1, q1) => buildPlayedEnsures(e1, q1)), ...r0["collapsed"] === void 0 || r0["collapsed"] === null ? {} : { "collapsed": list(r0["collapsed"], p + ".collapsed", (e1, q1) => buildStepCollapsed(e1, q1)) }, ...r0["cost"] === void 0 || r0["cost"] === null ? {} : { "cost": buildStepCost(r0["cost"], p + ".cost") } }));
1094
1127
  }
1095
1128
  function buildStepRefusal(v, p) {
1096
1129
  return obj(v, p, null, (r0) => ({ "success": lit(r0["success"], p + ".success", false), "error": str(r0["error"], p + ".error"), "trait": r0["trait"] === void 0 ? null : r0["trait"] === null ? null : str(r0["trait"], p + ".trait"), "outcomes": list(r0["outcomes"], p + ".outcomes", (e1, q1) => buildStepOutcome(e1, q1)) }));
@@ -1111,7 +1144,7 @@ function buildSubstrateFailureWire(v, p) {
1111
1144
  return obj(v, p, null, (r0) => ({ "message": str(r0["message"], p + ".message"), "errors": list(r0["errors"], p + ".errors", (e1, q1) => any(e1, q1)) }));
1112
1145
  }
1113
1146
  function buildSysKind(v, p) {
1114
- return oneOf(v, p, ["cpu", "memory", "disk", "network", "power-state", "identity", "self-signal"]);
1147
+ return oneOf(v, p, ["cpu", "memory", "disk", "network", "power-state", "identity", "processes", "self-signal", "process-signal"]);
1115
1148
  }
1116
1149
  function buildTabAction(v, p) {
1117
1150
  return oneOf(v, p, ["click", "focus", "type"]);
@@ -1143,6 +1176,9 @@ function buildTabImageFormat(v, p) {
1143
1176
  function buildTabStyle(v, p) {
1144
1177
  return obj(v, p, null, (r0) => ({ "property": str(r0["property"], p + ".property"), "value": str(r0["value"], p + ".value") }));
1145
1178
  }
1179
+ function buildTokenParam(v, p) {
1180
+ return obj(v, p, null, (r0) => ({ "name": str(r0["name"], p + ".name"), "value": str(r0["value"], p + ".value") }));
1181
+ }
1146
1182
  function buildTraitFrom(v, p) {
1147
1183
  return obj(v, p, null, (r0) => ({ "trait": str(r0["trait"], p + ".trait"), "from": str(r0["from"], p + ".from"), ...r0["event"] === void 0 || r0["event"] === null ? {} : { "event": str(r0["event"], p + ".event") } }));
1148
1184
  }
@@ -1159,7 +1195,7 @@ function buildTransitionRejection(v, p) {
1159
1195
  return obj(v, p, null, (r0) => ({ "code": buildTransitionRejectionCode(r0["code"], p + ".code"), ...r0["trait"] === void 0 || r0["trait"] === null ? {} : { "trait": str(r0["trait"], p + ".trait") }, ...r0["from"] === void 0 || r0["from"] === null ? {} : { "from": str(r0["from"], p + ".from") }, ...r0["event"] === void 0 || r0["event"] === null ? {} : { "event": str(r0["event"], p + ".event") }, ...r0["statesDeclaringEvent"] === void 0 || r0["statesDeclaringEvent"] === null ? {} : { "statesDeclaringEvent": list(r0["statesDeclaringEvent"], p + ".statesDeclaringEvent", (e1, q1) => str(e1, q1)) }, ...r0["transition"] === void 0 || r0["transition"] === null ? {} : { "transition": str(r0["transition"], p + ".transition") }, ...r0["guard"] === void 0 || r0["guard"] === null ? {} : { "guard": any(r0["guard"], p + ".guard") }, ...r0["error"] === void 0 || r0["error"] === null ? {} : { "error": str(r0["error"], p + ".error") }, ...r0["slot"] === void 0 || r0["slot"] === null ? {} : { "slot": str(r0["slot"], p + ".slot") } }));
1160
1196
  }
1161
1197
  function buildTransitionRejectionCode(v, p) {
1162
- return oneOf(v, p, ["no-matching-transition", "guard-rejected", "no-dispatchable-traits", "not-an-external-input", "inbound-only-event", "effect-failed", "locale-not-declared", "client-circuit-state-refused", "repaint-failed"]);
1198
+ return oneOf(v, p, ["no-matching-transition", "guard-rejected", "no-dispatchable-traits", "not-an-external-input", "inbound-only-event", "effect-failed", "locale-not-declared", "client-circuit-state-refused", "repaint-failed", "cascade-capped"]);
1163
1199
  }
1164
1200
  function buildValidationJsonError(v, p) {
1165
1201
  return obj(v, p, null, (r0) => ({ "code": str(r0["code"], p + ".code"), "path": str(r0["path"], p + ".path"), "message": str(r0["message"], p + ".message"), ...r0["suggestion"] === void 0 || r0["suggestion"] === null ? {} : { "suggestion": str(r0["suggestion"], p + ".suggestion") }, ...r0["fixGuidance"] === void 0 || r0["fixGuidance"] === null ? {} : { "fixGuidance": str(r0["fixGuidance"], p + ".fixGuidance") }, ...r0["expectedShape"] === void 0 || r0["expectedShape"] === null ? {} : { "expectedShape": str(r0["expectedShape"], p + ".expectedShape") }, ...r0["validValues"] === void 0 || r0["validValues"] === null ? {} : { "validValues": list(r0["validValues"], p + ".validValues", (e1, q1) => str(e1, q1)) }, ...r0["line"] === void 0 || r0["line"] === null ? {} : { "line": int(r0["line"], p + ".line", 0, 4294967295, "u32") }, ...r0["column"] === void 0 || r0["column"] === null ? {} : { "column": int(r0["column"], p + ".column", 0, 4294967295, "u32") }, ...r0["endLine"] === void 0 || r0["endLine"] === null ? {} : { "endLine": int(r0["endLine"], p + ".endLine", 0, 4294967295, "u32") }, ...r0["endColumn"] === void 0 || r0["endColumn"] === null ? {} : { "endColumn": int(r0["endColumn"], p + ".endColumn", 0, 4294967295, "u32") }, "approximate": r0["approximate"] === void 0 ? false : bool(r0["approximate"], p + ".approximate"), ...r0["needsInstall"] === void 0 || r0["needsInstall"] === null ? {} : { "needsInstall": bool(r0["needsInstall"], p + ".needsInstall") }, ...r0["entity"] === void 0 || r0["entity"] === null ? {} : { "entity": str(r0["entity"], p + ".entity") }, ...r0["field"] === void 0 || r0["field"] === null ? {} : { "field": str(r0["field"], p + ".field") } }));
@@ -1,4 +1,4 @@
1
- import { isEventResponse } from './chunk-JCRN3F6T.js';
1
+ import { isEventResponse } from './chunk-LQZXCL47.js';
2
2
  import { EventPayloadSchema } from './chunk-R3Y7ABF4.js';
3
3
  import { EventIdSchema, TraitIdSchema, OrbitalIdSchema } from './chunk-W3UJRSYC.js';
4
4
  import { JsonValueSchema } from './chunk-GNLND5O2.js';