@celigo/api-specs 0.2.303 → 0.2.305

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.
@@ -95,7 +95,11 @@ paths:
95
95
  x-enumDescriptions:
96
96
  X12: ANSI X12 EDI standard.
97
97
  EDIFACT: UN/EDIFACT EDI standard.
98
- description: EDI file type.
98
+ description: |-
99
+ EDI file type. `TRADACOMS` records have no functional
100
+ acknowledgement and fail with 400 `tradacoms_patch_not_supported`
101
+ before any write; any other value fails with 422
102
+ `edi_update_failed`.
99
103
  examples:
100
104
  update_fa_status:
101
105
  summary: Mark a transaction as FA received
@@ -132,9 +136,9 @@ paths:
132
136
  ediTransactions: []
133
137
  '400':
134
138
  description: |-
135
- An `ediTransactions` entry is not an object, or an entry whose
136
- `faStatus` is `accepted` or `rejected` has an `_id` that is missing
137
- or is not a 24-character hex object ID.
139
+ `fileType` is `TRADACOMS`, an `ediTransactions` entry is not an
140
+ object, or an entry whose `faStatus` is `accepted` or `rejected` has
141
+ an `_id` that is missing or is not a 24-character hex object ID.
138
142
  content:
139
143
  application/json:
140
144
  schema:
@@ -146,10 +150,16 @@ paths:
146
150
  errors:
147
151
  - code: invalid_edi_transaction_id
148
152
  message: ediTransactions contains an invalid _id
153
+ tradacoms_patch_not_supported:
154
+ summary: fileType TRADACOMS
155
+ value:
156
+ errors:
157
+ - code: tradacoms_patch_not_supported
158
+ message: PATCH is not supported for TRADACOMS transactions
149
159
  '401':
150
160
  $ref: '#/components/responses/401-unauthorized'
151
161
  '422':
152
- description: The update failed — for example, `fileType` is not `X12` or `EDIFACT`.
162
+ description: The update failed — for example, `fileType` is not `X12`, `EDIFACT`, or `TRADACOMS`.
153
163
  content:
154
164
  application/json:
155
165
  schema:
@@ -185,7 +195,9 @@ paths:
185
195
  acknowledgement status, trading partner, lifecycle status, MDN status
186
196
  and date range; `view: lifecycle` with `mode: browse` groups the
187
197
  documents by order lifecycle (one collapsed row per group, newest
188
- activity first) and `mode: expand` opens one group. To fetch the raw
198
+ activity first) and `mode: expand` opens one group. `fileType: TRADACOMS`
199
+ returns flat rows only — any lifecycle view fails with 400
200
+ `tradacoms_list_only`. To fetch the raw
189
201
  EDI file for a returned record, use
190
202
  `POST /v1/jobs/{_flowJobId}/files/signedURL` with the record's
191
203
  `s3Key`.
@@ -491,7 +503,13 @@ paths:
491
503
  value:
492
504
  errors:
493
505
  - code: invalid_filetype
494
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
506
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
507
+ tradacoms_list_only:
508
+ summary: TRADACOMS query asked for the lifecycle view, a lifecycle mode, dual views, or a lifecycle page token
509
+ value:
510
+ errors:
511
+ - code: tradacoms_list_only
512
+ message: TRADACOMS supports list view only
495
513
  invalid_limit_value:
496
514
  value:
497
515
  errors:
@@ -645,6 +663,9 @@ paths:
645
663
  in `ediTransactions`, matched or not, each matched row naming the fields
646
664
  it matched in `matchedFields`.
647
665
 
666
+ `source: TRADACOMS` searches the list view only: `viewMode` defaults to
667
+ `list` and a lifecycle view fails with 400 `tradacoms_list_only`.
668
+
648
669
  X12 `documentType` values come back labeled with the functional group
649
670
  code, for example `PO 850`. Requires a B2B / EDI license and permission to
650
671
  read EDI transactions.
@@ -703,6 +724,12 @@ paths:
703
724
  errors:
704
725
  - code: keyword_too_long
705
726
  message: keyword must not exceed 100 characters
727
+ tradacoms_list_only:
728
+ summary: TRADACOMS search with viewMode dual or lifecycle, filters.lifecycleStatus, or visibleColumns.lifecycle
729
+ value:
730
+ errors:
731
+ - code: tradacoms_list_only
732
+ message: TRADACOMS supports list view only
706
733
  invalid_keyword:
707
734
  summary: keyword contains control characters
708
735
  value:
@@ -713,7 +740,7 @@ paths:
713
740
  value:
714
741
  errors:
715
742
  - code: invalid_source
716
- message: source must be X12 or EDIFACT
743
+ message: source must be X12, EDIFACT, or TRADACOMS
717
744
  invalid_view_mode:
718
745
  value:
719
746
  errors:
@@ -830,7 +857,12 @@ paths:
830
857
  modified, Lifecycle status, File type), then X12 adds ISA no., GS no.,
831
858
  ST no., ISA sender, ISA receiver, GS sender, and GS receiver, while
832
859
  EDIFACT adds UNB no., UNH no., UNB sender, and UNB receiver; both end
833
- with ACK details and MDN status.
860
+ with ACK details and MDN status. TRADACOMS exports take the list view
861
+ only and have their own columns: Doc no., Doc type, Direction, ACK status,
862
+ Partner, Last modified, File type, STX no., MHD
863
+ no., File control Number, STX sender id, STX sender name, STX receiver
864
+ id, STX receiver name, and MDN status — no Ref doc, Lifecycle status, or
865
+ ACK details.
834
866
 
835
867
  The signed URL expires 15 minutes after generation (S3
836
868
  `X-Amz-Expires=900`); fetch it promptly and do not persist it.
@@ -892,6 +924,12 @@ paths:
892
924
  - code: EDI_DOWNLOAD_SOURCE_REQUIRED
893
925
  message: EDI file type/source (X12/EDIFACT) is missing. Ensure source is included.
894
926
  source: resource
927
+ tradacoms_list_only:
928
+ summary: TRADACOMS export with viewMode lifecycle or filters.lifecycleStatus
929
+ value:
930
+ errors:
931
+ - code: tradacoms_list_only
932
+ message: TRADACOMS supports list view only
895
933
  EDI_DOWNLOAD_VIEW_MODE_REQUIRED:
896
934
  value:
897
935
  errors:
@@ -941,7 +979,9 @@ paths:
941
979
  Returns the values for the B2B Manager dashboard filter dropdowns of one
942
980
  EDI standard: the document types and trading partners found in the
943
981
  caller's transactions, plus the direction, functional acknowledgment,
944
- lifecycle, and MDN status values the filters accept.
982
+ lifecycle, and MDN status values the filters accept. TRADACOMS has no
983
+ lifecycle view, so its response omits `lifecycleStatus` and lists only
984
+ `notApplicable` in `faStatus`.
945
985
  parameters:
946
986
  - name: source
947
987
  in: query
