@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.
@@ -4135,6 +4135,16 @@ components:
4135
4135
  cert and key together for mTLS, ca for a private CA, and passphrase only when the private
4136
4136
  key is encrypted; cert/key and ca can be combined.
4137
4137
  properties:
4138
+ enabled:
4139
+ type: boolean
4140
+ description: |-
4141
+ When true, a `jdbc` connection uses SSL/TLS (the connection form's **Use SSL**
4142
+ checkbox). Written by `jdbc.useSSL`, which takes precedence over a value sent here, and
4143
+ read directly when `jdbc.useSSL` is not a boolean, so a GET body sent back as a PUT keeps
4144
+ the setting. `false` is stored only together with `cert`; otherwise it, like an omitted
4145
+ value, clears the stored flag. Ignored on other connection types.
4146
+ examples:
4147
+ - true
4138
4148
  ca:
4139
4149
  type: string
4140
4150
  description: |-
@@ -4589,7 +4599,7 @@ components:
4589
4599
  - |-
4590
4600
  For placeholder/dummy NetSuite connections, use authType "token-auto" with just the account id —
4591
4601
  integrator.io manages the OAuth client wiring on the backend, so no placeholder tokens are needed.
4592
- 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.'
4602
+ 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.'
4593
4603
  properties:
4594
4604
  authType:
4595
4605
  type: string
@@ -4598,12 +4608,15 @@ components:
4598
4608
  enum:
4599
4609
  - token
4600
4610
  - token-auto
4611
+ - oauth
4601
4612
  x-enumDescriptions:
4602
4613
  token: Manual Token-Based Authentication (TBA) using tokenId and tokenSecret from a NetSuite integration record.
4603
4614
  token-auto: Automatic token management via Celigo's iClient; requires only the NetSuite account ID.
4615
+ 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.
4604
4616
  description: |-
4605
4617
  Authentication method for the NetSuite connection. token-auto delegates the token
4606
- lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair.
4618
+ lifecycle to an iClient; token uses a manually-supplied tokenId/tokenSecret pair; oauth
4619
+ uses a certificate-signed client credentials grant that NetSuite must authorize.
4607
4620
  x-celigo-ai-guidance:
4608
4621
  - |-
4609
4622
  Default to "token-auto" for new connections, including placeholders (only the account id is needed).
@@ -4616,7 +4629,7 @@ components:
4616
4629
  examples:
4617
4630
  - TSTDRV1234567
4618
4631
  description: |-
4619
- NetSuite account ID (automatically uppercased), required for token and token-auto authentication.
4632
+ NetSuite account ID (automatically uppercased), required for token, token-auto, and oauth authentication.
4620
4633
  Found in NetSuite under Setup > Company > Company Information. Non-production accounts
4621
4634
  carry an environment suffix (e.g. `123456_SB1`); production and beta use the bare id.
4622
4635
  x-uppercase: true
@@ -4835,7 +4848,40 @@ components:
4835
4848
  App's record (set by the app's install) or the account's own; access tokens are then created
4836
4849
  for that record's Application. Absent on a standalone connection, which signs with Celigo's
4837
4850
  `integrator.io` record (no client ID or secret is entered anywhere) and whose access tokens
4838
- must be created for Application `integrator.io`.
4851
+ must be created for Application `integrator.io`. With `authType` `oauth` it is optional;
4852
+ when set, the iClient must carry `oauth2.clientId` and `oauth2.clientSecret`, otherwise
4853
+ the save fails with 422 `missing_required_field` on `netsuite._iClientId` ("Expected
4854
+ field: oauth2.clientId/clientSecret to be present.").
4855
+ oauth2:
4856
+ type: object
4857
+ readOnly: true
4858
+ description: |-
4859
+ Machine-to-machine state of an `oauth` connection, written by the server on save and
4860
+ ignored on write; absent for other auth types.
4861
+ properties:
4862
+ grantType:
4863
+ type: string
4864
+ enum:
4865
+ - clientcredentials
4866
+ x-enumDescriptions:
4867
+ clientcredentials: OAuth 2.0 client credentials grant signed with a certificate.
4868
+ description: Grant used to obtain tokens; always `clientcredentials`.
4869
+ examples:
4870
+ - clientcredentials
4871
+ scope:
4872
+ type: array
4873
+ description: Scopes requested for the token; always `restlets` and `rest_webservices`.
4874
+ items:
4875
+ type: string
4876
+ enum:
4877
+ - restlets
4878
+ - rest_webservices
4879
+ x-enumDescriptions:
4880
+ restlets: NetSuite RESTlet access.
4881
+ rest_webservices: NetSuite REST web services access.
4882
+ examples:
4883
+ - - restlets
4884
+ - rest_webservices
4839
4885
  Salesforce:
4840
4886
  type: object
4841
4887
  description: |-
@@ -5619,6 +5665,25 @@ components:
5619
5665
  writeOnly: true
5620
5666
  examples:
5621
5667
  - dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
5668
+ clientRegistration:
5669
+ type: string
5670
+ enum:
5671
+ - automatic
5672
+ - preregistered
5673
+ x-enumDescriptions:
5674
+ automatic: integrator.io registers itself with the MCP server's authorization server; no iClient is used.
5675
+ preregistered: The OAuth client is the iClient referenced by the connection's `_iClientId`.
5676
+ description: |-
5677
+ How the OAuth client is obtained; unset behaves as `preregistered`. With `automatic` the
5678
+ grant is always the authorization code flow (`grantType` is stored as `authorizecode`),
5679
+ and client-sent `grantType`, `authURI`, `tokenURI`, `scope`, and `scopeDelimiter` are
5680
+ dropped because the server discovers them. `automatic` is allowed only on an `mcp`
5681
+ connection with no `mcp.http._iClientId`: on an `http` connection, or an MCP connection
5682
+ that also sends an iClient, the save fails with 422 `mcp_client_registration_conflict`
5683
+ ("Automatic client registration is only supported for standalone MCP connections without
5684
+ an OAuth 2.0 client."). An update that omits it keeps the stored mode.
5685
+ examples:
5686
+ - automatic
5622
5687
  if:
5623
5688
  properties:
5624
5689
  grantType:
@@ -7227,6 +7292,7 @@ components:
7227
7292
  - redshift
7228
7293
  - mariadb
7229
7294
  - azuresynapse
7295
+ - fabric
7230
7296
  x-enumDescriptions:
7231
7297
  mysql: MySQL database (default port 3306).
7232
7298
  postgresql: PostgreSQL database (default port 5432).
@@ -7237,6 +7303,7 @@ components:
7237
7303
  redshift: Amazon Redshift — provisioned clusters or Redshift Serverless; authenticates with static access keys or an AWS IAM role iClient (redshift.authType).
7238
7304
  mariadb: MariaDB database (default port 3306).
7239
7305
  azuresynapse: Azure Synapse Analytics (default port 1433).
7306
+ 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.
7240
7307
  description: |-
7241
7308
  The specific relational database system to connect to. Determines the SQL dialect,
7242
7309
  connection driver, default port, and which additional sub-fields are required.
@@ -7471,6 +7538,174 @@ components:
7471
7538
  SQL Server connections only; the Azure Synapse form's picker lists client-secret
7472
7539
  iClients. The API accepts either on either type (live-verified 201), so follow the
7473
7540
  form: bind a certificate iClient to mssql connections only.
7541
+ fabric:
7542
+ type: object
7543
+ description: |-
7544
+ Microsoft Fabric Warehouse configuration. Read when `type` is `fabric`; on any other
7545
+ type the object is dropped on save and absent from the response. The connection signs in
7546
+ as the `azureserviceprincipal` iClient referenced by `_iClientId`, so `version`,
7547
+ `instanceName`, `user`, and `password` do not apply: sending any of them fails with 422
7548
+ `invalid_field_value` ("This field does not apply to Microsoft Fabric connections.").
7549
+ properties:
7550
+ workspaceId:
7551
+ type: string
7552
+ 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}$
7553
+ description: |-
7554
+ Fabric workspace GUID from the Fabric portal URL; it is also the OneLake file system
7555
+ name. A value that is not a GUID fails with 422 `invalid_field_value` ("Enter the
7556
+ workspace GUID from the Fabric portal URL."); omitting it fails with 422
7557
+ `missing_required_field`.
7558
+ examples:
7559
+ - 3f2b6c1e-8a4d-4e7b-9c0a-1d2e3f4a5b6c
7560
+ authType:
7561
+ type: string
7562
+ enum:
7563
+ - azure-service-principal
7564
+ x-enumDescriptions:
7565
+ azure-service-principal: Microsoft Entra service principal held in the `azureserviceprincipal` iClient referenced by `_iClientId`.
7566
+ default: azure-service-principal
7567
+ description: |-
7568
+ Authentication mode. Service principal is the only mode, so the server fills it in
7569
+ when the request omits it and returns it on every Fabric connection.
7570
+ examples:
7571
+ - azure-service-principal
7572
+ staging:
7573
+ type: object
7574
+ description: |-
7575
+ Where bulk loads stage files before `COPY INTO`. A PUT replaces the whole object;
7576
+ omitted keys are cleared. Present when set.
7577
+ properties:
7578
+ strategy:
7579
+ type: string
7580
+ enum:
7581
+ - none
7582
+ - onelake
7583
+ - adlsgen2
7584
+ x-enumDescriptions:
7585
+ none: No staging; loads run without an intermediate file store.
7586
+ onelake: Stage in the Files area of the Lakehouse named by `onelake.lakehouse`.
7587
+ adlsgen2: Reserved for ADLS Gen2 staging; accepted on save without further fields.
7588
+ description: |-
7589
+ Staging strategy. Omitted behaves as `none`. `onelake` requires
7590
+ `onelake.lakehouse` (422 `missing_required_field` otherwise).
7591
+ examples:
7592
+ - onelake
7593
+ folder:
7594
+ type: string
7595
+ maxLength: 512
7596
+ pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]*$
7597
+ description: |-
7598
+ Single folder name under the Lakehouse `Files/` root. Letters, digits, hyphens,
7599
+ underscores and dots only, starting with a letter or digit and never containing
7600
+ `..`; any other value fails with 422 `invalid_field_value`, and a longer value
7601
+ with 422 `size_limit_exceeded`. Stored with any `strategy`, including `none`.
7602
+ examples:
7603
+ - celigo-staging
7604
+ onelake:
7605
+ type: object
7606
+ description: OneLake staging target, used when `strategy` is `onelake`.
7607
+ properties:
7608
+ lakehouse:
7609
+ type: string
7610
+ maxLength: 512
7611
+ description: |-
7612
+ Display name of the Lakehouse to stage in; resolved to its item id at run
7613
+ time. Required (422 `missing_required_field`) when `strategy` is `onelake`.
7614
+ examples:
7615
+ - StagingLakehouse
7616
+ azuresynapse:
7617
+ type: object
7618
+ description: |-
7619
+ Azure Synapse settings beyond the shared `mssql` sub-object. Read when `type` is
7620
+ `azuresynapse`; on any other type the object is dropped on save and absent from the
7621
+ response.
7622
+ properties:
7623
+ staging:
7624
+ type: object
7625
+ description: |-
7626
+ ADLS Gen2 staging for bulk loads. `folder` and `adlsGen2` require `strategy`
7627
+ `adlsgen2`, and `adlsgen2` requires `mssql.authType` `azure-service-principal`
7628
+ (with its `_iClientId`); either mismatch fails with 422 `invalid_field_value`
7629
+ ("staging.folder and adlsGen2 fields require staging.strategy to be adlsgen2" /
7630
+ "ADLS Gen2 staging requires azure-service-principal authentication"). Stored and
7631
+ returned as sent, `strategy: none` included; a PUT that omits the object clears it.
7632
+ properties:
7633
+ strategy:
7634
+ type: string
7635
+ enum:
7636
+ - none
7637
+ - adlsgen2
7638
+ x-enumDescriptions:
7639
+ none: No staging.
7640
+ adlsgen2: Stage files in the ADLS Gen2 container named by `adlsGen2`; requires `folder`, `adlsGen2.storageAccount`, and `adlsGen2.container`.
7641
+ description: |-
7642
+ Staging strategy. With `adlsgen2`, a missing `folder`, `adlsGen2.storageAccount`,
7643
+ or `adlsGen2.container` fails with 422 `missing_required_field`.
7644
+ examples:
7645
+ - adlsgen2
7646
+ folder:
7647
+ type: string
7648
+ maxLength: 512
7649
+ description: |-
7650
+ Folder path inside the container; leading and trailing slashes and surrounding
7651
+ whitespace are removed on save. Each segment may contain only letters, digits,
7652
+ `.`, `_`, and `-`, may not be empty, `.` or `..`, and may not end with `.`; at
7653
+ most 56 segments. A violation fails with 422 `invalid_field_value`, a longer value
7654
+ with 422 `size_limit_exceeded`.
7655
+ examples:
7656
+ - celigo/staging
7657
+ adlsGen2:
7658
+ type: object
7659
+ description: ADLS Gen2 storage location for staged files.
7660
+ properties:
7661
+ accessMethod:
7662
+ type: string
7663
+ enum:
7664
+ - identityPassThrough
7665
+ - managedIdentity
7666
+ - sas
7667
+ x-enumDescriptions:
7668
+ identityPassThrough: Synapse reads the staged files with the connection's service principal identity.
7669
+ managedIdentity: Reserved for firewalled storage; accepted on save.
7670
+ sas: Reserved for firewalled storage; accepted on save.
7671
+ description: |-
7672
+ How Synapse authenticates to the storage account when loading staged files.
7673
+ Use `identityPassThrough`; the save stores the object without one when it is
7674
+ omitted.
7675
+ examples:
7676
+ - identityPassThrough
7677
+ storageAccount:
7678
+ type: string
7679
+ pattern: ^[a-z0-9]{3,24}$
7680
+ description: |-
7681
+ Storage account name, not a URL. Any other value fails with 422
7682
+ `invalid_field_value` ("must be the storage account name (3-24 lowercase
7683
+ letters and digits), not a URL").
7684
+ examples:
7685
+ - celigostaging01
7686
+ container:
7687
+ type: string
7688
+ pattern: ^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
7689
+ description: |-
7690
+ Container name: 3-63 lowercase letters, digits, and hyphens, with no `--`.
7691
+ Any other value fails with 422 `invalid_field_value`.
7692
+ examples:
7693
+ - staging
7694
+ if:
7695
+ properties:
7696
+ strategy:
7697
+ const: adlsgen2
7698
+ required:
7699
+ - strategy
7700
+ then:
7701
+ required:
7702
+ - folder
7703
+ - adlsGen2
7704
+ properties:
7705
+ adlsGen2:
7706
+ required:
7707
+ - storageAccount
7708
+ - container
7474
7709
  bigquery:
7475
7710
  type: object
7476
7711
  description: |
@@ -7792,6 +8027,14 @@ components:
7792
8027
  - database
7793
8028
  - user
7794
8029
  - password
8030
+ properties:
8031
+ azuresynapse:
8032
+ properties:
8033
+ staging:
8034
+ properties:
8035
+ strategy:
8036
+ not:
8037
+ const: adlsgen2
7795
8038
  else:
7796
8039
  if:
7797
8040
  properties:
@@ -7910,6 +8153,23 @@ components:
7910
8153
  required:
7911
8154
  - accessKeyId
7912
8155
  - secretAccessKey
8156
+ else:
8157
+ if:
8158
+ properties:
8159
+ type:
8160
+ const: fabric
8161
+ required:
8162
+ - type
8163
+ then:
8164
+ required:
8165
+ - host
8166
+ - database
8167
+ - fabric
8168
+ - _iClientId
8169
+ properties:
8170
+ fabric:
8171
+ required:
8172
+ - workspaceId
7913
8173
  MongoDB:
7914
8174
  type: object
7915
8175
  description: |-
@@ -9076,8 +9336,27 @@ components:
9076
9336
  required:
9077
9337
  - auth
9078
9338
  then:
9079
- required:
9080
- - _iClientId
9339
+ if:
9340
+ properties:
9341
+ auth:
9342
+ properties:
9343
+ oauth:
9344
+ properties:
9345
+ clientRegistration:
9346
+ const: automatic
9347
+ required:
9348
+ - clientRegistration
9349
+ required:
9350
+ - oauth
9351
+ required:
9352
+ - auth
9353
+ then:
9354
+ not:
9355
+ required:
9356
+ - _iClientId
9357
+ else:
9358
+ required:
9359
+ - _iClientId
9081
9360
  x-celigo-ai-guidance:
9082
9361
  - |-
9083
9362
  The auth.type MUST be one of: "token", "oauth", or "custom".
@@ -9323,6 +9602,16 @@ components:
9323
9602
  minimum: 1
9324
9603
  maximum: 50
9325
9604
  default: 5
9605
+ useSSL:
9606
+ type: boolean
9607
+ writeOnly: true
9608
+ description: |-
9609
+ When true, the connection uses SSL/TLS (the form's **Use SSL** checkbox); stored and
9610
+ returned as the connection-level `ssl.enabled`, never under `jdbc`. Takes precedence over
9611
+ `ssl.enabled` in the same body. `false` is stored only together with `ssl.cert`;
9612
+ otherwise it clears the stored flag.
9613
+ examples:
9614
+ - true
9326
9615
  if:
9327
9616
  properties:
9328
9617
  type:
@@ -10393,6 +10682,16 @@ components:
10393
10682
  then:
10394
10683
  required:
10395
10684
  - account
10685
+ else:
10686
+ if:
10687
+ properties:
10688
+ authType:
10689
+ const: oauth
10690
+ required:
10691
+ - authType
10692
+ then:
10693
+ required:
10694
+ - account
10396
10695
  else:
10397
10696
  if:
10398
10697
  properties: