@celigo/api-specs 0.2.276 → 0.2.278

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
@@ -13142,12 +13142,18 @@ components:
13142
13142
  description: When true, message content is compressed. Not exposed in the connection form.
13143
13143
  default: false
13144
13144
  encrypted:
13145
- type: object
13145
+ type:
13146
+ - object
13147
+ - string
13146
13148
  description: |-
13147
- Encrypted-at-rest key material for this station's own identity. Supply when this station
13148
- signs outbound messages or decrypts inbound messages; integrator.io injects an
13149
- auto-generated self-signed key otherwise. Write-only: no GET returns this object, masked
13150
- or otherwise, whether or not a key is stored.
13149
+ Encrypted-at-rest key material for this station's own identity, required whenever this
13150
+ station signs outbound messages or decrypts inbound ones. No GET returns this object
13151
+ today, masked or otherwise, whether or not a key is stored. On a PUT it round-trips as one secret, like
13152
+ every other `encrypted` object: send the string `"******"` as the whole `encrypted` value
13153
+ to keep the stored key, send the object with the PEM to replace it, and leave it out to
13154
+ clear it — the clear is rejected with 422 `Expected field: X.509 Private Key to be present`
13155
+ (nothing saved) while partnerStationInfo.signing or userStationInfo.encryptionType is not
13156
+ NONE, and silent when both are NONE.
13151
13157
  properties:
13152
13158
  userPrivateKey:
13153
13159
  type: string
@@ -13155,29 +13161,35 @@ components:
13155
13161
  description: |-
13156
13162
  PEM-encoded X.509 private key for this station, used to sign outbound messages and
13157
13163
  decrypt inbound ones. Never returned by a GET — not even as "******" — so its absence
13158
- from a read says nothing about whether a key is stored. Required in the body of every
13159
- PUT while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE
13160
- (422 `Expected field: X.509 Private Key to be present` otherwise), so a GET→PUT round
13161
- trip must re-supply it; the routing script (`contentBasedFlowRouter`) is set with
13162
- PATCH, which never touches this key.
13164
+ from a read says nothing about whether a key is stored. Must be present on every PUT
13165
+ while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE:
13166
+ either the PEM again, or the whole `encrypted` value sent as the string `"******"`,
13167
+ which keeps the stored key (422 `Expected field: X.509 Private Key to be present`
13168
+ when the body carries neither). The routing script (`contentBasedFlowRouter`) is set
13169
+ with PATCH, which never touches this key.
13163
13170
  x-celigo-ui-override: Required by the connection form (as2.encrypted.userPrivateKey) when userStationInfo.encryptionType is not NONE — re-entered on every save, since the form never receives it back. The live API additionally requires it when partnerStationInfo.signing is not NONE.
13164
13171
  x-celigo-ai-guidance:
13165
13172
  - |-
13166
13173
  A connection that returns signed MDNs or decrypts the partner's documents holds a
13167
13174
  working key even though no read shows it. Never report the key as missing because a
13168
- GET lacks it. A 422 naming the key means that save — create or update — omitted
13169
- userPrivateKey while partnerStationInfo.signing or userStationInfo.encryptionType
13170
- is not NONE; on an update, send the PEM again.
13175
+ GET lacks it. A 422 naming the key means that save — create or update — carried no
13176
+ userPrivateKey and no mask while partnerStationInfo.signing or
13177
+ userStationInfo.encryptionType is not NONE.
13178
+ - |-
13179
+ On an update, keep the stored key by setting `as2.encrypted` to the string
13180
+ `"******"` — the mask is the whole `encrypted` value, never a `userPrivateKey`
13181
+ property inside it — or send the PEM again. Never send a generated key beside a
13182
+ stored certificate: the pair must match.
13171
13183
  x-celigo-ai-guidance:
13172
13184
  - |-
13173
- Encrypted certificate and key data (stored encrypted at rest).
13174
- Required when signing or encryption is enabled (not NONE).
13175
- Auto-generated self-signed certificates will be injected if not provided.
13185
+ Nothing is generated for an omitted key: a create or update that needs one and
13186
+ carries neither the PEM nor the mask is refused with 422 `Expected field: X.509
13187
+ Private Key to be present`.
13176
13188
  unencrypted:
13177
13189
  type: object
13178
13190
  description: |-
13179
- Public certificate material for this station and the partner. integrator.io injects an
13180
- auto-generated self-signed certificate for this station when none is supplied.
13191
+ Public certificate material for this station and the partner. Nothing is generated
13192
+ for an omitted certificate: a save that needs one without it is refused with 422.
13181
13193
  properties:
13182
13194
  userPublicKey:
13183
13195
  type: string
