@floless/app 0.138.1 → 0.139.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 (109) hide show
  1. package/autostart.mjs +6 -2
  2. package/desktop-access-production-manifest.mjs +7 -0
  3. package/dist/floless-server.cjs +157133 -70500
  4. package/dist/schemas/model.continuation.v1.schema.json +19 -0
  5. package/dist/schemas/model.continuation.v2.schema.json +19 -0
  6. package/dist/schemas/model.query-response.v1.schema.json +95 -0
  7. package/dist/schemas/model.query-response.v2.schema.json +80 -0
  8. package/dist/schemas/model.query.v1.schema.json +87 -0
  9. package/dist/schemas/model.query.v2.schema.json +87 -0
  10. package/dist/schemas/model.snap-candidate.v1.schema.json +48 -0
  11. package/dist/schemas/model.snap-constraint.v1.schema.json +18 -0
  12. package/dist/schemas/model.snap-query.v1.schema.json +24 -0
  13. package/dist/schemas/model.snap-result.v1.schema.json +33 -0
  14. package/dist/schemas/model.snapshot.v1.schema.json +136 -0
  15. package/dist/schemas/revit.model.v1.schema.json +24 -0
  16. package/dist/schemas/steel.model.v2.schema.json +45 -6
  17. package/dist/skills/floless-app-approval/SKILL.md +19 -5
  18. package/dist/skills/floless-app-bridge/SKILL.md +19 -6
  19. package/dist/skills/floless-app-knowledge/SKILL.md +22 -1
  20. package/dist/skills/floless-app-new-workflow/SKILL.md +31 -27
  21. package/dist/skills/floless-app-new-workflow/references/build-and-verify.md +13 -12
  22. package/dist/skills/floless-app-onboarding/SKILL.md +3 -3
  23. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +16 -9
  24. package/dist/skills/floless-app-steel-model/SKILL.md +11 -2
  25. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +95 -0
  26. package/dist/skills/floless-app-steel-takeoff/SKILL.md +146 -21
  27. package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +19 -0
  28. package/dist/skills/floless-app-tweak-contract/SKILL.md +42 -8
  29. package/dist/skills/floless-app-vectorize/SKILL.md +19 -6
  30. package/dist/skills/floless-app-workflows/SKILL.md +30 -3
  31. package/dist/skills/floless-app-workflows/references/workspace-data.md +77 -4
  32. package/dist/templates/floless-workspace-model-report.flo +77 -0
  33. package/dist/templates/revit-model.flo +111 -0
  34. package/dist/web/app.css +415 -177
  35. package/dist/web/app.js +302 -51
  36. package/dist/web/aware.js +1430 -1040
  37. package/dist/web/chat.css +692 -0
  38. package/dist/web/chat.js +2651 -0
  39. package/dist/web/commands-revit.js +42 -0
  40. package/dist/web/commands-shell.js +536 -70
  41. package/dist/web/commands-steel.js +344 -146
  42. package/dist/web/commands.js +1 -1
  43. package/dist/web/index.html +283 -77
  44. package/dist/web/instructor.js +217 -36
  45. package/dist/web/left-pane.js +636 -0
  46. package/dist/web/model-artifact-loader.js +75 -0
  47. package/dist/web/model-authoring-gestures.js +141 -0
  48. package/dist/web/model-cad-tools.js +20 -0
  49. package/dist/web/model-clip-gesture.js +148 -0
  50. package/dist/web/model-clip-list.js +156 -0
  51. package/dist/web/model-clip-session.js +274 -0
  52. package/dist/web/model-clip-three-overlay.js +295 -0
  53. package/dist/web/model-clip-three-preview.js +59 -0
  54. package/dist/web/model-editor-contract.js +519 -0
  55. package/dist/web/model-editor-revit-adapter.js +139 -0
  56. package/dist/web/model-editor-shell.js +271 -0
  57. package/dist/web/model-editor-state-recovery.js +44 -0
  58. package/dist/web/model-editor-steel-adapter.js +410 -0
  59. package/dist/web/model-editor.css +268 -0
  60. package/dist/web/model-frame.js +192 -0
  61. package/dist/web/model-inspector.js +128 -0
  62. package/dist/web/model-measure.js +390 -0
  63. package/dist/web/model-navigation-controls.js +246 -0
  64. package/dist/web/model-orientation-overlay.js +217 -0
  65. package/dist/web/model-panel-bridge.js +230 -0
  66. package/dist/web/model-pointer-dock.js +164 -0
  67. package/dist/web/model-revit-module.js +83 -0
  68. package/dist/web/model-selection-coordinator.js +151 -0
  69. package/dist/web/model-selection-tools.js +290 -0
  70. package/dist/web/model-snap-contract.js +267 -0
  71. package/dist/web/model-snapping.js +497 -0
  72. package/dist/web/model-spatial-panel.js +294 -0
  73. package/dist/web/model-spatial-tools.js +249 -0
  74. package/dist/web/model-tree.js +47 -0
  75. package/dist/web/model-viewport-lighting.js +166 -0
  76. package/dist/web/model-viewport-revit-adapter.js +1224 -0
  77. package/dist/web/model-viewport-state.js +505 -0
  78. package/dist/web/model-viewport-steel-adapter.js +150 -0
  79. package/dist/web/model-viewport-toolbar.js +516 -0
  80. package/dist/web/model-viewport.js +717 -0
  81. package/dist/web/panels.js +8 -15
  82. package/dist/web/renderers.js +3 -0
  83. package/dist/web/revit-editor.css +35 -0
  84. package/dist/web/revit-editor.html +74 -0
  85. package/dist/web/revit-editor.js +845 -0
  86. package/dist/web/steel-3d-core.js +16 -44
  87. package/dist/web/steel-3d-view.js +1384 -633
  88. package/dist/web/steel-canvas-guidance.js +3 -1
  89. package/dist/web/steel-editor.html +2121 -1253
  90. package/dist/web/steel-filter.html +5 -1
  91. package/dist/web/steel-model-v2-commands.js +72 -1
  92. package/dist/web/steel-split-view.js +5 -39
  93. package/dist/web/steel-view-generation.js +107 -17
  94. package/dist/web/vector-3d.html +12 -0
  95. package/dist/web/workspaces.js +2190 -277
  96. package/distribution-profile-active.mjs +2 -0
  97. package/distribution-profile-production.mjs +47 -0
  98. package/distribution-profile-shared.mjs +8 -0
  99. package/distribution-profile.mjs +18 -0
  100. package/distribution-resource-inventory.mjs +81 -0
  101. package/launch.mjs +18 -10
  102. package/log.mjs +2 -1
  103. package/managed-runtime-policy.mjs +104 -0
  104. package/model-reader-policy-active.mjs +7 -0
  105. package/network-policy-active.mjs +6 -0
  106. package/package.json +17 -2
  107. package/post-update-marker.mjs +3 -1
  108. package/rvt-production-uat-authority.mjs +60 -0
  109. package/teardown.mjs +4 -3
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.continuation.v1",
4
+ "title": "floless.workspace-model-continuation/v1 signed payload",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "keyId", "chainId", "accountId", "projectUuid", "lineageRoot", "approvalVersion", "approvedRevisionId", "approvedHandleDigest", "manifestDigest", "modelId", "modelRevisionId", "selectorHash", "queryHash", "cursor", "remainingRows", "remainingBytes", "issuedAt", "expiresAt"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "floless.workspace-model-continuation/v1" }, "keyId": { "type": "string", "minLength": 1 }, "chainId": { "type": "string", "minLength": 1 },
10
+ "accountId": { "type": "string", "format": "uuid" }, "projectUuid": { "type": "string", "format": "uuid" }, "lineageRoot": { "const": "revit-model" },
11
+ "approvalVersion": { "type": "integer", "minimum": 1 }, "approvedRevisionId": { "$ref": "#/$defs/hash" }, "approvedHandleDigest": { "$ref": "#/$defs/hash" },
12
+ "manifestDigest": { "$ref": "#/$defs/hash" }, "modelId": { "type": "string", "minLength": 1 }, "modelRevisionId": { "$ref": "#/$defs/hash" },
13
+ "selectorHash": { "$ref": "#/$defs/hash" }, "queryHash": { "$ref": "#/$defs/hash" },
14
+ "cursor": { "type": "object", "required": ["artifactDigest", "rowOffset"], "additionalProperties": false, "properties": { "artifactDigest": { "$ref": "#/$defs/hash" }, "rowOffset": { "type": "integer", "minimum": 0 } } },
15
+ "remainingRows": { "type": "integer", "minimum": 0, "maximum": 1000 }, "remainingBytes": { "type": "integer", "minimum": 0, "maximum": 4194304 },
16
+ "issuedAt": { "type": "integer", "minimum": 0 }, "expiresAt": { "type": "integer", "minimum": 0 }
17
+ },
18
+ "$defs": { "hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" } }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.continuation.v2",
4
+ "title": "floless.workspace-model-continuation/v2 signed payload",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "keyId", "chainId", "accountId", "projectUuid", "lineageRoot", "approvalVersion", "approvedRevisionId", "approvedHandleDigest", "manifestDigest", "modelId", "modelRevisionId", "selectorHash", "queryHash", "cursor", "remainingRows", "remainingBytes", "issuedAt", "expiresAt"],
8
+ "properties": {
9
+ "schemaVersion": { "const": "floless.workspace-model-continuation/v2" }, "keyId": { "type": "string", "minLength": 1 }, "chainId": { "type": "string", "minLength": 1 },
10
+ "accountId": { "type": "string", "format": "uuid" }, "projectUuid": { "type": "string", "format": "uuid" }, "lineageRoot": { "const": "revit-model" },
11
+ "approvalVersion": { "type": "integer", "minimum": 1 }, "approvedRevisionId": { "$ref": "#/$defs/hash" }, "approvedHandleDigest": { "$ref": "#/$defs/hash" },
12
+ "manifestDigest": { "$ref": "#/$defs/hash" }, "modelId": { "type": "string", "minLength": 1 }, "modelRevisionId": { "$ref": "#/$defs/hash" },
13
+ "selectorHash": { "$ref": "#/$defs/hash" }, "queryHash": { "$ref": "#/$defs/hash" },
14
+ "cursor": { "type": "object", "required": ["artifactDigest", "rowOffset"], "additionalProperties": false, "properties": { "artifactDigest": { "$ref": "#/$defs/hash" }, "rowOffset": { "type": "integer", "minimum": 0 } } },
15
+ "remainingRows": { "type": "integer", "minimum": 0, "maximum": 1000 }, "remainingBytes": { "type": "integer", "minimum": 0, "maximum": 4194304 },
16
+ "issuedAt": { "type": "integer", "minimum": 0 }, "expiresAt": { "type": "integer", "minimum": 0 }
17
+ },
18
+ "$defs": { "hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" } }
19
+ }
@@ -0,0 +1,95 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.query-response.v1",
4
+ "title": "floless.workspace-model-query-response/v1",
5
+ "type": "object",
6
+ "required": ["ok", "schemaVersion", "correlationId", "approvalVersion", "modelId", "approvedRevisionId", "modelRevisionId", "query", "matched", "returned", "truncated", "truncationReason", "items", "continuation"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "ok": { "const": true }, "schemaVersion": { "const": "floless.workspace-model-query-response/v1" },
10
+ "correlationId": { "type": "string", "minLength": 1 }, "approvalVersion": { "type": "integer", "minimum": 1 },
11
+ "modelId": { "type": "string", "minLength": 1 }, "approvedRevisionId": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
12
+ "modelRevisionId": { "type": "string", "pattern": "^[0-9a-f]{64}$" }, "query": { "$ref": "https://floless.app/schemas/model.query.v1" },
13
+ "matched": { "type": "integer", "minimum": 0 }, "returned": { "type": "integer", "minimum": 0, "maximum": 200 },
14
+ "truncated": { "type": "boolean" }, "truncationReason": { "enum": ["page-size", "result-budget", "byte-budget", null] },
15
+ "items": { "type": "array", "maxItems": 200, "items": { "$ref": "#/$defs/row" } },
16
+ "continuation": { "type": ["string", "null"], "maxLength": 4096 }
17
+ },
18
+ "allOf": [
19
+ { "if": { "properties": { "truncated": { "const": false } } }, "then": { "properties": { "truncationReason": { "const": null }, "continuation": { "const": null } } } },
20
+ { "if": { "properties": { "truncated": { "const": true } } }, "then": { "properties": { "truncationReason": { "enum": ["page-size", "result-budget", "byte-budget"] } } } },
21
+ { "if": { "properties": { "truncationReason": { "const": "page-size" } } }, "then": { "properties": { "continuation": { "type": "string", "minLength": 1 } } } },
22
+ { "if": { "properties": { "truncationReason": { "enum": ["result-budget", "byte-budget"] } } }, "then": { "properties": { "continuation": { "const": null } } } }
23
+ ],
24
+ "$defs": {
25
+ "int64": { "type": "string", "pattern": "^(?:0|-?[1-9][0-9]*)$", "maxLength": 20 },
26
+ "positiveInt64": { "type": "string", "pattern": "^[1-9][0-9]*$", "maxLength": 19 },
27
+ "point": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number" } },
28
+ "geometry": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object", "required": ["nodeName", "parts"], "additionalProperties": false,
32
+ "properties": {
33
+ "nodeName": { "type": "string" },
34
+ "parts": { "type": "array", "items": { "type": "integer", "minimum": 0 } }
35
+ }
36
+ }
37
+ },
38
+ "bounds": {
39
+ "type": ["object", "null"],
40
+ "required": ["min", "max"], "additionalProperties": false,
41
+ "properties": { "min": { "$ref": "#/$defs/point" }, "max": { "$ref": "#/$defs/point" } }
42
+ },
43
+ "row": {
44
+ "anyOf": [
45
+ { "$ref": "#/$defs/entityRow" }, { "$ref": "#/$defs/propertyRow" }, { "$ref": "#/$defs/relationshipRow" }
46
+ ]
47
+ },
48
+ "entityRow": {
49
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
50
+ "properties": {
51
+ "modelId": { "type": "string", "minLength": 1 },
52
+ "id": { "type": "string" },
53
+ "sourceElementId": { "$ref": "#/$defs/positiveInt64" },
54
+ "ifcGuid": { "type": ["string", "null"] },
55
+ "revitClass": { "type": ["string", "null"] },
56
+ "category": { "type": ["string", "null"] },
57
+ "family": { "type": ["string", "null"] },
58
+ "typeId": { "type": ["string", "null"] },
59
+ "typeName": { "type": ["string", "null"] },
60
+ "levelId": { "type": ["string", "null"] },
61
+ "levelName": { "type": ["string", "null"] },
62
+ "geometry": { "$ref": "#/$defs/geometry" },
63
+ "bounds": { "$ref": "#/$defs/bounds" }
64
+ }
65
+ },
66
+ "propertyRow": {
67
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
68
+ "properties": {
69
+ "modelId": { "type": "string", "minLength": 1 },
70
+ "entityId": { "type": "string" },
71
+ "groupId": { "type": "string" },
72
+ "groupName": { "type": "string" },
73
+ "groupOrdinal": { "type": "integer", "minimum": 0 },
74
+ "parameterId": { "type": "string" },
75
+ "parameterOrdinal": { "type": "integer", "minimum": 0 },
76
+ "name": { "type": "string" },
77
+ "unit": { "type": ["string", "null"] },
78
+ "readable": { "type": "boolean" },
79
+ "storageType": { "enum": ["none", "boolean", "integer", "element-id", "double", "string"] },
80
+ "value": { "type": ["string", "number", "boolean", "null"] }
81
+ }
82
+ },
83
+ "relationshipRow": {
84
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
85
+ "properties": {
86
+ "modelId": { "type": "string", "minLength": 1 },
87
+ "id": { "type": "string" },
88
+ "kind": { "enum": ["contains", "hosts", "depends-on", "provider-explicit"] },
89
+ "from": { "type": "string" },
90
+ "to": { "type": "string" },
91
+ "providerRelationKind": { "type": "string" }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.query-response.v2",
4
+ "title": "floless.workspace-model-query-response/v2",
5
+ "type": "object",
6
+ "required": ["ok", "schemaVersion", "correlationId", "approvalVersion", "modelId", "approvedRevisionId", "modelRevisionId", "query", "matched", "returned", "truncated", "truncationReason", "items", "continuation"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "ok": { "const": true }, "schemaVersion": { "const": "floless.workspace-model-query-response/v2" },
10
+ "correlationId": { "type": "string", "minLength": 1 }, "approvalVersion": { "type": "integer", "minimum": 1 },
11
+ "modelId": { "type": "string", "minLength": 1 }, "approvedRevisionId": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
12
+ "modelRevisionId": { "type": "string", "pattern": "^[0-9a-f]{64}$" }, "query": { "$ref": "https://floless.app/schemas/model.query.v2" },
13
+ "matched": { "type": "integer", "minimum": 0 }, "returned": { "type": "integer", "minimum": 0, "maximum": 200 },
14
+ "truncated": { "type": "boolean" }, "truncationReason": { "enum": ["page-size", "result-budget", "byte-budget", null] },
15
+ "items": { "type": "array", "maxItems": 200, "items": { "$ref": "#/$defs/row" } },
16
+ "continuation": { "type": ["string", "null"], "maxLength": 4096 }
17
+ },
18
+ "allOf": [
19
+ { "if": { "properties": { "truncated": { "const": false } } }, "then": { "properties": { "truncationReason": { "const": null }, "continuation": { "const": null } } } },
20
+ { "if": { "properties": { "truncated": { "const": true } } }, "then": { "properties": { "truncationReason": { "enum": ["page-size", "result-budget", "byte-budget"] } } } },
21
+ { "if": { "properties": { "truncationReason": { "const": "page-size" } } }, "then": { "properties": { "continuation": { "type": "string", "minLength": 1 } } } },
22
+ { "if": { "properties": { "truncationReason": { "enum": ["result-budget", "byte-budget"] } } }, "then": { "properties": { "continuation": { "const": null } } } }
23
+ ],
24
+ "$defs": {
25
+ "positiveInt64": { "type": "string", "pattern": "^[1-9][0-9]*$", "maxLength": 19 },
26
+ "point": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number" } },
27
+ "geometry": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "object", "required": ["nodeName", "parts"], "additionalProperties": false,
31
+ "properties": {
32
+ "nodeName": { "type": "string" },
33
+ "parts": { "type": "array", "items": { "type": "integer", "minimum": 0 } }
34
+ }
35
+ }
36
+ },
37
+ "bounds": {
38
+ "type": ["object", "null"],
39
+ "required": ["min", "max"], "additionalProperties": false,
40
+ "properties": { "min": { "$ref": "#/$defs/point" }, "max": { "$ref": "#/$defs/point" } }
41
+ },
42
+ "row": {
43
+ "anyOf": [
44
+ { "$ref": "#/$defs/entityRow" }, { "$ref": "#/$defs/propertyRow" }, { "$ref": "#/$defs/relationshipRow" }
45
+ ]
46
+ },
47
+ "entityRow": {
48
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
49
+ "properties": {
50
+ "modelId": { "type": "string", "minLength": 1 }, "id": { "type": "string" },
51
+ "sourceElementId": { "$ref": "#/$defs/positiveInt64" }, "ifcGuid": { "type": ["string", "null"] },
52
+ "revitClass": { "type": ["string", "null"] }, "category": { "type": ["string", "null"] },
53
+ "family": { "type": ["string", "null"] }, "typeId": { "type": ["string", "null"] },
54
+ "typeName": { "type": ["string", "null"] }, "levelId": { "type": ["string", "null"] },
55
+ "levelName": { "type": ["string", "null"] }, "geometry": { "$ref": "#/$defs/geometry" },
56
+ "bounds": { "$ref": "#/$defs/bounds" }
57
+ }
58
+ },
59
+ "propertyRow": {
60
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
61
+ "properties": {
62
+ "modelId": { "type": "string", "minLength": 1 }, "entityId": { "type": "string" },
63
+ "groupId": { "type": "string" }, "groupName": { "type": "string" }, "groupOrdinal": { "type": "integer", "minimum": 0 },
64
+ "parameterId": { "type": "string" }, "parameterOrdinal": { "type": "integer", "minimum": 0 },
65
+ "name": { "type": "string" }, "unit": { "type": ["string", "null"] },
66
+ "valueEncoding": { "enum": ["provider-display", "source-storage"] }, "valueType": { "enum": ["string", "number"] },
67
+ "readable": { "type": "boolean" }, "storageType": { "enum": ["none", "boolean", "integer", "element-id", "double", "string"] },
68
+ "value": { "type": ["string", "number", "boolean", "null"] }
69
+ }
70
+ },
71
+ "relationshipRow": {
72
+ "type": "object", "required": ["modelId"], "additionalProperties": false,
73
+ "properties": {
74
+ "modelId": { "type": "string", "minLength": 1 }, "id": { "type": "string" },
75
+ "kind": { "enum": ["contains", "hosts", "depends-on", "provider-explicit"] },
76
+ "from": { "type": "string" }, "to": { "type": "string" }, "providerRelationKind": { "type": "string" }
77
+ }
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.query.v1",
4
+ "title": "floless.workspace-model-query/v1",
5
+ "oneOf": [
6
+ { "$ref": "#/$defs/entities" },
7
+ { "$ref": "#/$defs/properties" },
8
+ { "$ref": "#/$defs/relationships" }
9
+ ],
10
+ "$defs": {
11
+ "baseFields": {
12
+ "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true,
13
+ "items": { "type": "string", "maxLength": 512 }
14
+ },
15
+ "strings": {
16
+ "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true,
17
+ "items": { "type": "string", "maxLength": 512 }
18
+ },
19
+ "entityWhere": {
20
+ "type": "object", "additionalProperties": false,
21
+ "properties": {
22
+ "entityIds": { "$ref": "#/$defs/strings" }, "levels": { "$ref": "#/$defs/strings" },
23
+ "categories": { "$ref": "#/$defs/strings" }, "families": { "$ref": "#/$defs/strings" },
24
+ "types": { "$ref": "#/$defs/strings" },
25
+ "hasProperties": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/propertyPredicate" } },
26
+ "hasRelationships": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/relationshipPredicate" } }
27
+ }
28
+ },
29
+ "propertyPredicate": {
30
+ "type": "object", "required": ["name"], "additionalProperties": false,
31
+ "properties": {
32
+ "name": { "type": "string", "maxLength": 512 }, "groupName": { "type": ["string", "null"], "maxLength": 512 },
33
+ "unit": { "type": ["string", "null"], "maxLength": 512 }, "readable": { "type": "boolean" },
34
+ "storageType": { "enum": ["none", "boolean", "integer", "element-id", "double", "string", null] },
35
+ "value": { "type": ["string", "number", "boolean", "null"] }
36
+ }
37
+ },
38
+ "relationshipPredicate": {
39
+ "type": "object", "required": ["kind", "direction", "entityId"], "additionalProperties": false,
40
+ "properties": {
41
+ "kind": { "enum": ["contains", "hosts", "depends-on", "provider-explicit"] },
42
+ "providerRelationKind": { "type": "string", "maxLength": 512 },
43
+ "direction": { "enum": ["from", "to", "either"] }, "entityId": { "type": "string", "maxLength": 512 }
44
+ }
45
+ },
46
+ "entities": {
47
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
48
+ "properties": {
49
+ "schemaVersion": { "const": "floless.workspace-model-query/v1" }, "select": { "const": "entities" },
50
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["id", "sourceElementId", "ifcGuid", "revitClass", "category", "family", "typeId", "typeName", "levelId", "levelName", "geometry", "bounds"] } },
51
+ "where": { "$ref": "#/$defs/entityWhere" }
52
+ }
53
+ },
54
+ "properties": {
55
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
56
+ "properties": {
57
+ "schemaVersion": { "const": "floless.workspace-model-query/v1" }, "select": { "const": "properties" },
58
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["entityId", "groupId", "groupName", "groupOrdinal", "parameterId", "parameterOrdinal", "name", "unit", "readable", "storageType", "value"] } },
59
+ "where": { "type": "object", "additionalProperties": false, "properties": {
60
+ "entityIds": { "$ref": "#/$defs/strings" }, "levels": { "$ref": "#/$defs/strings" },
61
+ "categories": { "$ref": "#/$defs/strings" }, "families": { "$ref": "#/$defs/strings" }, "types": { "$ref": "#/$defs/strings" },
62
+ "names": { "$ref": "#/$defs/strings" }, "groups": { "$ref": "#/$defs/strings" }, "units": { "$ref": "#/$defs/strings" },
63
+ "readable": { "type": "boolean" }, "storageTypes": {
64
+ "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true,
65
+ "items": { "enum": ["none", "boolean", "integer", "element-id", "double", "string"] }
66
+ },
67
+ "values": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "type": ["string", "number", "boolean", "null"] } }
68
+ } }
69
+ }
70
+ },
71
+ "relationships": {
72
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
73
+ "properties": {
74
+ "schemaVersion": { "const": "floless.workspace-model-query/v1" }, "select": { "const": "relationships" },
75
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["id", "kind", "from", "to", "providerRelationKind"] } },
76
+ "where": { "type": "object", "additionalProperties": false, "properties": {
77
+ "kinds": { "$ref": "#/$defs/strings" }, "providerKinds": { "$ref": "#/$defs/strings" },
78
+ "entityId": { "type": "string", "maxLength": 512 }, "direction": { "enum": ["from", "to", "either"] },
79
+ "endpoint": { "type": "object", "additionalProperties": false, "properties": {
80
+ "levels": { "$ref": "#/$defs/strings" }, "categories": { "$ref": "#/$defs/strings" },
81
+ "families": { "$ref": "#/$defs/strings" }, "types": { "$ref": "#/$defs/strings" }
82
+ } }
83
+ } }
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.query.v2",
4
+ "title": "floless.workspace-model-query/v2",
5
+ "oneOf": [
6
+ { "$ref": "#/$defs/entities" },
7
+ { "$ref": "#/$defs/properties" },
8
+ { "$ref": "#/$defs/relationships" }
9
+ ],
10
+ "$defs": {
11
+ "baseFields": {
12
+ "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true,
13
+ "items": { "type": "string", "maxLength": 512 }
14
+ },
15
+ "strings": {
16
+ "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true,
17
+ "items": { "type": "string", "maxLength": 512 }
18
+ },
19
+ "entityWhere": {
20
+ "type": "object", "additionalProperties": false,
21
+ "properties": {
22
+ "entityIds": { "$ref": "#/$defs/strings" }, "levels": { "$ref": "#/$defs/strings" },
23
+ "categories": { "$ref": "#/$defs/strings" }, "families": { "$ref": "#/$defs/strings" },
24
+ "types": { "$ref": "#/$defs/strings" },
25
+ "hasProperties": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/propertyPredicate" } },
26
+ "hasRelationships": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/relationshipPredicate" } }
27
+ }
28
+ },
29
+ "propertyPredicate": {
30
+ "type": "object", "required": ["name"], "additionalProperties": false,
31
+ "properties": {
32
+ "name": { "type": "string", "maxLength": 512 }, "groupName": { "type": ["string", "null"], "maxLength": 512 },
33
+ "unit": { "type": ["string", "null"], "maxLength": 512 }, "readable": { "type": "boolean" },
34
+ "storageType": { "enum": ["none", "boolean", "integer", "element-id", "double", "string", null] },
35
+ "value": { "type": ["string", "number", "boolean", "null"] }
36
+ }
37
+ },
38
+ "relationshipPredicate": {
39
+ "type": "object", "required": ["kind", "direction", "entityId"], "additionalProperties": false,
40
+ "properties": {
41
+ "kind": { "enum": ["contains", "hosts", "depends-on", "provider-explicit"] },
42
+ "providerRelationKind": { "type": "string", "maxLength": 512 },
43
+ "direction": { "enum": ["from", "to", "either"] }, "entityId": { "type": "string", "maxLength": 512 }
44
+ }
45
+ },
46
+ "entities": {
47
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
48
+ "properties": {
49
+ "schemaVersion": { "const": "floless.workspace-model-query/v2" }, "select": { "const": "entities" },
50
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["id", "sourceElementId", "ifcGuid", "revitClass", "category", "family", "typeId", "typeName", "levelId", "levelName", "geometry", "bounds"] } },
51
+ "where": { "$ref": "#/$defs/entityWhere" }
52
+ }
53
+ },
54
+ "properties": {
55
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
56
+ "properties": {
57
+ "schemaVersion": { "const": "floless.workspace-model-query/v2" }, "select": { "const": "properties" },
58
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["entityId", "groupId", "groupName", "groupOrdinal", "parameterId", "parameterOrdinal", "name", "unit", "valueEncoding", "valueType", "readable", "storageType", "value"] } },
59
+ "where": { "type": "object", "additionalProperties": false, "properties": {
60
+ "entityIds": { "$ref": "#/$defs/strings" }, "levels": { "$ref": "#/$defs/strings" },
61
+ "categories": { "$ref": "#/$defs/strings" }, "families": { "$ref": "#/$defs/strings" }, "types": { "$ref": "#/$defs/strings" },
62
+ "names": { "$ref": "#/$defs/strings" }, "groups": { "$ref": "#/$defs/strings" }, "units": { "$ref": "#/$defs/strings" },
63
+ "readable": { "type": "boolean" }, "storageTypes": {
64
+ "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true,
65
+ "items": { "enum": ["none", "boolean", "integer", "element-id", "double", "string"] }
66
+ },
67
+ "values": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "type": ["string", "number", "boolean", "null"] } }
68
+ } }
69
+ }
70
+ },
71
+ "relationships": {
72
+ "type": "object", "required": ["schemaVersion", "select", "fields"], "additionalProperties": false,
73
+ "properties": {
74
+ "schemaVersion": { "const": "floless.workspace-model-query/v2" }, "select": { "const": "relationships" },
75
+ "fields": { "allOf": [{ "$ref": "#/$defs/baseFields" }], "items": { "enum": ["id", "kind", "from", "to", "providerRelationKind"] } },
76
+ "where": { "type": "object", "additionalProperties": false, "properties": {
77
+ "kinds": { "$ref": "#/$defs/strings" }, "providerKinds": { "$ref": "#/$defs/strings" },
78
+ "entityId": { "type": "string", "maxLength": 512 }, "direction": { "enum": ["from", "to", "either"] },
79
+ "endpoint": { "type": "object", "additionalProperties": false, "properties": {
80
+ "levels": { "$ref": "#/$defs/strings" }, "categories": { "$ref": "#/$defs/strings" },
81
+ "families": { "$ref": "#/$defs/strings" }, "types": { "$ref": "#/$defs/strings" }
82
+ } }
83
+ } }
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.snap-candidate.v1",
4
+ "title": "floless.model-snap-candidate/v1",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "generation", "candidateId", "kind", "providerRef", "feature", "primitive"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "schemaVersion": { "const": "floless.model-snap-candidate/v1" },
10
+ "generation": { "$ref": "#/$defs/generation" },
11
+ "candidateId": { "type": "string", "minLength": 1, "maxLength": 256 },
12
+ "kind": { "$ref": "#/$defs/kind" },
13
+ "providerRef": { "$ref": "#/$defs/providerRef" },
14
+ "feature": { "$ref": "#/$defs/feature" },
15
+ "primitive": { "$ref": "#/$defs/primitive" }
16
+ },
17
+ "$defs": {
18
+ "kind": { "enum": ["origin", "semantic-endpoint", "semantic-intersection", "semantic-grid-intersection", "semantic-level", "semantic-midpoint", "semantic-center", "semantic-axis", "mesh-vertex", "mesh-edge-midpoint", "mesh-edge-nearest", "surface", "free-point"] },
19
+ "generation": { "type": "object", "required": ["projectUuid", "authority", "revisionId", "sourceDigest", "epoch"], "additionalProperties": false, "properties": { "projectUuid": { "type": "string", "minLength": 1, "maxLength": 128 }, "authority": { "type": "string", "minLength": 1, "maxLength": 64 }, "revisionId": { "type": "string", "minLength": 1, "maxLength": 256 }, "sourceDigest": { "$ref": "#/$defs/digest" }, "epoch": { "type": "integer", "minimum": 0, "maximum": 4294967295 } } },
20
+ "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
21
+ "scalar": { "type": "number", "minimum": -1000000000000, "maximum": 1000000000000 },
22
+ "unitScalar": { "type": "number", "minimum": -1, "maximum": 1 },
23
+ "point": { "type": "array", "minItems": 3, "maxItems": 3, "prefixItems": [{ "$ref": "#/$defs/scalar" }, { "$ref": "#/$defs/scalar" }, { "$ref": "#/$defs/scalar" }], "items": false },
24
+ "unitVector": { "type": "array", "minItems": 3, "maxItems": 3, "prefixItems": [{ "$ref": "#/$defs/unitScalar" }, { "$ref": "#/$defs/unitScalar" }, { "$ref": "#/$defs/unitScalar" }], "items": false },
25
+ "index": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
26
+ "indexPair": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "$ref": "#/$defs/index" }, { "$ref": "#/$defs/index" }], "items": false },
27
+ "steelRef": { "type": "object", "required": ["type", "generation", "domainId"], "additionalProperties": false, "properties": { "type": { "const": "steel-feature" }, "generation": { "$ref": "#/$defs/generation" }, "domainId": { "type": "string", "minLength": 1, "maxLength": 512 } } },
28
+ "semanticRef": { "type": "object", "required": ["type", "generation", "receiptDigest", "stableFeatureId"], "additionalProperties": false, "properties": { "type": { "const": "signed-semantic-feature" }, "generation": { "$ref": "#/$defs/generation" }, "receiptDigest": { "$ref": "#/$defs/digest" }, "stableFeatureId": { "type": "string", "minLength": 1, "maxLength": 512 } } },
29
+ "sessionRef": { "type": "object", "required": ["type", "generation", "opaqueId"], "additionalProperties": false, "properties": { "type": { "const": "session" }, "generation": { "$ref": "#/$defs/generation" }, "opaqueId": { "type": "string", "minLength": 1, "maxLength": 512 } } },
30
+ "meshRef": { "type": "object", "required": ["type", "generation", "manifestRoot", "tileSha256", "providerEntityId", "nodeIndexPath", "primitiveIndex", "triangleOrdinal", "sourceIndices", "featureSchemaVersion", "featureSignature"], "additionalProperties": false, "properties": { "type": { "const": "revit-mesh" }, "generation": { "$ref": "#/$defs/generation" }, "manifestRoot": { "$ref": "#/$defs/digest" }, "tileSha256": { "$ref": "#/$defs/digest" }, "providerEntityId": { "type": "string", "minLength": 1, "maxLength": 512 }, "nodeIndexPath": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/index" } }, "primitiveIndex": { "$ref": "#/$defs/index" }, "triangleOrdinal": { "$ref": "#/$defs/index" }, "sourceIndices": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/index" } }, "featureSchemaVersion": { "type": "string", "minLength": 1, "maxLength": 128 }, "featureSignature": { "$ref": "#/$defs/digest" } } },
31
+ "providerRef": { "oneOf": [{ "$ref": "#/$defs/steelRef" }, { "$ref": "#/$defs/meshRef" }, { "$ref": "#/$defs/semanticRef" }, { "$ref": "#/$defs/sessionRef" }] },
32
+ "sourceVertex": { "type": "object", "required": ["type", "featureOrdinal"], "additionalProperties": false, "properties": { "type": { "const": "source-vertex" }, "featureOrdinal": { "$ref": "#/$defs/index" } } },
33
+ "triangleCorner": { "type": "object", "required": ["type", "triangleOrdinal", "featureOrdinal"], "additionalProperties": false, "properties": { "type": { "const": "triangle-corner" }, "triangleOrdinal": { "$ref": "#/$defs/index" }, "featureOrdinal": { "type": "integer", "minimum": 0, "maximum": 2 } } },
34
+ "sourceEdge": { "type": "object", "required": ["type", "sourceIndexPair"], "additionalProperties": false, "properties": { "type": { "const": "source-edge" }, "sourceIndexPair": { "$ref": "#/$defs/indexPair" } } },
35
+ "triangleEdge": { "type": "object", "required": ["type", "triangleOrdinal", "featureOrdinal"], "additionalProperties": false, "properties": { "type": { "const": "triangle-edge" }, "triangleOrdinal": { "$ref": "#/$defs/index" }, "featureOrdinal": { "type": "integer", "minimum": 0, "maximum": 2 } } },
36
+ "surfaceFeature": { "type": "object", "required": ["type", "triangleOrdinal"], "additionalProperties": false, "properties": { "type": { "const": "surface" }, "triangleOrdinal": { "$ref": "#/$defs/index" } } },
37
+ "semanticFeature": { "type": "object", "required": ["type", "stableFeatureId"], "additionalProperties": false, "properties": { "type": { "const": "semantic" }, "stableFeatureId": { "type": "string", "minLength": 1, "maxLength": 512 } } },
38
+ "feature": { "oneOf": [{ "$ref": "#/$defs/sourceVertex" }, { "$ref": "#/$defs/triangleCorner" }, { "$ref": "#/$defs/sourceEdge" }, { "$ref": "#/$defs/triangleEdge" }, { "$ref": "#/$defs/surfaceFeature" }, { "$ref": "#/$defs/semanticFeature" }] },
39
+ "pointPrimitive": { "type": "object", "required": ["type", "pointMm"], "additionalProperties": false, "properties": { "type": { "const": "point" }, "pointMm": { "$ref": "#/$defs/point" } } },
40
+ "segmentPrimitive": { "type": "object", "required": ["type", "startMm", "endMm"], "additionalProperties": false, "properties": { "type": { "const": "segment" }, "startMm": { "$ref": "#/$defs/point" }, "endMm": { "$ref": "#/$defs/point" } } },
41
+ "linePrimitive": { "type": "object", "required": ["type", "originMm", "direction"], "additionalProperties": false, "properties": { "type": { "const": "line" }, "originMm": { "$ref": "#/$defs/point" }, "direction": { "$ref": "#/$defs/unitVector" } } },
42
+ "arcPrimitive": { "type": "object", "required": ["type", "centerMm", "normal", "radiusMm", "startDirection", "sweepRadians"], "additionalProperties": false, "properties": { "type": { "const": "arc" }, "centerMm": { "$ref": "#/$defs/point" }, "normal": { "$ref": "#/$defs/unitVector" }, "radiusMm": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000000 }, "startDirection": { "$ref": "#/$defs/unitVector" }, "sweepRadians": { "type": "number", "minimum": -6.283185307179586, "maximum": 6.283185307179586, "not": { "const": 0 } } } },
43
+ "circlePrimitive": { "type": "object", "required": ["type", "centerMm", "normal", "radiusMm"], "additionalProperties": false, "properties": { "type": { "const": "circle" }, "centerMm": { "$ref": "#/$defs/point" }, "normal": { "$ref": "#/$defs/unitVector" }, "radiusMm": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000000 } } },
44
+ "planePrimitive": { "type": "object", "required": ["type", "originMm", "normal"], "additionalProperties": false, "properties": { "type": { "const": "plane" }, "originMm": { "$ref": "#/$defs/point" }, "normal": { "$ref": "#/$defs/unitVector" } } },
45
+ "trianglePrimitive": { "type": "object", "required": ["type", "verticesMm", "sourceIndices", "triangleOrdinal", "barycentricHex", "fallbackPointMm"], "additionalProperties": false, "properties": { "type": { "const": "triangle" }, "verticesMm": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/point" } }, "sourceIndices": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/index" } }, "triangleOrdinal": { "$ref": "#/$defs/index" }, "barycentricHex": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "string", "pattern": "^[0-9A-F]{16}$" } }, "fallbackPointMm": { "$ref": "#/$defs/point" } } },
46
+ "primitive": { "oneOf": [{ "$ref": "#/$defs/pointPrimitive" }, { "$ref": "#/$defs/segmentPrimitive" }, { "$ref": "#/$defs/linePrimitive" }, { "$ref": "#/$defs/arcPrimitive" }, { "$ref": "#/$defs/circlePrimitive" }, { "$ref": "#/$defs/planePrimitive" }, { "$ref": "#/$defs/trianglePrimitive" }] }
47
+ }
48
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.snap-constraint.v1",
4
+ "title": "floless.model-snap-constraint/v1",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "query", "solverKind", "firstAnchorMm", "target", "activeFrame", "workPlane", "extentPolicy"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "schemaVersion": { "const": "floless.model-snap-constraint/v1" },
10
+ "query": { "$ref": "https://floless.app/schemas/model.snap-query.v1" },
11
+ "solverKind": { "enum": ["perpendicular", "parallel", "extension"] },
12
+ "firstAnchorMm": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/point" },
13
+ "target": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/primitive" },
14
+ "activeFrame": { "$ref": "https://floless.app/schemas/model.snap-query.v1#/$defs/frame" },
15
+ "workPlane": { "oneOf": [{ "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/planePrimitive" }, { "type": "null" }] },
16
+ "extentPolicy": { "enum": ["finite", "infinite"] }
17
+ }
18
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.snap-query.v1",
4
+ "title": "floless.model-snap-query/v1",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "generation", "pointerCssPx", "viewportCssPx", "raySource", "ray", "enabledKinds", "mode", "activeFrame"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "schemaVersion": { "const": "floless.model-snap-query/v1" },
10
+ "generation": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/generation" },
11
+ "pointerCssPx": { "$ref": "#/$defs/cssPoint" },
12
+ "viewportCssPx": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "type": "number", "minimum": 1, "maximum": 10000000 }, { "type": "number", "minimum": 1, "maximum": 10000000 }], "items": false },
13
+ "raySource": { "const": "camera-port" },
14
+ "ray": { "type": "object", "required": ["originMm", "direction"], "additionalProperties": false, "properties": { "originMm": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/point" }, "direction": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/unitVector" } } },
15
+ "enabledKinds": { "type": "array", "minItems": 1, "maxItems": 13, "uniqueItems": true, "items": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/kind" } },
16
+ "mode": { "enum": ["3d", "work-plane"] },
17
+ "firstAnchor": { "type": "object", "required": ["pointMm"], "additionalProperties": false, "properties": { "pointMm": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/point" }, "providerRef": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/providerRef" } } },
18
+ "activeFrame": { "$ref": "#/$defs/frame" }
19
+ },
20
+ "$defs": {
21
+ "cssPoint": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "type": "number", "minimum": -10000000, "maximum": 10000000 }, { "type": "number", "minimum": -10000000, "maximum": 10000000 }], "items": false },
22
+ "frame": { "type": "object", "required": ["schemaVersion", "frameId", "originMm", "xAxis", "yAxis", "zAxis"], "additionalProperties": false, "properties": { "schemaVersion": { "const": "floless.model-frame/v1" }, "frameId": { "type": "string", "minLength": 1, "maxLength": 256 }, "originMm": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/point" }, "xAxis": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/unitVector" }, "yAxis": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/unitVector" }, "zAxis": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/unitVector" } } }
23
+ }
24
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.app/schemas/model.snap-result.v1",
4
+ "title": "floless.model-snap-result/v1",
5
+ "oneOf": [{ "$ref": "#/$defs/acquired" }, { "$ref": "#/$defs/refused" }],
6
+ "$defs": {
7
+ "acquired": {
8
+ "type": "object",
9
+ "required": ["schemaVersion", "status", "generation", "candidateId", "pointMm", "projectedCssPx", "distanceCssPx", "kind", "providerRef", "guides"],
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "schemaVersion": { "const": "floless.model-snap-result/v1" }, "status": { "const": "acquired" },
13
+ "generation": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/generation" },
14
+ "candidateId": { "type": "string", "minLength": 1, "maxLength": 256 },
15
+ "pointMm": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/point" },
16
+ "projectedCssPx": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "type": "number", "minimum": -10000000, "maximum": 10000000 }, { "type": "number", "minimum": -10000000, "maximum": 10000000 }], "items": false },
17
+ "distanceCssPx": { "type": "number", "minimum": 0, "maximum": 12 },
18
+ "kind": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/kind" },
19
+ "providerRef": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/providerRef" },
20
+ "guides": { "type": "array", "maxItems": 16, "items": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/primitive" } }
21
+ }
22
+ },
23
+ "refused": {
24
+ "type": "object", "required": ["schemaVersion", "status", "generation", "code", "message"], "additionalProperties": false,
25
+ "properties": {
26
+ "schemaVersion": { "const": "floless.model-snap-result/v1" }, "status": { "const": "refused" },
27
+ "generation": { "$ref": "https://floless.app/schemas/model.snap-candidate.v1#/$defs/generation" },
28
+ "code": { "enum": ["outside-radius", "occluded", "filtered", "work-plane", "degenerate", "near-parallel", "outside-extent", "over-budget", "stale"] },
29
+ "message": { "type": "string", "minLength": 1, "maxLength": 1024 }
30
+ }
31
+ }
32
+ }
33
+ }