@@ -951,9 +991,11 @@ paths:
951
991
  enum:
952
992
  - X12
953
993
  - EDIFACT
994
+ - TRADACOMS
954
995
  x-enumDescriptions:
955
996
  X12: Values for the X12 tab.
956
997
  EDIFACT: Values for the EDIFACT tab.
998
+ TRADACOMS: Values for the TRADACOMS tab.
957
999
  description: EDI standard to return values for. Missing or any other value fails with `invalid_source`.
958
1000
  - name: sandbox
959
1001
  in: query
@@ -1016,11 +1058,11 @@ paths:
1016
1058
  $ref: '#/components/schemas/Error'
1017
1059
  examples:
1018
1060
  invalid_source:
1019
- summary: source is missing or not X12 or EDIFACT
1061
+ summary: source is missing or not X12, EDIFACT, or TRADACOMS
1020
1062
  value:
1021
1063
  errors:
1022
1064
  - code: invalid_source
1023
- message: source must be X12 or EDIFACT
1065
+ message: source must be X12, EDIFACT, or TRADACOMS
1024
1066
  invalid_sandbox:
1025
1067
  summary: sandbox is not true or false
1026
1068
  value:
@@ -1063,8 +1105,11 @@ paths:
1063
1105
  Direction, Processed, ISA no., GS no., ST no., ISA sender, ISA receiver,
1064
1106
  GS sender, GS receiver, FA details, MDN status. EDIFACT exports replace
1065
1107
  FA status with ACK status and the ISA/GS/ST columns with UNB no.,
1066
- UNH no., UNB sender, UNB receiver. The Processed timestamp is rendered
1067
- in the account owner's timezone preference.
1108
+ UNH no., UNB sender, UNB receiver. TRADACOMS exports carry Doc no., Doc
1109
+ type, ACK status, File type, Direction, Processed, STX no., MHD no., File
1110
+ control Number, STX sender id, STX sender name, STX receiver id, STX
1111
+ receiver name, and MDN status. The Processed timestamp is rendered in the
1112
+ account owner's timezone preference.
1068
1113
 
1069
1114
  The signed URL expires 15 minutes after generation (S3
1070
1115
  `X-Amz-Expires=900`) — fetch it promptly and do not persist it. To browse
@@ -1079,13 +1124,15 @@ paths:
1079
1124
  enum:
1080
1125
  - X12
1081
1126
  - EDIFACT
1127
+ - TRADACOMS
1082
1128
  x-enumDescriptions:
1083
1129
  X12: Export the ANSI X12 transaction log.
1084
1130
  EDIFACT: Export the UN/EDIFACT transaction log.
1131
+ TRADACOMS: Export the UK TRADACOMS transaction log.
1085
1132
  description: |-
1086
1133
  Which transaction log to export. Defaults to `X12` when omitted —
1087
- pass `fileType=EDIFACT` explicitly to export EDIFACT records. The
1088
- two logs produce different CSV columns.
1134
+ pass `fileType=EDIFACT` or `fileType=TRADACOMS` explicitly to export
1135
+ those records. Each log produces different CSV columns.
1089
1136
  - name: startDate
1090
1137
  in: query
1091
1138
  required: false
@@ -1155,11 +1202,11 @@ paths:
1155
1202
  - code: invalid_date_range
1156
1203
  message: please provide a valid date range
1157
1204
  invalid_filetype:
1158
- summary: fileType is not X12 or EDIFACT
1205
+ summary: fileType is not X12, EDIFACT, or TRADACOMS
1159
1206
  value:
1160
1207
  errors:
1161
1208
  - code: invalid_filetype
1162
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
1209
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
1163
1210
  too_many_records:
1164
1211
  summary: Window matches more records than the export cap
1165
1212
  value:
@@ -1307,11 +1354,17 @@ paths:
1307
1354
  $ref: '#/components/schemas/Error'
1308
1355
  examples:
1309
1356
  invalid_filetype:
1310
- summary: fileType is not X12 or EDIFACT
1357
+ summary: fileType is not X12, EDIFACT, or TRADACOMS
1311
1358
  value:
1312
1359
  errors:
1313
1360
  - code: invalid_filetype
1314
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
1361
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
1362
+ tradacoms_fa_not_supported:
1363
+ summary: fileType=TRADACOMS, refused before the transaction is looked up
1364
+ value:
1365
+ errors:
1366
+ - code: tradacoms_fa_not_supported
1367
+ message: Functional acknowledgement details are not supported for TRADACOMS
1315
1368
  not_rejected:
1316
1369
  summary: Transaction is not in a rejected FA status
1317
1370
  value:
@@ -1610,7 +1663,9 @@ paths:
1610
1663
  by `lastModified` is returned. Partner ids use the same names as
1611
1664
  `POST /v1/ediTransactions/query`: `interchangeSenderId` /
1612
1665
  `interchangeReceiverId` for X12, `unbSenderId` / `unbReceiverId` for
1613
- EDIFACT. When no document number is known, use
1666
+ EDIFACT, `stxSenderId` / `stxReceiverId` for TRADACOMS. `fileType` is
1667
+ required and picks the EDI standard searched. When no document number is
1668
+ known, use
1614
1669
  `GET /v1/edi/documents/ediFile` with filters alone.
1615
1670
 
1616
1671
  Get `documentNumber` and `documentType` from a transaction record
@@ -1641,10 +1696,11 @@ paths:
1641
1696
  description: |-
1642
1697
  EDI document type code — for X12 the numeric transaction-set ID as
1643
1698
  a string (`850`, `810`, `856`, `997`); for EDIFACT the UNH01 message
1644
- type (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`). Case-insensitive. It
1645
- also selects the EDI standard the lookup runs against. `X12` and
1646
- `EDIFACT` name the standard, not a document type, and are rejected
1647
- here.
1699
+ type (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`); for TRADACOMS the MHD
1700
+ message type (`ORDERS`, `INVOIC`, `DELIVR`, `CREDIT`, `ACKMNT`).
1701
+ Case-insensitive. Must be a document type of `fileType`, otherwise
1702
+ 400 `edi_invalid_document_type`. `X12` and `EDIFACT` name the
1703
+ standard, not a document type, and are rejected here.
1648
1704
  examples:
1649
1705
  x12_850:
1650
1706
  value: '850'
@@ -1666,6 +1722,8 @@ paths:
1666
1722
  - $ref: '#/components/parameters/InterchangeReceiverId'
1667
1723
  - $ref: '#/components/parameters/UnbSenderId'
1668
1724
  - $ref: '#/components/parameters/UnbReceiverId'
1725
+ - $ref: '#/components/parameters/StxSenderId'
1726
+ - $ref: '#/components/parameters/StxReceiverId'
1669
1727
  responses:
1670
1728
  '200':
1671
1729
  description: The raw EDI file, streamed as the response body.
@@ -1687,8 +1745,14 @@ paths:
1687
1745
  errors:
1688
1746
  - code: document_type_required
1689
1747
  message: The "documentType" query parameter is required to process this request.
1748
+ missing_file_type:
1749
+ summary: fileType query parameter missing
1750
+ value:
1751
+ errors:
1752
+ - code: file_type_required
1753
+ message: The "fileType" query parameter is required to process this request.
1690
1754
  invalid:
1691
- summary: documentType names the standard (`X12` here; `EDIFACT` answers the same way), or fileType disagrees with documentType
1755
+ summary: documentType names the standard (`X12` here; `EDIFACT` answers the same way), or is not a document type of fileType
1692
1756
  value:
1693
1757
  errors:
1694
1758
  - code: edi_invalid_document_type
@@ -1767,13 +1831,12 @@ paths:
1767
1831
 
1768
1832
  `documentNumber` may be passed as a query parameter here; when it is,
1769
1833
  `documentType` becomes required — the same contract as
1770
- `GET /v1/edi/documents/{documentNumber}/ediFile`. When `documentNumber`
1771
- and `documentType` are both omitted, the lookup runs against X12 unless
1772
- `fileType` says `EDIFACT` — `unbSenderId` sent on its own is refused
1773
- with `invalid_search_param_for_X12`. Partner ids
1774
- use the same names as `POST /v1/ediTransactions/query`:
1834
+ `GET /v1/edi/documents/{documentNumber}/ediFile`. `fileType` is required
1835
+ and picks the EDI standard searched; it does not count as a lookup
1836
+ filter. Partner ids use the same names as `POST /v1/ediTransactions/query`:
1775
1837
  `interchangeSenderId` / `interchangeReceiverId` for X12,
1776
- `unbSenderId` / `unbReceiverId` for EDIFACT.
1838
+ `unbSenderId` / `unbReceiverId` for EDIFACT, `stxSenderId` /
1839
+ `stxReceiverId` for TRADACOMS.
1777
1840
 
1778
1841
  Public-API route only: there is no equivalent for applications acting
1779
1842
  with a signed-in user's session. Downloads are rate limited per user.
@@ -1800,6 +1863,8 @@ paths:
1800
1863
  - $ref: '#/components/parameters/InterchangeReceiverId'
1801
1864
  - $ref: '#/components/parameters/UnbSenderId'
1802
1865
  - $ref: '#/components/parameters/UnbReceiverId'
1866
+ - $ref: '#/components/parameters/StxSenderId'
1867
+ - $ref: '#/components/parameters/StxReceiverId'
1803
1868
  responses:
1804
1869
  '200':
1805
1870
  description: |-
@@ -1829,18 +1894,24 @@ paths:
1829
1894
  errors:
1830
1895
  - code: document_type_required
1831
1896
  message: The "documentType" query parameter is required to process this request.
1897
+ missing_file_type:
1898
+ summary: fileType query parameter missing
1899
+ value:
1900
+ errors:
1901
+ - code: file_type_required
1902
+ message: The "fileType" query parameter is required to process this request.
1832
1903
  partner_id_for_other_standard:
1833
1904
  summary: X12 partner id on an EDIFACT lookup
1834
1905
  value:
1835
1906
  errors:
1836
1907
  - code: invalid_search_param_for_EDIFACT
1837
1908
  message: invalid search param interchangeSenderId for filetype EDIFACT
1838
- partner_id_without_a_standard:
1839
- summary: unbSenderId with neither documentType nor fileType — the lookup ran against X12
1909
+ partner_id_for_tradacoms:
1910
+ summary: EDIFACT partner id on a TRADACOMS lookup
1840
1911
  value:
1841
1912
  errors:
1842
- - code: invalid_search_param_for_X12
1843
- message: invalid search param unbSenderId for filetype X12
1913
+ - code: invalid_search_param_for_TRADACOMS
1914
+ message: invalid search param unbSenderId for filetype TRADACOMS
1844
1915
  invalid_sandbox:
1845
1916
  summary: sandbox outside true / false
1846
1917
  value:
@@ -2350,8 +2421,8 @@ components:
2350
2421
  type: string
2351
2422
  description: |-
2352
2423
  Document types to match, as the X12 transaction-set code or the
2353
- EDIFACT message type (`850`, `ORDERS`). An X12 code labeled with its
2354
- functional group (`PO 850`) is read as the bare code.
2424
+ EDIFACT or TRADACOMS message type (`850`, `ORDERS`). An X12 code labeled
2425
+ with its functional group (`PO 850`) is read as the bare code.
2355
2426
  examples:
2356
2427
  - - '850'
2357
2428
  - PO 810
@@ -2385,7 +2456,8 @@ components:
2385
2456
  Order-lifecycle steps to match against each record's
2386
2457
  `lifecycleStatus`. Takes the values
2387
2458
  `GET /v1/ediTransactions/filter-options` returns in `lifecycleStatus`;
2388
- anything else is rejected.
2459
+ anything else is rejected. TRADACOMS has no lifecycle, so a non-empty
2460
+ value with a TRADACOMS source fails with 400 `tradacoms_list_only`.
2389
2461
  examples:
2390
2462
  - - PO received
2391
2463
  - Invoice sent
@@ -2432,8 +2504,9 @@ components:
2432
2504
  Results are narrowed by `fileType`, `faStatus`, the `startDate`/`endDate`
2433
2505
  window, at most one search field — `documentNumber`, or
2434
2506
  `interchangeSenderId`/`interchangeReceiverId` for X12, or
2435
- `unbSenderId`/`unbReceiverId` for EDIFACT — and the dashboard's `filters`
2436
- object, which the server applies in full. A search value needs at least
2507
+ `unbSenderId`/`unbReceiverId` for EDIFACT, or
2508
+ `stxSenderId`/`stxReceiverId`/`fileControlNumber` for TRADACOMS — and the
2509
+ dashboard's `filters` object, which the server applies in full. A search value needs at least
2437
2510
  three characters and takes `*` only as its last character; a value ending
2438
2511
  in `*` also needs three characters before it and a `limit` of 100 or less.
2439
2512
  The top-level `direction`, `documentType`, and `_integrationId` are
@@ -2455,6 +2528,12 @@ components:
2455
2528
  - interchangeSenderId
2456
2529
  - required:
2457
2530
  - interchangeReceiverId
2531
+ - required:
2532
+ - stxSenderId
2533
+ - required:
2534
+ - stxReceiverId
2535
+ - required:
2536
+ - fileControlNumber
2458
2537
  - required:
2459
2538
  - documentNumber
2460
2539
  - unbSenderId
@@ -2465,21 +2544,63 @@ components:
2465
2544
  - unbSenderId
2466
2545
  - unbReceiverId
2467
2546
  else:
2468
- not:
2469
- anyOf:
2470
- - required:
2471
- - unbSenderId
2472
- - required:
2473
- - unbReceiverId
2474
- - required:
2475
- - documentNumber
2476
- - interchangeSenderId
2477
- - required:
2478
- - documentNumber
2479
- - interchangeReceiverId
2480
- - required:
2481
- - interchangeSenderId
2482
- - interchangeReceiverId
2547
+ if:
2548
+ properties:
2549
+ fileType:
2550
+ const: TRADACOMS
2551
+ required:
2552
+ - fileType
2553
+ then:
2554
+ not:
2555
+ anyOf:
2556
+ - required:
2557
+ - interchangeSenderId
2558
+ - required:
2559
+ - interchangeReceiverId
2560
+ - required:
2561
+ - unbSenderId
2562
+ - required:
2563
+ - unbReceiverId
2564
+ - required:
2565
+ - documentNumber
2566
+ - stxSenderId
2567
+ - required:
2568
+ - documentNumber
2569
+ - stxReceiverId
2570
+ - required:
2571
+ - documentNumber
2572
+ - fileControlNumber
2573
+ - required:
2574
+ - stxSenderId
2575
+ - stxReceiverId
2576
+ - required:
2577
+ - stxSenderId
2578
+ - fileControlNumber
2579
+ - required:
2580
+ - stxReceiverId
2581
+ - fileControlNumber
2582
+ else:
2583
+ not:
2584
+ anyOf:
2585
+ - required:
2586
+ - unbSenderId
2587
+ - required:
2588
+ - unbReceiverId
2589
+ - required:
2590
+ - stxSenderId
2591
+ - required:
2592
+ - stxReceiverId
2593
+ - required:
2594
+ - fileControlNumber
2595
+ - required:
2596
+ - documentNumber
2597
+ - interchangeSenderId
2598
+ - required:
2599
+ - documentNumber
2600
+ - interchangeReceiverId
2601
+ - required:
2602
+ - interchangeSenderId
2603
+ - interchangeReceiverId
2483
2604
  dependentRequired:
2484
2605
  endDate:
2485
2606
  - startDate
@@ -2489,12 +2610,17 @@ components:
2489
2610
  enum:
2490
2611
  - X12
2491
2612
  - EDIFACT
2613
+ - TRADACOMS
2492
2614
  x-enumDescriptions:
2493
2615
  X12: ANSI X12 EDI standard.
2494
2616
  EDIFACT: UN/EDIFACT EDI standard.
2617
+ TRADACOMS: UK TRADACOMS EDI standard. Flat rows only.
2495
2618
  description: |-
2496
2619
  EDI standard family. Defaults to `X12` when omitted — set
2497
- `fileType: EDIFACT` explicitly to query EDIFACT records.
2620
+ `fileType: EDIFACT` or `fileType: TRADACOMS` explicitly to query those
2621
+ records. TRADACOMS has no lifecycle view: `view: lifecycle`, a `mode`,
2622
+ `views` naming `lifecycle`, a lifecycle `pageToken`, or a
2623
+ `filters.lifecycleStatus` value fails with 400 `tradacoms_list_only`.
2498
2624
  interchangeSenderId:
2499
2625
  type: string
2500
2626
  pattern: ^[^*]{3,}\*?$
@@ -2531,6 +2657,33 @@ components:
2531
2657
  (`invalid_search_param_for_X12`).
2532
2658
  examples:
2533
2659
  - '7177587895'
