@amerged/n8n-nodes-ohmyhost 0.0.0-stage → 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 amerged
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,107 @@
1
- # Temporary Holding Version
1
+ # @amerged/n8n-nodes-ohmyhost
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An n8n community node for [ohmyho.st](https://ohmyho.st). Connect projects and their managed PostgreSQL databases to n8n workflows, including SQL CRUD, direct table creation, database event subscriptions, and password-encrypted SQL exports.
4
+
5
+ This package contains one **ohmyho.st** action node and an **ohmyho.st API** credential. Use n8n's built-in Webhook node to receive events from hosted apps or database subscriptions. There is no duplicate custom Webhook trigger.
6
+
7
+ ## Installation
8
+
9
+ On a self-hosted n8n instance with community packages enabled, open **Settings → Community Nodes → Install** and enter:
10
+
11
+ ```
12
+ @amerged/n8n-nodes-ohmyhost
13
+ ```
14
+
15
+ Follow the [n8n community node installation guide](https://docs.n8n.io/integrations/community-nodes/installation/). npm publication and n8n verification are separate: this package does not claim verified status or availability in n8n Cloud. Cloud discovery requires n8n's Creator Portal verification.
16
+
17
+ ## Credentials
18
+
19
+ Create an API key for the intended account/workspace at [ohmyho.st API Tokens](https://app.ohmyho.st/tokens), then add an **ohmyho.st API** credential in n8n:
20
+
21
+ - **API Key** is required. Authentication is sent only in the Authorization header to the fixed `https://app.ohmyho.st` API.
22
+ - **SQL Export ZIP Password** is optional and needed only for requesting exports. Choose and securely retain it. It cannot be recovered, and its exact bytes are significant. The password stays in the protected credential and is sent only in the export request body.
23
+
24
+ Permissions, membership, database row-level security, project budgets, and applicable service limits continue to apply. Database writes and export requests require the appropriate Owner authorization. Requests can wake database compute and incur usage charges.
25
+
26
+ ## Operations
27
+
28
+ | Resource | Operations |
29
+ | ---------------- | -------------------------------------------------- |
30
+ | Project | Get Many, Get, Get Status, Create |
31
+ | Operation | Get asynchronous operation status |
32
+ | Database | Run Read-Only SQL, Execute SQL Write, Create Table |
33
+ | Database Watch | Get Many, Create or explicitly replace, Delete |
34
+ | Database Webhook | Get Many, Create, Test, Delete |
35
+ | Database Export | Request, Get status and optional download URL |
36
+
37
+ Project and workspace selectors load real account data. Watch and webhook selectors depend on the selected project and environment. IDs can also be mapped with expressions. Operation and export IDs should be mapped from their preceding receipt; the targeted API contract has no history-list endpoints for these resources.
38
+
39
+ ### SQL CRUD and table creation
40
+
41
+ Choose **Database → Run Read-Only SQL** for one SELECT/WITH statement. Use `$1`, `$2`, etc. for values, and provide a JSON parameters array. Reads accept up to 50 scalar JSON values and return one receipt item containing `rows`, `row_count`, and `truncated`; use n8n's Split Out node if each row should become an item.
42
+
43
+ Choose **Execute SQL Write** for one INSERT, UPDATE, DELETE, or INSERT ... ON CONFLICT statement. Write parameters may contain JSON objects and arrays, within the API's depth/size limits. Schema changes use **Create Table**, which takes column definitions directly, for example:
44
+
45
+ ```json
46
+ [
47
+ { "name": "id", "type": "bigint", "identity": true, "nullable": false },
48
+ { "name": "title", "type": "text" },
49
+ { "name": "created_at", "type": "timestamptz", "default": "now" }
50
+ ]
51
+ ```
52
+
53
+ The primary key can be `["id"]`, or omitted. Identical existing definitions succeed; conflicting definitions fail. Other schema changes continue to use migrations.
54
+
55
+ Every logical mutation that accepts an idempotency key needs a stable unique key. Reuse the same key and inputs after an uncertain response. A running or failed SQL write stops the node and provides the safe operation ID when available. Inspect **Operation → Get** before deciding what to do next. With Continue On Fail enabled, error output contains only a safe message and receipt identifiers, with input-item linking preserved.
56
+
57
+ ### Hosted app webhook → SQL workflow
58
+
59
+ 1. Add n8n's built-in **Webhook** node, choose HTTP POST and publish the workflow to obtain its production URL.
60
+ 2. Configure your hosted app to POST JSON to that address. Declare the receiver's origin in the app's outbound network policy where required.
61
+ 3. Connect an **ohmyho.st** node and map the Webhook body into parameterized SQL values. For example, map `{{$json.body.event_id}}` into the idempotency key and bind application values through the parameters array.
62
+
63
+ Use stable sender event IDs so retries reuse the same write key. The generic receiver URL is a bearer secret; the connector does not add signature verification or authentication to n8n's built-in Webhook node.
64
+
65
+ ### Database events
66
+
67
+ Create a **Database Watch** for an existing table, explicitly selecting the columns and changes to publish. An identical watch can be reused. Replacing a different watch requires an explicit option because other automations may depend on it. The preflight check and replacement are separate requests, so concurrent changes cannot be excluded.
68
+
69
+ Create a **Database Webhook** with the returned `event_type` and the production URL of an n8n Webhook node. A watch and subscription are separate resources. The connector omits one-time signing secrets, receiver URLs, and custom header values from webhook output. Private destination URLs can still appear in workflow configuration or execution inputs.
70
+
71
+ **Test** sends a synthetic delivery. To prove a real database event, insert a uniquely marked test row and verify that the matching event reaches the receiver. Deletion requires confirmation and removes the selected watch or subscription, not the table. Removing a table watch stops that table's events for all subscribers.
72
+
73
+ ### Encrypted SQL exports
74
+
75
+ **Request** creates an asynchronous password-encrypted SQL ZIP for the project's assigned Dev/Prod databases. One accepted request per project per rolling 24 hours is allowed, including failed exports. Retain the same idempotency key after uncertainty. The archive does not contain application source, files, secrets, or configuration.
76
+
77
+ Map the returned `id` into **Database Export → Get**. Leave **Include Download URL** off while polling `state` and `next_poll_after_seconds`. Once the archive is ready, run Get with **Include Download URL** enabled to create a fresh signed address. The node signs once per run when at least 24 hours of archive retention remain. The address is a bearer credential and can be stored in n8n execution history. When a signing request has an uncertain result, repeating the step creates another address.
78
+
79
+ For a ready archive, connect n8n's built-in **HTTP Request** node, GET `{{$json.archive.download_url}}`, choose **Authentication: None**, and return the response as a file/binary item. Do not send the ohmyho.st API key to the archive URL. The ZIP remains encrypted with the credential's user-chosen password.
80
+
81
+ ## Compatibility and testing
82
+
83
+ Uses the [ohmyho.st API contract](https://ohmyho.st/api/openapi.json), `n8n-workflow` 2.16.0 and Node.js 24. Package code has no run-time dependencies beyond n8n's supplied workflow API, and does not access environment variables or the filesystem.
84
+
85
+ Build and lint use the official `@n8n/node-cli` tool. Tests cover routes, parameters, pagination, idempotency, credential isolation and sanitized errors. An isolated n8n 2.45.7 workflow listed projects through the live API. A separate native n8n 2.48.4 workflow ran **Database Export → Get** with signing enabled. The exact link from that run downloaded a ZIP whose checksum and authenticated AES decryption matched the test archive.
86
+
87
+ ```sh
88
+ npm ci
89
+ npm test
90
+ npm run lint
91
+ ```
92
+
93
+ Release through the repository's GitHub Actions workflow with npm provenance. n8n Creator Portal verification requires that distribution route; publishing directly from a local machine does not meet its verification requirements.
94
+
95
+ ## Resources
96
+
97
+ - [ohmyho.st documentation](https://docs.ohmyho.st)
98
+ - [API tokens](https://app.ohmyho.st/tokens)
99
+ - [Database export documentation](https://docs.ohmyho.st/backups)
100
+ - [Source and issues](https://github.com/amerged-org/n8n-nodes-ohmyhost)
101
+ - [n8n community nodes](https://docs.n8n.io/integrations/community-nodes/)
102
+
103
+ ## Version history
104
+
105
+ ### 0.1.0
106
+
107
+ Initial release: 17 API operations, protected API/export credentials, real account selectors, and workflows using n8n's built-in Webhook and HTTP Request nodes.
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from "n8n-workflow";
2
+ export declare class OhmyhostApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: "file:ohmyhost.svg";
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OhmyhostApi = void 0;
4
+ class OhmyhostApi {
5
+ constructor() {
6
+ this.name = "ohmyhostApi";
7
+ this.displayName = "ohmyho.st API";
8
+ this.documentationUrl = "https://docs.ohmyho.st";
9
+ this.icon = "file:ohmyhost.svg";
10
+ this.properties = [
11
+ {
12
+ displayName: "API Key",
13
+ name: "apiKey",
14
+ type: "string",
15
+ typeOptions: { password: true },
16
+ required: true,
17
+ default: "",
18
+ description: "Create an API key at https://app.ohmyho.st/tokens for the intended workspace",
19
+ },
20
+ {
21
+ displayName: "SQL Export ZIP Password",
22
+ name: "zipPassword",
23
+ type: "string",
24
+ typeOptions: { password: true },
25
+ default: "",
26
+ description: "Optional. Required only to request encrypted SQL exports. Choose and securely retain the password; it cannot be recovered. See https://docs.ohmyho.st/backups.",
27
+ },
28
+ ];
29
+ this.authenticate = {
30
+ type: "generic",
31
+ properties: {
32
+ headers: {
33
+ Authorization: "=Bearer {{$credentials.apiKey}}",
34
+ },
35
+ },
36
+ };
37
+ this.test = {
38
+ request: {
39
+ baseURL: "https://app.ohmyho.st",
40
+ url: "/v1/me",
41
+ disableFollowRedirect: true,
42
+ sendCredentialsOnCrossOriginRedirect: false,
43
+ timeout: 30000,
44
+ },
45
+ };
46
+ }
47
+ }
48
+ exports.OhmyhostApi = OhmyhostApi;
49
+ //# sourceMappingURL=OhmyhostApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OhmyhostApi.credentials.js","sourceRoot":"","sources":["../../credentials/OhmyhostApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,wBAAwB,CAAC;QAC5C,SAAI,GAAG,mBAA4B,CAAC;QACpC,eAAU,GAAsB;YAC9B;gBACE,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;gBACX,WAAW,EACT,8EAA8E;aACjF;YACD;gBACE,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EACT,gKAAgK;aACnK;SACF,CAAC;QACF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,aAAa,EAAE,iCAAiC;iBACjD;aACF;SACF,CAAC;QACF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,QAAQ;gBACb,qBAAqB,EAAE,IAAI;gBAC3B,oCAAoC,EAAE,KAAK;gBAC3C,OAAO,EAAE,KAAK;aACf;SACF,CAAC;IACJ,CAAC;CAAA;AA3CD,kCA2CC"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="22" fill="#000"/><path d="M30 86 H15 L27 63 A31 31 0 1 1 73 63 L85 86 H70" fill="none" stroke="#F0F1F2" stroke-width="15" stroke-linecap="round" stroke-linejoin="round" transform="translate(12 10) scale(.76)"/></svg>
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from "n8n-workflow";
2
+ export declare const properties: INodeProperties[];
@@ -0,0 +1,359 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.properties = void 0;
4
+ const projectSelector = {
5
+ displayName: "Project Name or ID",
6
+ name: "projectId",
7
+ type: "options",
8
+ default: "",
9
+ required: true,
10
+ typeOptions: { loadOptionsMethod: "getProjects" },
11
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
12
+ };
13
+ const idem = {
14
+ displayName: "Idempotency Key",
15
+ name: "idempotencyKey",
16
+ type: "string",
17
+ default: "",
18
+ required: true,
19
+ description: "Stable unique key for one logical mutation; retain the same key and inputs after an uncertain result",
20
+ };
21
+ const op = (name, value, action) => ({
22
+ name,
23
+ value,
24
+ action,
25
+ description: action,
26
+ });
27
+ function operations(resource, options, defaultValue) {
28
+ return {
29
+ displayName: "Operation",
30
+ name: "operation",
31
+ type: "options",
32
+ noDataExpression: true,
33
+ default: defaultValue,
34
+ displayOptions: { show: { resource: [resource] } },
35
+ options,
36
+ };
37
+ }
38
+ const json = (displayName, name, description, resource, operation, defaultValue = "[]", required = true) => ({
39
+ displayName,
40
+ name,
41
+ type: "json",
42
+ default: defaultValue,
43
+ required,
44
+ description,
45
+ displayOptions: { show: { resource, operation } },
46
+ });
47
+ exports.properties = [
48
+ {
49
+ displayName: "Resource",
50
+ name: "resource",
51
+ type: "options",
52
+ noDataExpression: true,
53
+ default: "project",
54
+ options: [
55
+ { name: "Database", value: "database" },
56
+ { name: "Database Export", value: "export" },
57
+ { name: "Database Watch", value: "watch" },
58
+ { name: "Database Webhook", value: "webhook" },
59
+ { name: "Operation", value: "operation" },
60
+ { name: "Project", value: "project" },
61
+ ],
62
+ },
63
+ operations("project", [
64
+ op("Create", "create", "Create a project"),
65
+ op("Get", "get", "Get a project"),
66
+ op("Get Many", "getMany", "Get many projects"),
67
+ op("Get Status", "status", "Get project status"),
68
+ ], "getMany"),
69
+ operations("operation", [op("Get", "get", "Get an asynchronous operation")], "get"),
70
+ operations("database", [
71
+ op("Create Table", "createTable", "Create a database table"),
72
+ op("Execute SQL Write", "write", "Execute a SQL write"),
73
+ op("Run Read-Only SQL", "query", "Run a read-only SQL query"),
74
+ ], "query"),
75
+ operations("watch", [
76
+ op("Create", "create", "Create a database table watch"),
77
+ op("Delete", "delete", "Delete a database table watch"),
78
+ op("Get Many", "getMany", "Get many database table watches"),
79
+ ], "getMany"),
80
+ operations("webhook", [
81
+ op("Create", "create", "Create a database webhook"),
82
+ op("Delete", "delete", "Delete a database webhook"),
83
+ op("Get Many", "getMany", "Get many database webhooks"),
84
+ op("Test", "test", "Test a database webhook"),
85
+ ], "getMany"),
86
+ operations("export", [
87
+ op("Get", "get", "Get encrypted SQL export status"),
88
+ op("Request", "request", "Request an encrypted SQL export"),
89
+ ], "get"),
90
+ {
91
+ ...projectSelector,
92
+ displayOptions: {
93
+ show: { resource: ["database", "watch", "webhook", "export"] },
94
+ },
95
+ },
96
+ {
97
+ ...projectSelector,
98
+ displayOptions: {
99
+ show: { resource: ["project"], operation: ["get", "status"] },
100
+ },
101
+ },
102
+ {
103
+ displayName: "Environment",
104
+ name: "environment",
105
+ type: "options",
106
+ required: true,
107
+ default: "dev",
108
+ options: [
109
+ { name: "Dev", value: "dev" },
110
+ { name: "Prod", value: "prod" },
111
+ ],
112
+ displayOptions: { show: { resource: ["database", "watch", "webhook"] } },
113
+ description: "Application database environment",
114
+ },
115
+ {
116
+ displayName: "Return All",
117
+ name: "returnAll",
118
+ type: "boolean",
119
+ default: false,
120
+ displayOptions: { show: { resource: ["project"], operation: ["getMany"] } },
121
+ description: "Whether to return all results or only up to a given limit",
122
+ },
123
+ {
124
+ displayName: "Limit",
125
+ name: "limit",
126
+ type: "number",
127
+ default: 50,
128
+ typeOptions: { minValue: 1, maxValue: 100 },
129
+ displayOptions: {
130
+ show: {
131
+ resource: ["project"],
132
+ operation: ["getMany"],
133
+ returnAll: [false],
134
+ },
135
+ },
136
+ description: "Max number of results to return",
137
+ },
138
+ {
139
+ displayName: "Workspace Name or ID",
140
+ name: "organizationId",
141
+ type: "options",
142
+ default: "",
143
+ required: true,
144
+ typeOptions: { loadOptionsMethod: "getWorkspaces" },
145
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
146
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
147
+ },
148
+ {
149
+ displayName: "Project Name",
150
+ name: "projectName",
151
+ type: "string",
152
+ default: "",
153
+ required: true,
154
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
155
+ },
156
+ {
157
+ displayName: "Region",
158
+ name: "region",
159
+ type: "options",
160
+ default: "us",
161
+ required: true,
162
+ options: [
163
+ { name: "EU", value: "eu" },
164
+ { name: "US", value: "us" },
165
+ ],
166
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
167
+ description: "Hosting region selected when creating the project",
168
+ },
169
+ {
170
+ displayName: "Data Mode",
171
+ name: "dataMode",
172
+ type: "options",
173
+ default: "isolated",
174
+ options: [
175
+ { name: "Isolated Dev and Prod", value: "isolated" },
176
+ { name: "Shared Dev and Prod", value: "shared" },
177
+ ],
178
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
179
+ },
180
+ {
181
+ displayName: "Dev Access",
182
+ name: "devAccessMode",
183
+ type: "options",
184
+ default: "protected",
185
+ options: [
186
+ { name: "Protected", value: "protected" },
187
+ { name: "Public", value: "public" },
188
+ ],
189
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
190
+ },
191
+ {
192
+ displayName: "Project creation starts provisioning. Use Operation → Get to verify completion; it does not deploy an application.",
193
+ name: "projectCreationNotice",
194
+ type: "notice",
195
+ default: "",
196
+ displayOptions: { show: { resource: ["project"], operation: ["create"] } },
197
+ },
198
+ {
199
+ displayName: "Operation ID",
200
+ name: "operationId",
201
+ type: "string",
202
+ default: "",
203
+ required: true,
204
+ displayOptions: { show: { resource: ["operation"] } },
205
+ description: "Map the operation ID returned by a previous asynchronous request",
206
+ },
207
+ {
208
+ ...idem,
209
+ displayOptions: {
210
+ show: { resource: ["project", "watch"], operation: ["create", "delete"] },
211
+ },
212
+ },
213
+ {
214
+ ...idem,
215
+ displayOptions: {
216
+ show: { resource: ["database"], operation: ["write", "createTable"] },
217
+ },
218
+ },
219
+ {
220
+ ...idem,
221
+ displayOptions: { show: { resource: ["webhook"], operation: ["create"] } },
222
+ },
223
+ {
224
+ ...idem,
225
+ displayOptions: { show: { resource: ["export"], operation: ["request"] } },
226
+ },
227
+ {
228
+ displayName: "SQL Statement",
229
+ name: "statement",
230
+ type: "string",
231
+ default: "",
232
+ required: true,
233
+ typeOptions: { rows: 6 },
234
+ displayOptions: {
235
+ show: { resource: ["database"], operation: ["query", "write"] },
236
+ },
237
+ description: "One statement; use $1, $2, etc. for parameter values. Read supports SELECT/WITH; write supports INSERT/UPDATE/DELETE.",
238
+ },
239
+ json("Parameters", "parameters", "JSON array matching the SQL placeholders; write parameters may include JSON objects", ["database"], ["query", "write"]),
240
+ {
241
+ displayName: "Table",
242
+ name: "table",
243
+ type: "string",
244
+ default: "",
245
+ required: true,
246
+ displayOptions: {
247
+ show: {
248
+ resource: ["database", "watch"],
249
+ operation: ["createTable", "create"],
250
+ },
251
+ },
252
+ description: "Application table name",
253
+ },
254
+ json("Columns", "columns", "Array of column objects with name, type and optional nullable, identity, default (now or uuid)", ["database"], ["createTable"], '[{"name":"id","type":"bigint","identity":true,"nullable":false},{"name":"title","type":"text"}]'),
255
+ json("Primary Key", "primaryKey", "Optional array of column names; use [] for no primary key", ["database"], ["createTable"], "[]", false),
256
+ {
257
+ displayName: "Schema",
258
+ name: "schema",
259
+ type: "string",
260
+ default: "public",
261
+ displayOptions: { show: { resource: ["watch"], operation: ["create"] } },
262
+ },
263
+ json("Published Columns", "watchColumns", "Array of explicitly selected column names that may be included in database events", ["watch"], ["create"]),
264
+ {
265
+ displayName: "Changes",
266
+ name: "watchOperations",
267
+ type: "multiOptions",
268
+ default: ["insert", "update", "delete"],
269
+ options: [
270
+ { name: "Delete", value: "delete" },
271
+ { name: "Insert", value: "insert" },
272
+ { name: "Update", value: "update" },
273
+ ],
274
+ displayOptions: { show: { resource: ["watch"], operation: ["create"] } },
275
+ },
276
+ {
277
+ displayName: "Replace Existing Watch",
278
+ name: "replaceExisting",
279
+ type: "boolean",
280
+ default: false,
281
+ displayOptions: { show: { resource: ["watch"], operation: ["create"] } },
282
+ description: "Whether to allow replacing a different watch, affecting every subscriber of that table",
283
+ },
284
+ {
285
+ displayName: "Watch Name or ID",
286
+ name: "watchId",
287
+ type: "options",
288
+ default: "",
289
+ required: true,
290
+ typeOptions: {
291
+ loadOptionsMethod: "getWatches",
292
+ loadOptionsDependsOn: ["projectId", "environment"],
293
+ },
294
+ displayOptions: { show: { resource: ["watch"], operation: ["delete"] } },
295
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
296
+ },
297
+ {
298
+ displayName: "Webhook Name or ID",
299
+ name: "webhookId",
300
+ type: "options",
301
+ default: "",
302
+ required: true,
303
+ typeOptions: {
304
+ loadOptionsMethod: "getWebhooks",
305
+ loadOptionsDependsOn: ["projectId", "environment"],
306
+ },
307
+ displayOptions: {
308
+ show: { resource: ["webhook"], operation: ["test", "delete"] },
309
+ },
310
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
311
+ },
312
+ {
313
+ displayName: "Confirm Removal",
314
+ name: "confirmRemoval",
315
+ type: "boolean",
316
+ default: false,
317
+ required: true,
318
+ displayOptions: {
319
+ show: { resource: ["watch", "webhook"], operation: ["delete"] },
320
+ },
321
+ description: "Whether you reviewed this exact resource and authorize stopping its event deliveries",
322
+ },
323
+ {
324
+ displayName: "HTTPS Receiver URL",
325
+ name: "url",
326
+ type: "string",
327
+ default: "",
328
+ required: true,
329
+ typeOptions: { password: true },
330
+ displayOptions: { show: { resource: ["webhook"], operation: ["create"] } },
331
+ description: "Receiver URL, such as the production URL of an n8n Webhook node; private URLs may be retained in workflow inputs",
332
+ },
333
+ json("Event Types", "eventTypes", 'Array of database event types, for example ["data.orders"] or ["data.*"]', ["webhook"], ["create"], '["data.*"]'),
334
+ {
335
+ displayName: "Export ID",
336
+ name: "exportId",
337
+ type: "string",
338
+ default: "",
339
+ required: true,
340
+ displayOptions: { show: { resource: ["export"], operation: ["get"] } },
341
+ description: "Map the ID returned by Request Encrypted SQL Export",
342
+ },
343
+ {
344
+ displayName: "Include Download URL",
345
+ name: "includeDownloadUrl",
346
+ type: "boolean",
347
+ default: false,
348
+ displayOptions: { show: { resource: ["export"], operation: ["get"] } },
349
+ description: "Whether to sign a fresh URL for a ready archive with at least 24 hours of retention remaining. The URL may be stored in execution history.",
350
+ },
351
+ {
352
+ displayName: "An accepted export uses the project’s one-request-per-24-hours allowance, including failed exports. Set and retain your ZIP password in the credential.",
353
+ name: "exportNotice",
354
+ type: "notice",
355
+ default: "",
356
+ displayOptions: { show: { resource: ["export"], operation: ["request"] } },
357
+ },
358
+ ];
359
+ //# sourceMappingURL=Description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../nodes/Ohmyhost/Description.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAoB;IACvC,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE;IACjD,WAAW,EACT,gHAAgH;CACnH,CAAC;AACF,MAAM,IAAI,GAAoB;IAC5B,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,QAAQ;IACd,OAA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QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;KAC3E;CACF,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { IDataObject, IExecuteFunctions, IHttpRequestOptions, ILoadOptionsFunctions } from "n8n-workflow";
2
+ export type ApiContext = IExecuteFunctions | ILoadOptionsFunctions;
3
+ export type JsonObject = Record<string, unknown>;
4
+ export declare const apiOrigin = "https://app.ohmyho.st";
5
+ export declare class SafeError extends Error {
6
+ readonly receipt?: IDataObject | undefined;
7
+ constructor(message: string, receipt?: IDataObject | undefined);
8
+ }
9
+ export declare function record(value: unknown): value is JsonObject;
10
+ export declare function text(value: unknown, label: string, max?: number): string;
11
+ export declare function ulid(value: unknown, label?: string): string;
12
+ export declare function segment(value: unknown, label?: string): string;
13
+ export declare function environment(value: unknown): string;
14
+ export declare function idempotency(value: unknown): string;
15
+ export declare function jsonArray(value: unknown, label: string, max: number, scalar?: boolean): unknown[];
16
+ export declare function names(value: unknown, label: string, max?: number): string[];
17
+ export declare function tableColumns(value: unknown): JsonObject[];
18
+ export declare function request(context: ApiContext, method: IHttpRequestOptions["method"], path: string, body?: JsonObject, qs?: IDataObject, key?: string): Promise<JsonObject>;
19
+ export declare function rows(body: JsonObject): JsonObject[];
20
+ export declare function allProjects(context: ApiContext): Promise<JsonObject[]>;
21
+ export declare function safeWebhook(value: unknown): unknown;
22
+ export declare function safeExport(data: JsonObject, includeUrl: boolean): JsonObject;