@celigo/api-specs 0.2.266 → 0.2.268

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.
package/dist/api.yml CHANGED
@@ -89,6 +89,61 @@ paths:
89
89
  description: Filter by the `disabled` flag.
90
90
  schema:
91
91
  type: boolean
92
+ - name: method
93
+ in: query
94
+ description: |-
95
+ Filter to builder-mode APIs whose `builder.request.method` is this
96
+ method. Matching is case-insensitive and ignores surrounding whitespace;
97
+ an empty value is ignored. Any other value, or the parameter repeated,
98
+ fails with 400 `invalid_query_param`.
99
+ schema:
100
+ type: string
101
+ enum:
102
+ - GET
103
+ - POST
104
+ - PUT
105
+ - PATCH
106
+ - DELETE
107
+ x-enumDescriptions:
108
+ GET: APIs whose request method is GET.
109
+ POST: APIs whose request method is POST.
110
+ PUT: APIs whose request method is PUT.
111
+ PATCH: APIs whose request method is PATCH.
112
+ DELETE: APIs whose request method is DELETE.
113
+ - name: sort_by
114
+ in: query
115
+ description: |-
116
+ Sort key for the results; defaults to `name`. Any other value fails with
117
+ 400 `invalid_query_param`. Sorting by `builder.request.relativeURI`
118
+ together with an `exclude` that names `builder` or
119
+ `builder.request` fails with 400 `invalid_query_param` on `exclude`,
120
+ because the page cursor is read from that field.
121
+ schema:
122
+ type: string
123
+ enum:
124
+ - name
125
+ - lastModified
126
+ - builder.request.relativeURI
127
+ x-enumDescriptions:
128
+ name: API name, ascending by default.
129
+ lastModified: Last modification time, most recent first by default.
130
+ builder.request.relativeURI: Builder request path, ascending by default; script-mode APIs have no path and sort before every builder API in ascending order.
131
+ - name: order
132
+ in: query
133
+ description: |-
134
+ Direction of the `sort_by` key. Omit it, or send it empty, to keep that
135
+ key's default direction. Matching is case-insensitive and ignores
136
+ surrounding whitespace; any other value, or the parameter repeated,
137
+ fails with 400 `invalid_query_param`. The `after` cursor follows the
138
+ chosen direction, so keep the same `order` on every page.
139
+ schema:
140
+ type: string
141
+ enum:
142
+ - asc
143
+ - desc
144
+ x-enumDescriptions:
145
+ asc: Ascending order of the sort key.
146
+ desc: Descending order of the sort key.
92
147
  - $ref: '#/components/parameters/After'
93
148
  - $ref: '#/components/parameters/Include'
94
149
  - $ref: '#/components/parameters/Exclude'
@@ -912,7 +967,7 @@ paths:
912
967
  request and response of a single call.
913
968
 
914
969
  Run history exists only for builder-mode APIs — a script-mode API id returns
915
- 404 `invalid_ref` ("api not found."), the same as an unknown id.
970
+ 422 `invalid_api_type`; an unknown id returns 404.
916
971
 
917
972
  Results are cursor-paginated (`next`/`prev`). When `time_gte` / `time_lte`
918
973
  are omitted, only the last 5 minutes are returned — pass an explicit window
@@ -1085,6 +1140,8 @@ paths:
1085
1140
  $ref: '#/components/responses/403-forbidden'
1086
1141
  '404':
1087
1142
  $ref: '#/components/responses/404-not-found'
1143
+ '422':
1144
+ $ref: '#/components/responses/422-builder-only'
1088
1145
  delete:
1089
1146
  x-internal: false
1090
1147
  operationId: deleteApiRequestLogs
@@ -1095,7 +1152,7 @@ paths:
1095
1152
  Queues asynchronous deletion of stored request log payloads for the API
1096
1153
  within `[startedAt, endAt]`. Returns `202 Accepted`; cleanup runs in the
1097
1154
  background. Requires manage access for log deletion — monitor-level users
1098
- receive `403`.
1155
+ receive `403`. A script-mode API returns 422 `invalid_api_type` and queues nothing.
1099
1156
  parameters:
1100
1157
  - name: _id
1101
1158
  in: path
@@ -1136,6 +1193,8 @@ paths:
1136
1193
  $ref: '#/components/responses/403-forbidden'
1137
1194
  '404':
1138
1195
  $ref: '#/components/responses/404-not-found'
1196
+ '422':
1197
+ $ref: '#/components/responses/422-builder-only'
1139
1198
  /v1/apis/{_id}/requests/{executionId}:
1140
1199
  get:
1141
1200
  x-internal: false
@@ -1153,8 +1212,8 @@ paths:
1153
1212
  fetched separately with the log-data query endpoint.
1154
1213
 
1155
1214
  An unknown `executionId` returns `200` with an empty `steps` array; a
1156
- malformed one returns `422` (`invalid_execution_id`). An unknown or
1157
- script-mode API `_id` returns `404`.
1215
+ malformed one returns `422` (`invalid_execution_id`). An unknown API `_id`
1216
+ returns `404`; a script-mode API returns `422` (`invalid_api_type`).
1158
1217
  parameters:
1159
1218
  - name: _id
1160
1219
  in: path
@@ -1216,7 +1275,7 @@ paths:
1216
1275
  '404':
1217
1276
  $ref: '#/components/responses/404-not-found'
1218
1277
  '422':
1219
- $ref: '#/components/responses/422-unprocessable-entity'
1278
+ $ref: '#/components/responses/422-execution-log'
1220
1279
  /v1/apis/{_id}/requests/{executionId}/{_expOrImpId}/logs/{parentRecordId}/children:
1221
1280
  get:
1222
1281
  x-internal: false
@@ -1351,7 +1410,7 @@ paths:
1351
1410
  '404':
1352
1411
  $ref: '#/components/responses/404-not-found'
1353
1412
  '422':
1354
- $ref: '#/components/responses/422-unprocessable-entity'
1413
+ $ref: '#/components/responses/422-execution-log'
1355
1414
  /v1/apis/{_id}/requests/{executionId}/logs/data/query:
1356
1415
  post:
1357
1416
  x-internal: false
@@ -1427,7 +1486,7 @@ paths:
1427
1486
  '404':
1428
1487
  $ref: '#/components/responses/404-not-found'
1429
1488
  '422':
1430
- $ref: '#/components/responses/422-unprocessable-entity'
1489
+ $ref: '#/components/responses/422-execution-log'
1431
1490
  /v1/apis/{_id}/requests/{executionId}/logs/signedURL:
1432
1491
  get:
1433
1492
  x-internal: false
@@ -1492,7 +1551,7 @@ paths:
1492
1551
  '404':
1493
1552
  $ref: '#/components/responses/404-not-found'
1494
1553
  '422':
1495
- $ref: '#/components/responses/422-unprocessable-entity'
1554
+ $ref: '#/components/responses/422-execution-log'
1496
1555
  /v1/apis/{_id}/dependencies:
1497
1556
  get:
1498
1557
  x-internal: false
@@ -1705,11 +1764,11 @@ paths:
1705
1764
  response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
1706
1765
  `mockRequest.headers` is not validated — a malformed value does not fail the run.
1707
1766
 
1708
- When `isSchemaValidationActive` is true, a request that fails `bodySchema` or a
1709
- required query parameter returns `400` `errors[]`
1767
+ When `isSchemaValidationActive` is true, a test request that fails the request `bodySchema`
1768
+ or omits a required query parameter is refused with `400` `errors[]`
1710
1769
  (`request_body_schema_validation_failed`, `request_query_param_required`, or
1711
- `body_schema_not_compilable`). A response that fails its `bodySchema` stays
1712
- `200`. Those errors are on the response step, and `flowJob.numError` counts them.
1770
+ `body_schema_not_compilable` for a request schema that cannot be compiled) and no job tree.
1771
+ A response that fails its `bodySchema` stays `200` with `flowJob.numError` 0.
1713
1772
  parameters:
1714
1773
  - name: _id
1715
1774
  in: path
@@ -1728,16 +1787,17 @@ paths:
1728
1787
  schema:
1729
1788
  type: object
1730
1789
  description: |-
1731
- Optional test request for the run. The saved
1732
- `builder.request.mockRequest` is never replayed: when the body is
1733
- empty, omitted, or has no `mockRequest`, the first step receives
1734
- an empty record.
1790
+ Optional test request for the run. When the body is empty, omitted,
1791
+ or has no `mockRequest` (or `mockRequest` is null), the run uses the
1792
+ API's saved `builder.request.mockRequest`; with none saved, the first
1793
+ step receives an empty record.
1735
1794
  properties:
1736
1795
  mockRequest:
1737
1796
  type: object
1738
1797
  description: |-
1739
- The simulated request for this run. Send the saved
1740
- `builder.request.mockRequest` here to test with it.
1798
+ The simulated request for this run, used instead of the saved
1799
+ `builder.request.mockRequest`. Send `{}` to start from an empty
1800
+ record even when a sample request is saved.
1741
1801
  properties:
1742
1802
  body:
1743
1803
  type: object
@@ -1757,11 +1817,15 @@ paths:
1757
1817
  description: Request headers for the simulated call.
1758
1818
  additionalProperties: true
1759
1819
  x-celigo-ai-guidance:
1760
- - Send test input under the mockRequest key ({body, pathParams, queryParams, headers}). A run without mockRequest starts from an empty record; the saved builder.request.mockRequest is not replayed, so send it explicitly to test with it.
1820
+ - 'Send test input under the mockRequest key ({body, pathParams, queryParams, headers}). Omit mockRequest (or send null) to replay the saved builder.request.mockRequest; any mockRequest you send replaces the saved one whole, so {"mockRequest": {"queryParams": {...}}} runs with an empty body.'
1761
1821
  examples:
1762
1822
  default:
1763
- summary: Run without test input (the first step gets an empty record)
1823
+ summary: Run with the saved sample request (an empty record when none is saved)
1764
1824
  value: {}
1825
+ emptyRecord:
1826
+ summary: Run from an empty record even when a sample request is saved
1827
+ value:
1828
+ mockRequest: {}
1765
1829
  withMockRequest:
1766
1830
  summary: Run with an explicit test request (only the body reaches the first step)
1767
1831
  value:
@@ -5741,8 +5805,14 @@ components:
5741
5805
  manual: Last edited on the Manual tab.
5742
5806
  json: Last edited on the Schema tab. Set this when creating the API from Postman or an agent.
5743
5807
  description: |-
5744
- Editor tab that last saved `bodySchema`. Does not turn validation on.
5745
- Set to `json` when creating or updating the API from Postman or an agent.
5808
+ Editor tab that last saved `bodySchema`. Set to `json` when creating or updating the API
5809
+ from Postman or an agent. When set, the save validates `bodySchema` as an OpenAPI 3.0.3
5810
+ Schema Object with `type: object` at the root and fails with 422 `invalid_body_schema`
5811
+ ("Invalid builder.request.bodySchema - /type must be string"), `unsupported_schema_keyword`
5812
+ ("builder.request.bodySchema: keyword 'patternProperties' is not supported in API body
5813
+ schemas."), or `invalid_body_schema_root_type` ("builder.request.bodySchema must have type
5814
+ object at the root."). It does not turn call-time validation on — that is
5815
+ `isSchemaValidationActive`. Omit it to keep a legacy `bodySchema` unvalidated.
5746
5816
  examples:
5747
5817
  - json
5748
5818
  x-celigo-ai-guidance:
@@ -5804,8 +5874,8 @@ components:
5804
5874
  mockRequest:
5805
5875
  type: object
5806
5876
  description: |-
5807
- Sample request saved with the API for testing. `POST /v1/apis/{_id}/test/run` doesn't
5808
- read it; send it as that call's `mockRequest`. A test run still makes outside calls: a
5877
+ Sample request saved with the API for testing. `POST /v1/apis/{_id}/test/run` uses it
5878
+ when that call sends no `mockRequest`. A test run still makes outside calls: a
5809
5879
  lookup with no saved `mockOutput` calls its source live, and the run saves that response
5810
5880
  as the lookup's `mockOutput`, which later test runs answer from.
5811
5881
  properties:
@@ -5824,10 +5894,9 @@ components:
5824
5894
  additionalProperties: false
5825
5895
  x-celigo-ai-guidance:
5826
5896
  - |-
5827
- Saving a mockRequest doesn't make test runs use it: a test run without its own
5828
- mockRequest starts from an empty record. A test run isn't free of outside calls
5829
- either: a lookup without a saved mockOutput runs live (and the run then saves its
5830
- response as that mockOutput), and only imports are kept from sending (each returns
5897
+ A test run isn't free of outside calls: a lookup without a saved mockOutput runs
5898
+ live (and the run then saves its response as that mockOutput), and only imports
5899
+ are kept from sending (each returns
5831
5900
  its mockResponse or a placeholder). Can include body, headers, pathParams, and
5832
5901
  queryParams; only the body reaches the record the steps see.
5833
5902
  transform:
@@ -6586,8 +6655,15 @@ components:
6586
6655
  manual: Last edited on the Manual tab.
6587
6656
  json: Last edited on the Schema tab. Set this when creating the API from Postman or an agent.
6588
6657
  description: |-
6589
- Editor tab that last saved this response's `bodySchema`. Does not turn validation on.
6590
- Set to `json` when creating or updating the API from Postman or an agent.
6658
+ Editor tab that last saved this response's `bodySchema`. Set to `json` when creating or
6659
+ updating the API from Postman or an agent. When set, the save validates this response's
6660
+ `bodySchema` as an OpenAPI 3.0.3 Schema Object with `type: object` or `array` at the root
6661
+ and fails with 422 `invalid_body_schema` ("Invalid builder.responses[0].bodySchema - /type
6662
+ must be string"), `unsupported_schema_keyword` ("builder.responses[0].bodySchema: keyword
6663
+ 'patternProperties' is not supported in API body schemas."), or
6664
+ `invalid_body_schema_root_type` ("builder.responses[0].bodySchema must have type object or
6665
+ array at the root."). It does not turn call-time validation on — that is
6666
+ `isSchemaValidationActive`. Omit it to keep a legacy `bodySchema` unvalidated.
6591
6667
  examples:
6592
6668
  - json
6593
6669
  x-celigo-ai-guidance:
@@ -6979,10 +7055,21 @@ components:
6979
7055
  isSchemaValidationActive:
6980
7056
  type: boolean
6981
7057
  description: |-
6982
- When true, runtime validates the request and response body schemas
6983
- and required query parameters. Absent means off.
7058
+ When true, every call is checked before any step runs: a request that fails the
7059
+ request's `bodySchema` (methods other than GET; a missing body counts as empty) or
7060
+ omits a `queryParams[].required` parameter is refused with 400 and one error per finding
7061
+ — `request_body_schema_validation_failed`, whose `path`, `keyword`, and `params` name
7062
+ the failing rule, or `request_query_param_required` ("Query parameter '<key>' is
7063
+ required and must not be empty.") — and a response that fails its own `bodySchema` is
7064
+ replaced by 500 `response_body_schema_validation_failed` with no field detail (a 204
7065
+ response is not checked). A request `bodySchema` that cannot be compiled, such as one
7066
+ with a `$ref` to a missing pointer, fails every call with 501 `body_schema_not_compilable`
7067
+ ("The body schema at builder.request.bodySchema could not be compiled.").
7068
+ `POST /v1/apis/{_id}/test/run` applies the request checks and answers 400 with the same
7069
+ codes; a response that fails its schema stays 200 there. Absent means off; also settable
7070
+ through `PATCH /v1/apis/{_id}` at `/isSchemaValidationActive`.
6984
7071
  examples:
6985
- - false
7072
+ - true
6986
7073
  failOnOfflineConnection:
6987
7074
  type: boolean
6988
7075
  description: |-
@@ -8376,6 +8463,16 @@ components:
8376
8463
  cert and key together for mTLS, ca for a private CA, and passphrase only when the private
8377
8464
  key is encrypted; cert/key and ca can be combined.
8378
8465
  properties:
8466
+ enabled:
8467
+ type: boolean
8468
+ description: |-
8469
+ When true, a `jdbc` connection uses SSL/TLS (the connection form's **Use SSL**
8470
+ checkbox). Written by `jdbc.useSSL`, which takes precedence over a value sent here, and
8471
+ read directly when `jdbc.useSSL` is not a boolean, so a GET body sent back as a PUT keeps
8472
+ the setting. `false` is stored only together with `cert`; otherwise it, like an omitted
8473
+ value, clears the stored flag. Ignored on other connection types.
8474
+ examples:
8475
+ - true
8379
8476
  ca:
8380
8477
  type: string
8381
8478
  description: |-
@@ -8830,7 +8927,7 @@ components:
8830
8927
  - |-
8831
8928
  For placeholder/dummy NetSuite connections, use authType "token-auto" with just the account id —
8832
8929
  integrator.io manages the OAuth client wiring on the backend, so no placeholder tokens are needed.
8833
- x-celigo-ui-override: 'authType is required by the connection form (the API itself accepts a connection without it). The per-auth-type requireds likewise mirror the form: basic requires email and password; token requires account, environment, tokenId, and tokenSecret; token-auto requires account. The API enforces none of these (each was live-verified to POST 201 when omitted); they are encoded in the connection request schema''s type=netsuite branch (not in this file, which jdbc connections also embed for NetSuite JDBC auth) so builders produce connectable connections.'
8930
+ x-celigo-ui-override: 'authType is required by the connection form (the API itself accepts a connection without it). The per-auth-type requireds likewise mirror the form: basic requires email and password; token requires account, environment, tokenId, and tokenSecret; token-auto and oauth require account (the form''s netsuite.token.auto.account, required:true, saved as netsuite.account). The API enforces none of these (each was live-verified to POST 201 when omitted); they are encoded in the connection request schema''s type=netsuite branch (not in this file, which jdbc connections also embed for NetSuite JDBC auth) so builders produce connectable connections.'
8834
8931
  properties:
8835
8932
  authType:
8836
8933
  type: string
@@ -8839,12 +8936,15 @@ components:
8839
8936
  enum:
8840
8937
  - token
8841
8938
  - token-auto
8939
+ - oauth
8842
8940
  x-enumDescriptions:
8843
8941
  token: Manual Token-Based Authentication (TBA) using tokenId and tokenSecret from a NetSuite integration record.
8844
8942
  token-auto: Automatic token management via Celigo's iClient; requires only the NetSuite account ID.
8943
+ oauth: OAuth 2.0 machine-to-machine (client credentials signed with a certificate); needs the NetSuite account ID. The server fills `oauth2`; values sent for `oauth2`, `entityId`, and `roleId` are ignored.
8845
8944
  description: |-
8846
8945
  Authentication method for the NetSuite connection. token-auto delegates the token
8847
- lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair.
8946
+ lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair; oauth
8947
+ uses a certificate-signed client credentials grant that NetSuite must authorize.
8848
8948
  x-celigo-ai-guidance:
8849
8949
  - |-
8850
8950
  Default to "token-auto" for new connections, including placeholders (only the account id is needed).
@@ -8857,7 +8957,7 @@ components:
8857
8957
  examples:
8858
8958
  - TSTDRV1234567
8859
8959
  description: |-
8860
- NetSuite account ID (automatically uppercased), required for token and token-auto authentication.
8960
+ NetSuite account ID (automatically uppercased), required for token, token-auto, and oauth authentication.
8861
8961
  Found in NetSuite under Setup > Company > Company Information. Non-production accounts
8862
8962
  carry an environment suffix (e.g. `123456_SB1`); production and beta use the bare id.
8863
8963
  x-uppercase: true
@@ -9076,7 +9176,40 @@ components:
9076
9176
  App's record (set by the app's install) or the account's own; access tokens are then created
9077
9177
  for that record's Application. Absent on a standalone connection, which signs with Celigo's
9078
9178
  `integrator.io` record (no client ID or secret is entered anywhere) and whose access tokens
9079
- must be created for Application `integrator.io`.
9179
+ must be created for Application `integrator.io`. With `authType` `oauth` it is optional;
9180
+ when set, the iClient must carry `oauth2.clientId` and `oauth2.clientSecret`, otherwise
9181
+ the save fails with 422 `missing_required_field` on `netsuite._iClientId` ("Expected
9182
+ field: oauth2.clientId/clientSecret to be present.").
9183
+ oauth2:
9184
+ type: object
9185
+ readOnly: true
9186
+ description: |-
9187
+ Machine-to-machine state of an `oauth` connection, written by the server on save and
9188
+ ignored on write; absent for other auth types.
9189
+ properties:
9190
+ grantType:
9191
+ type: string
9192
+ enum:
9193
+ - clientcredentials
9194
+ x-enumDescriptions:
9195
+ clientcredentials: OAuth 2.0 client credentials grant signed with a certificate.
9196
+ description: Grant used to obtain tokens; always `clientcredentials`.
9197
+ examples:
9198
+ - clientcredentials
9199
+ scope:
9200
+ type: array
9201
+ description: Scopes requested for the token; always `restlets` and `rest_webservices`.
9202
+ items:
9203
+ type: string
9204
+ enum:
9205
+ - restlets
9206
+ - rest_webservices
9207
+ x-enumDescriptions:
9208
+ restlets: NetSuite RESTlet access.
9209
+ rest_webservices: NetSuite REST web services access.
9210
+ examples:
9211
+ - - restlets
9212
+ - rest_webservices
9080
9213
  Salesforce:
9081
9214
  type: object
9082
9215
  description: |-
@@ -9860,6 +9993,25 @@ components:
9860
9993
  writeOnly: true
9861
9994
  examples:
9862
9995
  - dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
9996
+ clientRegistration:
9997
+ type: string
9998
+ enum:
9999
+ - automatic
10000
+ - preregistered
10001
+ x-enumDescriptions:
10002
+ automatic: integrator.io registers itself with the MCP server's authorization server; no iClient is used.
10003
+ preregistered: The OAuth client is the iClient referenced by the connection's `_iClientId`.
10004
+ description: |-
10005
+ How the OAuth client is obtained; unset behaves as `preregistered`. With `automatic` the
10006
+ grant is always the authorization code flow (`grantType` is stored as `authorizecode`),
10007
+ and client-sent `grantType`, `authURI`, `tokenURI`, `scope`, and `scopeDelimiter` are
10008
+ dropped because the server discovers them. `automatic` is allowed only on an `mcp`
10009
+ connection with no `mcp.http._iClientId`: on an `http` connection, or an MCP connection
10010
+ that also sends an iClient, the save fails with 422 `mcp_client_registration_conflict`
10011
+ ("Automatic client registration is only supported for standalone MCP connections without
10012
+ an OAuth 2.0 client."). An update that omits it keeps the stored mode.
10013
+ examples:
10014
+ - automatic
9863
10015
  if:
9864
10016
  properties:
9865
10017
  grantType:
@@ -11468,6 +11620,7 @@ components:
11468
11620
  - redshift
11469
11621
  - mariadb
11470
11622
  - azuresynapse
11623
+ - fabric
11471
11624
  x-enumDescriptions:
11472
11625
  mysql: MySQL database (default port 3306).
11473
11626
  postgresql: PostgreSQL database (default port 5432).
@@ -11478,6 +11631,7 @@ components:
11478
11631
  redshift: Amazon Redshift — provisioned clusters or Redshift Serverless; authenticates with static access keys or an AWS IAM role iClient (redshift.authType).
11479
11632
  mariadb: MariaDB database (default port 3306).
11480
11633
  azuresynapse: Azure Synapse Analytics (default port 1433).
11634
+ fabric: Microsoft Fabric Warehouse; signs in with the service principal iClient in `_iClientId` and requires `fabric.workspaceId`; `host` is the Warehouse SQL endpoint and `database` the Warehouse name.
11481
11635
  description: |-
11482
11636
  The specific relational database system to connect to. Determines the SQL dialect,
11483
11637
  connection driver, default port, and which additional sub-fields are required.
@@ -11712,6 +11866,174 @@ components:
11712
11866
  SQL Server connections only; the Azure Synapse form's picker lists client-secret
11713
11867
  iClients. The API accepts either on either type (live-verified 201), so follow the
11714
11868
  form: bind a certificate iClient to mssql connections only.
11869
+ fabric:
11870
+ type: object
11871
+ description: |-
11872
+ Microsoft Fabric Warehouse configuration. Read when `type` is `fabric`; on any other
11873
+ type the object is dropped on save and absent from the response. The connection signs in
11874
+ as the `azureserviceprincipal` iClient referenced by `_iClientId`, so `version`,
11875
+ `instanceName`, `user`, and `password` do not apply: sending any of them fails with 422
11876
+ `invalid_field_value` ("This field does not apply to Microsoft Fabric connections.").
11877
+ properties:
11878
+ workspaceId:
11879
+ type: string
11880
+ pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
11881
+ description: |-
11882
+ Fabric workspace GUID from the Fabric portal URL; it is also the OneLake file system
11883
+ name. A value that is not a GUID fails with 422 `invalid_field_value` ("Enter the
11884
+ workspace GUID from the Fabric portal URL."); omitting it fails with 422
11885
+ `missing_required_field`.
11886
+ examples:
11887
+ - 3f2b6c1e-8a4d-4e7b-9c0a-1d2e3f4a5b6c
11888
+ authType:
11889
+ type: string
11890
+ enum:
11891
+ - azure-service-principal
11892
+ x-enumDescriptions:
11893
+ azure-service-principal: Microsoft Entra service principal held in the `azureserviceprincipal` iClient referenced by `_iClientId`.
11894
+ default: azure-service-principal
11895
+ description: |-
11896
+ Authentication mode. Service principal is the only mode, so the server fills it in
11897
+ when the request omits it and returns it on every Fabric connection.
11898
+ examples:
11899
+ - azure-service-principal
11900
+ staging:
11901
+ type: object
11902
+ description: |-
11903
+ Where bulk loads stage files before `COPY INTO`. A PUT replaces the whole object;
11904
+ omitted keys are cleared. Present when set.
11905
+ properties:
11906
+ strategy:
11907
+ type: string
11908
+ enum:
11909
+ - none
11910
+ - onelake
11911
+ - adlsgen2
11912
+ x-enumDescriptions:
11913
+ none: No staging; loads run without an intermediate file store.
11914
+ onelake: Stage in the Files area of the Lakehouse named by `onelake.lakehouse`.
11915
+ adlsgen2: Reserved for ADLS Gen2 staging; accepted on save without further fields.
11916
+ description: |-
11917
+ Staging strategy. Omitted behaves as `none`. `onelake` requires
11918
+ `onelake.lakehouse` (422 `missing_required_field` otherwise).
11919
+ examples:
11920
+ - onelake
11921
+ folder:
11922
+ type: string
11923
+ maxLength: 512
11924
+ pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$
11925
+ description: |-
11926
+ Single folder name under the Lakehouse `Files/` root. Letters, digits, hyphens,
11927
+ underscores and dots only, starting with a letter or digit and never containing
11928
+ `..`; any other value fails with 422 `invalid_field_value`, and a longer value
11929
+ with 422 `size_limit_exceeded`. Stored with any `strategy`, including `none`.
11930
+ examples:
11931
+ - celigo-staging
11932
+ onelake:
11933
+ type: object
11934
+ description: OneLake staging target, used when `strategy` is `onelake`.
11935
+ properties:
11936
+ lakehouse:
11937
+ type: string
11938
+ maxLength: 512
11939
+ description: |-
11940
+ Display name of the Lakehouse to stage in; resolved to its item id at run
11941
+ time. Required (422 `missing_required_field`) when `strategy` is `onelake`.
11942
+ examples:
11943
+ - StagingLakehouse
11944
+ azuresynapse:
11945
+ type: object
11946
+ description: |-
11947
+ Azure Synapse settings beyond the shared `mssql` sub-object. Read when `type` is
11948
+ `azuresynapse`; on any other type the object is dropped on save and absent from the
11949
+ response.
11950
+ properties:
11951
+ staging:
11952
+ type: object
11953
+ description: |-
11954
+ ADLS Gen2 staging for bulk loads. `folder` and `adlsGen2` require `strategy`
11955
+ `adlsgen2`, and `adlsgen2` requires `mssql.authType` `azure-service-principal`
11956
+ (with its `_iClientId`); either mismatch fails with 422 `invalid_field_value`
11957
+ ("staging.folder and adlsGen2 fields require staging.strategy to be adlsgen2" /
11958
+ "ADLS Gen2 staging requires azure-service-principal authentication"). Stored and
11959
+ returned as sent, `strategy: none` included; a PUT that omits the object clears it.
11960
+ properties:
11961
+ strategy:
11962
+ type: string
11963
+ enum:
11964
+ - none
11965
+ - adlsgen2
11966
+ x-enumDescriptions:
11967
+ none: No staging.
11968
+ adlsgen2: Stage files in the ADLS Gen2 container named by `adlsGen2`; requires `folder`, `adlsGen2.storageAccount`, and `adlsGen2.container`.
11969
+ description: |-
11970
+ Staging strategy. With `adlsgen2`, a missing `folder`, `adlsGen2.storageAccount`,
11971
+ or `adlsGen2.container` fails with 422 `missing_required_field`.
11972
+ examples:
11973
+ - adlsgen2
11974
+ folder:
11975
+ type: string
11976
+ maxLength: 512
11977
+ description: |-
11978
+ Folder path inside the container; leading and trailing slashes and surrounding
11979
+ whitespace are removed on save. Each segment may contain only letters, digits,
11980
+ `.`, `_`, and `-`, may not be empty, `.` or `..`, and may not end with `.`; at
11981
+ most 56 segments. A violation fails with 422 `invalid_field_value`, a longer value
11982
+ with 422 `size_limit_exceeded`.
11983
+ examples:
11984
+ - celigo/staging
11985
+ adlsGen2:
11986
+ type: object
11987
+ description: ADLS Gen2 storage location for staged files.
11988
+ properties:
11989
+ accessMethod:
11990
+ type: string
11991
+ enum:
11992
+ - identityPassThrough
11993
+ - managedIdentity
11994
+ - sas
11995
+ x-enumDescriptions:
11996
+ identityPassThrough: Synapse reads the staged files with the connection's service principal identity.
11997
+ managedIdentity: Reserved for firewalled storage; accepted on save.
11998
+ sas: Reserved for firewalled storage; accepted on save.
11999
+ description: |-
12000
+ How Synapse authenticates to the storage account when loading staged files.
12001
+ Use `identityPassThrough`; the save stores the object without one when it is
12002
+ omitted.
12003
+ examples:
12004
+ - identityPassThrough
12005
+ storageAccount:
12006
+ type: string
12007
+ pattern: ^[a-z0-9]{3,24}$
12008
+ description: |-
12009
+ Storage account name, not a URL. Any other value fails with 422
12010
+ `invalid_field_value` ("must be the storage account name (3-24 lowercase
12011
+ letters and digits), not a URL").
12012
+ examples:
12013
+ - celigostaging01
12014
+ container:
12015
+ type: string
12016
+ pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
12017
+ description: |-
12018
+ Container name: 3-63 lowercase letters, digits, and hyphens, with no `--`.
12019
+ Any other value fails with 422 `invalid_field_value`.
12020
+ examples:
12021
+ - staging
12022
+ if:
12023
+ properties:
12024
+ strategy:
12025
+ const: adlsgen2
12026
+ required:
12027
+ - strategy
12028
+ then:
12029
+ required:
12030
+ - folder
12031
+ - adlsGen2
12032
+ properties:
12033
+ adlsGen2:
12034
+ required:
12035
+ - storageAccount
12036
+ - container
11715
12037
  bigquery:
11716
12038
  type: object
11717
12039
  description: |
@@ -12033,6 +12355,14 @@ components:
12033
12355
  - database
12034
12356
  - user
12035
12357
  - password
12358
+ properties:
12359
+ azuresynapse:
12360
+ properties:
12361
+ staging:
12362
+ properties:
12363
+ strategy:
12364
+ not:
12365
+ const: adlsgen2
12036
12366
  else:
12037
12367
  if:
12038
12368
  properties:
@@ -12151,6 +12481,23 @@ components:
12151
12481
  required:
12152
12482
  - accessKeyId
12153
12483
  - secretAccessKey
12484
+ else:
12485
+ if:
12486
+ properties:
12487
+ type:
12488
+ const: fabric
12489
+ required:
12490
+ - type
12491
+ then:
12492
+ required:
12493
+ - host
12494
+ - database
12495
+ - fabric
12496
+ - _iClientId
12497
+ properties:
12498
+ fabric:
12499
+ required:
12500
+ - workspaceId
12154
12501
  MongoDB:
12155
12502
  type: object
12156
12503
  description: |-
@@ -13317,8 +13664,27 @@ components:
13317
13664
  required:
13318
13665
  - auth
13319
13666
  then:
13320
- required:
13321
- - _iClientId
13667
+ if:
13668
+ properties:
13669
+ auth:
13670
+ properties:
13671
+ oauth:
13672
+ properties:
13673
+ clientRegistration:
13674
+ const: automatic
13675
+ required:
13676
+ - clientRegistration
13677
+ required:
13678
+ - oauth
13679
+ required:
13680
+ - auth
13681
+ then:
13682
+ not:
13683
+ required:
13684
+ - _iClientId
13685
+ else:
13686
+ required:
13687
+ - _iClientId
13322
13688
  x-celigo-ai-guidance:
13323
13689
  - |-
13324
13690
  The auth.type MUST be one of: "token", "oauth", or "custom".
@@ -13564,6 +13930,16 @@ components:
13564
13930
  minimum: 1
13565
13931
  maximum: 50
13566
13932
  default: 5
13933
+ useSSL:
13934
+ type: boolean
13935
+ writeOnly: true
13936
+ description: |-
13937
+ When true, the connection uses SSL/TLS (the form's **Use SSL** checkbox); stored and
13938
+ returned as the connection-level `ssl.enabled`, never under `jdbc`. Takes precedence over
13939
+ `ssl.enabled` in the same body. `false` is stored only together with `ssl.cert`;
13940
+ otherwise it clears the stored flag.
13941
+ examples:
13942
+ - true
13567
13943
  if:
13568
13944
  properties:
13569
13945
  type:
@@ -14307,5 +14683,41 @@ components:
14307
14683
  errors:
14308
14684
  - code: forbidden
14309
14685
  message: You do not have permission to access this resource.
14686
+ 422-builder-only:
14687
+ description: |-
14688
+ The API exists but is a script-mode API. Run history and execution logs exist only for
14689
+ builder-mode APIs. Error code: `invalid_api_type`.
14690
+ content:
14691
+ application/json:
14692
+ schema:
14693
+ $ref: '#/components/schemas/Error'
14694
+ examples:
14695
+ scriptApi:
14696
+ summary: Script-mode API
14697
+ value:
14698
+ errors:
14699
+ - code: invalid_api_type
14700
+ message: Run history and execution logs are only available for builder APIs.
14701
+ 422-execution-log:
14702
+ description: |-
14703
+ The `executionId` is malformed (`invalid_execution_id`), or the API is a script-mode API
14704
+ (`invalid_api_type`); run history and execution logs exist only for builder-mode APIs.
14705
+ content:
14706
+ application/json:
14707
+ schema:
14708
+ $ref: '#/components/schemas/Error'
14709
+ examples:
14710
+ invalidExecutionId:
14711
+ summary: Malformed executionId
14712
+ value:
14713
+ errors:
14714
+ - code: invalid_execution_id
14715
+ message: executionId is invalid
14716
+ scriptApi:
14717
+ summary: Script-mode API
14718
+ value:
14719
+ errors:
14720
+ - code: invalid_api_type
14721
+ message: Run history and execution logs are only available for builder APIs.
14310
14722
  x-enable-proxy: true
14311
14723
  x-internal: false