@celigo/api-specs 0.2.259 → 0.2.261

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
@@ -471,7 +471,7 @@ paths:
471
471
  description: |-
472
472
  Runs an export doc through the flow engine's preview pipeline and returns
473
473
  the sample data it would have emitted, along with stage-by-stage
474
- diagnostics and any errors encountered. **No Job record is created** and
474
+ diagnostics. **No Job record is created** and
475
475
  no flow-level state is updated — this is a stateless preview.
476
476
 
477
477
  Body is a complete export document (the shape you would POST to
@@ -489,12 +489,13 @@ paths:
489
489
  when previewing a standalone export.
490
490
 
491
491
  Use `test.limit` inside the body to cap the number of records
492
- returned. Configuration errors in the export doc surface in the
493
- `errors[]` and `stages[].errors[]` arrays within a 200 response, but
494
- not every failure does: structural validation failures (e.g. missing
495
- `_connectionId`) return 4xx, and so do an output filter that can't
496
- read a record's value and a Google Cloud Storage bucket or object that
497
- doesn't exist (see the 422 response).
492
+ returned. A preview that fails answers 422, not a 200 carrying
493
+ `errors[]`: structural validation failures (e.g. missing
494
+ `_connectionId`), an output `filter` with an unknown operator or one
495
+ that can't read a record's value, a Handlebars template that doesn't
496
+ compile, a hook or script that throws, an error status from the source
497
+ and a Google Cloud Storage bucket or object that doesn't exist all do
498
+ (see the 422 response).
498
499
  requestBody:
499
500
  required: true
500
501
  content:
@@ -525,11 +526,8 @@ paths:
525
526
  responses:
526
527
  '200':
527
528
  description: |-
528
- Preview envelope for a preview that ran; a valid body can still answer
529
- 422 for the failures that response lists. Other user errors in
530
- the export config (handlebars template failures, runtime errors)
531
- surface in `errors[]` and `stages[].errors[]`; inspect those before
532
- trusting `stages[].data[]`.
529
+ Preview envelope for a preview that ran, without a top-level `errors`.
530
+ A failing preview answers 422 instead (see that response).
533
531
  content:
534
532
  application/json:
535
533
  schema:
@@ -555,26 +553,159 @@ paths:
555
553
  $ref: '#/components/responses/401-unauthorized'
556
554
  '422':
557
555
  description: |-
558
- Structural validation failed — typically `missing_required_field`
559
- for fields the preview pipeline needs before it can execute
560
- (e.g. `_connectionId`). A valid output filter also fails the preview
561
- with 422 when a record holds a value its type conversion can't read,
562
- such as an empty or non-date string under `epochtime`: the message is
563
- "Invalid date. Cannot convert given string or number to date time.",
564
- followed by `; record=` and that record as JSON. A Google Cloud Storage
565
- read of a bucket or object that doesn't exist fails with 422
566
- `gcs_bucket_not_found` or `gcs_object_not_found`.
556
+ The preview failed. Structural validation comes first — typically
557
+ `missing_required_field` for fields the preview pipeline needs before
558
+ it can execute (e.g. `_connectionId`), an error that carries `code`
559
+ and `field` but no `message` — and an output `filter` with an unknown
560
+ operator is refused with `filter_validation_error`. Once the preview
561
+ runs, a Handlebars template that doesn't compile answers
562
+ `handlebars_template_parse_error` (`source: resource`), a hook or
563
+ script that throws answers `script_error` (`source` names the hook,
564
+ `stage` the stage it ran in, and that stage's `errors[]` is populated),
565
+ and an error status from the source comes back as the error's `code`
566
+ (`source: application`), with the `request` and `raw` stages beside
567
+ `errors`. A valid output filter also fails the preview when a record
568
+ holds a value its type conversion can't read, such as an empty or
569
+ non-date string under `epochtime`: the message is "Invalid date.
570
+ Cannot convert given string or number to date time.", followed by
571
+ `; record=` and that record as JSON. A Google Cloud Storage read of a
572
+ bucket or object that doesn't exist fails with `gcs_bucket_not_found`
573
+ or `gcs_object_not_found`.
567
574
  content:
568
575
  application/json:
569
576
  schema:
570
- $ref: '#/components/schemas/Error'
577
+ type: object
578
+ required:
579
+ - errors
580
+ properties:
581
+ errors:
582
+ type: array
583
+ description: |-
584
+ One entry per failure; a structural failure lists each missing field.
585
+ Runtime failures also carry `resolved` and `occurredAt`, a source error its
586
+ `classification`, and a `script_error` its `stage`, `location` and `stack`.
587
+ items:
588
+ type: object
589
+ additionalProperties: true
590
+ required:
591
+ - code
592
+ properties:
593
+ code:
594
+ oneOf:
595
+ - type: string
596
+ - type: integer
597
+ description: |-
598
+ `missing_required_field` from structural validation, otherwise the
599
+ failure's code (`filter_validation_error`, `handlebars_template_parse_error`,
600
+ `script_error`, `gcs_bucket_not_found`, ...); an integer when it mirrors
601
+ the error status the source answered.
602
+ field:
603
+ type: string
604
+ description: |-
605
+ The document field a structural error is about (`_connectionId`), or
606
+ `filter` on `filter_validation_error`.
607
+ message:
608
+ type: string
609
+ description: |-
610
+ What went wrong, in the platform's words; absent on a structural
611
+ `missing_required_field` error, which carries `code` and `field` only.
612
+ source:
613
+ type: string
614
+ description: |-
615
+ Where the failure arose: `resource` for the export's own templates,
616
+ `application` for the source system's answer, the hook or filter name
617
+ (`pre_save_page_hook`, `output_filter`) for a `script_error`; absent on
618
+ structural errors.
619
+ stages:
620
+ type:
621
+ - array
622
+ - 'null'
623
+ description: |-
624
+ Present once the preview has started running: the stages that completed before
625
+ the failure (`request` and `raw` for a source error, through the failing hook or
626
+ filter stage for a `script_error`), shaped as in the 200 response, or `null`
627
+ when the request could not be built because a template doesn't compile.
628
+ items:
629
+ type: object
630
+ additionalProperties: true
571
631
  examples:
572
632
  missingConnection:
633
+ summary: Structural validation — the document has no _connectionId
573
634
  value:
574
635
  errors:
575
636
  - code: missing_required_field
576
- message: The `_connectionId` field is required for this preview.
577
- source: _connectionId
637
+ field: _connectionId
638
+ unknownFilterOperator:
639
+ summary: The output filter uses an operator that doesn't exist
640
+ value:
641
+ errors:
642
+ - field: filter
643
+ code: filter_validation_error
644
+ message: 'Invalid operation: frobnicate.'
645
+ handlebarsParseError:
646
+ summary: The relative URI template doesn't compile (message trimmed)
647
+ value:
648
+ errors:
649
+ - code: handlebars_template_parse_error
650
+ message: 'Failed to generate request url from template: https://api.example.com/users/{{#each}}. Details: Parse error on line 1: …'
651
+ source: resource
652
+ resolved: false
653
+ occurredAt: 1792564791337
654
+ stages: null
655
+ scriptError:
656
+ summary: The preSavePage hook throws (stages trimmed)
657
+ value:
658
+ errors:
659
+ - code: script_error
660
+ message: 'Error: boom from preSavePage'
661
+ source: pre_save_page_hook
662
+ stage: preSavePageHook
663
+ location: throwing-hook:2
664
+ resolved: false
665
+ occurredAt: 1794017910246
666
+ stages:
667
+ - name: request
668
+ data:
669
+ - url: https://api.example.com/users
670
+ method: GET
671
+ errors: null
672
+ - name: raw
673
+ data:
674
+ - url: https://api.example.com/users
675
+ statusCode: 200
676
+ errors: null
677
+ - name: parse
678
+ data:
679
+ - id: 1
680
+ errors: null
681
+ - name: preSavePageHook
682
+ data: null
683
+ errors:
684
+ - code: script_error
685
+ message: 'Error: boom from preSavePage'
686
+ source: pre_save_page_hook
687
+ sourceError:
688
+ summary: The source answers HTTP 500 (trimmed)
689
+ value:
690
+ errors:
691
+ - code: 500
692
+ message: Internal Server Error
693
+ source: application
694
+ classification: intermittent
695
+ resolved: false
696
+ occurredAt: 1792564790554
697
+ stages:
698
+ - name: request
699
+ data:
700
+ - url: https://api.example.com/users
701
+ method: GET
702
+ errors: null
703
+ - name: raw
704
+ data:
705
+ - url: https://api.example.com/users
706
+ statusCode: 500
707
+ body: ''
708
+ errors: null
578
709
  gcsBucketNotFound:
579
710
  summary: Google Cloud Storage bucket that doesn't exist
580
711
  value:
@@ -1106,7 +1237,7 @@ components:
1106
1237
  never exported
1107
1238
 
1108
1239
  3. Error handling and recovery:
1109
- - If an export fails, the next run uses the last successful timestamp
1240
+ - If an export fails, the next run reuses the last checkpoint
1110
1241
  - Records created/modified during a failed run will be included in the next run
1111
1242
  - A run that exports nothing leaves the checkpoint where it was, so after a stretch of
1112
1243
  empty runs the next run that finds records reaches back to the last run that exported
@@ -1128,8 +1259,8 @@ components:
1128
1259
  - http
1129
1260
  x-celigo-ui-override: Required by the export form when the export type is "delta" (delta.dateField is required:true, visibleWhen type=delta). Encoded to mirror the form so builders produce connectable configurations.
1130
1261
  description: |-
1131
- Record timestamp field(s) compared against the last successful run time to identify
1132
- changed records. Accepts a single field or multiple comma-separated fields, processed
1262
+ Record timestamp field(s) compared against the flow's checkpoint, {{lastExportDateTime}},
1263
+ to identify changed records. Accepts a single field or multiple comma-separated fields, processed
1133
1264
  sequentially — useful when different operations update different timestamp fields.
1134
1265
  If the flow's own downstream steps update the exported records, add export criteria
1135
1266
  that exclude already-processed records (or use a creation-time field for process-once
@@ -1145,8 +1276,8 @@ components:
1145
1276
  - |-
1146
1277
  ## FIELD BEHAVIOR
1147
1278
 
1148
- This field determines which record timestamp(s) are compared against the last successful run time
1149
- to identify changed records. Key characteristics:
1279
+ This field determines which record timestamp(s) are compared against the flow's checkpoint
1280
+ (``{{lastExportDateTime}}``) to identify changed records. Key characteristics:
1150
1281
 
1151
1282
  - REQUIRED for most adapter types (except HTTP and REST where this field is not supported)
1152
1283
  - Can reference a single field or multiple comma-separated fields
@@ -16939,18 +17070,24 @@ components:
16939
17070
  `webhook` object when `type` is `webhook`); an HTTP or SQL `delta` export saves without a
16940
17071
  `delta` object because its request carries `{{lastExportDateTime}}`, though
16941
17072
  `delta.startDate` sets its first window. It still needs `type: delta`: on an export
16942
- with no `type` (or `all`, or `test`), `{{lastExportDateTime}}` and `{{currentExportDateTime}}` render
16943
- empty on every run, so a request that carries them bare goes out with blank values each
16944
- time, `dateFormat` on one renders the run's current time (the request asks for changes
16945
- since now), and `dateAdd` on one fails the whole render — on an HTTP export's body or
16946
- relative URI the run records `handlebars_template_parse_error`, "Failed to generate request
16947
- body (or url) from template … Details: Invalid time value" — before anything is sent
16948
- (live-verified 2026-10-22 and 2026-11-04). When incremental reads are intended, restoring
17073
+ with no `type` (or `all`), `{{lastExportDateTime}}` and `{{currentExportDateTime}}` are
17074
+ not defined, and where that leaves an HTTP export's run depends on which part of the
17075
+ request carries them. Bare in `http.body` they render empty, so the body goes out with
17076
+ blank values each time; bare in `http.relativeURI` or a header, the run fails before
17077
+ anything is sent with `handlebars_template_parse_error`, "Failed to generate request url
17078
+ (or headers) from template … Details: "lastExportDateTime" not defined in the model".
17079
+ Under `type: test` they are defined but empty, so the URI, a header or the body goes out
17080
+ with blank values instead. `dateFormat` on one renders the run's current time (the
17081
+ request asks for changes since now), and `dateAdd` on one fails the whole render in the
17082
+ body or the relative URI alike — `handlebars_template_parse_error`, "Failed to generate
17083
+ request body (or url) from template … Details: Invalid time value" (live-verified
17084
+ 2026-10-22, 2026-11-04 and 2026-11-06). When incremental reads are intended, restoring
16949
17085
  `type: delta` (with `delta.startDate` for the first window) makes the variables resolve;
16950
17086
  when reading everything is intended, change the template — drop the variable or guard it
16951
17087
  with `{{#if lastExportDateTime}}…{{else}}fallback{{/if}}`, whose else branch (a literal, in
16952
- practice a fixed start date) renders on an export with no `type`, `type: all` or
16953
- `type: test`. Use `blob` only to transfer raw files without parsing their contents.
17088
+ practice a fixed start date) renders, in the relative URI as well as the body, on an
17089
+ export with no `type`, `type: all` or `type: test`. Use `blob` only to transfer raw files
17090
+ without parsing their contents.
16954
17091
  x-celigo-ai-guidance:
16955
17092
  - |-
16956
17093
  ## HOW TO PICK THE TYPE VALUE
@@ -18332,9 +18469,8 @@ components:
18332
18469
  errors:
18333
18470
  type: array
18334
18471
  description: |-
18335
- Top-level error aggregate — typically mirrors the first non-null
18336
- `stages[].errors[]` entry. Often omitted entirely when the preview
18337
- ran clean; callers should treat `undefined` and `[]` as equivalent.
18472
+ Absent from a 200 response. A preview that fails answers 422 instead,
18473
+ with its errors in that body.
18338
18474
  items:
18339
18475
  type: object
18340
18476
  additionalProperties: true
package/dist/flow.yml CHANGED
@@ -936,6 +936,152 @@ paths:
936
936
  message: Another instance for this flow is already queued or running. Please try again later.
937
937
  '422':
938
938
  $ref: '#/components/responses/422-unprocessable-entity'
939
+ /v1/flows/{_id}/replay:
940
+ post:
941
+ x-internal: false
942
+ operationId: replayFlow
943
+ tags:
944
+ - Flows
945
+ summary: Replay a flow's topic messages
946
+ description: |-
947
+ Queues a run that re-delivers already-published Event Streams messages through the flow. Only
948
+ page generators whose export `adaptorType` is `TopicExport` run; other page generators are
949
+ skipped. The run is **asynchronous** and returns the same queued-run shape as
950
+ `POST /v1/flows/{_id}/run`; poll `GET /v1/jobs/{_id}` with the returned `_jobId`. The job
951
+ carries `runType: replay`.
952
+
953
+ A replay leaves the flow's delta checkpoint (`GET /v1/flows/{_id}/lastExportDateTime`) unchanged.
954
+ The flow must be enabled. A flow runs one instance at a time, so a replay requested while
955
+ another run of the flow is queued or running is refused with `409 job_already_queued`, the same
956
+ as a regular run.
957
+ parameters:
958
+ - name: _id
959
+ in: path
960
+ required: true
961
+ description: Flow to replay.
962
+ schema:
963
+ type: string
964
+ format: objectId
965
+ x-celigo-refModel: flows
966
+ requestBody:
967
+ required: false
968
+ content:
969
+ application/json:
970
+ schema:
971
+ $ref: '#/components/schemas/FlowReplayRequest'
972
+ examples:
973
+ default:
974
+ summary: Replay every TopicExport up to what each has delivered
975
+ value: {}
976
+ offset_window:
977
+ summary: Replay offsets 0 through 500 of one export
978
+ value:
979
+ _exportIds:
980
+ - 69a9aa5d3b213b3ac975e8d2
981
+ replay:
982
+ startOffset: 0
983
+ endOffset: 500
984
+ date_window:
985
+ summary: Replay one day of messages
986
+ value:
987
+ replay:
988
+ startDate: '2026-10-01T00:00:00.000Z'
989
+ endDate: '2026-10-02T00:00:00.000Z'
990
+ responses:
991
+ '200':
992
+ description: Replay accepted and queued.
993
+ content:
994
+ application/json:
995
+ schema:
996
+ $ref: '#/components/schemas/FlowRunResponse'
997
+ examples:
998
+ queued:
999
+ summary: Replay queued — poll the returned _jobId for status
1000
+ value:
1001
+ _jobId: 6aee88d39d1fade9eadac4de
1002
+ _exportId: 6aee882fe3da721fd7cb63e8
1003
+ queueName: topic_out_6aee882fe3da721fd7cb63e8
1004
+ '400':
1005
+ description: |-
1006
+ The path `_id` is not a well-formed ObjectId (`invalid_ref`), or a `replay` bound is invalid
1007
+ (`invalid_field`): `replay` is not an object, a date does not parse, an offset is not a
1008
+ non-negative JSON integer, or the end bound is before the start bound. `message` names the
1009
+ field. Bounds are checked before the flow is looked up.
1010
+ content:
1011
+ application/json:
1012
+ schema:
1013
+ $ref: '#/components/schemas/Error'
1014
+ examples:
1015
+ invalid_offset:
1016
+ summary: endOffset lower than startOffset
1017
+ value:
1018
+ errors:
1019
+ - code: invalid_field
1020
+ message: 'The value provided for the field: ''replay.endOffset'' is invalid.'
1021
+ malformed_id:
1022
+ summary: Path _id is not an ObjectId
1023
+ value:
1024
+ errors:
1025
+ - code: invalid_ref
1026
+ message: Please provide a valid _id.
1027
+ '401':
1028
+ $ref: '#/components/responses/401-unauthorized'
1029
+ '404':
1030
+ description: |-
1031
+ No flow with this id in the account. A flow that has no page generator or no page processor
1032
+ is also answered this way, not with a 422.
1033
+ content:
1034
+ application/json:
1035
+ schema:
1036
+ $ref: '#/components/schemas/Error'
1037
+ examples:
1038
+ not_found:
1039
+ value:
1040
+ errors:
1041
+ - code: flow_not_found
1042
+ message: Flow not found
1043
+ '409':
1044
+ description: |-
1045
+ Another instance of this flow is already queued or running. Wait for it to finish (poll
1046
+ `GET /v1/flows/{_id}/jobs/latest`) and request the replay again.
1047
+ content:
1048
+ application/json:
1049
+ schema:
1050
+ $ref: '#/components/schemas/Error'
1051
+ examples:
1052
+ default:
1053
+ value:
1054
+ errors:
1055
+ - code: job_already_queued
1056
+ message: Another instance for this flow is already queued or running. Please try again later.
1057
+ '422':
1058
+ description: |-
1059
+ The flow cannot be replayed. `invalid_flow`: the flow is disabled, or it has no TopicExport
1060
+ page generator. `not_allowed`: an id in `_exportIds` is not a page generator on the flow, or
1061
+ is a page generator that is not a TopicExport.
1062
+ content:
1063
+ application/json:
1064
+ schema:
1065
+ $ref: '#/components/schemas/Error'
1066
+ examples:
1067
+ no_topic_export:
1068
+ summary: Flow has no TopicExport page generator
1069
+ value:
1070
+ errors:
1071
+ - code: invalid_flow
1072
+ message: No replay export found in flow Orders sync for adaptor type(s) TopicExport.
1073
+ flow_disabled:
1074
+ summary: Flow is disabled
1075
+ value:
1076
+ errors:
1077
+ - code: invalid_flow
1078
+ message: Flow disabled. Please enable your flow and try again.
1079
+ unsupported_export:
1080
+ summary: A selected export is not a TopicExport on this flow
1081
+ value:
1082
+ errors:
1083
+ - code: not_allowed
1084
+ message: The selective export(s) 69a9aa5c54e3d9bd11b86d82 cannot be found in the flow Orders sync.
939
1085
  /v1/flows/{_flowId}/runs/stats:
