@celigo/api-specs 0.2.2 → 0.2.3-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.
Files changed (44) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +201 -3
  3. package/dist/agent.yml +7 -0
  4. package/dist/ai-agent.yml +587 -122
  5. package/dist/api.yml +5954 -127
  6. package/dist/apim.yml +0 -4
  7. package/dist/asynchelper.yml +117 -22
  8. package/dist/audit.yml +41 -2
  9. package/dist/bartendertemplate.yml +508 -0
  10. package/dist/connection.yml +1166 -125
  11. package/dist/ediprofile.yml +7 -0
  12. package/dist/editransaction.yml +250 -14
  13. package/dist/enduser.yml +5778 -35
  14. package/dist/export.yml +1028 -983
  15. package/dist/filedefinition.yml +37 -0
  16. package/dist/filedefinitionrules.yml +722 -0
  17. package/dist/fileserver.yml +1316 -0
  18. package/dist/filestorage.yml +712 -330
  19. package/dist/flow.yml +359 -98
  20. package/dist/guardrail.yml +280 -489
  21. package/dist/httpconnectorendpoint.yml +602 -126
  22. package/dist/httpconnectorresource.yml +1160 -84
  23. package/dist/iclient.yml +131 -76
  24. package/dist/import.yml +1937 -236
  25. package/dist/integration.yml +1024 -42
  26. package/dist/job.yml +180 -92
  27. package/dist/lookupcache.yml +7 -0
  28. package/dist/marketplace.yml +285 -105
  29. package/dist/mcp-server.yml +6745 -68
  30. package/dist/notification.yml +33 -8
  31. package/dist/processor.yml +8 -3
  32. package/dist/recyclebin.yml +32 -2
  33. package/dist/script.yml +7 -0
  34. package/dist/stack.yml +642 -5
  35. package/dist/storagequery.yml +865 -0
  36. package/dist/subscription.yml +254 -58
  37. package/dist/sync.yml +383 -72
  38. package/dist/template.yml +39 -1
  39. package/dist/tool.yml +6135 -2240
  40. package/dist/topic.yml +1783 -0
  41. package/dist/tradingpartnerconnector.yml +10 -0
  42. package/dist/user.yml +238 -32
  43. package/package.json +13 -1
  44. package/schemas.json +2346 -1885
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 are supported — OpenAI (via the Responses API), Google Gemini
25
- (via LiteLLM), and Anthropic Claude (via LiteLLM). A `_connectionId` is optional:
26
- omit it to use platform-managed credentials, or supply one for BYOK (bring your
27
- own key).
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,14 @@ paths:
110
121
  x-internal: false
111
122
  summary: Create an AI agent
112
123
  description: |-
113
- Creates a new AI agent import. Omit `_connectionId` to use
114
- platform-managed credentials; include it for BYOK. Configure the
115
- provider-specific block (`aiAgent.openai` or `aiAgent.litellm`) — the
116
- other block is ignored.
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 saves without one but needs a BYOK connection to run.
117
132
  operationId: createAiAgent
118
133
  tags:
119
134
  - AI Agents
@@ -150,6 +165,24 @@ paths:
150
165
  tools:
151
166
  - type: googleSearch
152
167
  googleSearch: {}
168
+ xai-catalog-byok:
169
+ summary: Catalog provider (xAI) on a BYOK connection — generic flat format
170
+ value:
171
+ name: Invoice Extractor
172
+ adaptorType: AiAgentImport
173
+ _connectionId: 662aaa6576bf4040548dbbe4
174
+ aiAgent:
175
+ provider: xai
176
+ model: grok-4.6
177
+ modelOptions:
178
+ maxOutputTokens: 5000
179
+ reasoning_effort: high
180
+ temperature: 1
181
+ topP: 1
182
+ instructions: Extract the invoice fields from each record.
183
+ output:
184
+ format:
185
+ type: text
153
186
  responses:
154
187
  '201':
155
188
  description: Created AI agent.
@@ -237,6 +270,16 @@ paths:
237
270
  format:
238
271
  type: json_schema
239
272
  name: agent-response
273
+ strict: false
274
+ jsonSchema:
275
+ type: object
276
+ properties:
277
+ action:
278
+ type: string
279
+ draftBody:
280
+ type: string
281
+ required:
282
+ - action
240
283
  verbose: medium
241
284
  tools:
242
285
  - type: mcp
@@ -368,7 +411,9 @@ paths:
368
411
 
369
412
  Each entry in `imports` must include `adaptorType: "AiAgentImport"` and
370
413
  a valid `aiAgent` configuration. A `_connectionId` is required unless the
371
- agent uses platform-managed credentials. The response array is positional
414
+ agent is on a built-in provider (`openai`, `gemini`, `anthropic`) using
415
+ platform-managed credentials — catalog providers always need one, since
416
+ the preview runs the model. The response array is positional
372
417
  — `response[i]` corresponds to `imports[i]`. A per-entry
373
418
  `statusCode: 422` with `errors` means that specific configuration failed,
374
419
  not that the overall request failed.
@@ -620,14 +665,22 @@ components:
620
665
  AI Agent configuration used by both AiAgentImport and GuardrailImport (ai_agent type).
621
666
 
622
667
  Configures which AI provider and model to use, along with instructions, parameter
623
- tuning, output format, and available tools. Three providers are supported:
624
-
625
- - **openai**: OpenAI models (GPT-4, GPT-4o, GPT-4o-mini, GPT-5, etc.). Configure via the `openai` object.
626
- - **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
627
- - **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
628
-
629
- A `_connectionId` is optional (BYOK). If not provided on the parent import,
630
- platform-managed credentials are used.
668
+ tuning, output format, and available tools. Providers come in two families with
669
+ two configuration formats:
670
+
671
+ - **Built-in providers** — each has its own configuration block.
672
+ - **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
673
+ - **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
674
+ - **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
675
+ - **Catalog providers** — `mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`. Added
676
+ as catalog data rather than platform code, they share one generic flat format:
677
+ `model`, `modelOptions`, `instructions`, `output`, and the `tools` / `prompts` /
678
+ `resources` arrays directly on this object.
679
+
680
+ A `_connectionId` on the parent import selects bring-your-own-key (BYOK)
681
+ credentials. Without one, built-in providers run on platform-managed
682
+ credentials; catalog providers have no platform-managed credentials, so they
683
+ save without a connection but cannot run until one is attached.
631
684
  required:
632
685
  - provider
633
686
  properties:
@@ -637,18 +690,224 @@ components:
637
690
  - openai
638
691
  - gemini
639
692
  - anthropic
693
+ - mistral
694
+ - xai
695
+ - huggingface
696
+ - deepseek
697
+ - cohere
698
+ - groq
640
699
  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.
700
+ openai: Use OpenAI models via the OpenAI Responses API (built-in; `openai` block).
701
+ gemini: Use Google Gemini models via the LiteLLM proxy (built-in; `litellm` block).
702
+ anthropic: Use Anthropic Claude models via the LiteLLM proxy (built-in; `litellm` block).
703
+ mistral: Use Mistral models (catalog provider; generic flat format, BYOK).
704
+ xai: Use xAI Grok models (catalog provider; generic flat format, BYOK).
705
+ huggingface: Use Hugging Face inference endpoint models (catalog provider; generic flat format, BYOK).
706
+ deepseek: Use DeepSeek models (catalog provider; generic flat format, BYOK).
707
+ cohere: Use Cohere models (catalog provider; generic flat format, BYOK).
708
+ groq: Use Groq-hosted models (catalog provider; generic flat format, BYOK).
644
709
  description: AI provider to use.
645
710
  x-celigo-ai-guidance:
646
711
  - |-
