@celigo/api-specs 0.2.267 → 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.
@@ -5277,6 +5277,16 @@ components:
5277
5277
  cert and key together for mTLS, ca for a private CA, and passphrase only when the private
5278
5278
  key is encrypted; cert/key and ca can be combined.
5279
5279
  properties:
5280
+ enabled:
5281
+ type: boolean
5282
+ description: |-
5283
+ When true, a `jdbc` connection uses SSL/TLS (the connection form's **Use SSL**
5284
+ checkbox). Written by `jdbc.useSSL`, which takes precedence over a value sent here, and
5285
+ read directly when `jdbc.useSSL` is not a boolean, so a GET body sent back as a PUT keeps
5286
+ the setting. `false` is stored only together with `cert`; otherwise it, like an omitted
5287
+ value, clears the stored flag. Ignored on other connection types.
5288
+ examples:
5289
+ - true
5280
5290
  ca:
5281
5291
  type: string
5282
5292
  description: |-
@@ -5731,7 +5741,7 @@ components:
5731
5741
  - |-
5732
5742
  For placeholder/dummy NetSuite connections, use authType "token-auto" with just the account id —
5733
5743
  integrator.io manages the OAuth client wiring on the backend, so no placeholder tokens are needed.
5734
- 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.'
5744
+ 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.'
5735
5745
  properties:
5736
5746
  authType:
5737
5747
  type: string
@@ -5740,12 +5750,15 @@ components:
5740
5750
  enum:
5741
5751
  - token
5742
5752
  - token-auto
5753
+ - oauth
5743
5754
  x-enumDescriptions:
5744
5755
  token: Manual Token-Based Authentication (TBA) using tokenId and tokenSecret from a NetSuite integration record.
5745
5756
  token-auto: Automatic token management via Celigo's iClient; requires only the NetSuite account ID.
5757
+ 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.
5746
5758
  description: |-
5747
5759
  Authentication method for the NetSuite connection. token-auto delegates the token
5748
- lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair.
5760
+ lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair; oauth
5761
+ uses a certificate-signed client credentials grant that NetSuite must authorize.
5749
5762
  x-celigo-ai-guidance:
5750
5763
  - |-
5751
5764
  Default to "token-auto" for new connections, including placeholders (only the account id is needed).
@@ -5758,7 +5771,7 @@ components:
5758
5771
  examples:
5759
5772
  - TSTDRV1234567
5760
5773
  description: |-
5761
- NetSuite account ID (automatically uppercased), required for token and token-auto authentication.
5774
+ NetSuite account ID (automatically uppercased), required for token, token-auto, and oauth authentication.
5762
5775
  Found in NetSuite under Setup > Company > Company Information. Non-production accounts
5763
5776
  carry an environment suffix (e.g. `123456_SB1`); production and beta use the bare id.
5764
5777
  x-uppercase: true
@@ -5977,7 +5990,40 @@ components:
5977
5990
  App's record (set by the app's install) or the account's own; access tokens are then created
5978
5991
  for that record's Application. Absent on a standalone connection, which signs with Celigo's
5979
5992
  `integrator.io` record (no client ID or secret is entered anywhere) and whose access tokens