@@ -13196,9 +13208,8 @@ components:
13196
13208
  x-celigo-ui-override: Required by the connection form (as2.unencrypted.partnerCertificate) when partnerStationInfo.encryptionType is not NONE. The live API additionally requires it when userStationInfo.signing is not NONE.
13197
13209
  x-celigo-ai-guidance:
13198
13210
  - |-
13199
- Unencrypted certificate data for identity and partner verification.
13200
- Required when signing or encryption is enabled (not NONE).
13201
- Auto-generated self-signed certificates will be injected if not provided.
13211
+ Nothing is generated for an omitted certificate: a save that needs one and does
13212
+ not carry it is refused with 422 naming the missing certificate.
13202
13213
  concurrencyLevel:
13203
13214
  type: integer
13204
13215
  description: |-
@@ -844,14 +844,17 @@ paths:
844
844
  static-token connection (no `http.auth.token.refreshMethod`) sent without
845
845
  `http.auth.token.token` is rejected with 422 `Expected field: refreshMethod to be present.`
846
846
 
847
- AS2 connections are the exception to the mask round-trip: `as2.encrypted.userPrivateKey`
848
- is never returned by a GET, so a body built from a read has nothing to send back for it.
849
- A PUT that leaves `as2.partnerStationInfo.signing` or `as2.userStationInfo.encryptionType`
850
- at anything but `NONE` must include the PEM private key again, or it is rejected with 422
851
- `Expected field: X.509 Private Key to be present` and nothing is saved (the stored key is
852
- not cleared by the refusal). Prefer `PATCH` for what it covers — the generic paths
853
- (`/name`, `/debugDate`, `/as2/concurrencyLevel`, `/as2/targetConcurrencyLevel`, …) and the
854
- AS2-specific routing-script leaves — since none of them needs the key.
847
+ AS2 connections differ from the mask round-trip on the read side only: a GET never returns
848
+ `as2.encrypted`, so a body built from a read has nothing to echo and the mask has to be
849
+ added by hand. The keep rule still applies — send `as2.encrypted` as the string `"******"`
850
+ (the whole value, not a `userPrivateKey` property inside it) and the stored private key is
851
+ kept; send the object with the PEM to replace it. A body without `as2.encrypted` clears the
852
+ stored key: while `as2.partnerStationInfo.signing` or `as2.userStationInfo.encryptionType`
853
+ is anything but `NONE` the PUT is rejected with 422 `Expected field: X.509 Private Key to be
854
+ present` and nothing is saved (the stored key survives the refusal); with both at `NONE` the
855
+ save goes through and the key is silently removed. Prefer `PATCH` for what it covers — the
856
+ generic paths (`/name`, `/debugDate`, `/as2/concurrencyLevel`, `/as2/targetConcurrencyLevel`,
857
+ …) and the AS2-specific routing-script leaves — since none of them needs the key.
855
858
 
856
859
  Three settings are the exception and survive an omission: `endUserProvidedFields`
857
860
  (send `null` to clear it — `[]` is treated like an omission), and on `ftp` connections
@@ -911,6 +914,26 @@ paths:
911
914
  headerName: Authorization
912
915
  scheme: Bearer
913
916
  token: <your-api-token>
917
+ as2:
918
+ summary: Full-replace an AS2 connection, keeping the stored private key
919
+ value:
920
+ name: Partner AS2
921
+ type: as2
922
+ as2:
923
+ as2Id: CELIGO-AS2
924
+ partnerId: PARTNER-AS2
925
+ unencrypted:
926
+ partnerCertificate: <partner-certificate-pem>
927
+ userPublicKey: <user-public-key-pem>
928
+ encrypted: '******'
929
+ partnerStationInfo:
930
+ as2URI: https://partner.example.com/as2
931
+ signing: SHA256
932
+ encryptionType: AES256
933
+ userStationInfo:
934
+ signing: SHA256
935
+ encryptionType: AES256
936
+ encoding: binary
914
937
  responses:
915
938
  '200':
916
939
  description: Connection updated successfully
@@ -1017,10 +1040,13 @@ paths:
1017
1040
  `refreshMethod`) fails the PUT with 422. To change only name, debug window, or concurrency
1018
1041
  settings without touching credentials, use PATCH instead.
1019
1042
  - |-
