@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
@@ -156,6 +156,11 @@ paths:
156
156
  `404`, and `422` responses); failures during the post-save registration itself do not
157
157
  roll back the new connection and are reported in `__failedIntegrationRegistrations` on
158
158
  the `201` response.
159
+
160
+ Creates `standard` connections only: a body with `connectionRole: mcpChild` is rejected,
161
+ because MCP end-user child connections are written solely by the end-user setup page. To
162
+ make a connection the parent that an MCP server collects end-user credentials for, list the
163
+ per-user fields in `endUserProvidedFields`.
159
164
  operationId: createConnection
160
165
  tags:
161
166
  - Connections
@@ -193,6 +198,34 @@ paths:
193
198
  type: custom
194
199
  __integrationIds:
195
200
  - 6a55be91d16ee8270022893e
201
+ httpMcpParent:
202
+ summary: HTTP connection that MCP end users supply their own API key for
203
+ value:
204
+ name: Support Desk API
205
+ type: http
206
+ endUserProvidedFields:
207
+ - http.encrypted.apiKey
208
+ http:
209
+ mediaType: json
210
+ baseURI: https://api.example.com
211
+ auth:
212
+ type: custom
213
+ headers:
214
+ - name: X-API-Key
215
+ value: '{{{connection.http.encrypted.apiKey}}}'
216
+ encrypted:
217
+ apiKey: <owner-api-key>
218
+ httpAwsIam:
219
+ summary: HTTP connection signing requests with an AWS IAM role (iClient)
220
+ value:
221
+ name: SQS - orders account
222
+ type: http
223
+ http:
224
+ mediaType: json
225
+ baseURI: https://sqs.us-east-1.amazonaws.com
226
+ _iClientId: 6ab1f51c7b3d01a908423f0a
227
+ auth:
228
+ type: awsiam
196
229
  netsuiteTokenAuto:
197
230
  summary: NetSuite connection (automatic token-based auth — recommended)
198
231
  value:
@@ -453,6 +486,7 @@ paths:
453
486
  lastModified: '2026-06-08T00:45:50.951Z'
454
487
  type: http
455
488
  name: My HTTP API
489
+ connectionRole: standard
456
490
  enableMicroBatchForOneToMany: true
457
491
  enableCsvObjectParsing: true
458
492
  autoRecoverRateLimitErrors: true
@@ -559,7 +593,9 @@ paths:
559
593
  description: |-
560
594
  Unprocessable entity. The request was well-formed but was unable to be followed
561
595
  due to semantic errors — for example, a missing config object for the connection
562
- `type`, or an invalid `__integrationIds` value. The connection is not created.
596
+ `type`, an invalid `__integrationIds` value, a decimal concurrency value, an
597
+ `http._iClientId` that does not satisfy the auth type's iClient rules, or an
598
+ `mcpChild` role. The connection is not created.
563
599
  content:
564
600
  application/json:
565
601
  schema:
@@ -589,16 +625,67 @@ paths:
589
625
  errors:
590
626
  - code: invalid_request
591
627
  message: __integrationIds must not contain duplicate integration IDs.
628
+ mcpChildNotAllowed:
629
+ summary: connectionRole is mcpChild
630
+ value:
631
+ errors:
632
+ - code: mcp_child_generic_route_not_allowed
633
+ message: An mcpChild connection cannot be created, updated or deleted through the connections API, including the recurse and recycle bin routes.
634
+ endUserProvidedFieldParentOwned:
635
+ summary: endUserProvidedFields names a field the account owns
636
+ value:
637
+ errors:
638
+ - field: endUserProvidedFields
639
+ code: mcp_end_user_provided_field_not_allowed
640
+ message: http._iClientId is managed by the account owner and cannot be requested from an end user.
641
+ concurrencyNotInteger:
642
+ summary: Decimal concurrency value
643
+ value:
644
+ errors:
645
+ - field: http.concurrencyLevel
646
+ code: invalid_field_value
647
+ message: The field "http.concurrencyLevel" must be a whole number (no decimals) between 1 and 50.
648
+ awsIamIClientMissing:
649
+ summary: auth.type awsiam without http._iClientId
650
+ value:
651
+ errors:
652
+ - field: http._iClientId
653
+ code: missing_required_field
654
+ message: 'Expected field: _iClientId to be present.'
655
+ awsIamIClientWrongProvider:
656
+ summary: awsiam connection referencing a non-awsIam iClient
657
+ value:
658
+ errors:
659
+ - field: http._iClientId
660
+ code: invalid_field
661
+ message: IClient provider must be awsIam for HTTP IAM Role authentication.
662
+ awsIamRoleArnPrefix:
663
+ summary: awsIam iClient whose role name lacks the celigo-http-adaptor- prefix
664
+ value:
665
+ errors:
666
+ - field: http._iClientId
667
+ code: invalid_field_value
668
+ message: HTTP IAM Role authentication requires awsIam.roleArn to reference a role name starting with celigo-http-adaptor-.
669
+ iClientOtherAccount:
670
+ summary: iClient owned by another account
671
+ value:
672
+ errors:
673
+ - field: http._iClientId
674
+ code: invalid_ref
675
+ message: The referenced IClient must belong to the same user.
676
+ adlsIClientWrongProvider:
677
+ summary: Azure Data Lake Storage Gen2 connection referencing a non-service-principal iClient
678
+ value:
679
+ errors:
680
+ - field: http._iClientId
681
+ code: invalid_field
682
+ message: IClient provider must be azureserviceprincipal for Azure Data Lake Storage Gen2 connections.
592
683
  x-celigo-ai-guidance:
593
684
  - |-
594
- Performs a comprehensive test of the connection including authentication, permissions,
595
- and basic data operations to verify the connection is fully operational.
596
-
597
- This is more thorough than a ping operation and may include:
598
- - Sample data retrieval
599
- - Permission verification for read/write operations
600
- - Schema or metadata validation
601
- - Rate limiting and quota checks
685
+ Send exactly one adaptor config object, the one named by `type`. Credentials are accepted
686
+ in clear on create and come back masked as "******"; the response also carries the
687
+ server-populated fields (`connectionRole: standard`, `concurrencyLevel`,
688
+ `targetConcurrencyLevel`, `microServices`).
602
689
  /v1/connections/{_id}:
603
690
  get:
604
691
  x-internal: false
@@ -649,6 +736,31 @@ paths:
649
736
  disableHttp: false
650
737
  disableNetSuiteDistributed: false
651
738
  disableRdbms: false
739
+ httpMcpParent:
740
+ summary: HTTP connection that MCP end users supply their own API key for
741
+ value:
742
+ _id: 6ab1f41f4db5688fd8ca71fb
743
+ createdAt: '2026-09-21T20:21:03.924Z'
744
+ lastModified: '2026-09-21T20:22:22.140Z'
745
+ type: http
746
+ name: Support Desk API
747
+ connectionRole: standard
748
+ endUserProvidedFields:
749
+ - http.encrypted.apiKey
750
+ enableMicroBatchForOneToMany: true
751
+ enableCsvObjectParsing: true
752
+ autoRecoverRateLimitErrors: true
753
+ http:
754
+ formType: http
755
+ mediaType: json
756
+ baseURI: https://api.example.com
757
+ concurrencyLevel: 25
758
+ targetConcurrencyLevel: 25
759
+ encrypted: '******'
760
+ isRest: false
761
+ useNewAuthFailSchema: true
762
+ auth:
763
+ type: custom
652
764
  mcp:
653
765
  summary: MCP connection
654
766
  value:
@@ -682,7 +794,15 @@ paths:
682
794
  summary: Update a connection
683
795
  description: |
684
796
  Updates an existing connection configuration. This is a full-replace operation —
685
- send the complete connection document, not just the fields you want to change.
797
+ send the complete connection document, not just the fields you want to change; a field
798
+ omitted from the body is cleared, including credentials (re-send them, or the masked
799
+ `"******"` value clears them too).
800
+
801
+ Three settings are the exception and survive an omission: `endUserProvidedFields`
802
+ (send `null` to clear it — `[]` is treated like an omission), and on `ftp` connections
803
+ `ftp.concurrencyLevel` and `ftp.targetConcurrencyLevel` (the latter is unset whenever
804
+ `autoRecoverRateLimitErrors` is false). `connectionRole` is read-only here: a body carrying
805
+ `mcpChild` is rejected.
686
806
  operationId: updateConnection
687
807
  tags:
688
808
  - Connections
@@ -792,26 +912,81 @@ paths:
792
912
  '404':
793
913
  $ref: '#/components/responses/404-not-found'
794
914
  '422':
795
- $ref: '#/components/responses/422-unprocessable-entity'
915
+ description: |-
916
+ Unprocessable entity. The body was well-formed but fails the connection's validation
917
+ rules — the same rules as on create (missing config object, decimal concurrency,
918
+ iClient rules, parent-owned `endUserProvidedFields` path, `mcpChild` role).
919
+ content:
920
+ application/json:
921
+ schema:
922
+ $ref: '#/components/schemas/Error'
923
+ examples:
924
+ default:
925
+ summary: Semantic validation failure
926
+ value:
927
+ errors:
928
+ - code: unprocessable_entity
929
+ message: The request could not be processed due to a semantic error.
930
+ mcpChildNotAllowed:
931
+ summary: connectionRole is mcpChild
932
+ value:
933
+ errors:
934
+ - code: mcp_child_generic_route_not_allowed
935
+ message: An mcpChild connection cannot be created, updated or deleted through the connections API, including the recurse and recycle bin routes.
936
+ endUserProvidedFieldParentOwned:
937
+ summary: endUserProvidedFields names a field the account owns
938
+ value:
939
+ errors:
940
+ - field: endUserProvidedFields
941
+ code: mcp_end_user_provided_field_not_allowed
942
+ message: type is managed by the account owner and cannot be requested from an end user.
943
+ concurrencyNotInteger:
944
+ summary: Decimal concurrency value
945
+ value:
946
+ errors:
947
+ - field: ftp.multiThreadCount
948
+ code: invalid_field_value
949
+ message: The field "ftp.multiThreadCount" must be a whole number (no decimals) between 1 and 50.
796
950
  x-celigo-ai-guidance:
797
951
  - |-
