@celigo/api-specs 0.2.1 → 0.2.2-IO-168454-EPIC-fb

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.
Files changed (44) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +201 -3
  3. package/dist/agent.yml +7 -0
  4. package/dist/ai-agent.yml +627 -135
  5. package/dist/api.yml +5953 -127
  6. package/dist/apim.yml +0 -4
  7. package/dist/asynchelper.yml +117 -22
  8. package/dist/audit.yml +41 -2
  9. package/dist/bartendertemplate.yml +508 -0
  10. package/dist/connection.yml +1166 -125
  11. package/dist/ediprofile.yml +7 -0
  12. package/dist/editransaction.yml +250 -14
  13. package/dist/enduser.yml +5778 -35
  14. package/dist/export.yml +1028 -983
  15. package/dist/filedefinition.yml +37 -0
  16. package/dist/filedefinitionrules.yml +722 -0
  17. package/dist/fileserver.yml +1316 -0
  18. package/dist/filestorage.yml +712 -330
  19. package/dist/flow.yml +169 -63
  20. package/dist/guardrail.yml +280 -489
  21. package/dist/httpconnectorendpoint.yml +602 -126
  22. package/dist/httpconnectorresource.yml +1160 -84
  23. package/dist/iclient.yml +131 -76
  24. package/dist/import.yml +1937 -236
  25. package/dist/integration.yml +1024 -42
  26. package/dist/job.yml +180 -92
  27. package/dist/lookupcache.yml +7 -0
  28. package/dist/marketplace.yml +285 -105
  29. package/dist/mcp-server.yml +6745 -68
  30. package/dist/notification.yml +33 -8
  31. package/dist/processor.yml +8 -3
  32. package/dist/recyclebin.yml +32 -2
  33. package/dist/script.yml +7 -0
  34. package/dist/stack.yml +642 -5
  35. package/dist/storagequery.yml +865 -0
  36. package/dist/subscription.yml +254 -58
  37. package/dist/sync.yml +383 -72
  38. package/dist/template.yml +39 -1
  39. package/dist/tool.yml +6099 -2242
  40. package/dist/topic.yml +1783 -0
  41. package/dist/tradingpartnerconnector.yml +10 -0
  42. package/dist/user.yml +238 -32
  43. package/package.json +13 -1
  44. package/schemas.json +2346 -1885
package/dist/job.yml CHANGED
@@ -333,7 +333,9 @@ paths:
333
333
  `canceled`, `retried`) are not returned; use `POST /v1/flows/runs/stats` for run history.
334
334
 
335
335
  The request body contains all filters -- there are no query-string parameters. Narrow to a specific flow or
336
- integration with `_flowIds` / `_integrationIds` (AND-combined).
336
+ integration with `_flowIds` / `_integrationIds` (not both — sending both is rejected with HTTP 400).
337
+ `time_gt` and `time_lte` are not filters on this endpoint; use `POST /v1/flows/runs/stats`. To find
338
+ long-running jobs, compare each job's `createdAt` or `startedAt` on the client.
337
339
  requestBody:
338
340
  required: true
339
341
  content:
@@ -361,12 +363,11 @@ paths:
361
363
  $ref: '#/components/schemas/JobsCurrentResponse'
362
364
  examples:
363
365
  one_page:
364
- summary: One queued retry job — single page, so no pagingPostBody
366
+ summary: One queued flow job — single page, so no pagingPostBody
365
367
  value:
366
368
  jobs:
367
369
  - _id: 69e9958f815ae7eae3d9146b
368
- type: retry
369
- _importId: 69e9953d7a8373d88147b5ec
370
+ type: flow
370
371
  _flowId: 69e99544f3a2ac489d0f7953
371
372
  status: queued
372
373
  numSuccess: 0
@@ -375,6 +376,11 @@ paths:
375
376
  numOpenError: 0
376
377
  createdAt: '2026-04-23T03:44:15.515Z'
377
378
  lastModified: '2026-04-23T03:44:15.532Z'
379
+ flow:
380
+ _id: 69e99544f3a2ac489d0f7953
381
+ name: Shopee
382
+ _integrationId: 69496f01615f724066afaac2
383
+ integrationName: Shopee
378
384
  '204':
379
385
  description: No in-progress jobs match the filter.
380
386
  '400':
@@ -387,6 +393,10 @@ paths:
387
393
  The request body supports filtering by integration, flow, status, and
388
394
  application. The platform requires ``sandbox`` in the body; Ora is
389
395
  production-only so it always sends ``false``.
396
+ - |-
397
+ Do not send time_gt or time_lte; they are not on this request. To find jobs
398
+ stuck for longer than a threshold, compare each job's createdAt or startedAt
399
+ on the client.
390
400
  /v1/flows/runs/stats:
391
401
  post:
392
402
  x-internal: false
@@ -1436,15 +1446,29 @@ components:
1436
1446
  triggeredBy:
1437
1447
  type: string
1438
1448
  readOnly: true
1439
- description: Who/what triggered the job (free-form string).
1449
+ description: |-
1450
+ What started the run. On a `flow` job: `system` for a scheduled run, the `_id` of
1451
+ the user who ran the flow, or the `_id` of the upstream flow whose `_runNextFlowIds`
1452
+ chained into this one; absent on event-driven runs (webhook, real-time listener, and
1453
+ stream page generators), which the inbound event starts. On a `retry` job: `auto`
1454
+ for the platform's automatic intermittent-error retry, otherwise the `_id` of the
1455
+ user who submitted the retry. Absent on `export` and `import` child jobs — the
1456
+ parent flow job carries it.
1440
1457
  examples:
1441
- - scheduler
1458
+ - system
1442
1459
  canceledBy:
1443
1460
  type: string
1444
1461
  readOnly: true
1445
- description: Who/what requested cancellation (free-form string).
1462
+ description: |-
1463
+ Who canceled the run: the `_id` of the user who requested the cancel, or `system` for
1464
+ every platform-initiated cancel — stuck-run recovery after a worker exit or crash or
1465
+ when a run stops making progress, stale-run cleanup, a scheduler that could not
1466
+ re-queue the run, and the cancels that follow deleting the flow or replacing one of
1467
+ its connections. The record does not say which of these it was.
1468
+ x-celigo-ai-guidance:
1469
+ - A `system` cancel is not something the user did and not a verdict on the flow's configuration, and by itself it does not prove the run was stuck — deleting the flow or replacing one of its connections cancels in-flight runs the same way; read the run's age and progress counters for that.
1446
1470
  examples:
1447
- - user
1471
+ - system
1448
1472
  flowExecutionGroupId:
1449
1473
  type: string
1450
1474
  readOnly: true
@@ -1457,6 +1481,7 @@ components:
1457
1481
  description: |
1458
1482
  Total number of errors produced by the job (including resolved ones).
1459
1483
  Use `numOpenError` for the count of currently unresolved errors.
1484
+ On a parent flow job this is the sum across every step; on a child job it is that step's count.
1460
1485
  examples:
1461
1486
  - 10
1462
1487
  numOpenError:
@@ -1482,13 +1507,20 @@ components:
1482
1507
  numSuccess:
1483
1508
  type: integer
1484
1509
  readOnly: true
1485
- description: Number of successful records/pages.
1510
+ description: |-
1511
+ Number of records processed successfully. On a parent flow job (`type: flow`) this is the
1512
+ sum across every step in the run, so one record that passes through an export and an import
1513
+ counts twice. On a child job (`type: export` or `import`) it is that step's count alone.
1514
+ For per-step counts, read the run with `GET /v1/jobs/{_id}/family` or list its children with
1515
+ `GET /v1/jobs?_flowJobId={_id}&type=import`.
1486
1516
  examples:
1487
1517
  - 10
1488
1518
  numIgnore:
1489
1519
  type: integer
1490
1520
  readOnly: true
1491
- description: Number of ignored records/pages.
1521
+ description: |-
1522
+ Number of records skipped, for example by an import's ignore-existing or ignore-missing rule.
1523
+ Summed across steps on a parent flow job; per step on a child job.
1492
1524
  examples:
1493
1525
  - 0
1494
1526
  numExport:
@@ -1641,36 +1673,58 @@ components:
1641
1673
  type: string
1642
1674
  examples:
1643
1675
  - netsuite
1644
- category:
1676
+ createdOnAndAfter:
1645
1677
  type: string
1646
- description: Optional category filter (e.g., `edi`).
1678
+ format: date-time
1679
+ description: Paging cursor. The server sets this on `pagingPostBody` to the last row's `createdAt`.
1647
1680
  examples:
1648
- - edi
1649
- time_gt:
1650
- type: integer
1651
- format: int64
1652
- description: Optional filter for jobs with `createdAt`/time greater than this epoch milliseconds.
1681
+ - '2026-05-02T01:03:51.757Z'
1682
+ required: []
1683
+ DashboardFlow:
1684
+ type: object
1685
+ description: Minimal flow metadata inlined for rendering convenience — equivalent to `GET /v1/flows/{_flowId}` with most fields stripped.
1686
+ properties:
1687
+ _id:
1688
+ type: string
1689
+ format: objectId
1690
+ x-celigo-refModel: flows
1691
+ description: Flow id (matches the outer `_flowId`).
1653
1692
  examples:
1654
- - 1745366400000
1655
- time_lte:
1656
- type: integer
1657
- format: int64
1658
- description: Optional filter for jobs with `createdAt`/time less than or equal to this epoch milliseconds.
1693
+ - 69497fc443fc1f9a03d31bd9
1694
+ name:
1695
+ type: string
1696
+ description: Flow name.
1659
1697
  examples:
1660
- - 1746147600000
1661
- required: []
1662
- JobWithChildren:
1698
+ - Shopee
1699
+ _abstractFlowId:
1700
+ type: string
1701
+ format: objectId
1702
+ x-celigo-refModel: flows
1703
+ description: Abstract flow this instance was created from. Omitted for ordinary flows.
1704
+ examples:
1705
+ - 69497fc443fc1f9a03d31bd0
1706
+ abstractFlowName:
1707
+ type: string
1708
+ description: Name of the abstract flow. Omitted when `_abstractFlowId` is absent.
1709
+ _integrationId:
1710
+ type: string
1711
+ format: objectId
1712
+ x-celigo-refModel: integrations
1713
+ description: Parent integration id. Omitted for standalone flows.
1714
+ examples:
1715
+ - 69496f01615f724066afaac2
1716
+ integrationName:
1717
+ type: string
1718
+ description: Parent integration name. Omitted for standalone flows.
1719
+ examples:
1720
+ - Shopee
1721
+ CurrentJobEntry:
1663
1722
  allOf:
1664
1723
  - $ref: '#/components/schemas/Job'
1665
1724
  - type: object
1666
- description: Job plus any child jobs (job family view).
1667
1725
  properties:
1668
- children:
1669
- type: array
1670
- readOnly: true
1671
- description: Child jobs (export/import) that are part of this job family.
1672
- items:
1673
- $ref: '#/components/schemas/Job'
1726
+ flow:
1727
+ $ref: '#/components/schemas/DashboardFlow'
1674
1728
  JobsCurrentResponse:
1675
1729
  type: object
1676
1730
  description: Response envelope for `POST /v1/jobs/current`.
@@ -1679,37 +1733,91 @@ components:
1679
1733
  type: array
1680
1734
  description: Current (in-progress) jobs.
1681
1735
  items:
1682
- $ref: '#/components/schemas/JobWithChildren'
1736
+ $ref: '#/components/schemas/CurrentJobEntry'
1683
1737
  pagingPostBody:
1684
- type: object
1685
1738
  description: |-
1686
1739
  Cursor for the next page. Absent on the last (or only) page. Pagination is **body-based**:
1687
1740
  POST this object back to the same endpoint as the next request body to fetch the next page.
1688
- Echoes the caller's filter plus a server-added watermark (`endedOnOrBefore`). Single-page
1741
+ Echoes the caller's filter plus a server-added watermark (`createdOnAndAfter`). Single-page
1689
1742
  responses omit this field entirely.
1690
- properties:
1691
- endedOnOrBefore:
1692
- type: string
1693
- format: date-time
1694
- description: Server-added cursor watermark — only jobs with `endedAt <= this` are included on the next page.
1695
- examples:
1696
- - '2026-05-02T01:03:51.757Z'
1743
+ allOf:
1744
+ - $ref: '#/components/schemas/JobsCurrentRequest'
1697
1745
  FlowRunsStatsRequest:
1698
- allOf:
1699
- - $ref: '#/components/schemas/JobsCurrentRequest'
1700
- - type: object
1701
- description: |-
1702
- Request body for `POST /v1/flows/runs/stats`. Shares its filter shape with `POST /v1/jobs/current`
1703
- (`_integrationIds`, `_flowIds`, `time_gt`, `time_lte`, …), but the response is a set of
1704
- **per-flow aggregates** rather than individual job records. Filters narrow which runs are rolled
1705
- up into each aggregate.
1746
+ type: object
1747
+ description: |-
1748
+ Request body for `POST /v1/flows/runs/stats`. Shares common filters with `POST /v1/jobs/current`
1749
+ (`_integrationIds`, `_flowIds`, …), but the response is a set of
1750
+ **per-flow aggregates** rather than individual job records. Filters narrow which runs are rolled
1751
+ up into each aggregate.
1706
1752
 
1707
- Omitting `time_gt` does not mean "all history" — the endpoint falls back to the dashboard's
1708
- default window (approximately the last 24 hours), and runs older than that silently drop out
1709
- of every aggregate. Send `time_gt` (epoch milliseconds) explicitly for any other range.
1710
- x-celigo-ai-guidance:
1711
- - Always send an explicit time_gt matching the window you intend to report, and never present the aggregates as covering a longer period than the time filter you sent. Without time_gt the default window (~24 hours) applies — an empty result then means "nothing ran recently", never "no runs exist".
1712
- - A flow absent from stats[] had no runs in the window; it does not mean the flow does not exist. numOpenError counts errors open NOW, which may predate the window.
1753
+ Omitting `time_gt` does not mean "all history" — the endpoint falls back to the dashboard's
1754
+ default window (approximately the last 24 hours), and runs older than that silently drop out
1755
+ of every aggregate. Send `time_gt` (epoch milliseconds) explicitly for any other range.
1756
+
1757
+ `time_lte` must not be later than the current time: a future value is rejected with
1758
+ `400 invalid_filter_request_body`. Omit
1759
+ `time_lte` to end the window at now. When both bounds are sent they must be at least one hour
1760
+ apart (`time_lte - time_gt >= 3600000`), or the request is rejected with
1761
+ `400 invalid_time_filter`; a window with `time_gt` alone has no minimum span.
1762
+ x-celigo-ai-guidance:
1763
+ - Always send an explicit time_gt matching the window you intend to report, and never present the aggregates as covering a longer period than the time filter you sent. Without time_gt the default window (~24 hours) applies — an empty result then means "nothing ran recently", never "no runs exist".
1764
+ - For a window that runs through the present, omit time_lte rather than computing an end bound — a value even seconds ahead of the server clock (a rounded-up "now", end of today) fails the whole request with 400 invalid_filter_request_body.
1765
+ - A closed window narrower than one hour cannot be queried; widen time_lte to time_gt + one hour (and say so when reporting) rather than sending the narrower range.
1766
+ - A flow absent from stats[] had no runs in the window; it does not mean the flow does not exist. numOpenError counts errors open NOW, which may predate the window.
1767
+ properties:
1768
+ _integrationIds:
1769
+ type: array
1770
+ description: Optional filter to only return jobs for these integration ids.
1771
+ items:
1772
+ type: string
1773
+ format: objectId
1774
+ x-celigo-refModel: integrations
1775
+ examples:
1776
+ - 6842261335b64c0bcb308e4f
1777
+ _flowIds:
1778
+ type: array
1779
+ description: Optional filter to only return jobs for these flow ids.
1780
+ items:
1781
+ type: string
1782
+ format: objectId
1783
+ x-celigo-refModel: flows
1784
+ examples:
1785
+ - 69497fc443fc1f9a03d31bd9
1786
+ applicationIds:
1787
+ type: array
1788
+ description: Optional filter by application ids.
1789
+ items:
1790
+ type: string
1791
+ examples:
1792
+ - netsuite
1793
+ category:
1794
+ type: string
1795
+ description: Optional category filter (e.g., `edi`).
1796
+ examples:
1797
+ - edi
1798
+ time_gt:
1799
+ type: integer
1800
+ format: int64
1801
+ description: |-
1802
+ Start of the time window, in epoch milliseconds (exclusive). `POST /v1/flows/runs/stats`
1803
+ aggregates only runs inside the window.
1804
+ examples:
1805
+ - 1745366400000
1806
+ time_lte:
1807
+ type: integer
1808
+ format: int64
1809
+ description: |-
1810
+ End of the time window, in epoch milliseconds (inclusive). `POST /v1/flows/runs/stats`
1811
+ aggregates only runs inside the window.
1812
+ examples:
1813
+ - 1746147600000
1814
+ endedOnOrBefore:
1815
+ type: string
1816
+ format: date-time
1817
+ description: Paging cursor. The server sets this on `pagingPostBody` to the last row's `lastExecutedAt`.
1818
+ examples:
1819
+ - '2026-04-23T02:51:52.551Z'
1820
+ required: []
1713
1821
  FlowRunStatsEntry:
1714
1822
  type: object
1715
1823
  description: |-
@@ -1792,7 +1900,7 @@ components:
1792
1900
  lastExecutedAt:
1793
1901
  type: string
1794
1902
  format: date-time
1795
- description: Timestamp of the most recent matching run (any status).
1903
+ description: Timestamp of the most recent matching terminal run (`completed`, `canceled`, or `failed`).
1796
1904
  examples:
1797
1905
  - '2026-04-23T02:51:52.551Z'
1798
1906
  lastErrorAt:
@@ -1802,33 +1910,7 @@ components:
1802
1910
  examples:
1803
1911
  - '2026-04-21T10:51:13.221Z'
1804
1912
  flow:
1805
- type: object
1806
- description: Minimal flow metadata inlined for rendering convenience — equivalent to `GET /v1/flows/{_flowId}` with most fields stripped.
1807
- properties:
1808
- _id:
1809
- type: string
1810
- format: objectId
1811
- x-celigo-refModel: flows
1812
- description: Flow id (matches the outer `_flowId`).
1813
- examples:
1814
- - 69497fc443fc1f9a03d31bd9
1815
- name:
1816
- type: string
1817
- description: Flow name.
1818
- examples:
1819
- - Shopee
1820
- _integrationId:
1821
- type: string
1822
- format: objectId
1823
- x-celigo-refModel: integrations
1824
- description: Parent integration id. Omitted for standalone flows.
1825
- examples:
1826
- - 69496f01615f724066afaac2
1827
- integrationName:
1828
- type: string
1829
- description: Parent integration name. Omitted for standalone flows.
1830
- examples:
1831
- - Shopee
1913
+ $ref: '#/components/schemas/DashboardFlow'
1832
1914
  FlowRunsStatsResponse:
1833
1915
  type: object
1834
1916
  description: |-
@@ -1847,20 +1929,14 @@ components:
1847
1929
  items:
1848
1930
  $ref: '#/components/schemas/FlowRunStatsEntry'
1849
1931
  pagingPostBody:
1850
- type: object
1851
1932
  description: |-
1852
1933
  Cursor for the next page. Absent on the last (or only) page. Pagination is **body-based**:
1853
1934
  POST this object back to the same endpoint as the next request body to fetch the next page.
1854
1935
  The object echoes the caller's filter plus a server-added watermark
1855
1936
  (`endedOnOrBefore`) that carries the cursor position. Single-page responses (typical for
1856
1937
  normal account sizes) omit this field entirely.
1857
- properties:
1858
- endedOnOrBefore:
1859
- type: string
1860
- format: date-time
1861
- description: Server-added cursor watermark — only runs with `endedAt <= this` are included on the next page.
1862
- examples:
1863
- - '2026-04-23T02:51:52.551Z'
1938
+ allOf:
1939
+ - $ref: '#/components/schemas/FlowRunsStatsRequest'
1864
1940
  JobsFamilyBatchRequest:
1865
1941
  type: array
1866
1942
  description: Array of job ids to fetch family information for (max 1000 ids per request).
@@ -1870,6 +1946,18 @@ components:
1870
1946
  x-celigo-refModel: jobs
1871
1947
  examples:
1872
1948
  - 69e981ee18808f3e5ed1b2fd
1949
+ JobWithChildren:
1950
+ allOf:
1951
+ - $ref: '#/components/schemas/Job'
1952
+ - type: object
1953
+ description: Job plus any child jobs (job family view).
1954
+ properties:
1955
+ children:
1956
+ type: array
1957
+ readOnly: true
1958
+ description: Child jobs (export/import) that are part of this job family.
1959
+ items:
1960
+ $ref: '#/components/schemas/Job'
1873
1961
  JobFilesSignedUrlRequest:
1874
1962
  type: object
1875
1963
  description: |
@@ -1185,6 +1185,13 @@ components:
1185
1185
  description: Display name of the dependent resource.
1186
1186
  examples:
1187
1187
  - Import Orders to NetSuite
1188
+ type:
1189
+ type: string
1190
+ description: |-
1191
+ Sub-type of the dependent resource when its collection distinguishes one, such as
1192
+ `stream` for a listener export. Only present for resource types that carry a `type`.
1193
+ examples:
1194
+ - stream
1188
1195
  paths:
1189
1196
  type: array
1190
1197
  description: |-