@celigo/api-specs 0.2.332 → 0.2.333
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/dist/ai-agent.yml +56 -22
- package/dist/api.yml +56 -22
- package/dist/asynchelper.yml +56 -22
- package/dist/export.yml +56 -22
- package/dist/guardrail.yml +19 -2
- package/dist/import.yml +295 -60
- package/dist/tool.yml +186 -38
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/export.yml
CHANGED
|
@@ -13581,9 +13581,13 @@ components:
|
|
|
13581
13581
|
- Contains '{{' and '}}' pattern
|
|
13582
13582
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
13583
13583
|
- Can include logic, formatting, and computation
|
|
13584
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
13585
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
13586
|
-
-
|
|
13584
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
13585
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
13586
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
13587
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
13588
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
13589
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
13590
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
13587
13591
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
13588
13592
|
parse into an object. On an array row the template goes in a
|
|
13589
13593
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -13593,7 +13597,7 @@ components:
|
|
|
13593
13597
|
error
|
|
13594
13598
|
|
|
13595
13599
|
```json
|
|
13596
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
13600
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
13597
13601
|
```
|
|
13598
13602
|
|
|
13599
13603
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -13649,9 +13653,9 @@ components:
|
|
|
13649
13653
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
13650
13654
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
13651
13655
|
with the children addressing the row relatively (`$.field`,
|
|
13652
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
13656
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
13653
13657
|
array-typed field yields nothing. Handlebars
|
|
13654
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
13658
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
13655
13659
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
13656
13660
|
an object record iterates the object's values, not rows.
|
|
13657
13661
|
- |-
|
|
@@ -13673,9 +13677,22 @@ components:
|
|
|
13673
13677
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
13674
13678
|
for value translation that would otherwise need a long
|
|
13675
13679
|
`{{#if ...}}{{else if ...}}` chain.
|
|
13680
|
+
- |-
|
|
13681
|
+
## TRIPLE BRACES FOR VALUES
|
|
13682
|
+
A substitution that outputs a value is written with triple
|
|
13683
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
13684
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
13685
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
13686
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
13687
|
+
record.tags}}`) and inside a block (`{{#if
|
|
13688
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
13689
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
13690
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
13691
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
13692
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
13676
13693
|
examples:
|
|
13677
13694
|
- $.fullName
|
|
13678
|
-
- '{{record.fullName}}'
|
|
13695
|
+
- '{{{record.fullName}}}'
|
|
13679
13696
|
- primary
|
|
13680
13697
|
- $.lineItems[*].unitPrice
|
|
13681
13698
|
extractDateFormat:
|
|
@@ -14705,9 +14722,13 @@ components:
|
|
|
14705
14722
|
- Contains '{{' and '}}' pattern
|
|
14706
14723
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
14707
14724
|
- Can include logic, formatting, and computation
|
|
14708
|
-
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
14709
|
-
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
14710
|
-
-
|
|
14725
|
+
- Access input record fields with {{{record.fieldName}}} notation; a grouped
|
|
14726
|
+
(array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
|
|
14727
|
+
- Write a substitution that outputs a value with triple braces. Double braces
|
|
14728
|
+
HTML-escape what they output — a field and a helper's result alike: `O'Brien`
|
|
14729
|
+
is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
|
|
14730
|
+
`{{else}}`, `{{/if}}`) keep double braces
|
|
14731
|
+
- Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
14711
14732
|
- Valid on scalars and on `object` rows, where the rendered output must
|
|
14712
14733
|
parse into an object. On an array row the template goes in a
|
|
14713
14734
|
`buildArrayHelper` entry instead: on an `objectarray` row's own
|
|
@@ -14717,7 +14738,7 @@ components:
|
|
|
14717
14738
|
error
|
|
14718
14739
|
|
|
14719
14740
|
```json
|
|
14720
|
-
"extract": "{{record.price}} {{record.currency}}" // Combines two fields
|
|
14741
|
+
"extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
|
|
14721
14742
|
```
|
|
14722
14743
|
|
|
14723
14744
|
**3. Hard-Coded Value (literal string)**
|
|
@@ -14773,9 +14794,9 @@ components:
|
|
|
14773
14794
|
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
14774
14795
|
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
14775
14796
|
with the children addressing the row relatively (`$.field`,
|
|
14776
|
-
`{{rows.field}}`). An `extract` placed directly on the
|
|
14797
|
+
`{{{rows.field}}}`). An `extract` placed directly on the
|
|
14777
14798
|
array-typed field yields nothing. Handlebars
|
|
14778
|
-
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
14799
|
+
extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
|
|
14779
14800
|
an object record as `record`. The reverse holds too: `$[*]` on
|
|
14780
14801
|
an object record iterates the object's values, not rows.
|
|
14781
14802
|
- |-
|
|
@@ -14797,9 +14818,22 @@ components:
|
|
|
14797
14818
|
- **Use a lookup** (`lookupName` + a small `lookups` entry)
|
|
14798
14819
|
for value translation that would otherwise need a long
|
|
14799
14820
|
`{{#if ...}}{{else if ...}}` chain.
|
|
14821
|
+
- |-
|
|
14822
|
+
## TRIPLE BRACES FOR VALUES
|
|
14823
|
+
A substitution that outputs a value is written with triple
|
|
14824
|
+
braces. With double braces the mapper HTML-escapes the output —
|
|
14825
|
+
`&`, `<`, `>`, `"` and `'` become `&`, `<`, `>`,
|
|
14826
|
+
`"` and `'` — for a field (`{{record.name}}`), for a
|
|
14827
|
+
helper's result (`{{uppercase record.name}}`, `{{join ", "
|
|
14828
|
+
record.tags}}`) and inside a block (`{{#if
|
|
14829
|
+
record.name}}{{record.name}}{{/if}}`), with no error: the
|
|
14830
|
+
destination receives `O'Brien` for `O'Brien`. The same
|
|
14831
|
+
expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
|
|
14832
|
+
record.name}}}`) and a JSONPath extract (`$.name`) write the value
|
|
14833
|
+
unchanged. Transformation 2.0 rules behave the same.
|
|
14800
14834
|
examples:
|
|
14801
14835
|
- $.fullName
|
|
14802
|
-
- '{{record.fullName}}'
|
|
14836
|
+
- '{{{record.fullName}}}'
|
|
14803
14837
|
- primary
|
|
14804
14838
|
- $.lineItems[*].unitPrice
|
|
14805
14839
|
extractDateFormat:
|
|
@@ -16202,9 +16236,9 @@ components:
|
|
|
16202
16236
|
the envelope shape on purpose.
|
|
16203
16237
|
- |-
|
|
16204
16238
|
Handlebars expressions inside `extract` reference the
|
|
16205
|
-
`record` root on an object record (`{{record.field}}`,
|
|
16206
|
-
`{{dateFormat ... record.field}}`) and `rows` on a
|
|
16207
|
-
grouped one (`{{rows.0.field}}`), regardless of
|
|
16239
|
+
`record` root on an object record (`{{{record.field}}}`,
|
|
16240
|
+
`{{{dateFormat ... record.field}}}`) and `rows` on a
|
|
16241
|
+
grouped one (`{{{rows.0.field}}}`), regardless of
|
|
16208
16242
|
`inputContext` — only JSONPath anchoring flips.
|
|
16209
16243
|
- |-
|
|
16210
16244
|
## Grouped records
|
|
@@ -16216,7 +16250,7 @@ components:
|
|
|
16216
16250
|
`$.rows[*]` whose children read `$.rows.field` — while
|
|
16217
16251
|
`$.record[0].field` and `$.record[*]` resolve nothing,
|
|
16218
16252
|
with no error (live, 2026-10-30). Handlebars extracts
|
|
16219
|
-
read it as `rows` in both modes (`{{rows.0.field}}`).
|
|
16253
|
+
read it as `rows` in both modes (`{{{rows.0.field}}}`).
|
|
16220
16254
|
- |-
|
|
16221
16255
|
In `envelope` mode the output is still a bare record: a
|
|
16222
16256
|
`modify` transform returns the record with its mapped
|
|
@@ -16265,10 +16299,10 @@ components:
|
|
|
16265
16299
|
## Handlebars expressions are NOT affected
|
|
16266
16300
|
|
|
16267
16301
|
Handlebars expressions inside ``extract``
|
|
16268
|
-
(``{{record.field}}``,
|
|
16269
|
-
``{{dateFormat ... record.field}}``, etc.) reference the
|
|
16302
|
+
(``{{{record.field}}}``,
|
|
16303
|
+
``{{{dateFormat ... record.field}}}``, etc.) reference the
|
|
16270
16304
|
runtime context's ``record`` root on an object record,
|
|
16271
|
-
and ``rows`` (``{{rows.0.field}}``) on a grouped one,
|
|
16305
|
+
and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
|
|
16272
16306
|
regardless of ``inputContext`` — the Handlebars runtime
|
|
16273
16307
|
always sees the wrapped envelope. Only JSONPath
|
|
16274
16308
|
behavior flips with this field.
|
|
@@ -16292,7 +16326,7 @@ components:
|
|
|
16292
16326
|
source file: ``fileName``, ``fileSize``, and
|
|
16293
16327
|
``lastModifiedTime`` (epoch milliseconds). Reach it
|
|
16294
16328
|
as ``$.fileMeta.<field>`` in envelope mode, or as
|
|
16295
|
-
``{{fileMeta.<field>}}`` from a Handlebars extract in
|
|
16329
|
+
``{{{fileMeta.<field>}}}`` from a Handlebars extract in
|
|
16296
16330
|
either mode. The keys are exactly these three —
|
|
16297
16331
|
lowercase variants such as ``filesize`` or
|
|
16298
16332
|
``filename`` resolve empty. The standalone transform
|
package/dist/guardrail.yml
CHANGED
|
@@ -2082,16 +2082,33 @@ components:
|
|
|
2082
2082
|
- A dot path from the record root (e.g. `email`, `address.city`), read from the
|
|
2083
2083
|
incoming record. A path that matches no field writes nothing.
|
|
2084
2084
|
- Handlebars template (contains `{{`) for concatenation /
|
|
2085
|
-
formatting / conditional logic (e.g. `{{firstName}} {{lastName}}`,
|
|
2086
|
-
`{{#if mobile}}{{mobile}}{{else}}{{phone}}{{/if}}`). The template reads the
|
|
2085
|
+
formatting / conditional logic (e.g. `{{{firstName}}} {{{lastName}}}`,
|
|
2086
|
+
`{{#if mobile}}{{{mobile}}}{{else}}{{{phone}}}{{/if}}`). The template reads the
|
|
2087
2087
|
record's fields by bare name: `{{record.firstName}}` and `{{data.firstName}}`
|
|
2088
2088
|
render nothing, so the field is left out even when the record has the value.
|
|
2089
|
+
A substitution that outputs a value takes triple braces: double braces
|
|
2090
|
+
HTML-escape it (`O'Brien` is written as `O'Brien`).
|
|
2089
2091
|
|
|
2090
2092
|
A `$.` JSONPath (the Mapper 2.0 `mappings` syntax) reads nothing here, and a bare
|
|
2091
2093
|
string is read as a field path, not a constant: set constants in `hardCodedValue`.
|
|
2092
2094
|
Omit when using `hardCodedValue`.
|
|
2093
2095
|
examples:
|
|
2094
2096
|
- address.city
|
|
2097
|
+
x-celigo-ai-guidance:
|
|
2098
|
+
- |-
|
|
2099
|
+
Double braces HTML-escape whatever they output — a field, a helper's result
|
|
2100
|
+
(`{{uppercase lastName}}`, `{{join ", " tags}}`) and a substitution inside a
|
|
2101
|
+
block — with no error: `&`, `<`, `>`, `"` and `'` are written as `&`,
|
|
2102
|
+
`<`, `>`, `"` and `'`. The same expressions in triple braces,
|
|
2103
|
+
and a plain path, write the value unchanged.
|
|
2104
|
+
- |-
|
|
2105
|
+
In a `dataType: json` row the rendered text is parsed, so a string value needs
|
|
2106
|
+
JSON escaping instead: `[{{{jsonSerialize name}}}]` wrote a value holding a
|
|
2107
|
+
double quote and an apostrophe intact, `["{{{name}}}"]` failed the row on it
|
|
2108
|
+
(`Expected ',' or ']' after array element in JSON`) and `["{{name}}"]` wrote
|
|
2109
|
+
the HTML-escaped text. Keep a space between the helper's closing braces and
|
|
2110
|
+
an object's closing brace: `{"name": {{{jsonSerialize name}}}}` failed with
|
|
2111
|
+
`malformed_expression`, `{"name": {{{jsonSerialize name}}} }` was parsed.
|
|
2095
2112
|
hardCodedValue:
|
|
2096
2113
|
type:
|
|
2097
2114
|
- string
|