@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,119 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.insmind.com/operations/auth.status/output.schema.json",
4
+ "title": "AuthStatusResult",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "required": [
9
+ "logged_in",
10
+ "next_steps"
11
+ ],
12
+ "properties": {
13
+ "logged_in": {
14
+ "const": false
15
+ },
16
+ "next_steps": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ }
22
+ },
23
+ "additionalProperties": false
24
+ },
25
+ {
26
+ "type": "object",
27
+ "required": [
28
+ "logged_in",
29
+ "account",
30
+ "organization",
31
+ "credential",
32
+ "next_steps"
33
+ ],
34
+ "properties": {
35
+ "logged_in": {
36
+ "const": true
37
+ },
38
+ "account": {
39
+ "type": "object",
40
+ "required": [
41
+ "user_id",
42
+ "name"
43
+ ],
44
+ "properties": {
45
+ "user_id": {
46
+ "type": [
47
+ "string",
48
+ "null"
49
+ ]
50
+ },
51
+ "name": {
52
+ "type": [
53
+ "string",
54
+ "null"
55
+ ]
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ },
60
+ "organization": {
61
+ "oneOf": [
62
+ {
63
+ "type": "null"
64
+ },
65
+ {
66
+ "type": "object",
67
+ "required": [
68
+ "id",
69
+ "name"
70
+ ],
71
+ "properties": {
72
+ "id": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "name": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ }
83
+ ]
84
+ },
85
+ "credential": {
86
+ "type": "object",
87
+ "required": [
88
+ "expires_at",
89
+ "valid",
90
+ "scope"
91
+ ],
92
+ "properties": {
93
+ "expires_at": {
94
+ "type": "string",
95
+ "format": "date-time"
96
+ },
97
+ "valid": {
98
+ "type": "boolean"
99
+ },
100
+ "scope": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string"
104
+ }
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ },
109
+ "next_steps": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string"
113
+ }
114
+ }
115
+ },
116
+ "additionalProperties": false
117
+ }
118
+ ]
119
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamCopyInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "entry_id",
8
+ "kind",
9
+ "targetFolderId"
10
+ ],
11
+ "properties": {
12
+ "entry_id": {
13
+ "$ref": "#/$defs/nonblank"
14
+ },
15
+ "kind": {
16
+ "$ref": "#/$defs/kind"
17
+ },
18
+ "repositoryId": {
19
+ "$ref": "#/$defs/nonblank"
20
+ },
21
+ "targetRepositoryId": {
22
+ "$ref": "#/$defs/nonblank"
23
+ },
24
+ "targetFolderId": {
25
+ "$ref": "#/$defs/nonblank"
26
+ }
27
+ },
28
+ "$defs": {
29
+ "nonblank": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "pattern": ".*\\S.*"
33
+ },
34
+ "kind": {
35
+ "type": "string",
36
+ "enum": [
37
+ "asset",
38
+ "folder"
39
+ ]
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamCopyResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "source_entry_id",
8
+ "kind",
9
+ "repository_id",
10
+ "folder_id"
11
+ ],
12
+ "properties": {
13
+ "source_entry_id": {
14
+ "$ref": "#/$defs/nonblank"
15
+ },
16
+ "kind": {
17
+ "$ref": "#/$defs/kind"
18
+ },
19
+ "repository_id": {
20
+ "$ref": "#/$defs/nonblank"
21
+ },
22
+ "folder_id": {
23
+ "$ref": "#/$defs/nonblank"
24
+ },
25
+ "copied_entry_id": {
26
+ "$ref": "#/$defs/nonblank"
27
+ }
28
+ },
29
+ "$defs": {
30
+ "nonblank": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "pattern": ".*\\S.*"
34
+ },
35
+ "kind": {
36
+ "type": "string",
37
+ "enum": [
38
+ "asset",
39
+ "folder"
40
+ ]
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamDeleteInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "asset_id"
8
+ ],
9
+ "properties": {
10
+ "asset_id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "pattern": "^(?![Hh][Tt][Tt][Pp][Ss]?://).*\\S.*$"
14
+ },
15
+ "repositoryId": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "pattern": ".*\\S.*"
19
+ },
20
+ "permanent": {
21
+ "type": "boolean"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamDeleteOutput",
4
+ "type": "null"
5
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamDownloadInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "asset_id"
8
+ ],
9
+ "properties": {
10
+ "asset_id": {
11
+ "$ref": "#/$defs/nonblank"
12
+ },
13
+ "repositoryId": {
14
+ "$ref": "#/$defs/nonblank"
15
+ },
16
+ "outputDir": {
17
+ "$ref": "#/$defs/nonblank",
18
+ "default": "."
19
+ }
20
+ },
21
+ "$defs": {
22
+ "nonblank": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "pattern": ".*\\S.*"
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamDownloadResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "asset_id",
8
+ "files"
9
+ ],
10
+ "properties": {
11
+ "asset_id": {
12
+ "$ref": "#/$defs/nonblank"
13
+ },
14
+ "files": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": {
18
+ "$ref": "#/$defs/file"
19
+ }
20
+ }
21
+ },
22
+ "$defs": {
23
+ "nonblank": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "pattern": ".*\\S.*"
27
+ },
28
+ "file": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": [
32
+ "path",
33
+ "bytes",
34
+ "sha256"
35
+ ],
36
+ "properties": {
37
+ "path": {
38
+ "$ref": "#/$defs/nonblank"
39
+ },
40
+ "bytes": {
41
+ "type": "integer",
42
+ "minimum": 0
43
+ },
44
+ "sha256": {
45
+ "type": "string",
46
+ "pattern": "^[a-fA-F0-9]{64}$"
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamFolderListInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "repositoryId": {
8
+ "$ref": "#/$defs/nonblank"
9
+ },
10
+ "parentId": {
11
+ "$ref": "#/$defs/nonblank",
12
+ "default": "0"
13
+ },
14
+ "query": {
15
+ "$ref": "#/$defs/nonblank"
16
+ },
17
+ "page": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "default": 1
21
+ },
22
+ "pageSize": {
23
+ "type": "integer",
24
+ "minimum": 1,
25
+ "maximum": 100,
26
+ "default": 20
27
+ }
28
+ },
29
+ "$defs": {
30
+ "nonblank": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "pattern": ".*\\S.*"
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamFolderListResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "repository_id",
8
+ "parent_id",
9
+ "page",
10
+ "page_size",
11
+ "total",
12
+ "folders"
13
+ ],
14
+ "properties": {
15
+ "repository_id": {
16
+ "$ref": "#/$defs/nonblank"
17
+ },
18
+ "parent_id": {
19
+ "$ref": "#/$defs/nonblank"
20
+ },
21
+ "page": {
22
+ "type": "integer",
23
+ "minimum": 1
24
+ },
25
+ "page_size": {
26
+ "type": "integer",
27
+ "minimum": 1,
28
+ "maximum": 100
29
+ },
30
+ "total": {
31
+ "type": "integer",
32
+ "minimum": 0
33
+ },
34
+ "folders": {
35
+ "type": "array",
36
+ "items": {
37
+ "$ref": "#/$defs/folder"
38
+ }
39
+ }
40
+ },
41
+ "$defs": {
42
+ "nonblank": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "pattern": ".*\\S.*"
46
+ },
47
+ "permission": {
48
+ "type": "string",
49
+ "enum": [
50
+ "OWNER",
51
+ "MANAGE",
52
+ "EDIT",
53
+ "USE",
54
+ "READ"
55
+ ]
56
+ },
57
+ "folder": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "folder_id",
62
+ "title",
63
+ "parent_id",
64
+ "repository_id",
65
+ "child_folder_count",
66
+ "asset_count"
67
+ ],
68
+ "properties": {
69
+ "folder_id": {
70
+ "$ref": "#/$defs/nonblank"
71
+ },
72
+ "title": {
73
+ "$ref": "#/$defs/nonblank"
74
+ },
75
+ "parent_id": {
76
+ "$ref": "#/$defs/nonblank"
77
+ },
78
+ "repository_id": {
79
+ "$ref": "#/$defs/nonblank"
80
+ },
81
+ "permission_code": {
82
+ "$ref": "#/$defs/permission"
83
+ },
84
+ "child_folder_count": {
85
+ "type": "integer",
86
+ "minimum": 0
87
+ },
88
+ "asset_count": {
89
+ "type": "integer",
90
+ "minimum": 0
91
+ },
92
+ "path": {
93
+ "$ref": "#/$defs/nonblank"
94
+ },
95
+ "created_at": {
96
+ "$ref": "#/$defs/nonblank"
97
+ },
98
+ "updated_at": {
99
+ "$ref": "#/$defs/nonblank"
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamGetInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "asset_id"
8
+ ],
9
+ "properties": {
10
+ "asset_id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "pattern": "^(?![Hh][Tt][Tt][Pp][Ss]?://).*\\S.*$"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamAssetDetail",
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,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamListInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "not": {
7
+ "properties": {
8
+ "repositoryId": true,
9
+ "allRepositories": true
10
+ },
11
+ "required": [
12
+ "repositoryId",
13
+ "allRepositories"
14
+ ]
15
+ },
16
+ "properties": {
17
+ "repositoryId": {
18
+ "$ref": "#/$defs/nonblank"
19
+ },
20
+ "allRepositories": {
21
+ "type": "boolean"
22
+ },
23
+ "folderId": {
24
+ "$ref": "#/$defs/nonblank"
25
+ },
26
+ "includeChildFolder": {
27
+ "type": "boolean"
28
+ },
29
+ "type": {
30
+ "$ref": "#/$defs/assetType"
31
+ },
32
+ "assetFormats": {
33
+ "type": "array",
34
+ "minItems": 1,
35
+ "items": {
36
+ "$ref": "#/$defs/nonblank"
37
+ }
38
+ },
39
+ "tagIds": {
40
+ "type": "array",
41
+ "minItems": 1,
42
+ "items": {
43
+ "$ref": "#/$defs/nonblank"
44
+ }
45
+ },
46
+ "pageSize": {
47
+ "type": "integer",
48
+ "minimum": 1,
49
+ "maximum": 100
50
+ },
51
+ "cursor": {
52
+ "$ref": "#/$defs/nonblank"
53
+ }
54
+ },
55
+ "$defs": {
56
+ "nonblank": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "pattern": ".*\\S.*"
60
+ },
61
+ "assetType": {
62
+ "type": "string",
63
+ "enum": [
64
+ "image",
65
+ "video",
66
+ "audio",
67
+ "font",
68
+ "template",
69
+ "file"
70
+ ]
71
+ }
72
+ }
73
+ }