@n8n/n8n-nodes-langchain 2.17.2 → 2.18.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.
Files changed (94) hide show
  1. package/dist/credentials/AlibabaCloudApi.credentials.js +8 -2
  2. package/dist/credentials/AlibabaCloudApi.credentials.js.map +1 -1
  3. package/dist/credentials/BraveSearchApi.credentials.d.ts +9 -0
  4. package/dist/credentials/BraveSearchApi.credentials.js +36 -0
  5. package/dist/credentials/BraveSearchApi.credentials.js.map +1 -0
  6. package/dist/credentials/DaytonaApi.credentials.d.ts +7 -0
  7. package/dist/credentials/DaytonaApi.credentials.js +29 -0
  8. package/dist/credentials/DaytonaApi.credentials.js.map +1 -0
  9. package/dist/known/credentials.json +8 -0
  10. package/dist/node-definitions/.nodes-hash +1 -1
  11. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/index.ts +3 -1
  12. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_image/operation_generate.ts +3 -3
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_image/operation_generate.ts +3 -3
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/index.schema.js +30 -0
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/index.ts +27 -0
  16. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/index.schema.js +24 -0
  17. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/index.ts +18 -0
  18. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_generate.schema.js +32 -0
  19. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_generate.ts +60 -0
  20. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_transcribe.schema.js +30 -0
  21. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_transcribe.ts +46 -0
  22. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_translate.schema.js +30 -0
  23. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_audio/operation_translate.ts +43 -0
  24. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/index.schema.js +26 -0
  25. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/index.ts +21 -0
  26. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_create.schema.js +30 -0
  27. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_create.ts +54 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_get.schema.js +29 -0
  29. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_get.ts +31 -0
  30. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_remove.schema.js +29 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_remove.ts +31 -0
  32. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_update.schema.js +30 -0
  33. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_conversation/operation_update.ts +36 -0
  34. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/index.schema.js +24 -0
  35. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/index.ts +18 -0
  36. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_delete_file.schema.js +29 -0
  37. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_delete_file.ts +33 -0
  38. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_list.schema.js +29 -0
  39. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_list.ts +37 -0
  40. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_upload.schema.js +30 -0
  41. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_file/operation_upload.ts +43 -0
  42. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/index.schema.js +24 -0
  43. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/index.ts +18 -0
  44. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_analyze.schema.js +35 -0
  45. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_analyze.ts +74 -0
  46. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.schema.js +39 -0
  47. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.ts +116 -0
  48. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_generate.schema.js +31 -0
  49. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_generate.ts +89 -0
  50. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/index.schema.js +22 -0
  51. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/index.ts +15 -0
  52. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/operation_classify.schema.js +30 -0
  53. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/operation_classify.ts +36 -0
  54. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/operation_response.schema.js +34 -0
  55. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_text/operation_response.ts +317 -0
  56. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_video/index.schema.js +18 -0
  57. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_video/index.ts +10 -0
  58. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_video/operation_generate.schema.js +33 -0
  59. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_video/operation_generate.ts +67 -0
  60. package/dist/nodes/llms/LmChatAlibabaCloud/LmChatAlibabaCloud.node.js +2 -2
  61. package/dist/nodes/llms/LmChatAlibabaCloud/LmChatAlibabaCloud.node.js.map +1 -1
  62. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.d.ts +2 -3
  63. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js +3 -22
  64. package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js.map +1 -1
  65. package/dist/nodes/vendors/AlibabaCloud/transport/index.d.ts +0 -1
  66. package/dist/nodes/vendors/AlibabaCloud/transport/index.js +1 -11
  67. package/dist/nodes/vendors/AlibabaCloud/transport/index.js.map +1 -1
  68. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js +3 -1
  69. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js.map +1 -1
  70. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +6 -2
  71. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
  72. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js +2 -1
  73. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js.map +1 -1
  74. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +2 -1
  75. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
  76. package/dist/nodes/vendors/GoogleGemini/helpers/utils.d.ts +1 -0
  77. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js +8 -0
  78. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js.map +1 -1
  79. package/dist/nodes/vendors/OpenAi/OpenAi.node.js +2 -1
  80. package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -1
  81. package/dist/nodes/vendors/OpenAi/methods/listSearch.d.ts +1 -0
  82. package/dist/nodes/vendors/OpenAi/methods/listSearch.js +4 -0
  83. package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
  84. package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js +1 -1
  85. package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js.map +1 -1
  86. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.d.ts +2 -0
  87. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js +401 -1
  88. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js.map +1 -1
  89. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js +28 -198
  90. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js.map +1 -1
  91. package/dist/typecheck.tsbuildinfo +1 -1
  92. package/dist/types/credentials.json +3 -1
  93. package/dist/types/nodes.json +3 -3
  94. package/package.json +12 -10
@@ -58,6 +58,12 @@ class AlibabaCloudApi {
58
58
  },
59
59
  description: 'The Workspace ID required for the Germany (Frankfurt) region. Find it in the Model Studio console under the Germany region settings.',
60
60
  },
61
+ {
62
+ displayName: 'Base URL',
63
+ name: 'url',
64
+ type: 'hidden',
65
+ default: `={{ (() => { const hosts = ${JSON.stringify(alibaba_cloud_base_url_1.REGION_BASE_HOSTS)}; const region = $self.region; if (region === "eu-central-1") { return "https://" + $self.workspaceId + ".eu-central-1.maas.aliyuncs.com"; } return hosts[region] || hosts["ap-southeast-1"]; })() }}`,
66
+ },
61
67
  ];
62
68
  this.authenticate = {
63
69
  type: 'generic',
@@ -69,8 +75,8 @@ class AlibabaCloudApi {
69
75
  };
70
76
  this.test = {
71
77
  request: {
72
- baseURL: alibaba_cloud_base_url_1.BASE_URL_EXPRESSION,
73
- url: '/models',
78
+ baseURL: '={{ $credentials.url }}',
79
+ url: `${alibaba_cloud_base_url_1.COMPATIBLE_MODE_SUFFIX}/models`,
74
80
  },
75
81
  };
76
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AlibabaCloudApi.credentials.js","sourceRoot":"","sources":["../../credentials/AlibabaCloudApi.credentials.ts"],"names":[],"mappings":";;;AAOA,oGAA8F;AAE9F,MAAa,eAAe;IAA5B;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,SAAS,CAAC;QAE7B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,gBAAgB;gBACzB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,2BAA2B;wBACjC,KAAK,EAAE,gBAAgB;qBACvB;oBACD;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,YAAY;qBACnB;oBACD;wBACC,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,aAAa;qBACpB;oBACD;wBACC,IAAI,EAAE,qBAAqB;wBAC3B,KAAK,EAAE,cAAc;qBACrB;iBACD;gBACD,WAAW,EAAE,4DAA4D;aACzE;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,MAAM,EAAE,CAAC,cAAc,CAAC;qBACxB;iBACD;gBACD,WAAW,EACV,sIAAsI;aACvI;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,4CAAmB;gBAC5B,GAAG,EAAE,SAAS;aACd;SACD,CAAC;IACH,CAAC;CAAA;AA5ED,0CA4EC"}
1
+ {"version":3,"file":"AlibabaCloudApi.credentials.js","sourceRoot":"","sources":["../../credentials/AlibabaCloudApi.credentials.ts"],"names":[],"mappings":";;;AAOA,oGAGiE;AAEjE,MAAa,eAAe;IAA5B;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,SAAS,CAAC;QAE7B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,gBAAgB;gBACzB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,2BAA2B;wBACjC,KAAK,EAAE,gBAAgB;qBACvB;oBACD;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,YAAY;qBACnB;oBACD;wBACC,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,aAAa;qBACpB;oBACD;wBACC,IAAI,EAAE,qBAAqB;wBAC3B,KAAK,EAAE,cAAc;qBACrB;iBACD;gBACD,WAAW,EAAE,4DAA4D;aACzE;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,MAAM,EAAE,CAAC,cAAc,CAAC;qBACxB;iBACD;gBACD,WAAW,EACV,sIAAsI;aACvI;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,8BAA8B,IAAI,CAAC,SAAS,CAAC,0CAAiB,CAAC,uMAAuM;aAC/Q;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,yBAAyB;gBAClC,GAAG,EAAE,GAAG,+CAAsB,SAAS;aACvC;SACD,CAAC;IACH,CAAC;CAAA;AAlFD,0CAkFC"}
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class BraveSearchApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BraveSearchApi = void 0;
4
+ class BraveSearchApi {
5
+ constructor() {
6
+ this.name = 'braveSearchApi';
7
+ this.displayName = 'Brave Search';
8
+ this.documentationUrl = 'bravesearch';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ required: true,
16
+ default: '',
17
+ },
18
+ ];
19
+ this.authenticate = {
20
+ type: 'generic',
21
+ properties: {
22
+ headers: {
23
+ 'X-Subscription-Token': '={{$credentials.apiKey}}',
24
+ },
25
+ },
26
+ };
27
+ this.test = {
28
+ request: {
29
+ baseURL: 'https://api.search.brave.com',
30
+ url: '/res/v1/web/search?q=test&count=1',
31
+ },
32
+ };
33
+ }
34
+ }
35
+ exports.BraveSearchApi = BraveSearchApi;
36
+ //# sourceMappingURL=BraveSearchApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BraveSearchApi.credentials.js","sourceRoot":"","sources":["../../credentials/BraveSearchApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QAExB,gBAAW,GAAG,cAAc,CAAC;QAE7B,qBAAgB,GAAG,aAAa,CAAC;QAEjC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,sBAAsB,EAAE,0BAA0B;iBAClD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,8BAA8B;gBACvC,GAAG,EAAE,mCAAmC;aACxC;SACD,CAAC;IACH,CAAC;CAAA;AAjCD,wCAiCC"}
@@ -0,0 +1,7 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DaytonaApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DaytonaApi = void 0;
4
+ class DaytonaApi {
5
+ constructor() {
6
+ this.name = 'daytonaApi';
7
+ this.displayName = 'Daytona';
8
+ this.documentationUrl = 'daytona';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API URL',
12
+ name: 'apiUrl',
13
+ type: 'string',
14
+ required: true,
15
+ default: '',
16
+ },
17
+ {
18
+ displayName: 'API Key',
19
+ name: 'apiKey',
20
+ type: 'string',
21
+ typeOptions: { password: true },
22
+ required: true,
23
+ default: '',
24
+ },
25
+ ];
26
+ }
27
+ }
28
+ exports.DaytonaApi = DaytonaApi;
29
+ //# sourceMappingURL=DaytonaApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DaytonaApi.credentials.js","sourceRoot":"","sources":["../../credentials/DaytonaApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,SAAS,CAAC;QAExB,qBAAgB,GAAG,SAAS,CAAC;QAE7B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;IACH,CAAC;CAAA;AAxBD,gCAwBC"}
@@ -40,6 +40,10 @@
40
40
  "lmChatAzureOpenAi"
41
41
  ]
42
42
  },
43
+ "braveSearchApi": {
44
+ "className": "BraveSearchApi",
45
+ "sourcePath": "dist/credentials/BraveSearchApi.credentials.js"
46
+ },
43
47
  "chromaSelfHostedApi": {
44
48
  "className": "ChromaSelfHostedApi",
45
49
  "sourcePath": "dist/credentials/ChromaSelfHostedApi.credentials.js",
@@ -64,6 +68,10 @@
64
68
  "rerankerCohere"
65
69
  ]
66
70
  },
71
+ "daytonaApi": {
72
+ "className": "DaytonaApi",
73
+ "sourcePath": "dist/credentials/DaytonaApi.credentials.js"
74
+ },
67
75
  "deepSeekApi": {
68
76
  "className": "DeepSeekApi",
69
77
  "sourcePath": "dist/credentials/DeepSeekApi.credentials.js",
@@ -1 +1 @@
1
- c2a7a94bdea05bf80f83b0f732284febaf022c4d815c89108f7121ca8357373d
1
+ 3a36228fef271d135c4449c1e235ab053f8ffd36b72d0b1f4d494a1e94fd6dac
@@ -4,6 +4,7 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcOpenAiV22Node } from './v22';
7
8
  import type { LcOpenAiV21Node } from './v21';
8
9
  import type { LcOpenAiV2Node } from './v2';
9
10
  import type { LcOpenAiV18Node } from './v18';
@@ -16,6 +17,7 @@ import type { LcOpenAiV12Node } from './v12';
16
17
  import type { LcOpenAiV11Node } from './v11';
17
18
  import type { LcOpenAiV1Node } from './v1';
18
19
 
20
+ export * from './v22';
19
21
  export * from './v21';
20
22
  export * from './v2';
21
23
  export * from './v18';
@@ -29,4 +31,4 @@ export * from './v11';
29
31
  export * from './v1';
30
32
 
31
33
  // Combined union type for all versions
32
- export type LcOpenAiNode = LcOpenAiV21Node | LcOpenAiV2Node | LcOpenAiV18Node | LcOpenAiV17Node | LcOpenAiV16Node | LcOpenAiV15Node | LcOpenAiV14Node | LcOpenAiV13Node | LcOpenAiV12Node | LcOpenAiV11Node | LcOpenAiV1Node;
34
+ export type LcOpenAiNode = LcOpenAiV22Node | LcOpenAiV21Node | LcOpenAiV2Node | LcOpenAiV18Node | LcOpenAiV17Node | LcOpenAiV16Node | LcOpenAiV15Node | LcOpenAiV14Node | LcOpenAiV13Node | LcOpenAiV12Node | LcOpenAiV11Node | LcOpenAiV1Node;
@@ -37,7 +37,7 @@ export type LcOpenAiV2ImageGenerateParams = {
37
37
  */
38
38
  dalleQuality?: 'hd' | 'standard' | Expression<string>;
39
39
  /** The quality of the image that will be generated, High creates images with finer details and greater consistency across the image
40
- * @displayOptions.show { /model: ["gpt-image-1"] }
40
+ * @displayOptions.show { /model: [{"_cnd":{"includes":"gpt-image"}}] }
41
41
  * @default medium
42
42
  */
43
43
  quality?: 'high' | 'medium' | 'low' | Expression<string>;
@@ -52,7 +52,7 @@ export type LcOpenAiV2ImageGenerateParams = {
52
52
  */
53
53
  size?: '1024x1024' | '1792x1024' | '1024x1792' | Expression<string>;
54
54
  /** Resolution
55
- * @displayOptions.show { /model: ["gpt-image-1"] }
55
+ * @displayOptions.show { /model: [{"_cnd":{"includes":"gpt-image"}}] }
56
56
  * @default 1024x1024
57
57
  */
58
58
  size?: '1024x1024' | '1024x1536' | '1536x1024' | Expression<string>;
@@ -62,7 +62,7 @@ export type LcOpenAiV2ImageGenerateParams = {
62
62
  */
63
63
  style?: 'natural' | 'vivid' | Expression<string>;
64
64
  /** Whether to return image URL(s) instead of binary file(s)
65
- * @displayOptions.hide { /model: ["gpt-image-1"] }
65
+ * @displayOptions.hide { /model: [{"_cnd":{"includes":"gpt-image"}}] }
66
66
  * @default false
67
67
  */
68
68
  returnImageUrls?: boolean | Expression<boolean>;
@@ -37,7 +37,7 @@ export type LcOpenAiV21ImageGenerateParams = {
37
37
  */
38
38
  dalleQuality?: 'hd' | 'standard' | Expression<string>;
39
39
  /** The quality of the image that will be generated, High creates images with finer details and greater consistency across the image
40
- * @displayOptions.show { /model: ["gpt-image-1"] }
40
+ * @displayOptions.show { /model: [{"_cnd":{"includes":"gpt-image"}}] }
41
41
  * @default medium
42
42
  */
43
43
  quality?: 'high' | 'medium' | 'low' | Expression<string>;
@@ -52,7 +52,7 @@ export type LcOpenAiV21ImageGenerateParams = {
52
52
  */
53
53
  size?: '1024x1024' | '1792x1024' | '1024x1792' | Expression<string>;
54
54
  /** Resolution
55
- * @displayOptions.show { /model: ["gpt-image-1"] }
55
+ * @displayOptions.show { /model: [{"_cnd":{"includes":"gpt-image"}}] }
56
56
  * @default 1024x1024
57
57
  */
58
58
  size?: '1024x1024' | '1024x1536' | '1536x1024' | Expression<string>;
@@ -62,7 +62,7 @@ export type LcOpenAiV21ImageGenerateParams = {
62
62
  */
63
63
  style?: 'natural' | 'vivid' | Expression<string>;
64
64
  /** Whether to return image URL(s) instead of binary file(s)
65
- * @displayOptions.hide { /model: ["gpt-image-1"] }
65
+ * @displayOptions.hide { /model: [{"_cnd":{"includes":"gpt-image"}}] }
66
66
  * @default false
67
67
  */
68
68
  returnImageUrls?: boolean | Expression<boolean>;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2 - Zod Schema Factory
3
+ * Exports a factory that unions all discriminator schemas.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getTextSchema = require('./resource_text/index.schema');
12
+ const getImageSchema = require('./resource_image/index.schema');
13
+ const getAudioSchema = require('./resource_audio/index.schema');
14
+ const getFileSchema = require('./resource_file/index.schema');
15
+ const getConversationSchema = require('./resource_conversation/index.schema');
16
+ const getVideoSchema = require('./resource_video/index.schema');
17
+
18
+ module.exports = function getSchema(helpers) {
19
+ const { parameters, z } = helpers;
20
+ // Apply discriminator default if not set
21
+ const effectiveParams = parameters.resource === undefined ? { ...parameters, resource: 'text' } : parameters;
22
+ return z.union([
23
+ getTextSchema({ ...helpers, parameters: effectiveParams }),
24
+ getImageSchema({ ...helpers, parameters: effectiveParams }),
25
+ getAudioSchema({ ...helpers, parameters: effectiveParams }),
26
+ getFileSchema({ ...helpers, parameters: effectiveParams }),
27
+ getConversationSchema({ ...helpers, parameters: effectiveParams }),
28
+ getVideoSchema({ ...helpers, parameters: effectiveParams }),
29
+ ]);
30
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2
3
+ * Re-exports all discriminator combinations.
4
+ */
5
+
6
+ import type { LcOpenAiV22TextNode } from './resource_text';
7
+ import type { LcOpenAiV22ImageNode } from './resource_image';
8
+ import type { LcOpenAiV22AudioNode } from './resource_audio';
9
+ import type { LcOpenAiV22FileNode } from './resource_file';
10
+ import type { LcOpenAiV22ConversationNode } from './resource_conversation';
11
+ import type { LcOpenAiV22VideoNode } from './resource_video';
12
+
13
+ export * from './resource_text';
14
+ export * from './resource_image';
15
+ export * from './resource_audio';
16
+ export * from './resource_file';
17
+ export * from './resource_conversation';
18
+ export * from './resource_video';
19
+
20
+ export type LcOpenAiV22Node =
21
+ | LcOpenAiV22TextNode
22
+ | LcOpenAiV22ImageNode
23
+ | LcOpenAiV22AudioNode
24
+ | LcOpenAiV22FileNode
25
+ | LcOpenAiV22ConversationNode
26
+ | LcOpenAiV22VideoNode
27
+ ;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * OpenAI - Audio Resource - Zod Schema Factory
3
+ * Exports a factory that unions all operation schemas for this resource.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getGenerateSchema = require('./operation_generate.schema');
12
+ const getTranscribeSchema = require('./operation_transcribe.schema');
13
+ const getTranslateSchema = require('./operation_translate.schema');
14
+
15
+ module.exports = function getSchema(helpers) {
16
+ const { parameters, z } = helpers;
17
+ // Apply operation default if not set
18
+ const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'generate' } : parameters;
19
+ return z.union([
20
+ getGenerateSchema({ ...helpers, parameters: effectiveParams }),
21
+ getTranscribeSchema({ ...helpers, parameters: effectiveParams }),
22
+ getTranslateSchema({ ...helpers, parameters: effectiveParams }),
23
+ ]);
24
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * OpenAI - Audio Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { LcOpenAiV22AudioGenerateNode } from './operation_generate';
7
+ import type { LcOpenAiV22AudioTranscribeNode } from './operation_transcribe';
8
+ import type { LcOpenAiV22AudioTranslateNode } from './operation_translate';
9
+
10
+ export * from './operation_generate';
11
+ export * from './operation_transcribe';
12
+ export * from './operation_translate';
13
+
14
+ export type LcOpenAiV22AudioNode =
15
+ | LcOpenAiV22AudioGenerateNode
16
+ | LcOpenAiV22AudioTranscribeNode
17
+ | LcOpenAiV22AudioTranslateNode
18
+ ;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2 - Zod Schema
3
+ * Discriminator: resource=audio, operation=generate
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, toolInstanceSchema, memoryInstanceSchema }) {
14
+
15
+ // Static subnode schema
16
+ const subnodesSchema = z.object({
17
+ tools: z.array(toolInstanceSchema).optional(),
18
+ memory: memoryInstanceSchema.optional(),
19
+ }).strict();
20
+
21
+ return z.object({
22
+ parameters: z.object({
23
+ resource: z.literal('audio'),
24
+ operation: z.literal('generate').default('generate'),
25
+ model: z.union([z.literal('tts-1'), z.literal('tts-1-hd'), expressionSchema]).optional(),
26
+ input: stringOrExpression.optional(),
27
+ voice: z.union([z.literal('alloy'), z.literal('echo'), z.literal('fable'), z.literal('nova'), z.literal('onyx'), z.literal('shimmer'), expressionSchema]).optional(),
28
+ options: z.object({ response_format: z.union([z.literal('mp3'), z.literal('opus'), z.literal('aac'), z.literal('flac'), expressionSchema]).optional(), speed: numberOrExpression.optional(), binaryPropertyOutput: stringOrExpression.optional() }).optional(),
29
+ }).optional(),
30
+ subnodes: subnodesSchema.optional(),
31
+ });
32
+ };
@@ -0,0 +1,60 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2
3
+ * Discriminator: resource=audio, operation=generate
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ openAiApi: CredentialReference;
9
+ }
10
+
11
+ /** Creates audio from a text prompt */
12
+ export type LcOpenAiV22AudioGenerateParams = {
13
+ resource: 'audio';
14
+ operation: 'generate';
15
+ /**
16
+ * Model
17
+ * @default tts-1
18
+ */
19
+ model?: 'tts-1' | 'tts-1-hd' | Expression<string>;
20
+ /**
21
+ * The text to generate audio for. The maximum length is 4096 characters.
22
+ */
23
+ input?: string | Expression<string> | PlaceholderValue;
24
+ /**
25
+ * The voice to use when generating the audio
26
+ * @default alloy
27
+ */
28
+ voice?: 'alloy' | 'echo' | 'fable' | 'nova' | 'onyx' | 'shimmer' | Expression<string>;
29
+ /**
30
+ * Options
31
+ * @default {}
32
+ */
33
+ options?: {
34
+ /** Response Format
35
+ * @default mp3
36
+ */
37
+ response_format?: 'mp3' | 'opus' | 'aac' | 'flac' | Expression<string>;
38
+ /** Audio Speed
39
+ * @default 1
40
+ */
41
+ speed?: number | Expression<number>;
42
+ /** Put Output in Field
43
+ * @hint The name of the output field to put the binary file data in
44
+ * @default data
45
+ */
46
+ binaryPropertyOutput?: string | Expression<string> | PlaceholderValue;
47
+ };
48
+ };
49
+
50
+ export interface LcOpenAiV22AudioGenerateSubnodeConfig {
51
+ tools?: ToolInstance[];
52
+ memory?: MemoryInstance;
53
+ }
54
+
55
+ export type LcOpenAiV22AudioGenerateNode = {
56
+ type: '@n8n/n8n-nodes-langchain.openAi';
57
+ version: 2.2;
58
+ credentials?: Credentials;
59
+ config: NodeConfig<LcOpenAiV22AudioGenerateParams> & { subnodes?: LcOpenAiV22AudioGenerateSubnodeConfig };
60
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2 - Zod Schema
3
+ * Discriminator: resource=audio, operation=transcribe
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, toolInstanceSchema, memoryInstanceSchema }) {
14
+
15
+ // Static subnode schema
16
+ const subnodesSchema = z.object({
17
+ tools: z.array(toolInstanceSchema).optional(),
18
+ memory: memoryInstanceSchema.optional(),
19
+ }).strict();
20
+
21
+ return z.object({
22
+ parameters: z.object({
23
+ resource: z.literal('audio'),
24
+ operation: z.literal('transcribe'),
25
+ binaryPropertyName: stringOrExpression.optional(),
26
+ options: z.object({ language: stringOrExpression.optional(), temperature: numberOrExpression.optional() }).optional(),
27
+ }).optional(),
28
+ subnodes: subnodesSchema.optional(),
29
+ });
30
+ };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2
3
+ * Discriminator: resource=audio, operation=transcribe
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ openAiApi: CredentialReference;
9
+ }
10
+
11
+ /** Transcribes audio into text */
12
+ export type LcOpenAiV22AudioTranscribeParams = {
13
+ resource: 'audio';
14
+ operation: 'transcribe';
15
+ /**
16
+ * Name of the binary property which contains the audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm
17
+ * @hint The name of the input field containing the binary file data to be processed
18
+ * @default data
19
+ */
20
+ binaryPropertyName?: string | Expression<string> | PlaceholderValue;
21
+ /**
22
+ * Options
23
+ * @default {}
24
+ */
25
+ options?: {
26
+ /** The language of the input audio. Supplying the input language in &lt;a href="https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes" target="_blank"&gt;ISO-639-1&lt;/a&gt; format will improve accuracy and latency.
27
+ */
28
+ language?: string | Expression<string> | PlaceholderValue;
29
+ /** Output Randomness (Temperature)
30
+ * @default 0
31
+ */
32
+ temperature?: number | Expression<number>;
33
+ };
34
+ };
35
+
36
+ export interface LcOpenAiV22AudioTranscribeSubnodeConfig {
37
+ tools?: ToolInstance[];
38
+ memory?: MemoryInstance;
39
+ }
40
+
41
+ export type LcOpenAiV22AudioTranscribeNode = {
42
+ type: '@n8n/n8n-nodes-langchain.openAi';
43
+ version: 2.2;
44
+ credentials?: Credentials;
45
+ config: NodeConfig<LcOpenAiV22AudioTranscribeParams> & { subnodes?: LcOpenAiV22AudioTranscribeSubnodeConfig };
46
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2 - Zod Schema
3
+ * Discriminator: resource=audio, operation=translate
4
+ *
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, toolInstanceSchema, memoryInstanceSchema }) {
14
+
15
+ // Static subnode schema
16
+ const subnodesSchema = z.object({
17
+ tools: z.array(toolInstanceSchema).optional(),
18
+ memory: memoryInstanceSchema.optional(),
19
+ }).strict();
20
+
21
+ return z.object({
22
+ parameters: z.object({
23
+ resource: z.literal('audio'),
24
+ operation: z.literal('translate'),
25
+ binaryPropertyName: stringOrExpression.optional(),
26
+ options: z.object({ temperature: numberOrExpression.optional() }).optional(),
27
+ }).optional(),
28
+ subnodes: subnodesSchema.optional(),
29
+ });
30
+ };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * OpenAI Node - Version 2.2
3
+ * Discriminator: resource=audio, operation=translate
4
+ */
5
+
6
+
7
+ interface Credentials {
8
+ openAiApi: CredentialReference;
9
+ }
10
+
11
+ /** Translates audio into text in English */
12
+ export type LcOpenAiV22AudioTranslateParams = {
13
+ resource: 'audio';
14
+ operation: 'translate';
15
+ /**
16
+ * Name of the binary property which contains the audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm
17
+ * @hint The name of the input field containing the binary file data to be processed
18
+ * @default data
19
+ */
20
+ binaryPropertyName?: string | Expression<string> | PlaceholderValue;
21
+ /**
22
+ * Options
23
+ * @default {}
24
+ */
25
+ options?: {
26
+ /** Output Randomness (Temperature)
27
+ * @default 0
28
+ */
29
+ temperature?: number | Expression<number>;
30
+ };
31
+ };
32
+
33
+ export interface LcOpenAiV22AudioTranslateSubnodeConfig {
34
+ tools?: ToolInstance[];
35
+ memory?: MemoryInstance;
36
+ }
37
+
38
+ export type LcOpenAiV22AudioTranslateNode = {
39
+ type: '@n8n/n8n-nodes-langchain.openAi';
40
+ version: 2.2;
41
+ credentials?: Credentials;
42
+ config: NodeConfig<LcOpenAiV22AudioTranslateParams> & { subnodes?: LcOpenAiV22AudioTranslateSubnodeConfig };
43
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * OpenAI - Conversation Resource - Zod Schema Factory
3
+ * Exports a factory that unions all operation schemas for this resource.
4
+ *
5
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
6
+ * by the schema-validator, not imported from external files.
7
+ *
8
+ * @generated - CommonJS JavaScript for runtime loading
9
+ */
10
+
11
+ const getCreateSchema = require('./operation_create.schema');
12
+ const getGetSchema = require('./operation_get.schema');
13
+ const getRemoveSchema = require('./operation_remove.schema');
14
+ const getUpdateSchema = require('./operation_update.schema');
15
+
16
+ module.exports = function getSchema(helpers) {
17
+ const { parameters, z } = helpers;
18
+ // Apply operation default if not set
19
+ const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'generate' } : parameters;
20
+ return z.union([
21
+ getCreateSchema({ ...helpers, parameters: effectiveParams }),
22
+ getGetSchema({ ...helpers, parameters: effectiveParams }),
23
+ getRemoveSchema({ ...helpers, parameters: effectiveParams }),
24
+ getUpdateSchema({ ...helpers, parameters: effectiveParams }),
25
+ ]);
26
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * OpenAI - Conversation Resource
3
+ * Re-exports all operation types for this resource.
4
+ */
5
+
6
+ import type { LcOpenAiV22ConversationCreateNode } from './operation_create';
7
+ import type { LcOpenAiV22ConversationGetNode } from './operation_get';
8
+ import type { LcOpenAiV22ConversationRemoveNode } from './operation_remove';
9
+ import type { LcOpenAiV22ConversationUpdateNode } from './operation_update';
10
+
11
+ export * from './operation_create';
12
+ export * from './operation_get';
13
+ export * from './operation_remove';
14
+ export * from './operation_update';
15
+
16
+ export type LcOpenAiV22ConversationNode =
17
+ | LcOpenAiV22ConversationCreateNode
18
+ | LcOpenAiV22ConversationGetNode
19
+ | LcOpenAiV22ConversationRemoveNode
20
+ | LcOpenAiV22ConversationUpdateNode
21
+ ;