@neta-art/generation 0.1.4 → 0.1.6

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 (37) hide show
  1. package/README.md +97 -14
  2. package/dist/{builtins-BJ2_TVlr.d.ts → builtins-C-_aGhT8.d.ts} +2 -2
  3. package/dist/builtins-C-_aGhT8.d.ts.map +1 -0
  4. package/dist/builtins-NAtI9FFU.js +1186 -0
  5. package/dist/builtins-NAtI9FFU.js.map +1 -0
  6. package/dist/builtins.d.ts +1 -1
  7. package/dist/builtins.js +1 -1
  8. package/dist/cli/index.js +2 -2
  9. package/dist/{export-config-D8By2_r7.js → export-config-DS2XD-tF.js} +443 -44
  10. package/dist/export-config-DS2XD-tF.js.map +1 -0
  11. package/dist/index.d.ts +8 -2
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +3 -3
  14. package/models/birefnet-general.yaml +25 -0
  15. package/models/kling-image-to-video.yaml +89 -0
  16. package/models/kling-multi-image-to-video.yaml +93 -0
  17. package/models/kling-omni-video.yaml +107 -0
  18. package/models/kling-text-to-video.yaml +79 -0
  19. package/models/noobxl-i2i-ipa-onediff.yaml +72 -0
  20. package/models/noobxl-t2i-onediff.yaml +44 -0
  21. package/models/qwen-image-edit.yaml +44 -0
  22. package/models/suno_cover_chirp_v5.yaml +159 -0
  23. package/models/suno_image_to_song_chirp_v5.yaml +152 -0
  24. package/models/suno_infill_chirp_v5.yaml +148 -0
  25. package/models/suno_music_chirp_fenix.yaml +77 -0
  26. package/models/suno_sound_chirp_v5.yaml +145 -0
  27. package/models/suno_style_tags.yaml +14 -0
  28. package/models/suno_upload_audio.yaml +44 -0
  29. package/models/suno_video_to_song_chirp_v5.yaml +152 -0
  30. package/models/suno_vox_chirp_v5.yaml +149 -0
  31. package/models/z-image-turbo.yaml +34 -0
  32. package/package.json +19 -15
  33. package/dist/builtins-BJ2_TVlr.d.ts.map +0 -1
  34. package/dist/builtins-FumzmWvj.js +0 -565
  35. package/dist/builtins-FumzmWvj.js.map +0 -1
  36. package/dist/export-config-D8By2_r7.js.map +0 -1
  37. package/models/suno_music.yaml +0 -265
@@ -0,0 +1,149 @@
1
+ schema: neta.generation.model.v1
2
+ model: suno_vox_chirp_v5
3
+ title: Suno Vox Chirp v5.0
4
+ description: Suno hum-to-song task with a fixed chirp-v5 engine.
5
+ adapter:
6
+ type: suno.tasks
7
+ operation: music
8
+ task: vox
9
+ payload:
10
+ mv: chirp-v5
11
+ content:
12
+ input:
13
+ - type: text
14
+ required: false
15
+ max: 16
16
+ merge: newline
17
+ description: Prompt text. The adapter maps merged text to the operation's text field when that field is not provided.
18
+ parameters:
19
+ poll_interval:
20
+ type: integer
21
+ optional: true
22
+ default: 5
23
+ min: 1
24
+ max: 60
25
+ description: Seconds between task status checks.
26
+ max_wait:
27
+ type: integer
28
+ optional: true
29
+ default: 600
30
+ min: 30
31
+ max: 3600
32
+ description: Maximum seconds to wait for task completion.
33
+ meta:
34
+ fields:
35
+ title:
36
+ type: string
37
+ optional: true
38
+ description: Suno song title.
39
+ tags:
40
+ type: string
41
+ optional: true
42
+ description: Comma-separated Suno music style tags.
43
+ gpt_description_prompt:
44
+ type: string
45
+ optional: true
46
+ description: Suno inspiration-mode prompt.
47
+ negative_tags:
48
+ type: string
49
+ optional: true
50
+ description: Styles to avoid.
51
+ generation_type:
52
+ type: string
53
+ optional: true
54
+ description: Suno generation type.
55
+ make_instrumental:
56
+ type: boolean
57
+ optional: true
58
+ default: false
59
+ description: Generate instrumental music.
60
+ metadata:
61
+ type: object
62
+ optional: true
63
+ description: Suno provider metadata payload.
64
+ metadata_params:
65
+ type: object
66
+ optional: true
67
+ description: Suno task-specific metadata payload.
68
+ artist_clip_id:
69
+ type: string
70
+ description: Reference hum or vocal clip id.
71
+ taskVariants:
72
+ extend:
73
+ required:
74
+ - continue_clip_id
75
+ upload_extend:
76
+ required:
77
+ - continue_clip_id
78
+ infill:
79
+ required:
80
+ - continue_clip_id
81
+ - metadata_params
82
+ fixed_infill:
83
+ required:
84
+ - continue_clip_id
85
+ - metadata_params
86
+ infill_intro:
87
+ required:
88
+ - continue_clip_id
89
+ - metadata_params
90
+ infill_outro:
91
+ required:
92
+ - continue_clip_id
93
+ - metadata_params
94
+ cover_infill:
95
+ required:
96
+ - continue_clip_id
97
+ - metadata_params
98
+ cover_extend:
99
+ required:
100
+ - continue_clip_id
101
+ artist_infill:
102
+ required:
103
+ - continue_clip_id
104
+ - metadata_params
105
+ artist_consistency:
106
+ required:
107
+ - persona_id
108
+ - artist_clip_id
109
+ cover:
110
+ required:
111
+ - task_id
112
+ - continue_clip_id
113
+ image_to_song:
114
+ requiredContent:
115
+ - image
116
+ required:
117
+ - metadata_params
118
+ video_to_song:
119
+ requiredContent:
120
+ - video
121
+ required:
122
+ - metadata_params
123
+ concat:
124
+ required:
125
+ - clip_id
126
+ sound:
127
+ required:
128
+ - metadata_params
129
+ underpainting:
130
+ required:
131
+ - metadata_params
132
+ overpainting:
133
+ required:
134
+ - metadata_params
135
+ remaster:
136
+ required:
137
+ - metadata_params
138
+ vox:
139
+ required:
140
+ - artist_clip_id
141
+ chop_sample_condition:
142
+ required:
143
+ - metadata_params
144
+ mashup_condition:
145
+ required:
146
+ - metadata_params
147
+ playlist_condition:
148
+ required:
149
+ - metadata_params
@@ -0,0 +1,34 @@
1
+ schema: neta.generation.model.v1
2
+ model: z-image-turbo
3
+ title: Z-Image Turbo
4
+ description: Fast text-to-image generation through Neta Router. Z-Image Turbo accepts prompt text only; it does not support reference images.
5
+ adapter:
6
+ type: openai.images
7
+ content:
8
+ input:
9
+ - type: text
10
+ required: true
11
+ min: 1
12
+ max: 16
13
+ merge: newline
14
+ description: Prompt text.
15
+ parameters:
16
+ size:
17
+ type: string
18
+ optional: true
19
+ default: 1024*1024
20
+ enum:
21
+ - 1024*1024
22
+ - 1536*1024
23
+ - 1024*1536
24
+ - 2048*2048
25
+ description: Output image size.
26
+ examples:
27
+ - title: Text to image
28
+ request:
29
+ model: z-image-turbo
30
+ content:
31
+ - type: text
32
+ text: a clean product-style image of a small red toy robot standing on a white desk
33
+ parameters:
34
+ size: 1024*1024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/generation",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A lightweight multimodal generation SDK with built-in model presets and adapter-based provider calls.",
5
5
  "keywords": [
6
6
  "ai",
@@ -41,6 +41,22 @@
41
41
  "models",
42
42
  "README.md"
43
43
  ],
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "example:basic-image": "node --env-file=.env --experimental-strip-types examples/basic-image.ts",
47
+ "example:image-editing": "node --env-file=.env --experimental-strip-types examples/image-editing.ts",
48
+ "example:music-generation": "node --env-file=.env --experimental-strip-types examples/music-generation.ts",
49
+ "example:text-to-video": "node --env-file=.env --experimental-strip-types examples/text-to-video.ts",
50
+ "typecheck": "tsc -p tsconfig.json --noEmit",
51
+ "test": "vitest run",
52
+ "test:live": "vitest run --config vitest.live.config.ts",
53
+ "test:live:suno": "vitest run --config vitest.live.config.ts test/live/suno-live.test.ts",
54
+ "test:watch": "vitest",
55
+ "lint": "biome check .",
56
+ "lint:fix": "biome check --write .",
57
+ "format": "biome format --write .",
58
+ "prepublishOnly": "pnpm lint && pnpm typecheck && pnpm test && pnpm build"
59
+ },
44
60
  "dependencies": {
45
61
  "yaml": "^2.8.3"
46
62
  },
@@ -54,21 +70,9 @@
54
70
  "engines": {
55
71
  "node": ">=20.0.0"
56
72
  },
73
+ "packageManager": "pnpm@10.32.1",
57
74
  "publishConfig": {
58
75
  "access": "public",
59
76
  "registry": "https://registry.npmjs.org/"
60
- },
61
- "scripts": {
62
- "build": "tsdown",
63
- "example:basic-image": "node --env-file=.env --experimental-strip-types examples/basic-image.ts",
64
- "example:image-editing": "node --env-file=.env --experimental-strip-types examples/image-editing.ts",
65
- "example:music-generation": "node --env-file=.env --experimental-strip-types examples/music-generation.ts",
66
- "example:text-to-video": "node --env-file=.env --experimental-strip-types examples/text-to-video.ts",
67
- "typecheck": "tsc -p tsconfig.json --noEmit",
68
- "test": "vitest run",
69
- "test:watch": "vitest",
70
- "lint": "biome check .",
71
- "lint:fix": "biome check --write .",
72
- "format": "biome format --write ."
73
77
  }
74
- }
78
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtins-BJ2_TVlr.d.ts","names":[],"sources":["../src/types.ts","../src/builtins.ts"],"sourcesContent":[],"mappings":";cAAa;AAAA,KAED,gBAAA,GAFmD;EAEnD,IAAA,EAAA,KAAA;EAEA,GAAA,EAAA,MAAA;AAEZ,CAAA,GAAY;EAC6B,IAAA,EAAA,QAAA;EACZ,SAAA,EAAA,MAAA;EAAyB,IAAA,EAAA,MAAA;CACzB;AAAyB,KAL1C,0BAAA,GAA6B,MAKa,CAAA,MAAA,EAAA,OAAA,CAAA;AACzB,KAJjB,sBAAA,GAIiB;EAAyB,IAAA,EAAA,MAAA;EAA0B,IAAA,EAAA,MAAA;EAEpE,IAAA,CAAA,EAL6B,0BAKR;CAKf,GAAA;EAAN,IAAA,EAAA,OAAA;EAEH,MAAA,EAXoB,gBAWpB;EAAM,IAAA,CAAA,EAXuC,0BAWvC;AAIf,CAAA,GAAY;EAmCA,IAAA,EAAA,OAAA;EAIA,MAAA,EArDiB,gBAqDjB;EAOA,IAAA,CAAA,EA5D0C,0BA4DxB;CACJ,GAAA;EAAf,IAAA,EAAA,OAAA;EAEqB,MAAA,EA9DH,gBA8DG;EAAf,IAAA,CAAA,EA9DqC,0BA8DrC;CAAM;AAGX,KA/DA,qBAAA,GA+D0B;EACrB,IAAA,EAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,OAAA;EASN,QAAA,CAAA,EAAA,OAAA;EAEmB,GAAA,CAAA,EAAA,MAAA;EAAf,GAAA,CAAA,EAAA,MAAA;EACN,OAAA,CAAA,EAvEG,KAuEH,CAvES,gBAuET,CAAA,MAAA,CAAA,CAAA;EAGI,KAAA,CAAA,EAAA,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