n8n-nodes-lifespace 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -16
- package/dist/nodes/LifeSpace/LifeSpace.node.js +184 -540
- package/dist/nodes/LifeSpace/LifeSpace.node.js.map +1 -1
- package/dist/nodes/LifeSpaceTrigger/LifeSpaceTrigger.node.js +8 -5
- package/dist/nodes/LifeSpaceTrigger/LifeSpaceTrigger.node.js.map +1 -1
- package/dist/nodes/calendarMutation.d.ts +3 -0
- package/dist/nodes/calendarMutation.js +56 -0
- package/dist/nodes/calendarMutation.js.map +1 -0
- package/dist/nodes/lifespaceDiscovery.d.ts +37 -1
- package/dist/nodes/lifespaceDiscovery.js +190 -20
- package/dist/nodes/lifespaceDiscovery.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,17 +62,19 @@ The token is shown only when it is created or rotated. Store it in n8n immediate
|
|
|
62
62
|
|
|
63
63
|
A **LifeSpace Trigger** additionally uses a **LifeSpace Webhook Signing** credential containing the endpoint-scoped HMAC signing secret. This is deliberately separate from the API credential: the Service API Token authenticates outbound n8n → LifeSpace calls, while the signing secret verifies inbound LifeSpace → n8n deliveries and rotates with its Webhook Endpoint. The Trigger still reuses the LifeSpace API credential for Space/Record Type discovery, so API context is not duplicated.
|
|
64
64
|
|
|
65
|
-
Runtime Discovery determines which Spaces, Record Types, fields, queries, Actions and relation lookup capabilities the current API credential can use. Execution authorization is still enforced by LifeSpace from the current principal, credential scope, Application × Model Access and current Space/Data Grant authority.
|
|
65
|
+
Runtime Discovery determines which Spaces, Record Types, fields, queries, Actions and relation lookup capabilities the current API credential can use. The adapter starts from the compact current-principal inventory, then loads static semantic detail only for the selected Space/Record Type. Relation target lookup remains lazy and field-scoped. Execution authorization is still enforced by LifeSpace from the current principal, credential scope, Application × Model Access and current Space/Data Grant authority.
|
|
66
66
|
|
|
67
67
|
## Generated Record UX
|
|
68
68
|
|
|
69
|
-
Create/Update
|
|
69
|
+
Create/Update keep scalar fields in n8n Resource Mapper while using native n8n controls for LifeSpace calendar-date fields and supported relations. Single relations use a selector; multi-relations use multi-select. List / Query offers typed filter variants for text, enum, boolean, number, date/time and authorized relations, while retaining the raw legacy filter as an expression/compatibility escape hatch.
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
The node displays the authorized human-readable `spaceName` when present while continuing to submit the stable `spc_*` ID.
|
|
72
|
+
|
|
73
|
+
Calendar-backed models use canonical `capabilityBindings.calendar` field roles instead of Event-specific field names. Date-only values are normalized to `YYYY-MM-DD`, and contradictory all-day/timed state is rejected locally before the mutation request while Core remains the final validation authority.
|
|
72
74
|
|
|
73
75
|
## LifeSpace contract compatibility
|
|
74
76
|
|
|
75
|
-
This package follows the current LifeSpace Core Kernel `0.
|
|
77
|
+
This package follows the current LifeSpace Core Kernel `0.31.0` contract family. It consumes Runtime/Discovery semantics only; Eventing configuration and webhook delivery semantics are owned independently by Integration/Eventing `0.1.0`.
|
|
76
78
|
|
|
77
79
|
The UX depends on these Kernel capabilities:
|
|
78
80
|
|
|
@@ -82,7 +84,26 @@ The UX depends on these Kernel capabilities:
|
|
|
82
84
|
- `0.21.0`: invitation-token transport hardening retained by the current baseline;
|
|
83
85
|
- `0.22.0`: authoritative field `title` metadata plus ordered repeatable Generic Query sort metadata;
|
|
84
86
|
- `0.23.0`: authorized source-field-aware Relation Target Lookup for `person` / `person_list` fields;
|
|
85
|
-
- `0.24.0`: authorized human-readable `spaceName` projection
|
|
87
|
+
- `0.24.0`: authorized human-readable `spaceName` projection while `spaceId` remains stable;
|
|
88
|
+
- `0.25.0`: bounded Capability field-role bindings, beginning with Calendar;
|
|
89
|
+
- `0.26.0`: progressively loadable single-model static semantic detail;
|
|
90
|
+
- `0.27.0`: compact current-principal inventory that de-duplicates model semantics from Space visibility edges;
|
|
91
|
+
- `0.28.0`: bounded batch Reference Resolution for relation IDs;
|
|
92
|
+
- `0.29.0`: canonical ordinary-record `referenceLabel` semantics plus `record` / `record_list` lookup and resolution;
|
|
93
|
+
- `0.30.0`: explicit paginated Change History collection and Model Control Plane ownership split;
|
|
94
|
+
- `0.31.0`: Integration/Eventing wire representation moves to the independent Integration/Eventing `0.1.0` contract while Core remains the Runtime authority.
|
|
95
|
+
|
|
96
|
+
The adapter prefers the `0.27+` progressive flow:
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
GET /me/_discovery/inventory
|
|
100
|
+
-> choose current Space / Record Type
|
|
101
|
+
-> GET /spaces/{spaceId}/_discovery/models/{modelKey}
|
|
102
|
+
-> relation target lookup / reference resolution only when needed
|
|
103
|
+
-> canonical Runtime request
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
The legacy aggregate `GET /me/_discovery` remains an intentional compatibility fallback. Neither cached Discovery nor relation lookup is treated as authorization proof; every mutation still goes through canonical LifeSpace Runtime enforcement.
|
|
86
107
|
|
|
87
108
|
Ordinary Record CRUD/Action routes remain model-contract surfaces derived from published Model Definitions; the n8n adapter does not maintain a second copy of those schemas.
|
|
88
109
|
|
|
@@ -105,7 +126,7 @@ The same applies to ordinary values such as Record ID, Search, Filter Value, Ret
|
|
|
105
126
|
Two boundaries are intentional:
|
|
106
127
|
|
|
107
128
|
- **Resource** and **Operation** are structural node controls and do not accept expressions because they determine which parameter schema and execution path the node has.
|
|
108
|
-
- **Fields** and **Action Input** use n8n's `resourceMapper`. The mapper container is structural, but each generated field value inside it remains expression-capable. This includes relation-backed field values: the UI can offer authorized
|
|
129
|
+
- **Fields** and **Action Input** use n8n's `resourceMapper`. The mapper container is structural, but each generated field value inside it remains expression-capable. This includes relation-backed field values: the UI can offer authorized options while an expression can still supply a stable relation ID or ID list.
|
|
109
130
|
|
|
110
131
|
For **Filters** and **Sorts**, add the required rows in the node UI and use expressions inside each row's Field/Operator/Value or Field/Direction inputs. The number of rows is treated as workflow structure rather than per-item data. This avoids relying on whole-array expressions for n8n `fixedCollection` parameters.
|
|
111
132
|
|
|
@@ -132,9 +153,9 @@ Supported operations:
|
|
|
132
153
|
|
|
133
154
|
For Record operations:
|
|
134
155
|
|
|
135
|
-
1. choose a **Space** from
|
|
156
|
+
1. choose a **Space** from compact Runtime Discovery inventory;
|
|
136
157
|
2. choose a **Record Type** available in that Space;
|
|
137
|
-
3. configure the operation.
|
|
158
|
+
3. configure the operation; the selected model's semantic detail is loaded only when required.
|
|
138
159
|
|
|
139
160
|
You normally do not type Space IDs or model keys manually.
|
|
140
161
|
|
|
@@ -146,9 +167,9 @@ LifeSpace server defaults are authoritative. A field that is `required` but has
|
|
|
146
167
|
|
|
147
168
|
For example, lifecycle state such as Task status can remain server/Action-owned instead of being manually entered by the workflow author.
|
|
148
169
|
|
|
149
|
-
When Runtime Discovery advertises
|
|
170
|
+
When Runtime Discovery advertises relation semantics, supported `person`, `person_list`, `record` and `record_list` fields are rendered from the current authorized `{ id, label }` target projection instead of asking the workflow author to type raw identifiers. The displayed value is the canonical LifeSpace reference label, while the workflow payload still stores and submits the stable target ID.
|
|
150
171
|
|
|
151
|
-
Older compatible Discovery responses without relation lookup metadata retain the raw-ID field behavior.
|
|
172
|
+
Older compatible Discovery responses without relation lookup metadata retain the raw-ID field behavior. The adapter never guesses record labels from conventional fields such as `name`, `title` or `summary`.
|
|
152
173
|
|
|
153
174
|
The current n8n UI loads bounded relation options when the relevant field is configured. Very large target sets should use expressions with stable IDs until n8n exposes a searchable dynamic relation option surface that can consume LifeSpace's paginated/searchable lookup directly.
|
|
154
175
|
|
|
@@ -158,6 +179,8 @@ LifeSpace uses optimistic concurrency.
|
|
|
158
179
|
|
|
159
180
|
By default the node reads the current Record version immediately before Update/Delete and sends that version with the mutation. This keeps the ordinary n8n UI free from mandatory internal `version` entry while preserving stale-write protection for the actual mutation race.
|
|
160
181
|
|
|
182
|
+
For Calendar-backed Update, the node also combines the current record with the proposed patch and checks the discovered all-day/timed field roles before sending the mutation. Core validation remains authoritative.
|
|
183
|
+
|
|
161
184
|
If a workflow intentionally needs to bind a known version, add **Concurrency Options → Version**.
|
|
162
185
|
|
|
163
186
|
### List / Query
|
|
@@ -165,7 +188,7 @@ If a workflow intentionally needs to bind a known version, add **Concurrency Opt
|
|
|
165
188
|
The normal UI supports:
|
|
166
189
|
|
|
167
190
|
- optional **Search**;
|
|
168
|
-
- one or more **Filters**;
|
|
191
|
+
- one or more typed **Filters**;
|
|
169
192
|
- **Return All** to follow `nextCursor` automatically;
|
|
170
193
|
- **Limit** when Return All is disabled.
|
|
171
194
|
|
|
@@ -181,6 +204,8 @@ Choose an Action from Runtime Discovery.
|
|
|
181
204
|
|
|
182
205
|
**Action Input** contains only semantic/domain inputs. LifeSpace concurrency metadata is not rendered as a business field. For the current `record-version` contract, the node reads the current Record version immediately before Action execution and sends it using the transport declared by Runtime Discovery.
|
|
183
206
|
|
|
207
|
+
Execution-time Action metadata uses the same progressive inventory + selected-model detail path rather than loading the full cross-Space Discovery document.
|
|
208
|
+
|
|
184
209
|
This means actions such as `complete` / `reopen` no longer ask users to type an internal version value.
|
|
185
210
|
|
|
186
211
|
### Advanced API Request
|
|
@@ -190,7 +215,7 @@ The **API Request** resource is an escape hatch for LifeSpace routes that do not
|
|
|
190
215
|
Paths are relative to the configured API Base URL, for example:
|
|
191
216
|
|
|
192
217
|
```text
|
|
193
|
-
/me/_discovery
|
|
218
|
+
/me/_discovery/inventory
|
|
194
219
|
```
|
|
195
220
|
|
|
196
221
|
Use normal Record operations when possible because they benefit from Runtime Discovery metadata and n8n-specific UX.
|
|
@@ -204,7 +229,7 @@ LifeSpace Eventing separates:
|
|
|
204
229
|
- **Webhook Endpoint** — reusable callback URL, signing secret and delivery diagnostics for one Space;
|
|
205
230
|
- **Event Subscription** — one Record Type plus selected event types attached to that endpoint.
|
|
206
231
|
|
|
207
|
-
One Webhook Endpoint can therefore carry events for multiple Record Types through the same n8n callback.
|
|
232
|
+
One Webhook Endpoint can therefore carry events for multiple Record Types through the same n8n callback. In n8n this is represented as one Trigger selecting multiple Record Types; Integration/Eventing still keeps one Event Subscription filter per Record Type.
|
|
208
233
|
|
|
209
234
|
### Trigger setup
|
|
210
235
|
|
|
@@ -230,7 +255,7 @@ Webhook Endpoint / Event Subscription creation is intentionally not performed by
|
|
|
230
255
|
- **LifeSpace Webhook Signing** credential for endpoint-scoped inbound HMAC verification;
|
|
231
256
|
- **LifeSpace** node with discovery-driven Record operations plus advanced API Request;
|
|
232
257
|
- **LifeSpace Trigger** with signed multi-Record-Type Domain Event filtering;
|
|
233
|
-
- dynamic Space, Record Type, field, relation target, query, Action and Action Input UI based on Runtime Discovery.
|
|
258
|
+
- dynamic Space, Record Type, field, relation target, query, Action and Action Input UI based on progressive Runtime Discovery.
|
|
234
259
|
|
|
235
260
|
LifeSpace remains authoritative for validation, authorization, defaults, Mutation Authority, Action semantics, relation semantics and event contracts. Runtime Discovery and Relation Target Lookup are current capability/reference projections, not execution-authorization proofs.
|
|
236
261
|
|
|
@@ -278,8 +303,8 @@ The package intentionally has no runtime `dependencies`. It must not read enviro
|
|
|
278
303
|
|
|
279
304
|
## Remaining upstream-dependent UX
|
|
280
305
|
|
|
281
|
-
The adapter
|
|
306
|
+
The adapter now consumes generic `person`, `person_list`, `record` and `record_list` reference labels/lookups when LifeSpace advertises them, and uses Calendar Capability bindings rather than model-specific field names. Remaining UX work should be driven by explicit future LifeSpace contract additions or n8n UI limitations; the adapter must not invent missing semantics locally.
|
|
282
307
|
|
|
283
308
|
## License
|
|
284
309
|
|
|
285
|
-
MIT
|
|
310
|
+
MIT
|