@celigo/api-specs 0.2.285 → 0.2.286

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/export.yml CHANGED
@@ -1368,6 +1368,14 @@ components:
1368
1368
  array-records to (templates reference ``{{rows.0.<field>}}`` /
1369
1369
  iterate ``{{#each rows}}``); hook code sees the array as the
1370
1370
  record element and must not assume object shape.
1371
+ - |-
1372
+ On an HTTP export and on a Snowflake export that group with this field, a grouped record's
1373
+ trace key at the next step was the platform's default key, not the value of the export's
1374
+ `traceKeyTemplate`: the first field on the flow's trace-key list present on the rows, when
1375
+ every row holds the same value. Rows that each carry their own `id` left a multi-row
1376
+ group's key blank; an `id` holding the group's identifier on every row keyed the group on
1377
+ it. A Transform 2.0 in `mode: create` that turned each group into one object made the
1378
+ template the key on the HTTP export (see `traceKeyTemplate`).
1371
1379
  - |-
1372
1380
  A grouped record is ONE record: Mapper 2.0 and Transform 2.0 root
1373
1381
  JSONPath at the array (``$[0].<field>`` / ``$[*].<field>``;
@@ -11173,6 +11181,10 @@ components:
11173
11181
  per row and the repeated internal ids surface as duplicate trace keys
11174
11182
  (`traceKeysDuplicate` in the preview). Grouping keys on the internal id only — a
11175
11183
  different key needs a `preSavePage` hook, which sees one page at a time.
11184
+ - |-
11185
+ With grouping on, the next step's errors are keyed on the rows' `id` (the record's
11186
+ internal id) even when the export sets a `traceKeyTemplate`; with `true` the template's
11187
+ value is the key.
11176
11188
  - |-
11177
11189
  Celigo's documentation requires the saved search to be sorted by Internal ID for
11178
11190
  grouping to apply.
@@ -17495,26 +17507,53 @@ components:
17495
17507
  description: |-
17496
17508
  Handlebars template that overrides how each record's unique trace key is generated, used
17497
17509
  to track records through the flow and match retries to prior errors (e.g.
17498
- `{{join "_" record.customerId record.orderId}}`). When omitted, the system picks a unique
17499
- field automatically from the record's top level, by exact field name (`GET
17500
- /v1/flows/{_id}/traceKey` serves the pattern). The rendered value of a template is stamped
17501
- on each record as `io_custom_trace_key` and travels downstream with it. If a transform
17502
- reshapes the data first, omit the `record.` prefix. Trace keys are capped at 256 characters;
17503
- a longer key is stored truncated from the middle, keeping the beginning and end of the
17504
- value. Downstream imports use the trace key as their default concurrency lock key (a blank
17505
- key means no lock); it never de-duplicates — a record emitted twice with the same key is
17506
- processed twice.
17510
+ `{{join "_" record.customerId record.orderId}}`). When omitted, the platform derives the
17511
+ key from the ordered field list of the flow's source step (`GET /v1/flows/{_id}/traceKey`
17512
+ serves it). The rendered value of a template is stamped on an object record as
17513
+ `io_custom_trace_key` and travels downstream with it. If a transform reshapes the data
17514
+ first, omit the `record.` prefix. Trace keys are capped at 256 characters; a longer key is
17515
+ stored truncated from the middle, keeping the beginning and end of the value. Downstream
17516
+ imports use the trace key as their default concurrency lock key (a blank key means no
17517
+ lock); it never de-duplicates — a record emitted twice with the same key is processed
17518
+ twice.
17507
17519
  x-celigo-ai-guidance:
17508
17520
  - |-
17509
- The default derivation reads these top-level fields in order and takes the first present
17510
- (a record carrying `id` and `internalId` is keyed on `id` alone) — `id`, `Id`, `ID`,
17511
- `internalid`, `Internalid`, `internalId`, `InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`,
17512
- `internal_id`, `internal_Id`, `Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`,
17513
- `IDENTIFIER` — then a `*anything` rule the platform does not document.
17514
- - |-
17515
- A record in flight through the flow carries `io_custom_trace_key` when a template is set
17516
- — that value is the downstream imports' default lock key; without a template the record
17517
- carries no trace-key field (the key is derived, not stored on the record).
17521
+ For an object record (an export that does not group), the default key is the first
17522
+ field the record carries from the list `GET /v1/flows/{_id}/traceKey` returns for the
17523
+ source step (a record carrying `id` and `internalId` is keyed on `id` alone). The list
17524
+ starts with the exact names `id`, `Id`, `ID`, `internalid`, `Internalid`, `internalId`,
17525
+ `InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`, `internal_id`, `internal_Id`,
17526
+ `Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`, `IDENTIFIER`.
17527
+ - |-
17528
+ After those names the list carries the source fields named like an id that the flow's
17529
+ import mappings read, in mapping order — an import that maps `Customer_Id` adds
17530
+ `Customer_Id`, so records with none of the standard names are keyed on that field —
17531
+ and then names taken from the export's own configuration, written with a leading `*`:
17532
+ an HTTP export whose relative URI is `v1/mirror` listed `*mirror`, and a record's
17533
+ `mirror_id` became its key.
17534
+ - |-
17535
+ The listed field is read from an object record's top level; when none is there, one
17536
+ level down counts (`order.id` keyed the record). Nested objects that carry different
17537
+ values, or the differing elements of a nested array, leave the key blank, and a field
17538
+ two levels down is not read.
17539
+ - |-
17540
+ On an export whose records are groups of rows — `groupByFields` on an HTTP and on a
17541
+ Snowflake export, and a NetSuite saved search with grouping on, were run — the
17542
+ template's value did not reach the next step: its errors carried the default key and
17543
+ no row carried `io_custom_trace_key`. The default for a group is the first listed field
17544
+ present on its rows when every row holds the same value; rows that differ on that field
17545
+ leave the key blank, and later listed fields are not tried.
17546
+ - |-
17547
+ To key grouped records on a business identifier, return it on every row as `id` — on a
17548
+ database export, `SELECT order_number AS id, * FROM orders` — and the next step's errors
17549
+ carry it, with or without a template (HTTP and Snowflake exports). On the HTTP export a
17550
+ Transform 2.0 in `mode: create` that reshaped each group into one object also made the
17551
+ template the key, because the record leaving the export was then an object.
17552
+ - |-
17553
+ An object record in flight through the flow carries `io_custom_trace_key` when a
17554
+ template is set — that value is the downstream imports' default lock key; without a
17555
+ template the record carries no trace-key field (the key is derived, not stored on the
17556
+ record).
17518
17557
  examples:
17519
17558
  - '{{record.id}}'
17520
17559
  - '{{join "_" record.customerId record.orderId}}'
package/dist/flow.yml CHANGED
@@ -1248,17 +1248,38 @@ paths:
1248
1248
  - Flows
1249
1249
  summary: Get a flow's trace-key patterns
1250
1250
  description: |-
1251
- Returns the trace-key pattern for each page generator in the flow. Trace keys are used to
1252
- correlate source records with their downstream results in execution logs — they let you look up
1253
- "what happened to record X" without scanning the full log.
1251
+ Returns, for each page generator in the flow, the ordered list of fields the platform reads to
1252
+ derive a record's default trace key. Trace keys correlate source records with their downstream
1253
+ results in errors and execution logs — they let you look up "what happened to record X" without
1254
+ scanning the full log.
1254
1255
 
1255
1256
  Each entry in the returned array corresponds to one page generator (`pgIndex` matches the
1256
- zero-based position in the flow's `pageGenerators` array). The `traceKeyPattern` describes
1257
- which source-record fields and/or Handlebars templates are combined to produce the key.
1257
+ zero-based position in the flow's `pageGenerators` array). The list holds the platform's
1258
+ standard id names, then the id-like source fields the flow's import mappings read, then names
1259
+ taken from the export's own configuration, written with a leading `*`.
1260
+
1261
+ For an object record the first field in `fields` that the record carries becomes its trace
1262
+ key; when its top level carries none, a listed field one level down is read, and nested values
1263
+ that differ leave the key blank. For a record that is a group of rows the first listed field
1264
+ present on the rows is the key only when every row holds the same value. A `traceKeyTemplate`
1265
+ set on the export replaces this list for an object record and is not echoed here.
1258
1266
 
1259
1267
  If both `fields` and `templates` are empty for a generator, the flow has no trace key configured
1260
1268
  and log correlation must be done by position or other means. Trace keys are especially important
1261
1269
  for fan-out flows where one source record produces many destination records.
1270
+ x-celigo-ai-guidance:
1271
+ - |-
1272
+ Read this list to explain a record's trace key when the export sets no template, or when
1273
+ the export groups records (a group is keyed from this list, not from the template): an
1274
+ HTTP export with relative URI `v1/mirror` feeding an import that maps `Location_Id` and
1275
+ then `Customer_Id` returned the eighteen standard names, `Location_Id`, `Customer_Id`,
1276
+ `*mirror` — and its records were keyed on `Location_Id`.
1277
+ - |-
1278
+ A NetSuite saved-search export returned its own names — `id`, `internalid`, `internalId`,
1279
+ `internal id`, `internal_id`, `Internal ID`, `inventory_item_id`, `productId`, `entityid`,
1280
+ `nsmsgId` — and a Snowflake export feeding an import with no id-like mapping returned the
1281
+ eighteen standard names alone; an HTTP export with no mapping returned them followed by
1282
+ `*mirror`.
1262
1283
  parameters:
1263
1284
  - name: _id
1264
1285
  in: path
@@ -7371,7 +7392,11 @@ components:
7371
7392
  properties:
7372
7393
  fields:
7373
7394
  type: array
7374
- description: Source-record field paths that contribute to the trace key.
7395
+ description: |-
7396
+ Field names read in order to derive the default trace key; the operation description
7397
+ says how an object record and a group of rows are matched against them. A name with a
7398
+ leading `*` is taken from the export's configuration: `*mirror`, from the relative
7399
+ URI `v1/mirror`, keyed a record on its `mirror_id` field.
7375
7400
  items:
7376
7401
  type: string
7377
7402
  templates:
package/dist/import.yml CHANGED
@@ -17805,8 +17805,8 @@ components:
17805
17805
  Handlebars template that generates a concurrency lock key for each record: records that
17806
17806
  render the same key are never submitted at the same time, while records with different
17807
17807
  keys are processed in parallel. When omitted, the record's trace key is the lock key (a
17808
- blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on the record
17809
- as `io_custom_trace_key`); a template replaces that default rather than adding to it.
17808
+ blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on an object
17809
+ record as `io_custom_trace_key`); a template replaces that default rather than adding to it.
17810
17810
  The template is rendered from the record as it arrives at the import — before the import's
17811
17811
  own lookups and mapping run — so a key built from one of the import's lookup results
17812
17812
  (`{{lookup.<name>}}`) or from a mapped field renders empty, and an empty key is no lock at
package/dist/tool.yml CHANGED
@@ -27495,8 +27495,8 @@ components:
27495
27495
  Handlebars template that generates a concurrency lock key for each record: records that
27496
27496
  render the same key are never submitted at the same time, while records with different
27497
27497
  keys are processed in parallel. When omitted, the record's trace key is the lock key (a
27498
- blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on the record
27499
- as `io_custom_trace_key`); a template replaces that default rather than adding to it.
27498
+ blank trace key means no lock; a custom `traceKeyTemplate` upstream arrives on an object
27499
+ record as `io_custom_trace_key`); a template replaces that default rather than adding to it.
27500
27500
  The template is rendered from the record as it arrives at the import — before the import's
27501
27501
  own lookups and mapping run — so a key built from one of the import's lookup results
27502
27502
  (`{{lookup.<name>}}`) or from a mapped field renders empty, and an empty key is no lock at
@@ -28372,6 +28372,14 @@ components:
28372
28372
  array-records to (templates reference ``{{rows.0.<field>}}`` /
28373
28373
  iterate ``{{#each rows}}``); hook code sees the array as the
28374
28374
  record element and must not assume object shape.
28375
+ - |-
28376
+ On an HTTP export and on a Snowflake export that group with this field, a grouped record's
28377
+ trace key at the next step was the platform's default key, not the value of the export's
28378
+ `traceKeyTemplate`: the first field on the flow's trace-key list present on the rows, when
28379
+ every row holds the same value. Rows that each carry their own `id` left a multi-row
28380
+ group's key blank; an `id` holding the group's identifier on every row keyed the group on
28381
+ it. A Transform 2.0 in `mode: create` that turned each group into one object made the
28382
+ template the key on the HTTP export (see `traceKeyTemplate`).
28375
28383
  - |-
28376
28384
  A grouped record is ONE record: Mapper 2.0 and Transform 2.0 root
28377
28385
  JSONPath at the array (``$[0].<field>`` / ``$[*].<field>``;
@@ -37682,6 +37690,10 @@ components:
37682
37690
  per row and the repeated internal ids surface as duplicate trace keys
37683
37691
  (`traceKeysDuplicate` in the preview). Grouping keys on the internal id only — a
37684
37692
  different key needs a `preSavePage` hook, which sees one page at a time.
37693
+ - |-
37694
+ With grouping on, the next step's errors are keyed on the rows' `id` (the record's
37695
+ internal id) even when the export sets a `traceKeyTemplate`; with `true` the template's
37696
+ value is the key.
37685
37697
  - |-
37686
37698
  Celigo's documentation requires the saved search to be sorted by Internal ID for
37687
37699
  grouping to apply.
@@ -40234,26 +40246,53 @@ components:
40234
40246
  description: |-
40235
40247
  Handlebars template that overrides how each record's unique trace key is generated, used
40236
40248
  to track records through the flow and match retries to prior errors (e.g.
40237
- `{{join "_" record.customerId record.orderId}}`). When omitted, the system picks a unique
40238
- field automatically from the record's top level, by exact field name (`GET
40239
- /v1/flows/{_id}/traceKey` serves the pattern). The rendered value of a template is stamped
40240
- on each record as `io_custom_trace_key` and travels downstream with it. If a transform
40241
- reshapes the data first, omit the `record.` prefix. Trace keys are capped at 256 characters;
40242
- a longer key is stored truncated from the middle, keeping the beginning and end of the
40243
- value. Downstream imports use the trace key as their default concurrency lock key (a blank
40244
- key means no lock); it never de-duplicates — a record emitted twice with the same key is
40245
- processed twice.
40246
- x-celigo-ai-guidance:
40247
- - |-
40248
- The default derivation reads these top-level fields in order and takes the first present
40249
- (a record carrying `id` and `internalId` is keyed on `id` alone) — `id`, `Id`, `ID`,
40250
- `internalid`, `Internalid`, `internalId`, `InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`,
40251
- `internal_id`, `internal_Id`, `Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`,
40252
- `IDENTIFIER` — then a `*anything` rule the platform does not document.
40253
- - |-
40254
- A record in flight through the flow carries `io_custom_trace_key` when a template is set
40255
- — that value is the downstream imports' default lock key; without a template the record
40256
- carries no trace-key field (the key is derived, not stored on the record).
40249
+ `{{join "_" record.customerId record.orderId}}`). When omitted, the platform derives the
40250
+ key from the ordered field list of the flow's source step (`GET /v1/flows/{_id}/traceKey`
40251
+ serves it). The rendered value of a template is stamped on an object record as
40252
+ `io_custom_trace_key` and travels downstream with it. If a transform reshapes the data
40253
+ first, omit the `record.` prefix. Trace keys are capped at 256 characters; a longer key is
40254
+ stored truncated from the middle, keeping the beginning and end of the value. Downstream
40255
+ imports use the trace key as their default concurrency lock key (a blank key means no
40256
+ lock); it never de-duplicates — a record emitted twice with the same key is processed
40257
+ twice.
40258
+ x-celigo-ai-guidance:
40259
+ - |-
40260
+ For an object record (an export that does not group), the default key is the first
40261
+ field the record carries from the list `GET /v1/flows/{_id}/traceKey` returns for the
40262
+ source step (a record carrying `id` and `internalId` is keyed on `id` alone). The list
40263
+ starts with the exact names `id`, `Id`, `ID`, `internalid`, `Internalid`, `internalId`,
40264
+ `InternalId`, `INTERNALID`, `_id`, `_Id`, `_ID`, `internal_id`, `internal_Id`,
40265
+ `Internal_id`, `Internal_Id`, `INTERNAL_ID`, `identifier`, `IDENTIFIER`.
40266
+ - |-
40267
+ After those names the list carries the source fields named like an id that the flow's
40268
+ import mappings read, in mapping order — an import that maps `Customer_Id` adds
40269
+ `Customer_Id`, so records with none of the standard names are keyed on that field —
40270
+ and then names taken from the export's own configuration, written with a leading `*`:
40271
+ an HTTP export whose relative URI is `v1/mirror` listed `*mirror`, and a record's
40272
+ `mirror_id` became its key.
40273
+ - |-
40274
+ The listed field is read from an object record's top level; when none is there, one
40275
+ level down counts (`order.id` keyed the record). Nested objects that carry different
40276
+ values, or the differing elements of a nested array, leave the key blank, and a field
40277
+ two levels down is not read.
40278
+ - |-
40279
+ On an export whose records are groups of rows — `groupByFields` on an HTTP and on a
40280
+ Snowflake export, and a NetSuite saved search with grouping on, were run — the
40281
+ template's value did not reach the next step: its errors carried the default key and
40282
+ no row carried `io_custom_trace_key`. The default for a group is the first listed field
40283
+ present on its rows when every row holds the same value; rows that differ on that field
40284
+ leave the key blank, and later listed fields are not tried.
40285
+ - |-
40286
+ To key grouped records on a business identifier, return it on every row as `id` — on a
40287
+ database export, `SELECT order_number AS id, * FROM orders` — and the next step's errors
40288
+ carry it, with or without a template (HTTP and Snowflake exports). On the HTTP export a
40289
+ Transform 2.0 in `mode: create` that reshaped each group into one object also made the
40290
+ template the key, because the record leaving the export was then an object.
40291
+ - |-
40292
+ An object record in flight through the flow carries `io_custom_trace_key` when a
40293
+ template is set — that value is the downstream imports' default lock key; without a
40294
+ template the record carries no trace-key field (the key is derived, not stored on the
40295
+ record).
40257
40296
  examples:
40258
40297
  - '{{record.id}}'
40259
40298
  - '{{join "_" record.customerId record.orderId}}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.285",
3
+ "version": "0.2.286",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "2f2c61b6",
4
+ "iasCommit": "db9a8ea4",
5
5
  "generatedAt": "2026-11-11"
6
6
  },
7
7
  "roots": {