@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
@@ -385,7 +385,8 @@ paths:
385
385
  cross_env_clone:
386
386
  summary: Clone into another environment, remapping both connections
387
387
  value:
388
- _envId: 67b123456789abcdef012345
388
+ name: Clone - Shopify → NetSuite Orders
389
+ envId: 67b123456789abcdef012345
389
390
  connectionMap:
390
391
  626168f90b6ef816b50c82d7: 64a1234567890abcdef12345
391
392
  6553ebdeda62bb22e7fa81ff: 64a1234567890abcdef12346
@@ -725,7 +726,9 @@ paths:
725
726
  '400':
726
727
  description: |-
727
728
  Revision is not in a diffable state. Error code `invalid_revision_state`. Occurs on
728
- snapshot revisions (no source to diff against), `canceled` revisions (diff dropped), and
729
+ snapshot revisions (no source to diff against), `canceled` revisions (diff dropped),
730
+ `failed` revisions (read their cause from
731
+ `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors` instead), and
729
732
  `inprogress` revisions whose install steps haven't materialized yet.
730
733
  content:
731
734
  application/json:
@@ -741,6 +744,79 @@ paths:
741
744
  $ref: '#/components/responses/401-unauthorized'
742
745
  '404':
743
746
  $ref: '#/components/responses/404-not-found'
747
+ /v1/integrations/{_id}/revisions/{_revisionId}/errors:
748
+ get:
749
+ x-internal: false
750
+ operationId: listIntegrationRevisionErrors
751
+ tags:
752
+ - Integrations
753
+ summary: List a failed revision's errors
754
+ description: |-
755
+ Returns the error records recorded while a `pull` or `revert` revision was being applied — the
756
+ same list the Revisions tab shows for a `failed` revision. Read this, not the diff, to learn why
757
+ a revision failed: `GET /v1/integrations/{_id}/revisions/{_revisionId}/diff` rejects `failed`
758
+ revisions with `invalid_revision_state`. Only `failed` revisions have error records; every
759
+ other state is rejected with the same `invalid_revision_state` code.
760
+
761
+ Each record names the resource the apply step rejected. Ids inside a message use the revision's
762
+ change-set keys: a `LifeCycleError` of the form `<type> - <id> references a deleted resource:
763
+ <type> - <id>.deleted` reports that the merged document still points at an entry the same change
764
+ set marks `.deleted`. The suffix is that marker, not the resource's state in the account — the
765
+ resource may still exist there.
766
+ parameters:
767
+ - name: _id
768
+ in: path
769
+ required: true
770
+ description: Integration id.
771
+ schema:
772
+ type: string
773
+ format: objectId
774
+ x-celigo-refModel: integrations
775
+ examples:
776
+ - 6842261335b64c0bcb308e4f
777
+ - name: _revisionId
778
+ in: path
779
+ required: true
780
+ description: Revision id. Must be a revision in `failed` state.
781
+ schema:
782
+ type: string
783
+ format: objectId
784
+ examples:
785
+ - 6a28d2af6d42eb08f8e863e7
786
+ responses:
787
+ '200':
788
+ description: Error records for the failed revision.
789
+ content:
790
+ application/json:
791
+ schema:
792
+ $ref: '#/components/schemas/RevisionErrorsResponse'
793
+ examples:
794
+ deleted_reference:
795
+ summary: Pull rejected because the merged integration references a removed lookup cache
796
+ value:
797
+ - _id: 6aaceb3c8b19ac878dd7cd41
798
+ code: LifeCycleError
799
+ message: integration - 6a90467b117405485e64787e references a deleted resource:lookupcache - 6aa912fd3ec91536bee07e41.deleted.
800
+ createdAt: '2026-09-18T07:41:37.675Z'
801
+ '400':
802
+ description: |-
803
+ Revision is not in `failed` state, so it has no error records. Error code
804
+ `invalid_revision_state` — returned for `completed`, `canceled`, and `inprogress` revisions
805
+ of every type, including snapshots.
806
+ content:
807
+ application/json:
808
+ schema:
809
+ $ref: '#/components/schemas/Error'
810
+ examples:
811
+ invalid_revision_state:
812
+ value:
813
+ errors:
814
+ - message: Failed to perform operation. Revision is in an invalid state
815
+ code: invalid_revision_state
816
+ '401':
817
+ $ref: '#/components/responses/401-unauthorized'
818
+ '404':
819
+ $ref: '#/components/responses/404-not-found'
744
820
  /v1/integrations/{_id}/errors:
745
821
  get:
746
822
  x-internal: false
@@ -1474,6 +1550,28 @@ paths:
1474
1550
  description: |-
1475
1551
  Removes a connection's registration from the integration. This does not delete the connection
1476
1552
  itself -- it only removes it from the integration's registered-connections list.
1553
+
1554
+ Fails while any resource in the integration still uses the connection. Two references
1555
+ are known to count: any step in one of its flows, Tools, or APIs whose `_connectionId`
1556
+ is this connection -- every step is an export or import document, whatever its kind
1557
+ (lookup, listener, AI agent, guardrail, Tool wrapper, transfer) -- and an alias on the
1558
+ integration or one of its flows whose `_connectionId` points at it. Move the steps to
1559
+ another connection first (a whole flow at once with
1560
+ `PUT /v1/flows/{_id}/replaceConnection`; Tool and API steps through their own
1561
+ step-level `replaceConnection`), remove or retarget any alias that still points at it,
1562
+ then unregister.
1563
+ x-celigo-ai-guidance:
1564
+ - |-
1565
+ Before calling, list what the integration still binds to this connection: the
1566
+ `_connectionId` of every export and import in the integration
1567
+ (`GET /v1/integrations/{_id}/exports` and `/imports` cover flow, Tool, and API
1568
+ steps) and every `aliases[]._connectionId` on the integration and its flows. While
1569
+ any remain the platform returns 400 `not_allowed` -- "The connection is being actively
1570
+ used by the integration. Please ensure no integration resource is using the
1571
+ connection before deregistering." for a bound step, "This connection is being
1572
+ referenced by an alias. Delete the alias before deregistering the connection." for
1573
+ an alias. Aliases are separate from step bindings: retarget or remove the matching
1574
+ `aliases` entries on the integration or flow as their own write.
1477
1575
  parameters:
1478
1576
  - name: _id
1479
1577
  in: path
@@ -1498,6 +1596,28 @@ paths:
1498
1596
  responses:
1499
1597
  '204':
1500
1598
  description: Connection unregistered successfully. No body returned.
1599
+ '400':
1600
+ description: |-
1601
+ A resource in the integration still uses the connection -- a flow, Tool, or API
1602
+ step bound to it ("The connection is being actively used by the integration..."),
1603
+ or an alias on the integration or one of its flows that points at it ("This
1604
+ connection is being referenced by an alias. Delete the alias before deregistering
1605
+ the connection."). Error code: `not_allowed` for both.
1606
+ content:
1607
+ application/json:
1608
+ schema:
1609
+ $ref: '#/components/schemas/Error'
1610
+ examples:
1611
+ in_use:
1612
+ value:
1613
+ errors:
1614
+ - code: not_allowed
1615
+ message: The connection is being actively used by the integration. Please ensure no integration resource is using the connection before deregistering.
1616
+ alias_referenced:
1617
+ value:
1618
+ errors:
1619
+ - code: not_allowed
1620
+ message: This connection is being referenced by an alias. Delete the alias before deregistering the connection.
1501
1621
  '401':
1502
1622
  $ref: '#/components/responses/401-unauthorized'
1503
1623
  '404':
@@ -1551,6 +1671,126 @@ paths:
1551
1671
  $ref: '#/components/responses/401-unauthorized'
1552
1672
  '404':
1553
1673
  $ref: '#/components/responses/404-not-found'
1674
+ /v1/integrations/{_id}/lookupcaches:
1675
+ get:
1676
+ x-internal: false
1677
+ operationId: listIntegrationLookupCaches
1678
+ tags:
1679
+ - Integrations
1680
+ summary: List lookup caches registered to an integration
1681
+ description: |-
1682
+ Returns a bare array of full lookup cache objects for every cache in the integration's
1683
+ `_registeredLookupCacheIds`, sorted by `name`. Each element is the same shape as
1684
+ `GET /v1/lookupcaches/{_id}`. Rejects unknown integration ids with a 404.
1685
+ parameters:
1686
+ - name: _id
1687
+ in: path
1688
+ required: true
1689
+ description: Integration id.
1690
+ schema:
1691
+ type: string
1692
+ format: objectId
1693
+ x-celigo-refModel: integrations
1694
+ examples:
1695
+ - 6842261335b64c0bcb308e4f
1696
+ - name: limit
1697
+ in: query
1698
+ required: false
1699
+ description: Maximum number of lookup caches to return per page.
1700
+ schema:
1701
+ type: integer
1702
+ minimum: 1
1703
+ examples:
1704
+ - 100
1705
+ - $ref: '#/components/parameters/After'
1706
+ responses:
1707
+ '200':
1708
+ description: Array of lookup cache objects.
1709
+ headers:
1710
+ Link:
1711
+ description: |-
1712
+ RFC 5988 pagination link. Includes `<...>; rel="next"` with an `after` cursor when more
1713
+ caches remain; absent on the final page.
1714
+ schema:
1715
+ type: string
1716
+ content:
1717
+ application/json:
1718
+ schema:
1719
+ type: array
1720
+ items:
1721
+ $ref: '#/components/schemas/LookupCache'
1722
+ examples:
1723
+ one_cache:
1724
+ summary: Integration with one registered cache
1725
+ value:
1726
+ - _id: 68680d7111d1437fbcbce534
1727
+ _userId: 624cb0346309dc3a543733a2
1728
+ name: US State Name to State Code
1729
+ includeDataInTemplatesAndCloning: false
1730
+ size: 1887
1731
+ sizeInMB: <5 MB
1732
+ createdAt: '2026-03-24T19:51:01.266Z'
1733
+ lastModified: '2026-04-18T05:40:33.812Z'
1734
+ '204':
1735
+ description: No lookup caches are registered to the integration.
1736
+ '401':
1737
+ $ref: '#/components/responses/401-unauthorized'
1738
+ '404':
1739
+ $ref: '#/components/responses/404-not-found'
1740
+ post:
1741
+ x-internal: false
1742
+ operationId: createLookupCacheOnIntegration
1743
+ tags:
1744
+ - Integrations
1745
+ summary: Create a lookup cache and register it
1746
+ description: |-
1747
+ Creates a lookup cache exactly as `POST /v1/lookupcaches` does and, in the same call, adds it to
1748
+ the integration's `_registeredLookupCacheIds` and an `aliases[]` entry whose `alias` is a slug of
1749
+ the cache name — the same side effect as the `register` operations. Populate the cache afterwards
1750
+ with `POST /v1/lookupcaches/{_id}/data`.
1751
+ parameters:
1752
+ - name: _id
1753
+ in: path
1754
+ required: true
1755
+ description: Integration id.
1756
+ schema:
1757
+ type: string
1758
+ format: objectId
1759
+ x-celigo-refModel: integrations
1760
+ examples:
1761
+ - 6842261335b64c0bcb308e4f
1762
+ requestBody:
1763
+ required: true
1764
+ content:
1765
+ application/json:
1766
+ schema:
1767
+ $ref: '#/components/schemas/Request-2'
1768
+ examples:
1769
+ default:
1770
+ value:
1771
+ name: Customer ID Cache
1772
+ responses:
1773
+ '201':
1774
+ description: Created lookup cache, already registered to the integration.
1775
+ content:
1776
+ application/json:
1777
+ schema:
1778
+ $ref: '#/components/schemas/LookupCache'
1779
+ examples:
1780
+ created:
1781
+ value:
1782
+ _id: 6ab1f6f37c4b4e699fe8c72c
1783
+ _userId: 624cb0346309dc3a543733a2
1784
+ name: Customer ID Cache
1785
+ includeDataInTemplatesAndCloning: false
1786
+ size: 0
1787
+ sizeInMB: 0 MB
1788
+ createdAt: '2026-09-22T03:33:07.337Z'
1789
+ lastModified: '2026-09-22T03:33:07.367Z'
1790
+ '401':
1791
+ $ref: '#/components/responses/401-unauthorized'
1792
+ '404':
1793
+ $ref: '#/components/responses/404-not-found'
1554
1794
  /v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register:
1555
1795
  put:
1556
1796
  x-internal: false
@@ -1637,17 +1877,329 @@ paths:
1637
1877
  - 68680d7111d1437fbcbce534
1638
1878
  responses:
1639
1879
  '204':
1640
- description: Lookup cache unregistered successfully. No body returned.
1880
+ description: Lookup cache unregistered successfully. No body returned.
1881
+ '400':
1882
+ description: |-
1883
+ The cache is not registered on this integration ("The lookup cache
1884
+ which you are trying to deregister is not registered on the
1885
+ integration."), is still referenced by a flow step in the
1886
+ integration ("The lookup cache is being actively used by a flow
1887
+ step in this integration..."), or is still referenced by an alias
1888
+ ("The lookup cache is referenced by an alias in this integration.
1889
+ Remove the alias before deregistering."). Error code: `not_allowed`
1890
+ for all three.
1891
+ content:
1892
+ application/json:
1893
+ schema:
1894
+ $ref: '#/components/schemas/Error'
1895
+ examples:
1896
+ in_use:
1897
+ value:
1898
+ errors:
1899
+ - code: not_allowed
1900
+ message: The lookup cache is being actively used by a flow step in this integration. Please remove the lookup cache reference from all flow steps before deregistering.
1901
+ alias_referenced:
1902
+ value:
1903
+ errors:
1904
+ - code: not_allowed
1905
+ message: The lookup cache is referenced by an alias in this integration. Remove the alias before deregistering.
1906
+ '401':
1907
+ $ref: '#/components/responses/401-unauthorized'
1908
+ '404':
1909
+ $ref: '#/components/responses/404-not-found'
1910
+ /v1/integrations/{_id}/lookupcaches/register:
1911
+ put:
1912
+ x-internal: false
1913
+ operationId: registerLookupCachesToIntegration
1914
+ tags:
1915
+ - Integrations
1916
+ summary: Register lookup caches to an integration (by body)
1917
+ description: |-
1918
+ Registers one or more lookup caches to the integration, adding them to
1919
+ its `_registeredLookupCacheIds` list. The request body is a bare JSON
1920
+ array of lookup cache ids; duplicates are collapsed. Alternatively, use
1921
+ `PUT /v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register` to
1922
+ register a single cache by path parameter.
1923
+
1924
+ Registration also adds an entry to the integration's `aliases[]` for each
1925
+ newly registered cache that does not already have one: `alias` is a slug
1926
+ of the cache name (lowercased, whitespace and special characters stripped,
1927
+ `_2`/`_3`/… appended on collision) and `_lookupCacheId` points at the
1928
+ cache. Scripts and hooks use the alias as a stable handle for the cache,
1929
+ and deregistering the cache is blocked until the alias is removed.
1930
+ parameters:
1931
+ - name: _id
1932
+ in: path
1933
+ required: true
1934
+ description: Integration id.
1935
+ schema:
1936
+ type: string
1937
+ format: objectId
1938
+ x-celigo-refModel: integrations
1939
+ examples:
1940
+ - 6842261335b64c0bcb308e4f
1941
+ requestBody:
1942
+ required: true
1943
+ content:
1944
+ application/json:
1945
+ schema:
1946
+ type: array
1947
+ description: Lookup cache ids to register.
1948
+ items:
1949
+ type: string
1950
+ format: objectId
1951
+ x-celigo-refModel: lookupcaches
1952
+ examples:
1953
+ default:
1954
+ value:
1955
+ - 68680d7111d1437fbcbce534
1956
+ - 68680d7111d1437fbcbce535
1957
+ responses:
1958
+ '204':
1959
+ description: Lookup caches registered successfully. No body returned.
1960
+ '400':
1961
+ description: An entry in the array is not a valid ObjectId.
1962
+ content:
1963
+ application/json:
1964
+ schema:
1965
+ $ref: '#/components/schemas/Error'
1966
+ '401':
1967
+ $ref: '#/components/responses/401-unauthorized'
1968
+ '404':
1969
+ $ref: '#/components/responses/404-not-found'
1970
+ /v1/integrations/{_id}/topics:
1971
+ get:
1972
+ x-internal: false
1973
+ operationId: listIntegrationTopics
1974
+ tags:
1975
+ - Integrations
1976
+ summary: List topics registered to an integration
1977
+ description: |-
1978
+ Returns a bare array of full topic objects for every topic in the integration's
1979
+ `_registeredTopicIds`, sorted by `name`. Each element is the same shape as
1980
+ `GET /v1/topics/{_id}`. Rejects unknown integration ids with a 404. The `externalId` filter of
1981
+ `GET /v1/topics` is not applied here.
1982
+ parameters:
1983
+ - name: _id
1984
+ in: path
1985
+ required: true
1986
+ description: Integration id.
1987
+ schema:
1988
+ type: string
1989
+ format: objectId
1990
+ x-celigo-refModel: integrations
1991
+ examples:
1992
+ - 6842261335b64c0bcb308e4f
1993
+ - name: limit
1994
+ in: query
1995
+ required: false
1996
+ description: Maximum number of topics to return per page.
1997
+ schema:
1998
+ type: integer
1999
+ minimum: 1
2000
+ examples:
2001
+ - 100
2002
+ - $ref: '#/components/parameters/After'
2003
+ responses:
2004
+ '200':
2005
+ description: Array of topic objects.
2006
+ headers:
2007
+ Link:
2008
+ description: |-
2009
+ RFC 5988 pagination link. Includes `<...>; rel="next"` with an `after` cursor when more
2010
+ topics remain; absent on the final page.
2011
+ schema:
2012
+ type: string
2013
+ content:
2014
+ application/json:
2015
+ schema:
2016
+ type: array
2017
+ items:
2018
+ $ref: '#/components/schemas/Topic'
2019
+ examples:
2020
+ one_topic:
2021
+ summary: Integration with one registered topic
2022
+ value:
2023
+ - _id: 6aab2870265e1cf39fcbee4d
2024
+ _userId: 624cb0346309dc3a543733a2
2025
+ name: orders.created
2026
+ description: One event per order placed. Consumed by the fulfillment and finance flows.
2027
+ retentionMs: 604800000
2028
+ createdAt: '2026-09-16T23:38:24.578Z'
2029
+ lastModified: '2026-09-16T23:38:24.578Z'
2030
+ '204':
2031
+ description: No topics are registered to the integration.
2032
+ '401':
2033
+ $ref: '#/components/responses/401-unauthorized'
2034
+ '404':
2035
+ $ref: '#/components/responses/404-not-found'
2036
+ post:
2037
+ x-internal: false
2038
+ operationId: createTopicOnIntegration
2039
+ tags:
2040
+ - Integrations
2041
+ summary: Create a topic and register it
2042
+ description: |-
2043
+ Creates a topic exactly as `POST /v1/topics` does and, in the same call, adds it to the
2044
+ integration's `_registeredTopicIds`. Use this when the topic is being built for one integration's
2045
+ flows; to share a topic across several integrations, create it with `POST /v1/topics` and
2046
+ register it on each with the `register` operations.
2047
+ parameters:
2048
+ - name: _id
2049
+ in: path
2050
+ required: true
2051
+ description: Integration id.
2052
+ schema:
2053
+ type: string
2054
+ format: objectId
2055
+ x-celigo-refModel: integrations
2056
+ examples:
2057
+ - 6842261335b64c0bcb308e4f
2058
+ requestBody:
2059
+ required: true
2060
+ content:
2061
+ application/json:
2062
+ schema:
2063
+ $ref: '#/components/schemas/Request-3'
2064
+ examples:
2065
+ default:
2066
+ value:
2067
+ name: orders.created
2068
+ description: One event per order placed. Consumed by the fulfillment and finance flows.
2069
+ retentionMs: 604800000
2070
+ responses:
2071
+ '201':
2072
+ description: Created topic, already registered to the integration.
2073
+ content:
2074
+ application/json:
2075
+ schema:
2076
+ $ref: '#/components/schemas/Topic'
2077
+ examples:
2078
+ created:
2079
+ value:
2080
+ _id: 6aab2870265e1cf39fcbee4d
2081
+ _userId: 624cb0346309dc3a543733a2
2082
+ name: orders.created
2083
+ description: One event per order placed. Consumed by the fulfillment and finance flows.
2084
+ retentionMs: 604800000
2085
+ createdAt: '2026-09-16T23:38:24.578Z'
2086
+ lastModified: '2026-09-16T23:38:24.578Z'
2087
+ '401':
2088
+ $ref: '#/components/responses/401-unauthorized'
2089
+ '404':
2090
+ $ref: '#/components/responses/404-not-found'
2091
+ '422':
2092
+ description: The topic body failed validation — the same codes as `POST /v1/topics`.
2093
+ content:
2094
+ application/json:
2095
+ schema:
2096
+ $ref: '#/components/schemas/Error'
2097
+ examples:
2098
+ retention_too_short:
2099
+ value:
2100
+ errors:
2101
+ - field: retentionMs
2102
+ code: min
2103
+ message: Path `retentionMs` (3599999) is less than minimum allowed value (3600000).
2104
+ /v1/integrations/{_id}/topics/{_topicId}/register:
2105
+ put:
2106
+ x-internal: false
2107
+ operationId: registerTopicToIntegration
2108
+ tags:
2109
+ - Integrations
2110
+ summary: Register a topic to an integration (by path)
2111
+ description: |-
2112
+ Adds a single topic to the integration's `_registeredTopicIds` so flows in the integration can
2113
+ subscribe to or publish on it. No request body is needed; registering an already-registered topic
2114
+ succeeds without duplicating it. To unregister, use `DELETE` on the same path; to register several
2115
+ topics at once, use `PUT /v1/integrations/{_id}/topics/register`.
2116
+
2117
+ Registration also happens automatically when a flow in the integration is saved with a step
2118
+ bound to the topic. Unlike lookup caches, registering a topic adds no `aliases[]` entry.
2119
+ parameters:
2120
+ - name: _id
2121
+ in: path
2122
+ required: true
2123
+ description: Integration id.
2124
+ schema:
2125
+ type: string
2126
+ format: objectId
2127
+ x-celigo-refModel: integrations
2128
+ examples:
2129
+ - 6842261335b64c0bcb308e4f
2130
+ - name: _topicId
2131
+ in: path
2132
+ required: true
2133
+ description: Topic id to register.
2134
+ schema:
2135
+ type: string
2136
+ format: objectId
2137
+ x-celigo-refModel: topics
2138
+ examples:
2139
+ - 6aab2870265e1cf39fcbee4d
2140
+ responses:
2141
+ '204':
2142
+ description: Topic registered successfully. No body returned.
2143
+ '401':
2144
+ $ref: '#/components/responses/401-unauthorized'
2145
+ '404':
2146
+ description: The integration does not exist, or the topic does not exist in this account.
2147
+ content:
2148
+ application/json:
2149
+ schema:
2150
+ $ref: '#/components/schemas/Error'
2151
+ examples:
2152
+ topic_not_found:
2153
+ value:
2154
+ errors:
2155
+ - code: not_found
2156
+ message: 'The topics with following _id''s: 6aab2870265e1cf39fcbee4d don''t exist.'
2157
+ delete:
2158
+ x-internal: false
2159
+ operationId: unregisterTopicFromIntegration
2160
+ tags:
2161
+ - Integrations
2162
+ summary: Unregister a topic from an integration
2163
+ description: |-
2164
+ Removes a topic's registration from the integration. This does not delete the topic — it only
2165
+ removes it from the integration's `_registeredTopicIds`. Fails when the topic is not registered
2166
+ on the integration, or while any flow step in the integration (an export or import with
2167
+ `topic._topicId` set) still uses it. Repoint or delete those steps first, then retry.
2168
+ x-celigo-ai-guidance:
2169
+ - |-
2170
+ Before calling, check `GET /v1/topics/{_topicId}/dependencies` for `flows` in this integration
2171
+ — while any exist the platform returns 400 `not_allowed` "The topic is being actively used by a
2172
+ step in this integration…".
2173
+ parameters:
2174
+ - name: _id
2175
+ in: path
2176
+ required: true
2177
+ description: Integration id.
2178
+ schema:
2179
+ type: string
2180
+ format: objectId
2181
+ x-celigo-refModel: integrations
2182
+ examples:
2183
+ - 6842261335b64c0bcb308e4f
2184
+ - name: _topicId
2185
+ in: path
2186
+ required: true
2187
+ description: Topic id to unregister.
2188
+ schema:
2189
+ type: string
2190
+ format: objectId
2191
+ x-celigo-refModel: topics
2192
+ examples:
2193
+ - 6aab2870265e1cf39fcbee4d
2194
+ responses:
2195
+ '204':
2196
+ description: Topic unregistered successfully. No body returned.
1641
2197
  '400':
1642
2198
  description: |-
1643
- The cache is not registered on this integration ("The lookup cache
1644
- which you are trying to deregister is not registered on the
1645
- integration."), is still referenced by a flow step in the
1646
- integration ("The lookup cache is being actively used by a flow
1647
- step in this integration..."), or is still referenced by an alias
1648
- ("The lookup cache is referenced by an alias in this integration.
1649
- Remove the alias before deregistering."). Error code: `not_allowed`
1650
- for all three.
2199
+ The topic is not registered on this integration ("The topic which you are trying to
2200
+ deregister is not registered on the integration."), or a flow step in the integration still
2201
+ uses it ("The topic is being actively used by a step in this integration…"). Error code:
2202
+ `not_allowed` for both.
1651
2203
  content:
1652
2204
  application/json:
1653
2205
  schema:
@@ -1657,36 +2209,29 @@ paths:
1657
2209
  value:
1658
2210
  errors:
1659
2211
  - code: not_allowed
1660
- message: The lookup cache is being actively used by a flow step in this integration. Please remove the lookup cache reference from all flow steps before deregistering.
1661
- alias_referenced:
2212
+ message: The topic is being actively used by a step in this integration. Please remove the topic reference from all steps before deregistering.
2213
+ not_registered:
1662
2214
  value:
1663
2215
  errors:
1664
2216
  - code: not_allowed
1665
- message: The lookup cache is referenced by an alias in this integration. Remove the alias before deregistering.
2217
+ message: The topic which you are trying to deregister is not registered on the integration.
1666
2218
  '401':
1667
2219
  $ref: '#/components/responses/401-unauthorized'
1668
2220
  '404':
1669
2221
  $ref: '#/components/responses/404-not-found'
1670
- /v1/integrations/{_id}/lookupcaches/register:
2222
+ /v1/integrations/{_id}/topics/register:
1671
2223
  put:
1672
2224
  x-internal: false
1673
- operationId: registerLookupCachesToIntegration
2225
+ operationId: registerTopicsToIntegration
1674
2226
  tags:
1675
2227
  - Integrations
1676
- summary: Register lookup caches to an integration (by body)
2228
+ summary: Register topics to an integration (by body)
1677
2229
  description: |-
1678
- Registers one or more lookup caches to the integration, adding them to
1679
- its `_registeredLookupCacheIds` list. The request body is a bare JSON
1680
- array of lookup cache ids; duplicates are collapsed. Alternatively, use
1681
- `PUT /v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register` to
1682
- register a single cache by path parameter.
1683
-
1684
- Registration also adds an entry to the integration's `aliases[]` for each
1685
- newly registered cache that does not already have one: `alias` is a slug
1686
- of the cache name (lowercased, whitespace and special characters stripped,
1687
- `_2`/`_3`/… appended on collision) and `_lookupCacheId` points at the
1688
- cache. Scripts and hooks use the alias as a stable handle for the cache,
1689
- and deregistering the cache is blocked until the alias is removed.
2230
+ Adds one or more topics to the integration's `_registeredTopicIds`. The request body is a bare
2231
+ JSON array of topic ids; duplicates and already-registered ids are collapsed, and an empty array
2232
+ is accepted as a no-op. Every id must name a topic in this account or nothing is registered.
2233
+ Alternatively, use `PUT /v1/integrations/{_id}/topics/{_topicId}/register` to register a single
2234
+ topic by path parameter.
1690
2235
  parameters:
1691
2236
  - name: _id
1692
2237
  in: path
@@ -1704,29 +2249,47 @@ paths:
1704
2249
  application/json:
1705
2250
  schema:
1706
2251
  type: array
1707
- description: Lookup cache ids to register.
2252
+ description: Topic ids to register.
1708
2253
  items:
1709
2254
  type: string
1710
2255
  format: objectId
1711
- x-celigo-refModel: lookupcaches
2256
+ x-celigo-refModel: topics
1712
2257
  examples:
1713
2258
  default:
1714
2259
  value:
1715
- - 68680d7111d1437fbcbce534
1716
- - 68680d7111d1437fbcbce535
2260
+ - 6aab2870265e1cf39fcbee4d
2261
+ - 6aab2870bb44c84f7b77e9f7
1717
2262
  responses:
1718
2263
  '204':
1719
- description: Lookup caches registered successfully. No body returned.
2264
+ description: Topics registered successfully. No body returned.
1720
2265
  '400':
1721
- description: An entry in the array is not a valid ObjectId.
2266
+ description: |-
2267
+ The body is not a JSON array ("Maximum batch size is …", code `batch_size_exceeded`), or an
2268
+ entry is not a valid ObjectId ("Please provide a valid _topicId.", code `invalid_ref`).
1722
2269
  content:
1723
2270
  application/json:
1724
2271
  schema:
1725
2272
  $ref: '#/components/schemas/Error'
2273
+ examples:
2274
+ bad_id:
2275
+ value:
2276
+ errors:
2277
+ - code: invalid_ref
2278
+ message: Please provide a valid _topicId.
1726
2279
  '401':
1727
2280
  $ref: '#/components/responses/401-unauthorized'
1728
2281
  '404':
1729
- $ref: '#/components/responses/404-not-found'
2282
+ description: The integration does not exist, or one of the topics does not exist in this account.
2283
+ content:
2284
+ application/json:
2285
+ schema:
2286
+ $ref: '#/components/schemas/Error'
2287
+ examples:
2288
+ topic_not_found:
2289
+ value:
2290
+ errors:
2291
+ - code: not_found
2292
+ message: 'The topics with following _id''s: 6aab2870bb44c84f7b77e9f7 don''t exist.'
1730
2293
  /v1/integrations/{_id}/tree/metadata:
1731
2294
  get:
1732
2295
  x-internal: false
@@ -2161,6 +2724,15 @@ components:
2161
2724
  schema:
2162
2725
  type: string
2163
2726
  example: createdAt,lastModified
2727
+ After:
2728
+ name: after
2729
+ in: query
2730
+ required: false
2731
+ description: |-
2732
+ Opaque cursor for forward pagination. Pass the value from the `Link`
2733
+ response header (`rel="next"`) to fetch the next page.
2734
+ schema:
2735
+ type: string
2164
2736
  schemas:
2165
2737
  Settings:
2166
2738
  type: object
@@ -2707,6 +3279,8 @@ components:
2707
3279
  - prepareFormData
2708
3280
  _scriptId:
2709
3281
  type: string
3282
+ format: objectId
3283
+ x-celigo-refModel: scripts
2710
3284
  description: |
2711
3285
  Reference to a predefined script resource containing the initialization function.
2712
3286
 
@@ -2775,6 +3349,8 @@ components:
2775
3349
  - prepareResourceForSave
2776
3350
  _scriptId:
2777
3351
  type: string
3352
+ format: objectId
3353
+ x-celigo-refModel: scripts
2778
3354
  description: |
2779
3355
  Reference to a predefined script resource containing the preSave function.
2780
3356
 
@@ -3747,6 +4323,22 @@ components:
3747
4323
  type: string
3748
4324
  format: objectId
3749
4325
  x-celigo-refModel: lookupcaches
4326
+ _registeredTopicIds:
4327
+ type: array
4328
+ readOnly: true
4329
+ description: |-
4330
+ Topics registered to this integration, so its flows can subscribe to or publish on them.
4331
+ Maintained by the platform: added through the integration's topic `register` operations,
4332
+ `POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration
4333
+ is saved with a step bound to a topic; removed by the `DELETE …/register` operation or when
4334
+ the topic is deleted. Client-sent values are ignored (PUT-verified). Absent on integrations
4335
+ that have never had a topic registered.
4336
+ items:
4337
+ type: string
4338
+ format: objectId
4339
+ x-celigo-refModel: topics
4340
+ examples:
4341
+ - - 6aab2870265e1cf39fcbee4d
3750
4342
  Request:
3751
4343
  type: object
3752
4344
  description: Fields that can be sent when creating or updating an integration.
@@ -3845,15 +4437,14 @@ components:
3845
4437
  description: Description for the cloned integration.
3846
4438
  examples:
3847
4439
  - Cloned copy of the Shopify to NetSuite orders integration.
3848
- _envId:
4440
+ envId:
3849
4441
  type: string
3850
4442
  format: objectId
3851
4443
  x-celigo-refModel: environments
3852
4444
  description: |
3853
- Target environment _id. When provided, the clone is created in the
3854
- specified environment instead of the current one. Use
3855
- GET /v1/environments to list available environments and their _ids.
3856
- Omit to clone within the same environment.
4445
+ Environment to create the clone in, taken from GET /v1/environments. Omit to
4446
+ clone within the current environment. The name has no leading underscore:
4447
+ `_envId` is ignored, and the clone is created in the current environment.
3857
4448
  examples:
3858
4449
  - 67b123456789abcdef012345
3859
4450
  connectionMap:
@@ -3999,7 +4590,7 @@ components:
3999
4590
  x-enumDescriptions:
4000
4591
  inprogress: The revision is currently being prepared and can be diffed, applied, or canceled.
4001
4592
  completed: The revision has been finalized and applied successfully.
4002
- failed: The revision encountered an error during processing.
4593
+ failed: The apply step rejected the revision; the recorded errors are returned by `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`.
4003
4594
  canceled: The revision was aborted before being applied.
4004
4595
  description:
4005
4596
  type: string
@@ -4025,6 +4616,14 @@ components:
4025
4616
  `revert` revisions.
4026
4617
  examples:
4027
4618
  - 7d9e2b4a1c3f5068ab82d4e0fc16937255ab8c40
4619
+ errorFileKey:
4620
+ type: string
4621
+ readOnly: true
4622
+ description: |-
4623
+ Storage key of the error file written when the apply step fails. Present only on `failed`
4624
+ revisions; the file's records are read through `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`.
4625
+ examples:
4626
+ - a574f7e1294645f68e141ac6ab4eed92
4028
4627
  _revertToRevisionId:
4029
4628
  type: string
4030
4629
  format: objectId
@@ -4099,6 +4698,43 @@ components:
4099
4698
  before/after blocks. Treated as an opaque envelope here; specific field layout is not guaranteed
4100
4699
  stable across platform versions.
4101
4700
  additionalProperties: true
4701
+ RevisionError:
4702
+ type: object
4703
+ description: One error recorded while a revision was being applied.
4704
+ required:
4705
+ - code
4706
+ - message
4707
+ properties:
4708
+ _id:
4709
+ type: string
4710
+ format: objectId
4711
+ description: Error record id; the Revisions tab uses it to open the record's detail view.
4712
+ examples:
4713
+ - 6aaceb3c8b19ac878dd7cd41
4714
+ code:
4715
+ type: string
4716
+ description: Error class assigned by the apply step, such as `LifeCycleError` for change-set consistency failures.
4717
+ examples:
4718
+ - LifeCycleError
4719
+ message:
4720
+ type: string
4721
+ description: |-
4722
+ Human-readable cause. Resource references inside it use the change set's own ids, so a
4723
+ `<id>.deleted` suffix identifies an entry of the revision, not the state of the resource in
4724
+ the account.
4725
+ examples:
4726
+ - integration - 6a90467b117405485e64787e references a deleted resource:lookupcache - 6aa912fd3ec91536bee07e41.deleted.
4727
+ createdAt:
4728
+ type: string
4729
+ format: date-time
4730
+ description: When the error was recorded.
4731
+ examples:
4732
+ - '2026-09-18T07:41:37.675Z'
4733
+ RevisionErrorsResponse:
4734
+ type: array
4735
+ description: Error records for one revision, oldest first.
4736
+ items:
4737
+ $ref: '#/components/schemas/RevisionError'
4102
4738
  IntegrationErrorsResponse:
4103
4739
  type: array
4104
4740
  description: |-
@@ -4206,6 +4842,345 @@ components:
4206
4842
  - 67b123456789abcdef012345
4207
4843
  description: Environment id the integration belongs to.
4208
4844
  additionalProperties: true
4845
+ LookupCacheBase:
4846
+ type: object
4847
+ description: Writable fields shared by the request and response schemas.
4848
+ properties:
4849
+ name:
4850
+ type: string
4851
+ maxLength: 200
4852
+ description: Display name.
4853
+ examples:
4854
+ - Customer ID Cache
4855
+ - Product SKU Lookup
4856
+ description:
4857
+ type: string
4858
+ maxLength: 5120
4859
+ description: Purpose or contents of the cache.
4860
+ examples:
4861
+ - Maps external customer IDs to internal Salesforce IDs for deduplication
4862
+ includeDataInTemplatesAndCloning:
4863
+ type: boolean
4864
+ default: false
4865
+ description: |-
4866
+ Whether to include the cached key-value data when this cache is
4867
+ used in templates or cloned. When `false` (default), only
4868
+ metadata transfers. Set to `true` for static reference tables.
4869
+ examples:
4870
+ - false
4871
+ - true
4872
+ x-celigo-ai-guidance:
4873
+ - |-
4874
+ When false (default), only the cache metadata is included — the actual
4875
+ key-value data is not transferred. Set to true if the cached data is
4876
+ part of the integration's configuration (e.g., static reference tables).
4877
+ externalId:
4878
+ type: string
4879
+ description: Caller-supplied identifier for cross-system correlation.
4880
+ examples:
4881
+ - ext-cache-12345
4882
+ LookupCache:
4883
+ type: object
4884
+ required:
4885
+ - _id
4886
+ - _userId
4887
+ - createdAt
4888
+ - lastModified
4889
+ description: Lookup cache object as returned by the API.
4890
+ allOf:
4891
+ - $ref: '#/components/schemas/LookupCacheBase'
4892
+ - $ref: '#/components/schemas/ResourceResponse'
4893
+ - type: object
4894
+ properties:
4895
+ _userId:
4896
+ type: string
4897
+ format: objectId
4898
+ readOnly: true
4899
+ x-celigo-refModel: users
4900
+ description: User who owns this lookup cache.
4901
+ examples:
4902
+ - 624cb0346309dc3a543733a2
4903
+ _templateId:
4904
+ type: string
4905
+ format: objectId
4906
+ readOnly: true
4907
+ x-celigo-refModel: templates
4908
+ description: Template this lookup cache was installed from, when it originated from a template.
4909
+ examples:
4910
+ - 6a27a36f9cea1a85192e72cd
4911
+ _sourceId:
4912
+ type: string
4913
+ format: objectId
4914
+ readOnly: true
4915
+ description: Origin resource ID when this cache was created by cloning or installing a template.
4916
+ examples:
4917
+ - 5f8d43a1b9e5a80011a35f2c
4918
+ size:
4919
+ type: integer
4920
+ minimum: 0
4921
+ readOnly: true
4922
+ description: Current size of the cached data in bytes. Maximum 50 MB per cache; 1 GB aggregate per environment.
4923
+ examples:
4924
+ - 0
4925
+ - 1887
4926
+ - 5242880
4927
+ sizeInMB:
4928
+ type: string
4929
+ readOnly: true
4930
+ description: |-
4931
+ Human-readable size rounded up to the nearest 5 MB increment.
4932
+ `"0 MB"` for empty caches, `"<5 MB"` through `"<50 MB"` for
4933
+ non-empty caches, `"50 MB"` at the per-cache cap.
4934
+ examples:
4935
+ - 0 MB
4936
+ - <5 MB
4937
+ - <25 MB
4938
+ - 50 MB
4939
+ x-celigo-ai-guidance:
4940
+ - |-
4941
+ Human-readable representation of the cache size, rounded up to
4942
+ the nearest 5 MB increment. Returns "0 MB" for empty caches,
4943
+ "<N MB" for caches under 50 MB, and "50 MB" for caches at or
4944
+ over the limit.
4945
+ draft:
4946
+ type: boolean
4947
+ readOnly: true
4948
+ description: When true, this cache was created as a draft by the AI-assisted builder and has not yet been confirmed.
4949
+ examples:
4950
+ - true
4951
+ draftExpiresAt:
4952
+ type: string
4953
+ format: date-time
4954
+ readOnly: true
4955
+ description: When the draft cache expires and will be automatically deleted. Only present when `draft` is `true`.
4956
+ examples:
4957
+ - '2026-05-08T17:29:30.726Z'
4958
+ Request-2:
4959
+ type: object
4960
+ description: Writable fields for creating or updating a lookup cache.
4961
+ allOf:
4962
+ - $ref: '#/components/schemas/LookupCacheBase'
4963
+ Topic:
4964
+ type: object
4965
+ description: Topic as returned by the API.
4966
+ required:
4967
+ - _id
4968
+ - _userId
4969
+ - name
4970
+ - retentionMs
4971
+ - createdAt
4972
+ - lastModified
4973
+ properties:
4974
+ _id:
4975
+ type: string
4976
+ format: objectId
4977
+ readOnly: true
4978
+ x-celigo-refModel: topics
4979
+ description: |-
4980
+ Unique identifier for the topic. Topic exports and imports bind to it through
4981
+ `topic._topicId`, and it is the `_topicId` used by every `/v1/topics/{_id}/…` endpoint.
4982
+ examples:
4983
+ - 6ab1f44d7c4b4e699fe84b0a
4984
+ _userId:
4985
+ type: string
4986
+ format: objectId
4987
+ readOnly: true
4988
+ x-celigo-refModel: users
4989
+ description: Account owner whose license and topic quota the topic counts against.
4990
+ examples:
4991
+ - 624cb0346309dc3a543733a2
4992
+ name:
4993
+ type: string
4994
+ maxLength: 200
4995
+ description: |-
4996
+ Display name shown in the UI. Empty when the topic was created without one; not unique, so
4997
+ use `_id` to identify a topic.
4998
+ examples:
4999
+ - orders.created
5000
+ description:
5001
+ type:
5002
+ - string
5003
+ - 'null'
5004
+ maxLength: 5120
5005
+ description: What the topic carries and which flows consume it. Absent or null when never set.
5006
+ examples:
5007
+ - One event per order placed. Consumed by the fulfillment and finance flows.
5008
+ retentionMs:
5009
+ type: integer
5010
+ minimum: 3600000
5011
+ maximum: 7776000000
5012
+ default: 604800000
5013
+ description: |-
5014
+ How long a published message stays readable, in milliseconds, before it is dropped from the
5015
+ stream whether or not a listener consumed it. The week-long default applies when the topic was
5016
+ created without one.
5017
+ examples:
5018
+ - 604800000
5019
+ - 3600000
5020
+ externalId:
5021
+ type: string
5022
+ maxLength: 1024
5023
+ description: |-
5024
+ Caller-chosen key set at creation or update. Present only when it was supplied; filter the
5025
+ list with `GET /v1/topics?externalId=…`.
5026
+ examples:
5027
+ - erp-orders-created
5028
+ _integrationId:
5029
+ type: string
5030
+ format: objectId
5031
+ readOnly: true
5032
+ x-celigo-refModel: integrations
5033
+ description: |-
5034
+ Integration App installation that owns the topic. Present only on topics created by an
5035
+ Integration App; absent on topics you create directly, which are shared across integrations
5036
+ through `_registeredTopicIds` instead.
5037
+ examples:
5038
+ - 6ab1f4a138d7733b45998d99
5039
+ _connectorId:
5040
+ type: string
5041
+ format: objectId
5042
+ readOnly: true
5043
+ x-celigo-refModel: connectors
5044
+ description: |-
5045
+ Integration App (connector) that installed the topic. Present only on connector-managed
5046
+ topics, which the connector — not the user — registers and deregisters.
5047
+ examples:
5048
+ - 5b3c8f9a2e1d4c0011223344
5049
+ _templateId:
5050
+ type: string
5051
+ format: objectId
5052
+ readOnly: true
5053
+ x-celigo-refModel: templates
5054
+ description: Template the topic was installed from. Present only when it originated from a template.
5055
+ examples:
5056
+ - 6a27a36f9cea1a85192e72cd
5057
+ _sourceId:
5058
+ type: string
5059
+ format: objectId
5060
+ readOnly: true
5061
+ description: Topic this one was cloned or installed from. Present only on copies.
5062
+ examples:
5063
+ - 6aab2870265e1cf39fcbee4d
5064
+ draft:
5065
+ type: boolean
5066
+ readOnly: true
5067
+ description: |-
5068
+ When true, the topic was created as a draft by the AI-assisted builder and has not been
5069
+ confirmed yet. Absent on ordinary topics.
5070
+ examples:
5071
+ - true
5072
+ draftExpiresAt:
5073
+ type: string
5074
+ format: date-time
5075
+ readOnly: true
5076
+ description: Timestamp when an unconfirmed draft is deleted automatically. Present only when `draft` is true.
5077
+ examples:
5078
+ - '2026-09-24T03:30:27.432Z'
5079
+ createdAt:
5080
+ type: string
5081
+ format: date-time
5082
+ readOnly: true
5083
+ description: Timestamp when the topic was created.
5084
+ examples:
5085
+ - '2026-09-16T23:38:24.578Z'
5086
+ lastModified:
5087
+ type: string
5088
+ format: date-time
5089
+ readOnly: true
5090
+ description: Timestamp when the topic was last updated by PUT or PATCH.
5091
+ examples:
5092
+ - '2026-09-22T02:51:12.733Z'
5093
+ deletedAt:
5094
+ type: string
5095
+ format: date-time
5096
+ readOnly: true
5097
+ description: |-
5098
+ Timestamp when the topic was moved to the recycle bin. Present only on the copy returned by
5099
+ `GET /v1/recycleBinTTL/topics/{_id}`; deleted topics are hidden from every other endpoint.
5100
+ examples:
5101
+ - '2026-09-22T03:29:50.803Z'
5102
+ Request-3:
5103
+ type: object
5104
+ description: Writable fields for creating or updating a topic.
5105
+ required:
5106
+ - name
5107
+ x-celigo-ai-guidance:
5108
+ - |-
5109
+ Always send name — the server does not enforce it and creates a topic with an empty name
5110
+ that cannot be told apart in lists. On PUT send the whole document: omitted fields are
5111
+ cleared (description, externalId) and retentionMs falls back to seven days.
5112
+ - |-
5113
+ Unknown top-level fields are dropped silently, so a misspelled field does not fail the
5114
+ request — read the response body back to confirm what was stored.
5115
+ properties:
5116
+ name:
5117
+ type: string
5118
+ maxLength: 200
5119
+ description: |-
5120
+ Display name shown in the UI and recorded as `deletedInfo.name` on audit entries. Names need
5121
+ not be unique — exports and imports bind to the topic id, so renaming never breaks a
5122
+ subscription. Script tags and other unsafe HTML are stripped on save.
5123
+ examples:
5124
+ - orders.created
5125
+ description:
5126
+ type:
5127
+ - string
5128
+ - 'null'
5129
+ maxLength: 5120
5130
+ description: |-
5131
+ What the topic carries and which flows consume it. Shown in the UI only; it plays no part in
5132
+ routing. Send null to clear a previous value.
5133
+ examples:
5134
+ - One event per order placed. Consumed by the fulfillment and finance flows.
5135
+ retentionMs:
5136
+ type: integer
5137
+ minimum: 3600000
5138
+ maximum: 7776000000
5139
+ default: 604800000
5140
+ description: |-
5141
+ How long a published message stays readable, in milliseconds, before it is dropped from the
5142
+ stream whether or not a listener consumed it. The default keeps a week of messages, enough for
5143
+ a listener that is paused over a weekend to catch up; the ceiling is further capped by the
5144
+ account license's `topics.retentionCeilingDays`. Changing it on an existing topic
5145
+ re-configures the stream, so messages older than the new window are no longer retained.
5146
+ examples:
5147
+ - 604800000
5148
+ - 3600000
5149
+ x-celigo-ai-guidance:
5150
+ - |-
5151
+ A value above the account's ceiling fails with 422 `topics_retention_exceeds_entitlement`;
5152
+ read the ceiling from `GET /v1/licenses` (`topics.retentionCeilingDays`) before asking for
5153
+ long retention. Below one hour fails with 422 `min`.
5154
+ externalId:
5155
+ type: string
5156
+ maxLength: 1024
5157
+ description: |-
5158
+ Caller-chosen key for finding the topic again without storing its id — filter the list with
5159
+ `GET /v1/topics?externalId=…`. Integration Apps use it to locate a topic across installs.
5160
+ examples:
5161
+ - erp-orders-created
5162
+ __integrationIds:
5163
+ type: array
5164
+ maxItems: 100
5165
+ items:
5166
+ type: string
5167
+ format: objectId
5168
+ x-celigo-refModel: integrations
5169
+ description: |-
5170
+ Integrations to register the new topic on immediately after creation, so flows in those
5171
+ integrations can subscribe to it. Honored only on `POST /v1/topics` (ignored on PUT), never
5172
+ persisted, and not echoed back. Ids are validated before the topic is saved; registration
5173
+ runs after the save, and per-integration failures are reported in
5174
+ `__failedIntegrationRegistrations` on the 201 response without rolling back the new topic.
5175
+ x-celigo-ai-guidance:
5176
+ - |-
5177
+ Invalid input rejects the whole request without creating the topic: a non-array value or
5178
+ duplicate ids fail with 422 `invalid_request`, an element that is not a valid ObjectId fails
5179
+ with 422 `invalid_ref` naming `__integrationIds[i]`, and an integration that does not exist
5180
+ in the account fails with 404.
5181
+ - To register an existing topic instead, use `PUT /v1/integrations/{_id}/topics/{_topicId}/register`.
5182
+ examples:
5183
+ - - 6ab1f4a138d7733b45998d99
4209
5184
  ILMIgnoreResponse:
4210
5185
  type: object
4211
5186
  description: |-
@@ -4252,6 +5227,13 @@ components:
4252
5227
  description: Display name of the dependent resource.
4253
5228
  examples:
4254
5229
  - Import Orders to NetSuite
5230
+ type:
5231
+ type: string
5232
+ description: |-
5233
+ Sub-type of the dependent resource when its collection distinguishes one, such as
5234
+ `stream` for a listener export. Only present for resource types that carry a `type`.
5235
+ examples:
5236
+ - stream
4255
5237
  paths:
4256
5238
  type: array
4257
5239
  description: |-