@qontext/n8n-nodes-qontext 0.1.5 → 1.0.1

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 (100) hide show
  1. package/README.md +269 -67
  2. package/dist/credentials/QontextApi.credentials.js +6 -3
  3. package/dist/credentials/QontextApi.credentials.js.map +1 -1
  4. package/dist/nodes/Qontext/Qontext.node.d.ts +8 -0
  5. package/dist/nodes/Qontext/Qontext.node.js +31 -9
  6. package/dist/nodes/Qontext/Qontext.node.js.map +1 -1
  7. package/dist/nodes/Qontext/Qontext.node.json +3 -3
  8. package/dist/nodes/Qontext/actions/common/api.d.ts +3 -0
  9. package/dist/nodes/Qontext/actions/common/api.js +7 -0
  10. package/dist/nodes/Qontext/actions/common/api.js.map +1 -0
  11. package/dist/nodes/Qontext/actions/common/legacy.d.ts +2 -0
  12. package/dist/nodes/Qontext/actions/common/legacy.js +34 -0
  13. package/dist/nodes/Qontext/actions/common/legacy.js.map +1 -0
  14. package/dist/nodes/Qontext/actions/common/locator.d.ts +14 -0
  15. package/dist/nodes/Qontext/actions/common/locator.js +90 -0
  16. package/dist/nodes/Qontext/actions/common/locator.js.map +1 -0
  17. package/dist/nodes/Qontext/actions/common/pagination.d.ts +3 -0
  18. package/dist/nodes/Qontext/actions/common/pagination.js +104 -0
  19. package/dist/nodes/Qontext/actions/common/pagination.js.map +1 -0
  20. package/dist/nodes/Qontext/actions/common/resolvePath.d.ts +3 -0
  21. package/dist/nodes/Qontext/actions/common/resolvePath.js +37 -0
  22. package/dist/nodes/Qontext/actions/common/resolvePath.js.map +1 -0
  23. package/dist/nodes/Qontext/actions/file/createFile.operation.d.ts +2 -0
  24. package/dist/nodes/Qontext/actions/file/createFile.operation.js +118 -0
  25. package/dist/nodes/Qontext/actions/file/createFile.operation.js.map +1 -0
  26. package/dist/nodes/Qontext/actions/file/deleteFile.operation.d.ts +2 -0
  27. package/dist/nodes/Qontext/actions/file/deleteFile.operation.js +13 -0
  28. package/dist/nodes/Qontext/actions/file/deleteFile.operation.js.map +1 -0
  29. package/dist/nodes/Qontext/actions/file/file.resource.d.ts +2 -0
  30. package/dist/nodes/Qontext/actions/file/file.resource.js +117 -0
  31. package/dist/nodes/Qontext/actions/file/file.resource.js.map +1 -0
  32. package/dist/nodes/Qontext/actions/file/getFile.operation.d.ts +2 -0
  33. package/dist/nodes/Qontext/actions/file/getFile.operation.js +13 -0
  34. package/dist/nodes/Qontext/actions/file/getFile.operation.js.map +1 -0
  35. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.d.ts +2 -0
  36. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js +105 -0
  37. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js.map +1 -0
  38. package/dist/nodes/Qontext/actions/file/updateFile.operation.d.ts +2 -0
  39. package/dist/nodes/Qontext/actions/file/updateFile.operation.js +97 -0
  40. package/dist/nodes/Qontext/actions/file/updateFile.operation.js.map +1 -0
  41. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.d.ts +2 -0
  42. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js +72 -0
  43. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js.map +1 -0
  44. package/dist/nodes/Qontext/actions/folder/createFolder.operation.d.ts +2 -0
  45. package/dist/nodes/Qontext/actions/folder/createFolder.operation.js +88 -0
  46. package/dist/nodes/Qontext/actions/folder/createFolder.operation.js.map +1 -0
  47. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.d.ts +2 -0
  48. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js +33 -0
  49. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js.map +1 -0
  50. package/dist/nodes/Qontext/actions/folder/folder.resource.d.ts +2 -0
  51. package/dist/nodes/Qontext/actions/folder/folder.resource.js +103 -0
  52. package/dist/nodes/Qontext/actions/folder/folder.resource.js.map +1 -0
  53. package/dist/nodes/Qontext/actions/folder/getFolder.operation.d.ts +2 -0
  54. package/dist/nodes/Qontext/actions/folder/getFolder.operation.js +13 -0
  55. package/dist/nodes/Qontext/actions/folder/getFolder.operation.js.map +1 -0
  56. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.d.ts +2 -0
  57. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js +105 -0
  58. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js.map +1 -0
  59. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.d.ts +2 -0
  60. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js +71 -0
  61. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js.map +1 -0
  62. package/dist/nodes/Qontext/actions/search/search.resource.d.ts +2 -0
  63. package/dist/nodes/Qontext/actions/search/search.resource.js +63 -0
  64. package/dist/nodes/Qontext/actions/search/search.resource.js.map +1 -0
  65. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.d.ts +2 -0
  66. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js +75 -0
  67. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js.map +1 -0
  68. package/dist/nodes/Qontext/actions/search/searchRegex.operation.d.ts +2 -0
  69. package/dist/nodes/Qontext/actions/search/searchRegex.operation.js +75 -0
  70. package/dist/nodes/Qontext/actions/search/searchRegex.operation.js.map +1 -0
  71. package/dist/nodes/Qontext/methods/listSearch.d.ts +4 -0
  72. package/dist/nodes/Qontext/methods/listSearch.js +48 -0
  73. package/dist/nodes/Qontext/methods/listSearch.js.map +1 -0
  74. package/dist/package.json +16 -7
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +16 -7
  77. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.dark.svg +0 -13
  78. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.svg +0 -13
  79. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.dark.svg +0 -3
  80. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.svg +0 -3
  81. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.dark.svg +0 -13
  82. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.svg +0 -13
  83. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.d.ts +0 -2
  84. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js +0 -217
  85. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js.map +0 -1
  86. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.d.ts +0 -2
  87. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js +0 -37
  88. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js.map +0 -1
  89. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.d.ts +0 -2
  90. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js +0 -61
  91. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js.map +0 -1
  92. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.d.ts +0 -2
  93. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js +0 -80
  94. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js.map +0 -1
  95. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.d.ts +0 -2
  96. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js +0 -41
  97. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js.map +0 -1
  98. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.d.ts +0 -2
  99. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js +0 -83
  100. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js.map +0 -1
