@celigo/api-specs 0.2.347 → 0.2.349

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/api.yml CHANGED
@@ -6138,8 +6138,13 @@ components:
6138
6138
  (`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
6139
6139
  reads the first row of the first group, and `data[0]` copies the group.
6140
6140
  A page-processor preview (`previewPageProcessor`) fills `data` with
6141
- the lookup's first record only; a test run fills it with every
6142
- record the lookup returns.
6141
+ the lookup's first record only when the lookup's document in the
6142
+ request carries no `test.limit`, and with up to `test.limit` records
6143
+ when it does — except for a lookup upstream of the previewed step
6144
+ whose document carries `mockOutput`, where `data` holds that mock's
6145
+ first record whatever the limit. A test run fills it with every
6146
+ record the lookup returns, up to `test.limit` on a `type: test`
6147
+ lookup.
6143
6148
  - **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
6144
6149
  "ignored": false, "errors": [], "_json": <raw destination response>,
6145
6150
  ...<response body fields flattened at the root>}` — use `id` for the
@@ -6192,9 +6197,13 @@ components:
6192
6197
  To carry several lookup results onto the record, use `extract: "data"`
6193
6198
  (the whole result array) or a `lists` entry whose extracts use
6194
6199
  `data[*].x` — never `data[*].x` in `fields[].extract`, which merges
6195
- nothing: the record simply never gains the field. A page-processor
6196
- preview shows one result in that array either way, so check the full
6197
- list in a test run.
6200
+ nothing: the record simply never gains the field. Either way a
6201
+ page-processor preview shows one result in that array when the
6202
+ lookup's document carries no `test.limit` and up to `test.limit`
6203
+ results when it does (an upstream lookup whose document carries
6204
+ `mockOutput` shows that mock's first result whatever the limit) — so
6205
+ check the full list in a test run, which a `type: test` lookup caps
6206
+ at `test.limit` too.
6198
6207
  examples:
6199
6208
  - fields:
6200
6209
  - extract: id
package/dist/export.yml CHANGED
@@ -1856,8 +1856,25 @@ components:
1856
1856
  Caps the total records a test run processes, counted on top-level records before
1857
1857
  oneToMany processing; the maximum exists to prevent accidentally processing large
1858
1858
  datasets during development. The cap applies across pages — processing stops once the
1859
- limit is reached regardless of pageSize. When transitioning to production, leave this in
1860
- place and change the export's type field; the limit then no longer applies.
1859
+ limit is reached regardless of pageSize. On a lookup the cap applies to each record that
1860
+ reaches the lookup. When transitioning to production, change the export's type field;
1861
+ the limit then no longer applies.
1862
+ x-celigo-ai-guidance:
1863
+ - |-
1864
+ On a lookup with `type: test` the limit is per arriving record: its results mapping
1865
+ receives at most this many records for each record that reaches the lookup. That holds
1866
+ in a flow run and in a test run of a flow, an API or a Tool — also when the test run
1867
+ replays a saved `mockOutput` that holds more records than the limit.
1868
+ - |-
1869
+ A save keeps `test.limit` on a `type: test` export. A save that sends it with no
1870
+ `type`, or with `type` `all` or `delta`, answers 200 and drops it.
1871
+ - |-
1872
+ A page-processor preview (`previewPageProcessor`) reads `test.limit` from the lookup
1873
+ document in its request, with or without `type: test`: the lookup hands on up to that
1874
+ many records of its live response, counted before its own output `filter`, and one
1875
+ record when the document carries no limit. A lookup upstream of the previewed step
1876
+ whose document carries `mockOutput` hands on that mock's first record whatever the
1877
+ limit.
1861
1878
  minimum: 1
1862
1879
  maximum: 100
1863
1880
  examples:
@@ -17258,7 +17275,8 @@ components:
17258
17275
  page-processor preview (`previewPageProcessor`) for the flow's source export and for a
17259
17276
  lookup upstream of the previewed step. That preview carries only the first record of a
17260
17277
  source export's mock, and of an upstream lookup's mock only the first record reaches the
17261
- lookup's results mapping. A target lookup in the preview runs its live query, invoking the
17278
+ lookup's results mapping, whatever `test.limit` the lookup carries. A target lookup in the
17279
+ preview runs its live query, invoking the
17262
17280
  export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
17263
17281
  This allows you to:
17264
17282
  - Test mappings with representative data
@@ -17308,8 +17326,9 @@ components:
17308
17326
  the filter keeps first, so a preview of a later step has a record to follow.
17309
17327
  - |-
17310
17328
  A page-processor preview hands a lookup's results mapping only the first record of the
17311
- lookup's mockOutput, while a test run hands it every record. Put first the record a later
17312
- step's preview should be built from.
17329
+ lookup's mockOutput — whatever `test.limit` the lookup carries — while a test run hands it
17330
+ every record, or the first `test.limit` of them on a `type: test` lookup. Put first the
17331
+ record a later step's preview should be built from.
17313
17332
  properties:
17314
17333
  page_of_records:
17315
17334
  type: array
package/dist/flow.yml CHANGED
@@ -4878,16 +4878,23 @@ paths:
4878
4878
  request did execute. With `includeStages: false` the response is the
4879
4879
  bare result object rather than the `{data, stages}` envelope.
4880
4880
 
4881
- A lookup contributes one record to this preview: the first record of
4882
- its saved `mockOutput`, or of its live response. An upstream lookup's
4883
- results mapping therefore reads a `data` array of one record, where a
4884
- test run reads every record the lookup returned, and a target lookup
4885
- returns that first record as `data` (an HTTP lookup's `raw` stage
4886
- still holds the whole response). A later step that works on the
4887
- mapped array sees the one record: a one-to-many step previews one
4888
- child, and a filter or expression over the lookup's results is
4889
- evaluated on it — when the step's own input filter then excludes the
4890
- record, the response is `422 no_data_available`.
4881
+ How many records a lookup contributes to this preview is set by its
4882
+ document in the request. A lookup whose document carries no
4883
+ `test.limit` contributes one record: the first record of its saved
4884
+ `mockOutput`, or of its live response. With `test.limit` — with or
4885
+ without `type: test` — it contributes up to that many records of its
4886
+ live response; an upstream lookup whose document carries `mockOutput`
4887
+ still contributes only that mock's first record. An upstream lookup's
4888
+ results mapping therefore reads a `data` array of those records,
4889
+ where a test run reads every record the lookup returned (up to
4890
+ `test.limit` on a `type: test` lookup), and a target lookup returns
4891
+ them as `data` (an HTTP lookup's `raw` stage still holds the whole
4892
+ response). A later step that works on the mapped array sees only
4893
+ those records: a filter or expression over the lookup's results is
4894
+ evaluated on them, and a one-to-many step previews one child — the
4895
+ array's first element, however many it holds. When the step's own
4896
+ input filter then excludes the record, the response is
4897
+ `422 no_data_available`.
4891
4898
 
4892
4899
  Body carries the flow shape plus resolved maps of page-generator and
4893
4900
  page-processor docs keyed by `_id`. The server uses those maps as the
@@ -5330,8 +5337,13 @@ components:
5330
5337
  (`"data": [[<row>, <row>]]`): `data[0][0].name` (or `data.0.0.name`)
5331
5338
  reads the first row of the first group, and `data[0]` copies the group.
5332
5339
  A page-processor preview (`previewPageProcessor`) fills `data` with
5333
- the lookup's first record only; a test run fills it with every
5334
- record the lookup returns.
5340
+ the lookup's first record only when the lookup's document in the
5341
+ request carries no `test.limit`, and with up to `test.limit` records
5342
+ when it does — except for a lookup upstream of the previewed step
5343
+ whose document carries `mockOutput`, where `data` holds that mock's
5344
+ first record whatever the limit. A test run fills it with every
5345
+ record the lookup returns, up to `test.limit` on a `type: test`
5346
+ lookup.
5335
5347
  - **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
5336
5348
  "ignored": false, "errors": [], "_json": <raw destination response>,
5337
5349
  ...<response body fields flattened at the root>}` — use `id` for the
@@ -5384,9 +5396,13 @@ components:
5384
5396
  To carry several lookup results onto the record, use `extract: "data"`
5385
5397
  (the whole result array) or a `lists` entry whose extracts use
5386
5398
  `data[*].x` — never `data[*].x` in `fields[].extract`, which merges
5387
- nothing: the record simply never gains the field. A page-processor
5388
- preview shows one result in that array either way, so check the full
5389
- list in a test run.
5399
+ nothing: the record simply never gains the field. Either way a
5400
+ page-processor preview shows one result in that array when the
5401
+ lookup's document carries no `test.limit` and up to `test.limit`
5402
+ results when it does (an upstream lookup whose document carries
5403
+ `mockOutput` shows that mock's first result whatever the limit) — so
5404
+ check the full list in a test run, which a `type: test` lookup caps
5405
+ at `test.limit` too.
5390
5406
  examples:
5391
5407
  - fields:
5392
5408
  - extract: id
@@ -9952,12 +9968,20 @@ components:
9952
9968
  preview a step with a record that reaches it, put that record first in the source's
9953
9969
  `mockOutput`.
9954
9970
  - |-
9955
- A lookup on the way passes on only the first record it returns (the first record of its
9956
- `mockOutput`, else of its live response), so its results mapping's `data` holds one record
9957
- and a step that needs the others — a one-to-many over the mapped array, a filter or a total
9958
- across it — previews one record or answers `422 no_data_available`. A test run hands the
9959
- mapping every record. To preview with a representative result, put it first in the lookup's
9960
- `mockOutput`, or supply the whole record as the target's `options.inputData`.
9971
+ A lookup on the way whose document carries no `test.limit` passes on only the first record
9972
+ it returns (the first record of its `mockOutput`, else of its live response), so its
9973
+ results mapping's `data` holds one record and a step that needs the others — a one-to-many
9974
+ over the mapped array, a filter or a total across it — previews one record or answers `422
9975
+ no_data_available`. A test run hands the mapping every record the lookup returns — on a
9976
+ `type: test` lookup at most `test.limit` for each arriving record. To preview with a
9977
+ representative result, put it first in the lookup's `mockOutput`, or supply the whole
9978
+ record as the target's `options.inputData`.
9979
+ - |-
9980
+ `test.limit` on a lookup's document in `pageProcessorMap` makes that lookup pass on up to
9981
+ that many records of its live response, with or without `type: test`; the preview saves
9982
+ nothing. It changes nothing for an upstream lookup whose document carries `mockOutput` —
9983
+ that lookup still passes on the mock's first record — and a one-to-many step still
9984
+ previews only the first element of the mapped array.
9961
9985
  properties:
9962
9986
  flow:
9963
9987
  type: object
package/dist/sync.yml CHANGED
@@ -1011,8 +1011,9 @@ paths:
1011
1011
  (`dataset_externalId_id_required`), an `externalId` already exists on the sync
1012
1012
  (`create_dataset_present`) or an `_id` does not belong to it
1013
1013
  (`update_dataset_not_present`), `tableName` values collide
1014
- (`duplicate_dataset_table_names`), or an export dataset's export uses a
1015
- different connection than the sync (`connection_mismatch`).
1014
+ (`duplicate_dataset_table_names`), or an export dataset names an export that
1015
+ does not exist (`invalid_ref`) or that uses a different connection than the sync
1016
+ (`connection_mismatch`).
1016
1017
  content:
1017
1018
  application/json:
1018
1019
  schema:
@@ -1052,6 +1053,13 @@ paths:
1052
1053
  - field: ingestionMode
1053
1054
  code: ingestion_mode_required_for_enabled_datasets
1054
1055
  message: ingestionMode field is required for enabled datasets.
1056
+ transform_mode_without_children:
1057
+ summary: transformMode on an array of scalar values
1058
+ value:
1059
+ errors:
1060
+ - field: dataElements[1].collaborator_ids
1061
+ code: dataset_transform_mode_not_allowed
1062
+ message: collaborator_ids cannot have transformMode as they don't have thier own children
1055
1063
  missing_delta_date_field:
1056
1064
  summary: Delta dataset with a NetSuite record type and no date field
1057
1065
  value:
@@ -4678,6 +4686,13 @@ components:
4678
4686
  connection on a listed HTTP connector whose API or version is not the one
4679
4687
  `GET /v1/di/metadata/sources` names. Omitting it fails with
4680
4688
  `422 missing_source_connection`.
4689
+ x-celigo-ai-guidance:
4690
+ - |-
4691
+ A disabled sync that holds export-backed datasets accepts a change of this
4692
+ connection. The dataset list then flags those datasets with
4693
+ mismatchSyncConnection: true, and a new isExport dataset saves only for an
4694
+ export on the new connection — an export on the previous one fails with 400
4695
+ connection_mismatch.
4681
4696
  examples:
4682
4697
  - 6a2a95909e994395f3c2a4e6
4683
4698
  destination:
@@ -4855,9 +4870,11 @@ components:
4855
4870
  DataElement:
4856
4871
  type: object
4857
4872
  description: |-
4858
- Per-column/field replication settings inside a dataset. Elements with nested
4859
- structure (objects or arrays) carry a `transformMode` and a `children` array;
4860
- scalar elements carry neither.
4873
+ Per-column/field replication settings inside a dataset. An element carries a
4874
+ `transformMode` exactly when it lists nested fields under `children`. An object
4875
+ or an array of objects lists them there, or is sent without them and then
4876
+ carries no `transformMode` either; a scalar column and an array of scalar values
4877
+ have none to list.
4861
4878
  properties:
4862
4879
  name:
4863
4880
  type: string
@@ -4889,6 +4906,28 @@ components:
4889
4906
  used as the parent key for arrays normalized into child tables under `append`
4890
4907
  and `replace`. The element must also be enabled, and cannot carry `mask` or a
4891
4908
  `transformMode`.
4909
+ x-celigo-ai-guidance:
4910
+ - |-
4911
+ isPrimaryKey: true on an element whose enable is false or omitted fails with
4912
+ 422 dataset_invalid_primary_key_configuration; together with mask: true it
4913
+ fails with 422 dataset_primary_key_and_mask_not_allowed; and isPrimaryKey or
4914
+ mask on an element that carries a transformMode fails with 422
4915
+ dataset_primary_key_or_mask_not_allowed.
4916
+ - |-
4917
+ Under append or replace, a level that holds an enabled normalize array is
4918
+ checked for a key when it also has a candidate: an enabled scalar element of
4919
+ the level, or an enabled scalar child of a flatten object on it. One of the
4920
+ candidates must be isPrimaryKey, or the save fails with 422
4921
+ dataset_foreign_key_required_for_append_replace. A key that sits only under a
4922
+ preserve object does not count, and a level with no candidate saves.
4923
+ - |-
4924
+ Each level is judged on its own: the top of the dataset, the children of a
4925
+ flatten object, the children of a normalize array. A key on the top level
4926
+ does not serve an array nested below it.
4927
+ - |-
4928
+ Under merge a level below the top is not checked this way: a normalize array
4929
+ nested in a flatten object or in another normalize array saves without a key
4930
+ among that level's elements.
4892
4931
  examples:
4893
4932
  - true
4894
4933
  transformMode:
@@ -4898,21 +4937,46 @@ components:
4898
4937
  - flatten
4899
4938
  - normalize
4900
4939
  description: |-
4901
- Only set on elements with `children` — it controls how the nested structure is
4902
- loaded. Setting it on a scalar element fails validation, as does omitting it on
4903
- an element that has children. Children nested under a `preserve` parent cannot
4904
- override it with another mode.
4940
+ How the nested fields of an element that lists `children` are loaded. Set it on
4941
+ every element that lists `children` and on no other — a scalar column and an
4942
+ array of scalar values take none. Children nested under a `preserve` parent
4943
+ cannot override it with another mode.
4905
4944
  x-enumDescriptions:
4906
4945
  preserve: Load the nested structure as a single semi-structured column.
4907
4946
  flatten: Expand object keys into individual columns on the same table.
4908
4947
  normalize: Split array items into a child table keyed back to the parent record.
4948
+ x-celigo-ai-guidance:
4949
+ - |-
4950
+ transformMode on an element that lists no children — a scalar column, an array
4951
+ of scalar values, or an element sent with an empty children array — fails the
4952
+ whole batch with 422 dataset_transform_mode_not_allowed, on a nested element as
4953
+ on a top-level one.
4954
+ - |-
4955
+ An element that lists children and carries no transformMode fails with 422
4956
+ dataset_transform_mode_required, on a nested element as on a top-level one.
4957
+ - |-
4958
+ A flatten or normalize child under a preserve parent fails with 422
4959
+ dataset_invalid_transform_mode_configuration; a preserve child saves.
4960
+ - |-
4961
+ An HTTP-connector object's details read can return transformMode: preserve on
4962
+ an array of scalar values, which lists no children, and no transformMode on an
4963
+ object or array that does list children. Decide from children, not from the
4964
+ read's mode: send a mode where the element lists children, none where it does
4965
+ not.
4909
4966
  examples:
4910
4967
  - flatten
4911
4968
  children:
4912
4969
  type: array
4913
4970
  description: |-
4914
- Nested elements of an object or array field. Present together with
4915
- `transformMode`; empty for scalar columns.
4971
+ Nested fields of an object or an array of objects, each one a data element of
4972
+ its own. Sent together with `transformMode`; a scalar column and an array of
4973
+ scalar values have none, and a dataset read returns them with an empty array.
4974
+ x-celigo-ai-guidance:
4975
+ - |-
4976
+ An object or an array of objects sent as a scalar element — no children, no
4977
+ transformMode — saves (201) with an empty children array. The sync's details
4978
+ read then returns that column with transformMode preserve and its nested
4979
+ fields enabled.
4916
4980
  items:
4917
4981
  $ref: '#/components/schemas/DataElement'
4918
4982
  Dataset:
@@ -5141,10 +5205,17 @@ components:
5141
5205
  Build each update item from the dataset's read-back, minus externalId and the read-only
5142
5206
  fields.
5143
5207
  - |-
5144
- Selections are not checked against the source at save: an externalId the catalog
5145
- doesn't list, and dataElements names a catalog table doesn't have (even an enabled
5208
+ A source-table item (no isExport) is not checked against the source at save: an
5209
+ externalId the catalog doesn't list — an export's ID sent without isExport: true
5210
+ included — and dataElements names a catalog table doesn't have (even an enabled
5146
5211
  merge key), save without an error. Take externalId values from the connection's
5147
5212
  dataset catalog and column names from its details read.
5213
+ - |-
5214
+ An isExport: true item's externalId is checked: an ID no export has fails with 400
5215
+ invalid_ref ("Export not found."), and an export on another connection than the
5216
+ sync's source fails with 400 connection_mismatch. Its dataElements names are not: a
5217
+ name the export's records don't have (even an enabled merge key) saves without an
5218
+ error.
5148
5219
  properties:
5149
5220
  _id:
5150
5221
  type: string
package/dist/tool.yml CHANGED
@@ -29473,8 +29473,25 @@ components:
29473
29473
  Caps the total records a test run processes, counted on top-level records before
29474
29474
  oneToMany processing; the maximum exists to prevent accidentally processing large
29475
29475
  datasets during development. The cap applies across pages — processing stops once the
29476
- limit is reached regardless of pageSize. When transitioning to production, leave this in
29477
- place and change the export's type field; the limit then no longer applies.
29476
+ limit is reached regardless of pageSize. On a lookup the cap applies to each record that
29477
+ reaches the lookup. When transitioning to production, change the export's type field;
29478
+ the limit then no longer applies.
29479
+ x-celigo-ai-guidance:
29480
+ - |-
29481
+ On a lookup with `type: test` the limit is per arriving record: its results mapping
29482
+ receives at most this many records for each record that reaches the lookup. That holds
29483
+ in a flow run and in a test run of a flow, an API or a Tool — also when the test run
29484
+ replays a saved `mockOutput` that holds more records than the limit.
29485
+ - |-
29486
+ A save keeps `test.limit` on a `type: test` export. A save that sends it with no
29487
+ `type`, or with `type` `all` or `delta`, answers 200 and drops it.
29488
+ - |-
29489
+ A page-processor preview (`previewPageProcessor`) reads `test.limit` from the lookup
29490
+ document in its request, with or without `type: test`: the lookup hands on up to that
29491
+ many records of its live response, counted before its own output `filter`, and one
29492
+ record when the document carries no limit. A lookup upstream of the previewed step
29493
+ whose document carries `mockOutput` hands on that mock's first record whatever the
29494
+ limit.
29478
29495
  minimum: 1
29479
29496
  maximum: 100
29480
29497
  examples:
@@ -40584,7 +40601,8 @@ components:
40584
40601
  page-processor preview (`previewPageProcessor`) for the flow's source export and for a
40585
40602
  lookup upstream of the previewed step. That preview carries only the first record of a
40586
40603
  source export's mock, and of an upstream lookup's mock only the first record reaches the
40587
- lookup's results mapping. A target lookup in the preview runs its live query, invoking the
40604
+ lookup's results mapping, whatever `test.limit` the lookup carries. A target lookup in the
40605
+ preview runs its live query, invoking the
40588
40606
  export (`POST /v1/exports/{_id}/invoke`) reads the source, and real runs ignore the mock.
40589
40607
  This allows you to:
40590
40608
  - Test mappings with representative data
@@ -40634,8 +40652,9 @@ components:
40634
40652
  the filter keeps first, so a preview of a later step has a record to follow.
40635
40653
  - |-
40636
40654
  A page-processor preview hands a lookup's results mapping only the first record of the
40637
- lookup's mockOutput, while a test run hands it every record. Put first the record a later
40638
- step's preview should be built from.
40655
+ lookup's mockOutput — whatever `test.limit` the lookup carries — while a test run hands it
40656
+ every record, or the first `test.limit` of them on a `type: test` lookup. Put first the
40657
+ record a later step's preview should be built from.
40639
40658
  properties:
40640
40659
  page_of_records:
40641
40660
  type: array
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.347",
3
+ "version": "0.2.349",
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": "d1aed1d9",
4
+ "iasCommit": "a20ed7eb",
5
5
  "generatedAt": "2026-11-24"
6
6
  },
7
7
  "roots": {