@celigo/api-specs 0.2.309 → 0.2.311

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/flow.yml CHANGED
@@ -929,9 +929,19 @@ paths:
929
929
  - Flows
930
930
  summary: Trigger a flow run
931
931
  description: |-
932
- Queues an on-demand run of the flow and returns the parent job id. The run is **asynchronous**: the
933
- response returns as soon as the job is queued; use `GET /v1/jobs/{_id}` (with the returned `_jobId`)
934
- or `GET /v1/flows/{_id}/jobs/latest` to poll for terminal status.
932
+ Queues an on-demand run of the flow. The run is **asynchronous**.
933
+
934
+ On a serial flow (`runPageGeneratorsInParallel` absent or `false`) the response returns as soon as
935
+ the first page generator is queued. The body is one object, the
936
+ first page generator's parent job, and it carries `message.flowExecutionGroupId`. On `/run` that
937
+ message names the page generators still to queue on `_runNextExportIds`. That run is
938
+ finished only when every parent job with that `flowExecutionGroupId` is terminal. List
939
+ `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match
940
+ `flowExecutionGroupId`. Send `_integrationId` when the flow has one: a caller limited to specific
941
+ integrations receives `400 query_param_required` without it. Keep listing until each page generator
942
+ this run queued has a job. Sibling jobs are created after the response, and
943
+ `GET /v1/flows/{_id}/jobs/latest` can still show a generator's previous run until the new job
944
+ exists. A flow with one page generator has only the returned `_jobId`; poll `GET /v1/jobs/{_id}`.
935
945
 
936
946
  The request body is optional. When omitted, the flow runs with its configured schedule behavior —
937
947
  for delta flows this means using the current `lastExportDateTime` as the lower bound. Pass
@@ -961,6 +971,11 @@ paths:
961
971
  instance is queued or running is refused with `409 job_already_queued` ("Another instance
962
972
  for this flow is already queued or running"), and a run-next-flow trigger that arrives in
963
973
  that state is dropped rather than queued.
974
+
975
+ **Response shape:** See the opening for how a serial run is finished. A parallel flow
976
+ (`runPageGeneratorsInParallel: true`) returns an array with one record per page generator queued
977
+ in the request. Each record has its own `_jobId` and `message.flowExecutionGroupId`, and every
978
+ record in that array shares the id. Those parent jobs are in the response.
964
979
  parameters:
965
980
  - name: _id
966
981
  in: path
@@ -994,20 +1009,38 @@ paths:
994
1009
  - 69a9aa5c54e3d9bd11b86d82
995
1010
  responses:
996
1011
  '200':
997
- description: Flow run accepted and queued.
1012
+ description: Flow run accepted and queued. See the operation description for the serial-vs-parallel response shape and `flowExecutionGroupId` sibling-job discovery.
998
1013
  content:
999
1014
  application/json:
1000
1015
  schema:
1001
1016
  $ref: '#/components/schemas/FlowRunResponse'
1002
1017
  examples:
1003
1018
  queued:
1004
- summary: Single run queued — poll the returned _jobId for status
1019
+ summary: Serial run queued — match message.flowExecutionGroupId on the flow's parent jobs
1020
+ value:
1021
+ _jobId: 6afd5e2cbc67aa629b7a68d9
1022
+ _exportId: 6afd5c24728ca71e65afd1e8
1023
+ endDate: '2026-11-18T08:13:32.091Z'
1024
+ queueName: 6815153958a3f3c86d0f9c0e
1025
+ message:
1026
+ flowExecutionGroupId: 93d993b378e74f13be4188f040ef549f
1027
+ _runNextExportIds:
1028
+ - 6afd5c24728ca71e65afd1e7
1029
+ parallel:
1030
+ summary: Parallel run queued — one record per page generator, shared flowExecutionGroupId
1005
1031
  value:
1006
- _jobId: 69f4144a3a4b314bd6dc600d
1007
- _exportId: 652583cf9085040ecbf54303
1008
- endDate: '2026-06-09T18:30:00.000Z'
1009
- queueName: flow-runner
1010
- message: '{"_jobId":"69f4144a3a4b314bd6dc600d","_exportId":"652583cf9085040ecbf54303"}'
1032
+ - _jobId: 6afd5de7f37416e27250f9e5
1033
+ _exportId: 6afd5c24728ca71e65afd1e8
1034
+ endDate: '2026-11-18T08:12:23.499Z'
1035
+ queueName: 6815153958a3f3c86d0f9c0e
1036
+ message:
1037
+ flowExecutionGroupId: 3497c897122344c8b2ba34d0f4461b0d
1038
+ - _jobId: 6afd5de7f37416e27250f9f2
1039
+ _exportId: 6afd5c24728ca71e65afd1e7
1040
+ endDate: '2026-11-18T08:12:23.499Z'
1041
+ queueName: 6815153958a3f3c86d0f9c0e
1042
+ message:
1043
+ flowExecutionGroupId: 3497c897122344c8b2ba34d0f4461b0d
1011
1044
  '400':
1012
1045
  $ref: '#/components/responses/400-bad-request'
1013
1046
  '401':
@@ -1055,9 +1088,16 @@ paths:
1055
1088
  description: |-
1056
1089
  Queues a run that re-delivers already-published Event Streams messages through the flow. Only
1057
1090
  page generators whose export `adaptorType` is `TopicExport` run; other page generators are
1058
- skipped. The run is **asynchronous** and returns the same queued-run shape as
1059
- `POST /v1/flows/{_id}/run`; poll `GET /v1/jobs/{_id}` with the returned `_jobId`. The job
1060
- carries `runType: replay`.
1091
+ skipped. The run is **asynchronous**. A serial replay returns the same single-object shape as a
1092
+ serial `POST /v1/flows/{_id}/run`. The job carries `runType: replay`.
1093
+
1094
+ On a serial flow the body is one object, the first TopicExport page generator's parent job, with
1095
+ `message.flowExecutionGroupId`. The replay is finished only when every parent job with that
1096
+ `flowExecutionGroupId` is terminal. List
1097
+ `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match
1098
+ `flowExecutionGroupId`. Send `_integrationId` when the flow has one. Keep listing until each
1099
+ TopicExport page generator this replay queued has a job. Polling only the returned `_jobId`
1100
+ misses the others.
1061
1101
 
