@insmind/cli 1.8.0 → 1.9.1
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.
- package/contracts/operations/model.get/input.schema.json +5 -0
- package/contracts/operations/model.get/output.schema.json +9 -1
- package/contracts/operations/tool.call/canvas-input.schema.json +60 -0
- package/contracts/operations/tool.call/models/image-edit-smart.schema.json +39 -0
- package/contracts/operations/tool.call/models/image-edit-standard.schema.json +31 -0
- package/contracts/operations/tool.call/models/image-enhance-smart.schema.json +26 -0
- package/contracts/operations/tool.call/models/image-enhance-standard.schema.json +25 -0
- package/contracts/operations/tool.call/models/image-expand-smart.schema.json +72 -0
- package/contracts/operations/tool.call/models/image-expand-standard.schema.json +58 -0
- package/contracts/operations/tool.call/models/image-layers-layout.schema.json +20 -0
- package/contracts/operations/tool.call/models/image-layers-smart.schema.json +26 -0
- package/contracts/operations/tool.call/models/image-matting-smart.schema.json +34 -0
- package/contracts/operations/tool.call/models/image-matting-standard.schema.json +24 -0
- package/contracts/operations/tool.call/models/image-ocr.schema.json +20 -0
- package/contracts/operations/tool.call/models/image-remove-smart.schema.json +30 -0
- package/contracts/operations/tool.call/models/image-remove-standard.schema.json +25 -0
- package/contracts/operations/tool.call/models/image-text-edit.schema.json +43 -0
- package/contracts/operations/tool.call/models/image-vectorize.schema.json +20 -0
- package/contracts/operations/tool.call/models/video-edit-smart.schema.json +68 -0
- package/contracts/operations/tool.call/models/video-enhance-smart.schema.json +32 -0
- package/contracts/operations/tool.call/models/video-enhance-standard.schema.json +26 -0
- package/contracts/operations/tool.call/ocr-payload.schema.json +65 -0
- package/contracts/operations/tool.call/output.schema.json +38 -0
- package/contracts/operations/tool.call/template-payload.schema.json +95 -0
- package/dist/bin/insmind-cli.js +31 -24
- package/dist/bin/task-worker.js +4 -1
- package/dist/src/analytics/device.js +2 -2
- package/dist/src/bootstrap/create-cli.js +7 -0
- package/dist/src/bootstrap/create-runtime.js +53 -30
- package/dist/src/bootstrap/run-task-worker.js +5 -1
- package/dist/src/bootstrap/validators.js +11 -4
- package/dist/src/cli/agent-commands.js +1 -0
- package/dist/src/cli/dam-commands.js +3 -3
- package/dist/src/cli/errors.js +63 -15
- package/dist/src/cli/model-commands.js +6 -3
- package/dist/src/cli/observed-errors.js +3 -1
- package/dist/src/cli/tool-commands.js +2 -0
- package/dist/src/contracts/schema.js +4 -1
- package/dist/src/features/agent/creative-agent-adapter.js +37 -11
- package/dist/src/features/agent/creative-protocol.js +31 -10
- package/dist/src/features/agent/creative-stream.js +54 -6
- package/dist/src/features/agent/resource-authorizer.js +1 -0
- package/dist/src/features/agent/result-reader.js +3 -1
- package/dist/src/features/agent/use-cases.js +15 -5
- package/dist/src/features/auth/credential-store.js +6 -10
- package/dist/src/features/auth/sso-service.js +22 -6
- package/dist/src/features/auth/state.js +6 -0
- package/dist/src/features/auth/use-cases.js +90 -32
- package/dist/src/features/dam/asset-projection.js +10 -1
- package/dist/src/features/dam/dam-api-adapter.js +30 -15
- package/dist/src/features/dam/input.js +23 -0
- package/dist/src/features/dam/use-cases.js +32 -22
- package/dist/src/features/task/store.js +5 -5
- package/dist/src/features/task/task-background.js +67 -19
- package/dist/src/features/task/use-cases.js +38 -9
- package/dist/src/features/tool/canvas-copy.js +61 -0
- package/dist/src/features/tool/canvas-media.js +248 -0
- package/dist/src/features/tool/canvas-models.js +109 -0
- package/dist/src/features/tool/canvas-pricing.js +81 -0
- package/dist/src/features/tool/canvas-recovery.js +68 -0
- package/dist/src/features/tool/canvas-results.js +144 -0
- package/dist/src/features/tool/canvas-tool-adapter.js +366 -0
- package/dist/src/features/tool/canvas-video.js +84 -0
- package/dist/src/features/tool/catalog.js +35 -13
- package/dist/src/features/tool/dynamic-schema.js +55 -25
- package/dist/src/features/tool/matting-billing.js +115 -0
- package/dist/src/features/tool/mns-catalog-adapter.js +66 -19
- package/dist/src/features/tool/resource-authorizer.js +34 -0
- package/dist/src/features/tool/scene-catalog-adapter.js +35 -0
- package/dist/src/features/tool/tool-api-adapter.js +29 -17
- package/dist/src/features/tool/use-cases.js +28 -3
- package/dist/src/platform/file-lock.js +58 -15
- package/dist/src/platform/input-uri.js +105 -0
- package/dist/src/platform/local-json-file.js +7 -4
- package/dist/src/platform/remote-error-evidence.js +23 -1
- package/dist/src/platform/safe-upload-file.js +18 -4
- package/dist/src/platform/schema-issues.js +18 -0
- package/dist/src/platform/signed-http-transport.js +77 -16
- package/dist/src/platform/text-output.js +55 -13
- package/dist/src/product/config.js +12 -1
- package/dist/src/telemetry/failure-summary.js +53 -2
- package/dist/src/telemetry/host-diagnostics.js +95 -0
- package/dist/src/telemetry/invocation.js +24 -3
- package/dist/src/telemetry/process-errors.js +2 -1
- package/dist/src/telemetry/sls-sink.js +66 -18
- package/package.json +5 -4
- package/skills/insmind-cli/SKILL.md +2 -0
- package/skills/insmind-cli/references/creation.md +2 -0
- package/skills/insmind-cli/references/generation-constraints.md +3 -1
- package/skills/insmind-cli/references/matting.md +29 -0
- package/skills/insmind-cli/references/media-tools.md +40 -0
- package/skills/insmind-cli/references/tool.md +1 -1
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"estimatedTime": {
|
|
44
44
|
"$ref": "#/$defs/EstimatedTimeRange"
|
|
45
|
+
},
|
|
46
|
+
"inputSchema": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": true
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"$defs": {
|
|
@@ -112,7 +116,11 @@
|
|
|
112
116
|
"string",
|
|
113
117
|
"number",
|
|
114
118
|
"uri",
|
|
115
|
-
"uri[]"
|
|
119
|
+
"uri[]",
|
|
120
|
+
"integer",
|
|
121
|
+
"boolean",
|
|
122
|
+
"object",
|
|
123
|
+
"array"
|
|
116
124
|
]
|
|
117
125
|
},
|
|
118
126
|
"required": {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "CanvasToolArguments",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "models/image-edit-standard.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "models/image-edit-smart.schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "models/image-matting-standard.schema.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"$ref": "models/image-matting-smart.schema.json"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"$ref": "models/image-remove-standard.schema.json"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"$ref": "models/image-remove-smart.schema.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"$ref": "models/image-enhance-standard.schema.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"$ref": "models/image-enhance-smart.schema.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"$ref": "models/image-expand-standard.schema.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"$ref": "models/image-expand-smart.schema.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"$ref": "models/image-text-edit.schema.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"$ref": "models/image-ocr.schema.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"$ref": "models/image-layers-layout.schema.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"$ref": "models/image-layers-smart.schema.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"$ref": "models/image-vectorize.schema.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"$ref": "models/video-edit-smart.schema.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"$ref": "models/video-enhance-standard.schema.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"$ref": "models/video-enhance-smart.schema.json"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageEditSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"prompt"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-edit-smart"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"prompt": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": ".*\\S.*"
|
|
24
|
+
},
|
|
25
|
+
"mask": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "uri"
|
|
28
|
+
},
|
|
29
|
+
"referenceImages": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": "uri"
|
|
34
|
+
},
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"uniqueItems": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageEditStandardInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"mask",
|
|
10
|
+
"prompt"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"model": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "image-edit-standard"
|
|
16
|
+
},
|
|
17
|
+
"image": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "uri"
|
|
20
|
+
},
|
|
21
|
+
"mask": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "uri"
|
|
24
|
+
},
|
|
25
|
+
"prompt": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"pattern": ".*\\S.*"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageEnhanceSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"prompt"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-enhance-smart"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"prompt": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": ".*\\S.*"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageEnhanceStandardInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"targetLongEdge"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-enhance-standard"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"targetLongEdge": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageExpandSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"canvas",
|
|
10
|
+
"placement"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"model": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "image-expand-smart"
|
|
16
|
+
},
|
|
17
|
+
"image": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "uri"
|
|
20
|
+
},
|
|
21
|
+
"canvas": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"width",
|
|
26
|
+
"height"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"width": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 1
|
|
32
|
+
},
|
|
33
|
+
"height": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 1
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"placement": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": [
|
|
43
|
+
"x",
|
|
44
|
+
"y"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"x": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 0
|
|
50
|
+
},
|
|
51
|
+
"y": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"prompt": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1,
|
|
60
|
+
"pattern": ".*\\S.*"
|
|
61
|
+
},
|
|
62
|
+
"referenceImages": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "uri"
|
|
67
|
+
},
|
|
68
|
+
"minItems": 1,
|
|
69
|
+
"uniqueItems": true
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageExpandStandardInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"canvas",
|
|
10
|
+
"placement"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"model": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "image-expand-standard"
|
|
16
|
+
},
|
|
17
|
+
"image": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "uri"
|
|
20
|
+
},
|
|
21
|
+
"canvas": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"width",
|
|
26
|
+
"height"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"width": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 1
|
|
32
|
+
},
|
|
33
|
+
"height": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"minimum": 1
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"placement": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": [
|
|
43
|
+
"x",
|
|
44
|
+
"y"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"x": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 0
|
|
50
|
+
},
|
|
51
|
+
"y": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageLayersLayoutInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"model": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "image-layers-layout"
|
|
14
|
+
},
|
|
15
|
+
"image": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageLayersSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"maxLayers"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-layers-smart"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"maxLayers": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 1,
|
|
23
|
+
"maximum": 17
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageMattingSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"prompt"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-matting-smart"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"prompt": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": ".*\\S.*"
|
|
24
|
+
},
|
|
25
|
+
"mask": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "uri"
|
|
28
|
+
},
|
|
29
|
+
"cropToSubject": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageMattingStandardInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"model": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "image-matting-standard"
|
|
14
|
+
},
|
|
15
|
+
"image": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri"
|
|
18
|
+
},
|
|
19
|
+
"cropToSubject": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageOcrInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"model": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "image-ocr"
|
|
14
|
+
},
|
|
15
|
+
"image": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageRemoveSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"prompt"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-remove-smart"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"prompt": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": ".*\\S.*"
|
|
24
|
+
},
|
|
25
|
+
"mask": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "uri"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageRemoveStandardInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"mask"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-remove-standard"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"mask": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "uri"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageTextEditInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image",
|
|
9
|
+
"replacements"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"model": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "image-text-edit"
|
|
15
|
+
},
|
|
16
|
+
"image": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uri"
|
|
19
|
+
},
|
|
20
|
+
"replacements": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"from",
|
|
28
|
+
"to"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"from": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1,
|
|
34
|
+
"pattern": ".*\\S.*"
|
|
35
|
+
},
|
|
36
|
+
"to": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "ImageVectorizeInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"image"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"model": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "image-vectorize"
|
|
14
|
+
},
|
|
15
|
+
"image": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "VideoEditSmartInput",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"model",
|
|
8
|
+
"video",
|
|
9
|
+
"prompt",
|
|
10
|
+
"resolution",
|
|
11
|
+
"audioEnabled"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"model": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "video-edit-smart"
|
|
17
|
+
},
|
|
18
|
+
"video": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uri"
|
|
21
|
+
},
|
|
22
|
+
"prompt": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"pattern": ".*\\S.*"
|
|
26
|
+
},
|
|
27
|
+
"resolution": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"pattern": ".*\\S.*"
|
|
31
|
+
},
|
|
32
|
+
"audioEnabled": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"pattern": ".*\\S.*"
|
|
36
|
+
},
|
|
37
|
+
"referenceImages": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"format": "uri"
|
|
42
|
+
},
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"uniqueItems": true,
|
|
45
|
+
"maxItems": 10
|
|
46
|
+
},
|
|
47
|
+
"referenceVideos": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "uri"
|
|
52
|
+
},
|
|
53
|
+
"minItems": 1,
|
|
54
|
+
"uniqueItems": true,
|
|
55
|
+
"maxItems": 4
|
|
56
|
+
},
|
|
57
|
+
"referenceAudios": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"format": "uri"
|
|
62
|
+
},
|
|
63
|
+
"minItems": 1,
|
|
64
|
+
"uniqueItems": true,
|
|
65
|
+
"maxItems": 5
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|