@celigo/api-specs 0.2.260 → 0.2.262

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/topic.yml CHANGED
@@ -505,8 +505,10 @@ paths:
505
505
  description: |-
506
506
  Reads the messages currently retained on a topic, oldest first, without affecting any
507
507
  listener's read position — use it to inspect what producers are publishing or to confirm a
508
- purge. Pages are cursor-based: follow `nextPageURL` until it is absent. Query parameters other
509
- than the four below are ignored.
508
+ purge. Every message carries its `offset`, so a read can be bounded by position
509
+ (`offset_gt`, `offset_lte`) as well as by time (`time_gt`, `time_lte`). Pages are
510
+ cursor-based: follow `nextPageURL`, which keeps the request's filters, until it is absent.
511
+ Unrecognized query parameters are ignored.
510
512
  operationId: listTopicMessages
511
513
  tags:
512
514
  - Topics
@@ -560,6 +562,35 @@ paths:
560
562
  format: int64
561
563
  examples:
562
564
  - 1790047500000
565
+ - name: offset_gt
566
+ in: query
567
+ required: false
568
+ description: |-
569
+ Only messages whose `offset` is strictly greater than this value — pass the `offset` of
570
+ the last message you handled to resume after it. Sent together with `afterOffset`, the
571
+ higher of the two lower bounds applies. A value that is not a non-negative integer
572
+ fails with 400 `invalid_offset_gt`.
573
+ schema:
574
+ type: integer
575
+ format: int64
576
+ minimum: 0
577
+ examples:
578
+ - 49
579
+ - name: offset_lte
580
+ in: query
581
+ required: false
582
+ description: |-
583
+ Only messages whose `offset` is at or below this value; with `offset_gt` it closes a
584
+ window, for example to re-read exactly the positions one listener run consumed. A
585
+ bound beyond the newest message returns what exists; a window below `offset_gt`, or
586
+ one covering only purged or expired positions, returns an empty page. A value that is
587
+ not a non-negative integer fails with 400 `invalid_offset_lte`.
588
+ schema:
589
+ type: integer
590
+ format: int64
591
+ minimum: 0
592
+ examples:
593
+ - 99
563
594
  responses:
564
595
  '200':
565
596
  description: One page of messages. `messages` is empty when nothing is retained in the requested window.
@@ -572,24 +603,46 @@ paths:
572
603
  summary: First of several pages
573
604
  value:
574
605
  messages:
575
- - timestamp: '2026-09-22T03:24:35.992Z'
606
+ - offset: 0
607
+ timestamp: '2026-09-22T03:24:35.992Z'
576
608
  payload:
577
609
  orderId: SO-1001
578
610
  total: 42.5
579
- - timestamp: '2026-09-22T03:24:35.992Z'
611
+ - offset: 1
612
+ timestamp: '2026-09-22T03:24:35.992Z'
580
613
  payload:
581
614
  orderId: SO-1002
582
615
  total: 18
616
+ offsetRange:
617
+ startOffset: 0
618
+ endOffset: 1
583
619
  nextPageURL: /v1/topics/6aab2870265e1cf39fcbee4d/messages?limit=2&afterOffset=1
620
+ offset_window:
621
+ summary: '`offset_gt=0&offset_lte=3&limit=2`: the window is kept on the next page'
622
+ value:
623
+ messages:
624
+ - offset: 1
625
+ timestamp: '2026-11-07T02:20:29.028Z'
626
+ payload:
627
+ orderId: SO-1001
628
+ - offset: 2
629
+ timestamp: '2026-11-07T02:20:29.028Z'
630
+ payload:
631
+ orderId: SO-1002
632
+ offsetRange:
633
+ startOffset: 1
634
+ endOffset: 2
635
+ nextPageURL: /v1/topics/6aab2870265e1cf39fcbee4d/messages?offset_gt=0&offset_lte=3&limit=2&afterOffset=2
584
636
  empty:
585
- summary: Nothing retained
637
+ summary: Nothing retained in the requested window
586
638
  value:
587
639
  messages: []
588
640
  '400':
589
641
  description: |-
590
642
  A query parameter is malformed: `limit` outside 1–100 (`invalid_limit`), `time_gt` or
591
- `time_lte` not epoch milliseconds (`invalid_time_gt`, `invalid_time_lte`), or `afterOffset`
592
- not a cursor issued by this endpoint (`invalid_after_offset`).
643
+ `time_lte` not epoch milliseconds (`invalid_time_gt`, `invalid_time_lte`), `offset_gt` or
644
+ `offset_lte` not a non-negative integer (`invalid_offset_gt`, `invalid_offset_lte`), or
645
+ `afterOffset` not a cursor issued by this endpoint (`invalid_after_offset`).
593
646
  content:
594
647
  application/json:
595
648
  schema:
@@ -607,6 +660,13 @@ paths:
607
660
  - code: invalid_time_gt
608
661
  message: time_gt must be a Unix timestamp in milliseconds
609
662
  source: internal
663
+ bad_offset:
664
+ summary: '`offset_gt=-1` (also a fractional, empty or non-numeric value)'
665
+ value:
666
+ errors:
667
+ - code: invalid_offset_gt
668
+ message: offset_gt must be a non-negative integer Kafka offset
669
+ source: internal
610
670
  '401':
611
671
  $ref: '#/components/responses/401-unauthorized'
612
672
  '404':
@@ -1505,9 +1565,21 @@ components:
1505
1565
  type: object
1506
1566
  description: One retained message, in publish order.
1507
1567
  required:
1568
+ - offset
1508
1569
  - timestamp
1509
1570
  - payload
1510
1571
  properties:
1572
+ offset:
1573
+ type: integer
1574
+ format: int64
1575
+ minimum: 0
1576
+ description: |-
1577
+ Position of the message in the topic's stream, counted from the first message ever
1578
+ published and never reused: it keeps increasing after a purge, so a page that starts above
1579
+ the position you expected means the earlier messages expired or were purged. Pass it as
1580
+ `offset_gt` to resume after this message or as `offset_lte` to stop at it.
1581
+ examples:
1582
+ - 49
1511
1583
  timestamp:
1512
1584
  type: string
1513
1585
  format: date-time
@@ -1531,15 +1603,39 @@ components:
1531
1603
  type: array
1532
1604
  description: |-
1533
1605
  Messages in the requested window, oldest first. Empty when the topic has never received a
1534
- message, when everything has aged out of `retentionMs`, or when the continuation cursor is
1535
- already at the end of the stream.
1606
+ message, when everything has aged out of `retentionMs`, when the continuation cursor is
1607
+ already at the end of the stream, or when the `offset_*`/`time_*` bounds select nothing.
1536
1608
  items:
1537
1609
  $ref: '#/components/schemas/TopicMessage'
1610
+ offsetRange:
1611
+ type: object
1612
+ description: |-
1613
+ Offsets of the first and last message on this page, so a caller can record how far it has
1614
+ read without walking `messages`. Absent when `messages` is empty.
1615
+ required:
1616
+ - startOffset
1617
+ - endOffset
1618
+ properties:
1619
+ startOffset:
1620
+ type: integer
1621
+ format: int64
1622
+ minimum: 0
1623
+ description: '`offset` of the first message on the page.'
1624
+ examples:
1625
+ - 0
1626
+ endOffset:
1627
+ type: integer
1628
+ format: int64
1629
+ minimum: 0
1630
+ description: '`offset` of the last message on the page; the value to continue from.'
1631
+ examples:
1632
+ - 49
1538
1633
  nextPageURL:
1539
1634
  type: string
1540
1635
  description: |-
1541
- Relative URL of the next page, carrying the same filters plus an `afterOffset` cursor.
1542
- Follow it as-is rather than building the cursor yourself. Absent on the last page.
1636
+ Relative URL of the next page: the request's `limit`, time and offset filters plus an
1637
+ `afterOffset` cursor. Follow it as-is rather than building the cursor yourself. Absent on
1638
+ the last page, including when an `offset_lte` window is used up before `limit` is reached.
1543
1639
  examples:
1544
1640
  - /v1/topics/6ab1f44d7c4b4e699fe84b0a/messages?limit=50&afterOffset=49
1545
1641
  PurgeMessagesResponse:
package/dist/user.yml CHANGED
@@ -693,13 +693,20 @@ paths:
693
693
  $ref: '#/components/responses/401-unauthorized'
694
694
  '403':
695
695
  description: |-
696
- `emails` is empty, holds more than five addresses, or repeats one; nothing is
697
- invited. Also returned when the caller may not invite users.
696
+ `emails` is missing or empty (`no_emails`), holds more than five addresses
697
+ (`limit_exceeded`), or repeats one (`duplicate_emails`); nothing is invited. Also
698
+ returned when the caller may not invite users.
698
699
  content:
699
700
  application/json:
700
701
  schema:
701
702
  $ref: '#/components/schemas/Error'
702
703
  examples:
704
+ noEmails:
705
+ summary: No emails in the body (`{}` or an empty array)
706
+ value:
707
+ errors:
708
+ - code: no_emails
709
+ message: No emails found in the request.
703
710
  tooMany:
704
711
  summary: More than five addresses
705
712
  value:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.260",
3
+ "version": "0.2.262",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "37861893",
4
+ "iasCommit": "f1d29699",
5
5
  "generatedAt": "2026-11-07"
6
6
  },
7
7
  "roots": {