798
- Updates an existing connection configuration. This operation supports partial updates
799
- where only the provided fields will be modified.
952
+ PUT replaces the document: GET it first, change what you need, and send the whole body
953
+ back with the real credential values (masked "******" values clear the stored secret).
954
+ To change only name, debug window, or concurrency settings without touching credentials,
955
+ use PATCH instead.
800
956
  patch:
801
957
  x-internal: false
802
958
  summary: Patch a connection
803
959
  description: |-
804
- Partially updates a connection using a JSON Patch document (RFC 6902).
805
- Only the `replace` operation is supported, and only on the following
806
- whitelisted paths:
960
+ Partially updates a connection using a JSON Patch document (RFC 6902)
961
+ without re-sending its credentials — stored credentials are never read,
962
+ required, or changed by this operation. Use it for the settings below;
963
+ everything else goes through `PUT`, which replaces the whole document.
964
+ Only these paths are accepted (`<adaptor>` is the connection's `type`,
965
+ e.g. `/http/concurrencyLevel`, `/netsuite/targetConcurrencyLevel`):
807
966
 
808
967
  | Path | Description |
809
968
  |------|-------------|
810
969
  | `/name` | Connection display name |
811
970
  | `/debugDate` | Debug logging expiry (ISO-8601, max 1 hour from now) |
812
971
  | `/debugUntil` | Alias for `/debugDate` |
972
+ | `/<adaptor>/concurrencyLevel` | Concurrent requests allowed. Platform-managed while `autoRecoverRateLimitErrors` is true — the recovery machinery moves it toward the target, so set `targetConcurrencyLevel` instead |
973
+ | `/<adaptor>/targetConcurrencyLevel` | Ceiling auto-recovery climbs back to. Persists only while `autoRecoverRateLimitErrors` is true; while false the save unsets it |
974
+ | `/_borrowConcurrencyFromConnectionId` | Share another connection's concurrency budget. `remove` clears it |
975
+ | `/autoRecoverRateLimitErrors` | Rate-limit auto-recovery toggle. Turning it on copies the current level into the target; turning it off unsets the target and leaves the level at its current value |
976
+ | `/endUserProvidedFields` | Dot-paths MCP end users must supply on their own child copy of this connection. `replace` with `[]` or `remove` clears the list, and `add` on `/endUserProvidedFields/-` appends one path; a path the account owns (`type`, `_agentId`, `wrapper._stackId`, any `<adaptor>._iClientId`) is rejected |
813
977
 
814
- All other paths are rejected with `422`.
978
+ `replace` and `add` both set the value (a currently unset field is fine);
979
+ `remove` unsets it. A `null` value is rejected. Any other path — including
980
+ `/connectionRole`, `/netsuite/concurrencyLevelRESTlet`,
981
+ `/netsuite/concurrencyLevelWebServices` and `rateLimit` fields — fails with
982
+ `<path> is not a whitelisted property`.
983
+ Concurrency values must be whole numbers (a decimal fails with 422
984
+ `invalid_field_value`); out-of-range integers are clamped into the account's
985
+ licensed range rather than rejected. A whitelisted path under an adaptor
986
+ block the connection does not use is accepted but never read. The
987
+ borrowed-from connection must exist in the account, may not itself borrow,
988
+ and a connection that others borrow from cannot start borrowing.
989
+ Settings-only changes are recorded in the connection's audit log.
815
990
  operationId: patchConnection
816
991
  tags:
817
992
  - Connections
@@ -841,6 +1016,39 @@ paths:
841
1016
  - op: replace
842
1017
  path: /name
843
1018
  value: Shopify US Production
1019
+ set_target_concurrency:
1020
+ summary: Raise the target concurrency of an HTTP connection (auto-recovery on)
1021
+ value:
1022
+ - op: replace
1023
+ path: /http/targetConcurrencyLevel
1024
+ value: 10
1025
+ disable_auto_recovery_and_set_level:
1026
+ summary: Turn off rate-limit auto-recovery and fix the concurrency level
1027
+ value:
1028
+ - op: replace
1029
+ path: /autoRecoverRateLimitErrors
1030
+ value: false
1031
+ - op: replace
1032
+ path: /http/concurrencyLevel
1033
+ value: 4
1034
+ borrow_concurrency:
1035
+ summary: Share another connection's concurrency budget
1036
+ value:
1037
+ - op: replace
1038
+ path: /_borrowConcurrencyFromConnectionId
1039
+ value: 615dfa0742763671275b70ab
1040
+ stop_borrowing:
1041
+ summary: Stop borrowing concurrency
1042
+ value:
1043
+ - op: remove
1044
+ path: /_borrowConcurrencyFromConnectionId
1045
+ set_end_user_provided_fields:
1046
+ summary: Make MCP end users supply their own API key on this connection
1047
+ value:
1048
+ - op: replace
1049
+ path: /endUserProvidedFields
1050
+ value:
1051
+ - http.encrypted.apiKey
844
1052
  responses:
845
1053
  '204':
846
1054
  description: Connection patched successfully
@@ -849,7 +1057,33 @@ paths:
849
1057
  '404':
850
1058
  $ref: '#/components/responses/404-not-found'
851
1059
  '422':
852
- $ref: '#/components/responses/422-unprocessable-entity'
1060
+ description: |-
1061
+ Patch rejected — a path outside the whitelist, a `null` value, a decimal concurrency
1062
+ value, or an `endUserProvidedFields` entry the account owns.
1063
+ content:
1064
+ application/json:
1065
+ schema:
1066
+ $ref: '#/components/schemas/Error'
1067
+ examples:
1068
+ nonWhitelisted:
1069
+ summary: Path is not patchable
1070
+ value:
1071
+ errors:
1072
+ - message: /connectionRole is not a whitelisted property
1073
+ concurrencyNotInteger:
1074
+ summary: Decimal concurrency value
1075
+ value:
1076
+ errors:
1077
+ - field: http.targetConcurrencyLevel
1078
+ code: invalid_field_value
1079
+ message: The field "http.targetConcurrencyLevel" must be a whole number (no decimals) between 1 and 50.
1080
+ endUserProvidedFieldParentOwned:
1081
+ summary: endUserProvidedFields names a field the account owns
1082
+ value:
1083
+ errors:
1084
+ - field: endUserProvidedFields
1085
+ code: mcp_end_user_provided_field_not_allowed
1086
+ message: _agentId is managed by the account owner and cannot be requested from an end user.
853
1087
  delete:
854
1088
  x-internal: false
855
1089
  summary: Delete a connection
@@ -882,9 +1116,91 @@ paths:
882
1116
  $ref: '#/components/responses/422-dependency-conflict'
883
1117
  x-celigo-ai-guidance:
884
1118
  - |-
885
- Deletes a connection permanently. This operation cannot be undone.
886
- The connection must not be in use by any active flows or integrations.
1119
+ Soft-deletes the connection into the recycle bin (restorable for 30 days). Check
1120
+ `GET /v1/connections/{_id}/dependencies` first — a connection still referenced by flows,
1121
+ exports, or imports is rejected with 422.
887
1122
  /v1/connections/{_id}/ping:
1123
+ get:
1124
+ x-internal: false
1125
+ summary: Ping an existing connection via GET
1126
+ description: |-
1127
+ GET variant of the saved-connection ping — identical behavior to
1128
+ `POST /v1/connections/{_id}/ping`, with no request body to send. Runs the adaptor's ping
1129
+ routine against the connection identified by `_id` to verify its credentials and network
1130
+ configuration still work; no data is read, written, or modified.
1131
+
1132
+ Inspect the response body, not the HTTP status, to determine the outcome: success and
1133
+ adaptor-level failures both return HTTP 200 — success is `{code: 200}`, failures are
1134
+ `{errors: [...]}`. The only non-success status is 404, when `_id` does not resolve to a
1135
+ connection.
1136
+ operationId: pingConnectionByGet
1137
+ tags:
1138
+ - Connections
1139
+ parameters:
1140
+ - in: path
1141
+ name: _id
1142
+ required: true
1143
+ schema:
1144
+ type: string
1145
+ format: objectId
1146
+ x-celigo-refModel: connections
1147
+ description: Connection ID to ping.
1148
+ responses:
1149
+ '200':
1150
+ description: |-
1151
+ Ping executed. **Inspect the body** to determine outcome — success and
1152
+ adaptor-level failures both return HTTP 200. Success returns
1153
+ `{code: 200}`; adaptor-level failures return `{errors: [...]}`.
1154
+ content:
1155
+ application/json:
1156
+ schema:
1157
+ oneOf:
1158
+ - title: Ping success
1159
+ type: object
1160
+ required:
1161
+ - code
1162
+ properties:
1163
+ code:
1164
+ type: integer
1165
+ description: Mirrors the HTTP status — always 200 on success.
1166
+ example: 200
1167
+ additionalProperties: true
1168
+ - $ref: '#/components/schemas/Error'
1169
+ examples:
1170
+ success:
1171
+ summary: Connection reachable
1172
+ value:
1173
+ code: 200
1174
+ dns_failure:
1175
+ summary: Connection's baseURI host could not be resolved
1176
+ value:
1177
+ errors:
1178
+ - code: invalid_host
1179
+ message: 'Unknown host: api.example.invalid. We were unable to verify this host using a DNS lookup.'
1180
+ source: resource
1181
+ '401':
1182
+ $ref: '#/components/responses/401-unauthorized'
1183
+ '404':
1184
+ description: |-
1185
+ No connection found for the given `_id`. The body is an `invalid_ref`
1186
+ error — note this is a 404, not a 400, and the field pointer is `_id`.
1187
+ content:
1188
+ application/json:
1189
+ schema:
1190
+ $ref: '#/components/schemas/Error'
1191
+ examples:
1192
+ invalid_ref:
1193
+ value:
1194
+ errors:
1195
+ - field: _id
1196
+ code: invalid_ref
1197
+ message: unable to find connection for the given id.
1198
+ x-celigo-ai-guidance:
1199
+ - |-
1200
+ Behaves identically to POST /v1/connections/{_id}/ping and takes no request body — use
1201
+ whichever verb the client supports. Both verbs return HTTP 200 with {code: 200} on
1202
+ success and HTTP 200 with {errors: [...]} on adaptor-level failure, so inspect the body,
1203
+ not the status code.
888
1204
  post:
889
1205
  x-internal: false
890
1206
  summary: Ping an existing connection
@@ -1003,6 +1319,202 @@ paths:
1003
1319
  - Test network connectivity
1004
1320
  - Verify permissions for basic operations
1005
1321
  - Return connection status and any error details
1322
+ /v1/connections/{_id}/proxy:
1323
+ post:
1324
+ x-internal: false
1325
+ summary: Send a request through a connection (proxy)
1326
+ description: |-
1327
+ Sends one HTTP request to the system behind a saved connection, using that connection's
1328
+ base URI and stored authentication, and returns the target's response as-is. Use it to call
1329
+ an endpoint the connection's exports and imports do not expose — a metadata or describe call,
1330
+ an ad-hoc read, a one-off write — without copying credentials out of integrator.io.
1331
+
1332
+ The proxy call is always `POST`; the request to the target is shaped by headers:
1333
+
1334
+ - `Integrator-Method` (required) is the HTTP method used against the target. One of `HEAD`,
1335
+ `GET`, `PUT`, `PATCH`, `POST`, `DELETE`; any other value is rejected with
1336
+ `405 method_not_allowed`, and omitting the header returns `400 missing_header`.
1337
+ - `Integrator-Relative-URI` (optional) is appended to the connection's base URI, query string
1338
+ included. Omitted, the request goes to the base URI itself.
1339
+ - The proxy request body is forwarded to the target as its body. Send an empty JSON object
1340
+ when the target expects no body.
1341
+
1342
+ Only these headers are read. Any other header on the proxy request — a custom
1343
+ `X-Correlation-Id`, an `Authorization` meant for the target — is dropped, not forwarded; the
1344
+ target receives the connection's authentication plus the standard request headers
1345
+ (`Accept`, `Content-Type`, `Content-Length`).
1346
+
1347
+ The response is the target's response: its status code, body, and headers come back
1348
+ unchanged, so a `404` or `422` here is the target's answer, not the proxy's. Non-JSON bodies
1349
+ (XML, text) pass through with their own `Content-Type`. Only two statuses are the proxy's
1350
+ own: `400 missing_header` and `404 invalid_ref` when `_id` is not a connection in the account.
1351
+
1352
+ NetSuite connections route to a RESTlet instead of a relative URI: send
1353
+ `Integrator-NetSuite-ScriptId` and `Integrator-NetSuite-DeployId` with the script and
1354
+ deployment ids of the RESTlet to call. See
1355
+ [Connect to custom NetSuite RESTlets](https://docs.celigo.com/hc/en-us/articles/360059639272-Connect-to-custom-NetSuite-RESTlets)
1356
+ and
1357
+ [Connect to Salesforce REST relative URIs via proxy](https://docs.celigo.com/hc/en-us/articles/19906581226779-Connect-to-Salesforce-REST-relative-URIs-via-proxy)
1358
+ for the flow-step form of the same call (an integrator.io export or import whose relative URI
1359
+ is this path).
1360
+ operationId: proxyConnectionRequest
1361
+ tags:
1362
+ - Connections
1363
+ parameters:
1364
+ - in: path
1365
+ name: _id
1366
+ required: true
1367
+ schema:
1368
+ type: string
1369
+ format: objectId
1370
+ x-celigo-refModel: connections
1371
+ description: Connection whose base URI and authentication the request is sent with.
1372
+ - in: header
1373
+ name: Integrator-Method
1374
+ required: true
1375
+ description: HTTP method to use against the target. Header names are case-insensitive.
1376
+ schema:
1377
+ type: string
1378
+ enum:
1379
+ - HEAD
1380
+ - GET
1381
+ - PUT
1382
+ - PATCH
1383
+ - POST
1384
+ - DELETE
1385
+ x-enumDescriptions:
1386
+ HEAD: Headers only; the body returned to the caller is empty.
1387
+ GET: Read from the target.
1388
+ PUT: Replace a target resource with the forwarded body.
1389
+ PATCH: Partially update a target resource with the forwarded body.
1390
+ POST: Create or invoke on the target with the forwarded body.
1391
+ DELETE: Delete a target resource.
1392
+ examples:
1393
+ - GET
1394
+ - in: header
1395
+ name: Integrator-Relative-URI
1396
+ required: false
1397
+ description: |-
1398
+ Path and query string appended to the connection's base URI, for example
1399
+ `/v1/flows?limit=1`. Omit to send the request to the base URI. Not used by NetSuite
1400
+ connections, which route by RESTlet script and deployment id instead.
1401
+ schema:
1402
+ type: string
1403
+ examples:
1404
+ - /services/data/v58.0/sobjects/account/describe
1405
+ - in: header
1406
+ name: Integrator-NetSuite-ScriptId
1407
+ required: false
1408
+ description: |-
1409
+ NetSuite connections only — the script id of the RESTlet to call
1410
+ (`customscript_…`). Send together with `Integrator-NetSuite-DeployId`.
1411
+ schema:
1412
+ type: string
1413
+ examples:
1414
+ - customscript_celigo_myrestlet
1415
+ - in: header
1416
+ name: Integrator-NetSuite-DeployId
1417
+ required: false
1418
+ description: |-
1419
+ NetSuite connections only — the deployment id of the RESTlet to call
1420
+ (`customdeploy_…`). Send together with `Integrator-NetSuite-ScriptId`.
1421
+ schema:
1422
+ type: string
1423
+ examples:
1424
+ - customdeploy_celigo_myrestlet
1425
+ requestBody:
1426
+ required: true
1427
+ content:
1428
+ application/json:
1429
+ schema:
1430
+ type: object
1431
+ description: |-
1432
+ Forwarded to the target as the request body. Send `{}` when the target method takes
1433
+ no body (`GET`, `HEAD`, `DELETE`).
1434
+ additionalProperties: true
1435
+ examples:
1436
+ read:
1437
+ summary: GET through an HTTP connection — no body
1438
+ value: {}
1439
+ write:
1440
+ summary: POST a record to the target
1441
+ value:
1442
+ name: Acme Corp
1443
+ status: active
1444
+ responses:
1445
+ '200':
1446
+ description: |-
1447
+ The target's response, passed through. The status is whatever the target returned —
1448
+ a `2xx` here, or the target's own `4xx`/`5xx` — with its body and headers unchanged.
1449
+ content:
1450
+ application/json:
1451
+ schema:
1452
+ description: The target's response body, as returned by the target.
1453
+ examples:
1454
+ list:
1455
+ summary: Target returned a JSON array
1456
+ value:
1457
+ - _id: 69f4b2cb95ec28be9ca1a88d
1458
+ name: Shopify orders
1459
+ application/xml:
1460
+ schema:
1461
+ type: string
1462
+ description: Non-JSON target bodies pass through with the target's `Content-Type`.
1463
+ '400':
1464
+ description: '`missing_header` — `Integrator-Method` was not sent.'
1465
+ content:
1466
+ application/json:
1467
+ schema:
1468
+ $ref: '#/components/schemas/Error'
1469
+ examples:
1470
+ missingMethod:
1471
+ value:
1472
+ errors:
1473
+ - code: missing_header
1474
+ message: Integrator-Method header missing in the Request
1475
+ source: resource
1476
+ '401':
1477
+ $ref: '#/components/responses/401-unauthorized'
1478
+ '404':
1479
+ description: |-
1480
+ `invalid_ref` — `_id` is not a connection in this account. A `404` with any other body
1481
+ is the target's response to the forwarded request.
1482
+ content:
1483
+ application/json:
1484
+ schema:
1485
+ $ref: '#/components/schemas/Error'
1486
+ examples:
1487
+ unknownConnection:
1488
+ value:
1489
+ errors:
1490
+ - code: invalid_ref
1491
+ message: Connection not found for the given id.
1492
+ '405':
1493
+ description: '`method_not_allowed` — `Integrator-Method` is not one of the allowed values.'
1494
+ content:
1495
+ application/json:
1496
+ schema:
1497
+ $ref: '#/components/schemas/Error'
1498
+ examples:
1499
+ badMethod:
1500
+ value:
1501
+ errors:
1502
+ - code: method_not_allowed
1503
+ message: HTTP Method 'FETCH' not allowed. Allowed methods are HEAD, GET, PUT, PATCH, POST, DELETE
1504
+ source: resource
1505
+ default:
1506
+ description: |-
1507
+ Any other status is the target's response to the forwarded request, returned unchanged
1508
+ with its body and headers.
1509
+ x-celigo-ai-guidance:
1510
+ - |-
1511
+ Custom headers are not forwarded to the target: only Integrator-Method,
1512
+ Integrator-Relative-URI, and the NetSuite RESTlet id headers are read, and the target
1513
+ receives the connection's own authentication. If the target needs a header the connection
1514
+ does not send, the proxy cannot supply it.
1515
+ - |-
1516
+ Read the status as the target's, not the proxy's: a 422 or 404 with a non-invalid_ref
1517
+ body is the downstream system's validation result for the forwarded request.
1006
1518
  /v1/connections/{_id}/debug:
1007
1519
  get:
1008
1520
  x-internal: false
@@ -1091,6 +1603,96 @@ paths:
1091
1603
  $ref: '#/components/responses/401-unauthorized'
1092
1604
  '404':
1093
1605
  $ref: '#/components/responses/404-not-found'
1606
+ /v1/connections/{_id}/debug/{typeId}:
1607
+ get:
1608
+ x-internal: false
1609
+ operationId: getConnectionDebugLogsForResource
1610
+ tags:
1611
+ - Connections
1612
+ summary: Fetch a connection's debug logs for one export or import
1613
+ description: |-
1614
+ Same buffered debug log stream as `GET /v1/connections/{_id}/debug`, narrowed to the
1615
+ request/response pairs recorded for a single export or import (`typeId`) that uses the
1616
+ connection. Use it instead of filtering the shared stream client-side when one flow step
1617
+ is under investigation. Capture is still gated by the connection's `debugDate`, so the
1618
+ stream is empty until debug logging is enabled.
1619
+
1620
+ `typeId` must be the id of an export or import in the account; an id that resolves to
1621
+ neither answers 404, and a value that is not an ObjectId answers 400.
1622
+ parameters:
1623
+ - name: _id
1624
+ in: path
1625
+ required: true
1626
+ description: The connection id.
1627
+ schema:
1628
+ type: string
1629
+ format: objectId
1630
+ x-celigo-refModel: connections
1631
+ - name: typeId
1632
+ in: path
1633
+ required: true
1634
+ description: Id of the export or import whose traffic through the connection to return.
1635
+ schema:
1636
+ type: string
1637
+ format: objectId
1638
+ responses:
1639
+ '200':
1640
+ description: Debug log stream (plain text) for the given export or import.
1641
+ content:
1642
+ text/plain:
1643
+ schema:
1644
+ type: string
1645
+ description: |-
1646
+ Newline-separated debug log entries in the same format as
1647
+ `GET /v1/connections/{_id}/debug`: a header line
1648
+ (`timestamp traceKey resourceType resourceId`) followed by a JSON payload line,
1649
+ entries separated by blank lines. Every entry's `resourceId` equals `typeId`.
1650
+ examples:
1651
+ default:
1652
+ value: |
1653
+ 2026-04-19T03:44:06.673Z b45a75a5b72e4522972e55edf26de1c8 import 69e44eb7a749d34a975a4747
1654
+ {"url":"https://httpbin.org/post","method":"POST","body":"{\"id\":\"_id\"}","headers":{"X-None":"********","content-type":"application/json"},"requestIndex":0}
1655
+
1656
+ 2026-04-19T03:44:06.774Z b45a75a5b72e4522972e55edf26de1c8 import 69e44eb7a749d34a975a4747
1657
+ {"headers":{"date":"Sun, 19 Apr 2026 03:44:06 GMT","content-type":"application/json"},"body":"{\"ok\":true}"}
1658
+ '204':
1659
+ description: |-
1660
+ No debug logs for this export or import — debug capture is off (no future `debugDate`),
1661
+ the step has not run through the connection since it was enabled, or the buffer was
1662
+ cleared.
1663
+ '400':
1664
+ description: '`typeId` is not a valid ObjectId.'
1665
+ content:
1666
+ application/json:
1667
+ schema:
1668
+ $ref: '#/components/schemas/Error'
1669
+ examples:
1670
+ invalidTypeId:
1671
+ value:
1672
+ errors:
1673
+ - code: invalid_ref
1674
+ message: Please provide a valid typeId.
1675
+ '401':
1676
+ $ref: '#/components/responses/401-unauthorized'
1677
+ '404':
1678
+ description: The connection, or the export/import named by `typeId`, does not exist in the account.
1679
+ content:
1680
+ application/json:
1681
+ schema:
1682
+ $ref: '#/components/schemas/Error'
1683
+ examples:
1684
+ connectionNotFound:
1685
+ summary: Unknown connection id
1686
+ value:
1687
+ errors:
1688
+ - code: invalid_ref
1689
+ message: Connection not found.
1690
+ resourceNotFound:
1691
+ summary: typeId is neither an export nor an import
1692
+ value:
1693
+ errors:
1694
+ - code: invalid_ref
1695
+ message: Export/Import not found.
1094
1696
  /v1/connections/{_id}/metadata:
1095
1697
  put:
1096
1698
  x-internal: false
@@ -1389,7 +1991,8 @@ paths:
1389
1991
  `authorizationUrl` response field serves both OAuth 2.0 and OAuth 1.0a connections (NetSuite
1390
1992
  returns an OAuth 1.0a URL with an `oauth_token` parameter).
1391
1993
 
1392
- Note the resource segment is singular — `/v1/connection/{_id}/oauth2`, not plural. The URL's
1994
+ The resource segment is singular — `/v1/connection/{_id}/oauth2`; the plural form
1995
+ `/v1/connections/{_id}/oauth2` is an alias that answers identically. The URL's
1393
1996
  `state` token is one-time and expires quickly, so request a fresh one if the flow is
1394
1997
  interrupted, then poll `GET /v1/connections/{_id}` until `needsAuthorization` is `false`.
1395
1998
  parameters:
@@ -1434,81 +2037,261 @@ paths:
1434
2037
  '404':
1435
2038
  $ref: '#/components/responses/404-not-found'
1436
2039
  '422':
1437
- description: |-
1438
- Connection exists but is not configured for OAuth — e.g. an FTP, S3, or plain-auth
1439
- HTTP connection. The server fails the handshake pre-check because the connection has
1440
- no `authURI` in its config.
2040
+ description: |-
2041
+ Connection exists but is not configured for OAuth — e.g. an FTP, S3, or plain-auth
2042
+ HTTP connection. The server fails the handshake pre-check because the connection has
2043
+ no `authURI` in its config.
2044
+ content:
2045
+ application/json:
2046
+ schema:
2047
+ $ref: '#/components/schemas/Error'
2048
+ examples:
2049
+ missingAuthURI:
2050
+ summary: Connection has no OAuth config
2051
+ value:
2052
+ errors:
2053
+ - code: missing_required_field
2054
+ message: 'Expected field: authURI in the Connection to be present.'
2055
+ source: connector
2056
+ /v1/connections/{_id}/dependencies:
2057
+ get:
2058
+ x-internal: false
2059
+ operationId: listConnectionDependencies
2060
+ tags:
2061
+ - Connections
2062
+ summary: List dependencies of a connection
2063
+ description: |-
2064
+ Returns the set of resources that depend on the specified resource.
2065
+ The response is an object whose keys are dependent-resource types
2066
+ (e.g. `flows`, `imports`) and whose values are arrays of dependency
2067
+ entries.
2068
+
2069
+ Returns `{}` for both zero-dependency and nonexistent IDs.
2070
+ parameters:
2071
+ - name: _id
2072
+ in: path
2073
+ required: true
2074
+ description: Resource ID.
2075
+ schema:
2076
+ type: string
2077
+ format: objectId
2078
+ x-celigo-refModel: connections
2079
+ responses:
2080
+ '200':
2081
+ description: |
2082
+ Dependency map. Keys are resource-type strings; values are arrays
2083
+ of dependency entries. Returns `{}` when no dependents exist.
2084
+ content:
2085
+ application/json:
2086
+ schema:
2087
+ $ref: '#/components/schemas/DependencyResponse'
2088
+ examples:
2089
+ none:
2090
+ summary: No dependents (also returned for a nonexistent ID)
2091
+ value: {}
2092
+ withDependents:
2093
+ summary: Referenced by an export and a flow
2094
+ value:
2095
+ exports:
2096
+ - id: 64ff4b21612a134bd2f45534
2097
+ name: Bank FTP Export
2098
+ paths:
2099
+ - _connectionId
2100
+ accessLevel: manage
2101
+ dependencyIds:
2102
+ connection:
2103
+ - 615dfa0742763671275b70ab
2104
+ flows:
2105
+ - id: 64ff4b22612a134bd2f45538
2106
+ name: CAMT-053 to Celigo CAM Format
2107
+ paths:
2108
+ - pageGenerators[*]._exportId
2109
+ accessLevel: manage
2110
+ dependencyIds:
2111
+ export:
2112
+ - 64ff4b21612a134bd2f45534
2113
+ '401':
2114
+ $ref: '#/components/responses/401-unauthorized'
2115
+ /v1/connections/{_id}/distributedApps:
2116
+ get:
2117
+ x-internal: false
2118
+ summary: Check the Celigo SuiteApp and bundle on a NetSuite connection
2119
+ description: |-
2120
+ Reports, live from the connected NetSuite account, whether the Celigo integrator.io SuiteApp
2121
+ (SuiteScript 2.x) and the legacy Celigo bundle are installed — the check the UI runs before
2122
+ offering a NetSuite API version that depends on either. Round-trips to NetSuite, so expect a
2123
+ few seconds. Only connections of type `netsuite` are accepted.
2124
+
2125
+ Use this instead of the connection's `netsuite.suiteAppInstalled`, which reflects only the
2126
+ SuiteApp as detected the last time the connection authenticated. For a single combined
2127
+ reachability result, or for a Salesforce connection, use `GET /v1/connections/{_id}/distributed`.
2128
+ operationId: getConnectionDistributedApps
2129
+ tags:
2130
+ - Connections
2131
+ parameters:
2132
+ - in: path
2133
+ name: _id
2134
+ required: true
2135
+ schema:
2136
+ type: string
2137
+ format: objectId
2138
+ x-celigo-refModel: connections
2139
+ description: NetSuite connection to check.
2140
+ responses:
2141
+ '200':
2142
+ description: Installation state of each component.
2143
+ content:
2144
+ application/json:
2145
+ schema:
2146
+ type: object
2147
+ required:
2148
+ - bundle
2149
+ - suiteapp
2150
+ properties:
2151
+ bundle:
2152
+ description: The legacy Celigo integrator.io bundle (SuiteScript 1.0).
2153
+ allOf:
2154
+ - $ref: '#/components/schemas/DistributedAppStatus'
2155
+ suiteapp:
2156
+ description: The Celigo integrator.io SuiteApp (SuiteScript 2.x).
2157
+ allOf:
2158
+ - $ref: '#/components/schemas/DistributedAppStatus'
2159
+ examples:
2160
+ both_installed:
2161
+ summary: SuiteApp and bundle both present
2162
+ value:
2163
+ bundle:
2164
+ success: true
2165
+ suiteapp:
2166
+ success: true
2167
+ neither_installed:
2168
+ summary: Neither component installed (NetSuite reports the RESTlets missing)
2169
+ value:
2170
+ bundle:
2171
+ success: false
2172
+ statusCode: 404
2173
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
2174
+ URL: https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
2175
+ suiteapp:
2176
+ success: false
2177
+ statusCode: 404
2178
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
2179
+ URL: https://tstdrv1234567.app.netsuite.com/suiteapp/ui/marketplace.nl?whence=#/app?id=com.celigo.integratorio
2180
+ '401':
2181
+ $ref: '#/components/responses/401-unauthorized'
2182
+ '404':
2183
+ description: No connection found for the given `_id`.
2184
+ content:
2185
+ application/json:
2186
+ schema:
2187
+ $ref: '#/components/schemas/Error'
2188
+ examples:
2189
+ invalid_ref:
2190
+ value:
2191
+ errors:
2192
+ - code: invalid_ref
2193
+ message: Connection not found for the given id.
2194
+ '422':
2195
+ description: The connection exists but is not a NetSuite connection.
1441
2196
  content:
1442
2197
  application/json:
1443
2198
  schema:
1444
2199
  $ref: '#/components/schemas/Error'
1445
2200
  examples:
1446
- missingAuthURI:
1447
- summary: Connection has no OAuth config
2201
+ invalid_connection_type:
1448
2202
  value:
1449
2203
  errors:
1450
- - code: missing_required_field
1451
- message: 'Expected field: authURI in the Connection to be present.'
1452
- source: connector
1453
- /v1/connections/{_id}/dependencies:
2204
+ - message: 'invalid connection type: http'
2205
+ x-celigo-ai-guidance:
2206
+ - |-
2207
+ Decides the NetSuite import adaptor: when `suiteapp.success` or `bundle.success` is true,
2208
+ author a NetSuiteDistributedImport (netsuite_da) — Celigo RESTlets; when both are false,
2209
+ author a NetSuiteHTTPImport (NetSuite REST APIs). Exports and lookups do not depend on this
2210
+ check — NetSuiteHTTPExport needs neither component.
2211
+ - |-
2212
+ A non-NetSuite connection answers 422 with the message "invalid connection type: <type>"
2213
+ and no `code`; an unknown `_id` answers 404 `invalid_ref`.
2214
+ /v1/connections/{_id}/distributed:
1454
2215
  get:
1455
2216
  x-internal: false
1456
- operationId: listConnectionDependencies
1457
- tags:
1458
- - Connections
1459
- summary: List dependencies of a connection
2217
+ summary: Ping the distributed adaptor behind a connection
1460
2218
  description: |-
1461
- Returns the set of resources that depend on the specified resource.
1462
- The response is an object whose keys are dependent-resource types
1463
- (e.g. `flows`, `imports`) and whose values are arrays of dependency
1464
- entries.
2219
+ Pings, live, the Celigo distributed adaptor installed in the account behind a `netsuite`
2220
+ or `salesforce` connection — the integrator.io bundle or SuiteApp RESTlet in NetSuite, the
2221
+ Celigo managed package in Salesforce — and reports one combined result. Round-trips to the
2222
+ remote system, so expect a few seconds. The distributed adaptor is what NetSuite real-time
2223
+ exports and `netsuite_da` imports, and Salesforce real-time exports, run through, so this
2224
+ is the check to run before building them.
1465
2225
 
1466
- Returns `{}` for both zero-dependency and nonexistent IDs.
2226
+ Use `GET /v1/connections/{_id}/distributedApps` instead when you need the NetSuite bundle
2227
+ and SuiteApp reported separately; this endpoint is the only one of the two that also covers
2228
+ Salesforce. Any other connection type is rejected with 422.
2229
+ operationId: pingConnectionDistributedAdaptor
2230
+ tags:
2231
+ - Connections
1467
2232
  parameters:
1468
- - name: _id
1469
- in: path
2233
+ - in: path
2234
+ name: _id
1470
2235
  required: true
1471
- description: Resource ID.
1472
2236
  schema:
1473
2237
  type: string
1474
2238
  format: objectId
1475
2239
  x-celigo-refModel: connections
2240
+ description: NetSuite or Salesforce connection to check.
1476
2241
  responses:
1477
2242
  '200':
1478
- description: |
1479
- Dependency map. Keys are resource-type strings; values are arrays
1480
- of dependency entries. Returns `{}` when no dependents exist.
2243
+ description: 'Ping result. `success: false` is still HTTP 200 — inspect the body.'
1481
2244
  content:
1482
2245
  application/json:
1483
2246
  schema:
1484
- $ref: '#/components/schemas/DependencyResponse'
2247
+ $ref: '#/components/schemas/DistributedAdaptorStatus'
1485
2248
  examples:
1486
- none:
1487
- summary: No dependents (also returned for a nonexistent ID)
1488
- value: {}
1489
- withDependents:
1490
- summary: Referenced by an export and a flow
2249
+ installed:
2250
+ summary: Distributed adaptor reachable
1491
2251
  value:
1492
- exports:
1493
- - id: 64ff4b21612a134bd2f45534
1494
- name: Bank FTP Export
1495
- paths:
1496
- - _connectionId
1497
- accessLevel: manage
1498
- dependencyIds:
1499
- connection:
1500
- - 615dfa0742763671275b70ab
1501
- flows:
1502
- - id: 64ff4b22612a134bd2f45538
1503
- name: CAMT-053 to Celigo CAM Format
1504
- paths:
1505
- - pageGenerators[*]._exportId
1506
- accessLevel: manage
1507
- dependencyIds:
1508
- export:
1509
- - 64ff4b21612a134bd2f45534
2252
+ success: true
2253
+ netsuiteMissing:
2254
+ summary: NetSuite account without the Celigo bundle or SuiteApp
2255
+ value:
2256
+ success: false
2257
+ statusCode: 404
2258
+ resBody: That Suitelet is invalid, disabled, or no longer exists.
2259
+ bundleURL: https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
2260
+ salesforceOffline:
2261
+ summary: Salesforce connection that is offline
2262
+ value:
2263
+ success: false
2264
+ resBody: 'Connection is taken offline: expired access/refresh token'
2265
+ bundleURL: https://mycompany.my.salesforce.com/packaging/installPackage.apexp?p0=04t3m000000Q89d
1510
2266
  '401':
1511
2267
  $ref: '#/components/responses/401-unauthorized'
2268
+ '404':
2269
+ description: No connection found for the given `_id`.
2270
+ content:
2271
+ application/json:
2272
+ schema:
2273
+ $ref: '#/components/schemas/Error'
2274
+ examples:
2275
+ invalid_ref:
2276
+ value:
2277
+ errors:
2278
+ - code: invalid_ref
2279
+ message: Connection not found for the given id.
2280
+ '422':
2281
+ description: The connection exists but is neither a NetSuite nor a Salesforce connection.
2282
+ content:
2283
+ application/json:
2284
+ schema:
2285
+ $ref: '#/components/schemas/Error'
2286
+ examples:
2287
+ invalid_connection_type:
2288
+ value:
2289
+ errors:
2290
+ - message: 'invalid connection type: http'
2291
+ x-celigo-ai-guidance:
2292
+ - |-
2293
+ A non-NetSuite, non-Salesforce connection answers 422 with the message "invalid
2294
+ connection type: <type>" and no `code`; an unknown `_id` answers 404 `invalid_ref`.
1512
2295
  /v1/salesforce/metadata/connections/{_id}/sObjectTypes:
1513
2296
  get:
1514
2297
  x-internal: false
@@ -2419,11 +3202,77 @@ components:
2419
3202
  readOnly: true
2420
3203
  examples:
2421
3204
  - 5f29dbc69e8a0f0e29a491b7
3205
+ connectionRole:
3206
+ type: string
3207
+ enum:
3208
+ - standard
3209
+ - mcpChild
3210
+ x-enumDescriptions:
3211
+ standard: An ordinary account-owned connection, created and edited through this API
3212
+ mcpChild: An MCP end user's private credential copy of a parent connection, created by the end-user setup page
3213
+ readOnly: true
3214
+ description: |-
3215
+ Distinguishes account-owned connections from the per-end-user credential copies
3216
+ MCP servers collect. Absent on connections last saved before the field existed,
3217
+ which behave as `standard`. Sending `mcpChild` on `POST` or `PUT /v1/connections`
3218
+ fails with 422 `mcp_child_generic_route_not_allowed`, and `/connectionRole` is not a
3219
+ patchable path; child connections are written only by the MCP end-user setup page,
3220
+ never through `/v1`.
3221
+ examples:
3222
+ - standard
3223
+ endUserProvidedFields:
3224
+ type: array
3225
+ items:
3226
+ type: string
3227
+ description: |-
3228
+ Dot-paths of this connection's fields (for example `http.encrypted.apiKey` or
3229
+ `rdbms.user`) that each MCP end user must supply on their own `mcpChild` copy instead
3230
+ of inheriting the parent's value. Only returned on a `standard` connection that has
3231
+ paths set; never returned on a child. Writable through `POST`, `PUT`, and `PATCH`;
3232
+ by the platform contract, a write that changes the list invalidates the children end
3233
+ users already hold against this parent.
3234
+ examples:
3235
+ - - http.encrypted.apiKey
3236
+ - http.unencrypted.accountId
3237
+ _parentConnectionId:
3238
+ type: string
3239
+ format: objectId
3240
+ x-celigo-refModel: connections
3241
+ readOnly: true
3242
+ description: |-
3243
+ Parent connection this child copies its non-credential configuration from. Present
3244
+ only when `connectionRole` is `mcpChild`; set by the end-user setup page and ignored
3245
+ when sent on a standard connection.
3246
+ examples:
3247
+ - 615dfa0742763671275b70ab
3248
+ _mcpOwnerId:
3249
+ type: string
3250
+ format: objectId
3251
+ x-celigo-refModel: users
3252
+ readOnly: true
3253
+ description: |-
3254
+ Account owner whose parent connection and MCP servers this child belongs to. Present
3255
+ only when `connectionRole` is `mcpChild`; on a child, `_userId` is the end user and
3256
+ this field is the account.
3257
+ examples:
3258
+ - 5d2e1f0a9b8c7d6e5f4a3b2c
3259
+ _parentSyncedAt:
3260
+ type: string
3261
+ format: date-time
3262
+ readOnly: true
3263
+ description: |-
3264
+ Timestamp when the child's non-credential fields were last synced from the parent
3265
+ connection. Present only when `connectionRole` is `mcpChild`.
3266
+ examples:
3267
+ - '2026-09-15T18:42:10.331Z'
2422
3268
  _userId:
2423
3269
  type: string
2424
3270
  format: objectId
2425
3271
  x-celigo-refModel: users
2426
- description: User who owns this connection.
3272
+ description: |-
3273
+ End user who owns this `mcpChild` connection's credentials. Present only when
3274
+ `connectionRole` is `mcpChild`; a standard connection belongs to the account and
3275
+ omits this field.
2427
3276
  readOnly: true
2428
3277
  examples:
2429
3278
  - 5d2e1f0a9b8c7d6e5f4a3b2c
@@ -2445,7 +3294,17 @@ components:
2445
3294
  autoRecoverRateLimitErrors:
2446
3295
  type: boolean
2447
3296
  default: true
2448
- description: When true, the connection automatically backs off and retries when it encounters rate-limit errors from the target system.
3297
+ description: |-
3298
+ When true, rate-limit errors from the target system trigger automatic recovery: concurrency
3299
+ drops to 1, the rate-limited requests are retried with doubling waits (1 to 1024 minutes,
3300
+ after which the flag switches itself off), and concurrency climbs back toward
3301
+ `targetConcurrencyLevel`. While true, `targetConcurrencyLevel` is the throughput lever: a
3302
+ `concurrencyLevel` sent in a PUT is ignored, and one sent in a PATCH is stored but the
3303
+ recovery machinery moves it back toward the target.
3304
+ x-celigo-ai-guidance:
3305
+ - To change throughput while this is true, write `targetConcurrencyLevel`; a `concurrencyLevel` sent in a PUT returns 200 and changes nothing.
3306
+ - Turning it on copies `concurrencyLevel` into `targetConcurrencyLevel`; turning it off unsets the target and leaves `concurrencyLevel` at its current value, which may be below the old target if a recovery was in progress. A `targetConcurrencyLevel` written while this is false is unset by the save.
3307
+ - These four settings (`concurrencyLevel`, `targetConcurrencyLevel`, `_borrowConcurrencyFromConnectionId`, this flag) accept a credential-free `PATCH /v1/connections/{_id}`. A PUT must re-send the credentials — omitting them or echoing their masked `******` values clears them.
2449
3308
  enableMicroBatchForOneToMany:
2450
3309
  type: boolean
2451
3310
  default: true
@@ -2687,7 +3546,7 @@ components:
2687
3546
  NetSuite application ID from the integration record.
2688
3547
  Required for some authentication configurations to identify the calling application.
2689
3548
  concurrencyLevel:
2690
- type: number
3549
+ type: integer
2691
3550
  description: |
2692
3551
  General concurrency level for this connection. Controls the overall
2693
3552
  maximum concurrent requests across all operation types.
@@ -2696,7 +3555,7 @@ components:
2696
3555
  maximum: 50
2697
3556
  default: 5
2698
3557
  targetConcurrencyLevel:
2699
- type: number
3558
+ type: integer
2700
3559
  description: |
2701
3560
  Target concurrency level for auto-scaling. The system adjusts concurrency
2702
3561
  between 1 and this value based on rate limit and governance feedback.
@@ -2827,15 +3686,20 @@ components:
2827
3686
  description: |-
2828
3687
  OAuth scopes requested during authorization. Scope values are defined by Salesforce — `full`
2829
3688
  grants complete API access and `refresh_token` enables long-lived refresh tokens. Defaults
2830
- to `full` and `refresh_token` when omitted.
3689
+ to `full` and `refresh_token` when omitted. A saved empty array is the normal stored state:
3690
+ the connection form does not expose this field, and every save from the connection editor
3691
+ resets values written through the API.
2831
3692
  default:
2832
3693
  - full
2833
3694
  - refresh_token
2834
3695
  examples:
2835
3696
  - - full
2836
3697
  - refresh_token
3698
+ x-celigo-ai-guidance:
3699
+ - 'Never set or repair this field to fix an authentication failure: an empty or absent list is the normal stored state, and UI saves reset API-written values.'
3700
+ - For a custom Connected App (`salesforce._iClientId` set), requested scopes are configured on the iClient's `oauth2.scope` and constrained by the Connected App inside Salesforce — not on the connection.
2837
3701
  concurrencyLevel:
2838
- type: number
3702
+ type: integer
2839
3703
  description: |-
2840
3704
  Maximum number of concurrent API requests to Salesforce. Salesforce enforces per-org API
2841
3705
  request limits, so setting this high consumes the org's API call allocation faster. Values
@@ -2845,7 +3709,7 @@ components:
2845
3709
  maximum: 50
2846
3710
  default: 5
2847
3711
  targetConcurrencyLevel:
2848
- type: number
3712
+ type: integer
2849
3713
  description: |-
2850
3714
  Upper bound for auto-scaling concurrency. When automatic rate-limit recovery is enabled, the
2851
3715
  system adjusts concurrency between 1 and this value based on rate-limit feedback from
@@ -3008,19 +3872,24 @@ components:
3008
3872
  examples:
3009
3873
  - 66a1b2c3d4e5f60718293a4b
3010
3874
  concurrencyLevel:
3011
- type: number
3875
+ type: integer
3012
3876
  description: |
3013
3877
  Maximum number of concurrent file transfer operations.
3014
3878
  FTP servers often have low connection limits — keep this value conservative.
3015
3879
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
3880
+ Unlike the rest of the `ftp` object, a `PUT` that omits this field keeps the stored value instead of clearing it.
3016
3881
  minimum: 1
3017
3882
  maximum: 50
3018
3883
  default: 1
3884
+ examples:
3885
+ - 3
3019
3886
  targetConcurrencyLevel:
3020
- type: number
3887
+ type: integer
3021
3888
  description: |
3022
3889
  Target concurrency level for auto-scaling. The system adjusts concurrency
3023
3890
  between 1 and this value based on server response feedback.
3891
+ Kept on a `PUT` that omits it, like `concurrencyLevel`; unset by the save while
3892
+ `autoRecoverRateLimitErrors` is false.
3024
3893
  minimum: 1
3025
3894
  maximum: 50
3026
3895
  examples:
@@ -3035,7 +3904,8 @@ components:
3035
3904
  save the value is mirrored into `userConcurrencyLevel` (and into
3036
3905
  `userTargetConcurrencyLevel` when auto-recovery of rate-limit errors
3037
3906
  is active with `targetConcurrencyLevel` set); clearing it clears the
3038
- mirrors.
3907
+ mirrors. Not preserved across a `PUT` — re-send it with the rest of
3908
+ the `ftp` object or it is cleared.
3039
3909
  examples:
3040
3910
  - 2
3041
3911
  userConcurrencyLevel:
@@ -3125,7 +3995,7 @@ components:
3125
3995
  examples:
3126
3996
  - my-data-lake
3127
3997
  concurrencyLevel:
3128
- type: number
3998
+ type: integer
3129
3999
  description: |-
3130
4000
  Maximum number of concurrent S3 operations. Applies when `autoRecoverRateLimitErrors` is
3131
4001
  false; when auto-recover is on (the default) concurrency auto-scales up to
@@ -3135,7 +4005,7 @@ components:
3135
4005
  maximum: 50
3136
4006
  default: 5
3137
4007
  targetConcurrencyLevel:
3138
- type: number
4008
+ type: integer
3139
4009
  description: |-
3140
4010
  Upper bound for auto-scaled concurrency when `autoRecoverRateLimitErrors` is true (the
3141
4011
  default). The system raises and lowers concurrency between 1 and this value based on
@@ -3623,7 +4493,7 @@ components:
3623
4493
  "Amazon-Hybrid", populate unencrypted.marketplaceId ("ATVPDKIKX0DER") and
3624
4494
  unencrypted.sellingRegion ("northAmerica"), and let the user finish the connection in the
3625
4495
  Celigo UI. Omitting either field fails the POST with 422 "Expected field: marketplaceId to be present".
3626
- x-celigo-ui-override: The auth.type conditional below encodes the connection form's credential requireds. Most are also API-enforced; the form-only additions (the API creates the connection without them, or accepts a weaker rule) are auth.basic.password (the API accepts a username alone), auth.token.location, auth.token.headerName (wsse), auth.cookie.method, auth.cookie.body, and _iClientId (oauth) — each flagged on its own field.
4496
+ x-celigo-ui-override: The auth.type conditional below encodes the connection form's credential requireds. Most are also API-enforced; the form-only additions (the API creates the connection without them, or accepts a weaker rule) are auth.basic.password (the API accepts a username alone), auth.token.location, auth.token.headerName (wsse), auth.cookie.method, auth.cookie.body, and _iClientId (oauth) — each flagged on its own field. _iClientId for awsiam is both form- and API-required.
3627
4497
  required:
3628
4498
  - baseURI
3629
4499
  - mediaType
@@ -3710,23 +4580,28 @@ components:
3710
4580
  NEVER disable in production — it removes protection against man-in-the-middle attacks.
3711
4581
  default: false
3712
4582
  concurrencyLevel:
3713
- type: number
4583
+ type: integer
3714
4584
  description: |
3715
4585
  Maximum number of concurrent HTTP requests this connection can make simultaneously.
3716
4586
 
3717
4587
  Higher values increase throughput but may trigger API rate limits.
3718
4588
  Set this based on the target API's rate limit documentation.
3719
- Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
4589
+ Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down,
4590
+ but a decimal is rejected with 422 `invalid_field_value` on every write (the same rule applies to every
4591
+ adaptor's `concurrencyLevel` and `targetConcurrencyLevel`, and to `ftp.multiThreadCount`).
4592
+ Platform-managed while `autoRecoverRateLimitErrors` is true — a PUT ignores the value and the recovery machinery moves it toward the target; set `targetConcurrencyLevel` instead.
3720
4593
  minimum: 1
3721
4594
  maximum: 50
3722
4595
  default: 25
4596
+ examples:
4597
+ - 10
3723
4598
  targetConcurrencyLevel:
3724
- type: number
4599
+ type: integer
3725
4600
  description: |
3726
- Target concurrency level for auto-scaling. The system automatically adjusts
3727
- concurrency between 1 and this value based on rate limit feedback.
4601
+ Ceiling the platform climbs back to after rate-limit recovery, in steps of 25% of this value.
4602
+ Writing it also sets `concurrencyLevel` to the same value and stops any recovery in progress.
3728
4603
 
3729
- Only relevant when autoRecoverRateLimitErrors is enabled on the connection.
4604
+ Honored only while `autoRecoverRateLimitErrors` is true; ignored, and unset, when it is false.
3730
4605
  minimum: 1
3731
4606
  maximum: 50
3732
4607
  examples:
@@ -3940,10 +4815,12 @@ components:
3940
4815
  x-lowercase: true
3941
4816
  x-celigo-ai-guidance:
3942
4817
  - |-
3943
- When type is "awsiam", the connection must also carry
3944
- http._iClientId pointing at an AWS-IAM iClient — the save is
3945
- rejected without it. The signing credentials live on the
3946
- iClient, not on the connection.
4818
+ When type is "awsiam", the connection must also carry http._iClientId pointing at
4819
+ an iClient with provider "awsIam" that belongs to the same account and has
4820
+ awsIam.roleArn whose role name starts with "celigo-http-adaptor-"; the save fails
4821
+ with 422 (missing_required_field, invalid_field, invalid_field_value, or invalid_ref
4822
+ respectively) when any of these is off. The signing credentials live on the iClient,
4823
+ not on the connection.
3947
4824
  examples:
3948
4825
  - token
3949
4826
  failStatusCode:
@@ -4589,28 +5466,64 @@ components:
4589
5466
  type: string
4590
5467
  format: objectId
4591
5468
  x-celigo-refModel: iclients
4592
- description: ID of the iClient used for OAuth authentication.
5469
+ description: |-
5470
+ iClient that holds the credentials this connection signs with: the OAuth 2.0 client for
5471
+ `auth.type` `oauth` (including the `azureserviceprincipal` service principal an Azure
5472
+ Data Lake Storage Gen2 connection authenticates with and the `googleserviceaccount` key
5473
+ a Google Cloud Storage connection uses), or the `awsIam` role for `auth.type` `awsiam`.
5474
+ Must belong to the same account as the connection. Omit for every other auth type.
4593
5475
  examples:
4594
5476
  - 6203a7e4f321d800129a1b8e
4595
- x-celigo-ui-override: Required by the connection form for oauth (OAuth 2.0) auth; the API creates the connection without it (the OAuth authorization is completed afterward).
5477
+ x-celigo-ui-override: 'Required by the connection form for oauth (subForms/httpOAuth.js: required true, iClient filter provider custom_oauth2, or googleserviceaccount / azureserviceprincipal for the GCS and ADLS Gen2 variants) and for awsIam (subForms/httpAwsIam.js: required true, filter provider awsIam). For oauth the API creates the connection without it and the authorization is completed afterward; for awsiam the API also rejects its absence (see the if/then rule on this schema).'
5478
+ x-celigo-ai-guidance:
5479
+ - |-
5480
+ For auth.type "awsiam" the referenced iClient must have provider "awsIam" (any other
5481
+ provider → 422 invalid_field "IClient provider must be awsIam for HTTP IAM Role
5482
+ authentication."), must carry awsIam.roleArn (missing → 422 missing_required_field
5483
+ "Expected field: awsIam.roleArn to be present."), and its role name must start with
5484
+ "celigo-http-adaptor-" (otherwise → 422 invalid_field_value). Omitting _iClientId
5485
+ altogether → 422 missing_required_field "Expected field: _iClientId to be present."
5486
+ - |-
5487
+ An Azure Data Lake Storage Gen2 connection (assistant "azuredatalakestoragegen2", or any
5488
+ http.baseURI containing "dfs.core.windows.net") must reference an iClient with provider
5489
+ "azureserviceprincipal"; any other provider fails the save with 422 invalid_field
5490
+ "IClient provider must be azureserviceprincipal for Azure Data Lake Storage Gen2
5491
+ connections."
5492
+ - |-
5493
+ The iClient must belong to the same account as the connection — an iClient id from
5494
+ another account fails with 422 invalid_ref "The referenced IClient must belong to the
5495
+ same user."
4596
5496
  _httpConnectorId:
4597
5497
  type: string
4598
5498
  format: objectId
4599
5499
  x-celigo-refModel: httpconnectors
4600
- description: ID of the HTTP connector template this connection is based on.
5500
+ description: |-
5501
+ HTTP connector (pre-built application template) this connection is linked to. Linking
5502
+ lets exports and imports on the connection pick endpoints from the connector's catalog and
5503
+ drives the `assistant` form in the UI. An id that does not resolve to an accessible
5504
+ connector is dropped from the saved document rather than rejected — read the response back
5505
+ to confirm the link took.
4601
5506
  examples:
4602
5507
  - 5d8f6a2b9c1e4f00112a3b4c
4603
5508
  _httpConnectorApiId:
4604
5509
  type: string
4605
5510
  format: objectId
4606
5511
  x-celigo-refModel: httpconnectorapis
4607
- description: ID of the HTTP connector API definition (an API within the referenced HTTP connector).
5512
+ description: |-
5513
+ API within the linked HTTP connector that this connection targets, for connectors that
5514
+ publish more than one API. Only meaningful together with `_httpConnectorId`; an id that is
5515
+ not one of that connector's APIs is dropped on save, not rejected.
4608
5516
  examples:
4609
5517
  - 5d8f6a2b9c1e4f00112a3b4d
4610
5518
  _httpConnectorVersionId:
4611
5519
  type: string
4612
5520
  format: objectId
4613
- description: ID of the HTTP connector version (a version within the referenced HTTP connector).
5521
+ description: |-
5522
+ Version entry of the linked HTTP connector (an item of the connector's `versions` array)
5523
+ whose endpoint definitions this connection uses. Only meaningful together with
5524
+ `_httpConnectorId`; an id that is not one of that connector's published versions is
5525
+ replaced by a published version of the connector on create and dropped on update, never
5526
+ rejected.
4614
5527
  examples:
4615
5528
  - 5d8f6a2b9c1e4f00112a3b4e
4616
5529
  isRest:
@@ -4636,6 +5549,20 @@ components:
4636
5549
  required:
4637
5550
  - marketplaceId
4638
5551
  - sellingRegion
5552
+ else:
5553
+ if:
5554
+ properties:
5555
+ auth:
5556
+ properties:
5557
+ type:
5558
+ const: awsiam
5559
+ required:
5560
+ - type
5561
+ required:
5562
+ - auth
5563
+ then:
5564
+ required:
5565
+ - _iClientId
4639
5566
  RDBMS:
4640
5567
  type: object
4641
5568
  description: |-
@@ -4838,7 +5765,7 @@ components:
4838
5765
  examples:
4839
5766
  - dedicated
4840
5767
  concurrencyLevel:
4841
- type: number
5768
+ type: integer
4842
5769
  description: |
4843
5770
  Maximum number of concurrent database connections.
4844
5771
  Set based on the database server's connection limit and available resources.
@@ -4847,7 +5774,7 @@ components:
4847
5774
  maximum: 50
4848
5775
  default: 5
4849
5776
  targetConcurrencyLevel:
4850
- type: number
5777
+ type: integer
4851
5778
  description: |
4852
5779
  Target concurrency level for auto-scaling. The system adjusts the number of
4853
5780
  concurrent connections between 1 and this value based on performance feedback.
@@ -5380,7 +6307,7 @@ components:
5380
6307
  examples:
5381
6308
  - admin
5382
6309
  concurrencyLevel:
5383
- type: number
6310
+ type: integer
5384
6311
  description: |
5385
6312
  Maximum number of concurrent MongoDB operations.
5386
6313
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
@@ -5388,7 +6315,7 @@ components:
5388
6315
  maximum: 50
5389
6316
  default: 5
5390
6317
  targetConcurrencyLevel:
5391
- type: number
6318
+ type: integer
5392
6319
  description: |
5393
6320
  Target concurrency level for auto-scaling. The system adjusts concurrency
5394
6321
  between 1 and this value based on rate limit feedback.
@@ -5941,7 +6868,7 @@ components:
5941
6868
  Required when signing or encryption is enabled (not NONE).
5942
6869
  Auto-generated self-signed certificates will be injected if not provided.
5943
6870
  concurrencyLevel:
5944
- type: number
6871
+ type: integer
5945
6872
  description: |-
5946
6873
  Maximum number of messages processed concurrently for this connection. The default of 5
5947
6874
  is safe for most partners. Values above the account's licensed maximum (25 standard, 50
@@ -5950,7 +6877,7 @@ components:
5950
6877
  maximum: 50
5951
6878
  default: 5
5952
6879
  targetConcurrencyLevel:
5953
- type: number
6880
+ type: integer
5954
6881
  description: |-
5955
6882
  Concurrency ceiling integrator.io scales up to when auto-recovering from rate-limit
5956
6883
  errors. Only applies when autoRecoverRateLimitErrors is true on the connection.
@@ -5990,7 +6917,7 @@ components:
5990
6917
  The system verifies the directory exists and is accessible.
5991
6918
  Example: "/data/integrations/incoming" or "C:\\Data\\Integrations".
5992
6919
  concurrencyLevel:
5993
- type: number
6920
+ type: integer
5994
6921
  description: |-
5995
6922
  Maximum number of files processed concurrently. Cannot exceed `targetConcurrencyLevel`; a higher
5996
6923
  value is silently clamped down to it. Values above the account's licensed maximum (25 standard,
@@ -5999,7 +6926,7 @@ components:
5999
6926
  maximum: 50
6000
6927
  default: 1
6001
6928
  targetConcurrencyLevel:
6002
- type: number
6929
+ type: integer
6003
6930
  description: |-
6004
6931
  Upper bound for auto-scaling. The agent scales concurrency between 1 and this value based on
6005
6932
  throughput, so it also caps `concurrencyLevel`. Values above the account's licensed maximum
@@ -6443,7 +7370,7 @@ components:
6443
7370
  examples:
6444
7371
  - wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
6445
7372
  concurrencyLevel:
6446
- type: number
7373
+ type: integer
6447
7374
  description: |-
6448
7375
  Maximum number of DynamoDB requests this connection runs at once.
6449
7376
 
@@ -6457,7 +7384,7 @@ components:
6457
7384
  Maximum number of concurrent DynamoDB operations.
6458
7385
  DynamoDB throughput is governed by table-level read/write capacity units.
6459
7386
  targetConcurrencyLevel:
6460
- type: number
7387
+ type: integer
6461
7388
  description: |-
6462
7389
  Concurrency ceiling for auto-scaling. The system adjusts the active concurrency between 1
6463
7390
  and this value based on rate-limit feedback. Only applied when `autoRecoverRateLimitErrors`
@@ -6617,7 +7544,7 @@ components:
6617
7544
  - name: ServerDataSource
6618
7545
  value: NetSuite2.com
6619
7546
  concurrencyLevel:
6620
- type: number
7547
+ type: integer
6621
7548
  description: |
6622
7549
  Maximum number of concurrent database connections.
6623
7550
  JDBC connections often run through a single Agent, so keep this value
@@ -6629,7 +7556,7 @@ components:
6629
7556
  examples:
6630
7557
  - 5
6631
7558
  targetConcurrencyLevel:
6632
- type: number
7559
+ type: integer
6633
7560
  description: |
6634
7561
  Target concurrency level for auto-scaling. The system adjusts the number of
6635
7562
  concurrent connections between 1 and this value based on performance feedback.
@@ -6925,7 +7852,7 @@ components:
6925
7852
  examples:
6926
7853
  - 566686c4d0b969657e7850ba
6927
7854
  concurrencyLevel:
6928
- type: number
7855
+ type: integer
6929
7856
  description: |
6930
7857
  Maximum number of concurrent operations through this wrapper connection.
6931
7858
  Values above the account's licensed maximum (25 standard, 50 with an Environments license) are silently clamped down.
@@ -6933,7 +7860,7 @@ components:
6933
7860
  maximum: 50
6934
7861
  default: 5
6935
7862
  targetConcurrencyLevel:
6936
- type: number
7863
+ type: integer
6937
7864
  description: |
6938
7865
  Target concurrency level for auto-scaling. The system adjusts concurrency
6939
7866
  between 1 and this value based on performance feedback.
@@ -6980,7 +7907,11 @@ components:
6980
7907
  suiteAppInstalled:
6981
7908
  type: boolean
6982
7909
  readOnly: true
6983
- description: When true, the Celigo SuiteApp bundle is installed in the connected NetSuite account. Detected by the server when the connection authenticates to NetSuite.
7910
+ description: |-
7911
+ When true, the Celigo integrator.io SuiteApp (SuiteScript 2.x) was detected in
7912
+ the connected NetSuite account the last time the connection authenticated. It
7913
+ says nothing about the legacy Celigo bundle; for a live check of both, use
7914
+ `GET /v1/connections/{_id}/distributedApps`.
6984
7915
  salesforce:
6985
7916
  description: Present when `type` is `salesforce`.
6986
7917
  allOf:
@@ -7306,9 +8237,20 @@ components:
7306
8237
  x-celigo-refModel: connections
7307
8238
  description: |-
7308
8239
  Reference to another connection to share concurrency limits with. When set, this
7309
- connection's traffic counts against the referenced connection's limit instead of its own.
8240
+ connection's traffic counts against the referenced connection's limit instead of its own,
8241
+ and its own concurrency and auto-recovery settings have no effect. One level only: the
8242
+ referenced connection may not itself borrow, and a connection that others borrow from
8243
+ cannot start borrowing.
7310
8244
  examples:
7311
8245
  - 615dfa0742763671275b70ab
8246
+ autoRecoverRateLimitErrors:
8247
+ type: boolean
8248
+ default: true
8249
+ description: |-
8250
+ When true, rate-limit errors from the target system trigger automatic recovery — concurrency
8251
+ drops to 1 and climbs back toward the adaptor block's `targetConcurrencyLevel`, which is the
8252
+ throughput lever while this is on. Turning it on copies the current `concurrencyLevel` into
8253
+ the target; turning it off unsets the target and leaves `concurrencyLevel` at its current value.
7312
8254
  __integrationIds:
7313
8255
  type: array
7314
8256
  maxItems: 100
@@ -7335,6 +8277,34 @@ components:
7335
8277
  __failedIntegrationRegistrations with code not_allowed.
7336
8278
  examples:
7337
8279
  - - 6a55be91d16ee8270022893e
8280
+ endUserProvidedFields:
8281
+ type:
8282
+ - array
8283
+ - 'null'
8284
+ items:
8285
+ type: string
8286
+ description: |-
8287
+ Dot-paths of this connection's fields (for example `http.encrypted.apiKey` or
8288
+ `rdbms.user`) that each MCP end user must supply on their own `mcpChild` copy instead of
8289
+ inheriting the parent's value. Set it on the parent connection an MCP server collects
8290
+ end-user credentials for; omit it everywhere else. Omitting it (or sending `[]`) on
8291
+ `PUT` keeps the stored paths; send `null` to clear them. By the platform contract,
8292
+ changing the stored list — adding, removing, or clearing paths — invalidates the
8293
+ `mcpChild` connections end users already hold against this parent, so each of them
8294
+ sets up again through the MCP setup page before tools that use it run for them.
8295
+ x-celigo-ai-guidance:
8296
+ - |-
8297
+ List only the credential and tenant fields that differ per end user, never a path the
8298
+ account owns: `type`, `_agentId`, `wrapper._stackId`, or any `<adaptor>._iClientId`
8299
+ (e.g. `http._iClientId`) fails the save with 422
8300
+ `mcp_end_user_provided_field_not_allowed`.
8301
+ - |-
8302
+ This is the only MCP end-user field writable through `/v1/connections`; the child
8303
+ connections themselves are created by the end-user setup page, and `connectionRole:
8304
+ mcpChild` in a `POST` or `PUT` body fails with 422 `mcp_child_generic_route_not_allowed`.
8305
+ examples:
8306
+ - - http.encrypted.apiKey
8307
+ - http.unencrypted.accountId
7338
8308
  debugDate:
7339
8309
  type: string
7340
8310
  format: date-time
@@ -8055,6 +9025,13 @@ components:
8055
9025
  description: Display name of the dependent resource.
8056
9026
  examples:
8057
9027
  - Import Orders to NetSuite
9028
+ type:
9029
+ type: string
9030
+ description: |-
9031
+ Sub-type of the dependent resource when its collection distinguishes one, such as
9032
+ `stream` for a listener export. Only present for resource types that carry a `type`.
9033
+ examples:
9034
+ - stream
8058
9035
  paths:
8059
9036
  type: array
8060
9037
  description: |-
@@ -8117,6 +9094,70 @@ components:
8117
9094
  dependencyIds:
8118
9095
  export:
8119
9096
  - 64ff4b21612a134bd2f45534
9097
+ DistributedAppStatus:
9098
+ type: object
9099
+ required:
9100
+ - success
9101
+ properties:
9102
+ success:
9103
+ type: boolean
9104
+ description: When true, the component is installed in the connected NetSuite account. The remaining fields are present only when false.
9105
+ examples:
9106
+ - true
9107
+ statusCode:
9108
+ type: integer
9109
+ description: HTTP status NetSuite returned for the failed check — 404 when the component's RESTlet is not installed.
9110
+ examples:
9111
+ - 404
9112
+ resBody:
9113
+ type: string
9114
+ description: NetSuite's error text for the failed check.
9115
+ examples:
9116
+ - That Suitelet is invalid, disabled, or no longer exists.
9117
+ URL:
9118
+ type: string
9119
+ format: uri
9120
+ description: |-
9121
+ Install link for the component. Absent when `success` is true; the integrator.io UI
9122
+ reads it to render its install prompt when the component is missing.
9123
+ examples:
9124
+ - https://tstdrv1234567.app.netsuite.com/suiteapp/ui/marketplace.nl?whence=#/app?id=com.celigo.integratorio
9125
+ DistributedAdaptorStatus:
9126
+ type: object
9127
+ required:
9128
+ - success
9129
+ description: Result of pinging the Celigo distributed adaptor installed in the connected account.
9130
+ properties:
9131
+ success:
9132
+ type: boolean
9133
+ description: |-
9134
+ When true, the Celigo distributed adaptor (the integrator.io bundle or SuiteApp in
9135
+ NetSuite, the Celigo managed package in Salesforce) answered the ping and the
9136
+ connection can run distributed exports and imports. The remaining fields are present
9137
+ only when false.
9138
+ examples:
9139
+ - true
9140
+ statusCode:
9141
+ type: integer
9142
+ description: |-
9143
+ HTTP status the remote system returned for the failed ping — for example 404 when
9144
+ NetSuite reports the Celigo RESTlet is not installed. Absent when the failure did not
9145
+ reach the remote system (for example, a connection that is offline).
9146
+ examples:
9147
+ - 404
9148
+ resBody:
9149
+ type: string
9150
+ description: Remote system's error text, or the platform's reason when the ping was not attempted.
9151
+ examples:
9152
+ - That Suitelet is invalid, disabled, or no longer exists.
9153
+ bundleURL:
9154
+ type: string
9155
+ format: uri
9156
+ description: |-
9157
+ Install link for the missing component in the connected account — the NetSuite bundle
9158
+ details page, or the Salesforce package installer — for the UI's install prompt.
9159
+ examples:
9160
+ - https://tstdrv1234567.app.netsuite.com/app/bundler/bundledetails.nl?sourcecompanyid=TSTDRV916910&domain=PRODUCTION&config=F&id=20038
8120
9161
  SObjectType:
8121
9162
  type: object
8122
9163
  description: |
@@ -8634,9 +9675,10 @@ components:
8634
9675
  errors:
8635
9676
  - code: invalid_request
8636
9677
  message: The request body failed validation.
8637
- 422-unprocessable-entity:
8638
- description: |
8639
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
9678
+ 422-dependency-conflict:
9679
+ description: |-
9680
+ The resource has dependents that must be deleted first. Each entry
9681
+ in the `errors` array names one blocking resource.
8640
9682
  content:
8641
9683
  application/json:
8642
9684
  schema:
@@ -8645,12 +9687,11 @@ components:
8645
9687
  default:
8646
9688
  value:
8647
9689
  errors:
8648
- - code: unprocessable_entity
8649
- message: The request could not be processed due to a semantic error.
8650
- 422-dependency-conflict:
8651
- description: |-
8652
- The resource has dependents that must be deleted first. Each entry
8653
- in the `errors` array names one blocking resource.
9690
+ - code: dependencies_not_deleted
9691
+ message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
9692
+ 422-unprocessable-entity:
9693
+ description: |
9694
+ Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
8654
9695
  content:
8655
9696
  application/json:
8656
9697
  schema:
@@ -8659,7 +9700,7 @@ components:
8659
9700
  default:
8660
9701
  value:
8661
9702
  errors:
8662
- - code: dependencies_not_deleted
8663
- message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
9703
+ - code: unprocessable_entity
9704
+ message: The request could not be processed due to a semantic error.
8664
9705
  x-enable-proxy: true
8665
9706
  x-internal: false