@celigo/api-specs 0.2.170 → 0.2.171

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.
@@ -594,9 +594,9 @@ components:
594
594
  LLM configuration for an `ai_agent` guardrail — which provider and model evaluate each
595
595
  record, with instructions, parameter tuning, and output format. Guardrails never invoke
596
596
  tools, so unlike an AI agent import no block here accepts a `tools` array. MCP `prompts`
597
- and `resources` are accepted on save, but an unreachable MCP server doesn't fail the
598
- run (verified on OpenAI), so put the policy the guardrail must apply in its
599
- instructions. Providers come in two families with two configuration formats:
597
+ and `resources` are accepted on save but never used at run time, so put the policy the
598
+ guardrail must apply in its instructions. Providers come in two families with two
599
+ configuration formats:
600
600
 
601
601
  - **Built-in providers** — each has its own configuration block.
602
602
  - **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
@@ -761,7 +761,7 @@ components:
761
761
  type: array
762
762
  description: |-
763
763
  MCP prompt entries saved with a catalog-provider guardrail (generic flat format).
764
- Each entry references one MCP connection and the prompt names allowed from it.
764
+ Each entry references one MCP connection and prompt names; a guardrail's run never fetches them.
765
765
  items:
766
766
  type: object
767
767
  properties:
@@ -782,7 +782,7 @@ components:
782
782
  description: Connection to the MCP server that exposes the prompts.
783
783
  allowedPrompts:
784
784
  type: array
785
- description: Prompt names the model may fetch from the server.
785
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
786
786
  items:
787
787
  type: string
788
788
  x-celigo-ai-guidance:
@@ -1039,7 +1039,7 @@ components:
1039
1039
  type: array
1040
1040
  description: |-
1041
1041
  MCP prompt entries saved with the guardrail. Each item references one
1042
- MCP connection and the prompt names allowed from it.
1042
+ MCP connection and prompt names; a guardrail's run never fetches them.
1043
1043
  items:
1044
1044
  type: object
1045
1045
  properties:
@@ -1061,7 +1061,7 @@ components:
1061
1061
  description: Connection to the MCP server.
1062
1062
  allowedPrompts:
1063
1063
  type: array
1064
- description: Prompt names to allow from the MCP server.
1064
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
1065
1065
  items:
1066
1066
  type: string
1067
1067
  resources:
@@ -1228,7 +1228,7 @@ components:
1228
1228
  type: array
1229
1229
  description: |-
1230
1230
  MCP prompt entries saved with a Gemini guardrail. Each item references one
1231
- MCP connection and the prompt names allowed from it.
1231
+ MCP connection and prompt names; a guardrail's run never fetches them.
1232
1232
  items:
1233
1233
  type: object
1234
1234
  properties:
@@ -1250,7 +1250,7 @@ components:
1250
1250
  description: Connection to the MCP server.
1251
1251
  allowedPrompts:
1252
1252
  type: array
1253
- description: Prompt names to allow from the MCP server.
1253
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
1254
1254
  items:
1255
1255
  type: string
1256
1256
  resources:
@@ -1450,7 +1450,7 @@ components:
1450
1450
  type: array
1451
1451
  description: |-
1452
1452
  MCP prompt entries saved with a Claude guardrail. Each item references one
1453
- MCP connection and the prompt names allowed from it.
1453
+ MCP connection and prompt names; a guardrail's run never fetches them.
1454
1454
  items:
1455
1455
  type: object
1456
1456
  properties:
@@ -1472,7 +1472,7 @@ components:
1472
1472
  description: Connection to the MCP server.
1473
1473
  allowedPrompts:
1474
1474
  type: array
1475
- description: Prompt names to allow from the MCP server.
1475
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
1476
1476
  items:
1477
1477
  type: string
1478
1478
  resources:
@@ -1544,10 +1544,9 @@ components:
1544
1544
  (`aiAgent.tools`, `aiAgent.openai.tools`, `aiAgent.litellm._overrides.gemini.tools`,
1545
1545
  `aiAgent.litellm._overrides.anthropic.tools`) fails the save with 422
1546
1546
  `guardrail_tools_not_allowed`. MCP `prompts` and `resources` are still accepted on
1547
- save, but don't rely on them for the check: with their MCP server unreachable, a
1548
- guardrail runs on its instructions and input alone, with no error, where an AI agent's
1549
- run fails (verified on OpenAI). Put the policy the guardrail must apply in its
1550
- instructions.
1547
+ save, but a guardrail's run never uses them: it gives the model only its instructions
1548
+ and input, whether the MCP server can be reached or not. Put the policy the guardrail
1549
+ must apply in its instructions.
1551
1550
  properties:
1552
1551
  type:
1553
1552
  type: string
@@ -2177,7 +2176,8 @@ components:
2177
2176
  mapping:
2178
2177
  type: object
2179
2178
  description: |-
2180
- Mapper 1.0 input mapping that selects the field evaluated as `text`.
2179
+ Mapper 1.0 input mapping that selects what is evaluated: a field mapped
2180
+ to `text`, or an object mapped to `record` (evaluated as its JSON).
2181
2181
  Served only when populated — a guardrail created without one has no
2182
2182
  `mapping` in responses, and evaluates the whole record (or the
2183
2183
  record's own top-level `text` field, when it has one).
@@ -2353,7 +2353,8 @@ components:
2353
2353
  record field to the `text` input (e.g.
2354
2354
  `{"fields": [{"extract": "employeeSummary", "generate": "text"}]}`);
2355
2355
  only that field is evaluated, and fields outside it are neither
2356
- scanned nor masked. Optional — when omitted the whole record is
2356
+ scanned nor masked. A mapping can also generate `record`, an object
2357
+ evaluated as its JSON. Optional — when omitted the whole record is
2357
2358
  evaluated, serialized as JSON, unless the record has its own
2358
2359
  top-level `text` field, which is then evaluated alone. The server
2359
2360
  serves this field only when populated.
@@ -2362,10 +2363,13 @@ components:
2362
2363
  Send the input selection here as `mapping`, not as Mapper 2.0
2363
2364
  `mappings` rows. Map the field explicitly when records carry their
2364
2365
  own `text` field.
2366
+ - |-
2367
+ A guardrail keeps no conversation history, so a mapped
2368
+ `conversationHistoryId` changes nothing.
2365
2369
  properties:
2366
2370
  fields:
2367
2371
  type: array
2368
- description: Field-level mapping entries; `generate` targets the guardrail input (typically `text`).
2372
+ description: Field-level mapping entries; `generate` targets the guardrail input (`text`, or `record` for an object).
2369
2373
  items:
2370
2374
  $ref: '#/components/schemas/MappingField'
2371
2375
  lists:
package/dist/import.yml CHANGED
@@ -9674,7 +9674,7 @@ components:
9674
9674
  x-enumDescriptions:
9675
9675
  text: Free-form text response from the model.
9676
9676
  json_schema: Structured JSON output conforming to a defined schema.
9677
- blob: Binary data output for non-text content.
9677
+ blob: Image generation — the run calls the image generation tool and returns the stored image's `blobKey`, not `_text` or `_json`.
9678
9678
  default: text
9679
9679
  description: Output format type.
9680
9680
  schemaMode:
@@ -9896,11 +9896,6 @@ components:
9896
9896
  an object without a non-empty name fails with a
9897
9897
  missing-required-field error. String entries are the
9898
9898
  legacy form and stay valid.
9899
- allowedPrompts:
9900
- type: array
9901
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
9902
- items:
9903
- type: string
9904
9899
  tool:
9905
9900
  type: object
9906
9901
  description: |
@@ -10043,7 +10038,7 @@ components:
10043
10038
  x-enumDescriptions:
10044
10039
  text: Free-form text response from the model.
10045
10040
  json_schema: Structured JSON output conforming to a defined schema.
10046
- blob: Binary data output for non-text content.
10041
+ blob: Image generation — the run returns the stored image's `blobKey`, not `_text` or `_json`.
10047
10042
  default: text
10048
10043
  schemaMode:
10049
10044
  type: string
@@ -10212,11 +10207,6 @@ components:
10212
10207
  description: Display description shown for the tool.
10213
10208
  required:
10214
10209
  - name
10215
- allowedPrompts:
10216
- type: array
10217
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
10218
- items:
10219
- type: string
10220
10210
  tool:
10221
10211
  type: object
10222
10212
  description: Reference to a Celigo Tool resource, used when type is "tool".
@@ -10729,9 +10719,9 @@ components:
10729
10719
  LLM configuration for an `ai_agent` guardrail — which provider and model evaluate each
10730
10720
  record, with instructions, parameter tuning, and output format. Guardrails never invoke
10731
10721
  tools, so unlike an AI agent import no block here accepts a `tools` array. MCP `prompts`
10732
- and `resources` are accepted on save, but an unreachable MCP server doesn't fail the
10733
- run (verified on OpenAI), so put the policy the guardrail must apply in its
10734
- instructions. Providers come in two families with two configuration formats:
10722
+ and `resources` are accepted on save but never used at run time, so put the policy the
10723
+ guardrail must apply in its instructions. Providers come in two families with two
10724
+ configuration formats:
10735
10725
 
10736
10726
  - **Built-in providers** — each has its own configuration block.
10737
10727
  - **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
@@ -10896,7 +10886,7 @@ components:
10896
10886
  type: array
10897
10887
  description: |-
10898
10888
  MCP prompt entries saved with a catalog-provider guardrail (generic flat format).
10899
- Each entry references one MCP connection and the prompt names allowed from it.
10889
+ Each entry references one MCP connection and prompt names; a guardrail's run never fetches them.
10900
10890
  items:
10901
10891
  type: object
10902
10892
  properties:
@@ -10917,7 +10907,7 @@ components:
10917
10907
  description: Connection to the MCP server that exposes the prompts.
10918
10908
  allowedPrompts:
10919
10909
  type: array
10920
- description: Prompt names the model may fetch from the server.
10910
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
10921
10911
  items:
10922
10912
  type: string
10923
10913
  x-celigo-ai-guidance:
@@ -11174,7 +11164,7 @@ components:
11174
11164
  type: array
11175
11165
  description: |-
11176
11166
  MCP prompt entries saved with the guardrail. Each item references one
11177
- MCP connection and the prompt names allowed from it.
11167
+ MCP connection and prompt names; a guardrail's run never fetches them.
11178
11168
  items:
11179
11169
  type: object
11180
11170
  properties:
@@ -11196,7 +11186,7 @@ components:
11196
11186
  description: Connection to the MCP server.
11197
11187
  allowedPrompts:
11198
11188
  type: array
11199
- description: Prompt names to allow from the MCP server.
11189
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
11200
11190
  items:
11201
11191
  type: string
11202
11192
  resources:
@@ -11363,7 +11353,7 @@ components:
11363
11353
  type: array
11364
11354
  description: |-
11365
11355
  MCP prompt entries saved with a Gemini guardrail. Each item references one
11366
- MCP connection and the prompt names allowed from it.
11356
+ MCP connection and prompt names; a guardrail's run never fetches them.
11367
11357
  items:
11368
11358
  type: object
11369
11359
  properties:
@@ -11385,7 +11375,7 @@ components:
11385
11375
  description: Connection to the MCP server.
11386
11376
  allowedPrompts:
11387
11377
  type: array
11388
- description: Prompt names to allow from the MCP server.
11378
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
11389
11379
  items:
11390
11380
  type: string
11391
11381
  resources:
@@ -11585,7 +11575,7 @@ components:
11585
11575
  type: array
11586
11576
  description: |-
11587
11577
  MCP prompt entries saved with a Claude guardrail. Each item references one
11588
- MCP connection and the prompt names allowed from it.
11578
+ MCP connection and prompt names; a guardrail's run never fetches them.
11589
11579
  items:
11590
11580
  type: object
11591
11581
  properties:
@@ -11607,7 +11597,7 @@ components:
11607
11597
  description: Connection to the MCP server.
11608
11598
  allowedPrompts:
11609
11599
  type: array
11610
- description: Prompt names to allow from the MCP server.
11600
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
11611
11601
  items:
11612
11602
  type: string
11613
11603
  resources:
@@ -11709,8 +11699,8 @@ components:
11709
11699
  `aiAgent.openai.tools`, `aiAgent.litellm._overrides.gemini.tools`, `….anthropic.tools`) —
11710
11700
  any non-empty array fails the save with 422 `guardrail_tools_not_allowed` ("Tools aren't
11711
11701
  supported on a guardrail AI agent configuration…"), on create and on update. `prompts` and
11712
- `resources` are accepted on save, but an unreachable MCP server doesn't fail the run
11713
- (verified on OpenAI), so put the policy in the instructions. The server still echoes
11702
+ `resources` are accepted on save but never used at run time, so put the policy in the
11703
+ instructions. The server still echoes
11714
11704
  `openai.tools: []` on OpenAI guardrails.
11715
11705
  properties:
11716
11706
  type:
@@ -24,6 +24,10 @@ tags:
24
24
  description: |-
25
25
  Network policies are named IP allow and deny lists that control where API tokens, MCP servers, and users may connect from. A policy takes effect only once it is assigned — through `_networkPolicyId` on an API token or MCP server, or in account settings for workspace-user and end-user sign-in — and each environment (production or sandbox) keeps its own library of policies. Network policies must be enabled for the account, and only the account owner and administrators can manage them.
26
26
 
27
+ Every policy that applies to a call must admit the caller. An API token's policy is checked when the token authenticates, before the request runs; an MCP server's policy is checked on every request to it, so a call to an MCP server passes both its token's policy and the server's. A personal access token has no policy of its own: it is checked against the workspace-user sign-in policy of the environment it belongs to. Sign-in policies are checked when a workspace user signs in or switches account or environment, and when an end user signs in to an MCP server.
28
+
29
+ A refused call gets HTTP 403 with `{"errors": [{"code": "access_denied", "message": "Access denied."}]}` and nothing that names the policy or the address. An MCP server endpoint speaks JSON-RPC, so its 403 carries the MCP server's access-denied error (`-32006`) in a JSON-RPC envelope instead — `{"jsonrpc": "2.0", "error": {"code": -32006, "message": "Access denied."}, "id": <request id>}`, with `id` echoed when the request had one — and the server's request log records the call as blocked.
30
+
27
31
  ## Network policy schema
28
32
 
29
33
  {% openapi-schemas spec="networkpolicy" schemas="NetworkPolicy" grouped="true" %}
package/dist/tool.yml CHANGED
@@ -21213,7 +21213,7 @@ components:
21213
21213
  x-enumDescriptions:
21214
21214
  text: Free-form text response from the model.
21215
21215
  json_schema: Structured JSON output conforming to a defined schema.
21216
- blob: Binary data output for non-text content.
21216
+ blob: Image generation — the run calls the image generation tool and returns the stored image's `blobKey`, not `_text` or `_json`.
21217
21217
  default: text
21218
21218
  description: Output format type.
21219
21219
  schemaMode:
@@ -21435,11 +21435,6 @@ components:
21435
21435
  an object without a non-empty name fails with a
21436
21436
  missing-required-field error. String entries are the
21437
21437
  legacy form and stay valid.
21438
- allowedPrompts:
21439
- type: array
21440
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
21441
- items:
21442
- type: string
21443
21438
  tool:
21444
21439
  type: object
21445
21440
  description: |
@@ -21582,7 +21577,7 @@ components:
21582
21577
  x-enumDescriptions:
21583
21578
  text: Free-form text response from the model.
21584
21579
  json_schema: Structured JSON output conforming to a defined schema.
21585
- blob: Binary data output for non-text content.
21580
+ blob: Image generation — the run returns the stored image's `blobKey`, not `_text` or `_json`.
21586
21581
  default: text
21587
21582
  schemaMode:
21588
21583
  type: string
@@ -21751,11 +21746,6 @@ components:
21751
21746
  description: Display description shown for the tool.
21752
21747
  required:
21753
21748
  - name
21754
- allowedPrompts:
21755
- type: array
21756
- description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
21757
- items:
21758
- type: string
21759
21749
  tool:
21760
21750
  type: object
21761
21751
  description: Reference to a Celigo Tool resource, used when type is "tool".
@@ -22268,9 +22258,9 @@ components:
22268
22258
  LLM configuration for an `ai_agent` guardrail — which provider and model evaluate each
22269
22259
  record, with instructions, parameter tuning, and output format. Guardrails never invoke
22270
22260
  tools, so unlike an AI agent import no block here accepts a `tools` array. MCP `prompts`
22271
- and `resources` are accepted on save, but an unreachable MCP server doesn't fail the
22272
- run (verified on OpenAI), so put the policy the guardrail must apply in its
22273
- instructions. Providers come in two families with two configuration formats:
22261
+ and `resources` are accepted on save but never used at run time, so put the policy the
22262
+ guardrail must apply in its instructions. Providers come in two families with two
22263
+ configuration formats:
22274
22264
 
22275
22265
  - **Built-in providers** — each has its own configuration block.
22276
22266
  - **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
@@ -22435,7 +22425,7 @@ components:
22435
22425
  type: array
22436
22426
  description: |-
22437
22427
  MCP prompt entries saved with a catalog-provider guardrail (generic flat format).
22438
- Each entry references one MCP connection and the prompt names allowed from it.
22428
+ Each entry references one MCP connection and prompt names; a guardrail's run never fetches them.
22439
22429
  items:
22440
22430
  type: object
22441
22431
  properties:
@@ -22456,7 +22446,7 @@ components:
22456
22446
  description: Connection to the MCP server that exposes the prompts.
22457
22447
  allowedPrompts:
22458
22448
  type: array
22459
- description: Prompt names the model may fetch from the server.
22449
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
22460
22450
  items:
22461
22451
  type: string
22462
22452
  x-celigo-ai-guidance:
@@ -22713,7 +22703,7 @@ components:
22713
22703
  type: array
22714
22704
  description: |-
22715
22705
  MCP prompt entries saved with the guardrail. Each item references one
22716
- MCP connection and the prompt names allowed from it.
22706
+ MCP connection and prompt names; a guardrail's run never fetches them.
22717
22707
  items:
22718
22708
  type: object
22719
22709
  properties:
@@ -22735,7 +22725,7 @@ components:
22735
22725
  description: Connection to the MCP server.
22736
22726
  allowedPrompts:
22737
22727
  type: array
22738
- description: Prompt names to allow from the MCP server.
22728
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
22739
22729
  items:
22740
22730
  type: string
22741
22731
  resources:
@@ -22902,7 +22892,7 @@ components:
22902
22892
  type: array
22903
22893
  description: |-
22904
22894
  MCP prompt entries saved with a Gemini guardrail. Each item references one
22905
- MCP connection and the prompt names allowed from it.
22895
+ MCP connection and prompt names; a guardrail's run never fetches them.
22906
22896
  items:
22907
22897
  type: object
22908
22898
  properties:
@@ -22924,7 +22914,7 @@ components:
22924
22914
  description: Connection to the MCP server.
22925
22915
  allowedPrompts:
22926
22916
  type: array
22927
- description: Prompt names to allow from the MCP server.
22917
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
22928
22918
  items:
22929
22919
  type: string
22930
22920
  resources:
@@ -23124,7 +23114,7 @@ components:
23124
23114
  type: array
23125
23115
  description: |-
23126
23116
  MCP prompt entries saved with a Claude guardrail. Each item references one
23127
- MCP connection and the prompt names allowed from it.
23117
+ MCP connection and prompt names; a guardrail's run never fetches them.
23128
23118
  items:
23129
23119
  type: object
23130
23120
  properties:
@@ -23146,7 +23136,7 @@ components:
23146
23136
  description: Connection to the MCP server.
23147
23137
  allowedPrompts:
23148
23138
  type: array
23149
- description: Prompt names to allow from the MCP server.
23139
+ description: Prompt names saved with the entry; a guardrail's run never fetches them.
23150
23140
  items:
23151
23141
  type: string
23152
23142
  resources:
@@ -23248,8 +23238,8 @@ components:
23248
23238
  `aiAgent.openai.tools`, `aiAgent.litellm._overrides.gemini.tools`, `….anthropic.tools`) —
23249
23239
  any non-empty array fails the save with 422 `guardrail_tools_not_allowed` ("Tools aren't
23250
23240
  supported on a guardrail AI agent configuration…"), on create and on update. `prompts` and
23251
- `resources` are accepted on save, but an unreachable MCP server doesn't fail the run
23252
- (verified on OpenAI), so put the policy in the instructions. The server still echoes
23241
+ `resources` are accepted on save but never used at run time, so put the policy in the
23242
+ instructions. The server still echoes
23253
23243
  `openai.tools: []` on OpenAI guardrails.
23254
23244
  properties:
23255
23245
  type:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.170",
3
+ "version": "0.2.171",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [