@celigo/api-specs 0.2.258 → 0.2.260
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/ai-agent.yml +110 -16
- package/dist/editransaction.yml +28 -2
- package/dist/export.yml +218 -52
- package/dist/flow.yml +242 -14
- package/dist/guardrail.yml +27 -0
- package/dist/import.yml +168 -27
- package/dist/mcp-server.yml +120 -10
- package/dist/tool.yml +133 -34
- package/package.json +1 -1
- package/schemas.json +66 -44
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
|
|
4261
|
-
|
|
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
|
-
|
|
4308
|
-
`
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
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: |-
|
|
@@ -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
|
-
|
|
8970
|
-
|
|
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/guardrail.yml
CHANGED
|
@@ -865,6 +865,33 @@ components:
|
|
|
865
865
|
the array index.
|
|
866
866
|
resources:
|
|
867
867
|
$ref: '#/components/schemas/McpResources'
|
|
868
|
+
attachedKnowledgeBaseIds:
|
|
869
|
+
type: array
|
|
870
|
+
maxItems: 50
|
|
871
|
+
uniqueItems: true
|
|
872
|
+
description: |-
|
|
873
|
+
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
874
|
+
set: a guardrail created without the list has no field, and a PATCH `remove` drops it
|
|
875
|
+
again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
|
|
876
|
+
first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
877
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
878
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
879
|
+
items:
|
|
880
|
+
type: string
|
|
881
|
+
format: objectId
|
|
882
|
+
x-celigo-refModel: knowledgebases
|
|
883
|
+
x-celigo-ai-guidance:
|
|
884
|
+
- |-
|
|
885
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
886
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
887
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
888
|
+
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
889
|
+
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
890
|
+
- |-
|
|
891
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
892
|
+
`remove` on the whole path. PATCH `add` at
|
|
893
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
|
|
894
|
+
422 — so send the complete list with `replace`.
|
|
868
895
|
openai:
|
|
869
896
|
type: object
|
|
870
897
|
description: |
|
package/dist/import.yml
CHANGED
|
@@ -294,13 +294,15 @@ paths:
|
|
|
294
294
|
summary: Patch an import
|
|
295
295
|
description: |-
|
|
296
296
|
Partially updates an import using a JSON Patch document (RFC 6902).
|
|
297
|
-
Only the following whitelisted
|
|
297
|
+
Only the following whitelisted paths are accepted:
|
|
298
298
|
|
|
299
299
|
| Path | Operations | Description |
|
|
300
300
|
|------|------------|-------------|
|
|
301
301
|
| `/debugUntil` | `replace`, `add`, `remove` | Step debug-capture expiry (ISO-8601, at most 3600 seconds from now — a later value is rejected with 422 `update_not_allowed`); `remove` stops capture and succeeds even when the field is absent |
|
|
302
|
+
| `/aiAgent/attachedKnowledgeBaseIds` | `replace`, `add`, `remove` | Knowledge bases an AI agent import retrieves from, always as the whole list: `replace` or `add` with the full array (an id that is not a knowledge base in this environment is rejected with 422 `attached_knowledge_base_invalid`), `remove` drops the field. PATCH is the only way to detach — `replace` with `[]` or `remove` clears the list, while a PUT with `[]` keeps the stored ids. `add` at `/-` and `remove` at an array index are rejected with 422 |
|
|
303
|
+
| `/guardrail/aiAgent/attachedKnowledgeBaseIds` | `replace`, `add`, `remove` | The same list on an `ai_agent` guardrail import, with the same operations and errors |
|
|
302
304
|
|
|
303
|
-
All other paths are rejected with `422
|
|
305
|
+
All other paths are rejected with `422` (`"/name is not a whitelisted property"`).
|
|
304
306
|
operationId: patchImport
|
|
305
307
|
tags:
|
|
306
308
|
- Imports
|
|
@@ -328,6 +330,14 @@ paths:
|
|
|
328
330
|
- op: replace
|
|
329
331
|
path: /debugUntil
|
|
330
332
|
value: '2026-05-02T16:00:00.000Z'
|
|
333
|
+
attach_knowledge_bases:
|
|
334
|
+
summary: Replace an AI agent's attached knowledge bases
|
|
335
|
+
value:
|
|
336
|
+
- op: replace
|
|
337
|
+
path: /aiAgent/attachedKnowledgeBaseIds
|
|
338
|
+
value:
|
|
339
|
+
- 6aed72df39fad8fd3fe9ccc5
|
|
340
|
+
- 6aed731639fad8fd3fe9cccd
|
|
331
341
|
responses:
|
|
332
342
|
'204':
|
|
333
343
|
description: Import patched successfully
|
|
@@ -1518,6 +1528,8 @@ components:
|
|
|
1518
1528
|
Required whenever the connection referenced by _connectionId has type http, and on
|
|
1519
1529
|
`NetSuiteHTTPImport` (NetSuite's REST APIs on a `netsuite` connection, where `nsDomainType`
|
|
1520
1530
|
supplies the host).
|
|
1531
|
+
`ignoreExisting`, `ignoreMissing` and `ignoreExtract` are import-level fields; copies sent
|
|
1532
|
+
inside this object are dropped without an error, so nothing is skipped.
|
|
1521
1533
|
x-celigo-ai-guidance:
|
|
1522
1534
|
- |-
|
|
1523
1535
|
IMPORTANT:
|
|
@@ -2083,8 +2095,9 @@ components:
|
|
|
2083
2095
|
a serialized batch. The template root depends ONLY on
|
|
2084
2096
|
``batchSize`` (live-verified 2026-09-10): with ``batchSize`` 1
|
|
2085
2097
|
(the default) the root carries ``record`` (an object record —
|
|
2086
|
-
or
|
|
2087
|
-
(a grouped/array record
|
|
2098
|
+
or an object child fanned out by ``oneToMany``) or ``rows``
|
|
2099
|
+
(a grouped/array record, including a fanned-out child that is
|
|
2100
|
+
itself an array), and ``data`` is the one-element list
|
|
2088
2101
|
of records in the request (a grouped record is that element,
|
|
2089
2102
|
itself an array); with ``batchSize`` > 1 the root carries
|
|
2090
2103
|
``batch_of_records`` (one ``{record: …}`` item per object
|
|
@@ -2794,6 +2807,11 @@ components:
|
|
|
2794
2807
|
|
|
2795
2808
|
- **Static** — only ``map`` + optional ``default``. No HTTP
|
|
2796
2809
|
request issued. Use for small controlled vocabularies.
|
|
2810
|
+
Never add a ``map`` to a working request lookup: an entry that
|
|
2811
|
+
carries both saves without error, but only the map is used and
|
|
2812
|
+
the request is never sent, so every value the map lacks is a
|
|
2813
|
+
miss (``default``, or ``lookup_error`` under
|
|
2814
|
+
``allowFailures: false``) instead of the looked-up value.
|
|
2797
2815
|
- **Dynamic** — ``method`` + ``relativeURI`` (+ ``body``,
|
|
2798
2816
|
``headers``, ``extract``). Issues a live HTTP request per
|
|
2799
2817
|
lookup. Adds one HTTP request per record at runtime — factor
|
|
@@ -2887,10 +2905,13 @@ components:
|
|
|
2887
2905
|
- object
|
|
2888
2906
|
- 'null'
|
|
2889
2907
|
description: |
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
value is
|
|
2893
|
-
|
|
2908
|
+
Static key→value table. A lookup whose ``map`` holds any entry
|
|
2909
|
+
is static: a matching value returns the mapped value and any
|
|
2910
|
+
other value is a miss settled by ``default`` and
|
|
2911
|
+
``allowFailures``, with no HTTP request — ``method``,
|
|
2912
|
+
``relativeURI`` and ``extract`` saved beside it are never sent.
|
|
2913
|
+
Omit it on a request lookup; ``null`` is stored as sent and
|
|
2914
|
+
``{}`` is dropped on save, and either way the request runs.
|
|
2894
2915
|
default:
|
|
2895
2916
|
type:
|
|
2896
2917
|
- string
|
|
@@ -6645,7 +6666,7 @@ components:
|
|
|
6645
6666
|
- function
|
|
6646
6667
|
Salesforce:
|
|
6647
6668
|
type: object
|
|
6648
|
-
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level.'
|
|
6669
|
+
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level. An `ignoreExisting` sent inside this object is dropped without an error, so the import does not skip existing records.'
|
|
6649
6670
|
x-celigo-ai-guidance:
|
|
6650
6671
|
- |-
|
|
6651
6672
|
Configuration for Salesforce imports containing operation type, API selection,
|
|
@@ -7315,13 +7336,12 @@ components:
|
|
|
7315
7336
|
```json
|
|
7316
7337
|
{
|
|
7317
7338
|
"operation": "insert",
|
|
7318
|
-
"ignoreExisting": true,
|
|
7319
7339
|
"idLookup": {
|
|
7320
7340
|
"whereClause": "Email = '{{{Email}}}'"
|
|
7321
7341
|
}
|
|
7322
7342
|
}
|
|
7323
7343
|
```
|
|
7324
|
-
|
|
7344
|
+
With `ignoreExisting: true` set at the import level (not in this object), checks if a record with matching Email exists; if found, skips creation
|
|
7325
7345
|
|
|
7326
7346
|
### Addupdate (create or update) by Email:
|
|
7327
7347
|
```json
|
|
@@ -10101,6 +10121,32 @@ components:
|
|
|
10101
10121
|
the array index.
|
|
10102
10122
|
resources:
|
|
10103
10123
|
$ref: '#/components/schemas/McpResources'
|
|
10124
|
+
attachedKnowledgeBaseIds:
|
|
10125
|
+
type: array
|
|
10126
|
+
maxItems: 50
|
|
10127
|
+
uniqueItems: true
|
|
10128
|
+
default: []
|
|
10129
|
+
description: |-
|
|
10130
|
+
Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
|
|
10131
|
+
`[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
|
|
10132
|
+
a non-empty array replaces the stored list (duplicate ids collapse to their first
|
|
10133
|
+
occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
10134
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
10135
|
+
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
10136
|
+
items:
|
|
10137
|
+
type: string
|
|
10138
|
+
format: objectId
|
|
10139
|
+
x-celigo-refModel: knowledgebases
|
|
10140
|
+
x-celigo-ai-guidance:
|
|
10141
|
+
- |-
|
|
10142
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
10143
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
10144
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
10145
|
+
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
10146
|
+
- |-
|
|
10147
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
10148
|
+
`remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
|
|
10149
|
+
does not append — it fails with 422 — so send the complete list with `replace`.
|
|
10104
10150
|
openai:
|
|
10105
10151
|
type: object
|
|
10106
10152
|
description: |
|
|
@@ -11619,6 +11665,33 @@ components:
|
|
|
11619
11665
|
the array index.
|
|
11620
11666
|
resources:
|
|
11621
11667
|
$ref: '#/components/schemas/McpResources'
|
|
11668
|
+
attachedKnowledgeBaseIds:
|
|
11669
|
+
type: array
|
|
11670
|
+
maxItems: 50
|
|
11671
|
+
uniqueItems: true
|
|
11672
|
+
description: |-
|
|
11673
|
+
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
11674
|
+
set: a guardrail created without the list has no field, and a PATCH `remove` drops it
|
|
11675
|
+
again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
|
|
11676
|
+
first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
11677
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
11678
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
11679
|
+
items:
|
|
11680
|
+
type: string
|
|
11681
|
+
format: objectId
|
|
11682
|
+
x-celigo-refModel: knowledgebases
|
|
11683
|
+
x-celigo-ai-guidance:
|
|
11684
|
+
- |-
|
|
11685
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
11686
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
11687
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
11688
|
+
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
11689
|
+
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
11690
|
+
- |-
|
|
11691
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
11692
|
+
`remove` on the whole path. PATCH `add` at
|
|
11693
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
|
|
11694
|
+
422 — so send the complete list with `replace`.
|
|
11622
11695
|
openai:
|
|
11623
11696
|
type: object
|
|
11624
11697
|
description: |
|
|
@@ -12801,7 +12874,9 @@ components:
|
|
|
12801
12874
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
12802
12875
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
12803
12876
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
12804
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
12877
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
12878
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
12879
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
12805
12880
|
- |-
|
|
12806
12881
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
12807
12882
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -12813,14 +12888,29 @@ components:
|
|
|
12813
12888
|
- |-
|
|
12814
12889
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
12815
12890
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
12816
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
12891
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
12817
12892
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
12818
12893
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
12819
12894
|
mode) with every element enriched.
|
|
12895
|
+
- |-
|
|
12896
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
12897
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
12898
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
12899
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
12900
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
12901
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
12902
|
+
flow runs.
|
|
12903
|
+
- |-
|
|
12904
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
12905
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
12906
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
12907
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
12908
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
12909
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
12820
12910
|
- |-
|
|
12821
12911
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
12822
12912
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
12823
|
-
With the default batch size the template root is ``record
|
|
12913
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
12824
12914
|
default: false
|
|
12825
12915
|
examples:
|
|
12826
12916
|
- true
|
|
@@ -12828,11 +12918,13 @@ components:
|
|
|
12828
12918
|
PathToMany:
|
|
12829
12919
|
type: string
|
|
12830
12920
|
description: |
|
|
12831
|
-
Path to the array of child records
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12921
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
12922
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
12923
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
12924
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
12925
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
12926
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
12927
|
+
`oneToMany`.
|
|
12836
12928
|
x-celigo-ai-guidance:
|
|
12837
12929
|
- |-
|
|
12838
12930
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -12840,19 +12932,30 @@ components:
|
|
|
12840
12932
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
12841
12933
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
12842
12934
|
- |-
|
|
12843
|
-
|
|
12844
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12935
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
12936
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
12937
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
12938
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
12939
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
12940
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
12941
|
+
- |-
|
|
12942
|
+
On an array record only a path that starts with an element index resolves:
|
|
12943
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
12944
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
12945
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
12946
|
+
export.
|
|
12848
12947
|
- |-
|
|
12849
12948
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
12850
12949
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
12851
12950
|
configuration. An empty string behaves exactly like an absent field.
|
|
12852
12951
|
- |-
|
|
12853
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
12854
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
12855
|
-
parent-level fields
|
|
12952
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
12953
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
12954
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
12955
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
12956
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
12957
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
12958
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
12856
12959
|
examples:
|
|
12857
12960
|
- items
|
|
12858
12961
|
- line_items
|
|
@@ -18478,6 +18581,44 @@ components:
|
|
|
18478
18581
|
topic:
|
|
18479
18582
|
required:
|
|
18480
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
|
|
18481
18622
|
else:
|
|
18482
18623
|
required:
|
|
18483
18624
|
- _connectionId
|