@wayai/cli 0.3.95 → 0.3.96

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/index.js CHANGED
@@ -6815,8 +6815,18 @@ var init_dist = __esm({
6815
6815
  hub_user_id: external_exports.string().optional(),
6816
6816
  conversation_id: external_exports.string().uuid().optional(),
6817
6817
  message_id: external_exports.string().uuid().optional(),
6818
+ // `page` = LEGACY oldest-first offset paging (deployed page-based clients).
6819
+ // Its PRESENCE selects the legacy read path server-side; a new client omits it
6820
+ // and instead sends `page_size` + (for older pages) the keyset cursor below.
6818
6821
  page: external_exports.string().regex(/^\d+$/).optional(),
6819
6822
  page_size: external_exports.string().regex(/^\d+$/).optional(),
6823
+ // Keyset cursor for the newest-first scroll (`page` absent): return only
6824
+ // messages strictly older than (before_created_at, before_message_id) — the
6825
+ // oldest currently-loaded VISIBLE message. UTC ISO-8601 (Timestamps standard);
6826
+ // `datetime()` hardens it before the parameterized DO predicate. Mirrors the
6827
+ // `before_ended_at` cursor precedent above.
6828
+ before_created_at: external_exports.string().datetime().optional(),
6829
+ before_message_id: external_exports.string().uuid().optional(),
6820
6830
  /**
6821
6831
  * When true AND the caller has support access (hub admin or hub team member),
6822
6832
  * internal messages (tool calls, tool results) are included in the response.
@@ -6824,6 +6834,14 @@ var init_dist = __esm({
6824
6834
  * authorization boundary.
6825
6835
  */
6826
6836
  include_internal: external_exports.union([external_exports.literal("true"), external_exports.literal("false"), external_exports.boolean()]).optional().transform((v) => v === true || v === "true")
6837
+ }).superRefine((q, ctx) => {
6838
+ if (q.before_created_at == null !== (q.before_message_id == null)) {
6839
+ ctx.addIssue({
6840
+ code: external_exports.ZodIssueCode.custom,
6841
+ message: "before_created_at and before_message_id must be provided together",
6842
+ path: [q.before_created_at == null ? "before_created_at" : "before_message_id"]
6843
+ });
6844
+ }
6827
6845
  });
6828
6846
  updateUserBody = external_exports.object({
6829
6847
  user_language: external_exports.string().optional(),
@@ -13702,8 +13720,18 @@ var init_contracts = __esm({
13702
13720
  hub_user_id: external_exports.string().optional(),
13703
13721
  conversation_id: external_exports.string().uuid().optional(),
13704
13722
  message_id: external_exports.string().uuid().optional(),
13723
+ // `page` = LEGACY oldest-first offset paging (deployed page-based clients).
13724
+ // Its PRESENCE selects the legacy read path server-side; a new client omits it
13725
+ // and instead sends `page_size` + (for older pages) the keyset cursor below.
13705
13726
  page: external_exports.string().regex(/^\d+$/).optional(),
13706
13727
  page_size: external_exports.string().regex(/^\d+$/).optional(),
13728
+ // Keyset cursor for the newest-first scroll (`page` absent): return only
13729
+ // messages strictly older than (before_created_at, before_message_id) — the
13730
+ // oldest currently-loaded VISIBLE message. UTC ISO-8601 (Timestamps standard);
13731
+ // `datetime()` hardens it before the parameterized DO predicate. Mirrors the
13732
+ // `before_ended_at` cursor precedent above.
13733
+ before_created_at: external_exports.string().datetime().optional(),
13734
+ before_message_id: external_exports.string().uuid().optional(),
13707
13735
  /**
13708
13736
  * When true AND the caller has support access (hub admin or hub team member),
13709
13737
  * internal messages (tool calls, tool results) are included in the response.
@@ -13711,6 +13739,14 @@ var init_contracts = __esm({
13711
13739
  * authorization boundary.
13712
13740
  */
13713
13741
  include_internal: external_exports.union([external_exports.literal("true"), external_exports.literal("false"), external_exports.boolean()]).optional().transform((v) => v === true || v === "true")
13742
+ }).superRefine((q, ctx) => {
13743
+ if (q.before_created_at == null !== (q.before_message_id == null)) {
13744
+ ctx.addIssue({
13745
+ code: external_exports.ZodIssueCode.custom,
13746
+ message: "before_created_at and before_message_id must be provided together",
13747
+ path: [q.before_created_at == null ? "before_created_at" : "before_message_id"]
13748
+ });
13749
+ }
13714
13750
  });
13715
13751
  updateUserBody2 = external_exports.object({
13716
13752
  user_language: external_exports.string().optional(),