n8n-nodes-socialfetch 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.
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.web = void 0;
4
+ exports.web = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "web"
14
+ ]
15
+ }
16
+ },
17
+ "default": "web.markdown.generate",
18
+ "options": [
19
+ {
20
+ "name": "Markdown",
21
+ "value": "web.markdown.generate",
22
+ "action": "Generate web page markdown",
23
+ "description": "Convert a web page into clean markdown.",
24
+ "routing": {
25
+ "request": {
26
+ "method": "GET",
27
+ "url": "/v1/web/markdown"
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "name": "Ask",
33
+ "value": "web.ask.run",
34
+ "action": "Ask a question about a web page",
35
+ "description": "Ask a natural-language question about a web page and get an LLM-generated answer.",
36
+ "routing": {
37
+ "request": {
38
+ "method": "GET",
39
+ "url": "/v1/web/ask"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "name": "HTML",
45
+ "value": "web.html.generate",
46
+ "action": "Generate web page HTML",
47
+ "description": "Fetch and return cleaned HTML for a web page.",
48
+ "routing": {
49
+ "request": {
50
+ "method": "GET",
51
+ "url": "/v1/web/html"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "name": "Crawl",
57
+ "value": "web.crawl.run",
58
+ "action": "Crawl web pages",
59
+ "description": "Crawl a small set of web pages synchronously.",
60
+ "routing": {
61
+ "request": {
62
+ "method": "GET",
63
+ "url": "/v1/web/crawl"
64
+ }
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "displayName": "Url",
71
+ "name": "url",
72
+ "type": "string",
73
+ "default": "",
74
+ "description": "Absolute http or https URL to fetch.",
75
+ "placeholder": "e.g. https://example.com/page",
76
+ "required": true,
77
+ "routing": {
78
+ "send": {
79
+ "type": "query",
80
+ "property": "url"
81
+ }
82
+ },
83
+ "displayOptions": {
84
+ "show": {
85
+ "resource": [
86
+ "web"
87
+ ],
88
+ "operation": [
89
+ "web.markdown.generate"
90
+ ]
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "displayName": "Additional Fields",
96
+ "name": "additionalOptions",
97
+ "type": "collection",
98
+ "placeholder": "Add Field",
99
+ "default": {},
100
+ "displayOptions": {
101
+ "show": {
102
+ "resource": [
103
+ "web"
104
+ ],
105
+ "operation": [
106
+ "web.markdown.generate"
107
+ ]
108
+ }
109
+ },
110
+ "options": [
111
+ {
112
+ "displayName": "Filter",
113
+ "name": "filter",
114
+ "type": "options",
115
+ "options": [
116
+ {
117
+ "name": "Fit",
118
+ "value": "fit"
119
+ },
120
+ {
121
+ "name": "Raw",
122
+ "value": "raw"
123
+ },
124
+ {
125
+ "name": "Bm25",
126
+ "value": "bm25"
127
+ }
128
+ ],
129
+ "default": "fit",
130
+ "description": "Content filter strategy for markdown extraction.",
131
+ "routing": {
132
+ "send": {
133
+ "type": "query",
134
+ "property": "filter"
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "displayName": "Query",
140
+ "name": "query",
141
+ "type": "string",
142
+ "default": "",
143
+ "description": "Optional query string used by the bm25 filter to rank relevant content.",
144
+ "placeholder": "e.g. automation",
145
+ "routing": {
146
+ "send": {
147
+ "type": "query",
148
+ "property": "query"
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "displayName": "Cache Mode",
154
+ "name": "cacheMode",
155
+ "type": "options",
156
+ "options": [
157
+ {
158
+ "name": "Enabled",
159
+ "value": "enabled"
160
+ },
161
+ {
162
+ "name": "Bypass",
163
+ "value": "bypass"
164
+ },
165
+ {
166
+ "name": "Write Only",
167
+ "value": "write_only"
168
+ }
169
+ ],
170
+ "default": "enabled",
171
+ "description": "Cache behavior: enabled (read/write cache), bypass (skip cache), or write_only.",
172
+ "routing": {
173
+ "send": {
174
+ "type": "query",
175
+ "property": "cacheMode"
176
+ }
177
+ }
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "displayName": "Url",
183
+ "name": "url",
184
+ "type": "string",
185
+ "default": "",
186
+ "description": "Absolute http or https URL to fetch.",
187
+ "placeholder": "e.g. https://example.com/page",
188
+ "required": true,
189
+ "routing": {
190
+ "send": {
191
+ "type": "query",
192
+ "property": "url"
193
+ }
194
+ },
195
+ "displayOptions": {
196
+ "show": {
197
+ "resource": [
198
+ "web"
199
+ ],
200
+ "operation": [
201
+ "web.ask.run"
202
+ ]
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "displayName": "Q",
208
+ "name": "q",
209
+ "type": "string",
210
+ "default": "",
211
+ "description": "Natural-language question to answer about the page content.",
212
+ "placeholder": "e.g. What is this page about?",
213
+ "required": true,
214
+ "routing": {
215
+ "send": {
216
+ "type": "query",
217
+ "property": "q"
218
+ }
219
+ },
220
+ "displayOptions": {
221
+ "show": {
222
+ "resource": [
223
+ "web"
224
+ ],
225
+ "operation": [
226
+ "web.ask.run"
227
+ ]
228
+ }
229
+ }
230
+ },
231
+ {
232
+ "displayName": "Url",
233
+ "name": "url",
234
+ "type": "string",
235
+ "default": "",
236
+ "description": "Absolute http or https URL to fetch.",
237
+ "placeholder": "e.g. https://example.com/page",
238
+ "required": true,
239
+ "routing": {
240
+ "send": {
241
+ "type": "query",
242
+ "property": "url"
243
+ }
244
+ },
245
+ "displayOptions": {
246
+ "show": {
247
+ "resource": [
248
+ "web"
249
+ ],
250
+ "operation": [
251
+ "web.html.generate"
252
+ ]
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "displayName": "Url",
258
+ "name": "url",
259
+ "type": "string",
260
+ "typeOptions": {
261
+ "multipleValues": true
262
+ },
263
+ "default": [],
264
+ "description": "URLs to crawl. Repeat the `url` query parameter for multiple pages (max 5).",
265
+ "required": true,
266
+ "routing": {
267
+ "send": {
268
+ "type": "query",
269
+ "property": "url"
270
+ }
271
+ },
272
+ "displayOptions": {
273
+ "show": {
274
+ "resource": [
275
+ "web"
276
+ ],
277
+ "operation": [
278
+ "web.crawl.run"
279
+ ]
280
+ }
281
+ }
282
+ }
283
+ ];