@celigo/api-specs 0.2.301 → 0.2.302

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.
@@ -2489,6 +2489,264 @@ paths:
2489
2489
  errors:
2490
2490
  - code: not_found
2491
2491
  message: 'The topics with following _id''s: 6aab2870bb44c84f7b77e9f7 don''t exist.'
2492
+ /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register:
2493
+ put:
2494
+ x-internal: false
2495
+ operationId: registerKnowledgeBaseToIntegration
2496
+ tags:
2497
+ - Integrations
2498
+ summary: Register a knowledge base to an integration (by path)
2499
+ description: |-
2500
+ Adds a single knowledge base to the integration's `_registeredKnowledgeBaseIds` so AI agent and
2501
+ guardrail steps in the integration can attach it. No request body is needed; registering an
2502
+ already-registered knowledge base succeeds without duplicating it, and the id is matched
2503
+ case-insensitively. To unregister, use `DELETE` on the same path; to register several knowledge
2504
+ bases at once, use `PUT /v1/integrations/{_id}/knowledgebases/register`.
2505
+
2506
+ Registration also happens automatically when a flow in the integration is saved with a step
2507
+ whose AI agent attaches the knowledge base.
2508
+ parameters:
2509
+ - name: _id
2510
+ in: path
2511
+ required: true
2512
+ description: Integration id.
2513
+ schema:
2514
+ type: string
2515
+ format: objectId
2516
+ x-celigo-refModel: integrations
2517
+ examples:
2518
+ - 6842261335b64c0bcb308e4f
2519
+ - name: _knowledgeBaseId
2520
+ in: path
2521
+ required: true
2522
+ description: Knowledge base id to register.
2523
+ schema:
2524
+ type: string
2525
+ format: objectId
2526
+ x-celigo-refModel: knowledgebases
2527
+ examples:
2528
+ - 6aee9c66c049b57246ffb05c
2529
+ responses:
2530
+ '204':
2531
+ description: Knowledge base registered successfully. No body returned.
2532
+ '400':
2533
+ description: The integration id or the knowledge base id is not a valid id (`invalid_ref`).
2534
+ content:
2535
+ application/json:
2536
+ schema:
2537
+ $ref: '#/components/schemas/Error'
2538
+ examples:
2539
+ bad_knowledge_base_id:
2540
+ value:
2541
+ errors:
2542
+ - code: invalid_ref
2543
+ message: Please provide a valid _knowledgeBaseId.
2544
+ bad_integration_id:
2545
+ value:
2546
+ errors:
2547
+ - code: invalid_ref
2548
+ message: Please provide a valid _integrationId.
2549
+ '401':
2550
+ $ref: '#/components/responses/401-unauthorized'
2551
+ '403':
2552
+ $ref: '#/components/responses/403-forbidden'
2553
+ '404':
2554
+ description: |-
2555
+ The integration does not exist (`invalid_ref`), or no knowledge base has this id
2556
+ (`not_found`).
2557
+ content:
2558
+ application/json:
2559
+ schema:
2560
+ $ref: '#/components/schemas/Error'
2561
+ examples:
2562
+ knowledge_base_not_found:
2563
+ value:
2564
+ errors:
2565
+ - code: not_found
2566
+ message: 'The knowledge bases with following _id''s: 6aee9c66c049b57246ffb05c don''t exist.'
2567
+ integration_not_found:
2568
+ value:
2569
+ errors:
2570
+ - code: invalid_ref
2571
+ message: Integration not found.
2572
+ delete:
2573
+ x-internal: false
2574
+ operationId: unregisterKnowledgeBaseFromIntegration
2575
+ tags:
2576
+ - Integrations
2577
+ summary: Unregister a knowledge base from an integration
2578
+ description: |-
2579
+ Removes a knowledge base's registration from the integration. This does not delete the knowledge
2580
+ base — it only removes it from the integration's `_registeredKnowledgeBaseIds`. Fails when the
2581
+ knowledge base is not registered on the integration, or while a step in the integration uses an
2582
+ AI agent or guardrail that attaches it. Remove that step or detach the knowledge base first,
2583
+ then retry.
2584
+ parameters:
2585
+ - name: _id
2586
+ in: path
2587
+ required: true
2588
+ description: Integration id.
2589
+ schema:
2590
+ type: string
2591
+ format: objectId
2592
+ x-celigo-refModel: integrations
2593
+ examples:
2594
+ - 6842261335b64c0bcb308e4f
2595
+ - name: _knowledgeBaseId
2596
+ in: path
2597
+ required: true
2598
+ description: Knowledge base id to unregister.
2599
+ schema:
2600
+ type: string
2601
+ format: objectId
2602
+ x-celigo-refModel: knowledgebases
2603
+ examples:
2604
+ - 6aee9c66c049b57246ffb05c
2605
+ responses:
2606
+ '204':
2607
+ description: Knowledge base unregistered successfully. No body returned.
2608
+ '400':
2609
+ description: |-
2610
+ The knowledge base is not registered on this integration, or a step in the integration
2611
+ still attaches it (`not_allowed` for both); or the integration id or the knowledge base id
2612
+ is not a valid id (`invalid_ref`).
2613
+ content:
2614
+ application/json:
2615
+ schema:
2616
+ $ref: '#/components/schemas/Error'
2617
+ examples:
2618
+ in_use:
2619
+ value:
2620
+ errors:
2621
+ - code: not_allowed
2622
+ message: The knowledge base is attached to an AI agent or guardrail used by a step in this integration. Detach it from all steps before deregistering.
2623
+ not_registered:
2624
+ value:
2625
+ errors:
2626
+ - code: not_allowed
2627
+ message: The knowledge base which you are trying to deregister is not registered on the integration.
2628
+ bad_knowledge_base_id:
2629
+ value:
2630
+ errors:
2631
+ - code: invalid_ref
2632
+ message: Please provide a valid _knowledgeBaseId.
2633
+ '401':
2634
+ $ref: '#/components/responses/401-unauthorized'
2635
+ '403':
2636
+ $ref: '#/components/responses/403-forbidden'
2637
+ '404':
2638
+ description: |-
2639
+ The integration does not exist (`invalid_ref`), or no knowledge base has this id
2640
+ (`not_found`).
2641
+ content:
2642
+ application/json:
2643
+ schema:
2644
+ $ref: '#/components/schemas/Error'
2645
+ examples:
2646
+ knowledge_base_not_found:
2647
+ value:
2648
+ errors:
2649
+ - code: not_found
2650
+ message: 'The knowledge bases with following _id''s: 6aee9c66c049b57246ffb05c don''t exist.'
2651
+ integration_not_found:
2652
+ value:
2653
+ errors:
2654
+ - code: invalid_ref
2655
+ message: Integration not found.
2656
+ /v1/integrations/{_id}/knowledgebases/register:
2657
+ put:
2658
+ x-internal: false
2659
+ operationId: registerKnowledgeBasesToIntegration
2660
+ tags:
2661
+ - Integrations
2662
+ summary: Register knowledge bases to an integration (by body)
2663
+ description: |-
2664
+ Adds one or more knowledge bases to the integration's `_registeredKnowledgeBaseIds`. The request
2665
+ body is a bare JSON array of knowledge base ids, matched case-insensitively; an id that is
2666
+ already registered is not duplicated, and an empty array is accepted as a no-op. Every id must
2667
+ name an existing knowledge base or nothing is registered.
2668
+ Alternatively, use `PUT /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register` to
2669
+ register a single knowledge base by path parameter.
2670
+ parameters:
2671
+ - name: _id
2672
+ in: path
2673
+ required: true
2674
+ description: Integration id.
2675
+ schema:
2676
+ type: string
2677
+ format: objectId
2678
+ x-celigo-refModel: integrations
2679
+ examples:
2680
+ - 6842261335b64c0bcb308e4f
2681
+ requestBody:
2682
+ required: true
2683
+ content:
2684
+ application/json:
2685
+ schema:
2686
+ type: array
2687
+ maxItems: 500
2688
+ uniqueItems: true
2689
+ description: Knowledge base ids to register.
2690
+ items:
2691
+ type: string
2692
+ format: objectId
2693
+ x-celigo-refModel: knowledgebases
2694
+ examples:
2695
+ default:
2696
+ value:
2697
+ - 6aee9c66c049b57246ffb05c
2698
+ - 6af435ad39fad8fd3fe9ea24
2699
+ responses:
2700
+ '204':
2701
+ description: Knowledge bases registered successfully. No body returned.
2702
+ '400':
2703
+ description: |-
2704
+ The body is not a JSON array (`invalid_request`), an entry is not a valid knowledge base id
2705
+ (`invalid_ref`), or the array holds more than 500 distinct ids (`batch_size_exceeded`).
2706
+ content:
2707
+ application/json:
2708
+ schema:
2709
+ $ref: '#/components/schemas/Error'
2710
+ examples:
2711
+ not_an_array:
2712
+ summary: 'An object body such as {"_knowledgeBaseId": "..."}'
2713
+ value:
2714
+ errors:
2715
+ - code: invalid_request
2716
+ message: Request body should be a JSON array of _knowledgeBaseId values.
2717
+ bad_id:
2718
+ value:
2719
+ errors:
2720
+ - code: invalid_ref
2721
+ message: Please provide a valid _knowledgeBaseId.
2722
+ too_many:
2723
+ value:
2724
+ errors:
2725
+ - code: batch_size_exceeded
2726
+ message: Maximum batch size is 500.
2727
+ '401':
2728
+ $ref: '#/components/responses/401-unauthorized'
2729
+ '403':
2730
+ $ref: '#/components/responses/403-forbidden'
2731
+ '404':
2732
+ description: |-
2733
+ The integration does not exist (`invalid_ref`), or an id names no knowledge base
2734
+ (`not_found`, listing every such id).
2735
+ content:
2736
+ application/json:
2737
+ schema:
2738
+ $ref: '#/components/schemas/Error'
2739
+ examples:
2740
+ knowledge_base_not_found:
2741
+ value:
2742
+ errors:
2743
+ - code: not_found
2744
+ message: 'The knowledge bases with following _id''s: 6af435ad39fad8fd3fe9ea24 don''t exist.'
2745
+ integration_not_found:
2746
+ value:
2747
+ errors:
2748
+ - code: invalid_ref
2749
+ message: Integration not found.
2492
2750
  /v1/integrations/{_id}/tree/metadata:
2493
2751
  get:
2494
2752
  x-internal: false
@@ -4854,6 +5112,19 @@ components:
4854
5112
  x-celigo-refModel: topics
4855
5113
  examples:
4856
5114
  - - 6aab2870265e1cf39fcbee4d
5115
+ _registeredKnowledgeBaseIds:
5116
+ type: array
5117
+ readOnly: true
5118
+ description: |-
5119
+ Knowledge bases registered to this integration. Maintained by the platform: a
5120
+ value sent on a create or update is ignored. With none registered it is an empty
5121
+ array, or absent on an integration last saved before the field existed.
5122
+ items:
5123
+ type: string
5124
+ format: objectId
5125
+ x-celigo-refModel: knowledgebases
5126
+ examples:
5127
+ - - 6b3a1c2d4e5f60718293a4b5
4857
5128
  Error:
4858
5129
  type: object
4859
5130
  description: Standard error response envelope returned by integrator.io APIs.
@@ -5889,5 +6160,18 @@ components:
5889
6160
  errors:
5890
6161
  - code: not_found
5891
6162
  message: The requested resource was not found.
6163
+ 403-forbidden:
6164
+ description: |
6165
+ Forbidden. The authenticated caller does not have permission to perform this operation.
6166
+ content:
6167
+ application/json:
6168
+ schema:
6169
+ $ref: '#/components/schemas/Error'
6170
+ examples:
6171
+ default:
6172
+ value:
6173
+ errors:
6174
+ - code: forbidden
6175
+ message: You do not have permission to access this resource.
5892
6176
  x-enable-proxy: true
