@sogni-ai/sogni-intelligence-client 4.23.0 → 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/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/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/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/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 +19 -7
|
@@ -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",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
],
|
|
54
54
|
"prompt-guides": [
|
|
55
55
|
"./dist/prompt-guides/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"mcp": [
|
|
58
|
+
"./dist/mcp/index.d.ts"
|
|
56
59
|
]
|
|
57
60
|
}
|
|
58
61
|
},
|
|
@@ -167,7 +170,13 @@
|
|
|
167
170
|
"default": "./dist/skill-runtime-source/index.js"
|
|
168
171
|
},
|
|
169
172
|
"./schemas/*": "./dist/schemas/*",
|
|
170
|
-
"./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
|
+
}
|
|
171
180
|
},
|
|
172
181
|
"scripts": {
|
|
173
182
|
"codegen": "node scripts/generate-openai-tools-manifests.mjs && node scripts/generate-catalogs.mjs",
|
|
@@ -176,13 +185,15 @@
|
|
|
176
185
|
"dev": "tsc --watch",
|
|
177
186
|
"prepare": "npm run codegen && husky",
|
|
178
187
|
"prepublishOnly": "npm run build",
|
|
179
|
-
"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",
|
|
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",
|
|
180
189
|
"test:e2e": "node --import tsx test/e2e-test.ts",
|
|
181
190
|
"test:e2e:llm": "SOGNI_E2E_SCOPE=llm node --import tsx test/e2e-test.ts",
|
|
182
191
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples.json",
|
|
183
192
|
"test:examples": "npm run typecheck:examples",
|
|
184
193
|
"test:all": "npm run test && npm run test:examples && npm run test:e2e",
|
|
185
|
-
"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"
|
|
186
197
|
},
|
|
187
198
|
"keywords": [
|
|
188
199
|
"sogni",
|
|
@@ -214,8 +225,8 @@
|
|
|
214
225
|
},
|
|
215
226
|
"homepage": "https://github.com/Sogni-AI/sogni-intelligence-client#readme",
|
|
216
227
|
"dependencies": {
|
|
217
|
-
"@sogni-ai/sogni-client": "5.
|
|
218
|
-
"@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",
|
|
219
230
|
"sharp": "^0.35.5"
|
|
220
231
|
},
|
|
221
232
|
"devDependencies": {
|
|
@@ -251,7 +262,8 @@
|
|
|
251
262
|
"skills",
|
|
252
263
|
"README.md",
|
|
253
264
|
"LICENSE",
|
|
254
|
-
".env.example"
|
|
265
|
+
".env.example",
|
|
266
|
+
"mcp"
|
|
255
267
|
],
|
|
256
268
|
"overrides": {
|
|
257
269
|
"undici@7": "7.30.1"
|