@celigo/api-specs 0.2.3 → 0.2.4-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 (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
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
@@ -1179,6 +1189,14 @@ components:
1179
1189
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
1180
1190
  x-celigo-ai-guidance:
1181
1191
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
1192
+ - |-
1193
+ Records that something was written, not what — a settings edit, a flag flip, or a
1194
+ platform workflow all move it. What changed and when is in the audit log: the
1195
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
1196
+ `resourceType` enum lists, or the account-wide
1197
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
1198
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
1199
+ from both enums — jobs, connectors, templates — has only this timestamp.
1182
1200
  examples:
1183
1201
  - '2023-04-15T14:30:15Z'
1184
1202
  deletedAt:
@@ -1436,15 +1454,29 @@ components:
1436
1454
  triggeredBy:
1437
1455
  type: string
1438
1456
  readOnly: true
1439
- description: Who/what triggered the job (free-form string).
1457
+ description: |-
1458
+ What started the run. On a `flow` job: `system` for a scheduled run, the `_id` of
1459
+ the user who ran the flow, or the `_id` of the upstream flow whose `_runNextFlowIds`
1460
+ chained into this one; absent on event-driven runs (webhook, real-time listener, and
1461
+ stream page generators), which the inbound event starts. On a `retry` job: `auto`
1462
+ for the platform's automatic intermittent-error retry, otherwise the `_id` of the
1463
+ user who submitted the retry. Absent on `export` and `import` child jobs — the
1464
+ parent flow job carries it.
1440
1465
  examples:
1441
- - scheduler
1466
+ - system
1442
1467
  canceledBy:
1443
1468
  type: string
1444
1469
  readOnly: true
1445
- description: Who/what requested cancellation (free-form string).
1470
+ description: |-
1471
+ Who canceled the run: the `_id` of the user who requested the cancel, or `system` for
1472
+ every platform-initiated cancel — stuck-run recovery after a worker exit or crash or
1473
+ when a run stops making progress, stale-run cleanup, a scheduler that could not
1474
+ re-queue the run, and the cancels that follow deleting the flow or replacing one of
1475
+ its connections. The record does not say which of these it was.
1476
+ x-celigo-ai-guidance:
1477
+ - 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
1478
  examples:
1447
- - user
1479
+ - system
1448
1480
  flowExecutionGroupId:
1449
1481
  type: string
1450
1482
  readOnly: true
@@ -1457,6 +1489,7 @@ components:
1457
1489
  description: |
1458
1490
  Total number of errors produced by the job (including resolved ones).
1459
1491
  Use `numOpenError` for the count of currently unresolved errors.
1492
+ On a parent flow job this is the sum across every step; on a child job it is that step's count.
1460
1493
  examples:
1461
1494
  - 10
1462
1495
  numOpenError:
@@ -1482,13 +1515,20 @@ components:
1482
1515
  numSuccess:
1483
1516
  type: integer
1484
1517
  readOnly: true
1485
- description: Number of successful records/pages.
1518
+ description: |-
1519
+ Number of records processed successfully. On a parent flow job (`type: flow`) this is the
1520
+ sum across every step in the run, so one record that passes through an export and an import
1521
+ counts twice. On a child job (`type: export` or `import`) it is that step's count alone.
1522
+ For per-step counts, read the run with `GET /v1/jobs/{_id}/family` or list its children with
1523
+ `GET /v1/jobs?_flowJobId={_id}&type=import`.
1486
1524
  examples:
1487
1525
  - 10
1488
1526
  numIgnore:
1489
1527
  type: integer
1490
1528
  readOnly: true
1491
- description: Number of ignored records/pages.
1529
+ description: |-
1530
+ Number of records skipped, for example by an import's ignore-existing or ignore-missing rule.
1531
+ Summed across steps on a parent flow job; per step on a child job.
1492
1532
  examples:
1493
1533
  - 0
1494
1534
  numExport:
@@ -1641,36 +1681,58 @@ components:
1641
1681
  type: string
1642
1682
  examples:
1643
1683
  - netsuite
1644
- category:
1684
+ createdOnAndAfter:
1645
1685
  type: string
1646
- description: Optional category filter (e.g., `edi`).
1686
+ format: date-time
1687
+ description: Paging cursor. The server sets this on `pagingPostBody` to the last row's `createdAt`.
1647
1688
  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.
1689
+ - '2026-05-02T01:03:51.757Z'
1690
+ required: []
1691
+ DashboardFlow:
1692
+ type: object
1693
+ description: Minimal flow metadata inlined for rendering convenience — equivalent to `GET /v1/flows/{_flowId}` with most fields stripped.
1694
+ properties:
1695
+ _id:
1696
+ type: string
1697
+ format: objectId
1698
+ x-celigo-refModel: flows
1699
+ description: Flow id (matches the outer `_flowId`).
1653
1700
  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.
1701
+ - 69497fc443fc1f9a03d31bd9
1702
+ name:
1703
+ type: string
1704
+ description: Flow name.
1659
1705
  examples:
1660
- - 1746147600000
1661
- required: []
1662
- JobWithChildren:
1706
+ - Shopee
1707
+ _abstractFlowId:
1708
+ type: string
1709
+ format: objectId
1710
+ x-celigo-refModel: flows
1711
+ description: Abstract flow this instance was created from. Omitted for ordinary flows.
1712
+ examples:
1713
+ - 69497fc443fc1f9a03d31bd0
1714
+ abstractFlowName:
1715
+ type: string
1716
+ description: Name of the abstract flow. Omitted when `_abstractFlowId` is absent.
1717
+ _integrationId:
1718
+ type: string
1719
+ format: objectId
1720
+ x-celigo-refModel: integrations
1721
+ description: Parent integration id. Omitted for standalone flows.
1722
+ examples:
1723
+ - 69496f01615f724066afaac2
1724
+ integrationName:
1725
+ type: string
1726
+ description: Parent integration name. Omitted for standalone flows.
1727
+ examples:
1728
+ - Shopee
1729
+ CurrentJobEntry:
1663
1730
  allOf:
1664
1731
  - $ref: '#/components/schemas/Job'
1665
1732
  - type: object
1666
- description: Job plus any child jobs (job family view).
1667
1733
  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'
1734
+ flow:
1735
+ $ref: '#/components/schemas/DashboardFlow'
1674
1736
  JobsCurrentResponse:
1675
1737
  type: object
1676
1738
  description: Response envelope for `POST /v1/jobs/current`.
@@ -1679,37 +1741,91 @@ components:
1679
1741
  type: array
1680
1742
  description: Current (in-progress) jobs.
1681
1743
  items:
1682
- $ref: '#/components/schemas/JobWithChildren'
1744
+ $ref: '#/components/schemas/CurrentJobEntry'
1683
1745
  pagingPostBody:
1684
- type: object
1685
1746
  description: |-
1686
1747
  Cursor for the next page. Absent on the last (or only) page. Pagination is **body-based**:
1687
1748
  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
1749
+ Echoes the caller's filter plus a server-added watermark (`createdOnAndAfter`). Single-page
1689
1750
  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'
1751
+ allOf:
1752
+ - $ref: '#/components/schemas/JobsCurrentRequest'
1697
1753
  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.
1754
+ type: object
1755
+ description: |-
1756
+ Request body for `POST /v1/flows/runs/stats`. Shares common filters with `POST /v1/jobs/current`
1757
+ (`_integrationIds`, `_flowIds`, …), but the response is a set of
1758
+ **per-flow aggregates** rather than individual job records. Filters narrow which runs are rolled
1759
+ up into each aggregate.
1706
1760
 
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.
1761
+ Omitting `time_gt` does not mean "all history" — the endpoint falls back to the dashboard's
1762
+ default window (approximately the last 24 hours), and runs older than that silently drop out
1763
+ of every aggregate. Send `time_gt` (epoch milliseconds) explicitly for any other range.
1764
+
1765
+ `time_lte` must not be later than the current time: a future value is rejected with
1766
+ `400 invalid_filter_request_body`. Omit
1767
+ `time_lte` to end the window at now. When both bounds are sent they must be at least one hour
1768
+ apart (`time_lte - time_gt >= 3600000`), or the request is rejected with
1769
+ `400 invalid_time_filter`; a window with `time_gt` alone has no minimum span.
1770
+ x-celigo-ai-guidance:
1771
+ - 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".
1772
+ - 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.
1773
+ - 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.
1774
+ - 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.
1775
+ properties:
1776
+ _integrationIds:
1777
+ type: array
1778
+ description: Optional filter to only return jobs for these integration ids.
1779
+ items:
1780
+ type: string
1781
+ format: objectId
1782
+ x-celigo-refModel: integrations
1783
+ examples:
1784
+ - 6842261335b64c0bcb308e4f
1785
+ _flowIds:
1786
+ type: array
1787
+ description: Optional filter to only return jobs for these flow ids.
1788
+ items:
1789
+ type: string
1790
+ format: objectId
1791
+ x-celigo-refModel: flows
1792
+ examples:
1793
+ - 69497fc443fc1f9a03d31bd9
1794
+ applicationIds:
1795
+ type: array
1796
+ description: Optional filter by application ids.
1797
+ items:
1798
+ type: string
1799
+ examples:
1800
+ - netsuite
1801
+ category:
1802
+ type: string
1803
+ description: Optional category filter (e.g., `edi`).
1804
+ examples:
1805
+ - edi
1806
+ time_gt:
1807
+ type: integer
1808
+ format: int64
1809
+ description: |-
1810
+ Start of the time window, in epoch milliseconds (exclusive). `POST /v1/flows/runs/stats`
1811
+ aggregates only runs inside the window.
1812
+ examples:
1813
+ - 1745366400000
1814
+ time_lte:
1815
+ type: integer
1816
+ format: int64
1817
+ description: |-
1818
+ End of the time window, in epoch milliseconds (inclusive). `POST /v1/flows/runs/stats`
1819
+ aggregates only runs inside the window.
1820
+ examples:
1821
+ - 1746147600000
1822
+ endedOnOrBefore:
1823
+ type: string
1824
+ format: date-time
1825
+ description: Paging cursor. The server sets this on `pagingPostBody` to the last row's `lastExecutedAt`.
1826
+ examples:
1827
+ - '2026-04-23T02:51:52.551Z'
1828
+ required: []
1713
1829
  FlowRunStatsEntry:
1714
1830
  type: object
1715
1831
  description: |-
@@ -1792,7 +1908,7 @@ components:
1792
1908
  lastExecutedAt:
1793
1909
  type: string
1794
1910
  format: date-time
1795
- description: Timestamp of the most recent matching run (any status).
1911
+ description: Timestamp of the most recent matching terminal run (`completed`, `canceled`, or `failed`).
1796
1912
  examples:
1797
1913
  - '2026-04-23T02:51:52.551Z'
1798
1914
  lastErrorAt:
@@ -1802,33 +1918,7 @@ components:
1802
1918
  examples:
1803
1919
  - '2026-04-21T10:51:13.221Z'
1804
1920
  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
1921
+ $ref: '#/components/schemas/DashboardFlow'
1832
1922
  FlowRunsStatsResponse:
1833
1923
  type: object
1834
1924
  description: |-
@@ -1847,20 +1937,14 @@ components:
1847
1937
  items:
1848
1938
  $ref: '#/components/schemas/FlowRunStatsEntry'
1849
1939
  pagingPostBody:
1850
- type: object
1851
1940
  description: |-
1852
1941
  Cursor for the next page. Absent on the last (or only) page. Pagination is **body-based**:
1853
1942
  POST this object back to the same endpoint as the next request body to fetch the next page.
1854
1943
  The object echoes the caller's filter plus a server-added watermark
1855
1944
  (`endedOnOrBefore`) that carries the cursor position. Single-page responses (typical for
1856
1945
  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'
1946
+ allOf:
1947
+ - $ref: '#/components/schemas/FlowRunsStatsRequest'
1864
1948
  JobsFamilyBatchRequest:
1865
1949
  type: array
1866
1950
  description: Array of job ids to fetch family information for (max 1000 ids per request).
@@ -1870,6 +1954,18 @@ components:
1870
1954
  x-celigo-refModel: jobs
1871
1955
  examples:
1872
1956
  - 69e981ee18808f3e5ed1b2fd
1957
+ JobWithChildren:
1958
+ allOf:
1959
+ - $ref: '#/components/schemas/Job'
1960
+ - type: object
1961
+ description: Job plus any child jobs (job family view).
1962
+ properties:
1963
+ children:
1964
+ type: array
1965
+ readOnly: true
1966
+ description: Child jobs (export/import) that are part of this job family.
1967
+ items:
1968
+ $ref: '#/components/schemas/Job'
1873
1969
  JobFilesSignedUrlRequest:
1874
1970
  type: object
1875
1971
  description: |
@@ -410,9 +410,11 @@ paths:
410
410
  summary: Upsert entries into a lookup cache
411
411
  description: |-
412
412
  Writes key-value entries to a lookup cache. Keys that already exist are
413
- overwritten; new keys are created. Keys are strings; values may be strings or
414
- objects — arrays at the top level are rejected (wrap them in an object). One
415
- invalid value fails the entire batch with `400 invalid_value`.
413
+ overwritten; new keys are created. Values may be null, numbers, booleans,
414
+ strings, or objects — arrays at the top level are rejected (wrap them in an
415
+ object). One invalid entry fails the entire batch and nothing in it is written:
416
+ a bad value returns `400 invalid_value`, and an empty, missing, or over-length
417
+ key returns `400 cache_dynamodb_invalid_key`.
416
418
 
417
419
  The service rejects batches larger than ~1000 entries or ~5 MB of JSON.
418
420
  Callers uploading more than that should split their payload; the Celigo CLI
@@ -603,7 +605,7 @@ paths:
603
605
  value: New York
604
606
  - key: ZZ
605
607
  error:
606
- message: Key not found
608
+ message: The requested key does not match any entry in the lookup cache. Check the key.
607
609
  '400':
608
610
  $ref: '#/components/responses/400-bad-request'
609
611
  '401':
@@ -758,6 +760,14 @@ components:
758
760
  description: Timestamp when the resource was last updated. Changes whenever any property is modified.
759
761
  x-celigo-ai-guidance:
760
762
  - Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
763
+ - |-
764
+ Records that something was written, not what — a settings edit, a flag flip, or a
765
+ platform workflow all move it. What changed and when is in the audit log: the
766
+ per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
767
+ `resourceType` enum lists, or the account-wide
768
+ `GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
769
+ endpoint's enum accepts (users, environments, notifications among them). A type absent
770
+ from both enums — jobs, connectors, templates — has only this timestamp.
761
771
  examples:
762
772
  - '2023-04-15T14:30:15Z'
763
773
  deletedAt:
@@ -971,15 +981,17 @@ components:
971
981
  LookupCacheDataEntry:
972
982
  type: object
973
983
  description: |-
974
- A single key-value pair stored in a lookup cache. Keys are strings; values are
975
- either strings or objects — the cache preserves whichever JSON shape was
976
- upserted. Top-level arrays are **rejected** at upsert with
977
- `400 invalid_value "The value provided corresponding to the key: <k> is invalid"`;
978
- callers that need to store an array should wrap it in an object
979
- (e.g. `{ "items": [...] }`).
984
+ A single key-value pair stored in a lookup cache. Values may be JSON null, number,
985
+ boolean, string, or object, and each is read back with the type it was upserted
986
+ with. Top-level arrays are **rejected** at upsert with
987
+ `400 invalid_value "The value provided corresponding to the key: <k> is invalid"`,
988
+ as are objects that carry their own top-level `key` property; callers that need to
989
+ store an array should wrap it in an object (e.g. `{ "items": [...] }`).
980
990
  properties:
981
991
  key:
982
992
  type: string
993
+ minLength: 1
994
+ maxLength: 255
983
995
  description: |-
984
996
  Lookup key. Treated as an opaque string by the cache — case-sensitive, no
985
997
  normalization. The same cache can hold multiple entries that differ only in
@@ -989,19 +1001,31 @@ components:
989
1001
  - ext-customer-12345
990
1002
  value:
991
1003
  description: |-
992
- Value associated with the key. May be a string or an object; nested arrays
993
- inside an object are fine. Top-level arrays are rejected — wrap them.
994
- Consumers should check the runtime type before use.
1004
+ Value associated with the key. Nested arrays inside an object are fine; a
1005
+ top-level array is rejected — wrap it. Consumers should check the runtime type
1006
+ before use.
995
1007
  oneOf:
1008
+ - title: Null value
1009
+ type: 'null'
1010
+ - title: Number value
1011
+ type: number
1012
+ - title: Boolean value
1013
+ type: boolean
996
1014
  - title: String value
997
1015
  type: string
998
1016
  - title: Object value
999
1017
  type: object
1000
1018
  additionalProperties: true
1001
1019
  examples:
1020
+ - null
1021
+ - 42
1022
+ - true
1002
1023
  - California
1003
1024
  - customerId: 0015g00000abc
1004
1025
  - ts: '2026-04-22T00:00:00Z'
1026
+ required:
1027
+ - key
1028
+ - value
1005
1029
  LookupCacheDataUpsertRequest:
1006
1030
  type: object
1007
1031
  description: |-
@@ -1145,7 +1169,7 @@ components:
1145
1169
  type: string
1146
1170
  description: Human-readable explanation of the miss.
1147
1171
  examples:
1148
- - Key not found
1172
+ - The requested key does not match any entry in the lookup cache. Check the key.
1149
1173
  LookupCacheDataReadResponse:
1150
1174
  type: object
1151
1175
  description: |-
@@ -1185,6 +1209,13 @@ components:
1185
1209
  description: Display name of the dependent resource.
1186
1210
  examples:
1187
1211
  - Import Orders to NetSuite
1212
+ type:
1213
+ type: string
1214
+ description: |-
1215
+ Sub-type of the dependent resource when its collection distinguishes one, such as
1216
+ `stream` for a listener export. Only present for resource types that carry a `type`.
1217
+ examples:
1218
+ - stream
1188
1219
  paths:
1189
1220
  type: array
1190
1221
  description: |-