@celigo/api-specs 0.2.300 → 0.2.302

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/agent.yml CHANGED
@@ -764,17 +764,23 @@ components:
764
764
  - agent_unreachable
765
765
  - heartbeat_stale
766
766
  - worker_unhealthy
767
+ - version_unsupported
768
+ - agent_blocked
767
769
  x-enumDescriptions:
768
770
  agent_unauthorized: The agent's credentials were rejected, so its heartbeats and tunnel are refused.
769
771
  agent_unreachable: The platform could not reach the agent over its tunnel.
770
772
  heartbeat_stale: No heartbeat arrived within the freshness window.
771
773
  worker_unhealthy: 'The agent''s last heartbeat reported `workerHealthy: false`.'
774
+ version_unsupported: The agent is reachable, but the platform's agent refusal policy declines to serve its agent version.
775
+ agent_blocked: The agent is reachable, but the platform's agent refusal policy has blocked it.
772
776
  description: |-
773
777
  Why the platform last marked this agent offline. Absent when the
774
778
  agent is online or was marked offline before this field existed.
775
779
  Source-only, as `workerHealthy`: the values and their meanings are
776
780
  read from the platform's heartbeat handling and have not been
777
- observed in a live response on the probe account.
781
+ observed in a live response on the probe account —
782
+ `version_unsupported` and `agent_blocked` included, which the agent
783
+ refusal policy sets on a reachable agent.
778
784
  examples:
779
785
  - heartbeat_stale
780
786
  _accessLevel:
package/dist/ai-agent.yml CHANGED
@@ -1256,6 +1256,7 @@ components:
1256
1256
  description: Name of the JSON schema, for `json_schema` output.
1257
1257
  strict:
1258
1258
  type: boolean
1259
+ default: false
1259
1260
  description: When true, the model must conform exactly to `jsonSchema`.
1260
1261
  jsonSchema:
1261
1262
  type: object
@@ -1789,7 +1790,11 @@ components:
1789
1790
  description: Reference to the Tool resource
1790
1791
  overrides:
1791
1792
  type: object
1792
- description: Per-agent overrides for the tool's internal resources
1793
+ description: |-
1794
+ Per-agent overrides for the tool's internal resources. A branch
1795
+ `inputFilter` sent under `overrides.routers` takes `version` and `rules`
1796
+ directly; in the export-filter wrapper `{type: "expression", expression:
1797
+ {...}}` it fails the save with 422 `invalid_router_branch_input_filter`.
1793
1798
  properties:
1794
1799
  connections:
1795
1800
  type: array
package/dist/api.yml CHANGED
@@ -6293,10 +6293,9 @@ components:
6293
6293
  description: |-
6294
6294
  Filter criteria for branch selection. Send `version` and `rules` directly on
6295
6295
  `inputFilter` — not inside the `{type: "expression", expression: {...}}` wrapper
6296
- that export and import filters use. A wrapped filter is saved without an error,
6297
- but the branch is stored with no `inputFilter` and takes every request.
6298
- x-celigo-ai-guidance:
6299
- - Read the API back after saving a branching router and check that each filtered branch still has its `inputFilter`; a filter sent in the export-filter wrapper is dropped on save without an error.
6296
+ that export and import filters use. A wrapped filter (no top-level `rules`, and a
6297
+ non-empty `expression` or `script` object) fails the save with 422
6298
+ `invalid_router_branch_input_filter`, naming the branch's path.
6300
6299
  properties:
6301
6300
  version:
6302
6301
  type: string
@@ -6669,8 +6668,10 @@ components:
6669
6668
 
6670
6669
  Send `version` and `rules` directly on `inputFilter`, not inside the
6671
6670
  `{type: "expression", expression: {...}}` wrapper that export and import filters use. A
6672
- wrapped filter is saved without an error, but the response is stored with no
6673
- `inputFilter`, so it matches every request that reaches it.
6671
+ wrapped filter (no top-level `rules`, and a non-empty `expression` or `script` object)
6672
+ fails the save with 422 `invalid_response_input_filter` "builder.responses[0].inputFilter
6673
+ uses the export/import filter wrapper { type, expression }. An API response inputFilter
6674
+ takes the expression fields directly: { version: "1", rules: [...] }."
6674
6675
  properties:
6675
6676
  version:
6676
6677
  type: string
@@ -7318,6 +7319,11 @@ components:
7318
7319
  PUT with `draft: false` clears the flag and the expiry, promoting the draft to a
7319
7320
  permanent API. PUT with `draft: true` on a non-draft API is silently ignored, and
7320
7321
  a PUT that omits the field leaves an existing draft flag unchanged.
7322
+ - |-
7323
+ Clearing the flag approves the draft, and the approval belongs to the person
7324
+ the draft was created for: in integrator.io they give it by accepting the
7325
+ draft. An agent acting for that person never sends `draft: false` for them,
7326
+ and never gives them this request as the way to keep a draft.
7321
7327
  Apim:
7322
7328
  type: array
7323
7329
  readOnly: true
@@ -13703,7 +13709,8 @@ components:
13703
13709
  headers:
13704
13710
  type: array
13705
13711
  description: |
13706
- Default HTTP headers included in every request to the MCP server.
13712
+ Default HTTP headers included in every request to the MCP server. On PUT, an
13713
+ `mcp.http` block that omits `headers` or sends `[]` clears the stored list.
13707
13714
  items:
13708
13715
  type: object
13709
13716
  properties:
@@ -1253,8 +1253,9 @@ paths:
1253
1253
 
1254
1254
  Inspect the response body, not the HTTP status, to determine the outcome: success and
1255
1255
  adaptor-level failures both return HTTP 200 — success is `{code: 200}`, failures are
1256
- `{errors: [...]}`. The only non-success status is 404, when `_id` does not resolve to a
1257
- connection.
1256
+ `{errors: [...]}`. The exceptions are an MCP connection whose handshake with the server
1257
+ fails, which answers 422 with an `{errors: [...]}` body that also carries `reqAndResKey`,
1258
+ and 404, when `_id` does not resolve to a connection.
1258
1259
  operationId: pingConnectionByGet
1259
1260
  tags:
1260
1261
  - Connections
@@ -1286,6 +1287,15 @@ paths:
1286
1287
  type: integer
1287
1288
  description: Mirrors the HTTP status — always 200 on success.
1288
1289
  example: 200
1290
+ reqAndResKey:
1291
+ type: string
1292
+ description: |-
1293
+ Trace key of the request and response the test recorded. Returned when
1294
+ the test sent a request, as for an `http` connection with `http.ping`
1295
+ set and for an MCP connection; an `http` connection with no `http.ping`
1296
+ answers `{code: 200}` alone.
1297
+ examples:
1298
+ - 5481068768352-75ff1f6ab1514c4d9a71042f14bdeb19
1289
1299
  additionalProperties: true
1290
1300
  - $ref: '#/components/schemas/Error'
1291
1301
  examples:
@@ -1293,6 +1303,7 @@ paths:
1293
1303
  summary: Connection reachable
1294
1304
  value:
1295
1305
  code: 200
1306
+ reqAndResKey: 5481068768352-75ff1f6ab1514c4d9a71042f14bdeb19
1296
1307
  dns_failure:
1297
1308
  summary: Connection's baseURI host could not be resolved
1298
1309
  value:
@@ -1317,12 +1328,16 @@ paths:
1317
1328
  - field: _id
1318
1329
  code: invalid_ref
1319
1330
  message: unable to find connection for the given id.
1331
+ '422':
1332
+ $ref: '#/components/responses/422-mcp-ping-failed'
1320
1333
  x-celigo-ai-guidance:
1321
1334
  - |-
1322
1335
  Behaves identically to POST /v1/connections/{_id}/ping and takes no request body — use
1323
1336
  whichever verb the client supports. Both verbs return HTTP 200 with {code: 200} on
1324
1337
  success and HTTP 200 with {errors: [...]} on adaptor-level failure, so inspect the body,
1325
- not the status code. On an `http` connection, {code: 200} shows reachability only once
1338
+ not the status code; an MCP connection whose handshake fails is the exception and
1339
+ answers 422 with an {errors: [...]} body that also carries reqAndResKey. On an `http`
1340
+ connection, {code: 200} shows reachability only once
1326
1341
  `http.ping` is set: with no ping configured, nothing is sent and the answer is
1327
1342
  {code: 200}, or `missing_token` for an authorization-code OAuth connection that holds no
1328
1343
  token yet. An OAuth connection requests a token only when the target answers 401, so a
@@ -1353,6 +1368,11 @@ paths:
1353
1368
  only, or between a Revoke and a completed Authorize — saves `offline: true` and answers
1354
1369
  this ping with `netsuite_wsdl_tba_mandatory` (`source: connection`); completing the
1355
1370
  authorization supplies the token.
1371
+ - |-
1372
+ A NetSuite `oauth` connection that NetSuite has not authorized — one created with the
1373
+ account id only, for example — saves `offline: true` and answers this ping with HTTP 200
1374
+ and `netsuite_oauth2_reconnect_required` (`source: connection`), whose message points
1375
+ to Save & Authorize in the UI.
1356
1376
  post:
1357
1377
  x-internal: false
1358
1378
  summary: Ping an existing connection
@@ -1374,8 +1394,10 @@ paths:
1374
1394
 
1375
1395
  Inspect the response body, not the HTTP status, to determine the outcome: success and
1376
1396
  adaptor-level failures both return HTTP 200 — success is `{code: 200}`, failures are
1377
- `{errors: [...]}`. The only non-success status is 404, when `_id` does not resolve to a
1378
- connection. For a not-yet-saved connection, use `POST /v1/connections/ping` instead.
1397
+ `{errors: [...]}`. The exceptions are an MCP connection whose handshake with the server
1398
+ fails, which answers 422 with an `{errors: [...]}` body that also carries `reqAndResKey`,
1399
+ and 404, when `_id` does not resolve to a connection. For a not-yet-saved connection, use
1400
+ `POST /v1/connections/ping` instead.
1379
1401
  operationId: pingConnection
1380
1402
  tags:
1381
1403
  - Connections
@@ -1419,6 +1441,15 @@ paths:
1419
1441
  type: integer
1420
1442
  description: Mirrors the HTTP status — always 200 on success.
1421
1443
  example: 200
1444
+ reqAndResKey:
1445
+ type: string
1446
+ description: |-
1447
+ Trace key of the request and response the test recorded. Returned when
1448
+ the test sent a request, as for an `http` connection with `http.ping`
1449
+ set and for an MCP connection; an `http` connection with no `http.ping`
1450
+ answers `{code: 200}` alone.
1451
+ examples:
1452
+ - 5481068768352-75ff1f6ab1514c4d9a71042f14bdeb19
1422
1453
  additionalProperties: true
1423
1454
  - $ref: '#/components/schemas/Error'
1424
1455
  examples:
@@ -1426,6 +1457,7 @@ paths:
1426
1457
  summary: HTTP connection reachable
1427
1458
  value:
1428
1459
  code: 200
1460
+ reqAndResKey: 5481068768352-75ff1f6ab1514c4d9a71042f14bdeb19
1429
1461
  upstream_401:
1430
1462
  summary: Remote system rejected the adaptor's auth
1431
1463
  value:
@@ -1454,12 +1486,13 @@ paths:
1454
1486
  - code: netsuite_wsdl_tba_mandatory
1455
1487
  message: The WSDL version being used requires Token Based Authentication(TBA). Please use TBA or choose a different WSDL version.
1456
1488
  source: connection
1457
- mcp_tools_list_failed:
1458
- summary: MCP server handshake failed
1489
+ netsuite_oauth2_reconnect_required:
1490
+ summary: NetSuite OAuth 2.0 connection that NetSuite has not authorized
1459
1491
  value:
1460
1492
  errors:
1461
- - code: mcp_tools_list_failed
1462
- message: Unable to retrieve the tool list. Please try again. fetch failed
1493
+ - code: netsuite_oauth2_reconnect_required
1494
+ message: This NetSuite connection needs to be re-authorized. Click Save & Authorize to reconnect.
1495
+ source: connection
1463
1496
  '401':
1464
1497
  $ref: '#/components/responses/401-unauthorized'
1465
1498
  '404':
@@ -1477,6 +1510,8 @@ paths:
1477
1510
  - field: _id
1478
1511
  code: invalid_ref
1479
1512
  message: unable to find connection for the given id.
1513
+ '422':
1514
+ $ref: '#/components/responses/422-mcp-ping-failed'
1480
1515
  x-celigo-ai-guidance:
1481
1516
  - |-
1482
1517
  Tests the connectivity and authentication of a connection; no application data is read or
@@ -1520,6 +1555,11 @@ paths:
1520
1555
  only, or between a Revoke and a completed Authorize — saves `offline: true` and answers
1521
1556
  this ping with `netsuite_wsdl_tba_mandatory` (`source: connection`); completing the
1522
1557
  authorization supplies the token.
1558
+ - |-
1559
+ A NetSuite `oauth` connection that NetSuite has not authorized — one created with the
1560
+ account id only, for example — saves `offline: true` and answers this ping with HTTP 200
1561
+ and `netsuite_oauth2_reconnect_required` (`source: connection`), whose message points
1562
+ to Save & Authorize in the UI.
1523
1563
  /v1/connections/{_id}/proxy:
1524
1564
  post:
1525
1565
  x-internal: false
@@ -9433,7 +9473,8 @@ components:
9433
9473
  headers:
9434
9474
  type: array
9435
9475
  description: |
9436
- Default HTTP headers included in every request to the MCP server.
9476
+ Default HTTP headers included in every request to the MCP server. On PUT, an
9477
+ `mcp.http` block that omits `headers` or sends `[]` clears the stored list.
9437
9478
  items:
9438
9479
  type: object
9439
9480
  properties:
@@ -10680,7 +10721,9 @@ components:
10680
10721
  neither id the POST answers 422 `agent_mode_only`; with `_agentGroupId` alone it does not).
10681
10722
  The agent establishes a secure tunnel between the on-premise environment and
10682
10723
  integrator.io. The connection form writes one of the two ids and omits the other; a
10683
- connection never carries both.
10724
+ connection never carries both. Microsoft Fabric Warehouse connections (`rdbms.type`
10725
+ `fabric`) are cloud-only: a create or update that sets `_agentId` fails with 422
10726
+ `invalid_field_value` on `_agentId`.
10684
10727
  examples:
10685
10728
  - 5f8d43a1b9e5a80011a35f2c
10686
10729
  _agentGroupId:
@@ -10980,6 +11023,20 @@ components:
10980
11023
  then:
10981
11024
  required:
10982
11025
  - rdbms
11026
+ if:
11027
+ properties:
11028
+ rdbms:
11029
+ properties:
11030
+ type:
11031
+ const: fabric
11032
+ required:
11033
+ - type
11034
+ required:
11035
+ - rdbms
11036
+ then:
11037
+ not:
11038
+ required:
11039
+ - _agentId
10983
11040
  else:
10984
11041
  if:
10985
11042
  properties:
@@ -12342,6 +12399,26 @@ components:
12342
12399
  errors:
12343
12400
  - code: dependencies_not_deleted
12344
12401
  message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
12402
+ 422-mcp-ping-failed:
12403
+ description: |-
12404
+ MCP connections only: the handshake with the server failed. The body is the `{errors: [...]}`
12405
+ envelope that other connection types return with HTTP 200 for an adaptor-level failure, plus a
12406
+ top-level `reqAndResKey` — an MCP connection's ping returns that key when it passes
12407
+ (`{code: 200, reqAndResKey}`) and when it fails. The message is the same whether the server is
12408
+ unreachable, answers with an HTTP error such as 401 or 500, or answers without speaking MCP,
12409
+ so it does not tell those cases apart; check the server URL and the connection's credentials.
12410
+ content:
12411
+ application/json:
12412
+ schema:
12413
+ $ref: '#/components/schemas/Error'
12414
+ examples:
12415
+ mcp_tools_list_failed:
12416
+ summary: MCP server unreachable
12417
+ value:
12418
+ errors:
12419
+ - code: mcp_tools_list_failed
12420
+ message: Unable to connect to the MCP server. Please check your connection settings and try again.
12421
+ reqAndResKey: 5481068767079-ebf965e5bcdb459a937a8a93dd46e513
12345
12422
  401-unauthorized-or-scoped-token:
12346
12423
  description: |-
12347
12424
  Unauthorized: the request has no valid bearer token (the auth middleware's bare `{message}`
@@ -2,13 +2,13 @@ openapi: 3.2.0
2
2
  info:
3
3
  version: 1.0.0
4
4
  title: EDI Profiles
5
- description: API for managing Celigo EDI profiles — interchange envelope configurations for X12 and EDIFACT document exchange.
5
+ description: API for managing Celigo EDI profiles — interchange envelope configurations for X12, EDIFACT, and TRADACOMS document exchange.
6
6
  x-celigo-ai-guidance:
7
7
  - |-
8
- EDI profiles define the interchange envelope configuration for EDI X12 and
9
- EDIFACT document exchange between trading partners.
8
+ EDI profiles define the interchange envelope configuration for EDI X12,
9
+ EDIFACT, and TRADACOMS document exchange between trading partners.
10
10
  They contain the control fields (ISA/GS for X12,
11
- UNB for EDIFACT) that identify sender/receiver, standards versions,
11
+ UNB for EDIFACT, STX for TRADACOMS) that identify sender/receiver, standards versions,
12
12
  and interchange control settings.
13
13
  servers:
14
14
  - url: https://api.integrator.io
@@ -26,10 +26,10 @@ tags:
26
26
  description: |-
27
27
  API for managing EDI profiles in Celigo.
28
28
 
29
- EDI profiles define the interchange envelope configuration for EDI X12 and
30
- EDIFACT document exchange between trading partners. They contain the control
31
- fields (ISA/GS for X12, UNB for EDIFACT) that identify sender/receiver,
32
- standards versions, and interchange control settings.
29
+ EDI profiles define the interchange envelope configuration for EDI X12,
30
+ EDIFACT, and TRADACOMS document exchange between trading partners. They contain
31
+ the control fields (ISA/GS for X12, UNB for EDIFACT, STX for TRADACOMS) that
32
+ identify sender/receiver, standards versions, and interchange control settings.
33
33
 
34
34
  ## EDI profile schema
35
35
 
@@ -47,6 +47,25 @@ paths:
47
47
  operationId: listEDIProfiles
48
48
  tags:
49
49
  - EDI Profiles
50
+ parameters:
51
+ - name: fileType
52
+ in: query
53
+ description: |-
54
+ Returns only the profiles of this EDI standard. Matching is exact and lower-case:
55
+ any other value, an empty value, or the parameter repeated fails with 400
56
+ `invalid_query_param`.
57
+ schema:
58
+ type: string
59
+ enum:
60
+ - edix12
61
+ - edifact
62
+ - tradacoms
63
+ x-enumDescriptions:
64
+ edix12: Only X12 profiles.
65
+ edifact: Only EDIFACT profiles.
66
+ tradacoms: Only TRADACOMS profiles.
67
+ examples:
68
+ - tradacoms
50
69
  responses:
51
70
  '200':
52
71
  description: Successfully retrieved list of EDI profiles
@@ -101,21 +120,36 @@ paths:
101
120
  controllingAgency: EU
102
121
  '204':
103
122
  description: No EDI profiles exist in the account
123
+ '400':
124
+ description: The `fileType` query parameter is not one of the three profile types.
125
+ content:
126
+ application/json:
127
+ schema:
128
+ $ref: '#/components/schemas/Error'
129
+ examples:
130
+ invalidFileType:
131
+ summary: Unknown fileType filter
132
+ value:
133
+ errors:
134
+ - message: The query parameter "fileType" has invalid value.
135
+ code: invalid_query_param
104
136
  '401':
105
137
  $ref: '#/components/responses/401-unauthorized'
106
138
  post:
107
139
  x-internal: false
108
140
  summary: Create an EDI profile
109
141
  description: |-
110
- Creates a new EDI profile for EDI X12 or EDIFACT document exchange.
142
+ Creates a new EDI profile for EDI X12, EDIFACT, or TRADACOMS document exchange.
111
143
  `fileType` is immutable after creation. Only `name` and `fileType`
112
- are required; all ISA/GS/UNB control fields default to safe values.
144
+ are required: the create sets `controlNumber` to 1 (and `controlNumberLength`
145
+ to 6 on a `tradacoms` profile) and stores no other field the body omits.
113
146
  x-celigo-ai-guidance:
114
147
  - |-
115
148
  The `fileType` field is immutable after creation and determines which set of
116
- interchange control fields are available: `edix12` (X12 ISA/GS segments) or
117
- `edifact` (EDIFACT UNB segment). Send the enum value (`edix12`/`edifact`),
118
- not the standard name (`X12`/`EDIFACT`).
149
+ interchange control fields are available: `edix12` (X12 ISA/GS segments),
150
+ `edifact` (EDIFACT UNB segment) or `tradacoms` (TRADACOMS STX segment). Send the
151
+ enum value (`edix12`/`edifact`/`tradacoms`), not the standard name
152
+ (`X12`/`EDIFACT`/`TRADACOMS`).
119
153
  operationId: createEDIProfile
120
154
  tags:
121
155
  - EDI Profiles
@@ -165,6 +199,19 @@ paths:
165
199
  versionNumber: D
166
200
  releaseNumber: 96A
167
201
  controllingAgency: UN
202
+ tradacoms:
203
+ summary: TRADACOMS profile
204
+ value:
205
+ name: Acme Retail TRADACOMS
206
+ fileType: tradacoms
207
+ tpInterchangeId: '5012345678900'
208
+ myInterchangeId: '5098765432109'
209
+ tpInterchangeName: ACME RETAIL LTD
210
+ myInterchangeName: MY COMPANY LTD
211
+ stxSyntaxId: ANA
212
+ stxSyntaxVersion: '1'
213
+ stxIncludeTime: true
214
+ controlNumberLength: 6
168
215
  responses:
169
216
  '201':
170
217
  description: EDI profile created successfully
@@ -180,6 +227,23 @@ paths:
180
227
  lastModified: '2026-06-09T17:30:12.481Z'
181
228
  name: Acme Corp X12
182
229
  fileType: edix12
230
+ controlNumber: 1
231
+ tradacoms:
232
+ summary: Created from the TRADACOMS request
233
+ value:
234
+ _id: 6af87a497ee27d1f025f039b
235
+ lastModified: '2026-11-14T15:12:09.273Z'
236
+ name: Acme Retail TRADACOMS
237
+ fileType: tradacoms
238
+ tpInterchangeId: '5012345678900'
239
+ myInterchangeId: '5098765432109'
240
+ controlNumber: 1
241
+ stxSyntaxId: ANA
242
+ stxSyntaxVersion: '1'
243
+ myInterchangeName: MY COMPANY LTD
244
+ tpInterchangeName: ACME RETAIL LTD
245
+ stxIncludeTime: true
246
+ controlNumberLength: 6
183
247
  '401':
184
248
  $ref: '#/components/responses/401-unauthorized'
185
249
  '422':
@@ -242,7 +306,8 @@ paths:
242
306
  summary: Update an EDI profile
243
307
  description: |-
244
308
  Updates an existing EDI profile. `fileType` cannot be changed after
245
- creation. Omitted fields are cleared to defaults.
309
+ creation. A field the body omits is removed from the profile; the create-time
310
+ defaults of `controlNumber` and `controlNumberLength` are not re-applied.
246
311
  operationId: updateEDIProfile
247
312
  tags:
248
313
  - EDI Profiles
@@ -264,13 +329,27 @@ paths:
264
329
  schema:
265
330
  $ref: '#/components/schemas/Request'
266
331
  examples:
267
- partial:
268
- summary: Update interchange IDs only
332
+ full-replace:
333
+ summary: Change the interchange IDs, resending every field to keep
269
334
  value:
270
335
  name: Dyno
271
336
  fileType: edix12
272
337
  tpInterchangeId: '9253390501'
273
338
  myInterchangeId: KOMAR3PL
339
+ controlNumber: 1
340
+ isa01: '00'
341
+ isa03: '00'
342
+ tpIdQualifier: '08'
343
+ myIdQualifier: ZZ
344
+ isa11: U
345
+ isa12: '00401'
346
+ isa14: '0'
347
+ isa15: T
348
+ isa16: ':'
349
+ tpGroupId: '9253390501'
350
+ myGroupId: KOMAR3PL
351
+ gs07: T
352
+ gs08: 004010UCS
274
353
  responses:
275
354
  '200':
276
355
  description: EDI profile updated successfully
@@ -400,13 +479,19 @@ components:
400
479
  enum:
401
480
  - edix12
402
481
  - edifact
482
+ - tradacoms
403
483
  x-enumDescriptions:
404
484
  edix12: ANSI X12 EDI standard using ISA/GS envelope segments.
405
485
  edifact: UN/EDIFACT EDI standard using UNB envelope segments.
406
- description: The EDI standard this profile is configured for. Immutable after creation.
486
+ tradacoms: UK TRADACOMS EDI standard using STX/END envelope segments; pairs with `delimited/tradacoms` file definitions.
487
+ description: |-
488
+ The EDI standard this profile is configured for. Immutable after creation: a PUT
489
+ that sends a different value fails with 422 `invalid_field`. The list operation's
490
+ `fileType` query parameter filters on the same three values.
407
491
  examples:
408
492
  - edix12
409
493
  - edifact
494
+ - tradacoms
410
495
  tpInterchangeId:
411
496
  type: string
412
497
  description: |-
@@ -434,9 +519,14 @@ components:
434
519
  controlNumber:
435
520
  type: integer
436
521
  minimum: 1
437
- maximum: 999999999
522
+ maximum: 99999999999999
438
523
  default: 1
439
- description: Current interchange control number. Incremented with each interchange sent.
524
+ description: |-
525
+ Current interchange control number, incremented with each interchange sent. X12 and
526
+ EDIFACT profiles accept 1 to 999999999; a `tradacoms` profile accepts up to the largest
527
+ number with `controlNumberLength` digits (999999 at the default of six), and a larger
528
+ value fails the save with 422. The default applies on create only: a PUT that omits
529
+ `controlNumber` removes it.
440
530
  examples:
441
531
  - 1
442
532
  - 1001
@@ -643,6 +733,45 @@ components:
643
733
  - UN
644
734
  - EC
645
735
  - AA
736
+ stxSyntaxId:
737
+ type: string
738
+ description: TRADACOMS STX syntax identifier written to the interchange header.
739
+ examples:
740
+ - ANA
741
+ stxSyntaxVersion:
742
+ type: string
743
+ description: TRADACOMS STX syntax version written to the interchange header.
744
+ examples:
745
+ - '1'
746
+ myInterchangeName:
747
+ type: string
748
+ description: Your interchange name, sent in the STX header alongside `myInterchangeId`.
749
+ examples:
750
+ - MY COMPANY LTD
751
+ tpInterchangeName:
752
+ type: string
753
+ description: Trading partner's interchange name, sent in the STX header alongside `tpInterchangeId`.
754
+ examples:
755
+ - ACME RETAIL LTD
756
+ stxIncludeTime:
757
+ type: boolean
758
+ description: When true, the STX header carries the transmission time as well as the date.
759
+ examples:
760
+ - true
761
+ controlNumberLength:
762
+ type: integer
763
+ minimum: 1
764
+ maximum: 14
765
+ default: 6
766
+ description: |-
767
+ Number of digits in the TRADACOMS interchange control number, which caps
768
+ `controlNumber`; stored only on a `tradacoms` profile. The default applies on create
769
+ only: a PUT that omits it removes it and leaves `controlNumber` uncapped, so send it
770
+ on every PUT. A non-integer or `null` value fails the save with 422 `invalid_type`
771
+ "Provided Control Number Length is of incorrect data type, expected Number but
772
+ received Decimal." (or `Null`).
773
+ examples:
774
+ - 6
646
775
  ResourceResponse:
647
776
  type: object
648
777
  description: Response
@@ -732,7 +861,7 @@ components:
732
861
  x-celigo-ai-guidance:
733
862
  - |-
734
863
  Contains the complete EDI profile configuration including metadata and
735
- all interchange control fields for the configured file type (X12 or EDIFACT).
864
+ all interchange control fields for the configured file type (X12, EDIFACT, or TRADACOMS).
736
865
  Error:
737
866
  type: object
738
867
  description: Standard error response envelope returned by integrator.io APIs.
@@ -777,7 +906,7 @@ components:
777
906
  type: object
778
907
  description: |-
779
908
  EDI profile configuration. The `fileType` field determines which set of
780
- interchange control fields apply (X12 ISA/GS or EDIFACT UNB) and is
909
+ interchange control fields apply (X12 ISA/GS, EDIFACT UNB, or TRADACOMS STX) and is
781
910
  immutable after creation. Fields for the other standard are ignored.
782
911
  x-celigo-ai-guidance:
783
912
  - Request schema for creating or updating an EDI profile.