1062
1102
  A replay leaves the flow's delta checkpoint (`GET /v1/flows/{_id}/lastExportDateTime`) unchanged.
1063
1103
  The flow must be enabled. A flow runs one instance at a time, so a replay requested while
@@ -1098,18 +1138,22 @@ paths:
1098
1138
  endDate: '2026-10-02T00:00:00.000Z'
1099
1139
  responses:
1100
1140
  '200':
1101
- description: Replay accepted and queued.
1141
+ description: Replay accepted and queued. See the operation description for the serial-vs-parallel response shape and `flowExecutionGroupId` sibling-job discovery.
1102
1142
  content:
1103
1143
  application/json:
1104
1144
  schema:
1105
1145
  $ref: '#/components/schemas/FlowRunResponse'
1106
1146
  examples:
1107
1147
  queued:
1108
- summary: Replay queued — poll the returned _jobId for status
1148
+ summary: Serial replay queued — match message.flowExecutionGroupId on the flow's parent jobs
1109
1149
  value:
1110
1150
  _jobId: 6aee88d39d1fade9eadac4de
1111
1151
  _exportId: 6aee882fe3da721fd7cb63e8
1112
1152
  queueName: topic_out_6aee882fe3da721fd7cb63e8
1153
+ message:
1154
+ _jobId: 6aee88d39d1fade9eadac4de
1155
+ _exportId: 6aee882fe3da721fd7cb63e8
1156
+ flowExecutionGroupId: 3f2b9c1d8e7a4b6c9d0e1f2a3b4c5d6e
1113
1157
  '400':
1114
1158
  description: |-
1115
1159
  The path `_id` is not a well-formed ObjectId (`invalid_ref`), or a `replay` bound is invalid
@@ -7409,10 +7453,10 @@ components:
7409
7453
  x-celigo-refModel: exports
7410
7454
  FlowRunResponse:
7411
7455
  description: |-
7412
- Response from `POST /v1/flows/{_id}/run`. Shape varies by run type:
7456
+ Response from `POST /v1/flows/{_id}/run` and `POST /v1/flows/{_id}/replay`. Shape varies by flow concurrency mode:
7413
7457
 
7414
- - **Single queued run** — an object with the parent job id (`_jobId`) plus queue metadata.
7415
- - **On-demand / multi-export run** — an array of per-export run records.
7458
+ - **Serial** (`runPageGeneratorsInParallel` absent or `false`) — one object with the first queued page generator's `_jobId` and `message.flowExecutionGroupId`. On `/run` that message names page generators still to queue on `_runNextExportIds`. On `/replay` that generator is the first TopicExport; other page generators are skipped. Further parent jobs for this run share `flowExecutionGroupId` and are created after the response. The run is finished only when every parent job with that id is terminal. List `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` and match `flowExecutionGroupId`. Send `_integrationId` when the flow has one; without it, a caller limited to specific integrations receives `400 query_param_required`. Keep listing until each page generator this run queued has a job. On `/replay` those are the TopicExport generators the replay queued.
7459
+ - **Parallel** (`runPageGeneratorsInParallel: true`) — on `/run`, an array of per-export records, one entry per page generator queued in the request. Each record has its own `_jobId` and the same `message.flowExecutionGroupId`, and those parent jobs are in the response.
7416
7460
  - **Rejected run** — an object with an `error` field. (Note: a run on a *disabled* flow is
7417
7461
  rejected with HTTP 422 `invalid_flow`, not this shape.)
7418
7462
 
