@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.
Files changed (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
@@ -240,7 +240,11 @@ paths:
240
240
  openai:
241
241
  instructions: Validate that each record has a non-empty email field.
242
242
  model: gpt-4.1-mini-2025-04-14
243
- tools: []
243
+ pii:
244
+ entities: []
245
+ mask: false
246
+ moderation:
247
+ categories: []
244
248
  '401':
245
249
  $ref: '#/components/responses/401-unauthorized'
246
250
  '404':
@@ -459,6 +463,14 @@ components:
459
463
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
460
464
  x-celigo-ai-guidance:
461
465
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
466
+ - |-
467
+ Records that something was written, not what — a settings edit, a flag flip, or a
468
+ platform workflow all move it. What changed and when is in the audit log: the
469
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
470
+ `resourceType` enum lists, or the account-wide
471
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
472
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
473
+ from both enums — jobs, connectors, templates — has only this timestamp.
462
474
  examples:
463
475
  - '2023-04-15T14:30:15Z'
464
476
  deletedAt:
@@ -578,20 +590,35 @@ components:
578
590
  description: URI that identifies the resource on the MCP server.
579
591
  examples:
580
592
  - resource://policies/data-retention
581
- AiAgentConfig:
593
+ GuardrailAiAgentConfig:
582
594
  type: object
583
595
  description: |
584
- AI Agent configuration used by both AiAgentImport and GuardrailImport (ai_agent type).
596
+ LLM configuration for an `ai_agent` guardrail — which provider and model evaluate each
597
+ record, with instructions, parameter tuning, and output format. Guardrails never invoke
598
+ tools, so unlike an AI agent import no block here accepts a `tools` array; MCP `prompts`
599
+ and `resources` remain available. Providers come in two families with two configuration
600
+ formats:
585
601
 
586
- Configures which AI provider and model to use, along with instructions, parameter
587
- tuning, output format, and available tools. Three providers are supported:
602
+ - **Built-in providers** — each has its own configuration block.
603
+ - **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
604
+ - **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
605
+ - **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
606
+ - **Catalog providers** — `mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`. Added
607
+ as catalog data rather than platform code, they share one generic flat format:
608
+ `model`, `modelOptions`, `instructions`, `output`, and the `prompts` / `resources`
609
+ arrays directly on this object.
588
610
 
589
- - **openai**: OpenAI models (GPT-4, GPT-4o, GPT-4o-mini, GPT-5, etc.). Configure via the `openai` object.
590
- - **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
591
- - **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
592
-
593
- A `_connectionId` is optional (BYOK). If not provided on the parent import,
594
- platform-managed credentials are used.
611
+ A `_connectionId` on the parent import selects bring-your-own-key (BYOK)
612
+ credentials. Without one, built-in providers run on platform-managed
613
+ credentials; catalog providers have no platform-managed credentials, so the
614
+ save requires one — without it the guardrail fails to save with 422
615
+ `connection_required` on `_connectionId`.
616
+ x-celigo-ai-guidance:
617
+ - |-
618
+ Do not send `tools` on any block. A non-empty array at `tools`, `openai.tools`,
619
+ `litellm._overrides.gemini.tools`, or `litellm._overrides.anthropic.tools` fails the
620
+ save with 422 `guardrail_tools_not_allowed` naming that path. Responses still echo
621
+ `openai.tools: []` on OpenAI guardrails; do not copy it back into a write.
595
622
  required:
596
623
  - provider
597
624
  properties:
@@ -601,18 +628,170 @@ components:
601
628
  - openai
602
629
  - gemini
603
630
  - anthropic
631
+ - mistral
632
+ - xai
633
+ - huggingface
634
+ - deepseek
635
+ - cohere
636
+ - groq
604
637
  x-enumDescriptions:
605
- openai: Use OpenAI models via the OpenAI Responses API.
606
- gemini: Use Google Gemini models via the LiteLLM proxy.
607
- anthropic: Use Anthropic Claude models via the LiteLLM proxy.
638
+ openai: Use OpenAI models via the OpenAI Responses API (built-in; `openai` block).
639
+ gemini: Use Google Gemini models via the LiteLLM proxy (built-in; `litellm` block).
640
+ anthropic: Use Anthropic Claude models via the LiteLLM proxy (built-in; `litellm` block).
641
+ mistral: Use Mistral models (catalog provider; generic flat format, BYOK).
642
+ xai: Use xAI Grok models (catalog provider; generic flat format, BYOK).
643
+ huggingface: Use Hugging Face inference endpoint models (catalog provider; generic flat format, BYOK).
644
+ deepseek: Use DeepSeek models (catalog provider; generic flat format, BYOK).
645
+ cohere: Use Cohere models (catalog provider; generic flat format, BYOK).
646
+ groq: Use Groq-hosted models (catalog provider; generic flat format, BYOK).
608
647
  description: AI provider to use.
609
648
  x-celigo-ai-guidance:
610
649
  - |-
611
- - **openai**: Uses OpenAI Responses API. Configure via the `openai` object.
612
- - **gemini**: Uses Google Gemini via LiteLLM. Configure via `litellm` with
613
- Gemini-specific overrides in `litellm._overrides.gemini`.
614
- - **anthropic**: Uses Anthropic Claude via LiteLLM. Configure via `litellm` with
615
- Claude-specific overrides in `litellm._overrides.anthropic`.
650
+ The provider decides the configuration format, and the server rejects a
651
+ mismatch with 422 `invalid_provider_config_format`: `openai` needs the
652
+ `openai` block, `gemini` and `anthropic` need the `litellm` block (Gemini- or
653
+ Claude-specific settings under `litellm._overrides`), and the catalog
654
+ providers (`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) need the
655
+ generic flat format — `model` and `modelOptions` directly on this object,
656
+ never an `openai` or `litellm` block.
657
+ - |-
658
+ Catalog providers are BYOK-only, and the save enforces it: without a `_connectionId`
659
+ the guardrail fails to save with 422 `connection_required` on `_connectionId` ("No
660
+ API key is available for provider 'xai'. Add a connection for this provider with
661
+ your API key and select it on this agent."). Attach an HTTP connection to the
662
+ vendor's API (token auth) before saving a catalog-provider guardrail.
663
+ model:
664
+ type: string
665
+ description: |-
666
+ Model identifier for a catalog provider (generic flat format) — for example
667
+ `grok-4.6`. Built-in providers set the model inside their own block
668
+ (`openai.model`, `litellm.model`) instead.
669
+ x-celigo-ai-guidance:
670
+ - |-
671
+ Required for every catalog provider — omitting it or sending an empty string
672
+ fails the save with 422 `missing_required_field`.
673
+ - |-
674
+ The connection is checked before the model: without a `_connectionId` on the
675
+ parent import a catalog-provider guardrail fails to save with 422
676
+ `connection_required` whatever the model string (an unknown id included).
677
+ With a `_connectionId` (BYOK) any model string saves — the server does not
678
+ check it against the catalog or the vendor.
679
+ modelOptions:
680
+ type: object
681
+ description: |-
682
+ Model tuning for a catalog provider (generic flat format). Which keys, values, and
683
+ ranges are accepted is defined per catalog model and validated on save when the
684
+ model is a catalog entry.
685
+ properties:
686
+ maxOutputTokens:
687
+ type: number
688
+ description: Maximum number of tokens the model may generate.
689
+ temperature:
690
+ type: number
691
+ description: Sampling temperature.
692
+ topP:
693
+ type: number
694
+ description: Nucleus sampling threshold.
695
+ reasoning_effort:
696
+ type: string
697
+ enum:
698
+ - low
699
+ - medium
700
+ - high
701
+ - xhigh
702
+ x-enumDescriptions:
703
+ low: Minimal reasoning before answering.
704
+ medium: Moderate reasoning.
705
+ high: Extensive reasoning.
706
+ xhigh: Maximum reasoning.
707
+ description: Reasoning depth for models that expose it.
708
+ x-celigo-ai-guidance:
709
+ - |-
710
+ When the model is a catalog entry, the server validates this object against
711
+ that model's schema and fails the save with 422 `invalid_model_options`
712
+ naming the key: unknown keys are rejected, `reasoning_effort` must be one of
713
+ the enum values where the model accepts it at all (xAI's `grok-4.6` does;
714
+ DeepSeek's `deepseek-chat` rejects the key), and numeric bounds apply —
715
+ on `grok-4.6`, `temperature` ≤ 2, `topP` ≤ 1, `maxOutputTokens` ≥ 100.
716
+ - |-
717
+ With a `_connectionId` and a model the catalog does not list, the object is
718
+ passed through unvalidated — send only options the vendor's API accepts.
719
+ instructions:
720
+ type: string
721
+ description: |-
722
+ System prompt for a catalog provider (generic flat format). Built-in providers
723
+ set it inside their own block (`openai.instructions`,
724
+ `litellm._overrides.anthropic.systemInstruction`).
725
+ output:
726
+ type: object
727
+ description: |-
728
+ Output format for a catalog provider (generic flat format). Built-in providers
729
+ configure it inside their own block (`openai.output`, `litellm.responseFormat`).
730
+ properties:
731
+ format:
732
+ type: object
733
+ description: Controls the structure of the model's output.
734
+ properties:
735
+ type:
736
+ type: string
737
+ enum:
738
+ - text
739
+ - json_schema
740
+ x-enumDescriptions:
741
+ text: Free-form text.
742
+ json_schema: Structured JSON conforming to `jsonSchema`.
743
+ description: Output type.
744
+ x-celigo-ai-guidance:
745
+ - |-
746
+ `blob` is not accepted here — the save fails with 422
747
+ `unsupported_output_format` naming the model (verified on `grok-4.6`).
748
+ name:
749
+ type: string
750
+ description: Name of the JSON schema, for `json_schema` output.
751
+ strict:
752
+ type: boolean
753
+ description: When true, the model must conform exactly to `jsonSchema`.
754
+ jsonSchema:
755
+ type: object
756
+ additionalProperties: true
757
+ description: JSON Schema the structured output must conform to, for `json_schema` output.
758
+ verbose:
759
+ type: string
760
+ description: Level of detail in the model's response, for models that expose it.
761
+ prompts:
762
+ type: array
763
+ description: |-
764
+ MCP prompt entries available to a catalog-provider guardrail (generic flat format).
765
+ Each entry references one MCP connection and the prompt names allowed from it.
766
+ items:
767
+ type: object
768
+ properties:
769
+ type:
770
+ type: string
771
+ enum:
772
+ - mcp
773
+ x-enumDescriptions:
774
+ mcp: Reference prompts exposed by an MCP server.
775
+ description: Type of prompt entry. Always "mcp".
776
+ mcp:
777
+ type: object
778
+ properties:
779
+ _mcpConnectionId:
780
+ type: string
781
+ format: objectId
782
+ x-celigo-refModel: connections
783
+ description: Connection to the MCP server that exposes the prompts.
784
+ allowedPrompts:
785
+ type: array
786
+ description: Prompt names the model may fetch from the server.
787
+ items:
788
+ type: string
789
+ x-celigo-ai-guidance:
790
+ - |-
791
+ An unknown `_mcpConnectionId` fails the save with 422 `invalid_ref` naming
792
+ the array index.
793
+ resources:
794
+ $ref: '#/components/schemas/McpResources'
616
795
  openai:
617
796
  type: object
618
797
  description: |
@@ -625,7 +804,7 @@ components:
625
804
  type: string
626
805
  maxLength: 1000000
627
806
  description: |
628
- System prompt that defines the AI agent's behavior, goals, and constraints.
807
+ System prompt that defines the check's behavior, goals, and constraints.
629
808
  examples:
630
809
  - You are a data validation agent. Check each record for completeness.
631
810
  x-celigo-ui-override: Required by the AI agent configuration form (the model's system prompt). Encoded here to mirror the form so builders produce connectable configurations.
@@ -643,10 +822,11 @@ components:
643
822
  x-celigo-ai-guidance:
644
823
  - |-
645
824
  With platform-managed credentials (no `_connectionId` on the parent
646
- import), the model must be on the platform's allowlist — an
647
- unlisted model fails the save with 422. A BYOK connection bypasses
648
- the allowlist and the model string is passed through to the
649
- provider as-is.
825
+ import), the model must be one the platform hosts. The save does not
826
+ check this — an unlisted model saves, and the guardrail's first run fails
827
+ with 422 `invalid_model`, whose message lists the hosted models. A
828
+ BYOK connection bypasses the hosted list and the model string is
829
+ passed through to the provider as-is.
650
830
  reasoning:
651
831
  type: object
652
832
  description: Controls depth of reasoning for complex tasks.
@@ -665,13 +845,15 @@ components:
665
845
  - medium
666
846
  - high
667
847
  - xhigh
848
+ - max
668
849
  x-enumDescriptions:
669
850
  none: No additional reasoning effort.
670
851
  minimal: Least reasoning effort for simple, straightforward tasks.
671
852
  low: Light reasoning for moderately simple tasks.
672
853
  medium: Balanced reasoning effort for typical tasks.
673
- high: Maximum reasoning effort for complex, multi-step tasks.
674
- xhigh: Highest reasoning effort for the most demanding, multi-step tasks.
854
+ high: Extensive reasoning effort for complex, multi-step tasks.
855
+ xhigh: Extended reasoning effort beyond high for demanding tasks.
856
+ max: Highest available reasoning effort.
675
857
  description: How much reasoning effort the model should invest
676
858
  x-celigo-ai-guidance:
677
859
  - |-
@@ -713,8 +895,7 @@ components:
713
895
  type: number
714
896
  minimum: 100
715
897
  maximum: 128000
716
- default: 5000
717
- description: Maximum number of tokens in the model's response (server default observed live on create)
898
+ description: Maximum number of tokens in the model's response. Unlike an AI agent import, a guardrail does not receive a server-written value when this is omitted.
718
899
  serviceTier:
719
900
  type: string
720
901
  enum:
@@ -725,7 +906,6 @@ components:
725
906
  auto: Let OpenAI automatically select the appropriate service tier.
726
907
  default: Standard service tier with normal rate limits and latency.
727
908
  priority: Premium tier with higher rate limits and lower latency at increased cost.
728
- default: default
729
909
  description: |-
730
910
  OpenAI service tier. "priority" provides higher rate limits and
731
911
  lower latency at increased cost.
@@ -753,7 +933,6 @@ components:
753
933
  text: Free-form text response from the model.
754
934
  json_schema: Structured JSON output conforming to a defined schema.
755
935
  blob: Binary data output for non-text content.
756
- default: text
757
936
  description: Output format type.
758
937
  schemaMode:
759
938
  type: string
@@ -761,19 +940,23 @@ components:
761
940
  - manual
762
941
  - json
763
942
  x-enumDescriptions:
764
- manual: The schema was built field-by-field in the visual editor.
765
- json: The schema was pasted or edited as raw JSON.
943
+ manual: The schema editor opens `jsonSchema` in the visual field-by-field view
944
+ json: The schema editor opens `jsonSchema` in the raw JSON view
766
945
  description: |-
767
- How the structured-output schema was authored in the UI.
768
- Editor state only — it does not change how `jsonSchema` is
769
- sent to the provider.
946
+ Which view a schema editor opens `jsonSchema` in; the schema sent to the
947
+ provider is the same either way. Stored and echoed on guardrails for parity
948
+ with the AI-agent format block — the guardrail form does not set it today.
949
+ x-celigo-ai-guidance:
950
+ - |-
951
+ Resend the stored value on every update — a full PUT that omits the field
952
+ clears it — and never invent one: a value outside the enum fails the save with
953
+ 422 `enum` on `guardrail.aiAgent.openai.output.format.schemaMode`.
770
954
  name:
771
955
  type: string
772
956
  description: Name for the output format (used with json_schema)
773
957
  x-celigo-ui-override: Required by the AI agent form when output format type is json_schema. Encoded here to mirror the form so builders produce connectable configurations.
774
958
  strict:
775
959
  type: boolean
776
- default: false
777
960
  description: When true, enforces strict schema validation on output.
778
961
  x-celigo-ai-guidance:
779
962
  - Whether to enforce strict schema validation on output
@@ -812,6 +995,13 @@ components:
812
995
  additionalproperties:
813
996
  type: boolean
814
997
  description: When true, the structured output may include properties beyond those defined in `properties`.
998
+ schema:
999
+ type: object
1000
+ readOnly: true
1001
+ additionalProperties: true
1002
+ description: |-
1003
+ Server-written copy of `jsonSchema`, present in responses once `jsonSchema`
1004
+ is set. Send `jsonSchema`, not this field.
815
1005
  if:
816
1006
  properties:
817
1007
  type:
@@ -832,7 +1022,6 @@ components:
832
1022
  low: Minimal detail in the model's response.
833
1023
  medium: Moderate detail in the model's response, the default level.
834
1024
  high: Maximum detail and verbosity in the model's response.
835
- default: medium
836
1025
  description: Level of detail in the model's response
837
1026
  x-celigo-ai-guidance:
838
1027
  - |-
@@ -841,165 +1030,11 @@ components:
841
1030
  `gpt-4.1-nano`) accept only `medium` (the no-op default) — `low` and `high` are
842
1031
  rejected by the provider at runtime.
843
1032
  Omit the field entirely on non-GPT-5 models rather than relying on the default.
844
- tools:
845
- type: array
846
- description: |
847
- Tools available to the AI agent during processing.
848
- items:
849
- type: object
850
- properties:
851
- type:
852
- type: string
853
- enum:
854
- - web_search
855
- - mcp
856
- - image_generation
857
- - tool
858
- x-enumDescriptions:
859
- web_search: Search the web for real-time information.
860
- mcp: Connect to an MCP server for additional external tools.
861
- image_generation: Generate images using an AI image model.
862
- tool: Reference a reusable Celigo Tool resource.
863
- description: Type of tool.
864
- webSearch:
865
- type: object
866
- description: Web search configuration (empty object to enable)
867
- imageGeneration:
868
- type: object
869
- description: Image generation configuration
870
- properties:
871
- background:
872
- type: string
873
- description: Controls whether generated images have a transparent or opaque background; use transparent only with output formats that support it (png, webp).
874
- enum:
875
- - transparent
876
- - opaque
877
- x-enumDescriptions:
878
- transparent: Generate an image with a transparent background.
879
- opaque: Generate an image with a solid, non-transparent background.
880
- quality:
881
- type: string
882
- description: Rendering quality of generated images, trading detail for generation speed and file size.
883
- enum:
884
- - low
885
- - medium
886
- - high
887
- x-enumDescriptions:
888
- low: Lower quality for faster generation and smaller file size.
889
- medium: Balanced quality and generation speed.
890
- high: Highest quality output with more detail.
891
- size:
892
- type: string
893
- description: Pixel dimensions of generated images; choose square, portrait, or landscape to match the intended use.
894
- enum:
895
- - 1024x1024
896
- - 1024x1536
897
- - 1536x1024
898
- x-enumDescriptions:
899
- 1024x1024: Square image at 1024 by 1024 pixels.
900
- 1024x1536: Portrait image at 1024 by 1536 pixels.
901
- 1536x1024: Landscape image at 1536 by 1024 pixels.
902
- outputFormat:
903
- type: string
904
- description: File format of generated images; use png or webp when transparency is needed.
905
- enum:
906
- - png
907
- - webp
908
- - jpeg
909
- x-enumDescriptions:
910
- png: PNG format with lossless compression, supports transparency.
911
- webp: WebP format with efficient compression for web use.
912
- jpeg: JPEG format with lossy compression for smaller file sizes.
913
- mcp:
914
- type: object
915
- description: MCP server tool configuration
916
- properties:
917
- _mcpConnectionId:
918
- type: string
919
- format: objectId
920
- x-celigo-refModel: connections
921
- description: Connection to the MCP server
922
- allowedTools:
923
- type: array
924
- description: |-
925
- Specific tools to allow from the MCP server (all if
926
- omitted). Each entry is either a plain tool name (legacy
927
- form) or an object carrying display metadata.
928
- items:
929
- type:
930
- - string
931
- - object
932
- properties:
933
- name:
934
- type: string
935
- maxLength: 256
936
- description: Tool name as exposed by the MCP server.
937
- title:
938
- type: string
939
- maxLength: 300
940
- description: Display title shown for the tool.
941
- description:
942
- type: string
943
- maxLength: 1000
944
- description: Display description shown for the tool.
945
- required:
946
- - name
947
- x-celigo-ai-guidance:
948
- - |-
949
- Object entries accept only name/title/description — any
950
- other key fails validation with "unknown field(s)", and
951
- an object without a non-empty name fails with a
952
- missing-required-field error. String entries are the
953
- legacy form and stay valid.
954
- allowedPrompts:
955
- type: array
956
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
957
- items:
958
- type: string
959
- tool:
960
- type: object
961
- description: |
962
- Reference to a Celigo Tool resource.
963
- properties:
964
- _toolId:
965
- type: string
966
- format: objectId
967
- x-celigo-refModel: tools
968
- description: Reference to the Tool resource
969
- overrides:
970
- type: object
971
- description: Per-agent overrides for the tool's internal resources
972
- properties:
973
- connections:
974
- type: array
975
- description: |
976
- Remaps the tool's abstract connections for this agent. Each entry pairs
977
- the tool's abstract connection placeholder (`_abstractId`) with the
978
- concrete connection (`_id`) to use for this agent; entries without
979
- `_id` keep the tool's own default connection.
980
- items:
981
- type:
982
- - object
983
- - 'null'
984
- required:
985
- - _abstractId
986
- properties:
987
- _abstractId:
988
- type: string
989
- format: objectId
990
- description: The tool's abstract connection placeholder being overridden.
991
- _id:
992
- type: string
993
- format: objectId
994
- x-celigo-refModel: connections
995
- description: Concrete connection to use in place of the abstract placeholder.
996
1033
  prompts:
997
1034
  type: array
998
- description: |
999
- MCP prompt entries available to the agent. Each item references one MCP connection
1000
- and the prompt names allowed from it. Configured alongside `tools` in the form but
1001
- stored separately; an entry's `allowedPrompts` is what distinguishes a prompt entry
1002
- from an MCP tool entry (which carries `allowedTools`).
1035
+ description: |-
1036
+ MCP prompt entries available to the guardrail's model. Each item references one
1037
+ MCP connection and the prompt names allowed from it.
1003
1038
  items:
1004
1039
  type: object
1005
1040
  properties:
@@ -1049,6 +1084,13 @@ components:
1049
1084
  - claude-sonnet-4-6
1050
1085
  - claude-opus-4-7
1051
1086
  x-celigo-ui-override: Required by the AI agent configuration form. Encoded here to mirror the form so builders produce connectable configurations.
1087
+ x-celigo-ai-guidance:
1088
+ - |-
1089
+ With platform-managed credentials (no `_connectionId` on the parent
1090
+ import), the model must be one the platform hosts for the provider —
1091
+ Gemini and Anthropic Claude both have a hosted list. The save does not
1092
+ check this — an unlisted model saves, and the guardrail's first run fails
1093
+ with 422 `invalid_model`, whose message lists the hosted models.
1052
1094
  temperature:
1053
1095
  type: number
1054
1096
  minimum: 0
@@ -1062,7 +1104,6 @@ components:
1062
1104
  type: number
1063
1105
  minimum: 100
1064
1106
  maximum: 128000
1065
- default: 5000
1066
1107
  description: Maximum number of tokens in the response
1067
1108
  topP:
1068
1109
  type: number
@@ -1092,19 +1133,23 @@ components:
1092
1133
  text: Free-form text response from the model.
1093
1134
  json_schema: Structured JSON output conforming to a defined schema.
1094
1135
  blob: Binary data output for non-text content.
1095
- default: text
1096
1136
  schemaMode:
1097
1137
  type: string
1098
1138
  enum:
1099
1139
  - manual
1100
1140
  - json
1101
1141
  x-enumDescriptions:
1102
- manual: The schema was built field-by-field in the visual editor.
1103
- json: The schema was pasted or edited as raw JSON.
1142
+ manual: The schema editor opens `jsonSchema` in the visual field-by-field view
1143
+ json: The schema editor opens `jsonSchema` in the raw JSON view
1104
1144
  description: |-
1105
- How the structured-output schema was authored in the UI. Editor
1106
- state only — it does not change how `jsonSchema` is sent to the
1107
- provider.
1145
+ Which view a schema editor opens `jsonSchema` in; the schema sent to the provider
1146
+ is the same either way. Stored and echoed on guardrails for parity with the
1147
+ AI-agent format block — the guardrail form does not set it today.
1148
+ x-celigo-ai-guidance:
1149
+ - |-
1150
+ Resend the stored value on every update — a full PUT that omits the field clears
1151
+ it — and never invent one: a value outside the enum fails the save with 422 `enum`
1152
+ on `guardrail.aiAgent.litellm.responseFormat.schemaMode`.
1108
1153
  name:
1109
1154
  type: string
1110
1155
  description: Name for the output format (used with json_schema).
@@ -1112,7 +1157,6 @@ components:
1112
1157
  strict:
1113
1158
  type: boolean
1114
1159
  description: When true, enforces strict schema validation on output.
1115
- default: false
1116
1160
  jsonSchema:
1117
1161
  type: object
1118
1162
  description: JSON Schema for structured output. Required when `responseFormat.type` is "json_schema".
@@ -1175,124 +1219,11 @@ components:
1175
1219
  System instruction for Gemini models. Equivalent to OpenAI's `instructions`.
1176
1220
  Maximum 1,000,000 characters.
1177
1221
  x-celigo-ui-override: Required by the AI agent configuration form (the model's system prompt, the Gemini equivalent of `instructions`). Encoded here to mirror the form so builders produce connectable configurations.
1178
- tools:
1179
- type: array
1180
- description: Gemini-specific tools
1181
- items:
1182
- type: object
1183
- properties:
1184
- type:
1185
- type: string
1186
- enum:
1187
- - googleSearch
1188
- - urlContext
1189
- - fileSearch
1190
- - mcp
1191
- - tool
1192
- x-enumDescriptions:
1193
- googleSearch: Use Google Search for real-time information grounding.
1194
- urlContext: Retrieve and use content from specified URLs.
1195
- fileSearch: Search through previously uploaded files.
1196
- mcp: Connect to an MCP server for additional external tools.
1197
- tool: Reference a reusable Celigo Tool resource.
1198
- description: Type of Gemini tool.
1199
- googleSearch:
1200
- type: object
1201
- description: Google Search configuration (empty object to enable)
1202
- urlContext:
1203
- type: object
1204
- description: URL context configuration (empty object to enable)
1205
- fileSearch:
1206
- type: object
1207
- description: File search configuration, used when type is "fileSearch".
1208
- properties:
1209
- fileSearchStoreNames:
1210
- type: array
1211
- description: Names of the file search stores the model can query.
1212
- items:
1213
- type: string
1214
- mcp:
1215
- type: object
1216
- description: MCP server tool configuration, used when type is "mcp".
1217
- properties:
1218
- _mcpConnectionId:
1219
- type: string
1220
- format: objectId
1221
- x-celigo-refModel: connections
1222
- description: Connection to the MCP server.
1223
- allowedTools:
1224
- type: array
1225
- description: |-
1226
- Specific tools to allow from the MCP server (all if
1227
- omitted). Each entry is either a plain tool name
1228
- (legacy form) or an object carrying display metadata
1229
- — same contract as the OpenAI `allowedTools`.
1230
- items:
1231
- type:
1232
- - string
1233
- - object
1234
- properties:
1235
- name:
1236
- type: string
1237
- maxLength: 256
1238
- description: Tool name as exposed by the MCP server.
1239
- title:
1240
- type: string
1241
- maxLength: 300
1242
- description: Display title shown for the tool.
1243
- description:
1244
- type: string
1245
- maxLength: 1000
1246
- description: Display description shown for the tool.
1247
- required:
1248
- - name
1249
- allowedPrompts:
1250
- type: array
1251
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
1252
- items:
1253
- type: string
1254
- tool:
1255
- type: object
1256
- description: Reference to a Celigo Tool resource, used when type is "tool".
1257
- properties:
1258
- _toolId:
1259
- type: string
1260
- format: objectId
1261
- x-celigo-refModel: tools
1262
- description: Reference to the Tool resource.
1263
- overrides:
1264
- type: object
1265
- description: Per-agent overrides for the tool's internal resources.
1266
- properties:
1267
- connections:
1268
- type: array
1269
- description: |
1270
- Remaps the tool's abstract connections for this agent. Each entry
1271
- pairs the tool's abstract connection placeholder (`_abstractId`)
1272
- with the concrete connection (`_id`) to use for this agent;
1273
- entries without `_id` keep the tool's own default connection.
1274
- items:
1275
- type:
1276
- - object
1277
- - 'null'
1278
- required:
1279
- - _abstractId
1280
- properties:
1281
- _abstractId:
1282
- type: string
1283
- format: objectId
1284
- description: The tool's abstract connection placeholder being overridden.
1285
- _id:
1286
- type: string
1287
- format: objectId
1288
- x-celigo-refModel: connections
1289
- description: Concrete connection to use in place of the abstract placeholder.
1290
1222
  prompts:
1291
1223
  type: array
1292
- description: |
1293
- MCP prompt entries available to the Gemini agent. Each item references one
1294
- MCP connection and the prompt names allowed from it. The presence of
1295
- `allowedPrompts` distinguishes a prompt entry from an MCP tool entry.
1224
+ description: |-
1225
+ MCP prompt entries available to the Gemini model. Each item references one
1226
+ MCP connection and the prompt names allowed from it.
1296
1227
  items:
1297
1228
  type: object
1298
1229
  properties:
@@ -1335,8 +1266,6 @@ components:
1335
1266
  x-enumDescriptions:
1336
1267
  text: Generate text content in the response.
1337
1268
  image: Generate image content in the response.
1338
- default:
1339
- - text
1340
1269
  topK:
1341
1270
  type: number
1342
1271
  description: Top-K sampling parameter for Gemini
@@ -1460,7 +1389,6 @@ components:
1460
1389
  enabled: Turn on extended thinking with an explicit token budget.
1461
1390
  disabled: Turn off extended thinking.
1462
1391
  adaptive: Let the model decide how much to think based on task complexity.
1463
- default: disabled
1464
1392
  description: Extended thinking mode.
1465
1393
  budgetTokens:
1466
1394
  type: number
@@ -1477,7 +1405,6 @@ components:
1477
1405
  x-enumDescriptions:
1478
1406
  summarized: Include a summarized view of the model's thinking in the response.
1479
1407
  omitted: Exclude the model's thinking from the response.
1480
- default: summarized
1481
1408
  description: How thinking output is surfaced in the response.
1482
1409
  effort:
1483
1410
  type: string
@@ -1513,140 +1440,12 @@ components:
1513
1440
  x-enumDescriptions:
1514
1441
  auto: Let Anthropic select the appropriate service tier.
1515
1442
  standard_only: Restrict processing to the standard service tier.
1516
- default: auto
1517
1443
  description: Anthropic service tier for the request.
1518
- tools:
1519
- type: array
1520
- description: Claude-specific tools.
1521
- items:
1522
- type: object
1523
- properties:
1524
- type:
1525
- type: string
1526
- enum:
1527
- - tool
1528
- - mcp
1529
- - webSearch
1530
- x-enumDescriptions:
1531
- tool: Reference a reusable Celigo Tool resource.
1532
- mcp: Connect to an MCP server for additional external tools.
1533
- webSearch: Search the web for real-time information.
1534
- description: Type of Claude tool.
1535
- tool:
1536
- type: object
1537
- description: Reference to a Celigo Tool resource, used when type is "tool".
1538
- properties:
1539
- _toolId:
1540
- type: string
1541
- format: objectId
1542
- x-celigo-refModel: tools
1543
- description: Reference to the Tool resource.
1544
- overrides:
1545
- type: object
1546
- description: Per-agent overrides for the tool's internal resources.
1547
- properties:
1548
- connections:
1549
- type: array
1550
- description: |
1551
- Remaps the tool's abstract connections for this agent. Each entry
1552
- pairs the tool's abstract connection placeholder (`_abstractId`)
1553
- with the concrete connection (`_id`) to use for this agent;
1554
- entries without `_id` keep the tool's own default connection.
1555
- items:
1556
- type:
1557
- - object
1558
- - 'null'
1559
- required:
1560
- - _abstractId
1561
- properties:
1562
- _abstractId:
1563
- type: string
1564
- format: objectId
1565
- description: The tool's abstract connection placeholder being overridden.
1566
- _id:
1567
- type: string
1568
- format: objectId
1569
- x-celigo-refModel: connections
1570
- description: Concrete connection to use in place of the abstract placeholder.
1571
- mcp:
1572
- type: object
1573
- description: MCP server tool configuration, used when type is "mcp".
1574
- properties:
1575
- _mcpConnectionId:
1576
- type: string
1577
- format: objectId
1578
- x-celigo-refModel: connections
1579
- description: Connection to the MCP server.
1580
- allowedTools:
1581
- type: array
1582
- description: Specific tools to allow from the MCP server (all if omitted).
1583
- items:
1584
- type: string
1585
- webSearch:
1586
- type: object
1587
- description: Web search configuration, used when type is "webSearch".
1588
- x-celigo-ai-guidance:
1589
- - |-
1590
- `allowedDomains` and `blockedDomains` are mutually exclusive — set at most
1591
- one. Sending both fails with 422 `invalid_hosted_tool`.
1592
- - |-
1593
- When `userLocation` is present, set at least one of `city`, `country`,
1594
- `region`, or `timezone`; an empty `userLocation` fails with 422
1595
- `missing_required_field`.
1596
- properties:
1597
- version:
1598
- type: string
1599
- pattern: ^\d{8}$
1600
- description: |-
1601
- Anthropic web search tool version (YYYYMMDD). Selects the tool version sent
1602
- on the wire; unsupported versions surface as an Anthropic 400.
1603
- examples:
1604
- - '20250305'
1605
- allowedDomains:
1606
- type: array
1607
- description: Domains the search may return results from. Mutually exclusive with `blockedDomains`.
1608
- items:
1609
- type: string
1610
- blockedDomains:
1611
- type: array
1612
- description: Domains to exclude from search results. Mutually exclusive with `allowedDomains`.
1613
- items:
1614
- type: string
1615
- userLocation:
1616
- type: object
1617
- description: |-
1618
- Approximate user location used to localize search results. When present, at
1619
- least one of `city`, `country`, `region`, or `timezone` must be set.
1620
- properties:
1621
- type:
1622
- type: string
1623
- enum:
1624
- - approximate
1625
- x-enumDescriptions:
1626
- approximate: Localize results to an approximate user location.
1627
- description: Location type. Always "approximate".
1628
- city:
1629
- type: string
1630
- maxLength: 256
1631
- description: City name for localizing search results.
1632
- country:
1633
- type: string
1634
- maxLength: 8
1635
- description: ISO 3166-1 alpha-2 country code for localizing search results.
1636
- region:
1637
- type: string
1638
- maxLength: 256
1639
- description: Region or state for localizing search results.
1640
- timezone:
1641
- type: string
1642
- maxLength: 64
1643
- description: IANA timezone for localizing search results.
1644
1444
  prompts:
1645
1445
  type: array
1646
- description: |
1647
- MCP prompt entries available to the Claude agent. Each item references one MCP
1648
- connection and the prompt names allowed from it. The presence of `allowedPrompts`
1649
- distinguishes a prompt entry from an MCP tool entry.
1446
+ description: |-
1447
+ MCP prompt entries available to the Claude model. Each item references one
1448
+ MCP connection and the prompt names allowed from it.
1650
1449
  items:
1651
1450
  type: object
1652
1451
  properties:
@@ -1703,52 +1502,43 @@ components:
1703
1502
  litellm:
1704
1503
  required:
1705
1504
  - model
1505
+ else:
1506
+ if:
1507
+ properties:
1508
+ provider:
1509
+ enum:
1510
+ - mistral
1511
+ - xai
1512
+ - huggingface
1513
+ - deepseek
1514
+ - cohere
1515
+ - groq
1516
+ required:
1517
+ - provider
1518
+ then:
1519
+ required:
1520
+ - model
1706
1521
  GuardrailConfig:
1707
1522
  type: object
1708
1523
  description: |-
1709
- Configuration for GuardrailImport adaptor type.
1710
-
1711
- Guardrails evaluate data flowing through integrations for safety and
1712
- compliance. The `type` field selects which check to apply, and the
1713
- corresponding sub-object (`aiAgent`, `pii`, or `moderation`) provides
1714
- the configuration.
1715
-
1716
- A `_connectionId` on the parent import is only needed for BYOK
1717
- `ai_agent` guardrails. In responses the server echoes the active type's
1718
- sub-object and applies the `confidenceThreshold` default; it also
1719
- returns inactive sibling sub-objects (e.g. `moderation: {categories: []}`
1720
- on a `pii` guardrail, or a populated `pii` left over from a type switch),
1721
- but only the active type's sub-object is meaningful. Legacy documents
1722
- may carry a server-written default `aiAgent` stub on `pii`/`moderation`
1723
- guardrails; current servers strip the inactive `aiAgent` on write.
1524
+ Selects the check a guardrail applies and carries its settings. `type` picks the check
1525
+ and the matching sub-object (`pii`, `moderation`, or `aiAgent`) configures it.
1526
+ Responses echo the active sub-object with `confidenceThreshold` defaulted and also
1527
+ return the inactive `pii` / `moderation` siblings as empty stubs
1528
+ (`pii: {entities: [], mask: false}`, `moderation: {categories: []}`) — only the active
1529
+ type's sub-object is meaningful. Guardrails created before the AI-agent stub was
1530
+ stripped on write may still return an inert `aiAgent` on `pii` / `moderation` guardrails.
1724
1531
  x-celigo-ai-guidance:
1725
1532
  - |-
1726
- Guardrails are safety and compliance checks that can be applied
1727
- to data flowing through integrations. Three mutually-exclusive
1728
- types are supported — see `type` below for the full decision
1729
- rule on which to pick:
1730
-
1731
- - **pii**: Detect (and optionally mask) personally identifiable
1732
- information. Local deterministic classifier; fixed enum of
1733
- entity types (`pii.entities`).
1734
- - **moderation**: Detect harmful / inappropriate / policy-
1735
- violating CONTENT. Local deterministic classifier; fixed enum
1736
- of categories (`moderation.categories` — `sexual`, `hate`,
1737
- `harassment`, `self_harm`, `violence`, `illicit`, etc.). Use
1738
- category names exactly as listed in the enum — e.g. `hate`
1739
- (not "hate speech"), `violence` (not "violent content"). Map
1740
- natural-language synonyms ("explicit" → `sexual`, "toxic" →
1741
- `harassment`, etc.) to the closest enum value rather than
1742
- falling back to `ai_agent`.
1743
- - **ai_agent**: LLM-evaluated judgement against custom
1744
- instructions. Catch-all for intents that don't fit `pii` or
1745
- `moderation` — domain-specific compliance, business-policy
1746
- checks, data-quality assertions, etc. Pick this LAST, not as
1747
- the default.
1533
+ Pick exactly one type. Prefer the deterministic local classifiers (`pii`, then
1534
+ `moderation`) whenever the brief's intent fits; use `ai_agent` only for custom
1535
+ judgement that has no `pii.entities` / `moderation.categories` analogue — the full
1536
+ decision rule is on `type`.
1748
1537
  - |-
1749
- Prefer the cheaper / more deterministic types (`pii` > `moderation` >
1750
- `ai_agent`) whenever the brief's intent fits.
1751
- - Guardrail imports do not require a `_connectionId` (unless using BYOK for `ai_agent` type).
1538
+ Guardrails never invoke tools. A non-empty `tools` array anywhere under `aiAgent`
1539
+ (`aiAgent.tools`, `aiAgent.openai.tools`, `aiAgent.litellm._overrides.gemini.tools`,
1540
+ `aiAgent.litellm._overrides.anthropic.tools`) fails the save with 422
1541
+ `guardrail_tools_not_allowed`; MCP `prompts` and `resources` are still accepted.
1752
1542
  properties:
1753
1543
  type:
1754
1544
  type: string
@@ -1860,9 +1650,10 @@ components:
1860
1650
  aiAgent:
1861
1651
  type: object
1862
1652
  description: |-
1863
- AI agent check configuration; set when `type` is `ai_agent`. On
1864
- `pii`/`moderation` guardrails a legacy server-written stub may
1865
- appear here — it is inert, and current servers strip it on write.
1653
+ LLM configuration for the check; set when `type` is `ai_agent` and validated
1654
+ against `GuardrailAiAgentConfig`. On `pii` / `moderation` guardrails a legacy
1655
+ server-written stub may appear here — it is inert, and current servers strip it on
1656
+ write.
1866
1657
  pii:
1867
1658
  type: object
1868
1659
  required:
@@ -2082,7 +1873,7 @@ components:
2082
1873
  - aiAgent
2083
1874
  properties:
2084
1875
  aiAgent:
2085
- $ref: '#/components/schemas/AiAgentConfig'
1876
+ $ref: '#/components/schemas/GuardrailAiAgentConfig'
2086
1877
  MappingField:
2087
1878
  type: object
2088
1879
  description: One Mapper 1.0 field-mapping entry.
@@ -2355,7 +2146,7 @@ components:
2355
2146
  type: string
2356
2147
  format: objectId
2357
2148
  x-celigo-refModel: connections
2358
- description: BYOK connection backing an `ai_agent` guardrail. Absent when platform-managed credentials are used.
2149
+ description: BYOK connection backing an `ai_agent` guardrail. Absent when a built-in provider runs on platform-managed credentials.
2359
2150
  examples:
2360
2151
  - 68ae48d6b5f755d2dd38c294
2361
2152
  _sourceId:
@@ -2471,6 +2262,14 @@ components:
2471
2262
  description: |-
2472
2263
  Configuration for a guardrail import. `_connectionId` is only
2473
2264
  required for BYOK `ai_agent` guardrails.
2265
+ x-celigo-ai-guidance:
2266
+ - |-
2267
+ Guardrails evaluate structured records only. Do not send the import-level `blob` or
2268
+ `blobKeyPath` fields — either one fails the save with 422 `not_supported`
2269
+ ("Field "blob" is not supported for this import type").
2270
+ - |-
2271
+ Do not put a `tools` array anywhere under `guardrail.aiAgent` — a non-empty array on
2272
+ any provider block fails the save with 422 `guardrail_tools_not_allowed`.
2474
2273
  properties:
2475
2274
  name:
2476
2275
  type: string
@@ -2489,7 +2288,12 @@ components:
2489
2288
  type: string
2490
2289
  format: objectId
2491
2290
  x-celigo-refModel: connections
2492
- description: Connection for BYOK (bring your own key). Only needed for `ai_agent` type guardrails. Optional — platform-managed credentials are used when omitted.
2291
+ description: |-
2292
+ Connection for BYOK (bring your own key) — only meaningful for `ai_agent` type
2293
+ guardrails. Optional for the built-in providers (`openai`, `gemini`, `anthropic`),
2294
+ which run on platform-managed credentials when it is omitted; catalog providers
2295
+ (`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) have no platform-managed
2296
+ credentials and need it to run.
2493
2297
  examples:
2494
2298
  - 68ae48d6b5f755d2dd38c294
2495
2299
  adaptorType:
@@ -2609,6 +2413,13 @@ components:
2609
2413
  description: Display name of the dependent resource.
2610
2414
  examples:
2611
2415
  - Import Orders to NetSuite
2416
+ type:
2417
+ type: string
2418
+ description: |-
2419
+ Sub-type of the dependent resource when its collection distinguishes one, such as
2420
+ `stream` for a listener export. Only present for resource types that carry a `type`.
2421
+ examples:
2422
+ - stream
2612
2423
  paths:
2613
2424
  type: array
2614
2425
  description: |-