647
- - **openai**: Uses OpenAI Responses API. Configure via the `openai` object.
648
- - **gemini**: Uses Google Gemini via LiteLLM. Configure via `litellm` with
649
- Gemini-specific overrides in `litellm._overrides.gemini`.
650
- - **anthropic**: Uses Anthropic Claude via LiteLLM. Configure via `litellm` with
651
- Claude-specific overrides in `litellm._overrides.anthropic`.
712
+ The provider decides the configuration format, and the server rejects a
713
+ mismatch with 422 `invalid_provider_config_format`: `openai` needs the
714
+ `openai` block, `gemini` and `anthropic` need the `litellm` block (Gemini- or
715
+ Claude-specific settings under `litellm._overrides`), and the catalog
716
+ providers (`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) need the
717
+ generic flat format — `model` and `modelOptions` directly on this object,
718
+ never an `openai` or `litellm` block.
719
+ - |-
720
+ Catalog providers are BYOK-only at run time: the agent saves without a
721
+ `_connectionId`, but its first run fails with 422 `invalid_request` ("No API
722
+ key configured for provider …"). Always attach an HTTP connection to the
723
+ vendor's API (token auth) when the provider is a catalog provider.
724
+ model:
725
+ type: string
726
+ description: |-
727
+ Model identifier for a catalog provider (generic flat format) — for example
728
+ `grok-4.6`. Built-in providers set the model inside their own block
729
+ (`openai.model`, `litellm.model`) instead.
730
+ x-celigo-ai-guidance:
731
+ - |-
732
+ Required for every catalog provider — omitting it or sending an empty string
733
+ fails the save with 422 `missing_required_field`.
734
+ - |-
735
+ Without a `_connectionId` on the parent import the model must be one the
736
+ catalog lists for the provider: an unknown id fails the save with 422
737
+ `model_not_found`, a listed-but-disabled id with 422 `model_disabled`. With a
738
+ `_connectionId` (BYOK) any model string saves — the server does not check it
739
+ against the catalog or the vendor.
740
+ modelOptions:
741
+ type: object
742
+ description: |-
743
+ Model tuning for a catalog provider (generic flat format). Which keys, values, and
744
+ ranges are accepted is defined per catalog model and validated on save when the
745
+ model is a catalog entry.
746
+ properties:
747
+ maxOutputTokens:
748
+ type: number
749
+ description: Maximum number of tokens the model may generate.
750
+ temperature:
751
+ type: number
752
+ description: Sampling temperature.
753
+ topP:
754
+ type: number
755
+ description: Nucleus sampling threshold.
756
+ reasoning_effort:
757
+ type: string
758
+ enum:
759
+ - low
760
+ - medium
761
+ - high
762
+ - xhigh
763
+ x-enumDescriptions:
764
+ low: Minimal reasoning before answering.
765
+ medium: Moderate reasoning.
766
+ high: Extensive reasoning.
767
+ xhigh: Maximum reasoning.
768
+ description: Reasoning depth for models that expose it.
769
+ x-celigo-ai-guidance:
770
+ - |-
771
+ When the model is a catalog entry, the server validates this object against
772
+ that model's schema and fails the save with 422 `invalid_model_options`
773
+ naming the key: unknown keys are rejected, `reasoning_effort` must be one of
774
+ the enum values where the model accepts it at all (xAI's `grok-4.6` does;
775
+ DeepSeek's `deepseek-chat` rejects the key), and numeric bounds apply —
776
+ on `grok-4.6`, `temperature` ≤ 2, `topP` ≤ 1, `maxOutputTokens` ≥ 100.
777
+ - |-
778
+ With a `_connectionId` and a model the catalog does not list, the object is
779
+ passed through unvalidated — send only options the vendor's API accepts.
780
+ instructions:
781
+ type: string
782
+ description: |-
783
+ System prompt for a catalog provider (generic flat format). Built-in providers
784
+ set it inside their own block (`openai.instructions`,
785
+ `litellm._overrides.anthropic.systemInstruction`).
786
+ output:
787
+ type: object
788
+ description: |-
789
+ Output format for a catalog provider (generic flat format). Built-in providers
790
+ configure it inside their own block (`openai.output`, `litellm.responseFormat`).
791
+ properties:
792
+ format:
793
+ type: object
794
+ description: Controls the structure of the model's output.
795
+ properties:
796
+ type:
797
+ type: string
798
+ enum:
799
+ - text
800
+ - json_schema
801
+ x-enumDescriptions:
802
+ text: Free-form text.
803
+ json_schema: Structured JSON conforming to `jsonSchema`.
804
+ description: Output type.
805
+ x-celigo-ai-guidance:
806
+ - |-
807
+ `blob` is not accepted here — the save fails with 422
808
+ `unsupported_output_format` naming the model (verified on `grok-4.6`).
809
+ name:
810
+ type: string
811
+ description: Name of the JSON schema, for `json_schema` output.
812
+ strict:
813
+ type: boolean
814
+ description: When true, the model must conform exactly to `jsonSchema`.
815
+ jsonSchema:
816
+ type: object
817
+ additionalProperties: true
818
+ description: JSON Schema the structured output must conform to, for `json_schema` output.
819
+ verbose:
820
+ type: string
821
+ description: Level of detail in the model's response, for models that expose it.
822
+ tools:
823
+ type: array
824
+ description: |-
825
+ Tools available to a catalog-provider agent (generic flat format). Entries mirror
826
+ the built-in providers' tool entries: a Celigo Tool by `_toolId`, an MCP server by
827
+ `_mcpConnectionId`, or a vendor web-search tool.
828
+ items:
829
+ type: object
830
+ properties:
831
+ type:
832
+ type: string
833
+ enum:
834
+ - tool
835
+ - mcp
836
+ - web_search
837
+ x-enumDescriptions:
838
+ tool: Reference a reusable Celigo Tool resource.
839
+ mcp: Connect to an MCP server for additional external tools.
840
+ web_search: Search the web for real-time information, where the vendor's model supports it.
841
+ description: Type of tool entry.
842
+ tool:
843
+ type: object
844
+ description: Reference to a Celigo Tool resource, used when type is "tool".
845
+ properties:
846
+ _toolId:
847
+ type: string
848
+ format: objectId
849
+ x-celigo-refModel: tools
850
+ description: The Celigo Tool to call.
851
+ mcp:
852
+ type: object
853
+ description: MCP server connection, used when type is "mcp".
854
+ properties:
855
+ _mcpConnectionId:
856
+ type: string
857
+ format: objectId
858
+ x-celigo-refModel: connections
859
+ description: Connection to the MCP server.
860
+ allowedTools:
861
+ type: array
862
+ description: |-
863
+ Specific tools to allow from the MCP server (all if omitted). Each entry
864
+ is either a plain tool name or an object carrying display metadata.
865
+ items:
866
+ type:
867
+ - string
868
+ - object
869
+ config:
870
+ type: object
871
+ additionalProperties: true
872
+ description: Tool-specific options for vendor-native tools (for example web-search settings).
873
+ x-celigo-ai-guidance:
874
+ - |-
875
+ References are checked on save: an unknown `_toolId` or `_mcpConnectionId`
876
+ fails with 422 `invalid_ref` naming the array index.
877
+ prompts:
878
+ type: array
879
+ description: |-
880
+ MCP prompt entries available to a catalog-provider agent (generic flat format).
881
+ Each entry references one MCP connection and the prompt names allowed from it.
882
+ items:
883
+ type: object
884
+ properties:
885
+ type:
886
+ type: string
887
+ enum:
888
+ - mcp
889
+ x-enumDescriptions:
890
+ mcp: Reference prompts exposed by an MCP server.
891
+ description: Type of prompt entry. Always "mcp".
892
+ mcp:
893
+ type: object
894
+ properties:
895
+ _mcpConnectionId:
896
+ type: string
897
+ format: objectId
898
+ x-celigo-refModel: connections
899
+ description: Connection to the MCP server that exposes the prompts.
900
+ allowedPrompts:
901
+ type: array
902
+ description: Prompt names the agent may fetch from the server.
903
+ items:
904
+ type: string
905
+ x-celigo-ai-guidance:
906
+ - |-
907
+ An unknown `_mcpConnectionId` fails the save with 422 `invalid_ref` naming
908
+ the array index.
909
+ resources:
910
+ $ref: '#/components/schemas/McpResources'
652
911
  openai:
653
912
  type: object
654
913
  description: |
@@ -679,10 +938,11 @@ components:
679
938
  x-celigo-ai-guidance:
680
939
  - |-
681
940
  With platform-managed credentials (no `_connectionId` on the parent
682
- import), the model must be on the platform's allowlist — an
683
- unlisted model fails the save with 422. A BYOK connection bypasses
684
- the allowlist and the model string is passed through to the
685
- provider as-is.
941
+ import), the model must be one the platform hosts. The save does not
942
+ check this — an unlisted model saves, and the agent's first run fails
943
+ with 422 `invalid_model`, whose message lists the hosted models. A
944
+ BYOK connection bypasses the hosted list and the model string is
945
+ passed through to the provider as-is.
686
946
  reasoning:
687
947
  type: object
688
948
  description: Controls depth of reasoning for complex tasks.
@@ -701,18 +961,21 @@ components:
701
961
  - medium
702
962
  - high
703
963
  - xhigh
964
+ - max
704
965
  x-enumDescriptions:
705
966
  none: No additional reasoning effort.
706
967
  minimal: Least reasoning effort for simple, straightforward tasks.
707
968
  low: Light reasoning for moderately simple tasks.
708
969
  medium: Balanced reasoning effort for typical tasks.
709
- high: Maximum reasoning effort for complex, multi-step tasks.
710
- xhigh: Highest reasoning effort for the most demanding, multi-step tasks.
970
+ high: Heavy reasoning effort for complex, multi-step tasks.
971
+ xhigh: Very high reasoning effort for the most demanding, multi-step tasks.
972
+ max: Highest available reasoning effort, above xhigh.
711
973
  description: How much reasoning effort the model should invest
712
974
  x-celigo-ai-guidance:
713
975
  - |-
714
976
  How much reasoning effort the model should invest.
715
977
  Reasoning- capable models only — see `reasoning` for the gating rule.
978
+ - Any other value fails the save with 422 `enum` on `aiAgent.openai.reasoning.effort`.
716
979
  summary:
717
980
  type: string
718
981
  enum:
@@ -848,6 +1111,13 @@ components:
848
1111
  additionalproperties:
849
1112
  type: boolean
850
1113
  description: When true, the structured output may include properties beyond those defined in `properties`.
1114
+ schema:
1115
+ type: object
1116
+ readOnly: true
1117
+ additionalProperties: true
1118
+ description: |-
1119
+ Server-written copy of `jsonSchema`, returned whenever `jsonSchema` is set — on
1120
+ AI agent imports and on guardrail agents alike. Send `jsonSchema`, not this field.
851
1121
  if:
852
1122
  properties:
853
1123
  type:
@@ -890,13 +1160,19 @@ components:
890
1160
  - web_search
891
1161
  - mcp
892
1162
  - image_generation
1163
+ - code_execution
893
1164
  - tool
894
1165
  x-enumDescriptions:
895
1166
  web_search: Search the web for real-time information.
896
1167
  mcp: Connect to an MCP server for additional external tools.
897
1168
  image_generation: Generate images using an AI image model.
1169
+ code_execution: 'Enable OpenAI''s built-in code-execution tool; carries no configuration block, send `{type: code_execution}` only'
898
1170
  tool: Reference a reusable Celigo Tool resource.
899
- description: Type of tool.
1171
+ description: |-
1172
+ Type of tool. Every type except `code_execution` is configured through the
1173
+ sibling object of the same name; OpenAI spells this one `code_execution`, while
1174
+ the Gemini and Anthropic overrides spell theirs `codeExecution` — the other spelling
1175
+ fails with 422 `enum`.
900
1176
  webSearch:
901
1177
  type: object
902
1178
  description: Web search configuration (empty object to enable)
@@ -1085,6 +1361,13 @@ components:
1085
1361
  - claude-sonnet-4-6
1086
1362
  - claude-opus-4-7
1087
1363
  x-celigo-ui-override: Required by the AI agent configuration form. Encoded here to mirror the form so builders produce connectable configurations.
1364
+ x-celigo-ai-guidance:
1365
+ - |-
1366
+ With platform-managed credentials (no `_connectionId` on the parent
1367
+ import), the model must be one the platform hosts for the provider —
1368
+ Gemini and Anthropic Claude both have a hosted list. The save does not
1369
+ check this — an unlisted model saves, and the agent's first run fails
1370
+ with 422 `invalid_model`, whose message lists the hosted models.
1088
1371
  temperature:
1089
1372
  type: number
1090
1373
  minimum: 0
@@ -1223,15 +1506,19 @@ components:
1223
1506
  - googleSearch
1224
1507
  - urlContext
1225
1508
  - fileSearch
1509
+ - codeExecution
1226
1510
  - mcp
1227
1511
  - tool
1228
1512
  x-enumDescriptions:
1229
1513
  googleSearch: Use Google Search for real-time information grounding.
1230
1514
  urlContext: Retrieve and use content from specified URLs.
1231
1515
  fileSearch: Search through previously uploaded files.
1516
+ codeExecution: 'Enable Gemini''s built-in code-execution tool; carries no configuration block, send `{type: codeExecution}` only'
1232
1517
  mcp: Connect to an MCP server for additional external tools.
1233
1518
  tool: Reference a reusable Celigo Tool resource.
1234
- description: Type of Gemini tool.
1519
+ description: |-
1520
+ Type of Gemini tool. `codeExecution` is the Gemini spelling — `code_execution`
1521
+ fails with 422 `enum`.
1235
1522
  googleSearch:
1236
1523
  type: object
1237
1524
  description: Google Search configuration (empty object to enable)
@@ -1563,11 +1850,15 @@ components:
1563
1850
  - tool
1564
1851
  - mcp
1565
1852
  - webSearch
1853
+ - codeExecution
1566
1854
  x-enumDescriptions:
1567
1855
  tool: Reference a reusable Celigo Tool resource.
1568
1856
  mcp: Connect to an MCP server for additional external tools.
1569
1857
  webSearch: Search the web for real-time information.
1570
- description: Type of Claude tool.
1858
+ codeExecution: 'Enable Anthropic''s built-in code-execution tool; carries no configuration block, send `{type: codeExecution}` only'
1859
+ description: |-
1860
+ Type of Claude tool. `codeExecution` is the Anthropic spelling — `code_execution`
1861
+ fails with 422 `enum`.
1571
1862
  tool:
1572
1863
  type: object
1573
1864
  description: Reference to a Celigo Tool resource, used when type is "tool".
@@ -1615,9 +1906,43 @@ components:
1615
1906
  description: Connection to the MCP server.
1616
1907
  allowedTools:
1617
1908
  type: array
1618
- description: Specific tools to allow from the MCP server (all if omitted).
1909
+ description: |-
1910
+ Specific tools to allow from the MCP server (all if omitted). Each
1911
+ entry is either a plain tool name or an object carrying display
1912
+ metadata — same contract as the OpenAI and Gemini `allowedTools`.
1619
1913
  items:
1620
- type: string
1914
+ oneOf:
1915
+ - title: name
1916
+ type: string
1917
+ description: Tool name as exposed by the MCP server.
1918
+ - title: tool
1919
+ type: object
1920
+ required:
1921
+ - name
1922
+ properties:
1923
+ name:
1924
+ type: string
1925
+ maxLength: 256
1926
+ description: Tool name as exposed by the MCP server.
1927
+ title:
1928
+ type: string
1929
+ maxLength: 300
1930
+ description: Display title shown for the tool.
1931
+ description:
1932
+ type: string
1933
+ maxLength: 1000
1934
+ description: Display description shown for the tool.
1935
+ x-celigo-ai-guidance:
1936
+ - |-
1937
+ Object entries accept only name/title/description — any other key
1938
+ fails the save with 422 `invalid_field_value` ("unknown field(s): …"),
1939
+ and an object without `name` fails with 422 `missing_required_field`
1940
+ ("Expected field: name to be present.").
1941
+ examples:
1942
+ - - hub_repo_search
1943
+ - name: hub_repo_info
1944
+ title: Repository info
1945
+ description: Look up a repository by name
1621
1946
  webSearch:
1622
1947
  type: object
1623
1948
  description: Web search configuration, used when type is "webSearch".
@@ -1739,6 +2064,22 @@ components:
1739
2064
  litellm:
1740
2065
  required:
1741
2066
  - model
2067
+ else:
2068
+ if:
2069
+ properties:
2070
+ provider:
2071
+ enum:
2072
+ - mistral
2073
+ - xai
2074
+ - huggingface
2075
+ - deepseek
2076
+ - cohere
2077
+ - groq
2078
+ required:
2079
+ - provider
2080
+ then:
2081
+ required:
2082
+ - model
1742
2083
  items:
1743
2084
  type: object
1744
2085
  properties:
@@ -1856,9 +2197,11 @@ components:
1856
2197
  This field supports THREE DISTINCT PATTERNS that are easily distinguished:
1857
2198
 
1858
2199
  **1. json Path Syntax**
1859
- - MUST start with '$.' prefix
2200
+ - MUST start with '$' — the record root. An object record is addressed as
2201
+ '$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
1860
2202
  - Used for precisely targeting data in structured JSON objects
1861
- - Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
2203
+ - Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
2204
+ '$[*].Tax' (every row of a grouped record)
1862
2205
  - Wildcards like [*] extract multiple values/objects
1863
2206
 
1864
2207
  ```json
@@ -1869,7 +2212,8 @@ components:
1869
2212
  - Contains '{{' and '}}' pattern
1870
2213
  - Evaluated by the AFE 2.0 handlebars template engine
1871
2214
  - Can include logic, formatting, and computation
1872
- - Access input record fields with {{record.fieldName}} notation
2215
+ - Access input record fields with {{record.fieldName}} notation; a grouped
2216
+ (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
1873
2217
  - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
1874
2218
  - Valid on `object`, `objectarray`, and primitive-array dataTypes as
1875
2219
  well as scalars — the rendered template output must parse into the
@@ -1880,7 +2224,7 @@ components:
1880
2224
  ```
1881
2225
 
1882
2226
  **3. Hard-Coded Value (literal string)**
1883
- - Does NOT start with '$.'
2227
+ - Does NOT start with '$'
1884
2228
  - Does NOT contain handlebars '{{' syntax
1885
2229
  - System treats it as a literal string value
1886
2230
  - VERY COMMON for setting static/constant values
@@ -1902,10 +2246,38 @@ components:
1902
2246
  - The system maintains this context even in deeply nested mappings
1903
2247
  - For object mappings without child mappings, extract should return a complete object
1904
2248
  - When both extract and mappings are defined for objects, extract is applied first
2249
+ - The root is the record as it arrives: an object record roots at `$.field`; a
2250
+ grouped record (an array of rows — grouped exports, file key columns, NetSuite
2251
+ grouped saved searches) roots at the array, so its rows are addressed as
2252
+ `$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
2253
+ record's shape resolves to nothing without an error.
1905
2254
 
1906
2255
  For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
1907
2256
  For hard-coded values, simply use the literal string as the extract value.
1908
2257
  x-celigo-ai-guidance:
2258
+ - |-
2259
+ ## GROUPED (ARRAY) RECORDS
2260
+ Decide the JSONPath root from the record's shape before writing
2261
+ any extract. When the record is an array of rows, `$.field`,
2262
+ `$.properties.field` and `$.rows[*].field` all resolve to
2263
+ nothing — the processor still reports success and the request
2264
+ body ships as `{}`. Address rows as `$[0].field` (that row's
2265
+ value, typed) or `$[*].field` (every row: joined with commas
2266
+ into a `string` destination; rejected with
2267
+ `incompatible_destination_conversion` into a `number`
2268
+ destination). Column labels with spaces work as
2269
+ `$[*][Order Number]`, `$[*].[Order Number]`, or
2270
+ `$[*]['Order Number']`. For one destination element per row
2271
+ the two array kinds take different helper forms: a primitive
2272
+ array (`stringarray` / `numberarray`) uses `buildArrayHelper:
2273
+ [{"extract": "$[*].field"}]`; an `objectarray` uses
2274
+ `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
2275
+ with the children addressing the row relatively (`$.field`,
2276
+ `{{rows.field}}`). An `extract` placed directly on the
2277
+ array-typed field yields nothing. Handlebars
2278
+ extracts bind the array record as `rows` (`{{rows.0.field}}`),
2279
+ an object record as `record`. The reverse holds too: `$[*]` on
2280
+ an object record iterates the object's values, not rows.
1909
2281
  - |-
1910
2282
  ## SIZE LIMIT
1911
2283
  The platform's import save validator caps this field at **1024
@@ -2163,7 +2535,11 @@ components:
2163
2535
  (`$.items[*]`), `"$"` (the record root), or omission — a
2164
2536
  constructed entry (child `mappings` with the extract omitted or
2165
2537
  `"$"`; the two spellings are equivalent) contributes exactly one
2166
- element, and entries append in order. Indexed or comma-joined
2538
+ element, and entries append in order. On a grouped (array)
2539
+ record the record itself is the array to iterate: `"$[*]"`
2540
+ yields one `objectarray` element per row (children address the
2541
+ row as `$.field`), and `"$[*].field"` yields one primitive-array
2542
+ value per row. Indexed or comma-joined
2167
2543
  entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
2168
2544
  processor renders the entire destination array as null with no
2169
2545
  validation error. To emit a fixed number of static elements, add
@@ -2184,7 +2560,9 @@ components:
2184
2560
 
2185
2561
  **For Simple Arrays (stringarray, numberarray, booleanarray)**
2186
2562
  - Only the 'extract' field is used to pull values
2187
- - JSON path with wildcards (e.g., $.items[*].name) returns multiple values
2563
+ - JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
2564
+ on a grouped (array) record the record itself is the array, so the
2565
+ path roots at it ($[*].name — one value per row)
2188
2566
  - Each result is converted to the appropriate primitive type
2189
2567
  ```json
2190
2568
  {
@@ -2286,11 +2664,13 @@ components:
2286
2664
  - When both extract and mappings are provided, the system creates special composite objects
2287
2665
  that maintain hierarchical context during processing
2288
2666
  - This enables accessing both the current array element AND its parent context
2289
- - An ITERATING entry's extract MUST use JSON path syntax starting with '$.'
2290
- (e.g. '$.items[*]'). A CONSTRUCTED entry (child mappings building one element)
2291
- instead omits extract or sets it to exactly "$" — never rewrite "$" into a
2292
- '$.'-prefixed, indexed, or comma-joined form ('$[0]', '$[0],$[0]'): those render
2293
- the entire destination array as null without raising a validation error
2667
+ - An ITERATING entry's extract MUST be a JSON path that iterates an array:
2668
+ '$.items[*]' when the array is a field of an object record, or '$[*]'
2669
+ (objectarray) / '$[*].field' (primitive arrays) when the record itself is a
2670
+ grouped array of rows. A CONSTRUCTED entry (child mappings building one
2671
+ element) instead omits extract or sets it to exactly "$" — never rewrite "$"
2672
+ into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
2673
+ entire destination array as null without raising a validation error
2294
2674
  - Each array helper entry acts independently, potentially adding multiple elements
2295
2675
 
2296
2676
  The buildArrayHelper is the most complex part of the mappings system - always analyze the
@@ -2704,9 +3084,11 @@ components:
2704
3084
  This field supports THREE DISTINCT PATTERNS that are easily distinguished:
2705
3085
 
2706
3086
  **1. json Path Syntax**
2707
- - MUST start with '$.' prefix
3087
+ - MUST start with '$' — the record root. An object record is addressed as
3088
+ '$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
2708
3089
  - Used for precisely targeting data in structured JSON objects
2709
- - Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
3090
+ - Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
3091
+ '$[*].Tax' (every row of a grouped record)
2710
3092
  - Wildcards like [*] extract multiple values/objects
2711
3093
 
2712
3094
  ```json
@@ -2717,7 +3099,8 @@ components:
2717
3099
  - Contains '{{' and '}}' pattern
2718
3100
  - Evaluated by the AFE 2.0 handlebars template engine
2719
3101
  - Can include logic, formatting, and computation
2720
- - Access input record fields with {{record.fieldName}} notation
3102
+ - Access input record fields with {{record.fieldName}} notation; a grouped
3103
+ (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
2721
3104
  - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
2722
3105
  - Valid on `object`, `objectarray`, and primitive-array dataTypes as
2723
3106
  well as scalars — the rendered template output must parse into the
@@ -2728,7 +3111,7 @@ components:
2728
3111
  ```
2729
3112
 
2730
3113
  **3. Hard-Coded Value (literal string)**
2731
- - Does NOT start with '$.'
3114
+ - Does NOT start with '$'
2732
3115
  - Does NOT contain handlebars '{{' syntax
2733
3116
  - System treats it as a literal string value
2734
3117
  - VERY COMMON for setting static/constant values
@@ -2750,10 +3133,38 @@ components:
2750
3133
  - The system maintains this context even in deeply nested mappings
2751
3134
  - For object mappings without child mappings, extract should return a complete object
2752
3135
  - When both extract and mappings are defined for objects, extract is applied first
3136
+ - The root is the record as it arrives: an object record roots at `$.field`; a
3137
+ grouped record (an array of rows — grouped exports, file key columns, NetSuite
3138
+ grouped saved searches) roots at the array, so its rows are addressed as
3139
+ `$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
3140
+ record's shape resolves to nothing without an error.
2753
3141
 
2754
3142
  For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
2755
3143
  For hard-coded values, simply use the literal string as the extract value.
2756
3144
  x-celigo-ai-guidance:
3145
+ - |-
3146
+ ## GROUPED (ARRAY) RECORDS
3147
+ Decide the JSONPath root from the record's shape before writing
3148
+ any extract. When the record is an array of rows, `$.field`,
3149
+ `$.properties.field` and `$.rows[*].field` all resolve to
3150
+ nothing — the processor still reports success and the request
3151
+ body ships as `{}`. Address rows as `$[0].field` (that row's
3152
+ value, typed) or `$[*].field` (every row: joined with commas
3153
+ into a `string` destination; rejected with
3154
+ `incompatible_destination_conversion` into a `number`
3155
+ destination). Column labels with spaces work as
3156
+ `$[*][Order Number]`, `$[*].[Order Number]`, or
3157
+ `$[*]['Order Number']`. For one destination element per row
3158
+ the two array kinds take different helper forms: a primitive
3159
+ array (`stringarray` / `numberarray`) uses `buildArrayHelper:
3160
+ [{"extract": "$[*].field"}]`; an `objectarray` uses
3161
+ `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
3162
+ with the children addressing the row relatively (`$.field`,
3163
+ `{{rows.field}}`). An `extract` placed directly on the
3164
+ array-typed field yields nothing. Handlebars
3165
+ extracts bind the array record as `rows` (`{{rows.0.field}}`),
3166
+ an object record as `record`. The reverse holds too: `$[*]` on
3167
+ an object record iterates the object's values, not rows.
2757
3168
  - |-
2758
3169
  ## SIZE LIMIT
2759
3170
  The platform's import save validator caps this field at **1024
@@ -3011,7 +3422,11 @@ components:
3011
3422
  (`$.items[*]`), `"$"` (the record root), or omission — a
3012
3423
  constructed entry (child `mappings` with the extract omitted or
3013
3424
  `"$"`; the two spellings are equivalent) contributes exactly one
3014
- element, and entries append in order. Indexed or comma-joined
3425
+ element, and entries append in order. On a grouped (array)
3426
+ record the record itself is the array to iterate: `"$[*]"`
3427
+ yields one `objectarray` element per row (children address the
3428
+ row as `$.field`), and `"$[*].field"` yields one primitive-array
3429
+ value per row. Indexed or comma-joined
3015
3430
  entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
3016
3431
  processor renders the entire destination array as null with no
3017
3432
  validation error. To emit a fixed number of static elements, add
@@ -3032,7 +3447,9 @@ components:
3032
3447
 
3033
3448
  **For Simple Arrays (stringarray, numberarray, booleanarray)**
3034
3449
  - Only the 'extract' field is used to pull values
3035
- - JSON path with wildcards (e.g., $.items[*].name) returns multiple values
3450
+ - JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
3451
+ on a grouped (array) record the record itself is the array, so the
3452
+ path roots at it ($[*].name — one value per row)
3036
3453
  - Each result is converted to the appropriate primitive type
3037
3454
  ```json
3038
3455
  {
@@ -3134,11 +3551,13 @@ components:
3134
3551
  - When both extract and mappings are provided, the system creates special composite objects
3135
3552
  that maintain hierarchical context during processing
3136
3553
  - This enables accessing both the current array element AND its parent context
3137
- - An ITERATING entry's extract MUST use JSON path syntax starting with '$.'
3138
- (e.g. '$.items[*]'). A CONSTRUCTED entry (child mappings building one element)
3139
- instead omits extract or sets it to exactly "$" — never rewrite "$" into a
3140
- '$.'-prefixed, indexed, or comma-joined form ('$[0]', '$[0],$[0]'): those render
3141
- the entire destination array as null without raising a validation error
3554
+ - An ITERATING entry's extract MUST be a JSON path that iterates an array:
3555
+ '$.items[*]' when the array is a field of an object record, or '$[*]'
3556
+ (objectarray) / '$[*].field' (primitive arrays) when the record itself is a
3557
+ grouped array of rows. A CONSTRUCTED entry (child mappings building one
3558
+ element) instead omits extract or sets it to exactly "$" — never rewrite "$"
3559
+ into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
3560
+ entire destination array as null without raising a validation error
3142
3561
  - Each array helper entry acts independently, potentially adding multiple elements
3143
3562
 
3144
3563
  The buildArrayHelper is the most complex part of the mappings system - always analyze the
@@ -4426,6 +4845,16 @@ components:
4426
4845
  x-enumDescriptions:
4427
4846
  create: Builds entirely new output records from inputs, ignoring unmapped fields.
4428
4847
  modify: Makes targeted edits to existing records, preserving unmapped fields.
4848
+ x-celigo-ai-guidance:
4849
+ - |-
4850
+ On a grouped record (the export groups rows, so the record is an
4851
+ array) only `create` can author output — build it from the rows with
4852
+ `$[0].field`, `$[*].field`, or a `buildArrayHelper` over `$[*]`.
4853
+ `modify` has no object to overlay onto an array: the record passes
4854
+ through untouched and the processor reports success. Either mode
4855
+ reshapes the inside of one record; neither changes how many records
4856
+ the page carries (that is the export's `preSavePage` hook) or whether
4857
+ the export groups at all (that is its grouping setting).
4429
4858
  examples:
4430
4859
  - create
4431
4860
  - modify
@@ -4681,36 +5110,53 @@ components:
4681
5110
  OneToMany:
4682
5111
  type: boolean
4683
5112
  description: |
4684
- Controls whether the resource treats child records within parent records as the primary data units.
4685
-
4686
- **Important: this is not for specifying where records are in an api response**
4687
-
4688
- If you need to tell an export where to find the array of records in the HTTP response
4689
- body (e.g. "the records are at data.items"), use `http.response.resourcePath` instead.
4690
- `oneToMany` serves a completely different purpose — it operates on records that have
4691
- already been extracted from the response.
4692
-
4693
- **What oneToMany actually does**
4694
-
4695
- When set to true, this field fundamentally changes how record data is processed:
4696
- - The system will "unwrap" nested child records from their parent containers
4697
- - Each child record becomes a separate output record for downstream processing
4698
- - The pathToMany field must be set to indicate where these child records are located
4699
- - Parent record fields can still be accessed via a special "parent" context
4700
-
4701
- This is typically used on **lookup exports** (isLookup: true) or **imports** where
4702
- the incoming records contain nested arrays that need to be fanned out.
4703
-
4704
- Common scenarios for enabling this option:
4705
- - Processing order line items individually from an order export
4706
- - Handling invoice line items from an invoice export
4707
- - Processing individual transaction lines from journal entries
4708
- - Extracting address records from customer exports
4709
-
4710
- This setting applies for the duration of the current flow step only and does not affect
4711
- how data is stored or structured in other flow steps.
4712
-
4713
- If false (default), the resource processes each top-level record as a single unit.
5113
+ When true, the step runs once per child record instead of once per incoming record.
5114
+ `pathToMany` names the array field that holds the children inside an object record; when
5115
+ the incoming record is itself an array (grouped or row-based data), leave `pathToMany` blank
5116
+ and each element becomes a record. The fan-out is scoped to this step: afterwards the children
5117
+ are re-joined into the record's original shape — the object with its array, or the array of rows —
5118
+ carrying any response-mapping enrichment, and that re-joined record is what the next step
5119
+ receives. Not for locating records in an export's HTTP response; use
5120
+ `http.response.resourcePath` for that. Applies to steps that receive a record — imports and
5121
+ lookups (an export referenced as a page processor of a flow, API, or Tool). A standalone export
5122
+ (a flow's page generator) has no incoming record, so the fields are saved but have no effect on
5123
+ the records it produces; to emit one record per array element from a standalone export, use a
5124
+ `hooks.preSavePage` script, or for a file-definition export make the repeating segment the
5125
+ record boundary in the definition's rules.
5126
+ x-celigo-ai-guidance:
5127
+ - |-
5128
+ Only imports and lookups (exports placed as page processors) fan out. On a standalone export
5129
+ (a flow's page generator) the API saves ``oneToMany`` / ``pathToMany`` and applies neither:
5130
+ the records reach the next step unchanged and no error is raised. Live-verified 2026-09-18 on
5131
+ a flow test run — an order record with three ``lines`` reached the import as ONE record with
5132
+ the setting on the export, and as THREE child records with the same setting on the import.
5133
+ Never propose these fields as the way to split a standalone export's records; that is
5134
+ ``hooks.preSavePage`` work (or, for a file definition, the definition's record boundary).
5135
+ The rules below apply only on a step that receives a record.
5136
+ - |-
5137
+ Two modes, decided by the SHAPE of the record entering the step. Object record with a child
5138
+ array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
5139
+ export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
5140
+ element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
5141
+ - |-
5142
+ Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
5143
+ "Failed to extract child records from oneToMany import data. Record at index 0 was not an
5144
+ array, and no PathToMany was provided". Builder previews return only the code, with no
5145
+ message. The fix is never "turn oneToMany off" by default — first determine whether the
5146
+ record arriving at the step is an object (set a path) or an array (blank is correct; a
5147
+ preview error on an array-fed step is the preview panel re-applying one-to-many to the
5148
+ already-fanned-out record — verify with a test run or a real run).
5149
+ - |-
5150
+ Child record shape differs by mode. Path mode: each child is the array element plus
5151
+ ``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
5152
+ itself, with no ``_PARENT``. In both modes templates on the step reference the child as
5153
+ ``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
5154
+ the downstream step receives the re-joined parent (path mode) or the re-joined array (row
5155
+ mode) with every element enriched.
5156
+ - |-
5157
+ One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
5158
+ root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
5159
+ With the default batch size the template root is ``record``.
4714
5160
  default: false
4715
5161
  examples:
4716
5162
  - true
@@ -4718,27 +5164,31 @@ components:
4718
5164
  PathToMany:
4719
5165
  type: string
4720
5166
  description: |
4721
- Specifies the JSON path to child records when oneToMany mode is enabled.
4722
-
4723
- This field is only used when oneToMany is set to true. It defines the exact location
4724
- of child records within the parent record structure using dot notation:
4725
-
4726
- - Simple path: "items" for a direct child array field
4727
- - Nested path: "lines.lineItems" for a more deeply nested array
4728
- - Multi-level: "details.items.subitems" for deeply nested structures
4729
-
4730
- The system uses this path to:
4731
- - Locate the array of child records within each parent record
4732
- - Extract each array element as a separate record for processing
4733
- - Make both the child record data and parent context available to downstream steps
4734
-
4735
- Important considerations:
4736
- - The path must point to an array field
4737
- - For row-based data (i.e. where Celigo models this via an array or arrays of objects), this field is not required
4738
- - If the path is invalid or doesn't exist, the resource will report success but process zero records
4739
- - Maximum path depth: 10 levels
4740
-
4741
- This field must contain a valid JSON path expression using dot notation.
5167
+ Path to the array of child records inside an object record when `oneToMany` is true, in dot
5168
+ notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
5169
+ (grouped or row-based data) — each element is then a child record. A path that does not resolve
5170
+ to an array processes zero records and reports success. Read only on steps that receive a
5171
+ record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
5172
+ x-celigo-ai-guidance:
5173
+ - |-
5174
+ Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
5175
+ is saved, the export's records reach the next step unchanged, and nothing errors
5176
+ (live-verified 2026-09-18). Splitting a standalone export's records into one per element is
5177
+ ``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
5178
+ - |-
5179
+ Set this ONLY when the record entering the step is an object whose children sit under a field.
5180
+ On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
5181
+ any path resolves to nothing: the step processes ZERO children, builds no request, and reports
5182
+ success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
5183
+ record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
5184
+ - |-
5185
+ Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
5186
+ array, and no PathToMany was provided"); blank with an array record is the correct row-based
5187
+ configuration. An empty string behaves exactly like an absent field.
5188
+ - |-
5189
+ Use the bare field name or dotted path (``lineItems``, ``details.items``), not a JSONPath
5190
+ expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
5191
+ parent-level fields are read as ``{{record._PARENT.<field>}}``.
4742
5192
  examples:
4743
5193
  - items
4744
5194
  - line_items
@@ -4748,9 +5198,11 @@ components:
4748
5198
  type: object
4749
5199
  description: |-
4750
5200
  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 block:
4752
- `aiAgent.openai` for OpenAI, or `aiAgent.litellm` for Gemini and Anthropic Claude
4753
- (with provider-specific settings under `aiAgent.litellm._overrides`).
5201
+ `aiAgent.provider` to choose the LLM backend, then configure the matching format:
5202
+ `aiAgent.openai` for OpenAI, `aiAgent.litellm` for Gemini and Anthropic Claude
5203
+ (with provider-specific settings under `aiAgent.litellm._overrides`), or the
5204
+ generic flat format (`aiAgent.model`, `aiAgent.modelOptions`, …) for the catalog
5205
+ providers Mistral, xAI, Hugging Face, DeepSeek, Cohere, and Groq.
4754
5206
  properties:
4755
5207
  name:
4756
5208
  type: string
@@ -4769,7 +5221,12 @@ components:
4769
5221
  type: string
4770
5222
  format: objectId
4771
5223
  x-celigo-refModel: connections
4772
- description: Connection for BYOK (bring your own key). Optional — platform-managed credentials are used when omitted.
5224
+ description: |-
5225
+ Connection for BYOK (bring your own key) — an HTTP connection to the vendor's API.
5226
+ Optional for the built-in providers (`openai`, `gemini`, `anthropic`), which run on
5227
+ platform-managed credentials when it is omitted. Catalog providers (`mistral`, `xai`,
5228
+ `huggingface`, `deepseek`, `cohere`, `groq`) have no platform-managed credentials: the agent
5229
+ saves without one but cannot run until it is set.
4773
5230
  examples:
4774
5231
  - 662aaa6576bf4040548dbbe4
4775
5232
  _integrationId:
@@ -4872,9 +5329,6 @@ components:
4872
5329
  ignoreMissing:
4873
5330
  type: boolean
4874
5331
  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
5332
  mockResponse:
4879
5333
  type: array
4880
5334
  description: |-
@@ -4912,9 +5366,6 @@ components:
4912
5366
  _headers:
4913
5367
  type: object
4914
5368
  description: Mock response headers.
4915
- blobKey:
4916
- type: string
4917
- description: Blob key returned by blob-mode agents.
4918
5369
  ResourceResponse:
4919
5370
  type: object
4920
5371
  description: Response
@@ -5124,9 +5575,16 @@ components:
5124
5575
  type: object
5125
5576
  description: |-
5126
5577
  Configuration for an AI agent import. Set `aiAgent.provider` to choose
5127
- the LLM backend, then configure the matching block: `aiAgent.openai` for
5128
- OpenAI, or `aiAgent.litellm` for Gemini and Anthropic Claude. Omit
5129
- `_connectionId` to use platform-managed credentials.
5578
+ the LLM backend, then configure the matching format: `aiAgent.openai` for
5579
+ OpenAI, `aiAgent.litellm` for Gemini and Anthropic Claude, or the generic
5580
+ flat format (`aiAgent.model`, `aiAgent.modelOptions`, …) for the catalog
5581
+ providers. Omit `_connectionId` to use platform-managed credentials on a
5582
+ built-in provider; catalog providers need a BYOK connection to run.
5583
+ x-celigo-ai-guidance:
5584
+ - |-
5585
+ AI agents process structured records only. Do not send the import-level `blob` or
5586
+ `blobKeyPath` fields — either one fails the save with 422 `not_supported`
5587
+ ("Field "blob" is not supported for this import type").
5130
5588
  required:
5131
5589
  - name
5132
5590
  - adaptorType
@@ -5344,6 +5802,13 @@ components:
5344
5802
  description: Display name of the dependent resource.
5345
5803
  examples:
5346
5804
  - Import Orders to NetSuite
5805
+ type:
5806
+ type: string
5807
+ description: |-
5808
+ Sub-type of the dependent resource when its collection distinguishes one, such as
5809
+ `stream` for a listener export. Only present for resource types that carry a `type`.
5810
+ examples:
5811
+ - stream
5347
5812
  paths:
5348
5813
  type: array
5349
5814
  description: |-