5980
- must be created for Application `integrator.io`.
5993
+ must be created for Application `integrator.io`. With `authType` `oauth` it is optional;
5994
+ when set, the iClient must carry `oauth2.clientId` and `oauth2.clientSecret`, otherwise
5995
+ the save fails with 422 `missing_required_field` on `netsuite._iClientId` ("Expected
5996
+ field: oauth2.clientId/clientSecret to be present.").
5997
+ oauth2:
5998
+ type: object
5999
+ readOnly: true
6000
+ description: |-
6001
+ Machine-to-machine state of an `oauth` connection, written by the server on save and
6002
+ ignored on write; absent for other auth types.
6003
+ properties:
6004
+ grantType:
6005
+ type: string
6006
+ enum:
6007
+ - clientcredentials
6008
+ x-enumDescriptions:
6009
+ clientcredentials: OAuth 2.0 client credentials grant signed with a certificate.
6010
+ description: Grant used to obtain tokens; always `clientcredentials`.
6011
+ examples:
6012
+ - clientcredentials
6013
+ scope:
6014
+ type: array
6015
+ description: Scopes requested for the token; always `restlets` and `rest_webservices`.
6016
+ items:
6017
+ type: string
6018
+ enum:
6019
+ - restlets
6020
+ - rest_webservices
6021
+ x-enumDescriptions:
6022
+ restlets: NetSuite RESTlet access.
6023
+ rest_webservices: NetSuite REST web services access.
6024
+ examples:
6025
+ - - restlets
6026
+ - rest_webservices
5981
6027
  Salesforce:
5982
6028
  type: object
5983
6029
  description: |-
@@ -6761,6 +6807,25 @@ components:
6761
6807
  writeOnly: true
6762
6808
  examples:
6763
6809
  - dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
6810
+ clientRegistration:
6811
+ type: string
6812
+ enum:
6813
+ - automatic
6814
+ - preregistered
6815
+ x-enumDescriptions:
6816
+ automatic: integrator.io registers itself with the MCP server's authorization server; no iClient is used.
6817
+ preregistered: The OAuth client is the iClient referenced by the connection's `_iClientId`.
6818
+ description: |-
6819
+ How the OAuth client is obtained; unset behaves as `preregistered`. With `automatic` the
6820
+ grant is always the authorization code flow (`grantType` is stored as `authorizecode`),
6821
+ and client-sent `grantType`, `authURI`, `tokenURI`, `scope`, and `scopeDelimiter` are
6822
+ dropped because the server discovers them. `automatic` is allowed only on an `mcp`
6823
+ connection with no `mcp.http._iClientId`: on an `http` connection, or an MCP connection
6824
+ that also sends an iClient, the save fails with 422 `mcp_client_registration_conflict`
6825
+ ("Automatic client registration is only supported for standalone MCP connections without
6826
+ an OAuth 2.0 client."). An update that omits it keeps the stored mode.
6827
+ examples:
6828
+ - automatic
6764
6829
  if:
6765
6830
  properties:
6766
6831
  grantType:
@@ -8369,6 +8434,7 @@ components:
8369
8434
  - redshift
8370
8435
  - mariadb
8371
8436
  - azuresynapse
8437
+ - fabric
8372
8438
  x-enumDescriptions:
8373
8439
  mysql: MySQL database (default port 3306).
8374
8440
  postgresql: PostgreSQL database (default port 5432).
@@ -8379,6 +8445,7 @@ components:
8379
8445
  redshift: Amazon Redshift — provisioned clusters or Redshift Serverless; authenticates with static access keys or an AWS IAM role iClient (redshift.authType).
8380
8446
  mariadb: MariaDB database (default port 3306).
8381
8447
  azuresynapse: Azure Synapse Analytics (default port 1433).
8448
+ 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.
8382
8449
  description: |-
8383
8450
  The specific relational database system to connect to. Determines the SQL dialect,
8384
8451
  connection driver, default port, and which additional sub-fields are required.
@@ -8613,6 +8680,174 @@ components:
8613
8680
  SQL Server connections only; the Azure Synapse form's picker lists client-secret
8614
8681
  iClients. The API accepts either on either type (live-verified 201), so follow the
8615
8682
  form: bind a certificate iClient to mssql connections only.
8683
+ fabric:
8684
+ type: object
8685
+ description: |-
8686
+ Microsoft Fabric Warehouse configuration. Read when `type` is `fabric`; on any other
8687
+ type the object is dropped on save and absent from the response. The connection signs in
8688
+ as the `azureserviceprincipal` iClient referenced by `_iClientId`, so `version`,
8689
+ `instanceName`, `user`, and `password` do not apply: sending any of them fails with 422
8690
+ `invalid_field_value` ("This field does not apply to Microsoft Fabric connections.").
8691
+ properties:
8692
+ workspaceId:
8693
+ type: string
8694
+ 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}$
8695
+ description: |-
8696
+ Fabric workspace GUID from the Fabric portal URL; it is also the OneLake file system
8697
+ name. A value that is not a GUID fails with 422 `invalid_field_value` ("Enter the
8698
+ workspace GUID from the Fabric portal URL."); omitting it fails with 422
8699
+ `missing_required_field`.
8700
+ examples:
8701
+ - 3f2b6c1e-8a4d-4e7b-9c0a-1d2e3f4a5b6c
8702
+ authType:
8703
+ type: string
8704
+ enum:
8705
+ - azure-service-principal
8706
+ x-enumDescriptions:
8707
+ azure-service-principal: Microsoft Entra service principal held in the `azureserviceprincipal` iClient referenced by `_iClientId`.
8708
+ default: azure-service-principal
8709
+ description: |-
8710
+ Authentication mode. Service principal is the only mode, so the server fills it in
8711
+ when the request omits it and returns it on every Fabric connection.
8712
+ examples:
8713
+ - azure-service-principal
8714
+ staging:
8715
+ type: object
8716
+ description: |-
8717
+ Where bulk loads stage files before `COPY INTO`. A PUT replaces the whole object;
8718
+ omitted keys are cleared. Present when set.
8719
+ properties:
8720
+ strategy:
8721
+ type: string
8722
+ enum:
8723
+ - none
8724
+ - onelake
8725
+ - adlsgen2
8726
+ x-enumDescriptions:
8727
+ none: No staging; loads run without an intermediate file store.
8728
+ onelake: Stage in the Files area of the Lakehouse named by `onelake.lakehouse`.
8729
+ adlsgen2: Reserved for ADLS Gen2 staging; accepted on save without further fields.
8730
+ description: |-
8731
+ Staging strategy. Omitted behaves as `none`. `onelake` requires
8732
+ `onelake.lakehouse` (422 `missing_required_field` otherwise).
8733
+ examples:
8734
+ - onelake
8735
+ folder:
8736
+ type: string
8737
+ maxLength: 512
8738
+ pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$
8739
+ description: |-
8740
+ Single folder name under the Lakehouse `Files/` root. Letters, digits, hyphens,
8741
+ underscores and dots only, starting with a letter or digit and never containing
8742
+ `..`; any other value fails with 422 `invalid_field_value`, and a longer value
8743
+ with 422 `size_limit_exceeded`. Stored with any `strategy`, including `none`.
8744
+ examples:
8745
+ - celigo-staging
8746
+ onelake:
8747
+ type: object
8748
+ description: OneLake staging target, used when `strategy` is `onelake`.
8749
+ properties:
8750
+ lakehouse:
8751
+ type: string
8752
+ maxLength: 512
8753
+ description: |-
8754
+ Display name of the Lakehouse to stage in; resolved to its item id at run
8755
+ time. Required (422 `missing_required_field`) when `strategy` is `onelake`.
8756
+ examples:
8757
+ - StagingLakehouse
8758
+ azuresynapse:
8759
+ type: object
8760
+ description: |-
8761
+ Azure Synapse settings beyond the shared `mssql` sub-object. Read when `type` is
8762
+ `azuresynapse`; on any other type the object is dropped on save and absent from the
8763
+ response.
8764
+ properties:
8765
+ staging:
8766
+ type: object
8767
+ description: |-
8768
+ ADLS Gen2 staging for bulk loads. `folder` and `adlsGen2` require `strategy`
8769
+ `adlsgen2`, and `adlsgen2` requires `mssql.authType` `azure-service-principal`
8770
+ (with its `_iClientId`); either mismatch fails with 422 `invalid_field_value`
8771
+ ("staging.folder and adlsGen2 fields require staging.strategy to be adlsgen2" /
8772
+ "ADLS Gen2 staging requires azure-service-principal authentication"). Stored and
8773
+ returned as sent, `strategy: none` included; a PUT that omits the object clears it.
8774
+ properties:
8775
+ strategy:
8776
+ type: string
8777
+ enum:
8778
+ - none
8779
+ - adlsgen2
8780
+ x-enumDescriptions:
8781
+ none: No staging.
8782
+ adlsgen2: Stage files in the ADLS Gen2 container named by `adlsGen2`; requires `folder`, `adlsGen2.storageAccount`, and `adlsGen2.container`.
8783
+ description: |-
8784
+ Staging strategy. With `adlsgen2`, a missing `folder`, `adlsGen2.storageAccount`,
8785
+ or `adlsGen2.container` fails with 422 `missing_required_field`.
8786
+ examples:
8787
+ - adlsgen2
8788
+ folder:
8789
+ type: string
8790
+ maxLength: 512
8791
+ description: |-
8792
+ Folder path inside the container; leading and trailing slashes and surrounding
8793
+ whitespace are removed on save. Each segment may contain only letters, digits,
8794
+ `.`, `_`, and `-`, may not be empty, `.` or `..`, and may not end with `.`; at
8795
+ most 56 segments. A violation fails with 422 `invalid_field_value`, a longer value
8796
+ with 422 `size_limit_exceeded`.
8797
+ examples:
8798
+ - celigo/staging
8799
+ adlsGen2:
8800
+ type: object
8801
+ description: ADLS Gen2 storage location for staged files.
8802
+ properties:
8803
+ accessMethod:
8804
+ type: string
8805
+ enum:
8806
+ - identityPassThrough
8807
+ - managedIdentity
8808
+ - sas
8809
+ x-enumDescriptions:
8810
+ identityPassThrough: Synapse reads the staged files with the connection's service principal identity.
8811
+ managedIdentity: Reserved for firewalled storage; accepted on save.
8812
+ sas: Reserved for firewalled storage; accepted on save.
8813
+ description: |-
8814
+ How Synapse authenticates to the storage account when loading staged files.
8815
+ Use `identityPassThrough`; the save stores the object without one when it is
8816
+ omitted.
8817
+ examples:
8818
+ - identityPassThrough
8819
+ storageAccount:
8820
+ type: string
8821
+ pattern: ^[a-z0-9]{3,24}$
8822
+ description: |-
8823
+ Storage account name, not a URL. Any other value fails with 422
8824
+ `invalid_field_value` ("must be the storage account name (3-24 lowercase
8825
+ letters and digits), not a URL").
8826
+ examples:
8827
+ - celigostaging01
8828
+ container:
8829
+ type: string
8830
+ pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
8831
+ description: |-
8832
+ Container name: 3-63 lowercase letters, digits, and hyphens, with no `--`.
8833
+ Any other value fails with 422 `invalid_field_value`.
8834
+ examples:
8835
+ - staging
8836
+ if:
8837
+ properties:
8838
+ strategy:
8839
+ const: adlsgen2
8840
+ required:
8841
+ - strategy
8842
+ then:
8843
+ required:
8844
+ - folder
8845
+ - adlsGen2
8846
+ properties:
8847
+ adlsGen2:
8848
+ required:
8849
+ - storageAccount
8850
+ - container
8616
8851
  bigquery:
8617
8852
  type: object
8618
8853
  description: |
@@ -8934,6 +9169,14 @@ components:
8934
9169
  - database
8935
9170
  - user
8936
9171
  - password
9172
+ properties:
9173
+ azuresynapse:
9174
+ properties:
9175
+ staging:
9176
+ properties:
9177
+ strategy:
9178
+ not:
9179
+ const: adlsgen2
8937
9180
  else:
8938
9181
  if:
8939
9182
  properties:
@@ -9052,6 +9295,23 @@ components:
9052
9295
  required:
9053
9296
  - accessKeyId
9054
9297
  - secretAccessKey
9298
+ else:
9299
+ if:
9300
+ properties:
9301
+ type:
9302
+ const: fabric
9303
+ required:
9304
+ - type
9305
+ then:
9306
+ required:
9307
+ - host
9308
+ - database
9309
+ - fabric
9310
+ - _iClientId
9311
+ properties:
9312
+ fabric:
9313
+ required:
9314
+ - workspaceId
9055
9315
  MongoDB:
9056
9316
  type: object
9057
9317
  description: |-
@@ -10218,8 +10478,27 @@ components:
10218
10478
  required:
10219
10479
  - auth
10220
10480
  then:
10221
- required:
10222
- - _iClientId
10481
+ if:
10482
+ properties:
10483
+ auth:
10484
+ properties:
10485
+ oauth:
10486
+ properties:
10487
+ clientRegistration:
10488
+ const: automatic
10489
+ required:
10490
+ - clientRegistration
10491
+ required:
10492
+ - oauth
10493
+ required:
10494
+ - auth
10495
+ then:
10496
+ not:
10497
+ required:
10498
+ - _iClientId
10499
+ else:
10500
+ required:
10501
+ - _iClientId
10223
10502
  x-celigo-ai-guidance:
10224
10503
  - |-
10225
10504
  The auth.type MUST be one of: "token", "oauth", or "custom".
@@ -10465,6 +10744,16 @@ components:
10465
10744
  minimum: 1
10466
10745
  maximum: 50
10467
10746
  default: 5
10747
+ useSSL:
10748
+ type: boolean
10749
+ writeOnly: true
10750
+ description: |-
10751
+ When true, the connection uses SSL/TLS (the form's **Use SSL** checkbox); stored and
10752
+ returned as the connection-level `ssl.enabled`, never under `jdbc`. Takes precedence over
10753
+ `ssl.enabled` in the same body. `false` is stored only together with `ssl.cert`;
10754
+ otherwise it clears the stored flag.
10755
+ examples:
10756
+ - true
10468
10757
  if:
10469
10758
  properties:
10470
10759
  type: