n8n-nodes-googleflow-ai 1.0.0 → 1.0.2
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 +4 -5
- package/dist/dist/credentials/googleFlowCredentialsApi.credentials.d.ts +9 -0
- package/dist/dist/credentials/googleFlowCredentialsApi.credentials.d.ts.map +1 -0
- package/dist/dist/credentials/googleFlowCredentialsApi.credentials.js +32 -0
- package/dist/dist/credentials/googleFlowCredentialsApi.credentials.js.map +1 -0
- package/dist/dist/credentials/icon.png +0 -0
- package/dist/dist/credentials/jimengCredentialsApi.credentials.d.ts +8 -0
- package/dist/dist/credentials/jimengCredentialsApi.credentials.js +22 -0
- package/dist/dist/credentials/jimengCredentialsApi.credentials.js.map +1 -0
- package/dist/dist/nodes/googleflow/GoogleFlow.node.d.ts +9 -0
- package/dist/dist/nodes/googleflow/GoogleFlow.node.d.ts.map +1 -0
- package/dist/dist/nodes/googleflow/GoogleFlow.node.js +151 -0
- package/dist/dist/nodes/googleflow/GoogleFlow.node.js.map +1 -0
- package/dist/dist/nodes/googleflow/icon.png +0 -0
- package/dist/dist/nodes/googleflow/resource/imageGenerate.d.ts +67 -0
- package/dist/dist/nodes/googleflow/resource/imageGenerate.d.ts.map +1 -0
- package/dist/dist/nodes/googleflow/resource/imageGenerate.js +168 -0
- package/dist/dist/nodes/googleflow/resource/imageGenerate.js.map +1 -0
- package/dist/dist/nodes/googleflow/resource/index.d.ts +3 -0
- package/dist/dist/nodes/googleflow/resource/index.d.ts.map +1 -0
- package/dist/dist/nodes/googleflow/resource/index.js +11 -0
- package/dist/dist/nodes/googleflow/resource/index.js.map +1 -0
- package/dist/dist/nodes/googleflow/resource/videoGenerate.d.ts +84 -0
- package/dist/dist/nodes/googleflow/resource/videoGenerate.d.ts.map +1 -0
- package/dist/dist/nodes/googleflow/resource/videoGenerate.js +200 -0
- package/dist/dist/nodes/googleflow/resource/videoGenerate.js.map +1 -0
- package/dist/dist/nodes/help/dreamina.d.ts +86 -0
- package/dist/dist/nodes/help/dreamina.js +778 -0
- package/dist/dist/nodes/help/dreamina.js.map +1 -0
- package/dist/dist/nodes/help/googleflow.d.ts +57 -0
- package/dist/dist/nodes/help/googleflow.d.ts.map +1 -0
- package/dist/dist/nodes/help/googleflow.js +227 -0
- package/dist/dist/nodes/help/googleflow.js.map +1 -0
- package/dist/dist/nodes/help/jimeng.d.ts +83 -0
- package/dist/dist/nodes/help/jimeng.js +779 -0
- package/dist/dist/nodes/help/jimeng.js.map +1 -0
- package/dist/dist/nodes/help/util.d.ts +45 -0
- package/dist/dist/nodes/help/util.js +320 -0
- package/dist/dist/nodes/help/util.js.map +1 -0
- package/dist/dist/nodes/jimeng/Jimeng.node.d.ts +8 -0
- package/dist/dist/nodes/jimeng/Jimeng.node.js +83 -0
- package/dist/dist/nodes/jimeng/Jimeng.node.js.map +1 -0
- package/dist/dist/nodes/jimeng/icon.png +0 -0
- package/dist/dist/nodes/jimeng/resource/dreamina.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/dreamina.js +8 -0
- package/dist/dist/nodes/jimeng/resource/dreamina.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/desc.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/desc.js +37 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/desc.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/img.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/img.js +151 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/img.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/text.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/text.js +122 -0
- package/dist/dist/nodes/jimeng/resource/dreaminaImg/text.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/img/desc.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/img/desc.js +30 -0
- package/dist/dist/nodes/jimeng/resource/img/desc.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/img/img.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/img/img.js +156 -0
- package/dist/dist/nodes/jimeng/resource/img/img.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/img/text.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/img/text.js +116 -0
- package/dist/dist/nodes/jimeng/resource/img/text.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/testtoimg.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/testtoimg.js +8 -0
- package/dist/dist/nodes/jimeng/resource/testtoimg.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/video/desc.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/video/desc.js +30 -0
- package/dist/dist/nodes/jimeng/resource/video/desc.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/video/img.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/video/img.js +92 -0
- package/dist/dist/nodes/jimeng/resource/video/img.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/video/text.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/video/text.js +103 -0
- package/dist/dist/nodes/jimeng/resource/video/text.js.map +1 -0
- package/dist/dist/nodes/jimeng/resource/video.d.ts +3 -0
- package/dist/dist/nodes/jimeng/resource/video.js +8 -0
- package/dist/dist/nodes/jimeng/resource/video.js.map +1 -0
- package/dist/dist/package.json +55 -0
- package/dist/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/nodes/googleflow/GoogleFlow.node.d.ts.map +1 -1
- package/dist/nodes/googleflow/GoogleFlow.node.js +92 -20
- package/dist/nodes/googleflow/GoogleFlow.node.js.map +1 -1
- package/package.json +55 -54
- package/LICENSE.md +0 -19
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# n8n-nodes-googleflow
|
|
1
|
+
# n8n-nodes-googleflow
|
|
2
2
|
|
|
3
3
|
Google Flow (Nano Banana / Veo) AI 图像和视频生成节点 for n8n
|
|
4
4
|
|
|
@@ -25,13 +25,13 @@ Google Flow (Nano Banana / Veo) AI 图像和视频生成节点 for n8n
|
|
|
25
25
|
1. 打开 n8n
|
|
26
26
|
2. 进入 **Settings** → **Community Nodes**
|
|
27
27
|
3. 点击 **Install**
|
|
28
|
-
4. 搜索 `n8n-nodes-googleflow
|
|
28
|
+
4. 搜索 `n8n-nodes-googleflow`
|
|
29
29
|
5. 点击安装
|
|
30
30
|
|
|
31
31
|
### 方法 2:使用 npm 安装
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npm install n8n-nodes-googleflow
|
|
34
|
+
npm install n8n-nodes-googleflow
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### 方法 3:Docker 安装
|
|
@@ -238,7 +238,7 @@ A: 支持 1:1, 16:9, 9:16, 4:3, 3:4 等多种宽高比
|
|
|
238
238
|
|
|
239
239
|
- **GitHub**: https://github.com/webcpy/n8n-pluguns
|
|
240
240
|
- **Issues**: https://github.com/webcpy/n8n-pluguns/issues
|
|
241
|
-
- **npm**: https://www.npmjs.com/package/n8n-nodes-googleflow
|
|
241
|
+
- **npm**: https://www.npmjs.com/package/n8n-nodes-googleflow
|
|
242
242
|
|
|
243
243
|
## 更新日志
|
|
244
244
|
|
|
@@ -257,4 +257,3 @@ MIT License
|
|
|
257
257
|
## 作者
|
|
258
258
|
|
|
259
259
|
webcpy <webcpy@163.com>
|
|
260
|
-
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
|
+
export declare class googleFlowCredentialsApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=googleFlowCredentialsApi.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleFlowCredentialsApi.credentials.d.ts","sourceRoot":"","sources":["../../src/credentials/googleFlowCredentialsApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3E,qBAAa,wBAAyB,YAAW,eAAe;IAC5D,IAAI,SAA8B;IAClC,WAAW,SAAiC;IAC5C,gBAAgB,SAA0C;IAC1D,IAAI,EAAE,IAAI,CAAmB;IAC7B,UAAU,EAAE,eAAe,EAAE,CAkB3B;CACL"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googleFlowCredentialsApi = void 0;
|
|
4
|
+
class googleFlowCredentialsApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'googleFlowCredentialsApi';
|
|
7
|
+
this.displayName = 'Google Flow Credentials API';
|
|
8
|
+
this.documentationUrl = 'https://labs.google/fx/zh/tools/flow';
|
|
9
|
+
this.icon = 'file:icon.png';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Bearer Token',
|
|
13
|
+
name: 'bearerToken',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
description: '从 Google Flow 网页抓取到的 Bearer Token(Authorization header 中的值)',
|
|
17
|
+
typeOptions: {
|
|
18
|
+
password: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Project ID',
|
|
23
|
+
name: 'projectId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: '',
|
|
26
|
+
description: 'Google Flow 项目 ID(从 URL 中获取,例如:5627476b-489f-4aa9-9565-509e39d6b25c)',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.googleFlowCredentialsApi = googleFlowCredentialsApi;
|
|
32
|
+
//# sourceMappingURL=googleFlowCredentialsApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleFlowCredentialsApi.credentials.js","sourceRoot":"","sources":["../../src/credentials/googleFlowCredentialsApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;IAArC;QACI,SAAI,GAAG,0BAA0B,CAAC;QAClC,gBAAW,GAAG,6BAA6B,CAAC;QAC5C,qBAAgB,GAAG,sCAAsC,CAAC;QAC1D,SAAI,GAAS,eAAe,CAAC;QAC7B,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAiB;gBACvB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6DAA6D;gBAC1E,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAiB;gBACvB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sEAAsE;aACtF;SACJ,CAAC;IACN,CAAC;CAAA;AAxBD,4DAwBC"}
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jimengCredentialsApi = void 0;
|
|
4
|
+
class jimengCredentialsApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'jimengCredentialsApi';
|
|
7
|
+
this.displayName = 'jimeng Credentials API';
|
|
8
|
+
this.documentationUrl = "https://wcnejkpmpmu0.feishu.cn/wiki/YyiOwL4JzifOjvkv9uXcUFmDnVf?fromScene=spaceOverview";
|
|
9
|
+
this.icon = 'file:icon.png';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'sessionid',
|
|
13
|
+
name: 'sessionid',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
description: '用来替代凭证中即梦sessionid',
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.jimengCredentialsApi = jimengCredentialsApi;
|
|
22
|
+
//# sourceMappingURL=jimengCredentialsApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jimengCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/jimengCredentialsApi.credentials.ts"],"names":[],"mappings":";;;AAMA,MAAa,oBAAoB;IAAjC;QACE,SAAI,GAAG,sBAAsB,CAAC;QAC9B,gBAAW,GAAG,wBAAwB,CAAC;QACvC,qBAAgB,GAAC,yFAAyF,CAAA;QAE1G,SAAI,GAAG,eAAe,CAAC;QACvB,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oBAAoB;aAClC;SACF,CAAC;IACJ,CAAC;CAAA;AAfD,oDAeC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { INodeType, INodeTypeDescription, IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export declare class GoogleFlow implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {};
|
|
6
|
+
};
|
|
7
|
+
execute(this: IExecuteFunctions): Promise<any[][]>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=GoogleFlow.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleFlow.node.d.ts","sourceRoot":"","sources":["../../../src/nodes/googleflow/GoogleFlow.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA4FvF,qBAAa,UAAW,YAAW,SAAS;IACxC,WAAW,EAAE,oBAAoB,CAmB/B;IAEF,OAAO;;MAEL;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB;CAyCxC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GoogleFlow = void 0;
|
|
7
|
+
const imageGenerate_1 = __importDefault(require("./resource/imageGenerate"));
|
|
8
|
+
const videoGenerate_1 = __importDefault(require("./resource/videoGenerate"));
|
|
9
|
+
// 手动定义资源配置
|
|
10
|
+
const resources = [
|
|
11
|
+
{
|
|
12
|
+
displayName: '文生图 (Google Flow)',
|
|
13
|
+
name: 'googleFlowImageGenerate',
|
|
14
|
+
value: 'googleFlowImageGenerate',
|
|
15
|
+
order: 101,
|
|
16
|
+
operations: [imageGenerate_1.default],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: '文生视频 (Google Flow)',
|
|
20
|
+
name: '文生视频 (Google Flow)',
|
|
21
|
+
value: 'googleFlowVideoGenerate',
|
|
22
|
+
order: 100,
|
|
23
|
+
operations: [videoGenerate_1.default],
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
// 构建节点属性
|
|
27
|
+
function buildProperties() {
|
|
28
|
+
const list = [];
|
|
29
|
+
// Resource 选择器
|
|
30
|
+
list.push({
|
|
31
|
+
displayName: 'Resource',
|
|
32
|
+
name: 'resource',
|
|
33
|
+
type: 'options',
|
|
34
|
+
noDataExpression: true,
|
|
35
|
+
options: resources.map((item) => ({
|
|
36
|
+
name: item.displayName,
|
|
37
|
+
value: item.value,
|
|
38
|
+
})),
|
|
39
|
+
default: '',
|
|
40
|
+
});
|
|
41
|
+
// 为每个资源添加 operation 和属性
|
|
42
|
+
for (const resource of resources) {
|
|
43
|
+
for (const operation of resource.operations) {
|
|
44
|
+
// Operation 选择器
|
|
45
|
+
list.push({
|
|
46
|
+
displayName: 'Operation',
|
|
47
|
+
name: 'operation',
|
|
48
|
+
type: 'options',
|
|
49
|
+
noDataExpression: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: [resource.value],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
options: [
|
|
56
|
+
{
|
|
57
|
+
name: operation.name,
|
|
58
|
+
value: operation.value,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
default: '',
|
|
62
|
+
});
|
|
63
|
+
// 添加操作的属性
|
|
64
|
+
for (let option of operation.options) {
|
|
65
|
+
list.push({
|
|
66
|
+
...option,
|
|
67
|
+
displayOptions: {
|
|
68
|
+
...(option.displayOptions || {}),
|
|
69
|
+
show: {
|
|
70
|
+
...((option.displayOptions || {}).show || {}),
|
|
71
|
+
resource: [resource.value],
|
|
72
|
+
operation: [operation.value],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return list;
|
|
80
|
+
}
|
|
81
|
+
// 获取调用函数
|
|
82
|
+
function getCall(resourceName, operateName) {
|
|
83
|
+
const resource = resources.find((item) => item.value === resourceName);
|
|
84
|
+
if (!resource) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
const operate = resource.operations.find((item) => item.value === operateName);
|
|
88
|
+
return operate?.call || null;
|
|
89
|
+
}
|
|
90
|
+
class GoogleFlow {
|
|
91
|
+
constructor() {
|
|
92
|
+
this.description = {
|
|
93
|
+
displayName: 'Google Flow Node',
|
|
94
|
+
name: 'googleFlow',
|
|
95
|
+
icon: 'file:icon.png',
|
|
96
|
+
group: ['transform'],
|
|
97
|
+
version: 1,
|
|
98
|
+
description: 'Google Flow (Nano Banana/Veo) AI 生成节点',
|
|
99
|
+
defaults: {
|
|
100
|
+
name: 'Google Flow Node',
|
|
101
|
+
},
|
|
102
|
+
inputs: ['main'],
|
|
103
|
+
outputs: ['main'],
|
|
104
|
+
credentials: [
|
|
105
|
+
{
|
|
106
|
+
name: 'googleFlowCredentialsApi',
|
|
107
|
+
required: true,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
properties: buildProperties(),
|
|
111
|
+
};
|
|
112
|
+
this.methods = {
|
|
113
|
+
loadOptions: {},
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
async execute() {
|
|
117
|
+
const items = this.getInputData();
|
|
118
|
+
let responseData = {};
|
|
119
|
+
let returnData = [];
|
|
120
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
121
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
122
|
+
const callFunc = getCall(resource, operation);
|
|
123
|
+
if (!callFunc) {
|
|
124
|
+
throw new Error('未实现方法:' + resource + '.' + operation);
|
|
125
|
+
}
|
|
126
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
127
|
+
try {
|
|
128
|
+
this.logger.debug('call function', {
|
|
129
|
+
resource,
|
|
130
|
+
operation,
|
|
131
|
+
itemIndex,
|
|
132
|
+
});
|
|
133
|
+
responseData = await callFunc.call(this, itemIndex);
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
this.logger.error('执行失败', {
|
|
137
|
+
resource,
|
|
138
|
+
operation,
|
|
139
|
+
itemIndex,
|
|
140
|
+
error,
|
|
141
|
+
});
|
|
142
|
+
throw error;
|
|
143
|
+
}
|
|
144
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: itemIndex } });
|
|
145
|
+
returnData = returnData.concat(executionData);
|
|
146
|
+
}
|
|
147
|
+
return [returnData];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.GoogleFlow = GoogleFlow;
|
|
151
|
+
//# sourceMappingURL=GoogleFlow.node.js.map
|
|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AAG,MAAO,QAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;YACjE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE;oBACtB,QAAQ;oBACR,SAAS;oBACT,SAAS;oBACT,KAAK;iBACR,CAAC,CAAC;gBACH,MAAM,KAAK,CAAC;YAChB,CAAC;YAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CACzD,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,EAC1C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CACpC,CAAC;YACF,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;CACJ;AAnED,gCAmEC"}
|
|
Binary file
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
declare const GoogleFlowImageGenerate: {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
order: number;
|
|
6
|
+
options: ({
|
|
7
|
+
displayName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
default: string;
|
|
11
|
+
description: string;
|
|
12
|
+
options?: undefined;
|
|
13
|
+
displayOptions?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
displayName: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
default: string;
|
|
19
|
+
options: {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
description?: undefined;
|
|
24
|
+
displayOptions?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
displayName: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
default: string;
|
|
30
|
+
description: string;
|
|
31
|
+
displayOptions: {
|
|
32
|
+
show: {
|
|
33
|
+
modelName: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
options?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
displayName: string;
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
default: number;
|
|
42
|
+
options: {
|
|
43
|
+
name: string;
|
|
44
|
+
value: number;
|
|
45
|
+
}[];
|
|
46
|
+
description?: undefined;
|
|
47
|
+
displayOptions?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
displayName: string;
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
default: number;
|
|
53
|
+
description: string;
|
|
54
|
+
options?: undefined;
|
|
55
|
+
displayOptions?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
call(this: IExecuteFunctions, index: number): Promise<{
|
|
58
|
+
imageUrl: string;
|
|
59
|
+
mediaId: string;
|
|
60
|
+
status: number;
|
|
61
|
+
width: number | undefined;
|
|
62
|
+
height: number | undefined;
|
|
63
|
+
failCode: string;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
export default GoogleFlowImageGenerate;
|
|
67
|
+
//# sourceMappingURL=imageGenerate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageGenerate.d.ts","sourceRoot":"","sources":["../../../../src/nodes/googleflow/resource/imageGenerate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA6HR,iBAAiB,SAAS,MAAM;;;;;;;;CAkDpD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const googleflow_1 = require("../../help/googleflow");
|
|
4
|
+
const GoogleFlowImageGenerate = {
|
|
5
|
+
name: '文生图 (Google Flow)',
|
|
6
|
+
value: 'googleFlowImageGenerate',
|
|
7
|
+
order: 101,
|
|
8
|
+
options: [
|
|
9
|
+
{
|
|
10
|
+
displayName: '提示词',
|
|
11
|
+
name: 'prompt',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
description: '描述你想要的图片内容',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: '模型',
|
|
18
|
+
name: 'modelName',
|
|
19
|
+
type: 'options',
|
|
20
|
+
default: 'Nano Banana Pro',
|
|
21
|
+
options: [
|
|
22
|
+
{
|
|
23
|
+
name: 'Nano Banana Pro',
|
|
24
|
+
value: 'NANO_BANANA_PRO',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Nano Banana 2',
|
|
28
|
+
value: 'NANO_BANANA_2',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Imagen 4',
|
|
32
|
+
value: 'IMAGEN_4',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: '自定义模型',
|
|
36
|
+
value: 'CUSTOM',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: '自定义模型名称',
|
|
42
|
+
name: 'customModelName',
|
|
43
|
+
type: 'string',
|
|
44
|
+
default: '',
|
|
45
|
+
description: '当选择"自定义模型"时填写',
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
modelName: ['CUSTOM'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: '宽高比',
|
|
54
|
+
name: 'aspectRatio',
|
|
55
|
+
type: 'options',
|
|
56
|
+
default: 'IMAGE_ASPECT_RATIO_16_9',
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
name: '横版 (16:9)',
|
|
60
|
+
value: 'IMAGE_ASPECT_RATIO_16_9',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: '竖版 (9:16)',
|
|
64
|
+
value: 'IMAGE_ASPECT_RATIO_PORTRAIT',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: '正方形 (1:1)',
|
|
68
|
+
value: 'IMAGE_ASPECT_RATIO_1_1',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: '横向 (4:3)',
|
|
72
|
+
value: 'IMAGE_ASPECT_RATIO_4_3',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: '生成数量',
|
|
78
|
+
name: 'numImages',
|
|
79
|
+
type: 'options',
|
|
80
|
+
default: 1,
|
|
81
|
+
options: [
|
|
82
|
+
{
|
|
83
|
+
name: '1 张',
|
|
84
|
+
value: 1,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: '2 张',
|
|
88
|
+
value: 2,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: '3 张',
|
|
92
|
+
value: 3,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: '4 张',
|
|
96
|
+
value: 4,
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: '随机种子',
|
|
102
|
+
name: 'seed',
|
|
103
|
+
type: 'number',
|
|
104
|
+
default: -1,
|
|
105
|
+
description: '-1 表示随机,或输入 0-999999 的数字',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: '负面提示词',
|
|
109
|
+
name: 'negativePrompt',
|
|
110
|
+
type: 'string',
|
|
111
|
+
default: '',
|
|
112
|
+
description: '不希望出现在图片中的内容',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Bearer Token',
|
|
116
|
+
name: 'bearerToken',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: '',
|
|
119
|
+
description: '用来替代凭证中的 Bearer Token(可选)',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Project ID',
|
|
123
|
+
name: 'projectId',
|
|
124
|
+
type: 'string',
|
|
125
|
+
default: '',
|
|
126
|
+
description: '用来替代凭证中的 Project ID(可选)',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
async call(index) {
|
|
130
|
+
const prompt = this.getNodeParameter('prompt', index);
|
|
131
|
+
let modelName = this.getNodeParameter('modelName', index);
|
|
132
|
+
const aspectRatio = this.getNodeParameter('aspectRatio', index);
|
|
133
|
+
const numImages = this.getNodeParameter('numImages', index);
|
|
134
|
+
const seed = this.getNodeParameter('seed', index);
|
|
135
|
+
const negativePrompt = this.getNodeParameter('negativePrompt', index);
|
|
136
|
+
// 处理自定义模型
|
|
137
|
+
if (modelName === 'CUSTOM') {
|
|
138
|
+
modelName = this.getNodeParameter('customModelName', index);
|
|
139
|
+
}
|
|
140
|
+
// 获取凭证
|
|
141
|
+
const credentials = await this.getCredentials('googleFlowCredentialsApi');
|
|
142
|
+
const bearerToken = this.getNodeParameter('bearerToken', index) || credentials.bearerToken;
|
|
143
|
+
const projectId = this.getNodeParameter('projectId', index) || credentials.projectId;
|
|
144
|
+
if (!bearerToken) {
|
|
145
|
+
throw new Error('未提供 Bearer Token,请在凭证中配置或在节点参数中填写');
|
|
146
|
+
}
|
|
147
|
+
if (!projectId) {
|
|
148
|
+
throw new Error('未提供 Project ID,请在凭证中配置或在节点参数中填写');
|
|
149
|
+
}
|
|
150
|
+
// 创建 API 客户端
|
|
151
|
+
const client = new googleflow_1.GoogleFlowApiClient({
|
|
152
|
+
bearerToken: bearerToken,
|
|
153
|
+
projectId: projectId,
|
|
154
|
+
});
|
|
155
|
+
// 调用生成 API
|
|
156
|
+
const result = await client.generateImage(prompt, modelName, aspectRatio, seed === -1 ? undefined : seed, negativePrompt);
|
|
157
|
+
return {
|
|
158
|
+
imageUrl: result.mediaUrl,
|
|
159
|
+
mediaId: result.mediaId,
|
|
160
|
+
status: result.status,
|
|
161
|
+
width: result.dimensions?.width,
|
|
162
|
+
height: result.dimensions?.height,
|
|
163
|
+
failCode: result.failCode || '',
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
exports.default = GoogleFlowImageGenerate;
|
|
168
|
+
//# sourceMappingURL=imageGenerate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageGenerate.js","sourceRoot":"","sources":["../../../../src/nodes/googleflow/resource/imageGenerate.ts"],"names":[],"mappings":";;AAAA,sDAA4D;AAG5D,MAAM,uBAAuB,GAAG;IAC5B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,yBAAyB;IAChC,KAAK,EAAE,GAAG;IACV,OAAO,EAAE;QACL;YACI,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,YAAY;SAC5B;QACD;YACI,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,iBAAiB;oBACvB,KAAK,EAAE,iBAAiB;iBAC3B;gBACD;oBACI,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,eAAe;iBACzB;gBACD;oBACI,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,UAAU;iBACpB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ;QACD;YACI,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,eAAe;YAC5B,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,SAAS,EAAE,CAAC,QA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CAAiC,CAAC,CAAC;QACvD,CAAC;QAED,aAAa;QACb,MAAM,MAAM,GAAG,IAAI,gCAAmB,CAAC;YACnC,WAAW,EAAE,WAAqB;YAClC,SAAS,EAAE,SAAmB;SACjC,CAAC,CAAC;QAEH,WAAW;QACX,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CACrC,MAAM,EACN,SAAS,EACT,WAAW,EACX,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAC9B,cAAc,CACjB,CAAC;QAEF,OAAO;YACH,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK;YAC/B,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM;YACjC,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE;SAClC,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,kBAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/nodes/googleflow/resource/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.videoGenerate = exports.imageGenerate = void 0;
|
|
7
|
+
var imageGenerate_1 = require("./imageGenerate");
|
|
8
|
+
Object.defineProperty(exports, "imageGenerate", { enumerable: true, get: function () { return __importDefault(imageGenerate_1).default; } });
|
|
9
|
+
var videoGenerate_1 = require("./videoGenerate");
|
|
10
|
+
Object.defineProperty(exports, "videoGenerate", { enumerable: true, get: function () { return __importDefault(videoGenerate_1).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/nodes/googleflow/resource/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
declare const GoogleFlowVideoGenerate: {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
order: number;
|
|
6
|
+
options: ({
|
|
7
|
+
displayName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
default: string;
|
|
11
|
+
options: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
description?: undefined;
|
|
16
|
+
displayOptions?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
displayName: string;
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
default: string;
|
|
22
|
+
description: string;
|
|
23
|
+
options?: undefined;
|
|
24
|
+
displayOptions?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
displayName: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
default: string;
|
|
30
|
+
description: string;
|
|
31
|
+
displayOptions: {
|
|
32
|
+
show: {
|
|
33
|
+
mode: string[];
|
|
34
|
+
modelName?: undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
options?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
displayName: string;
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
default: string;
|
|
43
|
+
description: string;
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
modelName: string[];
|
|
47
|
+
mode?: undefined;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
options?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
displayName: string;
|
|
53
|
+
name: string;
|
|
54
|
+
type: string;
|
|
55
|
+
default: boolean;
|
|
56
|
+
description: string;
|
|
57
|
+
options?: undefined;
|
|
58
|
+
displayOptions?: undefined;
|
|
59
|
+
})[];
|
|
60
|
+
call(this: IExecuteFunctions, index: number): Promise<{
|
|
61
|
+
videoUrl: any;
|
|
62
|
+
mediaId: string;
|
|
63
|
+
status: number;
|
|
64
|
+
remainingCredits: any;
|
|
65
|
+
failCode: string;
|
|
66
|
+
message?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
videoUrl: string;
|
|
69
|
+
mediaId: string;
|
|
70
|
+
status: number;
|
|
71
|
+
message: string;
|
|
72
|
+
failCode: string;
|
|
73
|
+
remainingCredits?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
videoUrl: string;
|
|
76
|
+
mediaId: string;
|
|
77
|
+
status: number;
|
|
78
|
+
failCode: string;
|
|
79
|
+
remainingCredits?: undefined;
|
|
80
|
+
message?: undefined;
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
export default GoogleFlowVideoGenerate;
|
|
84
|
+
//# sourceMappingURL=videoGenerate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videoGenerate.d.ts","sourceRoot":"","sources":["../../../../src/nodes/googleflow/resource/videoGenerate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsHR,iBAAiB,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;CA+FpD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|