1020
- AS2 connections: the GET carries no `as2.encrypted` to echo. A PUT that keeps signing or
1021
- decryption on must include the PEM private key again (422 `Expected field: X.509 Private
1022
- Key to be present` otherwise, nothing saved); the routing script's two leaves and the
1023
- generic settings are PATCH paths and need no key.
1043
+ AS2 connections: the GET carries no `as2.encrypted` to echo, so add it yourself — set
1044
+ `as2.encrypted` to the string `"******"` (the whole value, never `{"userPrivateKey":
1045
+ "******"}`) and the stored private key is kept. A body without `as2.encrypted` clears the
1046
+ key: 422 `Expected field: X.509 Private Key to be present` (nothing saved) while signing
1047
+ or decryption is on, a silent removal when both are NONE. Never send a generated key
1048
+ beside the stored certificate. The routing script's two leaves and the generic settings
1049
+ are PATCH paths and need no key.
1024
1050
  patch:
1025
1051
  x-internal: false
1026
1052
  summary: Patch a connection
@@ -3291,6 +3317,9 @@ paths:
3291
3317
  Use this instead of the connection's `netsuite.suiteAppInstalled`, which reflects only the
3292
3318
  SuiteApp as detected the last time the connection authenticated. For a single combined
3293
3319
  reachability result, or for a Salesforce connection, use `GET /v1/connections/{_id}/distributed`.
3320
+
3321
+ A service token scoped to the connection is accepted here while `distributed` refuses it
3322
+ today; IO-239269 and IO-239271 align the two routes on the connection scope.
3294
3323
  operationId: getConnectionDistributedApps
3295
3324
  tags:
3296
3325
  - Connections
@@ -3377,6 +3406,12 @@ paths:
3377
3406
  - |-
3378
3407
  A non-NetSuite connection answers 422 with the message "invalid connection type: <type>"
3379
3408
  and no `code`; an unknown `_id` answers 404 `invalid_ref`.
3409
+ - |-
3410
+ A service token scoped to the connection is accepted here while
3411
+ `GET /v1/connections/{_id}/distributed` refuses it with 401 `access_restricted` today
3412
+ (IO-239269 and IO-239271 align the two routes on the connection scope): read a 200 as the
3413
+ saved NetSuite credentials and the components answering, and a 401 from `distributed`
3414
+ beside it as the token's scope, not the connection.
3380
3415
  /v1/connections/{_id}/distributed:
3381
3416
  get:
3382
3417
  x-internal: false
@@ -3392,6 +3427,10 @@ paths:
3392
3427
  Use `GET /v1/connections/{_id}/distributedApps` instead when you need the NetSuite bundle
3393
3428
  and SuiteApp reported separately; this endpoint is the only one of the two that also covers
3394
3429
  Salesforce. Any other connection type is rejected with 422.
3430
+
3431
+ Today the call needs a full-access API token: a service token scoped to the connection is
3432
+ refused with 401 `access_restricted` even for its own connection, while `distributedApps`
3433
+ accepts the same token. IO-239269 adds the connection scope to this route's check.
3395
3434
  operationId: pingConnectionDistributedAdaptor
3396
3435
  tags:
3397
3436
  - Connections
@@ -3430,7 +3469,7 @@ paths:
3430
3469
  resBody: 'Connection is taken offline: expired access/refresh token'
3431
3470
  bundleURL: https://mycompany.my.salesforce.com/packaging/installPackage.apexp?p0=04t3m000000Q89d
3432
3471
  '401':
3433
- $ref: '#/components/responses/401-unauthorized'
3472
+ $ref: '#/components/responses/401-unauthorized-or-scoped-token'
3434
3473
  '404':
3435
3474
  description: No connection found for the given `_id`.
3436
3475
  content:
@@ -3455,6 +3494,13 @@ paths:
3455
3494
  errors:
3456
3495
  - message: 'invalid connection type: http'
3457
3496
  x-celigo-ai-guidance:
3497
+ - |-
3498
+ Advise a full-access API token for this call: a service token scoped to the connection is
3499
+ refused with 401 `access_restricted` ("You don't have the required permissions to perform
3500
+ the action.") even for its own connection (IO-239269 adds the connection scope to the
3501
+ route's check). The same scoped token is accepted by
3502
+ `GET /v1/connections/{_id}/distributedApps`, so a 401 here beside a 200 there is the
3503
+ token's scope, not the connection or NetSuite.
3458
3504
  - |-
3459
3505
  A non-NetSuite, non-Salesforce connection answers 422 with the message "invalid
3460
3506
  connection type: <type>" and no `code`; an unknown `_id` answers 404 `invalid_ref`.
@@ -8870,12 +8916,18 @@ components:
8870
8916
  description: When true, message content is compressed. Not exposed in the connection form.
8871
8917
  default: false
8872
8918
  encrypted:
8873
- type: object
8919
+ type:
8920
+ - object
8921
+ - string
8874
8922
  description: |-
8875
- Encrypted-at-rest key material for this station's own identity. Supply when this station
8876
- signs outbound messages or decrypts inbound messages; integrator.io injects an
8877
- auto-generated self-signed key otherwise. Write-only: no GET returns this object, masked
8878
- or otherwise, whether or not a key is stored.
8923
+ Encrypted-at-rest key material for this station's own identity, required whenever this
8924
+ station signs outbound messages or decrypts inbound ones. No GET returns this object
8925
+ today, masked or otherwise, whether or not a key is stored. On a PUT it round-trips as one secret, like
8926
+ every other `encrypted` object: send the string `"******"` as the whole `encrypted` value
8927
+ to keep the stored key, send the object with the PEM to replace it, and leave it out to
8928
+ clear it — the clear is rejected with 422 `Expected field: X.509 Private Key to be present`
8929
+ (nothing saved) while partnerStationInfo.signing or userStationInfo.encryptionType is not
8930
+ NONE, and silent when both are NONE.
8879
8931
  properties:
8880
8932
  userPrivateKey:
8881
8933
  type: string
@@ -8883,29 +8935,35 @@ components:
8883
8935
  description: |-
8884
8936
  PEM-encoded X.509 private key for this station, used to sign outbound messages and
8885
8937
  decrypt inbound ones. Never returned by a GET — not even as "******" — so its absence
8886
- from a read says nothing about whether a key is stored. Required in the body of every
8887
- PUT while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE
8888
- (422 `Expected field: X.509 Private Key to be present` otherwise), so a GET→PUT round
8889
- trip must re-supply it; the routing script (`contentBasedFlowRouter`) is set with
8890
- PATCH, which never touches this key.
8938
+ from a read says nothing about whether a key is stored. Must be present on every PUT
8939
+ while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE:
8940
+ either the PEM again, or the whole `encrypted` value sent as the string `"******"`,
8941
+ which keeps the stored key (422 `Expected field: X.509 Private Key to be present`
8942
+ when the body carries neither). The routing script (`contentBasedFlowRouter`) is set
8943
+ with PATCH, which never touches this key.
8891
8944
  x-celigo-ui-override: Required by the connection form (as2.encrypted.userPrivateKey) when userStationInfo.encryptionType is not NONE — re-entered on every save, since the form never receives it back. The live API additionally requires it when partnerStationInfo.signing is not NONE.
8892
8945
  x-celigo-ai-guidance:
8893
8946
  - |-
8894
8947
  A connection that returns signed MDNs or decrypts the partner's documents holds a
8895
8948
  working key even though no read shows it. Never report the key as missing because a
8896
- GET lacks it. A 422 naming the key means that save — create or update — omitted
8897
- userPrivateKey while partnerStationInfo.signing or userStationInfo.encryptionType
8898
- is not NONE; on an update, send the PEM again.
8949
+ GET lacks it. A 422 naming the key means that save — create or update — carried no
8950
+ userPrivateKey and no mask while partnerStationInfo.signing or
8951
+ userStationInfo.encryptionType is not NONE.
8952
+ - |-
8953
+ On an update, keep the stored key by setting `as2.encrypted` to the string
8954
+ `"******"` — the mask is the whole `encrypted` value, never a `userPrivateKey`
8955
+ property inside it — or send the PEM again. Never send a generated key beside a
8956
+ stored certificate: the pair must match.
8899
8957
  x-celigo-ai-guidance:
8900
8958
  - |-
8901
- Encrypted certificate and key data (stored encrypted at rest).
8902
- Required when signing or encryption is enabled (not NONE).
8903
- Auto-generated self-signed certificates will be injected if not provided.
8959
+ Nothing is generated for an omitted key: a create or update that needs one and
8960
+ carries neither the PEM nor the mask is refused with 422 `Expected field: X.509
8961
+ Private Key to be present`.
8904
8962
  unencrypted:
8905
8963
  type: object
8906
8964
  description: |-
8907
- Public certificate material for this station and the partner. integrator.io injects an
8908
- auto-generated self-signed certificate for this station when none is supplied.
8965
+ Public certificate material for this station and the partner. Nothing is generated
8966
+ for an omitted certificate: a save that needs one without it is refused with 422.
8909
8967
  properties:
8910
8968
  userPublicKey:
8911
8969
  type: string
@@ -8924,9 +8982,8 @@ components:
8924
8982
  x-celigo-ui-override: Required by the connection form (as2.unencrypted.partnerCertificate) when partnerStationInfo.encryptionType is not NONE. The live API additionally requires it when userStationInfo.signing is not NONE.
8925
8983
  x-celigo-ai-guidance:
8926
8984
  - |-
8927
- Unencrypted certificate data for identity and partner verification.
8928
- Required when signing or encryption is enabled (not NONE).
8929
- Auto-generated self-signed certificates will be injected if not provided.
8985
+ Nothing is generated for an omitted certificate: a save that needs one and does
8986
+ not carry it is refused with 422 naming the missing certificate.
8930
8987
  concurrencyLevel:
8931
8988
  type: integer
8932
8989
  description: |-
@@ -12183,6 +12240,37 @@ components:
12183
12240
  errors:
12184
12241
  - code: dependencies_not_deleted
12185
12242
  message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
12243
+ 401-unauthorized-or-scoped-token:
12244
+ description: |-
12245
+ Unauthorized: the request has no valid bearer token (the auth middleware's bare `{message}`
12246
+ body, as on every route), or the token is a service token scoped to the connection — the
12247
+ route refuses it today with `access_restricted` in the standard `{errors: [...]}` envelope,
12248
+ even for the connection it is scoped to (IO-239269 adds the connection scope to the route's
12249
+ check). Call it with a full-access API token.
12250
+ content:
12251
+ application/json:
12252
+ schema:
12253
+ oneOf:
12254
+ - $ref: '#/components/schemas/Error'
12255
+ - type: object
12256
+ description: The auth middleware's bare body for a missing or invalid token.
12257
+ properties:
12258
+ message:
12259
+ type: string
12260
+ description: '`Unauthorized` (no Authorization header) or `Bearer Authentication Failed`.'
12261
+ required:
12262
+ - message
12263
+ examples:
12264
+ scopedToken:
12265
+ summary: A service token scoped to the connection
12266
+ value:
12267
+ errors:
12268
+ - code: access_restricted
12269
+ message: You don't have the required permissions to perform the action.
12270
+ invalidToken:
12271
+ summary: Bearer token invalid or revoked
12272
+ value:
12273
+ message: Bearer Authentication Failed
12186
12274
  422-unprocessable-entity:
12187
12275
  description: |
12188
12276
  Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
package/dist/enduser.yml CHANGED
@@ -6828,12 +6828,18 @@ components:
6828
6828
  description: When true, message content is compressed. Not exposed in the connection form.
6829
6829
  default: false
6830
6830
  encrypted:
6831
- type: object
6831
+ type:
6832
+ - object
6833
+ - string
6832
6834
  description: |-
6833
- Encrypted-at-rest key material for this station's own identity. Supply when this station
6834
- signs outbound messages or decrypts inbound messages; integrator.io injects an
6835
- auto-generated self-signed key otherwise. Write-only: no GET returns this object, masked
6836
- or otherwise, whether or not a key is stored.
6835
+ Encrypted-at-rest key material for this station's own identity, required whenever this
6836
+ station signs outbound messages or decrypts inbound ones. No GET returns this object
6837
+ today, masked or otherwise, whether or not a key is stored. On a PUT it round-trips as one secret, like
6838
+ every other `encrypted` object: send the string `"******"` as the whole `encrypted` value
6839
+ to keep the stored key, send the object with the PEM to replace it, and leave it out to
6840
+ clear it — the clear is rejected with 422 `Expected field: X.509 Private Key to be present`
6841
+ (nothing saved) while partnerStationInfo.signing or userStationInfo.encryptionType is not
6842
+ NONE, and silent when both are NONE.
6837
6843
  properties:
6838
6844
  userPrivateKey:
6839
6845
  type: string
@@ -6841,29 +6847,35 @@ components:
6841
6847
  description: |-
6842
6848
  PEM-encoded X.509 private key for this station, used to sign outbound messages and
6843
6849
  decrypt inbound ones. Never returned by a GET — not even as "******" — so its absence
6844
- from a read says nothing about whether a key is stored. Required in the body of every
6845
- PUT while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE
6846
- (422 `Expected field: X.509 Private Key to be present` otherwise), so a GET→PUT round
6847
- trip must re-supply it; the routing script (`contentBasedFlowRouter`) is set with
6848
- PATCH, which never touches this key.
6850
+ from a read says nothing about whether a key is stored. Must be present on every PUT
6851
+ while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE:
6852
+ either the PEM again, or the whole `encrypted` value sent as the string `"******"`,
6853
+ which keeps the stored key (422 `Expected field: X.509 Private Key to be present`
6854
+ when the body carries neither). The routing script (`contentBasedFlowRouter`) is set
6855
+ with PATCH, which never touches this key.
6849
6856
  x-celigo-ui-override: Required by the connection form (as2.encrypted.userPrivateKey) when userStationInfo.encryptionType is not NONE — re-entered on every save, since the form never receives it back. The live API additionally requires it when partnerStationInfo.signing is not NONE.
6850
6857
  x-celigo-ai-guidance:
6851
6858
  - |-
6852
6859
  A connection that returns signed MDNs or decrypts the partner's documents holds a
6853
6860
  working key even though no read shows it. Never report the key as missing because a
6854
- GET lacks it. A 422 naming the key means that save — create or update — omitted
6855
- userPrivateKey while partnerStationInfo.signing or userStationInfo.encryptionType
6856
- is not NONE; on an update, send the PEM again.
6861
+ GET lacks it. A 422 naming the key means that save — create or update — carried no
6862
+ userPrivateKey and no mask while partnerStationInfo.signing or
6863
+ userStationInfo.encryptionType is not NONE.
6864
+ - |-
6865
+ On an update, keep the stored key by setting `as2.encrypted` to the string
6866
+ `"******"` — the mask is the whole `encrypted` value, never a `userPrivateKey`
6867
+ property inside it — or send the PEM again. Never send a generated key beside a
6868
+ stored certificate: the pair must match.
6857
6869
  x-celigo-ai-guidance:
6858
6870
  - |-
6859
- Encrypted certificate and key data (stored encrypted at rest).
6860
- Required when signing or encryption is enabled (not NONE).
6861
- Auto-generated self-signed certificates will be injected if not provided.
6871
+ Nothing is generated for an omitted key: a create or update that needs one and
6872
+ carries neither the PEM nor the mask is refused with 422 `Expected field: X.509
6873
+ Private Key to be present`.
6862
6874
  unencrypted:
6863
6875
  type: object
6864
6876
  description: |-
6865
- Public certificate material for this station and the partner. integrator.io injects an
6866
- auto-generated self-signed certificate for this station when none is supplied.
6877
+ Public certificate material for this station and the partner. Nothing is generated
6878
+ for an omitted certificate: a save that needs one without it is refused with 422.
6867
6879
  properties:
6868
6880
  userPublicKey:
6869
6881
  type: string
@@ -6882,9 +6894,8 @@ components:
6882
6894
  x-celigo-ui-override: Required by the connection form (as2.unencrypted.partnerCertificate) when partnerStationInfo.encryptionType is not NONE. The live API additionally requires it when userStationInfo.signing is not NONE.
6883
6895
  x-celigo-ai-guidance:
6884
6896
  - |-
6885
- Unencrypted certificate data for identity and partner verification.
6886
- Required when signing or encryption is enabled (not NONE).
6887
- Auto-generated self-signed certificates will be injected if not provided.
6897
+ Nothing is generated for an omitted certificate: a save that needs one and does
6898
+ not carry it is refused with 422 naming the missing certificate.
6888
6899
  concurrencyLevel:
6889
6900
  type: integer
6890
6901
  description: |-
@@ -9966,12 +9966,18 @@ components:
9966
9966
  description: When true, message content is compressed. Not exposed in the connection form.
9967
9967
  default: false
9968
9968
  encrypted:
9969
- type: object
9969
+ type:
9970
+ - object
9971
+ - string
9970
9972
  description: |-
9971
- Encrypted-at-rest key material for this station's own identity. Supply when this station
9972
- signs outbound messages or decrypts inbound messages; integrator.io injects an
9973
- auto-generated self-signed key otherwise. Write-only: no GET returns this object, masked
9974
- or otherwise, whether or not a key is stored.
9973
+ Encrypted-at-rest key material for this station's own identity, required whenever this
9974
+ station signs outbound messages or decrypts inbound ones. No GET returns this object
9975
+ today, masked or otherwise, whether or not a key is stored. On a PUT it round-trips as one secret, like
9976
+ every other `encrypted` object: send the string `"******"` as the whole `encrypted` value
9977
+ to keep the stored key, send the object with the PEM to replace it, and leave it out to
9978
+ clear it — the clear is rejected with 422 `Expected field: X.509 Private Key to be present`
9979
+ (nothing saved) while partnerStationInfo.signing or userStationInfo.encryptionType is not
9980
+ NONE, and silent when both are NONE.
9975
9981
  properties:
9976
9982
  userPrivateKey:
9977
9983
  type: string
@@ -9979,29 +9985,35 @@ components:
9979
9985
  description: |-
9980
9986
  PEM-encoded X.509 private key for this station, used to sign outbound messages and
9981
9987
  decrypt inbound ones. Never returned by a GET — not even as "******" — so its absence
9982
- from a read says nothing about whether a key is stored. Required in the body of every
9983
- PUT while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE
9984
- (422 `Expected field: X.509 Private Key to be present` otherwise), so a GET→PUT round
9985
- trip must re-supply it; the routing script (`contentBasedFlowRouter`) is set with
9986
- PATCH, which never touches this key.
9988
+ from a read says nothing about whether a key is stored. Must be present on every PUT
9989
+ while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE:
9990
+ either the PEM again, or the whole `encrypted` value sent as the string `"******"`,
9991
+ which keeps the stored key (422 `Expected field: X.509 Private Key to be present`
9992
+ when the body carries neither). The routing script (`contentBasedFlowRouter`) is set
9993
+ with PATCH, which never touches this key.
9987
9994
  x-celigo-ui-override: Required by the connection form (as2.encrypted.userPrivateKey) when userStationInfo.encryptionType is not NONE — re-entered on every save, since the form never receives it back. The live API additionally requires it when partnerStationInfo.signing is not NONE.
9988
9995
  x-celigo-ai-guidance:
9989
9996
  - |-
9990
9997
  A connection that returns signed MDNs or decrypts the partner's documents holds a
9991
9998
  working key even though no read shows it. Never report the key as missing because a
9992
- GET lacks it. A 422 naming the key means that save — create or update — omitted
9993
- userPrivateKey while partnerStationInfo.signing or userStationInfo.encryptionType
9994
- is not NONE; on an update, send the PEM again.
9999
+ GET lacks it. A 422 naming the key means that save — create or update — carried no
10000
+ userPrivateKey and no mask while partnerStationInfo.signing or
10001
+ userStationInfo.encryptionType is not NONE.
10002
+ - |-
10003
+ On an update, keep the stored key by setting `as2.encrypted` to the string
10004
+ `"******"` — the mask is the whole `encrypted` value, never a `userPrivateKey`
10005
+ property inside it — or send the PEM again. Never send a generated key beside a
10006
+ stored certificate: the pair must match.
9995
10007
  x-celigo-ai-guidance:
9996
10008
  - |-
9997
- Encrypted certificate and key data (stored encrypted at rest).
9998
- Required when signing or encryption is enabled (not NONE).
9999
- Auto-generated self-signed certificates will be injected if not provided.
10009
+ Nothing is generated for an omitted key: a create or update that needs one and
10010
+ carries neither the PEM nor the mask is refused with 422 `Expected field: X.509
10011
+ Private Key to be present`.
10000
10012
  unencrypted:
10001
10013
  type: object
10002
10014
  description: |-
10003
- Public certificate material for this station and the partner. integrator.io injects an
10004
- auto-generated self-signed certificate for this station when none is supplied.
10015
+ Public certificate material for this station and the partner. Nothing is generated
10016
+ for an omitted certificate: a save that needs one without it is refused with 422.
10005
10017
  properties:
10006
10018
  userPublicKey:
10007
10019
  type: string
@@ -10020,9 +10032,8 @@ components:
10020
10032
  x-celigo-ui-override: Required by the connection form (as2.unencrypted.partnerCertificate) when partnerStationInfo.encryptionType is not NONE. The live API additionally requires it when userStationInfo.signing is not NONE.
10021
10033
  x-celigo-ai-guidance:
10022
10034
  - |-
10023
- Unencrypted certificate data for identity and partner verification.
10024
- Required when signing or encryption is enabled (not NONE).
10025
- Auto-generated self-signed certificates will be injected if not provided.
10035
+ Nothing is generated for an omitted certificate: a save that needs one and does
10036
+ not carry it is refused with 422 naming the missing certificate.
10026
10037
  concurrencyLevel:
10027
10038
  type: integer
10028
10039
  description: |-
package/dist/tool.yml CHANGED
@@ -12310,12 +12310,18 @@ components:
12310
12310
  description: When true, message content is compressed. Not exposed in the connection form.
12311
12311
  default: false
12312
12312
  encrypted:
12313
- type: object
12313
+ type:
12314
+ - object
12315
+ - string
12314
12316
  description: |-
12315
- Encrypted-at-rest key material for this station's own identity. Supply when this station
12316
- signs outbound messages or decrypts inbound messages; integrator.io injects an
12317
- auto-generated self-signed key otherwise. Write-only: no GET returns this object, masked
12318
- or otherwise, whether or not a key is stored.
12317
+ Encrypted-at-rest key material for this station's own identity, required whenever this
12318
+ station signs outbound messages or decrypts inbound ones. No GET returns this object
12319
+ today, masked or otherwise, whether or not a key is stored. On a PUT it round-trips as one secret, like
12320
+ every other `encrypted` object: send the string `"******"` as the whole `encrypted` value
12321
+ to keep the stored key, send the object with the PEM to replace it, and leave it out to
12322
+ clear it — the clear is rejected with 422 `Expected field: X.509 Private Key to be present`
12323
+ (nothing saved) while partnerStationInfo.signing or userStationInfo.encryptionType is not
12324
+ NONE, and silent when both are NONE.
12319
12325
  properties:
12320
12326
  userPrivateKey:
12321
12327
  type: string
@@ -12323,29 +12329,35 @@ components:
12323
12329
  description: |-
12324
12330
  PEM-encoded X.509 private key for this station, used to sign outbound messages and
12325
12331
  decrypt inbound ones. Never returned by a GET — not even as "******" — so its absence
12326
- from a read says nothing about whether a key is stored. Required in the body of every
12327
- PUT while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE
12328
- (422 `Expected field: X.509 Private Key to be present` otherwise), so a GET→PUT round
12329
- trip must re-supply it; the routing script (`contentBasedFlowRouter`) is set with
12330
- PATCH, which never touches this key.
12332
+ from a read says nothing about whether a key is stored. Must be present on every PUT
12333
+ while partnerStationInfo.signing or userStationInfo.encryptionType is not NONE:
12334
+ either the PEM again, or the whole `encrypted` value sent as the string `"******"`,
12335
+ which keeps the stored key (422 `Expected field: X.509 Private Key to be present`
12336
+ when the body carries neither). The routing script (`contentBasedFlowRouter`) is set
12337
+ with PATCH, which never touches this key.
12331
12338
  x-celigo-ui-override: Required by the connection form (as2.encrypted.userPrivateKey) when userStationInfo.encryptionType is not NONE — re-entered on every save, since the form never receives it back. The live API additionally requires it when partnerStationInfo.signing is not NONE.
12332
12339
  x-celigo-ai-guidance:
12333
12340
  - |-
12334
12341
  A connection that returns signed MDNs or decrypts the partner's documents holds a
12335
12342
  working key even though no read shows it. Never report the key as missing because a
12336
- GET lacks it. A 422 naming the key means that save — create or update — omitted
12337
- userPrivateKey while partnerStationInfo.signing or userStationInfo.encryptionType
12338
- is not NONE; on an update, send the PEM again.
12343
+ GET lacks it. A 422 naming the key means that save — create or update — carried no
12344
+ userPrivateKey and no mask while partnerStationInfo.signing or
12345
+ userStationInfo.encryptionType is not NONE.
12346
+ - |-
12347
+ On an update, keep the stored key by setting `as2.encrypted` to the string
12348
+ `"******"` — the mask is the whole `encrypted` value, never a `userPrivateKey`
12349
+ property inside it — or send the PEM again. Never send a generated key beside a
12350
+ stored certificate: the pair must match.
12339
12351
  x-celigo-ai-guidance:
12340
12352
  - |-
12341
- Encrypted certificate and key data (stored encrypted at rest).
12342
- Required when signing or encryption is enabled (not NONE).
12343
- Auto-generated self-signed certificates will be injected if not provided.
12353
+ Nothing is generated for an omitted key: a create or update that needs one and
12354
+ carries neither the PEM nor the mask is refused with 422 `Expected field: X.509
12355
+ Private Key to be present`.
12344
12356
  unencrypted:
12345
12357
  type: object
12346
12358
  description: |-
12347
- Public certificate material for this station and the partner. integrator.io injects an
12348
- auto-generated self-signed certificate for this station when none is supplied.
12359
+ Public certificate material for this station and the partner. Nothing is generated
12360
+ for an omitted certificate: a save that needs one without it is refused with 422.
12349
12361
  properties:
12350
12362
  userPublicKey:
12351
12363
  type: string
@@ -12364,9 +12376,8 @@ components:
12364
12376
  x-celigo-ui-override: Required by the connection form (as2.unencrypted.partnerCertificate) when partnerStationInfo.encryptionType is not NONE. The live API additionally requires it when userStationInfo.signing is not NONE.
12365
12377
  x-celigo-ai-guidance:
12366
12378
  - |-
12367
- Unencrypted certificate data for identity and partner verification.
12368
- Required when signing or encryption is enabled (not NONE).
12369
- Auto-generated self-signed certificates will be injected if not provided.
12379
+ Nothing is generated for an omitted certificate: a save that needs one and does
12380
+ not carry it is refused with 422 naming the missing certificate.
12370
12381
  concurrencyLevel:
12371
12382
  type: integer
12372
12383
  description: |-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.276",
3
+ "version": "0.2.278",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "d42dd833",
5
- "generatedAt": "2026-11-09"
4
+ "iasCommit": "17163da5",
5
+ "generatedAt": "2026-11-10"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 128,
@@ -3828,7 +3828,8 @@
3828
3828
  },
3829
3829
  {
3830
3830
  "t": [
3831
- "object"
3831
+ "object",
3832
+ "string"
3832
3833
  ],
3833
3834
  "p": {
3834
3835
  "userPrivateKey": 0