5893
6177
  x-internal: false
@@ -1755,10 +1755,13 @@ paths:
1755
1755
  description: |-
1756
1756
  Returns the connections attached to the server as full Connection
1757
1757
  documents, sorted by name. By default these are the parents — every
1758
- connection named in `connections[]` or in a tool's
1759
- `overrides.connections[]`, whether or not it requires end-user
1758
+ connection named in `connections[]`, in a tool's
1759
+ `overrides.connections[]`, or as the `_connectionId` of a proxied
1760
+ `upstreamMcpConnections[]` row, whether or not it requires end-user
1760
1761
  credentials (connections reached only through `overrides.exports[]` or
1761
- `overrides.imports[]` are not included). With `connectionRole=mcpChild`
1762
+ `overrides.imports[]` are not included). Each parent row carries
1763
+ `isUpstreamMcpConnection`, which tells a proxied attachment from the
1764
+ others. With `connectionRole=mcpChild`
1762
1765
  it returns instead the `mcpChild` connections end users hold against
1763
1766
  those parents — the only route that serves a child document, since
1764
1767
  `GET /v1/connections` never lists one and `GET /v1/connections/{_id}`
@@ -1838,7 +1841,18 @@ paths:
1838
1841
  schema:
1839
1842
  type: array
1840
1843
  items:
1841
- $ref: '#/components/schemas/Connection'
1844
+ allOf:
1845
+ - $ref: '#/components/schemas/Connection'
1846
+ - type: object
1847
+ properties:
1848
+ isUpstreamMcpConnection:
1849
+ type: boolean
1850
+ description: |-
1851
+ When true, the row is the connection's proxied
1852
+ `upstreamMcpConnections[]` attachment; when false, its
1853
+ `connections[]` or tool-override attachment. Present on every
1854
+ parent row and absent on `mcpChild` rows. Computed per
1855
+ response, never stored on the connection.
1842
1856
  examples:
1843
1857
  parents:
1844
1858
  summary: Parents attached to the server (default)
@@ -1847,6 +1861,7 @@ paths:
1847
1861
  name: Partner order API
1848
1862
  type: http
1849
1863
  connectionRole: standard
1864
+ isUpstreamMcpConnection: false
1850
1865
  endUserProvidedFields:
1851
1866
  - http.auth.token.token
1852
1867
  http:
@@ -3157,7 +3172,8 @@ components:
3157
3172
  type: object
3158
3173
  description: |-
3159
3174
  Branch filter override. Not applied on an MCP server; stored, but calls
3160
- ignore it.
3175
+ ignore it. The export-filter wrapper `{type: "expression", expression: {...}}`
3176
+ fails the save with 422 `invalid_router_branch_input_filter`.
3161
3177
  properties:
3162
3178
  version:
3163
3179
  type: string
@@ -3706,9 +3722,10 @@ components:
3706
3722
  _promptIds:
3707
3723
  type: array
3708
3724
  description: |-
3709
- Prompts included in the set, referenced by `prompts[]._id`. An id
3710
- that is not a prompt on this server is rejected with 422
3711
- `resource_invalid`. Absent from responses for sets saved before
3725
+ Prompts included in the set, referenced by `prompts[]._id` or by an
3726
+ attached upstream prompt row's `upstreamMcpConnections[].prompts[]._id`
3727
+ (a disabled upstream row stays valid). Any other id is
3728
+ rejected with 422 `resource_invalid`. Absent from responses for sets saved before
3712
3729
  prompt grants existed.
3713
3730
  items:
3714
3731
  type: string
@@ -3900,6 +3917,22 @@ components:
3900
3917
  `overrides.name` is set.
3901
3918
  examples:
3902
3919
  - ask_about_repo
3920
+ UpstreamToolItem:
3921
+ allOf:
3922
+ - $ref: '#/components/schemas/UpstreamItem'
3923
+ - type: object
3924
+ description: |-
3925
+ One whitelisted upstream tool. Same shape as a prompt row plus a per-tool
3926
+ end-user credential setting.
3927
+ properties:
3928
+ requiresEndUserCredentials:
3929
+ type: boolean
3930
+ description: |-
3931
+ When true or false, overrides the attachment's `requiresEndUserCredentials`
3932
+ for this tool; unset inherits it. No default, so unset stays distinct from
3933
+ `false`. A PUT whose row omits it keeps the stored value.
3934
+ examples:
3935
+ - true
3903
3936
  UpstreamResourceItem:
3904
3937
  allOf:
3905
3938
  - $ref: '#/components/schemas/UpstreamItem'
@@ -3926,7 +3959,8 @@ components:
3926
3959
  the integrator.io UI, fills the read-only catalog fields (`discoveryStatus`,
3927
3960
  `lastDiscoveredAt`, and each row's `title`, `description`, `annotations`,
3928
3961
  `discoveredAt`, `unavailable`). A write carries only `_connectionId`,
3929
- `alias`, and each row's `upstreamName`, `disabled`, `overrides`, and `uri` —
3962
+ `alias`, `requiresEndUserCredentials`, and each row's `upstreamName`,
3963
+ `disabled`, `overrides`, `uri`, and (tool rows) `requiresEndUserCredentials` —
3930
3964
  every other field is taken from the stored row, and a write that includes
3931
3965
  `upstreamMcpConnections` re-approves the current upstream definitions
3932
3966
  (`approvedDefinitionHash` is re-pinned and `changedSinceApproval` reset).
@@ -3994,6 +4028,18 @@ components:
3994
4028
  examples:
3995
4029
  - deepwiki
3996
4030
  - crm_tools
4031
+ requiresEndUserCredentials:
4032
+ type: boolean
4033
+ default: false
4034
+ description: |-
4035
+ When true, a proxied call from a Celigo end user runs on that user's own credentials for
4036
+ `_connectionId` instead of the shared connection. Accepted only on a server that uses
4037
+ Celigo OAuth (`oauth.useCeligoOauth: true`); otherwise the save fails with 422
4038
+ `mcp_upstream_end_user_auth_requires_celigo_oauth`. A PUT whose row omits it keeps the
4039
+ stored value — only an explicit `false` clears it — and PATCH does not reach it. A row
4040
+ last saved before the field existed omits it.
4041
+ examples:
4042
+ - false
3997
4043
  name:
3998
4044
  type: string
3999
4045
  readOnly: true
@@ -4045,7 +4091,7 @@ components:
4045
4091
  whose `upstreamName` disappears from the upstream catalog is kept and
4046
4092
  flagged `unavailable`.
4047
4093
  items:
4048
- $ref: '#/components/schemas/UpstreamItem'
4094
+ $ref: '#/components/schemas/UpstreamToolItem'
4049
4095
  prompts:
4050
4096
  type: array
4051
4097
  description: Upstream prompts this server exposes, whitelisted by `upstreamName`.
@@ -10492,7 +10538,8 @@ components:
10492
10538
  headers:
10493
10539
  type: array
10494
10540
  description: |
10495
- Default HTTP headers included in every request to the MCP server.
10541
+ Default HTTP headers included in every request to the MCP server. On PUT, an
10542
+ `mcp.http` block that omits `headers` or sends `[]` clears the stored list.
10496
10543
  items:
10497
10544
  type: object
10498
10545
  properties:
package/dist/sync.yml CHANGED
@@ -4847,7 +4847,8 @@ components:
4847
4847
  When true, the dataset's records come from an existing export resource instead
4848
4848
  of a source table; `externalId` then holds the export ID, and the export must
4849
4849
  use the sync's source connection. Export datasets require `tableName` and an
4850
- explicit `dataElements` selection, and do not accept `exportProperties`.
4850
+ explicit `dataElements` selection, and do not accept `exportProperties`. Immutable
4851
+ after creation (422 `is_export_update_not_allowed`).
4851
4852
  examples:
4852
4853
  - false
4853
4854
  exportProperties:
package/dist/tag.yml CHANGED
@@ -168,7 +168,11 @@ paths:
168
168
  summary: Update a tag
169
169
  description: |-
170
170
  Updates the human-readable `tag` name for an existing tag entry.
171
- The short `tagId` code is immutable and cannot be changed.
171
+ The short `tagId` code is immutable and cannot be changed. The name
172
+ stays case-insensitively unique: renaming to another tag's name is
173
+ rejected with HTTP 422 `[create_not_allowed]` "A tag with this name
174
+ already exists.", while a PUT that sends the tag's own name, in any
175
+ case, saves.
172
176
  parameters:
173
177
  - name: _id
174
178
  in: path