2660
+ stxSenderId:
2661
+ type: string
2662
+ pattern: ^[^*]{3,}\*?$
2663
+ description: |-
2664
+ TRADACOMS only. Searches the STX sender code (STX FROM).
2665
+ Send it with `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2666
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2667
+ examples:
2668
+ - '5012345000009'
2669
+ stxReceiverId:
2670
+ type: string
2671
+ pattern: ^[^*]{3,}\*?$
2672
+ description: |-
2673
+ TRADACOMS only. Searches the STX receiver code (STX UNTO).
2674
+ Send it with `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2675
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2676
+ examples:
2677
+ - '5098765000004'
2678
+ fileControlNumber:
2679
+ type: string
2680
+ pattern: ^[^*]{3,}\*?$
2681
+ description: |-
2682
+ TRADACOMS only. Searches the record's file control number. Send it with
2683
+ `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2684
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2685
+ examples:
2686
+ - '000123'
2534
2687
  direction:
2535
2688
  type: string
2536
2689
  enum:
@@ -2957,6 +3110,11 @@ components:
2957
3110
  asc: Ascending.
2958
3111
  desc: Descending.
2959
3112
  description: Sort direction applied, including the default when the request set only `sortBy`.
3113
+ EDILifecycleExpandTransaction:
3114
+ description: A lifecycle group member on an expand response.
3115
+ allOf:
3116
+ - $ref: '#/components/schemas/EDITransaction'
3117
+ - type: object
2960
3118
  EDILifecycleExpandGroup:
2961
3119
  type: object
2962
3120
  required:
@@ -2967,7 +3125,7 @@ components:
2967
3125
  other members beneath it.
2968
3126
  properties:
2969
3127
  latestTransaction:
2970
- $ref: '#/components/schemas/EDITransaction'
3128
+ $ref: '#/components/schemas/EDILifecycleExpandTransaction'
2971
3129
  ediTransactions:
2972
3130
  type: array
2973
3131
  maxItems: 50
@@ -2977,7 +3135,7 @@ components:
2977
3135
  newest 50 are returned; check `truncated` to learn whether older
2978
3136
  members exist.
2979
3137
  items:
2980
- $ref: '#/components/schemas/EDITransaction'
3138
+ $ref: '#/components/schemas/EDILifecycleExpandTransaction'
2981
3139
  truncated:
2982
3140
  type: boolean
2983
3141
  description: Present and true when the group has more than 50 other members.
@@ -3097,9 +3255,11 @@ components:
3097
3255
  enum:
3098
3256
  - X12
3099
3257
  - EDIFACT
3258
+ - TRADACOMS
3100
3259
  x-enumDescriptions:
3101
3260
  X12: Search ANSI X12 transactions.
3102
3261
  EDIFACT: Search UN/EDIFACT transactions.
3262
+ TRADACOMS: Search UK TRADACOMS transactions. List view only.
3103
3263
  description: EDI standard to search. Anything else fails with `invalid_source`.
3104
3264
  viewMode:
3105
3265
  type: string
@@ -3114,7 +3274,9 @@ components:
3114
3274
  lifecycle: Return the lifecycle groups that contain a match in `ediTransactions`.
3115
3275
  description: |-
3116
3276
  Shape of the result. The dashboard uses the default, `dual`. Any other
3117
- value fails with `invalid_view_mode`.
3277
+ value fails with `invalid_view_mode`. With `source: TRADACOMS` the
3278
+ default is `list`, and `dual` or `lifecycle` fails with 400
3279
+ `tradacoms_list_only`.
3118
3280
  pageSize:
3119
3281
  type: integer
3120
3282
  minimum: 1
@@ -3176,7 +3338,9 @@ components:
3176
3338
  type: array
3177
3339
  items:
3178
3340
  type: string
3179
- description: Field names shown in the lifecycle view.
3341
+ description: |-
3342
+ Field names shown in the lifecycle view. Sending this key with
3343
+ `source: TRADACOMS` fails with 400 `tradacoms_list_only`.
3180
3344
  sortBy:
3181
3345
  type: string
3182
3346
  enum:
@@ -3465,9 +3629,11 @@ components:
3465
3629
  enum:
3466
3630
  - X12
3467
3631
  - EDIFACT
3632
+ - TRADACOMS
3468
3633
  x-enumDescriptions:
3469
3634
  X12: Export ANSI X12 transactions.
3470
3635
  EDIFACT: Export UN/EDIFACT transactions.
3636
+ TRADACOMS: Export UK TRADACOMS transactions. List view only.
3471
3637
  description: |-
3472
3638
  EDI standard to export. Missing or any other value, lowercase
3473
3639
  included, fails with `EDI_DOWNLOAD_SOURCE_REQUIRED`.
@@ -3483,7 +3649,9 @@ components:
3483
3649
  Dashboard view the export is taken from, recorded in the CSV's
3484
3650
  comment lines. Missing fails with `EDI_DOWNLOAD_VIEW_MODE_REQUIRED`;
3485
3651
  any other value, `dual` included, fails with
3486
- `EDI_DOWNLOAD_INVALID_VIEW_MODE`.
3652
+ `EDI_DOWNLOAD_INVALID_VIEW_MODE`. With `source: TRADACOMS` anything
3653
+ but `list` fails with 400 `tradacoms_list_only`, and so does a
3654
+ `filters.lifecycleStatus` value.
3487
3655
  keyword:
3488
3656
  type: string
3489
3657
  minLength: 3
@@ -3507,7 +3675,6 @@ components:
3507
3675
  - partner
3508
3676
  - direction
3509
3677
  - faStatus
3510
- - lifecycleStatus
3511
3678
  - mdnStatus
3512
3679
  description: |-
3513
3680
  Values for the dashboard filter dropdowns of one EDI standard. Pass them
@@ -3532,7 +3699,10 @@ components:
3532
3699
  type: array
3533
3700
  items:
3534
3701
  $ref: '#/components/schemas/EDIDashboardFAStatus'
3535
- description: Functional acknowledgment statuses the `faStatus` filter accepts.
3702
+ description: |-
3703
+ Functional acknowledgment statuses the `faStatus` filter accepts.
3704
+ TRADACOMS has no functional acknowledgment, so its list is only
3705
+ `notApplicable`.
3536
3706
  lifecycleStatus:
3537
3707
  type: array
3538
3708
  items:
@@ -3541,7 +3711,8 @@ components:
3541
3711
  Order-lifecycle steps the `lifecycleStatus` filter accepts. Besides
3542
3712
  the order-cycle steps listed under the EDI transaction's
3543
3713
  `lifecycleStatus`, production lists steps for other document types,
3544
- such as warehouse, transport, and freight documents.
3714
+ such as warehouse, transport, and freight documents. Absent for
3715
+ `source=TRADACOMS`, which has no lifecycle view.
3545
3716
  mdnStatus:
3546
3717
  type: array
3547
3718
  items:
@@ -3672,18 +3843,21 @@ components:
3672
3843
  FileType:
3673
3844
  name: fileType
3674
3845
  in: query
3675
- required: false
3846
+ required: true
3676
3847
  schema:
3677
3848
  type: string
3678
3849
  enum:
3679
3850
  - X12
3680
3851
  - EDIFACT
3852
+ - TRADACOMS
3681
3853
  x-enumDescriptions:
3682
3854
  X12: ANSI X12 EDI standard
3683
3855
  EDIFACT: UN/EDIFACT EDI standard
3856
+ TRADACOMS: UK TRADACOMS EDI standard
3684
3857
  description: |-
3685
- EDI standard the lookup runs against. Inferred from `documentType` when
3686
- one is sent, and must agree with it.
3858
+ EDI standard the lookup runs against. Required: a request without it
3859
+ fails with 400 `file_type_required`, and one that names no supported
3860
+ standard with 400 `invalid_filetype`.
3687
3861
  Direction:
3688
3862
  name: direction
3689
3863
  in: query
@@ -3783,7 +3957,7 @@ components:
3783
3957
  description: |-
3784
3958
  X12 only — the record's `isaSenderId` (ISA06), matched exactly or against
3785
3959
  the stored value padded with trailing spaces; letters are uppercased.
3786
- Rejected when the lookup runs against EDIFACT.
3960
+ Rejected when the lookup runs against EDIFACT or TRADACOMS.
3787
3961
  InterchangeReceiverId:
3788
3962
  name: interchangeReceiverId
3789
3963
  in: query
@@ -3794,7 +3968,8 @@ components:
3794
3968
  - CELIGOLABZ
3795
3969
  description: |-
3796
3970
  X12 only — the record's `isaReceiverId` (ISA08), matched like
3797
- `interchangeSenderId`. Rejected when the lookup runs against EDIFACT.
3971
+ `interchangeSenderId`. Rejected when the lookup runs against EDIFACT or
3972
+ TRADACOMS.
3798
3973
  UnbSenderId:
3799
3974
  name: unbSenderId
3800
3975
  in: query
@@ -3806,7 +3981,7 @@ components:
3806
3981
  description: |-
3807
3982
  EDIFACT only — the record's `unbSenderId` (UNB02), matched exactly or
3808
3983
  against the stored value padded with trailing spaces; letters are
3809
- uppercased. Rejected when the lookup runs against X12.
3984
+ uppercased. Rejected when the lookup runs against X12 or TRADACOMS.
3810
3985
  UnbReceiverId:
3811
3986
  name: unbReceiverId
3812
3987
  in: query
@@ -3817,7 +3992,30 @@ components:
3817
3992
  - CELIGOGLN
3818
3993
  description: |-
3819
3994
  EDIFACT only — the record's `unbReceiverId` (UNB04), matched like
3820
- `unbSenderId`. Rejected when the lookup runs against X12.
3995
+ `unbSenderId`. Rejected when the lookup runs against X12 or TRADACOMS.
3996
+ StxSenderId:
3997
+ name: stxSenderId
3998
+ in: query
3999
+ required: false
4000
+ schema:
4001
+ type: string
4002
+ examples:
4003
+ - '5012345000009'
4004
+ description: |-
4005
+ TRADACOMS only — matches the record's STX sender code. Rejected when the
4006
+ lookup runs against X12 or EDIFACT (`invalid_search_param_for_X12` /
4007
+ `invalid_search_param_for_EDIFACT`).
4008
+ StxReceiverId:
4009
+ name: stxReceiverId
4010
+ in: query
4011
+ required: false
4012
+ schema:
4013
+ type: string
4014
+ examples:
4015
+ - '5098765000004'
4016
+ description: |-
4017
+ TRADACOMS only — matches the record's STX receiver code. Rejected when
4018
+ the lookup runs against X12 or EDIFACT.
3821
4019
  DocumentType:
3822
4020
  name: documentType
3823
4021
  in: query
@@ -3829,8 +4027,11 @@ components:
3829
4027
  description: |-
3830
4028
  EDI document type code — for X12 the numeric transaction-set ID as a
3831
4029
  string (`850`, `810`, `856`, `997`); for EDIFACT the UNH01 message type
3832
- (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`). Case-insensitive. It also
3833
- selects the EDI standard the lookup runs against. `X12` and `EDIFACT`
3834
- name the standard, not a document type, and are rejected here.
4030
+ (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`); for TRADACOMS the MHD message
4031
+ type (`ORDERS`, `INVOIC`, `DELIVR`, `CREDIT`, `ACKMNT`). Case-insensitive.
4032
+ Must be a document type of `fileType` (`ORDERS` and `INVOIC` are valid for
4033
+ both EDIFACT and TRADACOMS); otherwise the lookup fails with 400
4034
+ `edi_invalid_document_type`. `X12` and `EDIFACT` name the standard, not a
4035
+ document type, and are rejected here.
3835
4036
  x-enable-proxy: true
3836
4037
  x-internal: false
package/dist/job.yml CHANGED
@@ -969,16 +969,18 @@ paths:
969
969
  summary: Get signed URL(s) to download job files
970
970
  description: |-
971
971
  Returns short-lived S3 pre-signed URLs for downloading files produced by the job (e.g. the rows exported to
972
- a CSV, an error-record dump, or a page-processor artifact). The URLs are typically valid for ~15 minutes.
972
+ a CSV, an error-record dump, or a page-processor artifact). The URLs are valid for 15 minutes (900 seconds).
973
973
 
974
- If `fileIds` is omitted in the request body, all of the job's current file artifacts are returned. If
975
- provided, only the matching files are included.
974
+ Omit `fileIds` to sign the job's current file artifacts, or pass `fileIds` to sign only those files. Every
975
+ id passed must be registered to this job: a list that mixes registered and unregistered ids fails with
976
+ `404` and signs nothing.
976
977
 
977
- Inspect the job's `files[]` array first (via `GET /v1/jobs/{_id}`) to discover available file IDs. Jobs
978
- with no files (common for `import` child jobs or jobs past `purgeAt`) return `204 No Content`. File ids
979
- are registered per job: if none of the requested `fileIds` are registered to this job (e.g. the file id
980
- belongs to a different job's run), the endpoint also returns `204 No Content` with an empty body rather
981
- than an error. The URLs expire after approximately 15 minutes -- fetch immediately, do not persist.
978
+ Inspect the job's `files[]` array first (via `GET /v1/jobs/{_id}`) to discover available file IDs. Use
979
+ the flow job's id: the id of one of its child export or import jobs fails with `404`. A flow job with no
980
+ files returns `204 No Content`. File ids are registered per job: if none of the requested `fileIds` are
981
+ registered to this job (e.g. the file id belongs to a different job's run), the endpoint also returns
982
+ `204 No Content` with an empty body rather than an error. The URLs expire -- fetch immediately, do not
983
+ persist.
982
984
  parameters:
983
985
  - name: _id
984
986
  in: path
@@ -998,7 +1000,7 @@ paths:
998
1000
  $ref: '#/components/schemas/JobFilesSignedUrlRequest'
999
1001
  examples:
1000
1002
  all_files:
1001
- summary: Download every file for the job
1003
+ summary: Sign the job's current files
1002
1004
  value: {}
1003
1005
  specific_file:
1004
1006
  summary: Download a specific file by id
@@ -1011,7 +1013,7 @@ paths:
1011
1013
  content:
1012
1014
  application/json:
1013
1015
  schema:
1014
- $ref: '#/components/schemas/JobFilesSignedUrlResponse'
1016
+ $ref: '#/components/schemas/JobFilesSignedUrlListResponse'
1015
1017
  examples:
1016
1018
  single_file:
1017
1019
  summary: One requested file — signedURLs array with one element
@@ -1027,7 +1029,22 @@ paths:
1027
1029
  '401':
1028
1030
  $ref: '#/components/responses/401-unauthorized'
1029
1031
  '404':
1030
- $ref: '#/components/responses/404-not-found'
1032
+ description: |-
1033
+ No flow job with this id is visible to the caller — an unknown id, or the id of a child export or
1034
+ import job (`invalid_ref`) — or `fileIds` mixes ids registered to this job with ids that aren't. The
1035
+ mixed list signs nothing, and its error body doesn't name the unregistered ids.
1036
+ content:
1037
+ application/json:
1038
+ schema:
1039
+ $ref: '#/components/schemas/Error'
1040
+ examples:
1041
+ jobNotFound:
1042
+ summary: Unknown job id, or a child export or import job's id
1043
+ value:
1044
+ errors:
1045
+ - code: invalid_ref
1046
+ message: 'Job not found: 69f54d6f47185f8c7a500597'
1047
+ source: internal
1031
1048
  /v1/jobs/{_id}/files:
1032
1049
  delete:
1033
1050
  x-internal: false
@@ -2134,8 +2151,8 @@ components:
2134
2151
  - string
2135
2152
  - 'null'
2136
2153
  description: |-
2137
- A single signed URL. Requests that pass `fileIds` return the `signedURLs` array instead, even for
2138
- a single file — check both fields.
2154
+ A single signed URL. `POST /v1/jobs/{_id}/files/signedURL` returns the `signedURLs` array instead,
2155
+ with or without `fileIds` and even for a single file — check both fields.
2139
2156
  examples:
2140
2157
  - https://integrator-templates.s3.us-east-1.amazonaws.com/694b97c4f4f1f4a1b9d9e001.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-Credential=AKIAEXAMPLE123%2F20260613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260613T120000Z&X-Amz-SignedHeaders=host&X-Amz-Signature=4f9b2c1e8a3d7f0b5c6e9a2d4f8b1c3e7a0d5f2b9c4e6a8d1f3b7c0e5a9d2f4b
2141
2158
  signedURLs:
@@ -2147,6 +2164,11 @@ components:
2147
2164
  type: string
2148
2165
  examples:
2149
2166
  - https://integrator-templates.s3.us-east-1.amazonaws.com/694b97c4f4f1f4a1b9d9e001.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-Credential=AKIAEXAMPLE123%2F20260613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260613T120000Z&X-Amz-SignedHeaders=host&X-Amz-Signature=4f9b2c1e8a3d7f0b5c6e9a2d4f8b1c3e7a0d5f2b9c4e6a8d1f3b7c0e5a9d2f4b
2167
+ JobFilesSignedUrlListResponse:
2168
+ description: Response of `POST /v1/jobs/{_id}/files/signedURL`.
2169
+ allOf:
2170
+ - $ref: '#/components/schemas/JobFilesSignedUrlResponse'
2171
+ - type: object
2150
2172
  JobDiagnosticsResponse:
2151
2173
  allOf:
2152
2174
  - $ref: '#/components/schemas/JobFilesSignedUrlResponse'
@@ -2,7 +2,7 @@ openapi: 3.2.0
2
2
  info:
3
3
  version: 1.0.0
4
4
  title: Notifications
5
- description: API for managing Celigo notification subscriptions — per-user alert routing for flow, connection, integration, and sync events.
5
+ description: API for managing Celigo notification subscriptions — per-user alert routing for flow, connection, integration, sync, and schema-drift events.
6
6
  servers:
7
7
  - url: https://api.integrator.io
8
8
  description: Production (US / default region)
@@ -18,8 +18,8 @@ tags:
18
18
  - name: Notifications
19
19
  description: |-
20
20
  Notification subscriptions control which users receive alerts for
21
- resource-level events (errors, status changes, completions) on flows,
22
- connections, integrations, and syncs. Each subscription routes alerts
21
+ resource-level events (errors, status changes, schema drift, completions) on
22
+ flows, connections, integrations, and syncs. Each subscription routes alerts
23
23
  to the email of the subscribed user.
24
24
 
25
25
  Subscriptions are account-scoped — an account admin can manage
@@ -38,7 +38,7 @@ paths:
38
38
  summary: List notification subscriptions
39
39
  description: |-
40
40
  Returns notification subscriptions for flows, connections, integrations,
41
- and syncs in the account. Without the `users=all` query parameter, the response is
41
+ syncs, and schema-drift emails in the account. Without the `users=all` query parameter, the response is
42
42
  scoped to the caller's own subscriptions. With `users=all`, every user's
43
43
  subscriptions in the account are returned.
44
44
 
@@ -92,6 +92,13 @@ paths:
92
92
  subscribedByUser:
93
93
  name: Alex Doe
94
94
  email: alex@example.com
95
+ - _id: 69f0123456789abcdef01234
96
+ type: sync_schema_drift
97
+ _syncId: 69e7549b0f8b6cd703e5d3b2
98
+ lastModified: '2026-11-01T09:00:00.000Z'
99
+ subscribedByUser:
100
+ name: Jane Doe
101
+ email: jane@example.com
95
102
  '204':
96
103
  description: |-
97
104
  Caller has no subscriptions in the current scope (default scope when
@@ -108,9 +115,12 @@ paths:
108
115
  summary: Subscribe / unsubscribe users to resource notifications
109
116
  description: |-
110
117
  Upserts a batch of notification subscriptions. Each item targets exactly one
111
- resource (`_flowId`, `_connectionId`, or `_integrationId`) plus a
112
- `subscribedByUserEmail`. `subscribed: true` creates (or keeps) the
113
- subscription; `subscribed: false` removes it.
118
+ resource (`_flowId`, `_connectionId`, `_integrationId`, or `_syncId`) plus a
119
+ `subscribedByUserEmail`. For schema-drift email subscriptions, set
120
+ `type: sync_schema_drift` and exactly one of `_syncId` or `_integrationId`.
121
+ Omit `type` for error subscriptions; the server infers the stored type from the
122
+ id. `subscribed: true` creates (or keeps) the subscription; `subscribed: false`
123
+ removes it.
114
124
 
115
125
  Returns a parallel array of per-item results — one entry per request item,
116
126
  in the same order. Each result carries `statusCode` (**201** when a subscription
@@ -119,11 +129,14 @@ paths:
119
129
  `errors[]` array on failures. An empty request body
120
130
  returns an empty array.
121
131
 
122
- The body is a bare array (maximum 500 items). Each item must carry
123
- exactly one of `_flowId` / `_connectionId` / `_integrationId` /
124
- `_syncId`. The response is a per-item status array; referencing a
125
- non-existent resource fails that item with `statusCode: 422` but
126
- does not fail the whole request.
132
+ The body is a bare array (maximum 500 items). Error items must carry exactly
133
+ one of `_flowId` / `_connectionId` / `_integrationId` / `_syncId`. Drift items
134
+ must carry `type: sync_schema_drift` and exactly one of `_syncId` /
135
+ `_integrationId`. The response is a per-item status array; referencing a
136
+ non-existent resource fails that item with `statusCode: 422` but does not fail
137
+ the whole request. An item with no target id, or a drift item that also sets
138
+ `_flowId` / `_connectionId` or sets both or neither of `_syncId` and
139
+ `_integrationId`, fails with `statusCode: 400` and code `invalid_request`.
127
140
 
128
141
  Subscribing (`subscribed: true`) on behalf of someone other than the account owner
129
142
  requires that `subscribedByUserEmail` belong to a user who accepted an account share
@@ -153,6 +166,13 @@ paths:
153
166
  - _connectionId: 5efe49fd2c1111472296f389
154
167
  subscribed: false
155
168
  subscribedByUserEmail: jane@example.com
169
+ subscribeSchemaDriftSync:
170
+ summary: Subscribe jane to schema-drift emails for one sync
171
+ value:
172
+ - type: sync_schema_drift
173
+ _syncId: 69e7549b0f8b6cd703e5d3b2
174
+ subscribed: true
175
+ subscribedByUserEmail: jane@example.com
156
176
  responses:
157
177
  '200':
158
178
  description: |-
@@ -174,7 +194,8 @@ paths:
174
194
  description: |-
175
195
  Per-item outcome: 201 when the subscription was created;
176
196
  200 when it already existed (subscribing again keeps the one
177
- record) or was removed; 422 when the referenced resource
197
+ record) or was removed; 400 when the item does not name a valid
198
+ target id combination; 422 when the referenced resource
178
199
  doesn't exist or the subscriber is not an active member of the
179
200
  account (details in `errors[]`).
180
201
  errors:
@@ -218,6 +239,13 @@ paths:
218
239
  - field: subscribedByUserEmail
219
240
  code: invalid_ref
220
241
  message: subscribedByUserEmail must be an accepted, active member of this account.
242
+ invalidTarget:
243
+ summary: A drift item set both _syncId and _integrationId
244
+ value:
245
+ - statusCode: 400
246
+ errors:
247
+ - code: invalid_request
248
+ message: Each array element in the request body should contain a valid _integrationId or _flowId or _syncId or _connectionId.
221
249
  '400':
222
250
  $ref: '#/components/responses/400-bad-request'
223
251
  '401':
@@ -310,8 +338,9 @@ components:
310
338
  - lastModified
311
339
  description: |-
312
340
  A notification subscription linking a user email to a single resource
313
- (flow, connection, integration, or sync). When the resource emits an
314
- alert (error, state change, etc.), the subscribed user is notified.
341
+ (flow, connection, integration, or sync) or to schema-drift emails for a
342
+ sync or integration. When the resource emits an alert (error, state change,
343
+ schema drift, etc.), the subscribed user is notified.
315
344
  allOf:
316
345
  - $ref: '#/components/schemas/ResourceResponse'
317
346
  - type: object
@@ -323,14 +352,18 @@ components:
323
352
  - connection
324
353
  - integration
325
354
  - sync
355
+ - sync_schema_drift
326
356
  x-enumDescriptions:
327
357
  flow: Subscription targets a flow resource.
328
358
  connection: Subscription targets a connection resource.
329
- integration: Subscription targets an integration resource.
330
- sync: Subscription targets a sync resource.
359
+ integration: Integration-wide subscription (flow alerts and sync errors across the integration).
360
+ sync: Subscription targets sync-error notifications for one sync.
361
+ sync_schema_drift: Subscription targets schema-drift emails for one sync or all syncs in an integration.
331
362
  description: |-
332
- Which resource class this subscription targets. Implies which of
333
- `_flowId` / `_connectionId` / `_integrationId` / `_syncId` is populated.
363
+ Stored subscription kind. For `flow`, `connection`, `integration`, and
364
+ `sync`, indicates which of `_flowId` / `_connectionId` / `_integrationId` /
365
+ `_syncId` is populated. For `sync_schema_drift`, `_syncId` or
366
+ `_integrationId` is populated (not both).
334
367
  _flowId:
335
368
  type: string
336
369
  format: objectId
@@ -348,14 +381,19 @@ components:
348
381
  _integrationId:
349
382
  type: string
350
383
  format: objectId
351
- description: 'Integration id when `type: integration`.'
384
+ description: |-
385
+ Integration id when `type: integration` (integration-wide flow alerts
386
+ and sync errors) or when `type: sync_schema_drift` with no `_syncId`
387
+ (schema-drift emails for all syncs in the integration).
352
388
  x-celigo-refModel: integrations
353
389
  examples:
354
390
  - 5d2c5a8f3e9b1c4a7f6d2e80
355
391
  _syncId:
356
392
  type: string
357
393
  format: objectId
358
- description: 'Sync id when `type: sync`.'
394
+ description: |-
395
+ Sync id when `type: sync` (sync errors for one sync) or when
396
+ `type: sync_schema_drift` (schema-drift emails for one sync).
359
397
  x-celigo-refModel: syncs
360
398
  examples:
361
399
  - 69e7549b0f8b6cd703e5d3b2
@@ -423,27 +461,45 @@ components:
423
461
  items:
424
462
  type: object
425
463
  description: |-
426
- A single subscribe / unsubscribe directive. Set exactly one of
427
- `_flowId`, `_connectionId`, `_integrationId`, or `_syncId`.
464
+ A single subscribe / unsubscribe directive. For error notifications, omit
465
+ `type` and set exactly one of `_flowId`, `_connectionId`, `_integrationId`,
466
+ or `_syncId`. For schema-drift notifications, set `type: sync_schema_drift`
467
+ and exactly one of `_syncId` (one sync) or `_integrationId` (all syncs in
468
+ that integration).
428
469
  if:
470
+ properties:
471
+ type:
472
+ const: sync_schema_drift
429
473
  required:
430
- - _flowId
474
+ - type
431
475
  then:
432
- not:
433
- anyOf:
434
- - required:
435
- - _connectionId
436
- - required:
437
- - _integrationId
438
- - required:
439
- - _syncId
476
+ allOf:
477
+ - not:
478
+ anyOf:
479
+ - required:
480
+ - _flowId
481
+ - required:
482
+ - _connectionId
483
+ - anyOf:
484
+ - required:
485
+ - _syncId
486
+ - required:
487
+ - _integrationId
488
+ - not:
489
+ allOf:
490
+ - required:
491
+ - _syncId
492
+ - required:
493
+ - _integrationId
440
494
  else:
441
495
  if:
442
496
  required:
443
- - _connectionId
497
+ - _flowId
444
498
  then:
445
499
  not:
446
500
  anyOf:
501
+ - required:
502
+ - _connectionId
447
503
  - required:
448
504
  - _integrationId
449
505
  - required:
@@ -451,19 +507,40 @@ components:
451
507
  else:
452
508
  if:
453
509
  required:
454
- - _integrationId
510
+ - _connectionId
455
511
  then:
456
512
  not:
513
+ anyOf:
514
+ - required:
515
+ - _integrationId
516
+ - required:
517
+ - _syncId
518
+ else:
519
+ if:
520
+ required:
521
+ - _integrationId
522
+ then:
523
+ not:
524
+ required:
525
+ - _syncId
526
+ else:
457
527
  required:
458
528
  - _syncId
459
- else:
460
- required:
461
- - _syncId
462
529
  properties:
530
+ type:
531
+ type: string
532
+ enum:
533
+ - sync_schema_drift
534
+ description: |-
535
+ Set only for schema-drift email subscriptions. Omit for error and other
536
+ notification subscriptions; the server infers the stored `type` from
537
+ whichever id is set.
538
+ x-enumDescriptions:
539
+ sync_schema_drift: Schema-drift emails for one sync (`_syncId`) or all syncs in an integration (`_integrationId`).
463
540
  _flowId:
464
541
  type: string
465
542
  format: objectId
466
- description: Flow id to subscribe / unsubscribe. Set exactly one of `_flowId` / `_connectionId` / `_integrationId` / `_syncId`.
543
+ description: Flow id to subscribe / unsubscribe. Set exactly one of `_flowId` / `_connectionId` / `_integrationId` / `_syncId` when `type` is omitted.
467
544
  x-celigo-refModel: flows
468
545
  examples:
469
546
  - 69497fc443fc1f9a03d31bd9
@@ -477,14 +554,24 @@ components:
477
554
  _integrationId:
478
555
  type: string
479
556
  format: objectId
480
- description: Integration id to subscribe / unsubscribe.
557
+ description: |-
558
+ Integration id to subscribe / unsubscribe. When `type` is omitted, targets
559
+ the integration-wide subscription (flow alerts and sync errors; stored as
560
+ `type: integration`), and creating it removes that subscriber's `type: sync`
561
+ subscriptions for syncs in the integration. With `type: sync_schema_drift`,
562
+ targets schema-drift emails for all syncs in the integration, and creating it
563
+ removes that subscriber's per-sync drift subscriptions for syncs in the
564
+ integration.
481
565
  x-celigo-refModel: integrations
482
566
  examples:
483
567
  - 5d2c5a8f3e9b1c4a7f6d2e80
484
568
  _syncId:
485
569
  type: string
486
570
  format: objectId
487
- description: Sync id to subscribe / unsubscribe.
571
+ description: |-
572
+ Sync id to subscribe / unsubscribe. When `type` is omitted, targets
573
+ sync-error notifications for that sync (stored as `type: sync`). With
574
+ `type: sync_schema_drift`, targets schema-drift emails for that sync.
488
575
  x-celigo-refModel: syncs
489
576
  examples:
490
577
  - 69e7549b0f8b6cd703e5d3b2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.303",
3
+ "version": "0.2.305",
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,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "7e502943",
4
+ "iasCommit": "bb2e5faf",
5
5
  "generatedAt": "2026-11-14"
6
6
  },
7
7
  "roots": {