@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb
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/README.md +71 -80
- package/dist/account.yml +456 -55
- package/dist/agent.yml +15 -0
- package/dist/ai-agent.yml +1000 -192
- package/dist/alert.yml +1226 -0
- package/dist/api.yml +6375 -178
- package/dist/apim.yml +0 -4
- package/dist/asynchelper.yml +441 -62
- package/dist/audit.yml +57 -2
- package/dist/bartendertemplate.yml +508 -0
- package/dist/connection.yml +2533 -189
- package/dist/connector.yml +8 -0
- package/dist/ediprofile.yml +15 -0
- package/dist/editransaction.yml +250 -14
- package/dist/enduser.yml +6063 -47
- package/dist/environment.yml +8 -0
- package/dist/eventreport.yml +8 -0
- package/dist/export.yml +1624 -1804
- package/dist/filedefinition.yml +47 -0
- package/dist/filedefinitionrules.yml +722 -0
- package/dist/fileserver.yml +1457 -0
- package/dist/filestorage.yml +1087 -535
- package/dist/flow.yml +896 -209
- package/dist/guardrail.yml +310 -499
- package/dist/httpconnector.yml +8 -0
- package/dist/httpconnectorendpoint.yml +610 -126
- package/dist/httpconnectorresource.yml +1160 -84
- package/dist/iclient.yml +245 -114
- package/dist/import.yml +2583 -448
- package/dist/integration.yml +1114 -45
- package/dist/job.yml +188 -92
- package/dist/lookupcache.yml +45 -14
- package/dist/marketplace.yml +352 -107
- package/dist/mcp-oauth-provider.yml +15 -30
- package/dist/mcp-server.yml +7004 -68
- package/dist/networkpolicy.yml +1221 -0
- package/dist/notification.yml +59 -9
- package/dist/processor.yml +8 -3
- package/dist/recyclebin.yml +32 -2
- package/dist/script.yml +91 -16
- package/dist/stack.yml +642 -5
- package/dist/storagequery.yml +935 -0
- package/dist/subscription.yml +428 -67
- package/dist/sync.yml +435 -79
- package/dist/tag.yml +8 -0
- package/dist/template.yml +47 -1
- package/dist/tool.yml +7932 -3273
- package/dist/topic.yml +1806 -0
- package/dist/tradingpartnerconnector.yml +18 -0
- package/dist/user.yml +465 -42
- package/package.json +13 -1
- package/schemas.json +2358 -1887
package/dist/ai-agent.yml
CHANGED
|
@@ -21,10 +21,11 @@ tags:
|
|
|
21
21
|
generate data within integration flows. They are stored as import resources
|
|
22
22
|
with `adaptorType: AiAgentImport` and managed via the `/v1/imports` endpoints.
|
|
23
23
|
|
|
24
|
-
Three providers
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
Three built-in providers — OpenAI (via the Responses API), Google Gemini (via
|
|
25
|
+
LiteLLM), and Anthropic Claude (via LiteLLM) — run on platform-managed
|
|
26
|
+
credentials or, with a `_connectionId`, on your own key (BYOK). Catalog
|
|
27
|
+
providers — Mistral, xAI, Hugging Face, DeepSeek, Cohere, and Groq — use one generic
|
|
28
|
+
flat configuration format and always run on a BYOK connection.
|
|
28
29
|
|
|
29
30
|
## AI agent schema
|
|
30
31
|
|
|
@@ -93,6 +94,16 @@ paths:
|
|
|
93
94
|
format:
|
|
94
95
|
type: json_schema
|
|
95
96
|
name: agent-response
|
|
97
|
+
strict: false
|
|
98
|
+
jsonSchema:
|
|
99
|
+
type: object
|
|
100
|
+
properties:
|
|
101
|
+
action:
|
|
102
|
+
type: string
|
|
103
|
+
draftBody:
|
|
104
|
+
type: string
|
|
105
|
+
required:
|
|
106
|
+
- action
|
|
96
107
|
verbose: medium
|
|
97
108
|
tools:
|
|
98
109
|
- type: mcp
|
|
@@ -110,10 +121,15 @@ paths:
|
|
|
110
121
|
x-internal: false
|
|
111
122
|
summary: Create an AI agent
|
|
112
123
|
description: |-
|
|
113
|
-
Creates a new AI agent import.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
124
|
+
Creates a new AI agent import. The provider decides the configuration
|
|
125
|
+
format: `aiAgent.openai` for OpenAI, `aiAgent.litellm` for Gemini and
|
|
126
|
+
Anthropic Claude, or the generic flat format (`aiAgent.model`,
|
|
127
|
+
`aiAgent.modelOptions`, …) for the catalog providers Mistral, xAI,
|
|
128
|
+
Hugging Face, DeepSeek, Cohere, and Groq — a block that does not match the
|
|
129
|
+
provider is rejected. For a built-in provider, omit `_connectionId` to
|
|
130
|
+
use platform-managed credentials or include it for BYOK; a catalog
|
|
131
|
+
provider needs a BYOK connection to save — without one the request
|
|
132
|
+
fails with 422 `connection_required` on `_connectionId`.
|
|
117
133
|
operationId: createAiAgent
|
|
118
134
|
tags:
|
|
119
135
|
- AI Agents
|
|
@@ -150,6 +166,24 @@ paths:
|
|
|
150
166
|
tools:
|
|
151
167
|
- type: googleSearch
|
|
152
168
|
googleSearch: {}
|
|
169
|
+
xai-catalog-byok:
|
|
170
|
+
summary: Catalog provider (xAI) on a BYOK connection — generic flat format
|
|
171
|
+
value:
|
|
172
|
+
name: Invoice Extractor
|
|
173
|
+
adaptorType: AiAgentImport
|
|
174
|
+
_connectionId: 662aaa6576bf4040548dbbe4
|
|
175
|
+
aiAgent:
|
|
176
|
+
provider: xai
|
|
177
|
+
model: grok-4.6
|
|
178
|
+
modelOptions:
|
|
179
|
+
maxOutputTokens: 5000
|
|
180
|
+
reasoning_effort: high
|
|
181
|
+
temperature: 1
|
|
182
|
+
topP: 1
|
|
183
|
+
instructions: Extract the invoice fields from each record.
|
|
184
|
+
output:
|
|
185
|
+
format:
|
|
186
|
+
type: text
|
|
153
187
|
responses:
|
|
154
188
|
'201':
|
|
155
189
|
description: Created AI agent.
|
|
@@ -237,6 +271,16 @@ paths:
|
|
|
237
271
|
format:
|
|
238
272
|
type: json_schema
|
|
239
273
|
name: agent-response
|
|
274
|
+
strict: false
|
|
275
|
+
jsonSchema:
|
|
276
|
+
type: object
|
|
277
|
+
properties:
|
|
278
|
+
action:
|
|
279
|
+
type: string
|
|
280
|
+
draftBody:
|
|
281
|
+
type: string
|
|
282
|
+
required:
|
|
283
|
+
- action
|
|
240
284
|
verbose: medium
|
|
241
285
|
tools:
|
|
242
286
|
- type: mcp
|
|
@@ -368,7 +412,9 @@ paths:
|
|
|
368
412
|
|
|
369
413
|
Each entry in `imports` must include `adaptorType: "AiAgentImport"` and
|
|
370
414
|
a valid `aiAgent` configuration. A `_connectionId` is required unless the
|
|
371
|
-
agent
|
|
415
|
+
agent is on a built-in provider (`openai`, `gemini`, `anthropic`) using
|
|
416
|
+
platform-managed credentials — catalog providers always need one, since
|
|
417
|
+
the preview runs the model. The response array is positional
|
|
372
418
|
— `response[i]` corresponds to `imports[i]`. A per-entry
|
|
373
419
|
`statusCode: 422` with `errors` means that specific configuration failed,
|
|
374
420
|
not that the overall request failed.
|
|
@@ -620,14 +666,23 @@ components:
|
|
|
620
666
|
AI Agent configuration used by both AiAgentImport and GuardrailImport (ai_agent type).
|
|
621
667
|
|
|
622
668
|
Configures which AI provider and model to use, along with instructions, parameter
|
|
623
|
-
tuning, output format, and available tools.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
- **
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
669
|
+
tuning, output format, and available tools. Providers come in two families with
|
|
670
|
+
two configuration formats:
|
|
671
|
+
|
|
672
|
+
- **Built-in providers** — each has its own configuration block.
|
|
673
|
+
- **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
|
|
674
|
+
- **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
|
|
675
|
+
- **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
|
|
676
|
+
- **Catalog providers** — `mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`. Added
|
|
677
|
+
as catalog data rather than platform code, they share one generic flat format:
|
|
678
|
+
`model`, `modelOptions`, `instructions`, `output`, and the `tools` / `prompts` /
|
|
679
|
+
`resources` arrays directly on this object.
|
|
680
|
+
|
|
681
|
+
A `_connectionId` on the parent import selects bring-your-own-key (BYOK)
|
|
682
|
+
credentials. Without one, built-in providers run on platform-managed
|
|
683
|
+
credentials; catalog providers have no platform-managed credentials, so the
|
|
684
|
+
save requires one — without it the agent fails to save with 422
|
|
685
|
+
`connection_required` on `_connectionId`.
|
|
631
686
|
required:
|
|
632
687
|
- provider
|
|
633
688
|
properties:
|
|
@@ -637,18 +692,225 @@ components:
|
|
|
637
692
|
- openai
|
|
638
693
|
- gemini
|
|
639
694
|
- anthropic
|
|
695
|
+
- mistral
|
|
696
|
+
- xai
|
|
697
|
+
- huggingface
|
|
698
|
+
- deepseek
|
|
699
|
+
- cohere
|
|
700
|
+
- groq
|
|
640
701
|
x-enumDescriptions:
|
|
641
|
-
openai: Use OpenAI models via the OpenAI Responses API.
|
|
642
|
-
gemini: Use Google Gemini models via the LiteLLM proxy.
|
|
643
|
-
anthropic: Use Anthropic Claude models via the LiteLLM proxy.
|
|
702
|
+
openai: Use OpenAI models via the OpenAI Responses API (built-in; `openai` block).
|
|
703
|
+
gemini: Use Google Gemini models via the LiteLLM proxy (built-in; `litellm` block).
|
|
704
|
+
anthropic: Use Anthropic Claude models via the LiteLLM proxy (built-in; `litellm` block).
|
|
705
|
+
mistral: Use Mistral models (catalog provider; generic flat format, BYOK).
|
|
706
|
+
xai: Use xAI Grok models (catalog provider; generic flat format, BYOK).
|
|
707
|
+
huggingface: Use Hugging Face inference endpoint models (catalog provider; generic flat format, BYOK).
|
|
708
|
+
deepseek: Use DeepSeek models (catalog provider; generic flat format, BYOK).
|
|
709
|
+
cohere: Use Cohere models (catalog provider; generic flat format, BYOK).
|
|
710
|
+
groq: Use Groq-hosted models (catalog provider; generic flat format, BYOK).
|
|
644
711
|
description: AI provider to use.
|
|
645
712
|
x-celigo-ai-guidance:
|
|
646
713
|
- |-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
-
|
|
651
|
-
|
|
714
|
+
The provider decides the configuration format, and the server rejects a
|
|
715
|
+
mismatch with 422 `invalid_provider_config_format`: `openai` needs the
|
|
716
|
+
`openai` block, `gemini` and `anthropic` need the `litellm` block (Gemini- or
|
|
717
|
+
Claude-specific settings under `litellm._overrides`), and the catalog
|
|
718
|
+
providers (`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) need the
|
|
719
|
+
generic flat format — `model` and `modelOptions` directly on this object,
|
|
720
|
+
never an `openai` or `litellm` block.
|
|
721
|
+
- |-
|
|
722
|
+
Catalog providers are BYOK-only, and the save enforces it: without a `_connectionId`
|
|
723
|
+
the agent fails to save with 422 `connection_required` on `_connectionId` ("No API
|
|
724
|
+
key is available for provider 'xai'. Add a connection for this provider with your
|
|
725
|
+
API key and select it on this agent."). Attach an HTTP connection to the vendor's
|
|
726
|
+
API (token auth) before saving a catalog-provider agent.
|
|
727
|
+
model:
|
|
728
|
+
type: string
|
|
729
|
+
description: |-
|
|
730
|
+
Model identifier for a catalog provider (generic flat format) — for example
|
|
731
|
+
`grok-4.6`. Built-in providers set the model inside their own block
|
|
732
|
+
(`openai.model`, `litellm.model`) instead.
|
|
733
|
+
x-celigo-ai-guidance:
|
|
734
|
+
- |-
|
|
735
|
+
Required for every catalog provider — omitting it or sending an empty string
|
|
736
|
+
fails the save with 422 `missing_required_field`.
|
|
737
|
+
- |-
|
|
738
|
+
The connection is checked before the model: without a `_connectionId` on the
|
|
739
|
+
parent import a catalog-provider agent fails to save with 422
|
|
740
|
+
`connection_required` whatever the model string (an unknown id included).
|
|
741
|
+
With a `_connectionId` (BYOK) any model string saves — the server does not
|
|
742
|
+
check it against the catalog or the vendor.
|
|
743
|
+
modelOptions:
|
|
744
|
+
type: object
|
|
745
|
+
description: |-
|
|
746
|
+
Model tuning for a catalog provider (generic flat format). Which keys, values, and
|
|
747
|
+
ranges are accepted is defined per catalog model and validated on save when the
|
|
748
|
+
model is a catalog entry.
|
|
749
|
+
properties:
|
|
750
|
+
maxOutputTokens:
|
|
751
|
+
type: number
|
|
752
|
+
description: Maximum number of tokens the model may generate.
|
|
753
|
+
temperature:
|
|
754
|
+
type: number
|
|
755
|
+
description: Sampling temperature.
|
|
756
|
+
topP:
|
|
757
|
+
type: number
|
|
758
|
+
description: Nucleus sampling threshold.
|
|
759
|
+
reasoning_effort:
|
|
760
|
+
type: string
|
|
761
|
+
enum:
|
|
762
|
+
- low
|
|
763
|
+
- medium
|
|
764
|
+
- high
|
|
765
|
+
- xhigh
|
|
766
|
+
x-enumDescriptions:
|
|
767
|
+
low: Minimal reasoning before answering.
|
|
768
|
+
medium: Moderate reasoning.
|
|
769
|
+
high: Extensive reasoning.
|
|
770
|
+
xhigh: Maximum reasoning.
|
|
771
|
+
description: Reasoning depth for models that expose it.
|
|
772
|
+
x-celigo-ai-guidance:
|
|
773
|
+
- |-
|
|
774
|
+
When the model is a catalog entry, the server validates this object against
|
|
775
|
+
that model's schema and fails the save with 422 `invalid_model_options`
|
|
776
|
+
naming the key: unknown keys are rejected, `reasoning_effort` must be one of
|
|
777
|
+
the enum values where the model accepts it at all (xAI's `grok-4.6` does;
|
|
778
|
+
DeepSeek's `deepseek-chat` rejects the key), and numeric bounds apply —
|
|
779
|
+
on `grok-4.6`, `temperature` ≤ 2, `topP` ≤ 1, `maxOutputTokens` ≥ 100.
|
|
780
|
+
- |-
|
|
781
|
+
With a `_connectionId` and a model the catalog does not list, the object is
|
|
782
|
+
passed through unvalidated — send only options the vendor's API accepts.
|
|
783
|
+
instructions:
|
|
784
|
+
type: string
|
|
785
|
+
description: |-
|
|
786
|
+
System prompt for a catalog provider (generic flat format). Built-in providers
|
|
787
|
+
set it inside their own block (`openai.instructions`,
|
|
788
|
+
`litellm._overrides.anthropic.systemInstruction`).
|
|
789
|
+
output:
|
|
790
|
+
type: object
|
|
791
|
+
description: |-
|
|
792
|
+
Output format for a catalog provider (generic flat format). Built-in providers
|
|
793
|
+
configure it inside their own block (`openai.output`, `litellm.responseFormat`).
|
|
794
|
+
properties:
|
|
795
|
+
format:
|
|
796
|
+
type: object
|
|
797
|
+
description: Controls the structure of the model's output.
|
|
798
|
+
properties:
|
|
799
|
+
type:
|
|
800
|
+
type: string
|
|
801
|
+
enum:
|
|
802
|
+
- text
|
|
803
|
+
- json_schema
|
|
804
|
+
x-enumDescriptions:
|
|
805
|
+
text: Free-form text.
|
|
806
|
+
json_schema: Structured JSON conforming to `jsonSchema`.
|
|
807
|
+
description: Output type.
|
|
808
|
+
x-celigo-ai-guidance:
|
|
809
|
+
- |-
|
|
810
|
+
`blob` is not accepted here — the save fails with 422
|
|
811
|
+
`unsupported_output_format` naming the model (verified on `grok-4.6`).
|
|
812
|
+
name:
|
|
813
|
+
type: string
|
|
814
|
+
description: Name of the JSON schema, for `json_schema` output.
|
|
815
|
+
strict:
|
|
816
|
+
type: boolean
|
|
817
|
+
description: When true, the model must conform exactly to `jsonSchema`.
|
|
818
|
+
jsonSchema:
|
|
819
|
+
type: object
|
|
820
|
+
additionalProperties: true
|
|
821
|
+
description: JSON Schema the structured output must conform to, for `json_schema` output.
|
|
822
|
+
verbose:
|
|
823
|
+
type: string
|
|
824
|
+
description: Level of detail in the model's response, for models that expose it.
|
|
825
|
+
tools:
|
|
826
|
+
type: array
|
|
827
|
+
description: |-
|
|
828
|
+
Tools available to a catalog-provider agent (generic flat format). Entries mirror
|
|
829
|
+
the built-in providers' tool entries: a Celigo Tool by `_toolId`, an MCP server by
|
|
830
|
+
`_mcpConnectionId`, or a vendor web-search tool.
|
|
831
|
+
items:
|
|
832
|
+
type: object
|
|
833
|
+
properties:
|
|
834
|
+
type:
|
|
835
|
+
type: string
|
|
836
|
+
enum:
|
|
837
|
+
- tool
|
|
838
|
+
- mcp
|
|
839
|
+
- web_search
|
|
840
|
+
x-enumDescriptions:
|
|
841
|
+
tool: Reference a reusable Celigo Tool resource.
|
|
842
|
+
mcp: Connect to an MCP server for additional external tools.
|
|
843
|
+
web_search: Search the web for real-time information, where the vendor's model supports it.
|
|
844
|
+
description: Type of tool entry.
|
|
845
|
+
tool:
|
|
846
|
+
type: object
|
|
847
|
+
description: Reference to a Celigo Tool resource, used when type is "tool".
|
|
848
|
+
properties:
|
|
849
|
+
_toolId:
|
|
850
|
+
type: string
|
|
851
|
+
format: objectId
|
|
852
|
+
x-celigo-refModel: tools
|
|
853
|
+
description: The Celigo Tool to call.
|
|
854
|
+
mcp:
|
|
855
|
+
type: object
|
|
856
|
+
description: MCP server connection, used when type is "mcp".
|
|
857
|
+
properties:
|
|
858
|
+
_mcpConnectionId:
|
|
859
|
+
type: string
|
|
860
|
+
format: objectId
|
|
861
|
+
x-celigo-refModel: connections
|
|
862
|
+
description: Connection to the MCP server.
|
|
863
|
+
allowedTools:
|
|
864
|
+
type: array
|
|
865
|
+
description: |-
|
|
866
|
+
Specific tools to allow from the MCP server (all if omitted). Each entry
|
|
867
|
+
is either a plain tool name or an object carrying display metadata.
|
|
868
|
+
items:
|
|
869
|
+
type:
|
|
870
|
+
- string
|
|
871
|
+
- object
|
|
872
|
+
config:
|
|
873
|
+
type: object
|
|
874
|
+
additionalProperties: true
|
|
875
|
+
description: Tool-specific options for vendor-native tools (for example web-search settings).
|
|
876
|
+
x-celigo-ai-guidance:
|
|
877
|
+
- |-
|
|
878
|
+
References are checked on save: an unknown `_toolId` or `_mcpConnectionId`
|
|
879
|
+
fails with 422 `invalid_ref` naming the array index.
|
|
880
|
+
prompts:
|
|
881
|
+
type: array
|
|
882
|
+
description: |-
|
|
883
|
+
MCP prompt entries available to a catalog-provider agent (generic flat format).
|
|
884
|
+
Each entry references one MCP connection and the prompt names allowed from it.
|
|
885
|
+
items:
|
|
886
|
+
type: object
|
|
887
|
+
properties:
|
|
888
|
+
type:
|
|
889
|
+
type: string
|
|
890
|
+
enum:
|
|
891
|
+
- mcp
|
|
892
|
+
x-enumDescriptions:
|
|
893
|
+
mcp: Reference prompts exposed by an MCP server.
|
|
894
|
+
description: Type of prompt entry. Always "mcp".
|
|
895
|
+
mcp:
|
|
896
|
+
type: object
|
|
897
|
+
properties:
|
|
898
|
+
_mcpConnectionId:
|
|
899
|
+
type: string
|
|
900
|
+
format: objectId
|
|
901
|
+
x-celigo-refModel: connections
|
|
902
|
+
description: Connection to the MCP server that exposes the prompts.
|
|
903
|
+
allowedPrompts:
|
|
904
|
+
type: array
|
|
905
|
+
description: Prompt names the agent may fetch from the server.
|
|
906
|
+
items:
|
|
907
|
+
type: string
|
|
908
|
+
x-celigo-ai-guidance:
|
|
909
|
+
- |-
|
|
910
|
+
An unknown `_mcpConnectionId` fails the save with 422 `invalid_ref` naming
|
|
911
|
+
the array index.
|
|
912
|
+
resources:
|
|
913
|
+
$ref: '#/components/schemas/McpResources'
|
|
652
914
|
openai:
|
|
653
915
|
type: object
|
|
654
916
|
description: |
|
|
@@ -679,10 +941,11 @@ components:
|
|
|
679
941
|
x-celigo-ai-guidance:
|
|
680
942
|
- |-
|
|
681
943
|
With platform-managed credentials (no `_connectionId` on the parent
|
|
682
|
-
import), the model must be
|
|
683
|
-
unlisted model
|
|
684
|
-
|
|
685
|
-
|
|
944
|
+
import), the model must be one the platform hosts. The save does not
|
|
945
|
+
check this — an unlisted model saves, and the agent's first run fails
|
|
946
|
+
with 422 `invalid_model`, whose message lists the hosted models. A
|
|
947
|
+
BYOK connection bypasses the hosted list and the model string is
|
|
948
|
+
passed through to the provider as-is.
|
|
686
949
|
reasoning:
|
|
687
950
|
type: object
|
|
688
951
|
description: Controls depth of reasoning for complex tasks.
|
|
@@ -701,18 +964,21 @@ components:
|
|
|
701
964
|
- medium
|
|
702
965
|
- high
|
|
703
966
|
- xhigh
|
|
967
|
+
- max
|
|
704
968
|
x-enumDescriptions:
|
|
705
969
|
none: No additional reasoning effort.
|
|
706
970
|
minimal: Least reasoning effort for simple, straightforward tasks.
|
|
707
971
|
low: Light reasoning for moderately simple tasks.
|
|
708
972
|
medium: Balanced reasoning effort for typical tasks.
|
|
709
|
-
high:
|
|
710
|
-
xhigh:
|
|
973
|
+
high: Heavy reasoning effort for complex, multi-step tasks.
|
|
974
|
+
xhigh: Very high reasoning effort for the most demanding, multi-step tasks.
|
|
975
|
+
max: Highest available reasoning effort, above xhigh.
|
|
711
976
|
description: How much reasoning effort the model should invest
|
|
712
977
|
x-celigo-ai-guidance:
|
|
713
978
|
- |-
|
|
714
979
|
How much reasoning effort the model should invest.
|
|
715
980
|
Reasoning- capable models only — see `reasoning` for the gating rule.
|
|
981
|
+
- Any other value fails the save with 422 `enum` on `aiAgent.openai.reasoning.effort`.
|
|
716
982
|
summary:
|
|
717
983
|
type: string
|
|
718
984
|
enum:
|
|
@@ -797,12 +1063,22 @@ components:
|
|
|
797
1063
|
- manual
|
|
798
1064
|
- json
|
|
799
1065
|
x-enumDescriptions:
|
|
800
|
-
manual: The
|
|
801
|
-
json: The
|
|
1066
|
+
manual: The UI opens `jsonSchema` in the visual field-by-field editor
|
|
1067
|
+
json: The UI opens `jsonSchema` in the raw JSON editor
|
|
802
1068
|
description: |-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
1069
|
+
Which editor the UI opens `jsonSchema` in; the schema sent to the provider
|
|
1070
|
+
is the same either way, and the field is only meaningful when `type` is
|
|
1071
|
+
"json_schema". Unset opens the visual editor, and an edit there rebuilds
|
|
1072
|
+
`jsonSchema` from the field list, keeping only `type`, `properties`,
|
|
1073
|
+
`required`, `items`, `description`, `enum`, `pattern`, length and numeric
|
|
1074
|
+
bounds, `multipleOf`, `minItems`/`maxItems` and a `"null"` type — other
|
|
1075
|
+
keywords are dropped without a prompt, and `integer` becomes `number`.
|
|
1076
|
+
x-celigo-ai-guidance:
|
|
1077
|
+
- |-
|
|
1078
|
+
Set `json` on a schema written as raw JSON; keep a user's `manual` and stay
|
|
1079
|
+
inside the keywords the visual editor keeps. A full PUT that omits the field
|
|
1080
|
+
clears it, and a value outside the enum fails the save with 422 `enum` on
|
|
1081
|
+
`aiAgent.openai.output.format.schemaMode`.
|
|
806
1082
|
name:
|
|
807
1083
|
type: string
|
|
808
1084
|
description: Name for the output format (used with json_schema)
|
|
@@ -848,6 +1124,13 @@ components:
|
|
|
848
1124
|
additionalproperties:
|
|
849
1125
|
type: boolean
|
|
850
1126
|
description: When true, the structured output may include properties beyond those defined in `properties`.
|
|
1127
|
+
schema:
|
|
1128
|
+
type: object
|
|
1129
|
+
readOnly: true
|
|
1130
|
+
additionalProperties: true
|
|
1131
|
+
description: |-
|
|
1132
|
+
Server-written copy of `jsonSchema`, returned whenever `jsonSchema` is set — on
|
|
1133
|
+
AI agent imports and on guardrail agents alike. Send `jsonSchema`, not this field.
|
|
851
1134
|
if:
|
|
852
1135
|
properties:
|
|
853
1136
|
type:
|
|
@@ -890,13 +1173,19 @@ components:
|
|
|
890
1173
|
- web_search
|
|
891
1174
|
- mcp
|
|
892
1175
|
- image_generation
|
|
1176
|
+
- code_execution
|
|
893
1177
|
- tool
|
|
894
1178
|
x-enumDescriptions:
|
|
895
1179
|
web_search: Search the web for real-time information.
|
|
896
1180
|
mcp: Connect to an MCP server for additional external tools.
|
|
897
1181
|
image_generation: Generate images using an AI image model.
|
|
1182
|
+
code_execution: 'Enable OpenAI''s built-in code-execution tool; carries no configuration block, send `{type: code_execution}` only'
|
|
898
1183
|
tool: Reference a reusable Celigo Tool resource.
|
|
899
|
-
description:
|
|
1184
|
+
description: |-
|
|
1185
|
+
Type of tool. Every type except `code_execution` is configured through the
|
|
1186
|
+
sibling object of the same name; OpenAI spells this one `code_execution`, while
|
|
1187
|
+
the Gemini and Anthropic overrides spell theirs `codeExecution` — the other spelling
|
|
1188
|
+
fails with 422 `enum`.
|
|
900
1189
|
webSearch:
|
|
901
1190
|
type: object
|
|
902
1191
|
description: Web search configuration (empty object to enable)
|
|
@@ -1085,6 +1374,13 @@ components:
|
|
|
1085
1374
|
- claude-sonnet-4-6
|
|
1086
1375
|
- claude-opus-4-7
|
|
1087
1376
|
x-celigo-ui-override: Required by the AI agent configuration form. Encoded here to mirror the form so builders produce connectable configurations.
|
|
1377
|
+
x-celigo-ai-guidance:
|
|
1378
|
+
- |-
|
|
1379
|
+
With platform-managed credentials (no `_connectionId` on the parent
|
|
1380
|
+
import), the model must be one the platform hosts for the provider —
|
|
1381
|
+
Gemini and Anthropic Claude both have a hosted list. The save does not
|
|
1382
|
+
check this — an unlisted model saves, and the agent's first run fails
|
|
1383
|
+
with 422 `invalid_model`, whose message lists the hosted models.
|
|
1088
1384
|
temperature:
|
|
1089
1385
|
type: number
|
|
1090
1386
|
minimum: 0
|
|
@@ -1135,12 +1431,22 @@ components:
|
|
|
1135
1431
|
- manual
|
|
1136
1432
|
- json
|
|
1137
1433
|
x-enumDescriptions:
|
|
1138
|
-
manual: The
|
|
1139
|
-
json: The
|
|
1434
|
+
manual: The UI opens `jsonSchema` in the visual field-by-field editor
|
|
1435
|
+
json: The UI opens `jsonSchema` in the raw JSON editor
|
|
1140
1436
|
description: |-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1437
|
+
Which editor the UI opens `jsonSchema` in; the schema sent to the provider is
|
|
1438
|
+
the same either way, and the field is only meaningful when `type` is
|
|
1439
|
+
"json_schema". Unset opens the visual editor, and an edit there rebuilds
|
|
1440
|
+
`jsonSchema` from the field list, keeping only `type`, `properties`, `required`,
|
|
1441
|
+
`items`, `description`, `enum`, `pattern`, length and numeric bounds,
|
|
1442
|
+
`multipleOf`, `minItems`/`maxItems` and a `"null"` type — other keywords are
|
|
1443
|
+
dropped without a prompt, and `integer` becomes `number`.
|
|
1444
|
+
x-celigo-ai-guidance:
|
|
1445
|
+
- |-
|
|
1446
|
+
Set `json` on a schema written as raw JSON; keep a user's `manual` and stay inside
|
|
1447
|
+
the keywords the visual editor keeps. A full PUT that omits the field clears it,
|
|
1448
|
+
and a value outside the enum fails the save with 422 `enum` on
|
|
1449
|
+
`aiAgent.litellm.responseFormat.schemaMode`.
|
|
1144
1450
|
name:
|
|
1145
1451
|
type: string
|
|
1146
1452
|
description: Name for the output format (used with json_schema).
|
|
@@ -1223,15 +1529,19 @@ components:
|
|
|
1223
1529
|
- googleSearch
|
|
1224
1530
|
- urlContext
|
|
1225
1531
|
- fileSearch
|
|
1532
|
+
- codeExecution
|
|
1226
1533
|
- mcp
|
|
1227
1534
|
- tool
|
|
1228
1535
|
x-enumDescriptions:
|
|
1229
1536
|
googleSearch: Use Google Search for real-time information grounding.
|
|
1230
1537
|
urlContext: Retrieve and use content from specified URLs.
|
|
1231
1538
|
fileSearch: Search through previously uploaded files.
|
|
1539
|
+
codeExecution: 'Enable Gemini''s built-in code-execution tool; carries no configuration block, send `{type: codeExecution}` only'
|
|
1232
1540
|
mcp: Connect to an MCP server for additional external tools.
|
|
1233
1541
|
tool: Reference a reusable Celigo Tool resource.
|
|
1234
|
-
description:
|
|
1542
|
+
description: |-
|
|
1543
|
+
Type of Gemini tool. `codeExecution` is the Gemini spelling — `code_execution`
|
|
1544
|
+
fails with 422 `enum`.
|
|
1235
1545
|
googleSearch:
|
|
1236
1546
|
type: object
|
|
1237
1547
|
description: Google Search configuration (empty object to enable)
|
|
@@ -1563,11 +1873,15 @@ components:
|
|
|
1563
1873
|
- tool
|
|
1564
1874
|
- mcp
|
|
1565
1875
|
- webSearch
|
|
1876
|
+
- codeExecution
|
|
1566
1877
|
x-enumDescriptions:
|
|
1567
1878
|
tool: Reference a reusable Celigo Tool resource.
|
|
1568
1879
|
mcp: Connect to an MCP server for additional external tools.
|
|
1569
1880
|
webSearch: Search the web for real-time information.
|
|
1570
|
-
|
|
1881
|
+
codeExecution: 'Enable Anthropic''s built-in code-execution tool; carries no configuration block, send `{type: codeExecution}` only'
|
|
1882
|
+
description: |-
|
|
1883
|
+
Type of Claude tool. `codeExecution` is the Anthropic spelling — `code_execution`
|
|
1884
|
+
fails with 422 `enum`.
|
|
1571
1885
|
tool:
|
|
1572
1886
|
type: object
|
|
1573
1887
|
description: Reference to a Celigo Tool resource, used when type is "tool".
|
|
@@ -1615,9 +1929,43 @@ components:
|
|
|
1615
1929
|
description: Connection to the MCP server.
|
|
1616
1930
|
allowedTools:
|
|
1617
1931
|
type: array
|
|
1618
|
-
description:
|
|
1932
|
+
description: |-
|
|
1933
|
+
Specific tools to allow from the MCP server (all if omitted). Each
|
|
1934
|
+
entry is either a plain tool name or an object carrying display
|
|
1935
|
+
metadata — same contract as the OpenAI and Gemini `allowedTools`.
|
|
1619
1936
|
items:
|
|
1620
|
-
|
|
1937
|
+
oneOf:
|
|
1938
|
+
- title: name
|
|
1939
|
+
type: string
|
|
1940
|
+
description: Tool name as exposed by the MCP server.
|
|
1941
|
+
- title: tool
|
|
1942
|
+
type: object
|
|
1943
|
+
required:
|
|
1944
|
+
- name
|
|
1945
|
+
properties:
|
|
1946
|
+
name:
|
|
1947
|
+
type: string
|
|
1948
|
+
maxLength: 256
|
|
1949
|
+
description: Tool name as exposed by the MCP server.
|
|
1950
|
+
title:
|
|
1951
|
+
type: string
|
|
1952
|
+
maxLength: 300
|
|
1953
|
+
description: Display title shown for the tool.
|
|
1954
|
+
description:
|
|
1955
|
+
type: string
|
|
1956
|
+
maxLength: 1000
|
|
1957
|
+
description: Display description shown for the tool.
|
|
1958
|
+
x-celigo-ai-guidance:
|
|
1959
|
+
- |-
|
|
1960
|
+
Object entries accept only name/title/description — any other key
|
|
1961
|
+
fails the save with 422 `invalid_field_value` ("unknown field(s): …"),
|
|
1962
|
+
and an object without `name` fails with 422 `missing_required_field`
|
|
1963
|
+
("Expected field: name to be present.").
|
|
1964
|
+
examples:
|
|
1965
|
+
- - hub_repo_search
|
|
1966
|
+
- name: hub_repo_info
|
|
1967
|
+
title: Repository info
|
|
1968
|
+
description: Look up a repository by name
|
|
1621
1969
|
webSearch:
|
|
1622
1970
|
type: object
|
|
1623
1971
|
description: Web search configuration, used when type is "webSearch".
|
|
@@ -1739,6 +2087,22 @@ components:
|
|
|
1739
2087
|
litellm:
|
|
1740
2088
|
required:
|
|
1741
2089
|
- model
|
|
2090
|
+
else:
|
|
2091
|
+
if:
|
|
2092
|
+
properties:
|
|
2093
|
+
provider:
|
|
2094
|
+
enum:
|
|
2095
|
+
- mistral
|
|
2096
|
+
- xai
|
|
2097
|
+
- huggingface
|
|
2098
|
+
- deepseek
|
|
2099
|
+
- cohere
|
|
2100
|
+
- groq
|
|
2101
|
+
required:
|
|
2102
|
+
- provider
|
|
2103
|
+
then:
|
|
2104
|
+
required:
|
|
2105
|
+
- model
|
|
1742
2106
|
items:
|
|
1743
2107
|
type: object
|
|
1744
2108
|
properties:
|
|
@@ -1754,7 +2118,11 @@ components:
|
|
|
1754
2118
|
- For regular fields: Set to the exact property name (e.g., "firstName", "price", "isActive")
|
|
1755
2119
|
- For object fields: Set to the object property name, then add child mappings in the 'mappings' array
|
|
1756
2120
|
- For array fields: Set to the array property name, then configure 'buildArrayHelper'
|
|
1757
|
-
-
|
|
2121
|
+
- Two structural blanks: the inner array item of an array of arrays (it has no field name),
|
|
2122
|
+
and the single top-level `objectarray` item of a `rows [ ]` mapping (the array output
|
|
2123
|
+
structure — see the array's description). A child-bearing wrapper and a source-only row that
|
|
2124
|
+
already exist in a saved document also stay unnamed when the tree is re-sent — filling in a
|
|
2125
|
+
name changes the output; it does not complete the row
|
|
1758
2126
|
|
|
1759
2127
|
IMPORTANT: Do NOT use dot notation (e.g., "customer.firstName") in this field. Instead, create proper
|
|
1760
2128
|
hierarchical structure with nested mappings:
|
|
@@ -1769,8 +2137,9 @@ components:
|
|
|
1769
2137
|
}
|
|
1770
2138
|
```
|
|
1771
2139
|
|
|
1772
|
-
When parsing existing mappings, empty
|
|
1773
|
-
|
|
2140
|
+
When parsing existing mappings, an empty `generate` inside a parent array is an inner array; an
|
|
2141
|
+
empty `generate` on the ONLY top-level item, with `dataType: objectarray`, is the `rows [ ]` JSON
|
|
2142
|
+
structure — array output, bound as `rows` in templates — and is intentional, not a missing name.
|
|
1774
2143
|
examples:
|
|
1775
2144
|
- name
|
|
1776
2145
|
- address
|
|
@@ -1856,9 +2225,11 @@ components:
|
|
|
1856
2225
|
This field supports THREE DISTINCT PATTERNS that are easily distinguished:
|
|
1857
2226
|
|
|
1858
2227
|
**1. json Path Syntax**
|
|
1859
|
-
- MUST start with '
|
|
2228
|
+
- MUST start with '$' — the record root. An object record is addressed as
|
|
2229
|
+
'$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
|
|
1860
2230
|
- Used for precisely targeting data in structured JSON objects
|
|
1861
|
-
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
|
|
2231
|
+
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
|
|
2232
|
+
'$[*].Tax' (every row of a grouped record)
|
|
1862
2233
|
- Wildcards like [*] extract multiple values/objects
|
|
1863
2234
|
|
|
1864
2235
|
```json
|
|
@@ -1869,7 +2240,8 @@ components:
|
|
|
1869
2240
|
- Contains '{{' and '}}' pattern
|
|
1870
2241
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
1871
2242
|
- Can include logic, formatting, and computation
|
|
1872
|
-
- Access input record fields with {{record.fieldName}} notation
|
|
2243
|
+
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
2244
|
+
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
1873
2245
|
- Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
1874
2246
|
- Valid on `object`, `objectarray`, and primitive-array dataTypes as
|
|
1875
2247
|
well as scalars — the rendered template output must parse into the
|
|
@@ -1880,7 +2252,7 @@ components:
|
|
|
1880
2252
|
```
|
|
1881
2253
|
|
|
1882
2254
|
**3. Hard-Coded Value (literal string)**
|
|
1883
|
-
- Does NOT start with '
|
|
2255
|
+
- Does NOT start with '$'
|
|
1884
2256
|
- Does NOT contain handlebars '{{' syntax
|
|
1885
2257
|
- System treats it as a literal string value
|
|
1886
2258
|
- VERY COMMON for setting static/constant values
|
|
@@ -1902,10 +2274,38 @@ components:
|
|
|
1902
2274
|
- The system maintains this context even in deeply nested mappings
|
|
1903
2275
|
- For object mappings without child mappings, extract should return a complete object
|
|
1904
2276
|
- When both extract and mappings are defined for objects, extract is applied first
|
|
2277
|
+
- The root is the record as it arrives: an object record roots at `$.field`; a
|
|
2278
|
+
grouped record (an array of rows — grouped exports, file key columns, NetSuite
|
|
2279
|
+
grouped saved searches) roots at the array, so its rows are addressed as
|
|
2280
|
+
`$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
|
|
2281
|
+
record's shape resolves to nothing without an error.
|
|
1905
2282
|
|
|
1906
2283
|
For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
|
|
1907
2284
|
For hard-coded values, simply use the literal string as the extract value.
|
|
1908
2285
|
x-celigo-ai-guidance:
|
|
2286
|
+
- |-
|
|
2287
|
+
## GROUPED (ARRAY) RECORDS
|
|
2288
|
+
Decide the JSONPath root from the record's shape before writing
|
|
2289
|
+
any extract. When the record is an array of rows, `$.field`,
|
|
2290
|
+
`$.properties.field` and `$.rows[*].field` all resolve to
|
|
2291
|
+
nothing — the processor still reports success and the request
|
|
2292
|
+
body ships as `{}`. Address rows as `$[0].field` (that row's
|
|
2293
|
+
value, typed) or `$[*].field` (every row: joined with commas
|
|
2294
|
+
into a `string` destination; rejected with
|
|
2295
|
+
`incompatible_destination_conversion` into a `number`
|
|
2296
|
+
destination). Column labels with spaces work as
|
|
2297
|
+
`$[*][Order Number]`, `$[*].[Order Number]`, or
|
|
2298
|
+
`$[*]['Order Number']`. For one destination element per row
|
|
2299
|
+
the two array kinds take different helper forms: a primitive
|
|
2300
|
+
array (`stringarray` / `numberarray`) uses `buildArrayHelper:
|
|
2301
|
+
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
2302
|
+
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
2303
|
+
with the children addressing the row relatively (`$.field`,
|
|
2304
|
+
`{{rows.field}}`). An `extract` placed directly on the
|
|
2305
|
+
array-typed field yields nothing. Handlebars
|
|
2306
|
+
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
2307
|
+
an object record as `record`. The reverse holds too: `$[*]` on
|
|
2308
|
+
an object record iterates the object's values, not rows.
|
|
1909
2309
|
- |-
|
|
1910
2310
|
## SIZE LIMIT
|
|
1911
2311
|
The platform's import save validator caps this field at **1024
|
|
@@ -1987,7 +2387,8 @@ components:
|
|
|
1987
2387
|
Explicit JSON `null` is itself a valid fallback: the destination field is written as
|
|
1988
2388
|
JSON null when the extract yields nothing (the Mapper UI's "Use null as default value"
|
|
1989
2389
|
action). Omitting the key entirely means no fallback — the field is left out of the
|
|
1990
|
-
output when the extract is empty (the UI's "Do nothing" action).
|
|
2390
|
+
output when the extract is empty (the UI's "Do nothing" action). Failing the record
|
|
2391
|
+
instead is `conditional.when: fail_record_when_empty`, which excludes a default.
|
|
1991
2392
|
x-celigo-ai-guidance:
|
|
1992
2393
|
- |-
|
|
1993
2394
|
`"default": null` and `"default": ""` are distinct saved values, not
|
|
@@ -1996,6 +2397,12 @@ components:
|
|
|
1996
2397
|
Preserve them verbatim when editing or migrating a mapping — dropping
|
|
1997
2398
|
the key changes runtime behavior from "use null/empty string as
|
|
1998
2399
|
default value" to "do nothing" (field omitted from the output).
|
|
2400
|
+
- |-
|
|
2401
|
+
The four "Action to take if source field has no value" choices map to:
|
|
2402
|
+
do nothing → no `default` key (optionally `conditional.when:
|
|
2403
|
+
extract_not_empty`); use null → `"default": null`; use empty string or
|
|
2404
|
+
a custom value → `"default": "<value>"`; cause the record to fail →
|
|
2405
|
+
`conditional.when: fail_record_when_empty` with no `default` key.
|
|
1999
2406
|
examples:
|
|
2000
2407
|
- N/A
|
|
2001
2408
|
- '0'
|
|
@@ -2163,7 +2570,11 @@ components:
|
|
|
2163
2570
|
(`$.items[*]`), `"$"` (the record root), or omission — a
|
|
2164
2571
|
constructed entry (child `mappings` with the extract omitted or
|
|
2165
2572
|
`"$"`; the two spellings are equivalent) contributes exactly one
|
|
2166
|
-
element, and entries append in order.
|
|
2573
|
+
element, and entries append in order. On a grouped (array)
|
|
2574
|
+
record the record itself is the array to iterate: `"$[*]"`
|
|
2575
|
+
yields one `objectarray` element per row (children address the
|
|
2576
|
+
row as `$.field`), and `"$[*].field"` yields one primitive-array
|
|
2577
|
+
value per row. Indexed or comma-joined
|
|
2167
2578
|
entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
|
|
2168
2579
|
processor renders the entire destination array as null with no
|
|
2169
2580
|
validation error. To emit a fixed number of static elements, add
|
|
@@ -2184,7 +2595,9 @@ components:
|
|
|
2184
2595
|
|
|
2185
2596
|
**For Simple Arrays (stringarray, numberarray, booleanarray)**
|
|
2186
2597
|
- Only the 'extract' field is used to pull values
|
|
2187
|
-
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values
|
|
2598
|
+
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
|
|
2599
|
+
on a grouped (array) record the record itself is the array, so the
|
|
2600
|
+
path roots at it ($[*].name — one value per row)
|
|
2188
2601
|
- Each result is converted to the appropriate primitive type
|
|
2189
2602
|
```json
|
|
2190
2603
|
{
|
|
@@ -2286,11 +2699,13 @@ components:
|
|
|
2286
2699
|
- When both extract and mappings are provided, the system creates special composite objects
|
|
2287
2700
|
that maintain hierarchical context during processing
|
|
2288
2701
|
- This enables accessing both the current array element AND its parent context
|
|
2289
|
-
- An ITERATING entry's extract MUST
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2702
|
+
- An ITERATING entry's extract MUST be a JSON path that iterates an array:
|
|
2703
|
+
'$.items[*]' when the array is a field of an object record, or '$[*]'
|
|
2704
|
+
(objectarray) / '$[*].field' (primitive arrays) when the record itself is a
|
|
2705
|
+
grouped array of rows. A CONSTRUCTED entry (child mappings building one
|
|
2706
|
+
element) instead omits extract or sets it to exactly "$" — never rewrite "$"
|
|
2707
|
+
into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
|
|
2708
|
+
entire destination array as null without raising a validation error
|
|
2294
2709
|
- Each array helper entry acts independently, potentially adding multiple elements
|
|
2295
2710
|
|
|
2296
2711
|
The buildArrayHelper is the most complex part of the mappings system - always analyze the
|
|
@@ -2320,6 +2735,22 @@ components:
|
|
|
2320
2735
|
- $.order.lineItems[*]
|
|
2321
2736
|
- $.parents[*].children[*]
|
|
2322
2737
|
- $
|
|
2738
|
+
name:
|
|
2739
|
+
type: string
|
|
2740
|
+
maxLength: 200
|
|
2741
|
+
description: |
|
|
2742
|
+
Display label for this source object in the mapper, so the sources of
|
|
2743
|
+
an object array can be told apart instead of all showing as `$`.
|
|
2744
|
+
Has no effect at runtime; stored only when non-empty.
|
|
2745
|
+
x-celigo-ai-guidance:
|
|
2746
|
+
- |-
|
|
2747
|
+
Carry an existing `name` through every edit — it is the user's label
|
|
2748
|
+
for the tab, and an entry sent without it loses the label. Duplicate
|
|
2749
|
+
names across entries are allowed. Set one only when the user names
|
|
2750
|
+
the source object; never invent labels.
|
|
2751
|
+
examples:
|
|
2752
|
+
- Billing address
|
|
2753
|
+
- Shipping address
|
|
2323
2754
|
sourceDataType:
|
|
2324
2755
|
type: string
|
|
2325
2756
|
description: |
|
|
@@ -2368,17 +2799,31 @@ components:
|
|
|
2368
2799
|
type: object
|
|
2369
2800
|
description: |
|
|
2370
2801
|
Defines conditional rules for including each array element in the result.
|
|
2802
|
+
x-celigo-ai-guidance:
|
|
2803
|
+
- |-
|
|
2804
|
+
Judged against this entry's own `extract` (the array source). The
|
|
2805
|
+
design scopes the UI's tab-level "Action to take if source field has
|
|
2806
|
+
no value" to copy-as-is tabs (no child `mappings`); the API accepts
|
|
2807
|
+
`fail_record_when_empty` on a mapped entry as well, and the mapper
|
|
2808
|
+
processor honors it there — the record fails when that array is
|
|
2809
|
+
missing or empty (`errors[]` entry `code: extract_empty`, `fatal:
|
|
2810
|
+
true`, message `<generate>: Source field has no value`; probed
|
|
2811
|
+
2026-10-09). Say so when writing it on a mapped entry: the user may
|
|
2812
|
+
not find the setting in the mapper's tab. To fail on an empty field
|
|
2813
|
+
inside each element, set the action on that child mapping instead.
|
|
2371
2814
|
properties:
|
|
2372
2815
|
when:
|
|
2373
2816
|
type: string
|
|
2374
2817
|
description: |
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2818
|
+
Condition judged on the entry's extract — skip the elements the
|
|
2819
|
+
extract does not return, or fail the whole record when the source
|
|
2820
|
+
array is missing or empty.
|
|
2378
2821
|
enum:
|
|
2379
2822
|
- extract_not_empty
|
|
2823
|
+
- fail_record_when_empty
|
|
2380
2824
|
x-enumDescriptions:
|
|
2381
|
-
extract_not_empty: Include
|
|
2825
|
+
extract_not_empty: Include an array element only when the extract returns a non-empty value for it
|
|
2826
|
+
fail_record_when_empty: Fail the record when the entry's source array is missing or empty
|
|
2382
2827
|
examples:
|
|
2383
2828
|
- extract_not_empty
|
|
2384
2829
|
mappings:
|
|
@@ -2478,6 +2923,20 @@ components:
|
|
|
2478
2923
|
extract: $.price
|
|
2479
2924
|
dataType: number
|
|
2480
2925
|
status: Active
|
|
2926
|
+
if:
|
|
2927
|
+
properties:
|
|
2928
|
+
conditional:
|
|
2929
|
+
properties:
|
|
2930
|
+
when:
|
|
2931
|
+
const: fail_record_when_empty
|
|
2932
|
+
required:
|
|
2933
|
+
- when
|
|
2934
|
+
required:
|
|
2935
|
+
- conditional
|
|
2936
|
+
then:
|
|
2937
|
+
not:
|
|
2938
|
+
required:
|
|
2939
|
+
- default
|
|
2481
2940
|
status:
|
|
2482
2941
|
type: string
|
|
2483
2942
|
description: |
|
|
@@ -2485,9 +2944,10 @@ components:
|
|
|
2485
2944
|
Required on every mapping entry. Controls whether the mapping is applied.
|
|
2486
2945
|
|
|
2487
2946
|
**Guidance**
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2947
|
+
Only `Active` rows run. `Draft` and `Inactive` rows keep their
|
|
2948
|
+
configuration, are saved with minimal validation, and are skipped at
|
|
2949
|
+
runtime and in preview; a non-Active parent skips its whole subtree
|
|
2950
|
+
whatever its children say. The API rejects a mapping missing this field
|
|
2491
2951
|
(validation error: "Mapping object must have status field present.").
|
|
2492
2952
|
x-celigo-ai-guidance:
|
|
2493
2953
|
- |-
|
|
@@ -2496,12 +2956,28 @@ components:
|
|
|
2496
2956
|
field validations. The value is case-sensitive. The API rejects:
|
|
2497
2957
|
- Missing field: `[status_field_absent] Mapping object must have status field present.`
|
|
2498
2958
|
- Wrong case (e.g. `"active"`): `[invalid_status_enums] active is not a valid enum for status field.`
|
|
2959
|
+
- |-
|
|
2960
|
+
`"Inactive"` is the user's "Set inactive" on a row: use it only when
|
|
2961
|
+
asked to disable or park a row, never to mean incomplete (that is
|
|
2962
|
+
`"Draft"`). Setting a parent `Inactive` means no `Active` row may
|
|
2963
|
+
remain under it — the save rejects an `Active` row under an
|
|
2964
|
+
`Inactive` parent (`[inactive_parent_active_child]` on `mappings`,
|
|
2965
|
+
no message text) and never cascades or promotes on its own; `Draft`
|
|
2966
|
+
descendants are kept as they are, and a `Draft` parent does not gate
|
|
2967
|
+
its children. The UI's Set inactive on a parent marks the parent and
|
|
2968
|
+
every child `Inactive` (IO-166197). Re-enabling a child
|
|
2969
|
+
means re-enabling its ancestors in the same payload. Edits that keep
|
|
2970
|
+
existing rows must carry their stored status forward — rewriting a
|
|
2971
|
+
`Draft` or `Inactive` row to `Active` turns a row the user parked
|
|
2972
|
+
back on.
|
|
2499
2973
|
enum:
|
|
2500
2974
|
- Active
|
|
2501
2975
|
- Draft
|
|
2976
|
+
- Inactive
|
|
2502
2977
|
x-enumDescriptions:
|
|
2503
|
-
Active: The mapping is enabled and applied during processing
|
|
2504
|
-
Draft: In-progress mapping; saved without the Active-only field validations
|
|
2978
|
+
Active: The mapping is enabled and applied during processing
|
|
2979
|
+
Draft: In-progress mapping; saved without the Active-only field validations and skipped at runtime
|
|
2980
|
+
Inactive: Disabled by the user; configuration kept, skipped at runtime and in preview
|
|
2505
2981
|
examples:
|
|
2506
2982
|
- Active
|
|
2507
2983
|
conditional:
|
|
@@ -2530,6 +3006,10 @@ components:
|
|
|
2530
3006
|
- `extract_not_empty`: Apply only when the extract field returns a value
|
|
2531
3007
|
Useful for conditional mapping based on input data availability
|
|
2532
3008
|
|
|
3009
|
+
- `fail_record_when_empty`: Fail the record when the extract field returns
|
|
3010
|
+
no value (the UI's "Cause record to fail" action when the source field
|
|
3011
|
+
has no value)
|
|
3012
|
+
|
|
2533
3013
|
**Example**
|
|
2534
3014
|
```json
|
|
2535
3015
|
{
|
|
@@ -2542,28 +3022,75 @@ components:
|
|
|
2542
3022
|
}
|
|
2543
3023
|
}
|
|
2544
3024
|
```
|
|
3025
|
+
x-celigo-ai-guidance:
|
|
3026
|
+
- |-
|
|
3027
|
+
`when` holds one value, and two different settings share it: the
|
|
3028
|
+
composite-import operation gate (`record_created` / `record_updated`,
|
|
3029
|
+
the UI's "Only perform mapping when") and the empty-source action
|
|
3030
|
+
(`extract_not_empty` / `fail_record_when_empty`, the UI's "Action to
|
|
3031
|
+
take if source field has no value"). A row cannot carry both — writing
|
|
3032
|
+
one replaces the other and the save succeeds, so a composite import
|
|
3033
|
+
row that needs both has to choose. Never author `fail_record_when_empty`
|
|
3034
|
+
on a row that already carries `record_created` or `record_updated`.
|
|
2545
3035
|
properties:
|
|
2546
3036
|
when:
|
|
2547
3037
|
type: string
|
|
2548
3038
|
description: |
|
|
2549
|
-
|
|
2550
|
-
-
|
|
2551
|
-
|
|
2552
|
-
|
|
3039
|
+
Condition that gates this mapping — either an operation gate on a
|
|
3040
|
+
composite (create-or-update) import or the action to take when the
|
|
3041
|
+
extract returns no value. Empty means null, undefined or an empty
|
|
3042
|
+
string; `0`, `false` and whitespace are values.
|
|
3043
|
+
x-celigo-ai-guidance:
|
|
3044
|
+
- |-
|
|
3045
|
+
`fail_record_when_empty` is the fourth "Action to take if source field
|
|
3046
|
+
has no value" and is mutually exclusive with the other three: send it
|
|
3047
|
+
with no `default` key. A `default`, a `lookupName` or a `hardCodedValue`
|
|
3048
|
+
on the same row — or a `default` on a `buildArrayHelper` entry — is
|
|
3049
|
+
rejected at save with `[unsupported_mapping] "<key>" and conditional.when
|
|
3050
|
+
"fail_record_when_empty" cannot be present in mapping simultaneously.`
|
|
3051
|
+
(the lookup variant adds `Use lookup "allowFailures" instead.`);
|
|
3052
|
+
lookups fail through `allowFailures: false`, and a hard-coded row
|
|
3053
|
+
always has a value. At runtime an empty extract fails the record with
|
|
3054
|
+
an `errors[]` entry `{code: "extract_empty", fatal: true, source:
|
|
3055
|
+
"mapping", message: "<generate>: Source field has no value"}`
|
|
3056
|
+
("Input field has no value" in a Transformation 2.0); `0` and `false`
|
|
3057
|
+
are values and map through.
|
|
2553
3058
|
enum:
|
|
2554
3059
|
- record_created
|
|
2555
3060
|
- record_updated
|
|
2556
3061
|
- extract_not_empty
|
|
3062
|
+
- fail_record_when_empty
|
|
2557
3063
|
x-enumDescriptions:
|
|
2558
|
-
record_created: Apply this mapping only when creating a new record
|
|
2559
|
-
record_updated: Apply this mapping only when updating an existing record
|
|
2560
|
-
extract_not_empty: Apply this mapping only when the extract field returns a non-empty value
|
|
3064
|
+
record_created: Apply this mapping only when creating a new record
|
|
3065
|
+
record_updated: Apply this mapping only when updating an existing record
|
|
3066
|
+
extract_not_empty: Apply this mapping only when the extract field returns a non-empty value
|
|
3067
|
+
fail_record_when_empty: Fail the record when the extract field returns no value
|
|
2561
3068
|
examples:
|
|
2562
3069
|
- record_created
|
|
2563
3070
|
- record_updated
|
|
2564
3071
|
- extract_not_empty
|
|
3072
|
+
- fail_record_when_empty
|
|
2565
3073
|
required:
|
|
2566
3074
|
- dataType
|
|
3075
|
+
if:
|
|
3076
|
+
properties:
|
|
3077
|
+
conditional:
|
|
3078
|
+
properties:
|
|
3079
|
+
when:
|
|
3080
|
+
const: fail_record_when_empty
|
|
3081
|
+
required:
|
|
3082
|
+
- when
|
|
3083
|
+
required:
|
|
3084
|
+
- conditional
|
|
3085
|
+
then:
|
|
3086
|
+
not:
|
|
3087
|
+
anyOf:
|
|
3088
|
+
- required:
|
|
3089
|
+
- default
|
|
3090
|
+
- required:
|
|
3091
|
+
- lookupName
|
|
3092
|
+
- required:
|
|
3093
|
+
- hardCodedValue
|
|
2567
3094
|
Mappings:
|
|
2568
3095
|
type: array
|
|
2569
3096
|
description: |
|
|
@@ -2587,6 +3114,34 @@ components:
|
|
|
2587
3114
|
|
|
2588
3115
|
The system will process these nested structures recursively during runtime, ensuring proper construction
|
|
2589
3116
|
of complex hierarchical data while maintaining excellent performance.
|
|
3117
|
+
|
|
3118
|
+
On save, a leaf row with neither a source (`extract`, `hardCodedValue`, `lookupName`) nor a
|
|
3119
|
+
destination (`generate`) is dropped silently, at every nesting level, and so is an object or
|
|
3120
|
+
object-array row left with no source, no destination and no remaining child `mappings` or
|
|
3121
|
+
`buildArrayHelper` entries; a row with only one of the two, and a source-less, destination-less
|
|
3122
|
+
wrapper that still has children, are kept.
|
|
3123
|
+
|
|
3124
|
+
The shape of the array is the mapper's **JSON structure**. Named top-level items produce an object
|
|
3125
|
+
record (`record { }`). Exactly one top-level item with `dataType: objectarray` and no `generate` is
|
|
3126
|
+
the `rows [ ]` structure: the mapped record is an array — usually one element per element of the
|
|
3127
|
+
source array that root's `buildArrayHelper` iterates — Handlebars templates such as `http.body`
|
|
3128
|
+
bind it as `rows` instead of `record`, and the mapping editor shows that row's destination disabled.
|
|
3129
|
+
x-celigo-ai-guidance:
|
|
3130
|
+
- |-
|
|
3131
|
+
Rows that exist in the saved document — including `Draft` and `Inactive` rows and
|
|
3132
|
+
rows with only a source or only a destination — are the user's state: an edit that
|
|
3133
|
+
re-sends the tree must carry them through unchanged unless the user asked to change
|
|
3134
|
+
them. Only a row with neither source nor destination — and, for an object or
|
|
3135
|
+
object-array row, no remaining children — can be left out; the save would drop it
|
|
3136
|
+
anyway. A wrapper with children but no `generate` is kept by the save, so keep it.
|
|
3137
|
+
- |-
|
|
3138
|
+
A single unnamed top-level `objectarray` item is the `rows [ ]` JSON structure, not a
|
|
3139
|
+
missing destination: keep it unnamed when editing (naming it turns the output into an
|
|
3140
|
+
object, and a template that iterates `rows` then renders nothing), and author that
|
|
3141
|
+
shape only when the request body must be an array or a template iterates `rows`.
|
|
3142
|
+
The editor's save check accepts the unnamed root only in the `rows [ ]` structure;
|
|
3143
|
+
any other row with a source and no `generate` fails with "One or more destination
|
|
3144
|
+
field values not entered".
|
|
2590
3145
|
items:
|
|
2591
3146
|
type: object
|
|
2592
3147
|
properties:
|
|
@@ -2602,7 +3157,11 @@ components:
|
|
|
2602
3157
|
- For regular fields: Set to the exact property name (e.g., "firstName", "price", "isActive")
|
|
2603
3158
|
- For object fields: Set to the object property name, then add child mappings in the 'mappings' array
|
|
2604
3159
|
- For array fields: Set to the array property name, then configure 'buildArrayHelper'
|
|
2605
|
-
-
|
|
3160
|
+
- Two structural blanks: the inner array item of an array of arrays (it has no field name),
|
|
3161
|
+
and the single top-level `objectarray` item of a `rows [ ]` mapping (the array output
|
|
3162
|
+
structure — see the array's description). A child-bearing wrapper and a source-only row that
|
|
3163
|
+
already exist in a saved document also stay unnamed when the tree is re-sent — filling in a
|
|
3164
|
+
name changes the output; it does not complete the row
|
|
2606
3165
|
|
|
2607
3166
|
IMPORTANT: Do NOT use dot notation (e.g., "customer.firstName") in this field. Instead, create proper
|
|
2608
3167
|
hierarchical structure with nested mappings:
|
|
@@ -2617,8 +3176,9 @@ components:
|
|
|
2617
3176
|
}
|
|
2618
3177
|
```
|
|
2619
3178
|
|
|
2620
|
-
When parsing existing mappings, empty
|
|
2621
|
-
|
|
3179
|
+
When parsing existing mappings, an empty `generate` inside a parent array is an inner array; an
|
|
3180
|
+
empty `generate` on the ONLY top-level item, with `dataType: objectarray`, is the `rows [ ]` JSON
|
|
3181
|
+
structure — array output, bound as `rows` in templates — and is intentional, not a missing name.
|
|
2622
3182
|
examples:
|
|
2623
3183
|
- name
|
|
2624
3184
|
- address
|
|
@@ -2704,9 +3264,11 @@ components:
|
|
|
2704
3264
|
This field supports THREE DISTINCT PATTERNS that are easily distinguished:
|
|
2705
3265
|
|
|
2706
3266
|
**1. json Path Syntax**
|
|
2707
|
-
- MUST start with '
|
|
3267
|
+
- MUST start with '$' — the record root. An object record is addressed as
|
|
3268
|
+
'$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
|
|
2708
3269
|
- Used for precisely targeting data in structured JSON objects
|
|
2709
|
-
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
|
|
3270
|
+
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
|
|
3271
|
+
'$[*].Tax' (every row of a grouped record)
|
|
2710
3272
|
- Wildcards like [*] extract multiple values/objects
|
|
2711
3273
|
|
|
2712
3274
|
```json
|
|
@@ -2717,7 +3279,8 @@ components:
|
|
|
2717
3279
|
- Contains '{{' and '}}' pattern
|
|
2718
3280
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
2719
3281
|
- Can include logic, formatting, and computation
|
|
2720
|
-
- Access input record fields with {{record.fieldName}} notation
|
|
3282
|
+
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
3283
|
+
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
2721
3284
|
- Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
2722
3285
|
- Valid on `object`, `objectarray`, and primitive-array dataTypes as
|
|
2723
3286
|
well as scalars — the rendered template output must parse into the
|
|
@@ -2728,7 +3291,7 @@ components:
|
|
|
2728
3291
|
```
|
|
2729
3292
|
|
|
2730
3293
|
**3. Hard-Coded Value (literal string)**
|
|
2731
|
-
- Does NOT start with '
|
|
3294
|
+
- Does NOT start with '$'
|
|
2732
3295
|
- Does NOT contain handlebars '{{' syntax
|
|
2733
3296
|
- System treats it as a literal string value
|
|
2734
3297
|
- VERY COMMON for setting static/constant values
|
|
@@ -2750,10 +3313,38 @@ components:
|
|
|
2750
3313
|
- The system maintains this context even in deeply nested mappings
|
|
2751
3314
|
- For object mappings without child mappings, extract should return a complete object
|
|
2752
3315
|
- When both extract and mappings are defined for objects, extract is applied first
|
|
3316
|
+
- The root is the record as it arrives: an object record roots at `$.field`; a
|
|
3317
|
+
grouped record (an array of rows — grouped exports, file key columns, NetSuite
|
|
3318
|
+
grouped saved searches) roots at the array, so its rows are addressed as
|
|
3319
|
+
`$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
|
|
3320
|
+
record's shape resolves to nothing without an error.
|
|
2753
3321
|
|
|
2754
3322
|
For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
|
|
2755
3323
|
For hard-coded values, simply use the literal string as the extract value.
|
|
2756
3324
|
x-celigo-ai-guidance:
|
|
3325
|
+
- |-
|
|
3326
|
+
## GROUPED (ARRAY) RECORDS
|
|
3327
|
+
Decide the JSONPath root from the record's shape before writing
|
|
3328
|
+
any extract. When the record is an array of rows, `$.field`,
|
|
3329
|
+
`$.properties.field` and `$.rows[*].field` all resolve to
|
|
3330
|
+
nothing — the processor still reports success and the request
|
|
3331
|
+
body ships as `{}`. Address rows as `$[0].field` (that row's
|
|
3332
|
+
value, typed) or `$[*].field` (every row: joined with commas
|
|
3333
|
+
into a `string` destination; rejected with
|
|
3334
|
+
`incompatible_destination_conversion` into a `number`
|
|
3335
|
+
destination). Column labels with spaces work as
|
|
3336
|
+
`$[*][Order Number]`, `$[*].[Order Number]`, or
|
|
3337
|
+
`$[*]['Order Number']`. For one destination element per row
|
|
3338
|
+
the two array kinds take different helper forms: a primitive
|
|
3339
|
+
array (`stringarray` / `numberarray`) uses `buildArrayHelper:
|
|
3340
|
+
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
3341
|
+
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
3342
|
+
with the children addressing the row relatively (`$.field`,
|
|
3343
|
+
`{{rows.field}}`). An `extract` placed directly on the
|
|
3344
|
+
array-typed field yields nothing. Handlebars
|
|
3345
|
+
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
3346
|
+
an object record as `record`. The reverse holds too: `$[*]` on
|
|
3347
|
+
an object record iterates the object's values, not rows.
|
|
2757
3348
|
- |-
|
|
2758
3349
|
## SIZE LIMIT
|
|
2759
3350
|
The platform's import save validator caps this field at **1024
|
|
@@ -2835,7 +3426,8 @@ components:
|
|
|
2835
3426
|
Explicit JSON `null` is itself a valid fallback: the destination field is written as
|
|
2836
3427
|
JSON null when the extract yields nothing (the Mapper UI's "Use null as default value"
|
|
2837
3428
|
action). Omitting the key entirely means no fallback — the field is left out of the
|
|
2838
|
-
output when the extract is empty (the UI's "Do nothing" action).
|
|
3429
|
+
output when the extract is empty (the UI's "Do nothing" action). Failing the record
|
|
3430
|
+
instead is `conditional.when: fail_record_when_empty`, which excludes a default.
|
|
2839
3431
|
x-celigo-ai-guidance:
|
|
2840
3432
|
- |-
|
|
2841
3433
|
`"default": null` and `"default": ""` are distinct saved values, not
|
|
@@ -2844,6 +3436,12 @@ components:
|
|
|
2844
3436
|
Preserve them verbatim when editing or migrating a mapping — dropping
|
|
2845
3437
|
the key changes runtime behavior from "use null/empty string as
|
|
2846
3438
|
default value" to "do nothing" (field omitted from the output).
|
|
3439
|
+
- |-
|
|
3440
|
+
The four "Action to take if source field has no value" choices map to:
|
|
3441
|
+
do nothing → no `default` key (optionally `conditional.when:
|
|
3442
|
+
extract_not_empty`); use null → `"default": null`; use empty string or
|
|
3443
|
+
a custom value → `"default": "<value>"`; cause the record to fail →
|
|
3444
|
+
`conditional.when: fail_record_when_empty` with no `default` key.
|
|
2847
3445
|
examples:
|
|
2848
3446
|
- N/A
|
|
2849
3447
|
- '0'
|
|
@@ -3011,7 +3609,11 @@ components:
|
|
|
3011
3609
|
(`$.items[*]`), `"$"` (the record root), or omission — a
|
|
3012
3610
|
constructed entry (child `mappings` with the extract omitted or
|
|
3013
3611
|
`"$"`; the two spellings are equivalent) contributes exactly one
|
|
3014
|
-
element, and entries append in order.
|
|
3612
|
+
element, and entries append in order. On a grouped (array)
|
|
3613
|
+
record the record itself is the array to iterate: `"$[*]"`
|
|
3614
|
+
yields one `objectarray` element per row (children address the
|
|
3615
|
+
row as `$.field`), and `"$[*].field"` yields one primitive-array
|
|
3616
|
+
value per row. Indexed or comma-joined
|
|
3015
3617
|
entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
|
|
3016
3618
|
processor renders the entire destination array as null with no
|
|
3017
3619
|
validation error. To emit a fixed number of static elements, add
|
|
@@ -3032,7 +3634,9 @@ components:
|
|
|
3032
3634
|
|
|
3033
3635
|
**For Simple Arrays (stringarray, numberarray, booleanarray)**
|
|
3034
3636
|
- Only the 'extract' field is used to pull values
|
|
3035
|
-
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values
|
|
3637
|
+
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
|
|
3638
|
+
on a grouped (array) record the record itself is the array, so the
|
|
3639
|
+
path roots at it ($[*].name — one value per row)
|
|
3036
3640
|
- Each result is converted to the appropriate primitive type
|
|
3037
3641
|
```json
|
|
3038
3642
|
{
|
|
@@ -3134,11 +3738,13 @@ components:
|
|
|
3134
3738
|
- When both extract and mappings are provided, the system creates special composite objects
|
|
3135
3739
|
that maintain hierarchical context during processing
|
|
3136
3740
|
- This enables accessing both the current array element AND its parent context
|
|
3137
|
-
- An ITERATING entry's extract MUST
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3741
|
+
- An ITERATING entry's extract MUST be a JSON path that iterates an array:
|
|
3742
|
+
'$.items[*]' when the array is a field of an object record, or '$[*]'
|
|
3743
|
+
(objectarray) / '$[*].field' (primitive arrays) when the record itself is a
|
|
3744
|
+
grouped array of rows. A CONSTRUCTED entry (child mappings building one
|
|
3745
|
+
element) instead omits extract or sets it to exactly "$" — never rewrite "$"
|
|
3746
|
+
into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
|
|
3747
|
+
entire destination array as null without raising a validation error
|
|
3142
3748
|
- Each array helper entry acts independently, potentially adding multiple elements
|
|
3143
3749
|
|
|
3144
3750
|
The buildArrayHelper is the most complex part of the mappings system - always analyze the
|
|
@@ -3168,6 +3774,22 @@ components:
|
|
|
3168
3774
|
- $.order.lineItems[*]
|
|
3169
3775
|
- $.parents[*].children[*]
|
|
3170
3776
|
- $
|
|
3777
|
+
name:
|
|
3778
|
+
type: string
|
|
3779
|
+
maxLength: 200
|
|
3780
|
+
description: |
|
|
3781
|
+
Display label for this source object in the mapper, so the sources of
|
|
3782
|
+
an object array can be told apart instead of all showing as `$`.
|
|
3783
|
+
Has no effect at runtime; stored only when non-empty.
|
|
3784
|
+
x-celigo-ai-guidance:
|
|
3785
|
+
- |-
|
|
3786
|
+
Carry an existing `name` through every edit — it is the user's label
|
|
3787
|
+
for the tab, and an entry sent without it loses the label. Duplicate
|
|
3788
|
+
names across entries are allowed. Set one only when the user names
|
|
3789
|
+
the source object; never invent labels.
|
|
3790
|
+
examples:
|
|
3791
|
+
- Billing address
|
|
3792
|
+
- Shipping address
|
|
3171
3793
|
sourceDataType:
|
|
3172
3794
|
type: string
|
|
3173
3795
|
description: |
|
|
@@ -3216,17 +3838,31 @@ components:
|
|
|
3216
3838
|
type: object
|
|
3217
3839
|
description: |
|
|
3218
3840
|
Defines conditional rules for including each array element in the result.
|
|
3841
|
+
x-celigo-ai-guidance:
|
|
3842
|
+
- |-
|
|
3843
|
+
Judged against this entry's own `extract` (the array source). The
|
|
3844
|
+
design scopes the UI's tab-level "Action to take if source field has
|
|
3845
|
+
no value" to copy-as-is tabs (no child `mappings`); the API accepts
|
|
3846
|
+
`fail_record_when_empty` on a mapped entry as well, and the mapper
|
|
3847
|
+
processor honors it there — the record fails when that array is
|
|
3848
|
+
missing or empty (`errors[]` entry `code: extract_empty`, `fatal:
|
|
3849
|
+
true`, message `<generate>: Source field has no value`; probed
|
|
3850
|
+
2026-10-09). Say so when writing it on a mapped entry: the user may
|
|
3851
|
+
not find the setting in the mapper's tab. To fail on an empty field
|
|
3852
|
+
inside each element, set the action on that child mapping instead.
|
|
3219
3853
|
properties:
|
|
3220
3854
|
when:
|
|
3221
3855
|
type: string
|
|
3222
3856
|
description: |
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3857
|
+
Condition judged on the entry's extract — skip the elements the
|
|
3858
|
+
extract does not return, or fail the whole record when the source
|
|
3859
|
+
array is missing or empty.
|
|
3226
3860
|
enum:
|
|
3227
3861
|
- extract_not_empty
|
|
3862
|
+
- fail_record_when_empty
|
|
3228
3863
|
x-enumDescriptions:
|
|
3229
|
-
extract_not_empty: Include
|
|
3864
|
+
extract_not_empty: Include an array element only when the extract returns a non-empty value for it
|
|
3865
|
+
fail_record_when_empty: Fail the record when the entry's source array is missing or empty
|
|
3230
3866
|
examples:
|
|
3231
3867
|
- extract_not_empty
|
|
3232
3868
|
mappings:
|
|
@@ -3326,6 +3962,20 @@ components:
|
|
|
3326
3962
|
extract: $.price
|
|
3327
3963
|
dataType: number
|
|
3328
3964
|
status: Active
|
|
3965
|
+
if:
|
|
3966
|
+
properties:
|
|
3967
|
+
conditional:
|
|
3968
|
+
properties:
|
|
3969
|
+
when:
|
|
3970
|
+
const: fail_record_when_empty
|
|
3971
|
+
required:
|
|
3972
|
+
- when
|
|
3973
|
+
required:
|
|
3974
|
+
- conditional
|
|
3975
|
+
then:
|
|
3976
|
+
not:
|
|
3977
|
+
required:
|
|
3978
|
+
- default
|
|
3329
3979
|
status:
|
|
3330
3980
|
type: string
|
|
3331
3981
|
description: |
|
|
@@ -3333,9 +3983,10 @@ components:
|
|
|
3333
3983
|
Required on every mapping entry. Controls whether the mapping is applied.
|
|
3334
3984
|
|
|
3335
3985
|
**Guidance**
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3986
|
+
Only `Active` rows run. `Draft` and `Inactive` rows keep their
|
|
3987
|
+
configuration, are saved with minimal validation, and are skipped at
|
|
3988
|
+
runtime and in preview; a non-Active parent skips its whole subtree
|
|
3989
|
+
whatever its children say. The API rejects a mapping missing this field
|
|
3339
3990
|
(validation error: "Mapping object must have status field present.").
|
|
3340
3991
|
x-celigo-ai-guidance:
|
|
3341
3992
|
- |-
|
|
@@ -3344,12 +3995,28 @@ components:
|
|
|
3344
3995
|
field validations. The value is case-sensitive. The API rejects:
|
|
3345
3996
|
- Missing field: `[status_field_absent] Mapping object must have status field present.`
|
|
3346
3997
|
- Wrong case (e.g. `"active"`): `[invalid_status_enums] active is not a valid enum for status field.`
|
|
3998
|
+
- |-
|
|
3999
|
+
`"Inactive"` is the user's "Set inactive" on a row: use it only when
|
|
4000
|
+
asked to disable or park a row, never to mean incomplete (that is
|
|
4001
|
+
`"Draft"`). Setting a parent `Inactive` means no `Active` row may
|
|
4002
|
+
remain under it — the save rejects an `Active` row under an
|
|
4003
|
+
`Inactive` parent (`[inactive_parent_active_child]` on `mappings`,
|
|
4004
|
+
no message text) and never cascades or promotes on its own; `Draft`
|
|
4005
|
+
descendants are kept as they are, and a `Draft` parent does not gate
|
|
4006
|
+
its children. The UI's Set inactive on a parent marks the parent and
|
|
4007
|
+
every child `Inactive` (IO-166197). Re-enabling a child
|
|
4008
|
+
means re-enabling its ancestors in the same payload. Edits that keep
|
|
4009
|
+
existing rows must carry their stored status forward — rewriting a
|
|
4010
|
+
`Draft` or `Inactive` row to `Active` turns a row the user parked
|
|
4011
|
+
back on.
|
|
3347
4012
|
enum:
|
|
3348
4013
|
- Active
|
|
3349
4014
|
- Draft
|
|
4015
|
+
- Inactive
|
|
3350
4016
|
x-enumDescriptions:
|
|
3351
|
-
Active: The mapping is enabled and applied during processing
|
|
3352
|
-
Draft: In-progress mapping; saved without the Active-only field validations
|
|
4017
|
+
Active: The mapping is enabled and applied during processing
|
|
4018
|
+
Draft: In-progress mapping; saved without the Active-only field validations and skipped at runtime
|
|
4019
|
+
Inactive: Disabled by the user; configuration kept, skipped at runtime and in preview
|
|
3353
4020
|
examples:
|
|
3354
4021
|
- Active
|
|
3355
4022
|
conditional:
|
|
@@ -3378,6 +4045,10 @@ components:
|
|
|
3378
4045
|
- `extract_not_empty`: Apply only when the extract field returns a value
|
|
3379
4046
|
Useful for conditional mapping based on input data availability
|
|
3380
4047
|
|
|
4048
|
+
- `fail_record_when_empty`: Fail the record when the extract field returns
|
|
4049
|
+
no value (the UI's "Cause record to fail" action when the source field
|
|
4050
|
+
has no value)
|
|
4051
|
+
|
|
3381
4052
|
**Example**
|
|
3382
4053
|
```json
|
|
3383
4054
|
{
|
|
@@ -3390,28 +4061,75 @@ components:
|
|
|
3390
4061
|
}
|
|
3391
4062
|
}
|
|
3392
4063
|
```
|
|
4064
|
+
x-celigo-ai-guidance:
|
|
4065
|
+
- |-
|
|
4066
|
+
`when` holds one value, and two different settings share it: the
|
|
4067
|
+
composite-import operation gate (`record_created` / `record_updated`,
|
|
4068
|
+
the UI's "Only perform mapping when") and the empty-source action
|
|
4069
|
+
(`extract_not_empty` / `fail_record_when_empty`, the UI's "Action to
|
|
4070
|
+
take if source field has no value"). A row cannot carry both — writing
|
|
4071
|
+
one replaces the other and the save succeeds, so a composite import
|
|
4072
|
+
row that needs both has to choose. Never author `fail_record_when_empty`
|
|
4073
|
+
on a row that already carries `record_created` or `record_updated`.
|
|
3393
4074
|
properties:
|
|
3394
4075
|
when:
|
|
3395
4076
|
type: string
|
|
3396
4077
|
description: |
|
|
3397
|
-
|
|
3398
|
-
-
|
|
3399
|
-
|
|
3400
|
-
|
|
4078
|
+
Condition that gates this mapping — either an operation gate on a
|
|
4079
|
+
composite (create-or-update) import or the action to take when the
|
|
4080
|
+
extract returns no value. Empty means null, undefined or an empty
|
|
4081
|
+
string; `0`, `false` and whitespace are values.
|
|
4082
|
+
x-celigo-ai-guidance:
|
|
4083
|
+
- |-
|
|
4084
|
+
`fail_record_when_empty` is the fourth "Action to take if source field
|
|
4085
|
+
has no value" and is mutually exclusive with the other three: send it
|
|
4086
|
+
with no `default` key. A `default`, a `lookupName` or a `hardCodedValue`
|
|
4087
|
+
on the same row — or a `default` on a `buildArrayHelper` entry — is
|
|
4088
|
+
rejected at save with `[unsupported_mapping] "<key>" and conditional.when
|
|
4089
|
+
"fail_record_when_empty" cannot be present in mapping simultaneously.`
|
|
4090
|
+
(the lookup variant adds `Use lookup "allowFailures" instead.`);
|
|
4091
|
+
lookups fail through `allowFailures: false`, and a hard-coded row
|
|
4092
|
+
always has a value. At runtime an empty extract fails the record with
|
|
4093
|
+
an `errors[]` entry `{code: "extract_empty", fatal: true, source:
|
|
4094
|
+
"mapping", message: "<generate>: Source field has no value"}`
|
|
4095
|
+
("Input field has no value" in a Transformation 2.0); `0` and `false`
|
|
4096
|
+
are values and map through.
|
|
3401
4097
|
enum:
|
|
3402
4098
|
- record_created
|
|
3403
4099
|
- record_updated
|
|
3404
4100
|
- extract_not_empty
|
|
4101
|
+
- fail_record_when_empty
|
|
3405
4102
|
x-enumDescriptions:
|
|
3406
|
-
record_created: Apply this mapping only when creating a new record
|
|
3407
|
-
record_updated: Apply this mapping only when updating an existing record
|
|
3408
|
-
extract_not_empty: Apply this mapping only when the extract field returns a non-empty value
|
|
4103
|
+
record_created: Apply this mapping only when creating a new record
|
|
4104
|
+
record_updated: Apply this mapping only when updating an existing record
|
|
4105
|
+
extract_not_empty: Apply this mapping only when the extract field returns a non-empty value
|
|
4106
|
+
fail_record_when_empty: Fail the record when the extract field returns no value
|
|
3409
4107
|
examples:
|
|
3410
4108
|
- record_created
|
|
3411
4109
|
- record_updated
|
|
3412
4110
|
- extract_not_empty
|
|
4111
|
+
- fail_record_when_empty
|
|
3413
4112
|
required:
|
|
3414
4113
|
- dataType
|
|
4114
|
+
if:
|
|
4115
|
+
properties:
|
|
4116
|
+
conditional:
|
|
4117
|
+
properties:
|
|
4118
|
+
when:
|
|
4119
|
+
const: fail_record_when_empty
|
|
4120
|
+
required:
|
|
4121
|
+
- when
|
|
4122
|
+
required:
|
|
4123
|
+
- conditional
|
|
4124
|
+
then:
|
|
4125
|
+
not:
|
|
4126
|
+
anyOf:
|
|
4127
|
+
- required:
|
|
4128
|
+
- default
|
|
4129
|
+
- required:
|
|
4130
|
+
- lookupName
|
|
4131
|
+
- required:
|
|
4132
|
+
- hardCodedValue
|
|
3415
4133
|
ResponseMapping:
|
|
3416
4134
|
type: object
|
|
3417
4135
|
description: |
|
|
@@ -3427,20 +4145,48 @@ components:
|
|
|
3427
4145
|
extracts evaluate against that envelope:
|
|
3428
4146
|
|
|
3429
4147
|
- **Lookup steps**: `{"statusCode": 200, "data": [<result records>],
|
|
3430
|
-
"errors": []}` — `data` holds the records the lookup
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
4148
|
+
"errors": []}` — `data` holds the records the lookup step returns,
|
|
4149
|
+
AFTER the export's own `transform` and output `filter` have run, so
|
|
4150
|
+
extracts must start from it and name transformed fields by their
|
|
4151
|
+
transformed name: `data[0].name` copies a field of the first result,
|
|
4152
|
+
`data` copies the whole result array. A bare result-record field name
|
|
4153
|
+
(e.g. `name`) resolves to nothing and merges nothing, and so does the
|
|
4154
|
+
raw response path a transform consumed.
|
|
3435
4155
|
- **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
|
|
3436
|
-
"ignored": false, "errors": [], "_json": <raw destination response
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
4156
|
+
"ignored": false, "errors": [], "_json": <raw destination response>,
|
|
4157
|
+
...<response body fields flattened at the root>}` — use `id` for the
|
|
4158
|
+
destination-assigned id and `_json.<path>` (or the flattened
|
|
4159
|
+
`<path>`) for fields inside the destination's response body. The full
|
|
4160
|
+
envelope (including `id`) is present on real runs and in flow-builder
|
|
4161
|
+
previews; flow TEST runs never execute imports, and their mock-built
|
|
4162
|
+
envelope carries no `id` — an `extract: "id"` merges nothing in a test
|
|
4163
|
+
run even though it works on real runs.
|
|
4164
|
+
|
|
4165
|
+
An `extract` may also be a Handlebars expression. It evaluates against
|
|
4166
|
+
the same envelope as a plain path, so every path inside `{{ }}` starts
|
|
4167
|
+
where the plain paths start — `{{data.0.name}}`,
|
|
4168
|
+
`{{#compare data.0.count "==" 1}}yes{{else}}no{{/compare}}`,
|
|
4169
|
+
`{{#if data.length}}found{{/if}}` on a lookup; `{{_json.order.id}}` or
|
|
4170
|
+
`{{id}}` on an import. Index arrays with dots inside Handlebars
|
|
4171
|
+
(`data.0.name` or `data.[0].name`; `data[0].name` renders nothing), and
|
|
4172
|
+
expect a string result (`"1"`, `"false"`). There is no `record` object in
|
|
4173
|
+
this context: `{{record.<anything>}}` renders nothing. Prefer a plain
|
|
4174
|
+
path when the value is simply copied.
|
|
3443
4175
|
x-celigo-ai-guidance:
|
|
4176
|
+
- |-
|
|
4177
|
+
Handlebars is allowed in `extract` but only rooted at the envelope —
|
|
4178
|
+
`{{data.0.x}}` on a lookup, `{{_json.x}}` / `{{id}}` on an import. The
|
|
4179
|
+
`record.` root belongs to import-mapping templates; here every
|
|
4180
|
+
`{{record.…}}` form renders nothing, silently, and `{{data[0].x}}`
|
|
4181
|
+
(bracket index inside Handlebars) renders nothing too. Use Handlebars
|
|
4182
|
+
only for a derived value (a flag, a concatenation); copy values with a
|
|
4183
|
+
plain path.
|
|
4184
|
+
- |-
|
|
4185
|
+
A lookup's `data[]` is the step's output after its `transform` and
|
|
4186
|
+
`filter`, so author extracts against the transformed records — never
|
|
4187
|
+
against the raw response the transform consumed, and never against a
|
|
4188
|
+
saved `mockOutput` as stored (it is the raw response; the transform
|
|
4189
|
+
runs on top of it in a test run).
|
|
3444
4190
|
- |-
|
|
3445
4191
|
Send `fields` and `lists` as bare arrays, exactly as GET returns them.
|
|
3446
4192
|
Never wrap either in an object (e.g. `"fields": {"type": [...]}`): the
|
|
@@ -3482,22 +4228,29 @@ components:
|
|
|
3482
4228
|
properties:
|
|
3483
4229
|
extract:
|
|
3484
4230
|
type: string
|
|
4231
|
+
x-celigo-agent:
|
|
4232
|
+
- handlebars
|
|
3485
4233
|
description: |
|
|
3486
4234
|
Path within the canonical response envelope to copy the value
|
|
3487
|
-
from
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
`
|
|
4235
|
+
from, or a Handlebars expression over that same envelope. For
|
|
4236
|
+
lookup steps, paths start from the envelope's `data` array
|
|
4237
|
+
(`data[0].x` and `data.0.x` are equivalent; `data` alone
|
|
4238
|
+
copies every result) — a lookup result field written without
|
|
4239
|
+
the `data` prefix resolves to nothing. For import steps, use
|
|
4240
|
+
the envelope fields `id`, `statusCode`, `ignored`, `_json.<path>`
|
|
4241
|
+
for the raw response body, or the body field itself at the
|
|
4242
|
+
envelope root (`orderNumber` and `_json.orderNumber` read the
|
|
4243
|
+
same value). A `[*]` wildcard is not honored here — `data[*].x`
|
|
4244
|
+
merges nothing; iterate arrays with `lists` instead. Inside
|
|
4245
|
+
Handlebars, index with dots (`{{data.0.x}}`, never
|
|
4246
|
+
`{{data[0].x}}`) and never use a `record.` root.
|
|
3495
4247
|
examples:
|
|
3496
4248
|
- data[0].customer.name
|
|
3497
4249
|
- data.0.fields.Product Name
|
|
3498
4250
|
- data
|
|
3499
4251
|
- id
|
|
3500
4252
|
- _json.orderNumber
|
|
4253
|
+
- '{{#if data.length}}found{{else}}missing{{/if}}'
|
|
3501
4254
|
generate:
|
|
3502
4255
|
type: string
|
|
3503
4256
|
description: |
|
|
@@ -4426,6 +5179,16 @@ components:
|
|
|
4426
5179
|
x-enumDescriptions:
|
|
4427
5180
|
create: Builds entirely new output records from inputs, ignoring unmapped fields.
|
|
4428
5181
|
modify: Makes targeted edits to existing records, preserving unmapped fields.
|
|
5182
|
+
x-celigo-ai-guidance:
|
|
5183
|
+
- |-
|
|
5184
|
+
On a grouped record (the export groups rows, so the record is an
|
|
5185
|
+
array) only `create` can author output — build it from the rows with
|
|
5186
|
+
`$[0].field`, `$[*].field`, or a `buildArrayHelper` over `$[*]`.
|
|
5187
|
+
`modify` has no object to overlay onto an array: the record passes
|
|
5188
|
+
through untouched and the processor reports success. Either mode
|
|
5189
|
+
reshapes the inside of one record; neither changes how many records
|
|
5190
|
+
the page carries (that is the export's `preSavePage` hook) or whether
|
|
5191
|
+
the export groups at all (that is its grouping setting).
|
|
4429
5192
|
examples:
|
|
4430
5193
|
- create
|
|
4431
5194
|
- modify
|
|
@@ -4681,36 +5444,53 @@ components:
|
|
|
4681
5444
|
OneToMany:
|
|
4682
5445
|
type: boolean
|
|
4683
5446
|
description: |
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
5447
|
+
When true, the step runs once per child record instead of once per incoming record.
|
|
5448
|
+
`pathToMany` names the array field that holds the children inside an object record; when
|
|
5449
|
+
the incoming record is itself an array (grouped or row-based data), leave `pathToMany` blank
|
|
5450
|
+
and each element becomes a record. The fan-out is scoped to this step: afterwards the children
|
|
5451
|
+
are re-joined into the record's original shape — the object with its array, or the array of rows —
|
|
5452
|
+
carrying any response-mapping enrichment, and that re-joined record is what the next step
|
|
5453
|
+
receives. Not for locating records in an export's HTTP response; use
|
|
5454
|
+
`http.response.resourcePath` for that. Applies to steps that receive a record — imports and
|
|
5455
|
+
lookups (an export referenced as a page processor of a flow, API, or Tool). A standalone export
|
|
5456
|
+
(a flow's page generator) has no incoming record, so the fields are saved but have no effect on
|
|
5457
|
+
the records it produces; to emit one record per array element from a standalone export, use a
|
|
5458
|
+
`hooks.preSavePage` script, or for a file-definition export make the repeating segment the
|
|
5459
|
+
record boundary in the definition's rules.
|
|
5460
|
+
x-celigo-ai-guidance:
|
|
5461
|
+
- |-
|
|
5462
|
+
Only imports and lookups (exports placed as page processors) fan out. On a standalone export
|
|
5463
|
+
(a flow's page generator) the API saves ``oneToMany`` / ``pathToMany`` and applies neither:
|
|
5464
|
+
the records reach the next step unchanged and no error is raised. Live-verified 2026-09-18 on
|
|
5465
|
+
a flow test run — an order record with three ``lines`` reached the import as ONE record with
|
|
5466
|
+
the setting on the export, and as THREE child records with the same setting on the import.
|
|
5467
|
+
Never propose these fields as the way to split a standalone export's records; that is
|
|
5468
|
+
``hooks.preSavePage`` work (or, for a file definition, the definition's record boundary).
|
|
5469
|
+
The rules below apply only on a step that receives a record.
|
|
5470
|
+
- |-
|
|
5471
|
+
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
5472
|
+
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
5473
|
+
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
5474
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
5475
|
+
- |-
|
|
5476
|
+
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
5477
|
+
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
5478
|
+
array, and no PathToMany was provided". Builder previews return only the code, with no
|
|
5479
|
+
message. The fix is never "turn oneToMany off" by default — first determine whether the
|
|
5480
|
+
record arriving at the step is an object (set a path) or an array (blank is correct; a
|
|
5481
|
+
preview error on an array-fed step is the preview panel re-applying one-to-many to the
|
|
5482
|
+
already-fanned-out record — verify with a test run or a real run).
|
|
5483
|
+
- |-
|
|
5484
|
+
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
5485
|
+
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
5486
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference the child as
|
|
5487
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
5488
|
+
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
5489
|
+
mode) with every element enriched.
|
|
5490
|
+
- |-
|
|
5491
|
+
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
5492
|
+
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
5493
|
+
With the default batch size the template root is ``record``.
|
|
4714
5494
|
default: false
|
|
4715
5495
|
examples:
|
|
4716
5496
|
- true
|
|
@@ -4718,27 +5498,31 @@ components:
|
|
|
4718
5498
|
PathToMany:
|
|
4719
5499
|
type: string
|
|
4720
5500
|
description: |
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
5501
|
+
Path to the array of child records inside an object record when `oneToMany` is true, in dot
|
|
5502
|
+
notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
|
|
5503
|
+
(grouped or row-based data) — each element is then a child record. A path that does not resolve
|
|
5504
|
+
to an array processes zero records and reports success. Read only on steps that receive a
|
|
5505
|
+
record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
|
|
5506
|
+
x-celigo-ai-guidance:
|
|
5507
|
+
- |-
|
|
5508
|
+
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
5509
|
+
is saved, the export's records reach the next step unchanged, and nothing errors
|
|
5510
|
+
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
5511
|
+
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
5512
|
+
- |-
|
|
5513
|
+
Set this ONLY when the record entering the step is an object whose children sit under a field.
|
|
5514
|
+
On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
|
|
5515
|
+
any path resolves to nothing: the step processes ZERO children, builds no request, and reports
|
|
5516
|
+
success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
|
|
5517
|
+
record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
5518
|
+
- |-
|
|
5519
|
+
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
5520
|
+
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
5521
|
+
configuration. An empty string behaves exactly like an absent field.
|
|
5522
|
+
- |-
|
|
5523
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``), not a JSONPath
|
|
5524
|
+
expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
|
|
5525
|
+
parent-level fields are read as ``{{record._PARENT.<field>}}``.
|
|
4742
5526
|
examples:
|
|
4743
5527
|
- items
|
|
4744
5528
|
- line_items
|
|
@@ -4748,9 +5532,11 @@ components:
|
|
|
4748
5532
|
type: object
|
|
4749
5533
|
description: |-
|
|
4750
5534
|
Writable AI agent import fields shared by the request and response schemas. Set
|
|
4751
|
-
`aiAgent.provider` to choose the LLM backend, then configure the matching
|
|
4752
|
-
`aiAgent.openai` for OpenAI,
|
|
4753
|
-
(with provider-specific settings under `aiAgent.litellm._overrides`)
|
|
5535
|
+
`aiAgent.provider` to choose the LLM backend, then configure the matching format:
|
|
5536
|
+
`aiAgent.openai` for OpenAI, `aiAgent.litellm` for Gemini and Anthropic Claude
|
|
5537
|
+
(with provider-specific settings under `aiAgent.litellm._overrides`), or the
|
|
5538
|
+
generic flat format (`aiAgent.model`, `aiAgent.modelOptions`, …) for the catalog
|
|
5539
|
+
providers Mistral, xAI, Hugging Face, DeepSeek, Cohere, and Groq.
|
|
4754
5540
|
properties:
|
|
4755
5541
|
name:
|
|
4756
5542
|
type: string
|
|
@@ -4769,7 +5555,13 @@ components:
|
|
|
4769
5555
|
type: string
|
|
4770
5556
|
format: objectId
|
|
4771
5557
|
x-celigo-refModel: connections
|
|
4772
|
-
description:
|
|
5558
|
+
description: |-
|
|
5559
|
+
Connection for BYOK (bring your own key) — an HTTP connection to the vendor's API.
|
|
5560
|
+
Optional for the built-in providers (`openai`, `gemini`, `anthropic`), which run on
|
|
5561
|
+
platform-managed credentials when it is omitted. Catalog providers (`mistral`, `xai`,
|
|
5562
|
+
`huggingface`, `deepseek`, `cohere`, `groq`) have no platform-managed credentials: the save
|
|
5563
|
+
requires it — without one the agent fails to save with 422 `connection_required` on
|
|
5564
|
+
`_connectionId`.
|
|
4773
5565
|
examples:
|
|
4774
5566
|
- 662aaa6576bf4040548dbbe4
|
|
4775
5567
|
_integrationId:
|
|
@@ -4872,9 +5664,6 @@ components:
|
|
|
4872
5664
|
ignoreMissing:
|
|
4873
5665
|
type: boolean
|
|
4874
5666
|
description: When true, records that do not already exist in the destination are silently skipped. Rarely meaningful for AI agents; accepted for import-surface parity.
|
|
4875
|
-
blob:
|
|
4876
|
-
type: boolean
|
|
4877
|
-
description: When true, the agent processes raw file content (blobs) rather than structured records.
|
|
4878
5667
|
mockResponse:
|
|
4879
5668
|
type: array
|
|
4880
5669
|
description: |-
|
|
@@ -4912,9 +5701,6 @@ components:
|
|
|
4912
5701
|
_headers:
|
|
4913
5702
|
type: object
|
|
4914
5703
|
description: Mock response headers.
|
|
4915
|
-
blobKey:
|
|
4916
|
-
type: string
|
|
4917
|
-
description: Blob key returned by blob-mode agents.
|
|
4918
5704
|
ResourceResponse:
|
|
4919
5705
|
type: object
|
|
4920
5706
|
description: Response
|
|
@@ -4950,6 +5736,14 @@ components:
|
|
|
4950
5736
|
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
4951
5737
|
x-celigo-ai-guidance:
|
|
4952
5738
|
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
5739
|
+
- |-
|
|
5740
|
+
Records that something was written, not what — a settings edit, a flag flip, or a
|
|
5741
|
+
platform workflow all move it. What changed and when is in the audit log: the
|
|
5742
|
+
per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
|
|
5743
|
+
`resourceType` enum lists, or the account-wide
|
|
5744
|
+
`GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
|
|
5745
|
+
endpoint's enum accepts (users, environments, notifications among them). A type absent
|
|
5746
|
+
from both enums — jobs, connectors, templates — has only this timestamp.
|
|
4953
5747
|
examples:
|
|
4954
5748
|
- '2023-04-15T14:30:15Z'
|
|
4955
5749
|
deletedAt:
|
|
@@ -5124,9 +5918,16 @@ components:
|
|
|
5124
5918
|
type: object
|
|
5125
5919
|
description: |-
|
|
5126
5920
|
Configuration for an AI agent import. Set `aiAgent.provider` to choose
|
|
5127
|
-
the LLM backend, then configure the matching
|
|
5128
|
-
OpenAI,
|
|
5129
|
-
`
|
|
5921
|
+
the LLM backend, then configure the matching format: `aiAgent.openai` for
|
|
5922
|
+
OpenAI, `aiAgent.litellm` for Gemini and Anthropic Claude, or the generic
|
|
5923
|
+
flat format (`aiAgent.model`, `aiAgent.modelOptions`, …) for the catalog
|
|
5924
|
+
providers. Omit `_connectionId` to use platform-managed credentials on a
|
|
5925
|
+
built-in provider; catalog providers need a BYOK connection to run.
|
|
5926
|
+
x-celigo-ai-guidance:
|
|
5927
|
+
- |-
|
|
5928
|
+
AI agents process structured records only. Do not send the import-level `blob` or
|
|
5929
|
+
`blobKeyPath` fields — either one fails the save with 422 `not_supported`
|
|
5930
|
+
("Field "blob" is not supported for this import type").
|
|
5130
5931
|
required:
|
|
5131
5932
|
- name
|
|
5132
5933
|
- adaptorType
|
|
@@ -5344,6 +6145,13 @@ components:
|
|
|
5344
6145
|
description: Display name of the dependent resource.
|
|
5345
6146
|
examples:
|
|
5346
6147
|
- Import Orders to NetSuite
|
|
6148
|
+
type:
|
|
6149
|
+
type: string
|
|
6150
|
+
description: |-
|
|
6151
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
6152
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
6153
|
+
examples:
|
|
6154
|
+
- stream
|
|
5347
6155
|
paths:
|
|
5348
6156
|
type: array
|
|
5349
6157
|
description: |-
|