@@ -7424,8 +7468,9 @@ components:
7424
7468
  required:
7425
7469
  - _jobId
7426
7470
  description: |-
7427
- Single-job run result. Observed keys: `_jobId` (the parent job to poll), `_exportId`,
7428
- `endDate`, `queueName`, and `message` (the internal queue payload — treat as opaque).
7471
+ Serial single-job run result. Observed keys include `_jobId` (the parent job to poll), `_exportId`,
7472
+ `endDate`, `queueName`, and `message`. Use `message.flowExecutionGroupId` to correlate sibling
7473
+ parent jobs from the same run.
7429
7474
  properties:
7430
7475
  _jobId:
7431
7476
  type: string
@@ -7434,9 +7479,16 @@ components:
7434
7479
  description: Parent job id for the queued run; poll `GET /v1/jobs/{_id}` for status.
7435
7480
  examples:
7436
7481
  - 66a1f2c3b4d5e6f7a8b9c0d1
7482
+ message:
7483
+ type: object
7484
+ additionalProperties: true
7485
+ properties:
7486
+ flowExecutionGroupId:
7487
+ type: string
7488
+ description: Correlation id shared by all parent jobs queued for this run. Match this value on jobs returned by `GET /v1/jobs?_flowId={_id}&_integrationId={_integrationId}&type=flow` to find sibling parent jobs. Send `_integrationId` when the flow has one.
7437
7489
  - title: per-export runs
7438
7490
  type: array
7439
- description: Per-export run results for a multi-generator flow.
7491
+ description: Per-export results of `POST /v1/flows/{_id}/run` when `runPageGeneratorsInParallel` is `true`. Each element carries its own `_jobId` and `message.flowExecutionGroupId`. Elements from one run share that id.
7440
7492
  items:
7441
7493
  type: object
7442
7494
  additionalProperties: true
@@ -866,12 +866,23 @@ paths:
866
866
 
867
867
  Unlike the parser endpoint, the generator places file definition
868
868
  fields directly in `rules` (no `fileDefinition` wrapper). Each
869
- element in the definition must include a `value` property containing
870
- the literal text to output for that field.
869
+ element in the definition must include a `value`: a Handlebars
870
+ template that produces the text for that field. Literal text is
871
+ output as written. A reference is replaced with a field of the
872
+ context its rule is output with, or with nothing when that context
873
+ has no such field: a rule that repeats is output once for each
874
+ object in `data` and reads that object (`{{firstName}}`), while a
875
+ root rule with no `maxOccurrence` is output once and reads the
876
+ whole array, so it reaches a record by index (`{{0.firstName}}`).
871
877
 
872
- The `data` field must be an array of objects. Each object in the
873
- array represents one document to generate. The response has
874
- `mediaType: "text"` and does not include `dataRecordTraceKeys` or
878
+ An X12 definition with `skipEDIValidation: false` fails the request
879
+ with `mandatory_element_absent` when the template of a `required`
880
+ element comes out empty; with `skipEDIValidation: true` the element
881
+ is output empty.
882
+
883
+ The `data` array carries the records those references read. The
884
+ response has `mediaType: "text"` with the generated content as one
885
+ string, and does not include `dataRecordTraceKeys` or
875
886
  `traceKeysDuplicate`.
876
887
 
877
888
  **Required file definition fields** — `name`, `version` (string
@@ -894,10 +905,13 @@ paths:
894
905
  data:
895
906
  type: array
896
907
  description: |-
897
- Array of record objects. Each object represents one
898
- document to generate. The generator uses element `value`
899
- properties from the rules, not field values from these
900
- objects.
908
+ Records read by the Handlebars references in element
909
+ `value`s. A rule that repeats outputs its rows once for
910
+ each object in the array, with that object as the context
911
+ for its elements and child rules. A root rule with no
912
+ `maxOccurrence` outputs one row with the whole array as
913
+ its context, so it reads a record by index
914
+ (`{{0.firstName}}`).
901
915
  items:
902
916
  type: object
903
917
  additionalProperties: true
@@ -993,7 +1007,8 @@ paths:
993
1007
  description: |-
994
1008
  Array of segment definitions. Each segment has a `name`
995
1009
  and `elements` array. Each element must have `name` and
996
- `value` (the literal text to output).
1010
+ `value` (a Handlebars template that produces the field's
1011
+ text).
997
1012
  items:
998
1013
  type: object
999
1014
  additionalProperties: true
@@ -1022,6 +1037,8 @@ paths:
1022
1037
  rules:
1023
1038
  - name: HDR
1024
1039
  elements:
1040
+ - name: HDR
1041
+ value: HDR
1025
1042
  - name: firstName
1026
1043
  value: John
1027
1044
  - name: lastName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.309",
3
+ "version": "0.2.311",
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,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "0d52c2e2",
5
- "generatedAt": "2026-11-17"
4
+ "iasCommit": "ea228ce6",
5
+ "generatedAt": "2026-11-18"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 130,