@celigo/api-specs 0.2.341 → 0.2.343
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 +4 -2
- package/dist/flow.yml +86 -15
- package/dist/import.yml +21 -8
- package/dist/job.yml +5 -0
- package/dist/sync.yml +43 -7
- package/dist/tool.yml +21 -9
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/export.yml
CHANGED
|
@@ -3682,12 +3682,14 @@ components:
|
|
|
3682
3682
|
default: latest
|
|
3683
3683
|
x-enumDescriptions:
|
|
3684
3684
|
latest: Deliver only messages published after the listener subscribes
|
|
3685
|
-
earliest:
|
|
3685
|
+
earliest: Deliver every retained message on the topic first, then new ones
|
|
3686
3686
|
description: |-
|
|
3687
3687
|
Where the listener starts reading when it first subscribes to `_topicId`. Use `earliest`
|
|
3688
3688
|
to backfill retained history, `latest` (the default) to process only new messages. Read
|
|
3689
3689
|
on create and whenever `_topicId` changes; on other updates the stored value is kept even
|
|
3690
|
-
if a different value is sent.
|
|
3690
|
+
if a different value is sent. A listener that started at `latest` can still be sent the
|
|
3691
|
+
retained messages published before it subscribed, with a replay
|
|
3692
|
+
(`POST /v1/flows/{_id}/replay`).
|
|
3691
3693
|
examples:
|
|
3692
3694
|
- latest
|
|
3693
3695
|
- earliest
|
package/dist/flow.yml
CHANGED
|
@@ -962,6 +962,11 @@ paths:
|
|
|
962
962
|
- A Data loader flow (its source is an export with `type: simple`) is not started by a run
|
|
963
963
|
request with an empty body: that request is refused with `422 invalid_flow`, whether the
|
|
964
964
|
flow is disabled or not.
|
|
965
|
+
- A flow whose only page generator is an Event Streams listener (a `TopicExport`) has nothing
|
|
966
|
+
a run request can start: it is refused with `422 invalid_flow` ("Invalid flow - no batch
|
|
967
|
+
export found in the flow <flow name>"), and with `422 realtime_export_cannot_be_queued`
|
|
968
|
+
when `_exportIds` names the listener. The listener runs when a message is published;
|
|
969
|
+
`POST /v1/flows/{_id}/replay` re-delivers messages already published.
|
|
965
970
|
|
|
966
971
|
|
|
967
972
|
To trace a run end-to-end, arm debug logging before calling this, then use the returned
|
|
@@ -975,7 +980,9 @@ paths:
|
|
|
975
980
|
A flow runs one instance at a time: a run requested while another
|
|
976
981
|
instance is queued or running is refused with `409 job_already_queued` ("Another instance
|
|
977
982
|
for this flow is already queued or running"), and a run-next-flow trigger that arrives in
|
|
978
|
-
that state is dropped rather than queued.
|
|
983
|
+
that state is dropped rather than queued. A replay of the flow's Event Streams listeners
|
|
984
|
+
(`POST /v1/flows/{_id}/replay`) is not such an instance: a run is accepted while a replay is
|
|
985
|
+
queued, and a replay while a run is queued.
|
|
979
986
|
|
|
980
987
|
**Response shape:** See the opening for how a serial run is finished. A parallel flow
|
|
981
988
|
(`runPageGeneratorsInParallel: true`) returns an array with one record per page generator queued
|
|
@@ -1105,9 +1112,11 @@ paths:
|
|
|
1105
1112
|
misses the others.
|
|
1106
1113
|
|
|
1107
1114
|
A replay leaves the flow's delta checkpoint (`GET /v1/flows/{_id}/lastExportDateTime`) unchanged.
|
|
1108
|
-
The flow must be enabled. A
|
|
1109
|
-
|
|
1110
|
-
|
|
1115
|
+
The flow must be enabled. A replay requested while an earlier replay of the same export is
|
|
1116
|
+
still queued or running is refused with `409 job_already_queued`. Other work on the flow does
|
|
1117
|
+
not refuse it: a replay is accepted while the export is delivering newly published messages,
|
|
1118
|
+
and while a regular run (`POST /v1/flows/{_id}/run`) of another page generator is queued. A
|
|
1119
|
+
regular run is likewise accepted while a replay is queued.
|
|
1111
1120
|
parameters:
|
|
1112
1121
|
- name: _id
|
|
1113
1122
|
in: path
|
|
@@ -1125,7 +1134,7 @@ paths:
|
|
|
1125
1134
|
$ref: '#/components/schemas/FlowReplayRequest'
|
|
1126
1135
|
examples:
|
|
1127
1136
|
default:
|
|
1128
|
-
summary: Replay every TopicExport up to
|
|
1137
|
+
summary: Replay every TopicExport, earliest retained message up to its read position
|
|
1129
1138
|
value: {}
|
|
1130
1139
|
offset_window:
|
|
1131
1140
|
summary: Replay offsets 0 through 500 of one export
|
|
@@ -1200,8 +1209,9 @@ paths:
|
|
|
1200
1209
|
message: Flow not found
|
|
1201
1210
|
'409':
|
|
1202
1211
|
description: |-
|
|
1203
|
-
|
|
1204
|
-
`GET /v1/flows/{_id}/jobs/latest`) and request the
|
|
1212
|
+
An earlier replay of the export is still queued or running. Wait for it to finish (poll
|
|
1213
|
+
`GET /v1/flows/{_id}/jobs/latest` for the job whose `runType` is `replay`) and request the
|
|
1214
|
+
replay again.
|
|
1205
1215
|
content:
|
|
1206
1216
|
application/json:
|
|
1207
1217
|
schema:
|
|
@@ -3838,6 +3848,41 @@ paths:
|
|
|
3838
3848
|
response:
|
|
3839
3849
|
statusCode: 200
|
|
3840
3850
|
errors: []
|
|
3851
|
+
topic_listener_replay_page:
|
|
3852
|
+
summary: apiCall on an Event Streams listener, basic job — a page a replay delivered
|
|
3853
|
+
value:
|
|
3854
|
+
logs:
|
|
3855
|
+
- log:
|
|
3856
|
+
apiCallTraceKeyId: FrLLBtFa
|
|
3857
|
+
stage: apiCall
|
|
3858
|
+
apiCallType: export
|
|
3859
|
+
status: success
|
|
3860
|
+
request:
|
|
3861
|
+
additionalFields:
|
|
3862
|
+
timestamp: '2026-11-23T21:25:37.465Z'
|
|
3863
|
+
replay:
|
|
3864
|
+
startDate: earliest
|
|
3865
|
+
offsetRange:
|
|
3866
|
+
startOffset: 3
|
|
3867
|
+
endOffset: 5
|
|
3868
|
+
response:
|
|
3869
|
+
statusCode: 200
|
|
3870
|
+
errors: []
|
|
3871
|
+
topic_publisher_batch:
|
|
3872
|
+
summary: apiCall on an Event Streams publisher, basic job — the batch the record was published in
|
|
3873
|
+
value:
|
|
3874
|
+
logs:
|
|
3875
|
+
- log:
|
|
3876
|
+
apiCallTraceKeyId: BflRrhY9
|
|
3877
|
+
stage: apiCall
|
|
3878
|
+
apiCallType: import
|
|
3879
|
+
status: success
|
|
3880
|
+
request: {}
|
|
3881
|
+
response:
|
|
3882
|
+
statusCode: 200
|
|
3883
|
+
additionalFields:
|
|
3884
|
+
timestamp: '2026-11-23T21:23:10.875Z'
|
|
3885
|
+
errors: []
|
|
3841
3886
|
pre_map_hook:
|
|
3842
3887
|
summary: preMap hook stage — the hook's options and its return value
|
|
3843
3888
|
value:
|
|
@@ -7638,8 +7683,9 @@ components:
|
|
|
7638
7683
|
type: object
|
|
7639
7684
|
description: |-
|
|
7640
7685
|
Optional scope for a replay run. Omit the body (or send `{}`) to replay every TopicExport page
|
|
7641
|
-
generator on the flow,
|
|
7642
|
-
fields such as `export` are dropped, so a replay cannot set a delta
|
|
7686
|
+
generator on the flow, from the earliest message the topic still retains up to each one's
|
|
7687
|
+
read position. Other run fields such as `export` are dropped, so a replay cannot set a delta
|
|
7688
|
+
window.
|
|
7643
7689
|
properties:
|
|
7644
7690
|
_exportIds:
|
|
7645
7691
|
type: array
|
|
@@ -7655,15 +7701,21 @@ components:
|
|
|
7655
7701
|
type: object
|
|
7656
7702
|
description: |-
|
|
7657
7703
|
Range of topic messages to replay. Bounds are inclusive. When both an offset and a date
|
|
7658
|
-
bound are set on the same side, the offset is used. With no
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7704
|
+
bound are set on the same side, the offset is used. With no start bound the replay begins
|
|
7705
|
+
at the earliest message the topic still retains. With no `endOffset` or `endDate` it stops
|
|
7706
|
+
just below the export's read position (`GET /v1/topics/{_id}/exports/{_exportId}/offsets`),
|
|
7707
|
+
whether or not the export delivered those messages itself: an export that subscribed at
|
|
7708
|
+
`startPosition: latest` replays the retained messages published before it subscribed. An
|
|
7709
|
+
export with no read position (`hasCursor: false`) replays nothing. Replaying does not move
|
|
7710
|
+
the read position.
|
|
7662
7711
|
properties:
|
|
7663
7712
|
startDate:
|
|
7664
7713
|
type: string
|
|
7665
7714
|
format: date-time
|
|
7666
|
-
description:
|
|
7715
|
+
description: |-
|
|
7716
|
+
Earliest message timestamp to replay. Ignored when `startOffset` is set. A date earlier
|
|
7717
|
+
than the oldest message the topic still retains is accepted, and the replay begins at
|
|
7718
|
+
that message.
|
|
7667
7719
|
examples:
|
|
7668
7720
|
- '2026-10-01T00:00:00.000Z'
|
|
7669
7721
|
endDate:
|
|
@@ -8691,6 +8743,11 @@ components:
|
|
|
8691
8743
|
description: |-
|
|
8692
8744
|
Kind of run that created the job. Present on replay runs; absent for scheduled,
|
|
8693
8745
|
on-demand, and event-driven runs.
|
|
8746
|
+
x-celigo-ai-guidance:
|
|
8747
|
+
- |-
|
|
8748
|
+
Not a list filter: `GET /v1/jobs?runType=replay` fails with 422 `invalid_query_params`
|
|
8749
|
+
("The following query parameter(s) are not supported: runType."). List the flow's
|
|
8750
|
+
jobs and read the field on each parent job; a replay's child jobs do not carry it.
|
|
8694
8751
|
examples:
|
|
8695
8752
|
- replay
|
|
8696
8753
|
numError:
|
|
@@ -9648,7 +9705,9 @@ components:
|
|
|
9648
9705
|
type: string
|
|
9649
9706
|
description: |-
|
|
9650
9707
|
Execution stage whose data to return. `apiCall` holds the request and response an HTTP
|
|
9651
|
-
export or import sent
|
|
9708
|
+
export or import sent, and, on a `basic` job, the entry of the record's page or batch for
|
|
9709
|
+
an Event Streams listener or publisher step (live-verified 2026-11-23). On a job whose
|
|
9710
|
+
`logMode` is `debug`, an export's transform and
|
|
9652
9711
|
output filter record under `transformation` and `outputFilter`, an import's filter (its
|
|
9653
9712
|
`filter` field) under `inputFilter`, an import's mapping and response mapping under
|
|
9654
9713
|
`mapping` and `responseMapping`, and a script hook's `options` and
|
|
@@ -9724,6 +9783,18 @@ components:
|
|
|
9724
9783
|
|
|
9725
9784
|
- `apiCall`: the request's method and URI and the response's status code. A job whose `logMode` is
|
|
9726
9785
|
`detailed` or `debug` also records each side's headers and body; a `basic` job does not.
|
|
9786
|
+
- `apiCall` on an Event Streams step, on a `basic` job only (live-verified 2026-11-23; what a
|
|
9787
|
+
`detailed` or `debug` job records for these steps is not described here). The entry has no
|
|
9788
|
+
method or URI. A listener (`TopicExport`) records one entry per page it delivered, returned
|
|
9789
|
+
for every record of the page: `request.additionalFields.offsetRange` holds the page's first
|
|
9790
|
+
and last topic offset (`startOffset`, `endOffset`) and `request.additionalFields.timestamp`
|
|
9791
|
+
the time the page was read from the topic, with `response.statusCode` 200. A page delivered
|
|
9792
|
+
by a replay (`POST /v1/flows/{_id}/replay`) also carries `request.additionalFields.replay`:
|
|
9793
|
+
the `replay` object that request sent, or `startDate: earliest` when it set no bound. A
|
|
9794
|
+
publisher (`TopicImport`) records one entry per batch of `topic.batchSize` records, returned
|
|
9795
|
+
for every record of the batch: `request` is empty, and `response` carries `statusCode` and
|
|
9796
|
+
`additionalFields.timestamp`, the time the batch was published. No entry names the topic;
|
|
9797
|
+
read it from the step's `topic._topicId`.
|
|
9727
9798
|
- `mapping`, `transformation`, `outputFilter`, `inputFilter`, `responseMapping`: a per-record entry
|
|
9728
9799
|
carrying the record's `recordId`, the stage's `input`, and its `output`. The filter stages
|
|
9729
9800
|
(`outputFilter` for an export's output filter, `inputFilter` for an import's filter) have
|
package/dist/import.yml
CHANGED
|
@@ -9538,10 +9538,10 @@ components:
|
|
|
9538
9538
|
`TopicImport`; the server fills `batchSize` with its default when it is omitted.
|
|
9539
9539
|
x-celigo-ai-guidance:
|
|
9540
9540
|
- |-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9541
|
+
Send `adaptorType: TopicImport` with this object and its `_topicId`. Never add a
|
|
9542
|
+
`_connectionId`: the server then validates the document as that connection's adaptor
|
|
9543
|
+
instead (an http connection fails with 422 missing_required_field "http subschema not
|
|
9544
|
+
defined").
|
|
9545
9545
|
- |-
|
|
9546
9546
|
Without a mapping, each message is the record as the step received it. With
|
|
9547
9547
|
`oneToMany: true` and `pathToMany`, every element of that array is published as its own
|
|
@@ -9557,15 +9557,25 @@ components:
|
|
|
9557
9557
|
type: string
|
|
9558
9558
|
format: objectId
|
|
9559
9559
|
x-celigo-refModel: topics
|
|
9560
|
-
x-celigo-ui-override: 'Required by the Event Streams publisher form (fieldDefinitions/resources/imports/import.js: ''topic._topicId'' is required:true, validWhen isNot ''''). The API saves a TopicImport without it, so the requirement is encoded on the request schema to mirror the form and keep publishers bound to a topic.'
|
|
9561
9560
|
description: |-
|
|
9562
9561
|
Topic the records are published to. Create or look it up with `GET /v1/topics`; the
|
|
9563
|
-
topic must belong to the same account. A
|
|
9564
|
-
environment keeps
|
|
9562
|
+
topic must belong to the same account. A TopicImport saved without it fails with 422
|
|
9563
|
+
`missing_required_field`. A clone of the import made in the same environment keeps
|
|
9564
|
+
`_topicId`.
|
|
9565
9565
|
x-celigo-ai-guidance:
|
|
9566
|
+
- |-
|
|
9567
|
+
Always send `topic._topicId`: a POST with `adaptorType: TopicImport` and no id —
|
|
9568
|
+
`topic` empty, sent with only `batchSize`, or left out — fails with 422
|
|
9569
|
+
`missing_required_field` ("Expected field: topic._topicId to be present."), and so does
|
|
9570
|
+
a PUT that drops the id from a saved publisher.
|
|
9566
9571
|
- |-
|
|
9567
9572
|
An id that is not a topic in the account fails the save with 422 `invalid_ref`
|
|
9568
9573
|
("<id> is not a valid topic._topicId").
|
|
9574
|
+
- |-
|
|
9575
|
+
Without `adaptorType`, a `topic` object that carries no `_topicId` is not read as a
|
|
9576
|
+
publisher: the POST fails with 422 `missing_required_field` naming `_connectionId`
|
|
9577
|
+
("Expected field: _connectionId to be present."). A connection is not the fix — send
|
|
9578
|
+
`adaptorType: TopicImport` and the topic id.
|
|
9569
9579
|
examples:
|
|
9570
9580
|
- 6ab1f48d38d7733b4599875c
|
|
9571
9581
|
batchSize:
|
|
@@ -19527,6 +19537,10 @@ components:
|
|
|
19527
19537
|
- guardrail
|
|
19528
19538
|
- required:
|
|
19529
19539
|
- topic
|
|
19540
|
+
properties:
|
|
19541
|
+
topic:
|
|
19542
|
+
required:
|
|
19543
|
+
- _topicId
|
|
19530
19544
|
then:
|
|
19531
19545
|
if:
|
|
19532
19546
|
properties:
|
|
@@ -19535,7 +19549,6 @@ components:
|
|
|
19535
19549
|
required:
|
|
19536
19550
|
- adaptorType
|
|
19537
19551
|
then:
|
|
19538
|
-
x-celigo-ui-override: 'Required by the Event Streams publisher form (fieldDefinitions/resources/imports/import.js: ''topic._topicId'' is required:true). Encoded to mirror the form so builders produce publishers that are bound to a topic.'
|
|
19539
19552
|
required:
|
|
19540
19553
|
- topic
|
|
19541
19554
|
properties:
|
package/dist/job.yml
CHANGED
|
@@ -1648,6 +1648,11 @@ components:
|
|
|
1648
1648
|
description: |-
|
|
1649
1649
|
Kind of run that created the job. Present on replay runs; absent for scheduled,
|
|
1650
1650
|
on-demand, and event-driven runs.
|
|
1651
|
+
x-celigo-ai-guidance:
|
|
1652
|
+
- |-
|
|
1653
|
+
Not a list filter: `GET /v1/jobs?runType=replay` fails with 422 `invalid_query_params`
|
|
1654
|
+
("The following query parameter(s) are not supported: runType."). List the flow's
|
|
1655
|
+
jobs and read the field on each parent job; a replay's child jobs do not carry it.
|
|
1651
1656
|
examples:
|
|
1652
1657
|
- replay
|
|
1653
1658
|
numError:
|
package/dist/sync.yml
CHANGED
|
@@ -2398,9 +2398,10 @@ paths:
|
|
|
2398
2398
|
summary: List events for a sync
|
|
2399
2399
|
description: |-
|
|
2400
2400
|
Returns the events recorded for a sync across all of its runs — schema drift the
|
|
2401
|
-
platform detected or applied, and data-catalog activity
|
|
2402
|
-
|
|
2403
|
-
retention
|
|
2401
|
+
platform detected or applied, and data-catalog activity, which includes each
|
|
2402
|
+
destination table a run created — newest first. Events are retained per the
|
|
2403
|
+
account's data retention period; a `time_lte` older than the retention window
|
|
2404
|
+
returns an empty list.
|
|
2404
2405
|
operationId: listSyncEvents
|
|
2405
2406
|
tags:
|
|
2406
2407
|
- Syncs
|
|
@@ -2469,15 +2470,20 @@ paths:
|
|
|
2469
2470
|
- Schema Drift
|
|
2470
2471
|
x-enumDescriptions:
|
|
2471
2472
|
Schema Drift: Changes to the source schema that were detected or applied.
|
|
2472
|
-
Data Catalog: Dataset metadata activity recorded while cataloging the source.
|
|
2473
|
+
Data Catalog: Dataset metadata activity recorded while cataloging the source, or while recording a destination table the sync created during load.
|
|
2473
2474
|
- name: resourceName
|
|
2474
2475
|
in: query
|
|
2475
2476
|
required: false
|
|
2476
|
-
description:
|
|
2477
|
+
description: |-
|
|
2478
|
+
Only return events about one resource. Pass the name whole, as the events
|
|
2479
|
+
carry it in `resourceName`: a source table or object for its `Extract`-stage
|
|
2480
|
+
events, a destination table's fully qualified name for the `Load`-stage
|
|
2481
|
+
`Table added` event that records its creation.
|
|
2477
2482
|
schema:
|
|
2478
2483
|
type: string
|
|
2479
2484
|
examples:
|
|
2480
2485
|
- Account
|
|
2486
|
+
- acme-analytics.netsuite_raw.item_master
|
|
2481
2487
|
- name: flowExecutionGroupId
|
|
2482
2488
|
in: query
|
|
2483
2489
|
required: false
|
|
@@ -2532,6 +2538,24 @@ paths:
|
|
|
2532
2538
|
metadata:
|
|
2533
2539
|
action: Table removed
|
|
2534
2540
|
resourceType: Table
|
|
2541
|
+
table_created:
|
|
2542
|
+
summary: Destination table created during a load
|
|
2543
|
+
value:
|
|
2544
|
+
events:
|
|
2545
|
+
- id: 5d2f7c1e-9a44-4c0b-8f6e-2b7a1d3c9e10
|
|
2546
|
+
_syncId: 6a4b8bfb731a7a5cae9bd364
|
|
2547
|
+
_userId: 68c821306f5d848c881da205
|
|
2548
|
+
flowExecutionGroupId: d0f875a575bd4b8c944533da773f350a
|
|
2549
|
+
resourceName: acme-analytics.netsuite_raw.item_master
|
|
2550
|
+
severity: INFO
|
|
2551
|
+
eventTime: '2026-07-13T12:41:52.118Z'
|
|
2552
|
+
type: Data Catalog
|
|
2553
|
+
stage: Load
|
|
2554
|
+
metadata:
|
|
2555
|
+
action: Table added
|
|
2556
|
+
resourceType: Table
|
|
2557
|
+
query:
|
|
2558
|
+
- CREATE TABLE IF NOT EXISTS `acme-analytics`.`netsuite_raw`.`item_master` (`Name` STRING,`id` INT64 NOT NULL,`recordType` STRING,`_celigo_deleted` BOOL,`_celigo_extracted_at` TIMESTAMP,`_celigo_loaded_at` TIMESTAMP,`_celigo_job_id` STRING,PRIMARY KEY (`id`) NOT ENFORCED)
|
|
2535
2559
|
'401':
|
|
2536
2560
|
$ref: '#/components/responses/401-unauthorized'
|
|
2537
2561
|
'403':
|
|
@@ -5945,9 +5969,13 @@ components:
|
|
|
5945
5969
|
- d0f875a575bd4b8c944533da773f350a
|
|
5946
5970
|
resourceName:
|
|
5947
5971
|
type: string
|
|
5948
|
-
description:
|
|
5972
|
+
description: |-
|
|
5973
|
+
What the event is about. On an `Extract`-stage event it is the source table
|
|
5974
|
+
or object; on a `Load`-stage `Table added` event it is the destination
|
|
5975
|
+
table's fully qualified name.
|
|
5949
5976
|
examples:
|
|
5950
5977
|
- Account
|
|
5978
|
+
- acme-analytics.netsuite_raw.item_master
|
|
5951
5979
|
severity:
|
|
5952
5980
|
type: string
|
|
5953
5981
|
enum:
|
|
@@ -5980,7 +6008,7 @@ components:
|
|
|
5980
6008
|
parameter.
|
|
5981
6009
|
x-enumDescriptions:
|
|
5982
6010
|
Schema Drift: A change to the source schema was detected or applied (e.g. table added, column removed).
|
|
5983
|
-
Data Catalog: Dataset metadata activity recorded while cataloging the source.
|
|
6011
|
+
Data Catalog: Dataset metadata activity recorded while cataloging the source, or while recording a destination table the sync created during load.
|
|
5984
6012
|
examples:
|
|
5985
6013
|
- Schema Drift
|
|
5986
6014
|
stage:
|
|
@@ -6007,6 +6035,10 @@ components:
|
|
|
6007
6035
|
`Column expanded`, `Column reduced`, `Column constraint updated`), the
|
|
6008
6036
|
`resourceType` affected, and — for column-level drift — fields like `fieldName`,
|
|
6009
6037
|
`oldValue`, `newValue`, or the applied DDL under `query`.
|
|
6038
|
+
|
|
6039
|
+
A `Load`-stage `Table added` event records a destination table the sync
|
|
6040
|
+
created: its `type` is `Data Catalog`, its `resourceName` is the table, and
|
|
6041
|
+
`query` is an array holding the `CREATE TABLE` statement the sync ran.
|
|
6010
6042
|
oneOf:
|
|
6011
6043
|
- title: object
|
|
6012
6044
|
type: object
|
|
@@ -6016,6 +6048,10 @@ components:
|
|
|
6016
6048
|
examples:
|
|
6017
6049
|
- action: Table removed
|
|
6018
6050
|
resourceType: Table
|
|
6051
|
+
- action: Table added
|
|
6052
|
+
resourceType: Table
|
|
6053
|
+
query:
|
|
6054
|
+
- CREATE TABLE IF NOT EXISTS `acme-analytics`.`netsuite_raw`.`item_master` (`Name` STRING,`id` INT64 NOT NULL,`recordType` STRING,`_celigo_deleted` BOOL,`_celigo_extracted_at` TIMESTAMP,`_celigo_loaded_at` TIMESTAMP,`_celigo_job_id` STRING,PRIMARY KEY (`id`) NOT ENFORCED)
|
|
6019
6055
|
responses:
|
|
6020
6056
|
401-unauthorized-or-scoped-token:
|
|
6021
6057
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -22018,10 +22018,10 @@ components:
|
|
|
22018
22018
|
`TopicImport`; the server fills `batchSize` with its default when it is omitted.
|
|
22019
22019
|
x-celigo-ai-guidance:
|
|
22020
22020
|
- |-
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22021
|
+
Send `adaptorType: TopicImport` with this object and its `_topicId`. Never add a
|
|
22022
|
+
`_connectionId`: the server then validates the document as that connection's adaptor
|
|
22023
|
+
instead (an http connection fails with 422 missing_required_field "http subschema not
|
|
22024
|
+
defined").
|
|
22025
22025
|
- |-
|
|
22026
22026
|
Without a mapping, each message is the record as the step received it. With
|
|
22027
22027
|
`oneToMany: true` and `pathToMany`, every element of that array is published as its own
|
|
@@ -22037,15 +22037,25 @@ components:
|
|
|
22037
22037
|
type: string
|
|
22038
22038
|
format: objectId
|
|
22039
22039
|
x-celigo-refModel: topics
|
|
22040
|
-
x-celigo-ui-override: 'Required by the Event Streams publisher form (fieldDefinitions/resources/imports/import.js: ''topic._topicId'' is required:true, validWhen isNot ''''). The API saves a TopicImport without it, so the requirement is encoded on the request schema to mirror the form and keep publishers bound to a topic.'
|
|
22041
22040
|
description: |-
|
|
22042
22041
|
Topic the records are published to. Create or look it up with `GET /v1/topics`; the
|
|
22043
|
-
topic must belong to the same account. A
|
|
22044
|
-
environment keeps
|
|
22042
|
+
topic must belong to the same account. A TopicImport saved without it fails with 422
|
|
22043
|
+
`missing_required_field`. A clone of the import made in the same environment keeps
|
|
22044
|
+
`_topicId`.
|
|
22045
22045
|
x-celigo-ai-guidance:
|
|
22046
|
+
- |-
|
|
22047
|
+
Always send `topic._topicId`: a POST with `adaptorType: TopicImport` and no id —
|
|
22048
|
+
`topic` empty, sent with only `batchSize`, or left out — fails with 422
|
|
22049
|
+
`missing_required_field` ("Expected field: topic._topicId to be present."), and so does
|
|
22050
|
+
a PUT that drops the id from a saved publisher.
|
|
22046
22051
|
- |-
|
|
22047
22052
|
An id that is not a topic in the account fails the save with 422 `invalid_ref`
|
|
22048
22053
|
("<id> is not a valid topic._topicId").
|
|
22054
|
+
- |-
|
|
22055
|
+
Without `adaptorType`, a `topic` object that carries no `_topicId` is not read as a
|
|
22056
|
+
publisher: the POST fails with 422 `missing_required_field` naming `_connectionId`
|
|
22057
|
+
("Expected field: _connectionId to be present."). A connection is not the fix — send
|
|
22058
|
+
`adaptorType: TopicImport` and the topic id.
|
|
22049
22059
|
examples:
|
|
22050
22060
|
- 6ab1f48d38d7733b4599875c
|
|
22051
22061
|
batchSize:
|
|
@@ -31289,12 +31299,14 @@ components:
|
|
|
31289
31299
|
default: latest
|
|
31290
31300
|
x-enumDescriptions:
|
|
31291
31301
|
latest: Deliver only messages published after the listener subscribes
|
|
31292
|
-
earliest:
|
|
31302
|
+
earliest: Deliver every retained message on the topic first, then new ones
|
|
31293
31303
|
description: |-
|
|
31294
31304
|
Where the listener starts reading when it first subscribes to `_topicId`. Use `earliest`
|
|
31295
31305
|
to backfill retained history, `latest` (the default) to process only new messages. Read
|
|
31296
31306
|
on create and whenever `_topicId` changes; on other updates the stored value is kept even
|
|
31297
|
-
if a different value is sent.
|
|
31307
|
+
if a different value is sent. A listener that started at `latest` can still be sent the
|
|
31308
|
+
retained messages published before it subscribed, with a replay
|
|
31309
|
+
(`POST /v1/flows/{_id}/replay`).
|
|
31298
31310
|
examples:
|
|
31299
31311
|
- latest
|
|
31300
31312
|
- earliest
|
package/package.json
CHANGED