940
1086
  post:
941
1087
  x-internal: false
@@ -4257,8 +4403,8 @@ paths:
4257
4403
  '200':
4258
4404
  description: |-
4259
4405
  Preview envelope. Mirrors `ExportPreviewResponse` — `stages[]` carries
4260
- the stage-by-stage output + errors, and the top-level `errors[]`
4261
- aggregates any configuration failures surfaced during the run.
4406
+ the stage-by-stage output. A failing preview answers 422 instead (see
4407
+ that response).
4262
4408
  content:
4263
4409
  application/json:
4264
4410
  schema:
@@ -4304,15 +4450,23 @@ paths:
4304
4450
  $ref: '#/components/responses/401-unauthorized'
4305
4451
  '422':
4306
4452
  description: |-
4307
- Two distinct meanings, told apart by `errors[].source`:
4308
- `no_data_available` with `source: integrator` — no record reached
4309
- the target in a composing mode (the target is a NetSuite,
4310
- Salesforce, RDBMS or FTP import, which these modes cannot drive, or
4311
- the chain's gates dropped every record); `source: application` with
4312
- `stage: apiCall` after `sendAndPreview` — the request DID execute
4313
- and the target import's `failPath` rules judged the destination's
4314
- answer a failure; `message` carries the destination's response body
4315
- and `code` its HTTP status.
4453
+ The preview failed. Read `errors[].code` to tell the cases apart —
4454
+ `source: application` alone doesn't mean a request was sent:
4455
+ - `no_data_available` with `source: integrator` — no record reached
4456
+ the target in a composing mode (the target is a NetSuite,
4457
+ Salesforce, RDBMS or FTP import, which these modes cannot drive,
4458
+ or the chain's gates dropped every record).
4459
+ - An HTTP status as `code` with `source: application` and no `stage`
4460
+ — the source export got that error status; the `request` and `raw`
4461
+ stages come back beside `errors`.
4462
+ - `handlebars_template_parse_error` — a target template doesn't
4463
+ compile. It carries `source: application` and `stage: apiCall`
4464
+ although nothing was sent.
4465
+ - An HTTP status as `code` with `source: application` and
4466
+ `stage: apiCall` after `sendAndPreview` — the request DID execute
4467
+ and the target import's `failPath` rules judged the destination's
4468
+ answer a failure; `message` carries the destination's response
4469
+ body.
4316
4470
  content:
4317
4471
  application/json:
4318
4472
  schema:
@@ -4325,6 +4479,27 @@ paths:
4325
4479
  - code: no_data_available
4326
4480
  source: integrator
4327
4481
  message: You must add at least one mock input record. If you still get this error after adding an input record, verify that your current mapping configuration isn't ignoring all record output. Mock input records must pass through the input filter and hooks to qualify for Preview and Send.
4482
+ sourceExportError:
4483
+ summary: The source export got HTTP 500
4484
+ description: |-
4485
+ The live error also carries `classification`, `resolved` and
4486
+ `occurredAt` beside the fields shown (no `stage`), and the body
4487
+ carries the `request` and `raw` stages beside `errors`.
4488
+ value:
4489
+ errors:
4490
+ - code: 500
4491
+ source: application
4492
+ message: Internal Server Error
4493
+ targetTemplateParseError:
4494
+ summary: The target import's relative URI template doesn't compile (message trimmed)
4495
+ description: |-
4496
+ The live error also carries `stage: apiCall`, `classification: parse`,
4497
+ `resolved` and `occurredAt` beside the fields shown.
4498
+ value:
4499
+ errors:
4500
+ - code: handlebars_template_parse_error
4501
+ source: application
4502
+ message: 'Failed to generate request url from template: https://api.example.com/orders/{{#each}}. Details: Parse error on line 1: …'
4328
4503
  failPathTripped:
4329
4504
  summary: sendAndPreview executed; the target's failPath rules judged the 200 a failure
4330
4505
  description: |-
@@ -5347,13 +5522,13 @@ components:
5347
5522
  properties:
5348
5523
  dateField:
5349
5524
  type: string
5350
- description: Overrides the delta date field on the abstract flow's export — the record timestamp field(s) compared against the last successful run time to identify changed records. Accepts a single field or multiple comma-separated fields.
5525
+ description: Overrides the delta date field on the abstract flow's export — the record timestamp field(s) compared against the flow's checkpoint, `{{lastExportDateTime}}`, to identify changed records. Accepts a single field or multiple comma-separated fields.
5351
5526
  dateFormat:
5352
5527
  type: string
5353
5528
  description: Overrides the moment.js format string applied to the delta cutoff timestamp; ISO 8601 is used when unset.
5354
5529
  startDate:
5355
5530
  type: string
5356
- description: Overrides the fixed start timestamp used for the delta window on the abstract flow's export, in place of the last successful run time.
5531
+ description: Overrides the abstract flow's export `delta.startDate` -- the lower bound of the first run, and of every run until one exports records; later runs start from the flow's checkpoint.
5357
5532
  lagOffset:
5358
5533
  type: integer
5359
5534
  description: Overrides the abstract flow's export `delta.lagOffset` -- milliseconds taken off both ends of a delta window once the flow has a checkpoint, so records reach a run that much later. While the value stays the same, windows don't overlap; raising it re-reads the added span once, and lowering it skips the removed span. Never negative (once the flow has a checkpoint, that moves the window into the future and skips records).
@@ -6726,6 +6901,60 @@ components:
6726
6901
  error:
6727
6902
  type: string
6728
6903
  description: Human-readable reason the run was not started.
6904
+ FlowReplayRequest:
6905
+ type: object
6906
+ description: |-
6907
+ Optional scope for a replay run. Omit the body (or send `{}`) to replay every TopicExport page
6908
+ generator on the flow, up to the last message each one has already delivered. Other run
6909
+ fields such as `export` are dropped, so a replay cannot set a delta window.
6910
+ properties:
6911
+ _exportIds:
6912
+ type: array
6913
+ description: |-
6914
+ Page generators to replay. Every listed export must be a TopicExport on this flow. Omit to
6915
+ replay all of the flow's TopicExport page generators. A value that is not an array is
6916
+ ignored.
6917
+ items:
6918
+ type: string
6919
+ format: objectId
6920
+ x-celigo-refModel: exports
6921
+ replay:
6922
+ type: object
6923
+ description: |-
6924
+ Range of topic messages to replay. Bounds are inclusive. When both an offset and a date
6925
+ bound are set on the same side, the offset is used. With no `endOffset` or `endDate`, the
6926
+ replay stops at the last message the export has already delivered, and an export that has
6927
+ never consumed the topic replays nothing. Replaying does not move the export's read
6928
+ position (`GET /v1/topics/{_id}/exports/{_exportId}/offsets`).
6929
+ properties:
6930
+ startDate:
6931
+ type: string
6932
+ format: date-time
6933
+ description: Earliest message timestamp to replay. Ignored when `startOffset` is set.
6934
+ examples:
6935
+ - '2026-10-01T00:00:00.000Z'
6936
+ endDate:
6937
+ type: string
6938
+ format: date-time
6939
+ description: |-
6940
+ Latest message timestamp to replay. Must not be earlier than `startDate`. Ignored when
6941
+ `endOffset` is set.
6942
+ examples:
6943
+ - '2026-10-02T00:00:00.000Z'
6944
+ startOffset:
6945
+ type: integer
6946
+ minimum: 0
6947
+ description: First topic offset to replay. Send a JSON integer; a numeric string is rejected.
6948
+ examples:
6949
+ - 0
6950
+ endOffset:
6951
+ type: integer
6952
+ minimum: 0
6953
+ description: |-
6954
+ Last topic offset to replay. Must not be lower than `startOffset`. Send a JSON integer; a
6955
+ numeric string is rejected.
6956
+ examples:
6957
+ - 500
6729
6958
  FlowRunsStatsRequest:
6730
6959
  type: object
6731
6960
  required:
@@ -8966,9 +9195,8 @@ components:
8966
9195
  errors:
8967
9196
  type: array
8968
9197
  description: |-
8969
- Top-level error aggregate — typically mirrors the first non-null
8970
- `stages[].errors[]` entry. Often omitted entirely when the preview
8971
- ran clean; callers should treat `undefined` and `[]` as equivalent.
9198
+ Absent from a 200 response. A preview that fails answers 422 instead,
9199
+ with its errors in that body.
8972
9200
  items:
8973
9201
  type: object
8974
9202
  additionalProperties: true
package/dist/import.yml CHANGED
@@ -18581,6 +18581,44 @@ components:
18581
18581
  topic:
18582
18582
  required:
18583
18583
  - _topicId
18584
+ else:
18585
+ if:
18586
+ not:
18587
+ required:
18588
+ - _connectionId
18589
+ then:
18590
+ x-celigo-ui-override: The AI agent form (forms/definitions/ai/aiAgent.js preSave, with the Add tools picker) offers and keeps Code Execution only on a BYOK agent whose model metadata declares supportsCodeExecution (a BYOK agent's existing tool also survives while that metadata is unavailable), and strips it from a Celigo AI agent on save. Encoded to mirror the form so builders produce agents that can run.
18591
+ properties:
18592
+ aiAgent:
18593
+ properties:
18594
+ openai:
18595
+ properties:
18596
+ tools:
18597
+ items:
18598
+ properties:
18599
+ type:
18600
+ not:
18601
+ const: code_execution
18602
+ litellm:
18603
+ properties:
18604
+ _overrides:
18605
+ properties:
18606
+ gemini:
18607
+ properties:
18608
+ tools:
18609
+ items:
18610
+ properties:
18611
+ type:
18612
+ not:
18613
+ const: codeExecution
18614
+ anthropic:
18615
+ properties:
18616
+ tools:
18617
+ items:
18618
+ properties:
18619
+ type:
18620
+ not:
18621
+ const: codeExecution
18584
18622
  else:
18585
18623
  required:
18586
18624
  - _connectionId