@insmind/cli 1.3.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 (153) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/contracts/operations/agent.send/input.schema.json +335 -0
  4. package/contracts/operations/agent.send/output.schema.json +248 -0
  5. package/contracts/operations/auth.status/input.schema.json +7 -0
  6. package/contracts/operations/auth.status/output.schema.json +119 -0
  7. package/contracts/operations/dam.copy/input.schema.json +42 -0
  8. package/contracts/operations/dam.copy/output.schema.json +43 -0
  9. package/contracts/operations/dam.delete/input.schema.json +24 -0
  10. package/contracts/operations/dam.delete/output.schema.json +5 -0
  11. package/contracts/operations/dam.download/input.schema.json +28 -0
  12. package/contracts/operations/dam.download/output.schema.json +51 -0
  13. package/contracts/operations/dam.folder.list/input.schema.json +36 -0
  14. package/contracts/operations/dam.folder.list/output.schema.json +104 -0
  15. package/contracts/operations/dam.get/input.schema.json +16 -0
  16. package/contracts/operations/dam.get/output.schema.json +107 -0
  17. package/contracts/operations/dam.list/input.schema.json +73 -0
  18. package/contracts/operations/dam.list/output.schema.json +145 -0
  19. package/contracts/operations/dam.move/input.schema.json +42 -0
  20. package/contracts/operations/dam.move/output.schema.json +40 -0
  21. package/contracts/operations/dam.rename/input.schema.json +42 -0
  22. package/contracts/operations/dam.rename/output.schema.json +43 -0
  23. package/contracts/operations/dam.repository.list/input.schema.json +7 -0
  24. package/contracts/operations/dam.repository.list/output.schema.json +65 -0
  25. package/contracts/operations/dam.search/input.schema.json +79 -0
  26. package/contracts/operations/dam.search/output.schema.json +145 -0
  27. package/contracts/operations/dam.tag.list/input.schema.json +21 -0
  28. package/contracts/operations/dam.tag.list/output.schema.json +52 -0
  29. package/contracts/operations/dam.upload/input.schema.json +43 -0
  30. package/contracts/operations/dam.upload/output.schema.json +107 -0
  31. package/contracts/operations/editor.apply/input.schema.json +177 -0
  32. package/contracts/operations/editor.apply/output.schema.json +15 -0
  33. package/contracts/operations/editor.connect/input.schema.json +13 -0
  34. package/contracts/operations/editor.connect/output.schema.json +17 -0
  35. package/contracts/operations/editor.disconnect/input.schema.json +7 -0
  36. package/contracts/operations/editor.disconnect/output.schema.json +14 -0
  37. package/contracts/operations/editor.save/input.schema.json +7 -0
  38. package/contracts/operations/editor.save/output.schema.json +23 -0
  39. package/contracts/operations/editor.screenshot/input.schema.json +7 -0
  40. package/contracts/operations/editor.screenshot/output.schema.json +16 -0
  41. package/contracts/operations/editor.snapshot/input.schema.json +7 -0
  42. package/contracts/operations/editor.snapshot/output.schema.json +148 -0
  43. package/contracts/operations/model.get/input.schema.json +16 -0
  44. package/contracts/operations/model.get/output.schema.json +167 -0
  45. package/contracts/operations/model.list/input.schema.json +13 -0
  46. package/contracts/operations/model.list/output.schema.json +97 -0
  47. package/contracts/operations/task.get/input.schema.json +14 -0
  48. package/contracts/operations/task.get/output.schema.json +103 -0
  49. package/contracts/operations/task.list/input.schema.json +18 -0
  50. package/contracts/operations/task.list/output.schema.json +53 -0
  51. package/contracts/operations/tool.call/input.schema.json +31 -0
  52. package/contracts/operations/tool.call/output.schema.json +115 -0
  53. package/contracts/operations/tool.list/input.schema.json +6 -0
  54. package/contracts/operations/tool.list/output.schema.json +40 -0
  55. package/dist/bin/agent-worker.js +41 -0
  56. package/dist/bin/insmind-cli.js +60 -0
  57. package/dist/bin/postinstall.js +69 -0
  58. package/dist/src/bootstrap/create-cli.js +124 -0
  59. package/dist/src/bootstrap/create-runtime.js +451 -0
  60. package/dist/src/bootstrap/run-agent-worker.js +37 -0
  61. package/dist/src/bootstrap/validators.js +169 -0
  62. package/dist/src/cli/action-binding.js +109 -0
  63. package/dist/src/cli/agent-commands.js +75 -0
  64. package/dist/src/cli/auth-commands.js +58 -0
  65. package/dist/src/cli/credits-command.js +23 -0
  66. package/dist/src/cli/dam-commands.js +470 -0
  67. package/dist/src/cli/editor-commands.js +74 -0
  68. package/dist/src/cli/errors.js +208 -0
  69. package/dist/src/cli/model-commands.js +62 -0
  70. package/dist/src/cli/org-commands.js +58 -0
  71. package/dist/src/cli/presenter.js +123 -0
  72. package/dist/src/cli/prompt.js +30 -0
  73. package/dist/src/cli/task-commands.js +48 -0
  74. package/dist/src/cli/tool-commands.js +101 -0
  75. package/dist/src/cli/update-command.js +15 -0
  76. package/dist/src/contracts/schema.js +4 -0
  77. package/dist/src/features/agent/creative-agent-adapter.js +42 -0
  78. package/dist/src/features/agent/creative-protocol.js +421 -0
  79. package/dist/src/features/agent/creative-stream.js +138 -0
  80. package/dist/src/features/agent/filems-resource-auth-key-provider.js +23 -0
  81. package/dist/src/features/agent/resource-authorizer.js +47 -0
  82. package/dist/src/features/agent/result-reader.js +30 -0
  83. package/dist/src/features/agent/use-cases.js +153 -0
  84. package/dist/src/features/auth/access-policy.js +101 -0
  85. package/dist/src/features/auth/credential-store.js +62 -0
  86. package/dist/src/features/auth/sso-service.js +196 -0
  87. package/dist/src/features/auth/state.js +129 -0
  88. package/dist/src/features/auth/use-cases.js +162 -0
  89. package/dist/src/features/credits/use-cases.js +52 -0
  90. package/dist/src/features/dam/asset-projection.js +278 -0
  91. package/dist/src/features/dam/dam-api-adapter.js +562 -0
  92. package/dist/src/features/dam/file-downloader.js +242 -0
  93. package/dist/src/features/dam/object-storage.js +193 -0
  94. package/dist/src/features/dam/operation-executor.js +72 -0
  95. package/dist/src/features/dam/registered-uploader.js +247 -0
  96. package/dist/src/features/dam/repository-catalog.js +127 -0
  97. package/dist/src/features/dam/storage-upload.js +141 -0
  98. package/dist/src/features/dam/transient-uploader.js +17 -0
  99. package/dist/src/features/dam/use-cases.js +470 -0
  100. package/dist/src/features/editor/bridge-client.js +109 -0
  101. package/dist/src/features/editor/bridge-process.js +229 -0
  102. package/dist/src/features/editor/bridge-server.js +337 -0
  103. package/dist/src/features/editor/protocol.js +1 -0
  104. package/dist/src/features/editor/public-url.js +36 -0
  105. package/dist/src/features/editor/session-state.js +78 -0
  106. package/dist/src/features/editor/session.js +213 -0
  107. package/dist/src/features/editor/use-cases.js +88 -0
  108. package/dist/src/features/org/org-service.js +76 -0
  109. package/dist/src/features/org/use-cases.js +163 -0
  110. package/dist/src/features/skill/bundled-skills.js +63 -0
  111. package/dist/src/features/skill/installer.js +271 -0
  112. package/dist/src/features/task/agent-background.js +63 -0
  113. package/dist/src/features/task/store.js +97 -0
  114. package/dist/src/features/task/types.js +1 -0
  115. package/dist/src/features/task/use-cases.js +139 -0
  116. package/dist/src/features/tool/catalog.js +83 -0
  117. package/dist/src/features/tool/dynamic-schema.js +128 -0
  118. package/dist/src/features/tool/mns-catalog-adapter.js +265 -0
  119. package/dist/src/features/tool/tool-api-adapter.js +369 -0
  120. package/dist/src/features/tool/use-cases.js +180 -0
  121. package/dist/src/features/update/latest-version.js +37 -0
  122. package/dist/src/features/update/update-notification.js +271 -0
  123. package/dist/src/features/update/update-service.js +226 -0
  124. package/dist/src/platform/installation-owner.js +81 -0
  125. package/dist/src/platform/json-input.js +67 -0
  126. package/dist/src/platform/local-json-file.js +59 -0
  127. package/dist/src/platform/open-browser.js +8 -0
  128. package/dist/src/platform/redact.js +80 -0
  129. package/dist/src/platform/remote-error-evidence.js +80 -0
  130. package/dist/src/platform/remote-protocol.js +10 -0
  131. package/dist/src/platform/resource-auth-key.js +1 -0
  132. package/dist/src/platform/safe-upload-file.js +146 -0
  133. package/dist/src/platform/signature.js +20 -0
  134. package/dist/src/platform/signed-http-transport.js +144 -0
  135. package/dist/src/platform/task-observer.js +1 -0
  136. package/dist/src/platform/url-safety.js +100 -0
  137. package/dist/src/product/billing.js +47 -0
  138. package/dist/src/product/config.js +85 -0
  139. package/dist/src/product/locale.js +38 -0
  140. package/dist/src/product/text.js +3 -0
  141. package/dist/src/telemetry/invocation.js +156 -0
  142. package/dist/src/telemetry/sls-sink.js +30 -0
  143. package/package.json +53 -0
  144. package/skills/insmind-cli/SKILL.md +15 -0
  145. package/skills/insmind-cli/references/agent.md +34 -0
  146. package/skills/insmind-cli/references/auth.md +8 -0
  147. package/skills/insmind-cli/references/creation.md +40 -0
  148. package/skills/insmind-cli/references/dam.md +51 -0
  149. package/skills/insmind-cli/references/editor.md +184 -0
  150. package/skills/insmind-cli/references/errors.md +29 -0
  151. package/skills/insmind-cli/references/generation-constraints.md +36 -0
  152. package/skills/insmind-cli/references/tool.md +31 -0
  153. package/skills/insmind-cli/references/update.md +11 -0
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamUploadInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "file"
8
+ ],
9
+ "properties": {
10
+ "file": {
11
+ "$ref": "#/$defs/nonblank"
12
+ },
13
+ "repositoryId": {
14
+ "$ref": "#/$defs/nonblank"
15
+ },
16
+ "title": {
17
+ "$ref": "#/$defs/nonblank"
18
+ },
19
+ "folderId": {
20
+ "$ref": "#/$defs/nonblank"
21
+ },
22
+ "tagIds": {
23
+ "type": "array",
24
+ "minItems": 1,
25
+ "items": {
26
+ "$ref": "#/$defs/nonblank"
27
+ }
28
+ },
29
+ "allowSensitivePath": {
30
+ "type": "boolean"
31
+ },
32
+ "waitAnalysis": {
33
+ "type": "boolean"
34
+ }
35
+ },
36
+ "$defs": {
37
+ "nonblank": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "pattern": ".*\\S.*"
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamUploadOutput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "asset_id"
8
+ ],
9
+ "properties": {
10
+ "asset_id": {
11
+ "$ref": "#/$defs/nonblank"
12
+ },
13
+ "title": {
14
+ "$ref": "#/$defs/nonblank"
15
+ },
16
+ "description": {
17
+ "$ref": "#/$defs/nonblank"
18
+ },
19
+ "format": {
20
+ "$ref": "#/$defs/nonblank"
21
+ },
22
+ "type": {
23
+ "$ref": "#/$defs/assetType"
24
+ },
25
+ "size": {
26
+ "type": "integer",
27
+ "minimum": 0
28
+ },
29
+ "url": {
30
+ "type": "string",
31
+ "format": "uri"
32
+ },
33
+ "cover_url": {
34
+ "type": "string",
35
+ "format": "uri"
36
+ },
37
+ "width": {
38
+ "type": "integer",
39
+ "minimum": 0
40
+ },
41
+ "height": {
42
+ "type": "integer",
43
+ "minimum": 0
44
+ },
45
+ "duration": {
46
+ "type": "number",
47
+ "minimum": 0
48
+ },
49
+ "repository_id": {
50
+ "$ref": "#/$defs/nonblank"
51
+ },
52
+ "repository_name": {
53
+ "$ref": "#/$defs/nonblank"
54
+ },
55
+ "folder_id": {
56
+ "$ref": "#/$defs/nonblank"
57
+ },
58
+ "folder_name": {
59
+ "$ref": "#/$defs/nonblank"
60
+ },
61
+ "tag_ids": {
62
+ "type": "array",
63
+ "items": {
64
+ "$ref": "#/$defs/stringOrNumber"
65
+ }
66
+ },
67
+ "analysis_status": {
68
+ "$ref": "#/$defs/stringOrNumber"
69
+ },
70
+ "created_at": {
71
+ "type": "string",
72
+ "format": "date-time"
73
+ },
74
+ "updated_at": {
75
+ "type": "string",
76
+ "format": "date-time"
77
+ }
78
+ },
79
+ "$defs": {
80
+ "nonblank": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "pattern": ".*\\S.*"
84
+ },
85
+ "assetType": {
86
+ "type": "string",
87
+ "enum": [
88
+ "image",
89
+ "video",
90
+ "audio",
91
+ "font",
92
+ "template",
93
+ "file"
94
+ ]
95
+ },
96
+ "stringOrNumber": {
97
+ "oneOf": [
98
+ {
99
+ "$ref": "#/$defs/nonblank"
100
+ },
101
+ {
102
+ "type": "number"
103
+ }
104
+ ]
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,177 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorApplyInput",
4
+ "type": "array",
5
+ "items": {
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/$defs/EditorUpsertAction"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/EditorDeleteAction"
12
+ }
13
+ ]
14
+ },
15
+ "$defs": {
16
+ "EditorUpsertAction": {
17
+ "title": "EditorUpsertAction",
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": [
21
+ "_type",
22
+ "element"
23
+ ],
24
+ "properties": {
25
+ "_type": {
26
+ "type": "string",
27
+ "enum": [
28
+ "create",
29
+ "update"
30
+ ]
31
+ },
32
+ "element": {
33
+ "oneOf": [
34
+ {
35
+ "$ref": "#/$defs/EditorShape"
36
+ },
37
+ {
38
+ "$ref": "#/$defs/EditorConnector"
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ "EditorDeleteAction": {
45
+ "title": "EditorDeleteAction",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "_type",
50
+ "id"
51
+ ],
52
+ "properties": {
53
+ "_type": {
54
+ "const": "delete"
55
+ },
56
+ "id": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "pattern": ".*\\S.*"
60
+ }
61
+ }
62
+ },
63
+ "EditorShape": {
64
+ "title": "EditorShape",
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": [
68
+ "_type",
69
+ "id",
70
+ "shapeType",
71
+ "x",
72
+ "y",
73
+ "w",
74
+ "h",
75
+ "fill",
76
+ "stroke"
77
+ ],
78
+ "properties": {
79
+ "_type": {
80
+ "const": "shape"
81
+ },
82
+ "id": {
83
+ "type": "string",
84
+ "minLength": 1,
85
+ "pattern": ".*\\S.*"
86
+ },
87
+ "shapeType": {
88
+ "type": "string",
89
+ "enum": [
90
+ "rectangle",
91
+ "rounded-rectangle",
92
+ "triangle-up",
93
+ "ellipse",
94
+ "diamond"
95
+ ]
96
+ },
97
+ "x": {
98
+ "type": "number"
99
+ },
100
+ "y": {
101
+ "type": "number"
102
+ },
103
+ "w": {
104
+ "type": "number"
105
+ },
106
+ "h": {
107
+ "type": "number"
108
+ },
109
+ "text": {
110
+ "type": "string"
111
+ },
112
+ "fill": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "pattern": ".*\\S.*"
116
+ },
117
+ "stroke": {
118
+ "anyOf": [
119
+ {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "pattern": ".*\\S.*"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ }
129
+ }
130
+ },
131
+ "EditorConnector": {
132
+ "title": "EditorConnector",
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "required": [
136
+ "_type",
137
+ "id",
138
+ "fromId",
139
+ "toId",
140
+ "lineType",
141
+ "color"
142
+ ],
143
+ "properties": {
144
+ "_type": {
145
+ "const": "connector"
146
+ },
147
+ "id": {
148
+ "type": "string",
149
+ "minLength": 1,
150
+ "pattern": ".*\\S.*"
151
+ },
152
+ "fromId": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "pattern": ".*\\S.*"
156
+ },
157
+ "toId": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "pattern": ".*\\S.*"
161
+ },
162
+ "lineType": {
163
+ "type": "string",
164
+ "enum": [
165
+ "straight",
166
+ "elbowed"
167
+ ]
168
+ },
169
+ "color": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "pattern": ".*\\S.*"
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorApplyResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "appliedCount"
8
+ ],
9
+ "properties": {
10
+ "appliedCount": {
11
+ "type": "integer",
12
+ "minimum": 0
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorConnectInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "target": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "pattern": ".*\\S.*"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorConnectResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "target"
8
+ ],
9
+ "properties": {
10
+ "target": {
11
+ "type": "string",
12
+ "format": "uri",
13
+ "minLength": 1,
14
+ "pattern": ".*\\S.*"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorDisconnectInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {}
7
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorDisconnectResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "disconnected"
8
+ ],
9
+ "properties": {
10
+ "disconnected": {
11
+ "type": "boolean"
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorSaveInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {}
7
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorSaveResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "workId",
8
+ "url"
9
+ ],
10
+ "properties": {
11
+ "workId": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "pattern": ".*\\S.*"
15
+ },
16
+ "url": {
17
+ "type": "string",
18
+ "format": "uri",
19
+ "minLength": 1,
20
+ "pattern": ".*\\S.*"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorScreenshotInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {}
7
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorScreenshotResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "path"
8
+ ],
9
+ "properties": {
10
+ "path": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "pattern": ".*\\S.*"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorSnapshotInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {}
7
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "EditorSnapshotResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "elements",
8
+ "selectedIds"
9
+ ],
10
+ "properties": {
11
+ "elements": {
12
+ "type": "array",
13
+ "items": {
14
+ "oneOf": [
15
+ {
16
+ "$ref": "#/$defs/EditorShape"
17
+ },
18
+ {
19
+ "$ref": "#/$defs/EditorConnector"
20
+ }
21
+ ]
22
+ }
23
+ },
24
+ "selectedIds": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "pattern": ".*\\S.*"
30
+ }
31
+ }
32
+ },
33
+ "$defs": {
34
+ "EditorShape": {
35
+ "title": "EditorShape",
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "_type",
40
+ "id",
41
+ "shapeType",
42
+ "x",
43
+ "y",
44
+ "w",
45
+ "h",
46
+ "fill",
47
+ "stroke"
48
+ ],
49
+ "properties": {
50
+ "_type": {
51
+ "const": "shape"
52
+ },
53
+ "id": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "pattern": ".*\\S.*"
57
+ },
58
+ "shapeType": {
59
+ "type": "string",
60
+ "enum": [
61
+ "rectangle",
62
+ "rounded-rectangle",
63
+ "triangle-up",
64
+ "ellipse",
65
+ "diamond"
66
+ ]
67
+ },
68
+ "x": {
69
+ "type": "number"
70
+ },
71
+ "y": {
72
+ "type": "number"
73
+ },
74
+ "w": {
75
+ "type": "number"
76
+ },
77
+ "h": {
78
+ "type": "number"
79
+ },
80
+ "text": {
81
+ "type": "string"
82
+ },
83
+ "fill": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "pattern": ".*\\S.*"
87
+ },
88
+ "stroke": {
89
+ "anyOf": [
90
+ {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "pattern": ".*\\S.*"
94
+ },
95
+ {
96
+ "type": "null"
97
+ }
98
+ ]
99
+ }
100
+ }
101
+ },
102
+ "EditorConnector": {
103
+ "title": "EditorConnector",
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "_type",
108
+ "id",
109
+ "fromId",
110
+ "toId",
111
+ "lineType",
112
+ "color"
113
+ ],
114
+ "properties": {
115
+ "_type": {
116
+ "const": "connector"
117
+ },
118
+ "id": {
119
+ "type": "string",
120
+ "minLength": 1,
121
+ "pattern": ".*\\S.*"
122
+ },
123
+ "fromId": {
124
+ "type": "string",
125
+ "minLength": 1,
126
+ "pattern": ".*\\S.*"
127
+ },
128
+ "toId": {
129
+ "type": "string",
130
+ "minLength": 1,
131
+ "pattern": ".*\\S.*"
132
+ },
133
+ "lineType": {
134
+ "type": "string",
135
+ "enum": [
136
+ "straight",
137
+ "elbowed"
138
+ ]
139
+ },
140
+ "color": {
141
+ "type": "string",
142
+ "minLength": 1,
143
+ "pattern": ".*\\S.*"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "ModelGetInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "model"
8
+ ],
9
+ "properties": {
10
+ "model": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "pattern": ".*\\S.*"
14
+ }
15
+ }
16
+ }