@sogni-ai/sogni-intelligence-client 4.22.10 → 4.24.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.
- package/README.md +1 -0
- package/dist/contracts/imagePrompt.d.ts +1 -0
- package/dist/contracts/imagePrompt.d.ts.map +1 -1
- package/dist/contracts/imagePrompt.js +4 -4
- package/dist/contracts/imagePrompt.js.map +1 -1
- package/dist/mcp/index.d.ts +1254 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +199 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/manifest.generated.d.ts +1240 -0
- package/dist/mcp/manifest.generated.d.ts.map +1 -0
- package/dist/mcp/manifest.generated.js +5 -0
- package/dist/mcp/manifest.generated.js.map +1 -0
- package/dist/prompt-guides/happyhorse.d.ts +8 -0
- package/dist/prompt-guides/happyhorse.d.ts.map +1 -0
- package/dist/prompt-guides/happyhorse.js +55 -0
- package/dist/prompt-guides/happyhorse.js.map +1 -0
- package/dist/prompt-guides/image.d.ts +5 -0
- package/dist/prompt-guides/image.d.ts.map +1 -0
- package/dist/prompt-guides/image.js +80 -0
- package/dist/prompt-guides/image.js.map +1 -0
- package/dist/prompt-guides/index.d.ts +9 -0
- package/dist/prompt-guides/index.d.ts.map +1 -0
- package/dist/prompt-guides/index.js +70 -0
- package/dist/prompt-guides/index.js.map +1 -0
- package/dist/prompt-guides/ltx.d.ts +8 -0
- package/dist/prompt-guides/ltx.d.ts.map +1 -0
- package/dist/prompt-guides/ltx.js +135 -0
- package/dist/prompt-guides/ltx.js.map +1 -0
- package/dist/prompt-guides/minimax.d.ts +31 -0
- package/dist/prompt-guides/minimax.d.ts.map +1 -0
- package/dist/prompt-guides/minimax.js +172 -0
- package/dist/prompt-guides/minimax.js.map +1 -0
- package/dist/prompt-guides/registry.d.ts +7 -0
- package/dist/prompt-guides/registry.d.ts.map +1 -0
- package/dist/prompt-guides/registry.js +100 -0
- package/dist/prompt-guides/registry.js.map +1 -0
- package/dist/prompt-guides/seedance.d.ts +10 -0
- package/dist/prompt-guides/seedance.d.ts.map +1 -0
- package/dist/prompt-guides/seedance.js +155 -0
- package/dist/prompt-guides/seedance.js.map +1 -0
- package/dist/prompt-guides/shared.d.ts +3 -0
- package/dist/prompt-guides/shared.d.ts.map +1 -0
- package/dist/prompt-guides/shared.js +6 -0
- package/dist/prompt-guides/shared.js.map +1 -0
- package/dist/prompt-guides/types.d.ts +19 -0
- package/dist/prompt-guides/types.d.ts.map +1 -0
- package/dist/prompt-guides/types.js +15 -0
- package/dist/prompt-guides/types.js.map +1 -0
- package/dist/prompt-guides/wan.d.ts +3 -0
- package/dist/prompt-guides/wan.d.ts.map +1 -0
- package/dist/prompt-guides/wan.js +78 -0
- package/dist/prompt-guides/wan.js.map +1 -0
- package/dist/prompt-guides/wan3.d.ts +12 -0
- package/dist/prompt-guides/wan3.d.ts.map +1 -0
- package/dist/prompt-guides/wan3.js +51 -0
- package/dist/prompt-guides/wan3.js.map +1 -0
- package/dist/schemas/mcp/approve_cost.schema.json +57 -0
- package/dist/schemas/mcp/cancel_job.schema.json +26 -0
- package/dist/schemas/mcp/create_upload.schema.json +27 -0
- package/dist/schemas/mcp/generate_audio.schema.json +112 -0
- package/dist/schemas/mcp/generate_image.schema.json +115 -0
- package/dist/schemas/mcp/generate_video.schema.json +151 -0
- package/dist/schemas/mcp/get_balance.schema.json +9 -0
- package/dist/schemas/mcp/get_job.schema.json +37 -0
- package/dist/schemas/mcp/list_models.schema.json +33 -0
- package/dist/schemas/mcp/quote.schema.json +26 -0
- package/dist/schemas/mcp/result.schema.json +27 -0
- package/dist/schemas/mcp/run_creative_agent.schema.json +81 -0
- package/dist/schemas/mcp/transform_media.schema.json +97 -0
- package/dist-esm/contracts/imagePrompt.js +1 -1
- package/dist-esm/contracts/imagePrompt.js.map +1 -1
- package/dist-esm/mcp/index.js +193 -0
- package/dist-esm/mcp/index.js.map +1 -0
- package/dist-esm/mcp/manifest.generated.js +2 -0
- package/dist-esm/mcp/manifest.generated.js.map +1 -0
- package/dist-esm/prompt-guides/happyhorse.js +52 -0
- package/dist-esm/prompt-guides/happyhorse.js.map +1 -0
- package/dist-esm/prompt-guides/image.js +77 -0
- package/dist-esm/prompt-guides/image.js.map +1 -0
- package/dist-esm/prompt-guides/index.js +8 -0
- package/dist-esm/prompt-guides/index.js.map +1 -0
- package/dist-esm/prompt-guides/ltx.js +132 -0
- package/dist-esm/prompt-guides/ltx.js.map +1 -0
- package/dist-esm/prompt-guides/minimax.js +169 -0
- package/dist-esm/prompt-guides/minimax.js.map +1 -0
- package/dist-esm/prompt-guides/registry.js +95 -0
- package/dist-esm/prompt-guides/registry.js.map +1 -0
- package/dist-esm/prompt-guides/seedance.js +152 -0
- package/dist-esm/prompt-guides/seedance.js.map +1 -0
- package/dist-esm/prompt-guides/shared.js +3 -0
- package/dist-esm/prompt-guides/shared.js.map +1 -0
- package/dist-esm/prompt-guides/types.js +12 -0
- package/dist-esm/prompt-guides/types.js.map +1 -0
- package/dist-esm/prompt-guides/wan.js +75 -0
- package/dist-esm/prompt-guides/wan.js.map +1 -0
- package/dist-esm/prompt-guides/wan3.js +48 -0
- package/dist-esm/prompt-guides/wan3.js.map +1 -0
- package/dist-esm/schemas/mcp/approve_cost.schema.json +57 -0
- package/dist-esm/schemas/mcp/cancel_job.schema.json +26 -0
- package/dist-esm/schemas/mcp/create_upload.schema.json +27 -0
- package/dist-esm/schemas/mcp/generate_audio.schema.json +112 -0
- package/dist-esm/schemas/mcp/generate_image.schema.json +115 -0
- package/dist-esm/schemas/mcp/generate_video.schema.json +151 -0
- package/dist-esm/schemas/mcp/get_balance.schema.json +9 -0
- package/dist-esm/schemas/mcp/get_job.schema.json +37 -0
- package/dist-esm/schemas/mcp/list_models.schema.json +33 -0
- package/dist-esm/schemas/mcp/quote.schema.json +26 -0
- package/dist-esm/schemas/mcp/result.schema.json +27 -0
- package/dist-esm/schemas/mcp/run_creative_agent.schema.json +81 -0
- package/dist-esm/schemas/mcp/transform_media.schema.json +97 -0
- package/mcp/index.d.ts +1 -0
- package/mcp/index.js +1 -0
- package/package.json +28 -7
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/generate_image.schema.json",
|
|
4
|
+
"title": "Sogni MCP generate_image",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 64000,
|
|
11
|
+
"description": "Complete user prompt; preserve all requested details."
|
|
12
|
+
},
|
|
13
|
+
"model": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 256,
|
|
17
|
+
"description": "Concrete model ID from list_models."
|
|
18
|
+
},
|
|
19
|
+
"parameters": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": true,
|
|
22
|
+
"description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
|
|
23
|
+
},
|
|
24
|
+
"reference_images": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri",
|
|
29
|
+
"pattern": "^https://.+",
|
|
30
|
+
"maxLength": 16384,
|
|
31
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
32
|
+
},
|
|
33
|
+
"maxItems": 16
|
|
34
|
+
},
|
|
35
|
+
"reference_audios": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "uri",
|
|
40
|
+
"pattern": "^https://.+",
|
|
41
|
+
"maxLength": 16384,
|
|
42
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
43
|
+
},
|
|
44
|
+
"maxItems": 16
|
|
45
|
+
},
|
|
46
|
+
"reference_videos": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "uri",
|
|
51
|
+
"pattern": "^https://.+",
|
|
52
|
+
"maxLength": 16384,
|
|
53
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
54
|
+
},
|
|
55
|
+
"maxItems": 16
|
|
56
|
+
},
|
|
57
|
+
"token_type": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"auto",
|
|
61
|
+
"spark",
|
|
62
|
+
"sogni"
|
|
63
|
+
],
|
|
64
|
+
"description": "Payment currency. Auto follows account coverage."
|
|
65
|
+
},
|
|
66
|
+
"billing_mode": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"auto",
|
|
70
|
+
"subscription",
|
|
71
|
+
"tokens"
|
|
72
|
+
],
|
|
73
|
+
"description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
|
|
74
|
+
},
|
|
75
|
+
"request_id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 128,
|
|
79
|
+
"description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
|
|
80
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
81
|
+
},
|
|
82
|
+
"width": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 1
|
|
85
|
+
},
|
|
86
|
+
"height": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 1
|
|
89
|
+
},
|
|
90
|
+
"count": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 1
|
|
93
|
+
},
|
|
94
|
+
"seed": {
|
|
95
|
+
"type": "integer"
|
|
96
|
+
},
|
|
97
|
+
"mask": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"format": "uri",
|
|
100
|
+
"pattern": "^https://.+",
|
|
101
|
+
"maxLength": 16384,
|
|
102
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
103
|
+
},
|
|
104
|
+
"safe_content_filter": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"prompt",
|
|
111
|
+
"model",
|
|
112
|
+
"request_id"
|
|
113
|
+
],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/generate_video.schema.json",
|
|
4
|
+
"title": "Sogni MCP generate_video",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 64000,
|
|
11
|
+
"description": "Complete user prompt; preserve all requested details."
|
|
12
|
+
},
|
|
13
|
+
"model": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 256,
|
|
17
|
+
"description": "Concrete model ID from list_models."
|
|
18
|
+
},
|
|
19
|
+
"parameters": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": true,
|
|
22
|
+
"description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
|
|
23
|
+
},
|
|
24
|
+
"reference_images": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri",
|
|
29
|
+
"pattern": "^https://.+",
|
|
30
|
+
"maxLength": 16384,
|
|
31
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
32
|
+
},
|
|
33
|
+
"maxItems": 16
|
|
34
|
+
},
|
|
35
|
+
"reference_audios": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "uri",
|
|
40
|
+
"pattern": "^https://.+",
|
|
41
|
+
"maxLength": 16384,
|
|
42
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
43
|
+
},
|
|
44
|
+
"maxItems": 16
|
|
45
|
+
},
|
|
46
|
+
"reference_videos": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "uri",
|
|
51
|
+
"pattern": "^https://.+",
|
|
52
|
+
"maxLength": 16384,
|
|
53
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
54
|
+
},
|
|
55
|
+
"maxItems": 16
|
|
56
|
+
},
|
|
57
|
+
"token_type": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"auto",
|
|
61
|
+
"spark",
|
|
62
|
+
"sogni"
|
|
63
|
+
],
|
|
64
|
+
"description": "Payment currency. Auto follows account coverage."
|
|
65
|
+
},
|
|
66
|
+
"billing_mode": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"auto",
|
|
70
|
+
"subscription",
|
|
71
|
+
"tokens"
|
|
72
|
+
],
|
|
73
|
+
"description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
|
|
74
|
+
},
|
|
75
|
+
"request_id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 128,
|
|
79
|
+
"description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
|
|
80
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
81
|
+
},
|
|
82
|
+
"mode": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"t2v",
|
|
86
|
+
"i2v",
|
|
87
|
+
"flf",
|
|
88
|
+
"r2v",
|
|
89
|
+
"a2v",
|
|
90
|
+
"ia2v",
|
|
91
|
+
"flfa2v",
|
|
92
|
+
"v2v"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"duration": {
|
|
96
|
+
"type": "number",
|
|
97
|
+
"exclusiveMinimum": 0
|
|
98
|
+
},
|
|
99
|
+
"first_frame": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"format": "uri",
|
|
102
|
+
"pattern": "^https://.+",
|
|
103
|
+
"maxLength": 16384,
|
|
104
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
105
|
+
},
|
|
106
|
+
"last_frame": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": "uri",
|
|
109
|
+
"pattern": "^https://.+",
|
|
110
|
+
"maxLength": 16384,
|
|
111
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
112
|
+
},
|
|
113
|
+
"audio": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "uri",
|
|
116
|
+
"pattern": "^https://.+",
|
|
117
|
+
"maxLength": 16384,
|
|
118
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
119
|
+
},
|
|
120
|
+
"source_video": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"format": "uri",
|
|
123
|
+
"pattern": "^https://.+",
|
|
124
|
+
"maxLength": 16384,
|
|
125
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
126
|
+
},
|
|
127
|
+
"width": {
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"minimum": 1
|
|
130
|
+
},
|
|
131
|
+
"height": {
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"minimum": 1
|
|
134
|
+
},
|
|
135
|
+
"count": {
|
|
136
|
+
"type": "integer",
|
|
137
|
+
"minimum": 1
|
|
138
|
+
},
|
|
139
|
+
"safe_content_filter": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"required": [
|
|
145
|
+
"prompt",
|
|
146
|
+
"model",
|
|
147
|
+
"duration",
|
|
148
|
+
"request_id"
|
|
149
|
+
],
|
|
150
|
+
"additionalProperties": false
|
|
151
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/get_job.schema.json",
|
|
4
|
+
"title": "Sogni MCP get_job",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"job_id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 256,
|
|
11
|
+
"description": "Job ID returned by a previous call."
|
|
12
|
+
},
|
|
13
|
+
"kind": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"workflow",
|
|
17
|
+
"run"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"artifact_offset": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0,
|
|
23
|
+
"description": "Output page offset. Use next_artifact_offset from the previous response."
|
|
24
|
+
},
|
|
25
|
+
"artifact_limit": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 1,
|
|
28
|
+
"maximum": 100,
|
|
29
|
+
"description": "Outputs per page; defaults to 50."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"job_id",
|
|
34
|
+
"kind"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/list_models.schema.json",
|
|
4
|
+
"title": "Sogni MCP list_models",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"media_type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"image",
|
|
11
|
+
"video",
|
|
12
|
+
"audio",
|
|
13
|
+
"text",
|
|
14
|
+
"model"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"network": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"fast",
|
|
21
|
+
"relaxed"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"model": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 256,
|
|
28
|
+
"description": "Return details for one model ID."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [],
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/quote.schema.json",
|
|
4
|
+
"title": "Sogni MCP quote",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"tool": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"generate_image",
|
|
11
|
+
"generate_video",
|
|
12
|
+
"generate_audio",
|
|
13
|
+
"transform_media"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"arguments": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"tool",
|
|
23
|
+
"arguments"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/result.schema.json",
|
|
4
|
+
"title": "Sogni MCP result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"kind": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"models",
|
|
11
|
+
"account",
|
|
12
|
+
"quote",
|
|
13
|
+
"job",
|
|
14
|
+
"upload"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"kind",
|
|
24
|
+
"data"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/run_creative_agent.schema.json",
|
|
4
|
+
"title": "Sogni MCP run_creative_agent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"brief": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 64000,
|
|
11
|
+
"description": "Complete user prompt; preserve all requested details."
|
|
12
|
+
},
|
|
13
|
+
"reference_images": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri",
|
|
18
|
+
"pattern": "^https://.+",
|
|
19
|
+
"maxLength": 16384,
|
|
20
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
21
|
+
},
|
|
22
|
+
"maxItems": 16
|
|
23
|
+
},
|
|
24
|
+
"reference_audios": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri",
|
|
29
|
+
"pattern": "^https://.+",
|
|
30
|
+
"maxLength": 16384,
|
|
31
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
32
|
+
},
|
|
33
|
+
"maxItems": 16
|
|
34
|
+
},
|
|
35
|
+
"reference_videos": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "uri",
|
|
40
|
+
"pattern": "^https://.+",
|
|
41
|
+
"maxLength": 16384,
|
|
42
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
43
|
+
},
|
|
44
|
+
"maxItems": 16
|
|
45
|
+
},
|
|
46
|
+
"token_type": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"auto",
|
|
50
|
+
"spark",
|
|
51
|
+
"sogni"
|
|
52
|
+
],
|
|
53
|
+
"description": "Payment currency. Auto follows account coverage."
|
|
54
|
+
},
|
|
55
|
+
"billing_mode": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"enum": [
|
|
58
|
+
"auto",
|
|
59
|
+
"subscription",
|
|
60
|
+
"tokens"
|
|
61
|
+
],
|
|
62
|
+
"description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
|
|
63
|
+
},
|
|
64
|
+
"request_id": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"maxLength": 128,
|
|
68
|
+
"description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
|
|
69
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
70
|
+
},
|
|
71
|
+
"safe_content_filter": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"brief",
|
|
78
|
+
"request_id"
|
|
79
|
+
],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/transform_media.schema.json",
|
|
4
|
+
"title": "Sogni MCP transform_media",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"operation": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"upscale_image",
|
|
11
|
+
"upscale_video",
|
|
12
|
+
"remove_background",
|
|
13
|
+
"restore_photo",
|
|
14
|
+
"extend_video",
|
|
15
|
+
"stitch_video"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"prompt": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"maxLength": 64000,
|
|
22
|
+
"description": "Complete user prompt; preserve all requested details."
|
|
23
|
+
},
|
|
24
|
+
"parameters": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": true,
|
|
27
|
+
"description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
|
|
28
|
+
},
|
|
29
|
+
"reference_images": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": "uri",
|
|
34
|
+
"pattern": "^https://.+",
|
|
35
|
+
"maxLength": 16384,
|
|
36
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
37
|
+
},
|
|
38
|
+
"maxItems": 16
|
|
39
|
+
},
|
|
40
|
+
"reference_audios": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "uri",
|
|
45
|
+
"pattern": "^https://.+",
|
|
46
|
+
"maxLength": 16384,
|
|
47
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
48
|
+
},
|
|
49
|
+
"maxItems": 16
|
|
50
|
+
},
|
|
51
|
+
"reference_videos": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"format": "uri",
|
|
56
|
+
"pattern": "^https://.+",
|
|
57
|
+
"maxLength": 16384,
|
|
58
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
59
|
+
},
|
|
60
|
+
"maxItems": 16
|
|
61
|
+
},
|
|
62
|
+
"token_type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [
|
|
65
|
+
"auto",
|
|
66
|
+
"spark",
|
|
67
|
+
"sogni"
|
|
68
|
+
],
|
|
69
|
+
"description": "Payment currency. Auto follows account coverage."
|
|
70
|
+
},
|
|
71
|
+
"billing_mode": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"auto",
|
|
75
|
+
"subscription",
|
|
76
|
+
"tokens"
|
|
77
|
+
],
|
|
78
|
+
"description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
|
|
79
|
+
},
|
|
80
|
+
"request_id": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"minLength": 1,
|
|
83
|
+
"maxLength": 128,
|
|
84
|
+
"description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
|
|
85
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
86
|
+
},
|
|
87
|
+
"safe_content_filter": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"operation",
|
|
94
|
+
"request_id"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
}
|
package/mcp/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/mcp/index';
|
package/mcp/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/mcp/index.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-intelligence-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
4
4
|
"description": "Public Sogni Intelligence client — Node.js convenience wrapper for the Sogni SDK plus the public-safe subset of @sogni/creative-agent contracts (ContractRegistry, AssetManifest, RunRecord, tool envelopes). For agent builders, third-party integrations, and downstream SDKs.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -50,6 +50,12 @@
|
|
|
50
50
|
],
|
|
51
51
|
"billing": [
|
|
52
52
|
"./dist/billing/index.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"prompt-guides": [
|
|
55
|
+
"./dist/prompt-guides/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"mcp": [
|
|
58
|
+
"./dist/mcp/index.d.ts"
|
|
53
59
|
]
|
|
54
60
|
}
|
|
55
61
|
},
|
|
@@ -151,6 +157,12 @@
|
|
|
151
157
|
"require": "./dist/billing/index.js",
|
|
152
158
|
"default": "./dist/billing/index.js"
|
|
153
159
|
},
|
|
160
|
+
"./prompt-guides": {
|
|
161
|
+
"types": "./dist/prompt-guides/index.d.ts",
|
|
162
|
+
"import": "./dist-esm/prompt-guides/index.js",
|
|
163
|
+
"require": "./dist/prompt-guides/index.js",
|
|
164
|
+
"default": "./dist/prompt-guides/index.js"
|
|
165
|
+
},
|
|
154
166
|
"./skill-runtime-source": {
|
|
155
167
|
"types": "./dist/skill-runtime-source/index.d.ts",
|
|
156
168
|
"import": "./dist-esm/skill-runtime-source/index.js",
|
|
@@ -158,7 +170,13 @@
|
|
|
158
170
|
"default": "./dist/skill-runtime-source/index.js"
|
|
159
171
|
},
|
|
160
172
|
"./schemas/*": "./dist/schemas/*",
|
|
161
|
-
"./package.json": "./package.json"
|
|
173
|
+
"./package.json": "./package.json",
|
|
174
|
+
"./mcp": {
|
|
175
|
+
"types": "./dist/mcp/index.d.ts",
|
|
176
|
+
"import": "./dist-esm/mcp/index.js",
|
|
177
|
+
"require": "./dist/mcp/index.js",
|
|
178
|
+
"default": "./dist/mcp/index.js"
|
|
179
|
+
}
|
|
162
180
|
},
|
|
163
181
|
"scripts": {
|
|
164
182
|
"codegen": "node scripts/generate-openai-tools-manifests.mjs && node scripts/generate-catalogs.mjs",
|
|
@@ -167,13 +185,15 @@
|
|
|
167
185
|
"dev": "tsc --watch",
|
|
168
186
|
"prepare": "npm run codegen && husky",
|
|
169
187
|
"prepublishOnly": "npm run build",
|
|
170
|
-
"test": "node --import tsx test/basic-tests.ts && node --import tsx --test test/balance.test.ts test/replay-redaction.test.ts test/chat-run-model-media.test.ts test/durable-workflow-content-filter.test.ts test/gpt-image-25.test.ts test/video-estimate-context.test.ts test/video-reference-detail.test.ts test/prompt-limits.test.ts test/reconnect-and-retry.test.ts test/batch-prompt-preservation.test.ts test/context-budget-check.test.ts test/context-user-history.test.ts test/seedance-25-uncensored.test.ts test/seedance-mini-uncensored.test.ts test/seedream-5-pro-uncensored.test.ts test/seedance-vendor-reason.test.ts test/project-failure-reason.test.ts test/image-identity-prompting.test.ts test/seedance-reference-duration.test.ts test/guidance-fidelity.test.ts",
|
|
188
|
+
"test": "node --import tsx test/basic-tests.ts && node --import tsx --test test/balance.test.ts test/replay-redaction.test.ts test/chat-run-model-media.test.ts test/durable-workflow-content-filter.test.ts test/gpt-image-25.test.ts test/video-estimate-context.test.ts test/video-reference-detail.test.ts test/prompt-limits.test.ts test/reconnect-and-retry.test.ts test/batch-prompt-preservation.test.ts test/context-budget-check.test.ts test/context-user-history.test.ts test/seedance-25-uncensored.test.ts test/seedance-mini-uncensored.test.ts test/seedream-5-pro-uncensored.test.ts test/seedance-vendor-reason.test.ts test/project-failure-reason.test.ts test/image-identity-prompting.test.ts test/seedance-reference-duration.test.ts test/guidance-fidelity.test.ts test/prompt-guides.test.ts test/mcp.test.ts",
|
|
171
189
|
"test:e2e": "node --import tsx test/e2e-test.ts",
|
|
172
190
|
"test:e2e:llm": "SOGNI_E2E_SCOPE=llm node --import tsx test/e2e-test.ts",
|
|
173
191
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples.json",
|
|
174
192
|
"test:examples": "npm run typecheck:examples",
|
|
175
193
|
"test:all": "npm run test && npm run test:examples && npm run test:e2e",
|
|
176
|
-
"release": "semantic-release"
|
|
194
|
+
"release": "semantic-release",
|
|
195
|
+
"test:mcp": "node --import tsx --test test/mcp.test.ts",
|
|
196
|
+
"sync:mcp": "node scripts/generate-mcp-manifest.mjs"
|
|
177
197
|
},
|
|
178
198
|
"keywords": [
|
|
179
199
|
"sogni",
|
|
@@ -205,8 +225,8 @@
|
|
|
205
225
|
},
|
|
206
226
|
"homepage": "https://github.com/Sogni-AI/sogni-intelligence-client#readme",
|
|
207
227
|
"dependencies": {
|
|
208
|
-
"@sogni-ai/sogni-client": "5.
|
|
209
|
-
"@sogni-ai/sogni-protocol": "1.0.0-alpha.
|
|
228
|
+
"@sogni-ai/sogni-client": "5.74.1",
|
|
229
|
+
"@sogni-ai/sogni-protocol": "1.0.0-alpha.58",
|
|
210
230
|
"sharp": "^0.35.5"
|
|
211
231
|
},
|
|
212
232
|
"devDependencies": {
|
|
@@ -242,7 +262,8 @@
|
|
|
242
262
|
"skills",
|
|
243
263
|
"README.md",
|
|
244
264
|
"LICENSE",
|
|
245
|
-
".env.example"
|
|
265
|
+
".env.example",
|
|
266
|
+
"mcp"
|
|
246
267
|
],
|
|
247
268
|
"overrides": {
|
|
248
269
|
"undici@7": "7.30.1"
|