@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,145 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamListResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "repository_ids",
8
+ "page_size",
9
+ "total",
10
+ "finish",
11
+ "assets"
12
+ ],
13
+ "properties": {
14
+ "repository_ids": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": {
18
+ "$ref": "#/$defs/nonblank"
19
+ }
20
+ },
21
+ "page_size": {
22
+ "type": "integer",
23
+ "minimum": 1,
24
+ "maximum": 100
25
+ },
26
+ "total": {
27
+ "type": "integer",
28
+ "minimum": 0
29
+ },
30
+ "finish": {
31
+ "type": "boolean"
32
+ },
33
+ "next_cursor": {
34
+ "$ref": "#/$defs/nonblank"
35
+ },
36
+ "assets": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "#/$defs/assetSummary"
40
+ }
41
+ }
42
+ },
43
+ "$defs": {
44
+ "nonblank": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "pattern": ".*\\S.*"
48
+ },
49
+ "assetType": {
50
+ "type": "string",
51
+ "enum": [
52
+ "image",
53
+ "video",
54
+ "audio",
55
+ "font",
56
+ "template",
57
+ "file"
58
+ ]
59
+ },
60
+ "stringOrNumber": {
61
+ "oneOf": [
62
+ {
63
+ "$ref": "#/$defs/nonblank"
64
+ },
65
+ {
66
+ "type": "number"
67
+ }
68
+ ]
69
+ },
70
+ "assetSummary": {
71
+ "title": "DamAssetSummary",
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "asset_id"
76
+ ],
77
+ "properties": {
78
+ "asset_id": {
79
+ "$ref": "#/$defs/nonblank"
80
+ },
81
+ "title": {
82
+ "$ref": "#/$defs/nonblank"
83
+ },
84
+ "format": {
85
+ "$ref": "#/$defs/nonblank"
86
+ },
87
+ "type": {
88
+ "$ref": "#/$defs/assetType"
89
+ },
90
+ "size": {
91
+ "type": "integer",
92
+ "minimum": 0
93
+ },
94
+ "url": {
95
+ "type": "string",
96
+ "format": "uri"
97
+ },
98
+ "cover_url": {
99
+ "type": "string",
100
+ "format": "uri"
101
+ },
102
+ "width": {
103
+ "type": "integer",
104
+ "minimum": 0
105
+ },
106
+ "height": {
107
+ "type": "integer",
108
+ "minimum": 0
109
+ },
110
+ "repository_id": {
111
+ "$ref": "#/$defs/nonblank"
112
+ },
113
+ "folder_id": {
114
+ "$ref": "#/$defs/nonblank"
115
+ },
116
+ "folder_name": {
117
+ "$ref": "#/$defs/nonblank"
118
+ },
119
+ "tags": {
120
+ "type": "array",
121
+ "items": {
122
+ "$ref": "#/$defs/nonblank"
123
+ }
124
+ },
125
+ "tag_ids": {
126
+ "type": "array",
127
+ "items": {
128
+ "$ref": "#/$defs/stringOrNumber"
129
+ }
130
+ },
131
+ "analysis_status": {
132
+ "$ref": "#/$defs/stringOrNumber"
133
+ },
134
+ "created_at": {
135
+ "type": "string",
136
+ "format": "date-time"
137
+ },
138
+ "updated_at": {
139
+ "type": "string",
140
+ "format": "date-time"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamMoveInput",
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,40 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamMoveResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "entry_id",
8
+ "kind",
9
+ "repository_id",
10
+ "folder_id"
11
+ ],
12
+ "properties": {
13
+ "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
+ },
26
+ "$defs": {
27
+ "nonblank": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "pattern": ".*\\S.*"
31
+ },
32
+ "kind": {
33
+ "type": "string",
34
+ "enum": [
35
+ "asset",
36
+ "folder"
37
+ ]
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamRenameInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "entry_id",
8
+ "kind",
9
+ "title"
10
+ ],
11
+ "properties": {
12
+ "entry_id": {
13
+ "$ref": "#/$defs/nonblank"
14
+ },
15
+ "kind": {
16
+ "$ref": "#/$defs/kind"
17
+ },
18
+ "title": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 100,
22
+ "pattern": ".*\\S.*"
23
+ },
24
+ "repositoryId": {
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": "DamRenameResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "entry_id",
8
+ "kind",
9
+ "repository_id",
10
+ "title"
11
+ ],
12
+ "properties": {
13
+ "entry_id": {
14
+ "$ref": "#/$defs/nonblank"
15
+ },
16
+ "kind": {
17
+ "$ref": "#/$defs/kind"
18
+ },
19
+ "repository_id": {
20
+ "$ref": "#/$defs/nonblank"
21
+ },
22
+ "title": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 100,
26
+ "pattern": ".*\\S.*"
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,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamRepositoryListInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {}
7
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamRepositoryListResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "repositories"
8
+ ],
9
+ "properties": {
10
+ "repositories": {
11
+ "type": "array",
12
+ "minItems": 1,
13
+ "items": {
14
+ "$ref": "#/$defs/repository"
15
+ }
16
+ }
17
+ },
18
+ "$defs": {
19
+ "nonblank": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "pattern": ".*\\S.*"
23
+ },
24
+ "repository": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": [
28
+ "repository_id",
29
+ "name",
30
+ "type",
31
+ "is_default"
32
+ ],
33
+ "properties": {
34
+ "repository_id": {
35
+ "$ref": "#/$defs/nonblank"
36
+ },
37
+ "name": {
38
+ "$ref": "#/$defs/nonblank"
39
+ },
40
+ "type": {
41
+ "type": "string",
42
+ "enum": [
43
+ "personal",
44
+ "team",
45
+ "enterprise",
46
+ "draft"
47
+ ]
48
+ },
49
+ "permission_code": {
50
+ "type": "string",
51
+ "enum": [
52
+ "OWNER",
53
+ "MANAGE",
54
+ "EDIT",
55
+ "USE",
56
+ "READ"
57
+ ]
58
+ },
59
+ "is_default": {
60
+ "type": "boolean"
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamSearchInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "query"
8
+ ],
9
+ "not": {
10
+ "properties": {
11
+ "repositoryId": true,
12
+ "allRepositories": true
13
+ },
14
+ "required": [
15
+ "repositoryId",
16
+ "allRepositories"
17
+ ]
18
+ },
19
+ "properties": {
20
+ "query": {
21
+ "$ref": "#/$defs/nonblank"
22
+ },
23
+ "repositoryId": {
24
+ "$ref": "#/$defs/nonblank"
25
+ },
26
+ "allRepositories": {
27
+ "type": "boolean"
28
+ },
29
+ "folderId": {
30
+ "$ref": "#/$defs/nonblank"
31
+ },
32
+ "includeChildFolder": {
33
+ "type": "boolean"
34
+ },
35
+ "type": {
36
+ "$ref": "#/$defs/assetType"
37
+ },
38
+ "assetFormats": {
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "items": {
42
+ "$ref": "#/$defs/nonblank"
43
+ }
44
+ },
45
+ "tagIds": {
46
+ "type": "array",
47
+ "minItems": 1,
48
+ "items": {
49
+ "$ref": "#/$defs/nonblank"
50
+ }
51
+ },
52
+ "pageSize": {
53
+ "type": "integer",
54
+ "minimum": 1,
55
+ "maximum": 100
56
+ },
57
+ "cursor": {
58
+ "$ref": "#/$defs/nonblank"
59
+ }
60
+ },
61
+ "$defs": {
62
+ "nonblank": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "pattern": ".*\\S.*"
66
+ },
67
+ "assetType": {
68
+ "type": "string",
69
+ "enum": [
70
+ "image",
71
+ "video",
72
+ "audio",
73
+ "font",
74
+ "template",
75
+ "file"
76
+ ]
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamSearchResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "repository_ids",
8
+ "page_size",
9
+ "total",
10
+ "finish",
11
+ "assets"
12
+ ],
13
+ "properties": {
14
+ "repository_ids": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": {
18
+ "$ref": "#/$defs/nonblank"
19
+ }
20
+ },
21
+ "page_size": {
22
+ "type": "integer",
23
+ "minimum": 1,
24
+ "maximum": 100
25
+ },
26
+ "total": {
27
+ "type": "integer",
28
+ "minimum": 0
29
+ },
30
+ "finish": {
31
+ "type": "boolean"
32
+ },
33
+ "next_cursor": {
34
+ "$ref": "#/$defs/nonblank"
35
+ },
36
+ "assets": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "#/$defs/assetSummary"
40
+ }
41
+ }
42
+ },
43
+ "$defs": {
44
+ "nonblank": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "pattern": ".*\\S.*"
48
+ },
49
+ "assetType": {
50
+ "type": "string",
51
+ "enum": [
52
+ "image",
53
+ "video",
54
+ "audio",
55
+ "font",
56
+ "template",
57
+ "file"
58
+ ]
59
+ },
60
+ "stringOrNumber": {
61
+ "oneOf": [
62
+ {
63
+ "$ref": "#/$defs/nonblank"
64
+ },
65
+ {
66
+ "type": "number"
67
+ }
68
+ ]
69
+ },
70
+ "assetSummary": {
71
+ "title": "DamAssetSummary",
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "asset_id"
76
+ ],
77
+ "properties": {
78
+ "asset_id": {
79
+ "$ref": "#/$defs/nonblank"
80
+ },
81
+ "title": {
82
+ "$ref": "#/$defs/nonblank"
83
+ },
84
+ "format": {
85
+ "$ref": "#/$defs/nonblank"
86
+ },
87
+ "type": {
88
+ "$ref": "#/$defs/assetType"
89
+ },
90
+ "size": {
91
+ "type": "integer",
92
+ "minimum": 0
93
+ },
94
+ "url": {
95
+ "type": "string",
96
+ "format": "uri"
97
+ },
98
+ "cover_url": {
99
+ "type": "string",
100
+ "format": "uri"
101
+ },
102
+ "width": {
103
+ "type": "integer",
104
+ "minimum": 0
105
+ },
106
+ "height": {
107
+ "type": "integer",
108
+ "minimum": 0
109
+ },
110
+ "repository_id": {
111
+ "$ref": "#/$defs/nonblank"
112
+ },
113
+ "folder_id": {
114
+ "$ref": "#/$defs/nonblank"
115
+ },
116
+ "folder_name": {
117
+ "$ref": "#/$defs/nonblank"
118
+ },
119
+ "tags": {
120
+ "type": "array",
121
+ "items": {
122
+ "$ref": "#/$defs/nonblank"
123
+ }
124
+ },
125
+ "tag_ids": {
126
+ "type": "array",
127
+ "items": {
128
+ "$ref": "#/$defs/stringOrNumber"
129
+ }
130
+ },
131
+ "analysis_status": {
132
+ "$ref": "#/$defs/stringOrNumber"
133
+ },
134
+ "created_at": {
135
+ "type": "string",
136
+ "format": "date-time"
137
+ },
138
+ "updated_at": {
139
+ "type": "string",
140
+ "format": "date-time"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamTagListInput",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "repositoryId": {
8
+ "$ref": "#/$defs/nonblank"
9
+ },
10
+ "query": {
11
+ "$ref": "#/$defs/nonblank"
12
+ }
13
+ },
14
+ "$defs": {
15
+ "nonblank": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "pattern": ".*\\S.*"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "DamTagListResult",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "repository_id",
8
+ "tags"
9
+ ],
10
+ "properties": {
11
+ "repository_id": {
12
+ "$ref": "#/$defs/nonblank"
13
+ },
14
+ "tags": {
15
+ "type": "array",
16
+ "items": {
17
+ "$ref": "#/$defs/tag"
18
+ }
19
+ }
20
+ },
21
+ "$defs": {
22
+ "nonblank": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "pattern": ".*\\S.*"
26
+ },
27
+ "tag": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": [
31
+ "tag_id",
32
+ "name",
33
+ "asset_count"
34
+ ],
35
+ "properties": {
36
+ "tag_id": {
37
+ "$ref": "#/$defs/nonblank"
38
+ },
39
+ "name": {
40
+ "$ref": "#/$defs/nonblank"
41
+ },
42
+ "group_id": {
43
+ "$ref": "#/$defs/nonblank"
44
+ },
45
+ "asset_count": {
46
+ "type": "integer",
47
+ "minimum": 0
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }