@teamimagine/n8n-nodes-imagineart 0.1.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/LICENSE +21 -0
- package/README.md +84 -0
- package/dist/credentials/ImagineArtOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/ImagineArtOAuth2Api.credentials.js +68 -0
- package/dist/credentials/ImagineArtOAuth2Api.credentials.js.map +1 -0
- package/dist/credentials/logo-lg.dark.svg +31 -0
- package/dist/credentials/logo-lg.svg +31 -0
- package/dist/nodes/ImagineArt/ImagineArt.node.d.ts +12 -0
- package/dist/nodes/ImagineArt/ImagineArt.node.js +31 -0
- package/dist/nodes/ImagineArt/ImagineArt.node.js.map +1 -0
- package/dist/nodes/ImagineArt/logo-lg.dark.svg +31 -0
- package/dist/nodes/ImagineArt/logo-lg.svg +31 -0
- package/dist/nodes/ImagineArt/methods/loadOptions.d.ts +12 -0
- package/dist/nodes/ImagineArt/methods/loadOptions.js +69 -0
- package/dist/nodes/ImagineArt/methods/loadOptions.js.map +1 -0
- package/dist/nodes/ImagineArt/shared.d.ts +12 -0
- package/dist/nodes/ImagineArt/shared.js +1778 -0
- package/dist/nodes/ImagineArt/shared.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/adStudio.d.ts +33 -0
- package/dist/nodes/ImagineArt/transport/adStudio.js +150 -0
- package/dist/nodes/ImagineArt/transport/adStudio.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/constants.d.ts +6 -0
- package/dist/nodes/ImagineArt/transport/constants.js +9 -0
- package/dist/nodes/ImagineArt/transport/constants.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/imageModels.d.ts +20 -0
- package/dist/nodes/ImagineArt/transport/imageModels.js +91 -0
- package/dist/nodes/ImagineArt/transport/imageModels.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/prompts.d.ts +17 -0
- package/dist/nodes/ImagineArt/transport/prompts.js +216 -0
- package/dist/nodes/ImagineArt/transport/prompts.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/request.d.ts +39 -0
- package/dist/nodes/ImagineArt/transport/request.js +74 -0
- package/dist/nodes/ImagineArt/transport/request.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/status.d.ts +18 -0
- package/dist/nodes/ImagineArt/transport/status.js +40 -0
- package/dist/nodes/ImagineArt/transport/status.js.map +1 -0
- package/dist/nodes/ImagineArt/transport/videoModels.d.ts +29 -0
- package/dist/nodes/ImagineArt/transport/videoModels.js +95 -0
- package/dist/nodes/ImagineArt/transport/videoModels.js.map +1 -0
- package/dist/package.json +65 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ImagineArt
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# n8n-nodes-imagineart
|
|
2
|
+
|
|
3
|
+
An [n8n](https://n8n.io/) community node for **[ImagineArt](https://www.imagine.art/)**.
|
|
4
|
+
Generate images, video and music, enhance images, remove backgrounds, build
|
|
5
|
+
marketing ads, and manage assets — all from your n8n workflows.
|
|
6
|
+
|
|
7
|
+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
|
|
8
|
+
|
|
9
|
+
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) · [Usage](#usage) · [Compatibility](#compatibility) · [Resources](#resources) · [Version history](#version-history)
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
Self-hosted n8n: **Settings → Community Nodes → Install**, then enter
|
|
14
|
+
`@teamimagine/n8n-nodes-imagineart`. See the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/).
|
|
15
|
+
|
|
16
|
+
## Credentials
|
|
17
|
+
|
|
18
|
+
Authentication uses the **ImagineArt OAuth2 API** credential (OAuth 2.0 + PKCE) —
|
|
19
|
+
no API key required.
|
|
20
|
+
|
|
21
|
+
1. You need an ImagineArt account — sign up at <https://www.imagine.art/>.
|
|
22
|
+
2. Add an **ImagineArt OAuth2 API** credential and click **Connect** to approve
|
|
23
|
+
access in the ImagineArt consent screen.
|
|
24
|
+
3. The Client ID is baked in; the **Client Secret** field is an unused
|
|
25
|
+
placeholder (this is a public PKCE client — leave it as-is).
|
|
26
|
+
|
|
27
|
+
The token authorizes generations against the **Organization** you select on the
|
|
28
|
+
node (loaded from your account).
|
|
29
|
+
|
|
30
|
+
## Operations
|
|
31
|
+
|
|
32
|
+
A single **ImagineArt** node exposes every action, grouped by resource:
|
|
33
|
+
|
|
34
|
+
- **Image** — Generate, Enhance, Remove Background, Generate Logo, Instagram
|
|
35
|
+
Post, Interior Design, YouTube Thumbnail, Giant Product Showcase, UGC Try-On
|
|
36
|
+
- **Video** — Generate, Get Result, Drone, Product Ad, Cooking, Jewelry, 3D Logo
|
|
37
|
+
Animation
|
|
38
|
+
- **Audio** — Generate Music
|
|
39
|
+
- **Ad Studio** — List/Create Products, Avatars, Templates and Projects; Upload
|
|
40
|
+
Image; Get Product Status; Generate Ad
|
|
41
|
+
- **Asset** — List Generations, List Uploaded Assets, Upload
|
|
42
|
+
- **Account** — Get Balance
|
|
43
|
+
|
|
44
|
+
The node is also usable as an **AI Agent tool**.
|
|
45
|
+
|
|
46
|
+
Which model each operation uses (and the valid aspect ratios / durations /
|
|
47
|
+
resolutions per model) is documented in
|
|
48
|
+
[docs/TESTING.md](docs/TESTING.md#models).
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
- **Every generation is asynchronous (Submit + Get Result).** Generate/enhance/
|
|
53
|
+
ad/music/video actions return a queued `assetId`; poll the matching **Get
|
|
54
|
+
Result** action (Image / Video / Music / Ad Studio) — typically behind a
|
|
55
|
+
**Wait** node with an **If** loop — to download the finished media as a binary.
|
|
56
|
+
- **Chained recipes** (cooking, jewelry, 3D logo) submit their first image stage
|
|
57
|
+
and **auto-advance** to the video on the next poll, so one Get Result loop
|
|
58
|
+
carries the whole recipe to the final clip.
|
|
59
|
+
- Image-input operations (Enhance, Remove Background, Product Ad, 3D Logo, …)
|
|
60
|
+
accept a public image URL — chain the `url` a previous generation returns, so
|
|
61
|
+
whole pipelines can run from a single prompt without uploading files.
|
|
62
|
+
|
|
63
|
+
Ready-to-paste prompts and configs for every operation, plus two end-to-end
|
|
64
|
+
example workflows with Mermaid diagrams, are in
|
|
65
|
+
[docs/TESTING.md](docs/TESTING.md).
|
|
66
|
+
|
|
67
|
+
## Compatibility
|
|
68
|
+
|
|
69
|
+
Developed and tested against n8n 2.28.x on Node.js 22. Installable on
|
|
70
|
+
**self-hosted** n8n today.
|
|
71
|
+
|
|
72
|
+
> **n8n Cloud eligible.** The node uses no in-process timers or runtime
|
|
73
|
+
> dependencies and passes the verified-node lint (`npx n8n-node cloud-support`
|
|
74
|
+
> reports *eligible*). Listing on n8n Cloud still requires submitting it through
|
|
75
|
+
> the [n8n Creator Portal](https://creators.n8n.io/nodes).
|
|
76
|
+
|
|
77
|
+
## Resources
|
|
78
|
+
|
|
79
|
+
- [ImagineArt](https://www.imagine.art/)
|
|
80
|
+
- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
|
|
81
|
+
|
|
82
|
+
## Version history
|
|
83
|
+
|
|
84
|
+
See [CHANGELOG.md](CHANGELOG.md).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class ImagineArtOAuth2Api implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
extends: string[];
|
|
7
|
+
documentationUrl: string;
|
|
8
|
+
properties: INodeProperties[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImagineArtOAuth2Api = void 0;
|
|
4
|
+
const AUTHORIZE_URL = 'https://imagine.art/plugins/authorize';
|
|
5
|
+
const TOKEN_URL = 'https://auth.vyro.ai/apis/v1/mcp/token';
|
|
6
|
+
const CLIENT_ID = 'mcp_R3Ll1yO9oPU57n7R45f-lT1_kwu9jPfMfjmG9TI4l6A';
|
|
7
|
+
class ImagineArtOAuth2Api {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.name = 'imagineArtOAuth2Api';
|
|
10
|
+
this.displayName = 'ImagineArt OAuth2 API';
|
|
11
|
+
this.icon = { light: 'file:logo-lg.svg', dark: 'file:logo-lg.dark.svg' };
|
|
12
|
+
this.extends = ['oAuth2Api'];
|
|
13
|
+
this.documentationUrl = 'https://docs.imagine.art';
|
|
14
|
+
this.properties = [
|
|
15
|
+
{
|
|
16
|
+
displayName: 'Grant Type',
|
|
17
|
+
name: 'grantType',
|
|
18
|
+
type: 'hidden',
|
|
19
|
+
default: 'pkce',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Client ID',
|
|
23
|
+
name: 'clientId',
|
|
24
|
+
type: 'hidden',
|
|
25
|
+
default: CLIENT_ID,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Client Secret',
|
|
29
|
+
name: 'clientSecret',
|
|
30
|
+
type: 'hidden',
|
|
31
|
+
typeOptions: { password: true },
|
|
32
|
+
default: 'pkce',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Authorization URL',
|
|
36
|
+
name: 'authUrl',
|
|
37
|
+
type: 'hidden',
|
|
38
|
+
default: AUTHORIZE_URL,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: 'Access Token URL',
|
|
42
|
+
name: 'accessTokenUrl',
|
|
43
|
+
type: 'hidden',
|
|
44
|
+
default: TOKEN_URL,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Scope',
|
|
48
|
+
name: 'scope',
|
|
49
|
+
type: 'hidden',
|
|
50
|
+
default: 'mcp:tools',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Auth URI Query Parameters',
|
|
54
|
+
name: 'authQueryParameters',
|
|
55
|
+
type: 'hidden',
|
|
56
|
+
default: 'app=n8n',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Authentication',
|
|
60
|
+
name: 'authentication',
|
|
61
|
+
type: 'hidden',
|
|
62
|
+
default: 'header',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.ImagineArtOAuth2Api = ImagineArtOAuth2Api;
|
|
68
|
+
//# sourceMappingURL=ImagineArtOAuth2Api.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagineArtOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/ImagineArtOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAMA,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAC9D,MAAM,SAAS,GAAG,wCAAwC,CAAC;AAI3D,MAAM,SAAS,GAAG,iDAAiD,CAAC;AAEpE,MAAa,mBAAmB;IAAhC;QACC,SAAI,GAAG,qBAAqB,CAAC;QAE7B,gBAAW,GAAG,uBAAuB,CAAC;QAEtC,SAAI,GAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;QAE1E,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,qBAAgB,GAAG,0BAA0B,CAAC;QAE9C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;aAClB;YACD;gBAGC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,aAAa;aACtB;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;aAClB;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;aACpB;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;aAClB;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AAhED,kDAgEC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg width="60" height="60" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.9951 5.31905C19.9951 2.38095 17.6147 0 14.6773 0H5.28918C2.36609 0 0 2.37143 0 5.29048V14.7143C0 17.6333 2.36609 20 5.28918 20H14.7107C17.629 20 19.9998 17.6286 19.9998 14.7095V5.31905H19.9951Z" fill="url(#ia_bg)"/>
|
|
3
|
+
<path d="M9.99767 16.0524C10.9308 13.2524 13.1445 10.9715 16.0486 10.0048C13.1445 9.03814 10.9308 6.75242 9.99767 3.95242C9.06457 6.75242 6.85082 9.03338 3.94678 10C6.85082 10.9667 9.06457 13.2524 9.99767 16.0524Z" fill="url(#ia_spark)"/>
|
|
4
|
+
<path d="M19.9952 5.18092L18.5384 4.82854L14.2919 3.63806C13.7158 7.47139 16.0914 7.62854 18.1909 8.11901C19.1954 8.35235 20 8.77139 20 10.2619V5.31901C20 5.27139 20 5.22854 20 5.18092H19.9952Z" fill="url(#ia_accent)"/>
|
|
5
|
+
<path d="M1.80926 11.881C0.804747 11.6476 0.000183105 11.2333 0.000183105 9.7381V14.7143C0.000183105 14.7524 0.000183105 14.7857 0.000183105 14.8238L1.45697 15.1762L5.70354 16.3667C6.27959 12.5333 3.90399 12.3762 1.8045 11.8857L1.80926 11.881Z" fill="white"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient id="ia_bg" x1="1.54724" y1="18.4524" x2="18.4425" y2="1.5613" gradientUnits="userSpaceOnUse">
|
|
8
|
+
<stop stop-color="#240E77"/>
|
|
9
|
+
<stop offset="0.57" stop-color="#34195B"/>
|
|
10
|
+
<stop offset="1" stop-color="#4E2B78"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="ia_spark" x1="6.71752" y1="13.281" x2="13.2032" y2="6.80164" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#FBF9FF"/>
|
|
14
|
+
<stop offset="0.05" stop-color="#E6E0F8"/>
|
|
15
|
+
<stop offset="0.14" stop-color="#CABFEF"/>
|
|
16
|
+
<stop offset="0.23" stop-color="#B5A5E8"/>
|
|
17
|
+
<stop offset="0.32" stop-color="#A693E2"/>
|
|
18
|
+
<stop offset="0.41" stop-color="#9C88DF"/>
|
|
19
|
+
<stop offset="0.52" stop-color="#9A85DF"/>
|
|
20
|
+
<stop offset="0.62" stop-color="#A189E1"/>
|
|
21
|
+
<stop offset="0.77" stop-color="#B694EA"/>
|
|
22
|
+
<stop offset="0.95" stop-color="#D8A6F7"/>
|
|
23
|
+
<stop offset="0.96" stop-color="#DAA7F8"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<linearGradient id="ia_accent" x1="14.687" y1="7.72854" x2="20.2049" y2="5.9817" gradientUnits="userSpaceOnUse">
|
|
26
|
+
<stop stop-color="#CC98F8"/>
|
|
27
|
+
<stop offset="0.57" stop-color="#F2C2FA"/>
|
|
28
|
+
<stop offset="1" stop-color="white"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
</defs>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg width="60" height="60" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.9951 5.31905C19.9951 2.38095 17.6147 0 14.6773 0H5.28918C2.36609 0 0 2.37143 0 5.29048V14.7143C0 17.6333 2.36609 20 5.28918 20H14.7107C17.629 20 19.9998 17.6286 19.9998 14.7095V5.31905H19.9951Z" fill="url(#ia_bg)"/>
|
|
3
|
+
<path d="M9.99767 16.0524C10.9308 13.2524 13.1445 10.9715 16.0486 10.0048C13.1445 9.03814 10.9308 6.75242 9.99767 3.95242C9.06457 6.75242 6.85082 9.03338 3.94678 10C6.85082 10.9667 9.06457 13.2524 9.99767 16.0524Z" fill="url(#ia_spark)"/>
|
|
4
|
+
<path d="M19.9952 5.18092L18.5384 4.82854L14.2919 3.63806C13.7158 7.47139 16.0914 7.62854 18.1909 8.11901C19.1954 8.35235 20 8.77139 20 10.2619V5.31901C20 5.27139 20 5.22854 20 5.18092H19.9952Z" fill="url(#ia_accent)"/>
|
|
5
|
+
<path d="M1.80926 11.881C0.804747 11.6476 0.000183105 11.2333 0.000183105 9.7381V14.7143C0.000183105 14.7524 0.000183105 14.7857 0.000183105 14.8238L1.45697 15.1762L5.70354 16.3667C6.27959 12.5333 3.90399 12.3762 1.8045 11.8857L1.80926 11.881Z" fill="white"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient id="ia_bg" x1="1.54724" y1="18.4524" x2="18.4425" y2="1.5613" gradientUnits="userSpaceOnUse">
|
|
8
|
+
<stop stop-color="#240E77"/>
|
|
9
|
+
<stop offset="0.57" stop-color="#34195B"/>
|
|
10
|
+
<stop offset="1" stop-color="#4E2B78"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="ia_spark" x1="6.71752" y1="13.281" x2="13.2032" y2="6.80164" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#FBF9FF"/>
|
|
14
|
+
<stop offset="0.05" stop-color="#E6E0F8"/>
|
|
15
|
+
<stop offset="0.14" stop-color="#CABFEF"/>
|
|
16
|
+
<stop offset="0.23" stop-color="#B5A5E8"/>
|
|
17
|
+
<stop offset="0.32" stop-color="#A693E2"/>
|
|
18
|
+
<stop offset="0.41" stop-color="#9C88DF"/>
|
|
19
|
+
<stop offset="0.52" stop-color="#9A85DF"/>
|
|
20
|
+
<stop offset="0.62" stop-color="#A189E1"/>
|
|
21
|
+
<stop offset="0.77" stop-color="#B694EA"/>
|
|
22
|
+
<stop offset="0.95" stop-color="#D8A6F7"/>
|
|
23
|
+
<stop offset="0.96" stop-color="#DAA7F8"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<linearGradient id="ia_accent" x1="14.687" y1="7.72854" x2="20.2049" y2="5.9817" gradientUnits="userSpaceOnUse">
|
|
26
|
+
<stop stop-color="#CC98F8"/>
|
|
27
|
+
<stop offset="0.57" stop-color="#F2C2FA"/>
|
|
28
|
+
<stop offset="1" stop-color="white"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
</defs>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class ImagineArt implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getOrganizations: typeof import("./methods/loadOptions").getOrganizations;
|
|
7
|
+
getFolders: typeof import("./methods/loadOptions").getFolders;
|
|
8
|
+
getMarketProjects: typeof import("./methods/loadOptions").getMarketProjects;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImagineArt = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const shared_1 = require("./shared");
|
|
6
|
+
const CREDENTIAL = 'imagineArtOAuth2Api';
|
|
7
|
+
class ImagineArt {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.description = {
|
|
10
|
+
displayName: 'ImagineArt',
|
|
11
|
+
name: 'imagineArt',
|
|
12
|
+
icon: { light: 'file:logo-lg.svg', dark: 'file:logo-lg.dark.svg' },
|
|
13
|
+
group: ['transform'],
|
|
14
|
+
version: [1],
|
|
15
|
+
subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
|
|
16
|
+
description: 'Generate images, video and music, enhance images, remove backgrounds, and manage assets with ImagineArt',
|
|
17
|
+
defaults: { name: 'ImagineArt' },
|
|
18
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
credentials: [{ name: CREDENTIAL, required: true }],
|
|
22
|
+
properties: [shared_1.RESOURCE_DROPDOWN, ...shared_1.OPERATION_DROPDOWNS, ...shared_1.SHARED_FIELDS],
|
|
23
|
+
};
|
|
24
|
+
this.methods = { loadOptions: shared_1.LOAD_OPTIONS };
|
|
25
|
+
}
|
|
26
|
+
async execute() {
|
|
27
|
+
return shared_1.executeImagineArt.call(this);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ImagineArt = ImagineArt;
|
|
31
|
+
//# sourceMappingURL=ImagineArt.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagineArt.node.js","sourceRoot":"","sources":["../../../nodes/ImagineArt/ImagineArt.node.ts"],"names":[],"mappings":";;;AAMA,+CAAmD;AAEnD,qCAMkB;AAElB,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAKzC,MAAa,UAAU;IAAvB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,uBAAuB,EAAE;YAClE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC,CAAC,CAAC;YACZ,QAAQ,EAAE,gEAAgE;YAC1E,WAAW,EACV,yGAAyG;YAC1G,QAAQ,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;YAChC,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACnD,UAAU,EAAE,CAAC,0BAAiB,EAAE,GAAG,4BAAmB,EAAE,GAAG,sBAAa,CAAC;SACzE,CAAC;QAEF,YAAO,GAAG,EAAE,WAAW,EAAE,qBAAY,EAAE,CAAC;IAOzC,CAAC;IAHA,KAAK,CAAC,OAAO;QACZ,OAAO,0BAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACD;AAzBD,gCAyBC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg width="60" height="60" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.9951 5.31905C19.9951 2.38095 17.6147 0 14.6773 0H5.28918C2.36609 0 0 2.37143 0 5.29048V14.7143C0 17.6333 2.36609 20 5.28918 20H14.7107C17.629 20 19.9998 17.6286 19.9998 14.7095V5.31905H19.9951Z" fill="url(#ia_bg)"/>
|
|
3
|
+
<path d="M9.99767 16.0524C10.9308 13.2524 13.1445 10.9715 16.0486 10.0048C13.1445 9.03814 10.9308 6.75242 9.99767 3.95242C9.06457 6.75242 6.85082 9.03338 3.94678 10C6.85082 10.9667 9.06457 13.2524 9.99767 16.0524Z" fill="url(#ia_spark)"/>
|
|
4
|
+
<path d="M19.9952 5.18092L18.5384 4.82854L14.2919 3.63806C13.7158 7.47139 16.0914 7.62854 18.1909 8.11901C19.1954 8.35235 20 8.77139 20 10.2619V5.31901C20 5.27139 20 5.22854 20 5.18092H19.9952Z" fill="url(#ia_accent)"/>
|
|
5
|
+
<path d="M1.80926 11.881C0.804747 11.6476 0.000183105 11.2333 0.000183105 9.7381V14.7143C0.000183105 14.7524 0.000183105 14.7857 0.000183105 14.8238L1.45697 15.1762L5.70354 16.3667C6.27959 12.5333 3.90399 12.3762 1.8045 11.8857L1.80926 11.881Z" fill="white"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient id="ia_bg" x1="1.54724" y1="18.4524" x2="18.4425" y2="1.5613" gradientUnits="userSpaceOnUse">
|
|
8
|
+
<stop stop-color="#240E77"/>
|
|
9
|
+
<stop offset="0.57" stop-color="#34195B"/>
|
|
10
|
+
<stop offset="1" stop-color="#4E2B78"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="ia_spark" x1="6.71752" y1="13.281" x2="13.2032" y2="6.80164" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#FBF9FF"/>
|
|
14
|
+
<stop offset="0.05" stop-color="#E6E0F8"/>
|
|
15
|
+
<stop offset="0.14" stop-color="#CABFEF"/>
|
|
16
|
+
<stop offset="0.23" stop-color="#B5A5E8"/>
|
|
17
|
+
<stop offset="0.32" stop-color="#A693E2"/>
|
|
18
|
+
<stop offset="0.41" stop-color="#9C88DF"/>
|
|
19
|
+
<stop offset="0.52" stop-color="#9A85DF"/>
|
|
20
|
+
<stop offset="0.62" stop-color="#A189E1"/>
|
|
21
|
+
<stop offset="0.77" stop-color="#B694EA"/>
|
|
22
|
+
<stop offset="0.95" stop-color="#D8A6F7"/>
|
|
23
|
+
<stop offset="0.96" stop-color="#DAA7F8"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<linearGradient id="ia_accent" x1="14.687" y1="7.72854" x2="20.2049" y2="5.9817" gradientUnits="userSpaceOnUse">
|
|
26
|
+
<stop stop-color="#CC98F8"/>
|
|
27
|
+
<stop offset="0.57" stop-color="#F2C2FA"/>
|
|
28
|
+
<stop offset="1" stop-color="white"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
</defs>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg width="60" height="60" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.9951 5.31905C19.9951 2.38095 17.6147 0 14.6773 0H5.28918C2.36609 0 0 2.37143 0 5.29048V14.7143C0 17.6333 2.36609 20 5.28918 20H14.7107C17.629 20 19.9998 17.6286 19.9998 14.7095V5.31905H19.9951Z" fill="url(#ia_bg)"/>
|
|
3
|
+
<path d="M9.99767 16.0524C10.9308 13.2524 13.1445 10.9715 16.0486 10.0048C13.1445 9.03814 10.9308 6.75242 9.99767 3.95242C9.06457 6.75242 6.85082 9.03338 3.94678 10C6.85082 10.9667 9.06457 13.2524 9.99767 16.0524Z" fill="url(#ia_spark)"/>
|
|
4
|
+
<path d="M19.9952 5.18092L18.5384 4.82854L14.2919 3.63806C13.7158 7.47139 16.0914 7.62854 18.1909 8.11901C19.1954 8.35235 20 8.77139 20 10.2619V5.31901C20 5.27139 20 5.22854 20 5.18092H19.9952Z" fill="url(#ia_accent)"/>
|
|
5
|
+
<path d="M1.80926 11.881C0.804747 11.6476 0.000183105 11.2333 0.000183105 9.7381V14.7143C0.000183105 14.7524 0.000183105 14.7857 0.000183105 14.8238L1.45697 15.1762L5.70354 16.3667C6.27959 12.5333 3.90399 12.3762 1.8045 11.8857L1.80926 11.881Z" fill="white"/>
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient id="ia_bg" x1="1.54724" y1="18.4524" x2="18.4425" y2="1.5613" gradientUnits="userSpaceOnUse">
|
|
8
|
+
<stop stop-color="#240E77"/>
|
|
9
|
+
<stop offset="0.57" stop-color="#34195B"/>
|
|
10
|
+
<stop offset="1" stop-color="#4E2B78"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="ia_spark" x1="6.71752" y1="13.281" x2="13.2032" y2="6.80164" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#FBF9FF"/>
|
|
14
|
+
<stop offset="0.05" stop-color="#E6E0F8"/>
|
|
15
|
+
<stop offset="0.14" stop-color="#CABFEF"/>
|
|
16
|
+
<stop offset="0.23" stop-color="#B5A5E8"/>
|
|
17
|
+
<stop offset="0.32" stop-color="#A693E2"/>
|
|
18
|
+
<stop offset="0.41" stop-color="#9C88DF"/>
|
|
19
|
+
<stop offset="0.52" stop-color="#9A85DF"/>
|
|
20
|
+
<stop offset="0.62" stop-color="#A189E1"/>
|
|
21
|
+
<stop offset="0.77" stop-color="#B694EA"/>
|
|
22
|
+
<stop offset="0.95" stop-color="#D8A6F7"/>
|
|
23
|
+
<stop offset="0.96" stop-color="#DAA7F8"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<linearGradient id="ia_accent" x1="14.687" y1="7.72854" x2="20.2049" y2="5.9817" gradientUnits="userSpaceOnUse">
|
|
26
|
+
<stop stop-color="#CC98F8"/>
|
|
27
|
+
<stop offset="0.57" stop-color="#F2C2FA"/>
|
|
28
|
+
<stop offset="1" stop-color="white"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
</defs>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare function mapOrgsToOptions(body: unknown): Array<{
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function getOrganizations(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
export declare function mapFoldersToOptions(body: unknown, workspace: string): Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function getFolders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
12
|
+
export declare function getMarketProjects(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapOrgsToOptions = mapOrgsToOptions;
|
|
4
|
+
exports.getOrganizations = getOrganizations;
|
|
5
|
+
exports.mapFoldersToOptions = mapFoldersToOptions;
|
|
6
|
+
exports.getFolders = getFolders;
|
|
7
|
+
exports.getMarketProjects = getMarketProjects;
|
|
8
|
+
const constants_1 = require("../transport/constants");
|
|
9
|
+
const adStudio_1 = require("../transport/adStudio");
|
|
10
|
+
function mapOrgsToOptions(body) {
|
|
11
|
+
const data = body === null || body === void 0 ? void 0 : body.data;
|
|
12
|
+
if (!Array.isArray(data))
|
|
13
|
+
return [];
|
|
14
|
+
return data
|
|
15
|
+
.filter((o) => o === null || o === void 0 ? void 0 : o.id)
|
|
16
|
+
.map((o) => { var _a; return ({ name: (_a = o.name) !== null && _a !== void 0 ? _a : o.id, value: o.id }); });
|
|
17
|
+
}
|
|
18
|
+
async function getOrganizations() {
|
|
19
|
+
const { team } = constants_1.BASE_URLS;
|
|
20
|
+
const body = await this.helpers.httpRequestWithAuthentication.call(this, 'imagineArtOAuth2Api', {
|
|
21
|
+
method: 'GET',
|
|
22
|
+
url: `${team}/org`,
|
|
23
|
+
json: true,
|
|
24
|
+
});
|
|
25
|
+
return mapOrgsToOptions(body);
|
|
26
|
+
}
|
|
27
|
+
function mapFoldersToOptions(body, workspace) {
|
|
28
|
+
const data = body === null || body === void 0 ? void 0 : body.data;
|
|
29
|
+
if (!Array.isArray(data))
|
|
30
|
+
return [];
|
|
31
|
+
return data
|
|
32
|
+
.filter((f) => (f === null || f === void 0 ? void 0 : f.id) && f.category === 'folder')
|
|
33
|
+
.map((f) => { var _a, _b; return ({ name: `${(_b = (_a = f.title) !== null && _a !== void 0 ? _a : f.name) !== null && _b !== void 0 ? _b : f.id} (${workspace})`, value: f.id }); });
|
|
34
|
+
}
|
|
35
|
+
async function getFolders() {
|
|
36
|
+
var _a;
|
|
37
|
+
const { team } = constants_1.BASE_URLS;
|
|
38
|
+
const orgId = (_a = this.getCurrentNodeParameter('organization')) !== null && _a !== void 0 ? _a : '';
|
|
39
|
+
if (!orgId)
|
|
40
|
+
return [];
|
|
41
|
+
const url = (isPersonal) => `${team}/org/asset/?org_id=${encodeURIComponent(orgId)}&is_personal=${isPersonal}`;
|
|
42
|
+
const [priv, pub] = await Promise.all([
|
|
43
|
+
this.helpers.httpRequestWithAuthentication.call(this, 'imagineArtOAuth2Api', {
|
|
44
|
+
method: 'GET',
|
|
45
|
+
url: url(true),
|
|
46
|
+
json: true,
|
|
47
|
+
}),
|
|
48
|
+
this.helpers.httpRequestWithAuthentication.call(this, 'imagineArtOAuth2Api', {
|
|
49
|
+
method: 'GET',
|
|
50
|
+
url: url(false),
|
|
51
|
+
json: true,
|
|
52
|
+
}),
|
|
53
|
+
]);
|
|
54
|
+
return [...mapFoldersToOptions(priv, 'private'), ...mapFoldersToOptions(pub, 'public')];
|
|
55
|
+
}
|
|
56
|
+
async function getMarketProjects() {
|
|
57
|
+
var _a;
|
|
58
|
+
const { vag } = constants_1.BASE_URLS;
|
|
59
|
+
const folderId = (_a = this.getCurrentNodeParameter('folderId')) !== null && _a !== void 0 ? _a : '';
|
|
60
|
+
if (!folderId)
|
|
61
|
+
return [];
|
|
62
|
+
const body = await this.helpers.httpRequestWithAuthentication.call(this, 'imagineArtOAuth2Api', {
|
|
63
|
+
method: 'GET',
|
|
64
|
+
url: `${vag}/marketing-mode/projects?folder_id=${encodeURIComponent(folderId)}`,
|
|
65
|
+
json: true,
|
|
66
|
+
});
|
|
67
|
+
return (0, adStudio_1.mapProjectsToOptions)(body);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=loadOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../nodes/ImagineArt/methods/loadOptions.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { getFolders, getMarketProjects, getOrganizations } from './methods/loadOptions';
|
|
3
|
+
export declare const SHARED_FIELDS: INodeProperties[];
|
|
4
|
+
export declare const LOAD_OPTIONS: {
|
|
5
|
+
getOrganizations: typeof getOrganizations;
|
|
6
|
+
getFolders: typeof getFolders;
|
|
7
|
+
getMarketProjects: typeof getMarketProjects;
|
|
8
|
+
};
|
|
9
|
+
export declare const RESOURCE_DROPDOWN: INodeProperties;
|
|
10
|
+
export declare function operationDropdownFor(resource: string): INodeProperties;
|
|
11
|
+
export declare const OPERATION_DROPDOWNS: INodeProperties[];
|
|
12
|
+
export declare function executeImagineArt(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|