package/README.md CHANGED
@@ -1,8 +1,18 @@
1
1
  # @qontext/n8n-nodes-qontext
2
2
 
3
- This is an n8n community node. It lets you interact with the Qontext API in your n8n workflows.
3
+ This is an n8n community node. It lets you read and maintain your Qontext context
4
+ repository from your n8n workflows.
4
5
 
5
- Qontext allows you to ingest, store, and retrieve contextual information from various data sources. This node enables you to integrate Qontext's context retrieval and ingestion capabilities into your n8n automation workflows.
6
+ [Qontext](https://qontext.ai) is a self-maintaining context repository: one place to hold
7
+ the company knowledge your AI systems depend on, instead of rebuilding it separately
8
+ inside every tool. Context lives as files in folders, with access control and review on
9
+ changes, and is reachable over the API, MCP and CLI.
10
+
11
+ This node puts that repository inside n8n. Workflows can create and edit files, organise
12
+ folders, and search the repository by meaning or by regular expression — so a workflow
13
+ becomes one of the things keeping your context current, not just a consumer of it. The
14
+ node is also available as an AI Agent tool, so an agent can look something up, read a
15
+ file and write one back as part of its own reasoning.
6
16
 
7
17
  [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
8
18
 
@@ -10,8 +20,11 @@ Qontext allows you to ingest, store, and retrieve contextual information from va
10
20
 
11
21
  - [Installation](#installation)
12
22
  - [Operations](#operations)
13
- - [Retrieval Operations](#retrieval-operations)
14
- - [Ingestion Operations](#ingestion-operations)
23
+ - [Choosing a File or Folder](#choosing-a-file-or-folder)
24
+ - [File](#file)
25
+ - [Folder](#folder)
26
+ - [Search](#search)
27
+ - [Pagination](#pagination)
15
28
  - [Credentials](#credentials)
16
29
  - [Compatibility](#compatibility)
17
30
  - [Usage](#usage)
@@ -23,52 +36,239 @@ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes
23
36
 
24
37
  ## Operations
25
38
 
26
- The Qontext node supports two main resources: **Retrieval** and **Ingestion**.
27
-
28
- ### Retrieval Operations
29
-
30
- #### Retrieve Context
31
- Retrieves relevant context from a specified vault based on a prompt.
32
-
33
- Example: retrieve information from older support tickets, documentation, and discussions to draft replies to new customer requests.
34
-
35
- **Parameters:**
36
- - **Vault ID** (required): The ID of the vault that should be used to retrieve context
37
- - **Prompt** (required): The prompt to retrieve context for
38
- - **Additional Fields:**
39
- - **Limit** (required, default: 5): Number of nodes on first level to consider (minimum: 1)
40
- - **Depth** (required, default: 1): Depth of nodes to retrieve from the graph
41
-
42
- ### Ingestion Operations
43
-
44
- #### Ingest Data with Metadata
45
- Ingests structured or unstructured data with metadata into a specified vault. This operation allows you to add data with source tracking information.
39
+ The node has three resources: **File**, **Folder** and **Search**. The workspace whose
40
+ context repository you are working in is implicit in your API key, so no workspace ID is
41
+ ever needed in a request.
42
+
43
+ ### Choosing a file or folder
46
44
 
47
- **Parameters:**
48
- - **Vault ID** (required): The ID of the vault that the data should be ingested into
49
- - **Text** (required): The unstructured data (plain or markdown text) to ingest
50
- - **Data Source Name** (required): The system or platform where the data originates
51
- - Options: HubSpot, Web, Gmail, GoogleDrive, API, Notion, Gong, Slack
52
- - **Data Source Type** (required): The specific type of data being ingested from the source
53
- - Options: Contact, Company, Deal, Lead, Note, Task, Meeting, Email, Website, Page, File, None, Call, Message
54
- - **Data Source ID** (required): The unique identifier of the data item in the source system
45
+ Every ID field offers more than one way to name what you mean:
46
+
47
+ | Mode | What you give it | Notes |
48
+ |---|---|---|
49
+ | **By ID** | `doc_…` / `dir_…` | The default, except on the fields that accept the root. Checked against the ID shape as you type, so a wrong prefix is an error in the editor rather than a `400 invalid_id` at run time. The bare `doc_…` form only — the API rejects the composite version id `doc_…-cmit_…` on every file endpoint. |
50
+ | **From List** | pick from a dropdown of paths | Lists the whole tree and stores the ID, so a later rename or move does not break the workflow. |
51
+ | **By Path** | `/support/policies/refunds.md` | Only on fields that name the *subject* of the operation. Costs one extra request per item to turn the path into an ID. |
52
+
53
+ **By Path** is deliberately absent from the fields that merely *reference* a folder — the
54
+ two Create operations and the two Get Many filters — because each already has a path
55
+ route of its own: Create takes a full **Path**, and Get Many has a **Path Prefix** filter.
56
+
57
+ Where the root is a legal answer — creating a folder at the top level, or moving an item
58
+ to the root — the dropdown offers **/ (Root)** as its first entry. The root has no ID and
59
+ no addressable path, so the list is the only place it can be named, and those fields open
60
+ on **From List** rather than **By ID** for that reason. Picking the root is an answer like
61
+ any other: the field is required, so a move never falls back to the top level because it
62
+ was left alone.
63
+
64
+ One limitation worth knowing: the API has no text search over paths, so typing in the
65
+ **From List** box filters the page already loaded rather than querying the server. On a
66
+ large repository a filter can miss a match further down. **By ID** and **By Path** are
67
+ always exact.
68
+
69
+ ### File
70
+
71
+ #### Create
72
+ Creates a file at the path given. This is **not** an upsert: a path already holding a
73
+ file is a conflict, so it never overwrites and never creates a duplicate.
74
+
75
+ - **Create By**: `Path` (give the full absolute path) or `Parent Folder` (name an existing folder by ID)
76
+ - **Path** (required with `Path`): absolute, ending in `.md` — e.g. `/support/policies/refunds.md`
77
+ - **Parent Folder ID** + **File Name** (required with `Parent Folder`)
78
+ - **Content** (required): markdown or plain text
79
+
80
+ #### Get
81
+ Fetches a single file by its ID, with its full text. The ID is stable and survives a
82
+ rename or a move. A file in another workspace answers as not found, so existence does
83
+ not leak.
84
+
85
+ `content` and `lastChangeId` are read off the same stored revision, so together they are
86
+ everything **Update Content** needs for the next write: the base you get back is the base
87
+ the text belongs to. The other operations answer the file *without* its content — Create
88
+ projects what it just wrote, and Update answers from the write — so `File` and
89
+ `FileWithContent` are separate shapes, and only the read by ID carries the text.
90
+
91
+ - **File ID** (required)
92
+
93
+ #### Get Many
94
+ Lists files. See [Pagination](#pagination).
95
+
96
+ - **Filter By**: `None` (every file the key can read), `Path` (exact path, ending in
97
+ `.md`, returns zero or one file), `Path Prefix` (every file below a folder,
98
+ recursively) or `Folder ID` (files directly inside a folder, one level only). Only one
99
+ filter can be used — the API rejects a request carrying two.
100
+
101
+ #### Update
102
+ Renames a file, moves it to another folder, or changes whether writes to it go to
103
+ review. **Exactly one** of the three per request — the API rejects two rather than
104
+ ordering them, because they are separate writes with no transaction across them. The
105
+ file's ID never changes, so IDs held elsewhere stay valid; the path does change.
106
+
107
+ - **File ID** (required)
108
+ - **Action**: `Rename` (then **Name**, including the `.md` extension), `Move` (then
109
+ **New Folder ID**, choosing `/ (Root)` to move it to the root), or `Set Protected`
110
+ (then **Protected**)
111
+
112
+ Note the asymmetry with folders: a file moves via **New Folder ID**, a folder via
113
+ **New Parent Folder ID**.
114
+
115
+ #### Delete
116
+ Deletes a file and outputs `{ "success": true }`. Its change history goes with it, so
117
+ this is **not reversible** through the API. A protected file, or one with changes still
118
+ awaiting review, is refused (`file_protected` / `pending_changes`) and nothing is
119
+ removed — clear **Protected** first if you mean to delete it.
120
+
121
+ - **File ID** (required)
122
+
123
+ #### Update Content
124
+ Replaces the entire content of a file.
125
+
126
+ - **File ID** (required)
127
+ - **Base Change ID** (required): the file's `lastChangeId` when your edit started
128
+ - **Content** (required): the full new content
129
+
130
+ Qontext uses optimistic concurrency, so you must read the file before writing it —
131
+ use **File → Get** first and pass its `lastChangeId` into **Base Change ID**. The same
132
+ Get also returns the current `content`, so the text you are revising and the base you
133
+ send with it come from one request:
134
+
135
+ ```
136
+ Qontext (File → Get) → edit {{ $json.content }} → Qontext (File → Update Content)
137
+ Base Change ID: {{ $json.lastChangeId }}
138
+ ```
139
+
140
+ If the file changed in the meantime, the edit is merged where possible. The response's
141
+ `content` is what actually landed, which is not always what you sent — adopt it before
142
+ editing the file again.
143
+
144
+ > **The edit does not always land, and a blocked edit is not an error.** Protection is
145
+ > Qontext's human-review mechanism: a write to a protected file becomes a change for
146
+ > someone to approve rather than an edit that merges. So if the file is **protected**, or
147
+ > your edit collides on the same lines as work that landed since, the
148
+ > API answers `202` — a *success* your workflow will not catch with error handling — and
149
+ > the output has a **different shape**:
150
+ >
151
+ > | outcome | output |
152
+ > |---|---|
153
+ > | landed | `{ "object": "edit", "file": { … }, "content": "…" }` |
154
+ > | blocked | `{ "object": "change", "id": "chg_…", "status": "blocked", "reason": "protected" \| "conflict", "fileIds": [ … ] }` |
155
+ >
156
+ > A blocked result has **no `file` key**, so a downstream node reading
157
+ > `{{ $json.file.lastChangeId }}` breaks. Branch on `{{ $json.object }}` (an IF node
158
+ > testing for `edit`) whenever the file might be protected or concurrently edited.
159
+ >
160
+ > A blocked change also **pins the file**: until someone resolves it, deleting that file
161
+ > or any folder containing it is refused with `pending_changes`. There is no v1 endpoint
162
+ > to resolve a change, so this is done in the Qontext UI.
163
+
164
+ ### Folder
165
+
166
+ #### Create
167
+ Creates one folder. Like files, this is not an upsert; an occupied path is a conflict.
168
+
169
+ - **Create By**: `Path` (missing parents are created on the way) or `Parent Folder`
170
+ - **Path** (required with `Path`) — e.g. `/projects/reports`
171
+ - **Parent Folder ID** (choose `/ (Root)` for the top level) + **Name** (required with `Parent Folder`)
172
+
173
+ #### Get
174
+ Fetches a single folder by its ID.
175
+
176
+ - **Folder ID** (required)
177
+
178
+ #### Get Many
179
+ Lists folders. Without a filter it lists root folders. See [Pagination](#pagination).
180
+
181
+ - **Filter By**: `None` (root folders), `Path`, `Path Prefix` or `Parent Folder ID`.
182
+ One only, for the same reason as files.
183
+
184
+ #### Update
185
+ Renames a folder in place or moves it. A move takes the whole subtree and every ID in
186
+ it survives, so IDs held elsewhere stay valid — only the paths below it change.
187
+
188
+ - **Folder ID** (required)
189
+ - **Action**: `Rename` (then **Name**) or `Move` (then **New Parent Folder ID**,
190
+ choosing `/ (Root)` to move it to the root)
191
+
192
+ #### Delete
193
+ Deletes a folder and outputs `{ "success": true }`.
194
+
195
+ - **Folder ID** (required)
196
+ - **Recursive** (default off): delete everything below it too. Left off, a folder that
197
+ still has contents is refused and nothing is removed.
198
+
199
+ ### Search
200
+
201
+ Both operations return one n8n item per result, and a result appears only if your API
202
+ key can read the file. A new or changed file is not searchable straight away, so search
203
+ again in a moment if you do not see it.
204
+
205
+ #### By Meaning
206
+ Finds the files that match your query and returns their content, best match first. It
207
+ also matches on meaning, so it finds files that answer the query without using the same
208
+ words.
209
+
210
+ - **Query** (required): a few words or a whole question
211
+ - **Limit** (default 10, max 500)
212
+ - **Include Sources** (default on): cite the file each result came from
213
+
214
+ #### By Regex
215
+ Finds lines matching an [RE2](https://github.com/google/re2/wiki/Syntax) regular
216
+ expression. Each result cites the file the lines came from. Results are not
217
+ relevance-ranked.
218
+
219
+ - **Query** (required): the RE2 pattern
220
+ - **Limit** (default 10, max 500)
221
+ - **Include Sources** (default on)
222
+
223
+ ## Errors
224
+
225
+ The API answers with `application/problem+json` carrying a machine-readable `code`, a
226
+ human-readable `detail` and a `requestId`. n8n shows a generic message for the status
227
+ code — the precise `detail` is in the node's error output, under `context.data`.
228
+
229
+ | code | status | when |
230
+ |---|---|---|
231
+ | `invalid_request` | 400 | Unknown or malformed field; two mutually exclusive filters; not exactly one action on Update |
232
+ | `invalid_id` | 400 | An ID is not of the form `doc_…` / `dir_…` |
233
+ | `invalid_cursor` | 400 | The cursor is malformed, or was issued for a different query — start again from the first page |
234
+ | `invalid_change_id` | 400 | Base Change ID is not of the form `chg_…` |
235
+ | `invalid_base_change` | 400 | Base Change ID names no change of this file |
236
+ | `unauthenticated` | 401 | Missing or invalid API key |
237
+ | `forbidden` | 403 | The key may not perform this write |
238
+ | `file_not_found` / `folder_not_found` | 404 | No such item readable with this key. An item in another workspace answers the same way, so existence does not leak |
239
+ | `path_already_exists` | 409 | Something is already at that path — Create is never an upsert |
240
+ | `folder_not_empty` | 409 | Delete a folder that still has contents; send Recursive |
241
+ | `file_protected` | 409 | Delete a protected file; clear Protected first |
242
+ | `pending_changes` | 409 | The file, or a file in the folder, has changes awaiting review |
243
+ | `content_too_large` | 422 | Content is longer than the published limit |
244
+ | `internal_error` | 500 | Unexpected failure, already reported |
245
+ | `service_unavailable` | 503 | Temporarily unreachable — honour `Retry-After` |
246
+
247
+ ## Pagination
248
+
249
+ **File → Get Many** and **Folder → Get Many** are cursor paginated, never offset.
250
+
251
+ - **Return All** on: the node follows `nextCursor` until the API reports no more pages.
252
+ - **Return All** off: **Limit** (max 1000) caps the results, and **Cursor** lets you
253
+ resume from a `nextCursor` you captured earlier. A cursor belongs to the query that
254
+ issued it, so changing a filter means starting again from the first page.
255
+ - **Simplify** on (default): you get one n8n item per file or folder.
256
+ - **Simplify** off: you get the raw envelope — `{ object, url, hasMore, nextCursor, data }` —
257
+ which is how you reach `nextCursor` for a manual page walk. With Return All also on,
258
+ that means one envelope item per page.
55
259
 
56
- #### Ingest Unstructured Text
57
- Ingests plain unstructured text into a specified vault without metadata requirements.
260
+ Do not treat a short page as the end of the list: items your key may not read are
261
+ dropped after the page is read, so `hasMore` is the only reliable signal.
58
262
 
59
- **Parameters:**
60
- - **Vault ID** (required): The ID of the vault that the data should be ingested into
61
- - **Text** (required): The text data to ingest
263
+ ## Upgrading from 0.1.x
62
264
 
63
- #### Ingest Website
64
- Ingests content from a website URL into a specified vault. Supports both single page and deep crawl options.
265
+ 1.0.0 replaces the entire operation set, because the endpoints the previous operations
266
+ called no longer exist. Workflows built on 0.1.x need their Qontext nodes reconfigured
267
+ against the File, Folder and Search resources above.
65
268
 
66
- **Parameters:**
67
- - **Vault ID** (required): The ID of the vault that the data should be ingested into
68
- - **URL** (required): The website URL to ingest
69
- - **Type** (required): The type of ingestion to perform
70
- - **Single Page**: Ingests only the given URL. Use for one-off pages or articles.
71
- - **Deep Crawl**: Crawls the whole site from that URL and follows links, scrapes multiple pages as markdown, and ingests them in one go.
269
+ A node still holding an old setting does not fail obscurely: it stops with a message
270
+ naming the operation to use instead. Workspace IDs are gone from every operation — the
271
+ workspace is implicit in the API key.
72
272
 
73
273
  ## Credentials
74
274
 
@@ -77,47 +277,49 @@ To use the Qontext node, you need to set up Qontext API credentials.
77
277
  ### Prerequisites
78
278
 
79
279
  1. Sign up for a Qontext account at [https://qontext.ai](https://qontext.ai)
80
- 2. Create an API key in your Qontext account (e.g. in **Access Keys** section in the respective Qontext vault)
280
+ 2. Create an API key in your Qontext account (e.g. in the **Access Keys** section)
81
281
 
82
282
  ### Setting Up Credentials
83
283
 
84
284
  1. In n8n, go to **Credentials** → **Add Credential**
85
285
  2. Search for **Qontext API**
86
- 3. Enter the API key you created in the Qontext UI:
87
- - **X-API-Key**: Your Qontext API key (this field is masked for security)
88
- - **Domain**: The API domain (default: `https://api.qontext.ai`)
286
+ 3. Enter:
287
+ - **API Key**: your Qontext API key (masked for security)
288
+ - **Base URL**: the Qontext API base URL. Leave the default (`https://api.qontext.ai`)
289
+ unless you have been given a different host.
89
290
 
90
- The credentials will be automatically validated when you save them.
291
+ The credentials are validated when you save them.
91
292
 
92
293
  ## Compatibility
93
294
 
94
- - **Minimum n8n version**: Compatible with n8n versions that support community nodes
95
- - **API Version**: Uses Qontext API v1
96
- - **Node API Version**: 1
295
+ - **Minimum n8n version**: compatible with n8n versions that support community nodes
296
+ - **API version**: Qontext API v1
297
+ - **Node API version**: 1
97
298
 
98
299
  ## Usage
99
300
 
100
- ### Basic Workflow Example
301
+ ### Basic workflow example
101
302
 
102
- 1. **Set up credentials**: Create an API key in your [Qontext account](https://qontext.ai), then in n8n add the **Qontext API** credential and paste the key.
103
- 2. **Add the Qontext node** to your workflow and choose **Retrieval** or **Ingestion**.
104
- 3. **Pick an operation** (e.g. Retrieve Context, Ingest Website) and fill in the required fields (Vault ID, Prompt or URL, etc.).
105
- 4. **Run the workflow** to retrieve context or ingest data into your vault.
303
+ 1. **Set up credentials**: create an API key in your [Qontext account](https://qontext.ai), then add the **Qontext API** credential in n8n and paste the key.
304
+ 2. **Add the Qontext node** and choose **File**, **Folder** or **Search**.
305
+ 3. **Pick an operation** and fill in the required fields.
306
+ 4. **Run the workflow**.
106
307
 
107
- For general n8n workflow basics, see the [n8n documentation](https://docs.n8n.io/try-it-out/).
308
+ The node is also usable as an AI Agent tool, so an agent can search your context, read a
309
+ file and write one back.
108
310
 
109
- ### Common Use Cases
311
+ ### Common use cases
110
312
 
111
- - **Data ingestion**: Ingest data from Slack, Gmail, HubSpot, and other sources into your vaults so it can be queried later.
112
- - **Personalized emails**: Pull in relevant context (e.g. customer history, product info) when drafting personalized marketing emails.
113
- - **Lost deal reactivation**: Retrieve context on why a deal was lost, then draft personalized reactivation messages.
114
- - **Sales call prep**: Before a call, get context for the lead to surface notes, deals, and past interactions.
115
- - **Support and answer drafts**: Retrieve information related to a new support tickets in older tickets, documentations, discussions etc. and generate answer drafts for customer requests.
313
+ - **Keep context current**: when a system of record changes, write the update straight into the repository so every connected AI system sees it.
314
+ - **Answer from company knowledge**: search by meaning for an incoming question — a support ticket, an RFP, a sales enquiry — and draft a reply grounded in what the repository holds.
315
+ - **Let an agent maintain its own context**: attach the node to an AI Agent so it can read a file, revise it and write it back.
316
+ - **Bring another source in**: turn records from a system Qontext has no native connector for into files under a folder per source.
317
+ - **Audit a subtree**: list every file under a path prefix with Return All and report on what is there.
116
318
 
117
- For new n8n users, check out the [Try it out](https://docs.n8n.io/try-it-out/) documentation to get started with n8n basics.
319
+ For general n8n basics, see the [Try it out](https://docs.n8n.io/try-it-out/) documentation.
118
320
 
119
321
  ## Resources
120
322
 
121
323
  * [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
122
324
  * [Qontext Documentation](https://docs.qontext.ai/get-started)
123
- * [GitHub Repository](https://github.com/qontext-ai/n8n-nodes-qontext)
325
+ * [GitHub Repository](https://github.com/qontext-ai/n8n-nodes-qontext)
@@ -12,16 +12,19 @@ class QontextApi {
12
12
  };
13
13
  this.properties = [
14
14
  {
15
- displayName: 'Domain',
16
- name: 'domain',
15
+ displayName: 'Base URL',
16
+ name: 'baseUrl',
17
17
  type: 'string',
18
18
  default: 'https://api.qontext.ai',
19
+ required: true,
20
+ description: 'Base URL of the Qontext API. Leave the default unless you have been given a different host.',
19
21
  },
20
22
  {
21
23
  displayName: 'API Key',
22
24
  name: 'xApiKey',
23
25
  type: 'string',
24
26
  default: '',
27
+ required: true,
25
28
  typeOptions: {
26
29
  password: true,
27
30
  }
@@ -38,7 +41,7 @@ class QontextApi {
38
41
  this.test = {
39
42
  request: {
40
43
  method: 'POST',
41
- baseURL: '={{$credentials?.domain}}',
44
+ baseURL: '={{$credentials?.baseUrl}}',
42
45
  url: '/auth/validate-key',
43
46
  headers: {
44
47
  'X-API-Key': '={{$credentials?.xApiKey}}',
@@ -1 +1 @@
1
- {"version":3,"file":"QontextApi.credentials.js","sourceRoot":"","sources":["../../credentials/QontextApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,qBAAgB,GAAG,qCAAqC,CAAC;QACzD,SAAI,GAAG;YACN,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,uBAAuB;SACpB,CAAC;QACX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wBAAwB;aACjC;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,2BAA2B;iBACxC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,oBAAoB;gBACzB,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;oBACzC,QAAQ,EAAE,KAAK;iBACf;gBACD,IAAI,EAAE,EAAE;aACR;SACD,CAAA;IACF,CAAC;CAAA;AAjDD,gCAiDC;AAAA,CAAC"}
1
+ {"version":3,"file":"QontextApi.credentials.js","sourceRoot":"","sources":["../../credentials/QontextApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,qBAAgB,GAAG,qCAAqC,CAAC;QACzD,SAAI,GAAG;YACN,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,uBAAuB;SACpB,CAAC;QACX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6FAA6F;aAC1G;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,2BAA2B;iBACxC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,oBAAoB;gBACzB,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;oBACzC,QAAQ,EAAE,KAAK;iBACf;gBACD,IAAI,EAAE,EAAE;aACR;SACD,CAAA;IACF,CAAC;CAAA;AApDD,gCAoDC;AAAA,CAAC"}
@@ -1,4 +1,12 @@
1
1
  import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ import { searchFiles, searchFolders, searchFoldersWithRoot } from './methods/listSearch';
2
3
  export declare class Qontext implements INodeType {
4
+ methods: {
5
+ listSearch: {
6
+ searchFiles: typeof searchFiles;
7
+ searchFolders: typeof searchFolders;
8
+ searchFoldersWithRoot: typeof searchFoldersWithRoot;
9
+ };
10
+ };
3
11
  description: INodeTypeDescription;
4
12
  }
@@ -2,10 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Qontext = void 0;
4
4
  const n8n_workflow_1 = require("n8n-workflow");
5
- const ingestion_resource_1 = require("./actions/ingestion/ingestion.resource");
6
- const retrieval_resource_1 = require("./actions/retrieval/retrieval.resource");
5
+ const listSearch_1 = require("./methods/listSearch");
6
+ const legacy_1 = require("./actions/common/legacy");
7
+ const file_resource_1 = require("./actions/file/file.resource");
8
+ const folder_resource_1 = require("./actions/folder/folder.resource");
9
+ const search_resource_1 = require("./actions/search/search.resource");
7
10
  class Qontext {
8
11
  constructor() {
12
+ this.methods = {
13
+ listSearch: {
14
+ searchFiles: listSearch_1.searchFiles,
15
+ searchFolders: listSearch_1.searchFolders,
16
+ searchFoldersWithRoot: listSearch_1.searchFoldersWithRoot,
17
+ },
18
+ };
9
19
  this.description = {
10
20
  displayName: 'Qontext',
11
21
  name: 'qontext',
@@ -16,7 +26,7 @@ class Qontext {
16
26
  group: ['transform'],
17
27
  version: 1,
18
28
  subtitle: '={{$parameter["operation"] || "Select operation"}}: {{$parameter["resource"] || "Select resource"}}',
19
- description: 'Ingest and retrieve company context with the Qontext API',
29
+ description: 'Read, write and search your Qontext context repository',
20
30
  defaults: {
21
31
  name: 'Qontext',
22
32
  },
@@ -24,8 +34,17 @@ class Qontext {
24
34
  inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
25
35
  outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
26
36
  credentials: [{ name: 'qontextApi', required: true }],
37
+ hints: [
38
+ {
39
+ message: 'Check <code>object</code> on the output. <code>edit</code> means the content landed; <code>change</code> means it was held for review and there is no <code>file</code> key to read.',
40
+ type: 'info',
41
+ location: 'outputPane',
42
+ displayCondition: '={{ $parameter.operation === "updateContent" }}',
43
+ whenToDisplay: 'afterExecution',
44
+ },
45
+ ],
27
46
  requestDefaults: {
28
- baseURL: '={{$credentials.domain}}',
47
+ baseURL: '={{$credentials.baseUrl}}',
29
48
  headers: {
30
49
  Accept: 'application/json',
31
50
  'Content-Type': 'application/json',
@@ -38,13 +57,16 @@ class Qontext {
38
57
  type: 'options',
39
58
  noDataExpression: true,
40
59
  options: [
41
- { name: 'Ingestion', value: 'ingestion' },
42
- { name: 'Retrieval', value: 'retrieval' },
60
+ { name: 'File', value: 'file' },
61
+ { name: 'Folder', value: 'folder' },
62
+ { name: 'Search', value: 'search' },
43
63
  ],
44
- default: 'retrieval',
64
+ default: 'file',
45
65
  },
46
- ...ingestion_resource_1.ingestionOperations,
47
- ...retrieval_resource_1.retrievalOperations,
66
+ ...legacy_1.legacyResourceGuard,
67
+ ...file_resource_1.fileOperations,
68
+ ...folder_resource_1.folderOperations,
69
+ ...search_resource_1.searchOperations,
48
70
  ],
49
71
  };
50
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Qontext.node.js","sourceRoot":"","sources":["../../../nodes/Qontext/Qontext.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,+EAA6E;AAC7E,+EAA6E;AAE7E,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,wBAAwB;gBAC/B,IAAI,EAAE,uBAAuB;aAAE;YAChC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,qGAAqG;YAC/G,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACrD,eAAe,EAAE;gBAChB,OAAO,EAAE,0BAA0B;gBACnC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBAEX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;wBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;qBACzC;oBACD,OAAO,EAAE,WAAW;iBACpB;gBACD,GAAG,wCAAmB;gBACtB,GAAG,wCAAmB;aACtB;SACD,CAAC;IACH,CAAC;CAAA;AA1CD,0BA0CC"}
1
+ {"version":3,"file":"Qontext.node.js","sourceRoot":"","sources":["../../../nodes/Qontext/Qontext.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,qDAAyF;AACzF,oDAA8D;AAC9D,gEAA8D;AAC9D,sEAAoE;AACpE,sEAAoE;AAEpE,MAAa,OAAO;IAApB;QAGC,YAAO,GAAG;YACT,UAAU,EAAE;gBACX,WAAW,EAAX,wBAAW;gBACX,aAAa,EAAb,0BAAa;gBACb,qBAAqB,EAArB,kCAAqB;aACrB;SACD,CAAC;QAEF,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,wBAAwB;gBAC/B,IAAI,EAAE,uBAAuB;aAAE;YAChC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,qGAAqG;YAC/G,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAKrD,KAAK,EAAE;gBACN;oBACC,OAAO,EACN,sLAAsL;oBACvL,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,YAAY;oBACtB,gBAAgB,EAAE,iDAAiD;oBACnE,aAAa,EAAE,gBAAgB;iBAC/B;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,2BAA2B;gBACpC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBAEX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wBACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;qBACnC;oBACD,OAAO,EAAE,MAAM;iBACf;gBACD,GAAG,4BAAmB;gBACtB,GAAG,8BAAc;gBACjB,GAAG,kCAAgB;gBACnB,GAAG,kCAAgB;aACnB;SACD,CAAC;IACH,CAAC;CAAA;AArED,0BAqEC"}
@@ -1,17 +1,17 @@
1
1
  {
2
- "node": "n8n-nodes-base.Qontext",
2
+ "node": "@qontext/n8n-nodes-qontext",
3
3
  "nodeVersion": "1.0",
4
4
  "codexVersion": "1.0",
5
5
  "categories": ["Development", "Data & Storage", "Productivity"],
6
6
  "resources": {
7
7
  "credentialDocumentation": [
8
8
  {
9
- "url": "https://docs.qontext.ai/get_started"
9
+ "url": "https://docs.qontext.ai/get-started"
10
10
  }
11
11
  ],
12
12
  "primaryDocumentation": [
13
13
  {
14
- "url": "https://docs.qontext.ai/get_started"
14
+ "url": "https://docs.qontext.ai/get-started"
15
15
  }
16
16
  ]
17
17
  }
@@ -0,0 +1,3 @@
1
+ export declare const FILES_URL = "/v1/files";
2
+ export declare const FOLDERS_URL = "/v1/folders";
3
+ export declare const SEARCH_URL = "/v1/search";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEARCH_URL = exports.FOLDERS_URL = exports.FILES_URL = void 0;
4
+ exports.FILES_URL = '/v1/files';
5
+ exports.FOLDERS_URL = '/v1/folders';
6
+ exports.SEARCH_URL = '/v1/search';
7
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/common/api.ts"],"names":[],"mappings":";;;AAGa,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,WAAW,GAAG,aAAa,CAAC;AAC5B,QAAA,UAAU,GAAG,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type INodeProperties } from 'n8n-workflow';
2
+ export declare const legacyResourceGuard: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.legacyResourceGuard = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const REMOVED = {
6
+ ingestion: 'The endpoints behind it no longer exist. Write files instead: File > Create, or File > Update Content for a file that already exists.',
7
+ retrieval: 'Use Search > By Meaning, which searches the same content and tells you which file each result came from.',
8
+ };
9
+ async function refuseRemovedResource() {
10
+ var _a;
11
+ const resource = this.getNodeParameter('resource', '');
12
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The "${resource}" resource no longer exists`, {
13
+ description: (_a = REMOVED[resource]) !== null && _a !== void 0 ? _a : 'Pick one of File, Folder or Search.',
14
+ });
15
+ }
16
+ exports.legacyResourceGuard = [
17
+ {
18
+ displayName: 'This node is set to a resource that was removed in version 1.0.0. Pick File, Folder or Search, then set the operation and its fields again.',
19
+ name: 'legacyNotice',
20
+ type: 'notice',
21
+ default: '',
22
+ displayOptions: {
23
+ show: {
24
+ resource: ['ingestion', 'retrieval'],
25
+ },
26
+ },
27
+ routing: {
28
+ send: {
29
+ preSend: [refuseRemovedResource],
30
+ },
31
+ },
32
+ },
33
+ ];
34
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/common/legacy.ts"],"names":[],"mappings":";;;AAAA,+CAAgI;AAQhI,MAAM,OAAO,GAA2B;IACvC,SAAS,EAAE,uIAAuI;IAClJ,SAAS,EAAE,0GAA0G;CACrH,CAAC;AAGF,KAAK,UAAU,qBAAqB;;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAW,CAAC;IACjE,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,QAAQ,6BAA6B,EAAE;QAC3F,WAAW,EAAE,MAAA,OAAO,CAAC,QAAQ,CAAC,mCAAI,qCAAqC;KACvE,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EACV,6IAA6I;QAC9I,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;aACpC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,OAAO,EAAE,CAAC,qBAAqB,CAAC;aAChC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { INodeProperties, INodePropertyRouting } from 'n8n-workflow';
2
+ export declare const ROOT_VALUE = "__root__";
3
+ export declare const rootAware: (property: string) => INodePropertyRouting;
4
+ type LocatorOptions = {
5
+ description: string;
6
+ displayOptions: INodeProperties['displayOptions'];
7
+ required?: boolean;
8
+ byPath?: boolean;
9
+ includeRoot?: boolean;
10
+ routing?: INodePropertyRouting;
11
+ };
12
+ export declare function fileLocator(name: string, displayName: string, options: LocatorOptions): INodeProperties;
13
+ export declare function folderLocator(name: string, displayName: string, options: LocatorOptions): INodeProperties;
14
+ export {};