@thinkai/tai-api-contract 2.147.1 → 2.148.0

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.
@@ -3707,7 +3707,10 @@ export interface paths {
3707
3707
  path?: never;
3708
3708
  cookie?: never;
3709
3709
  };
3710
- /** Paginated notifications */
3710
+ /**
3711
+ * Paginated notifications
3712
+ * @description Inbox for the current user in this workspace. Applies the same notification-type preference filter and routine-title exclusion as the unread badge. `view` defaults to `all` so a client that omits it still receives success rows. Severity is the stored column and is not recomputed per request.
3713
+ */
3711
3714
  get: operations["listNotifications"];
3712
3715
  put?: never;
3713
3716
  post?: never;
@@ -3724,7 +3727,10 @@ export interface paths {
3724
3727
  path?: never;
3725
3728
  cookie?: never;
3726
3729
  };
3727
- /** Unread notification count */
3730
+ /**
3731
+ * Unread notification count
3732
+ * @description Unread rows for the current user in this workspace after the notification-type preference filter and the routine-title exclusion. `count` is not capped. `hasUnreadCritical` is true when at least one of those rows has severity `destructive`.
3733
+ */
3728
3734
  get: operations["getNotificationUnreadCount"];
3729
3735
  put?: never;
3730
3736
  post?: never;
@@ -3851,7 +3857,7 @@ export interface paths {
3851
3857
  };
3852
3858
  /**
3853
3859
  * App chrome bootstrap payload
3854
- * @description Returns the authenticated user's profile, workspace list, and preferences in one response. When `workspaceId` is provided and resolves to a workspace the caller belongs to, also returns platform banner, unread notification count, journey progress, and connectors snapshot. Invalid, unknown, or non-member `workspaceId` values do not produce 403/404 — the response is still 200 with only `me`, `workspaces`, and `preferences` (workspace-scoped fields omitted).
3860
+ * @description Returns the authenticated user's profile, workspace list, and preferences in one response. When `workspaceId` is provided and resolves to a workspace the caller belongs to, also returns platform banner, unread notification count (`count` and `hasUnreadCritical`), journey progress, and connectors snapshot. Invalid, unknown, or non-member `workspaceId` values do not produce 403/404 — the response is still 200 with only `me`, `workspaces`, and `preferences` (workspace-scoped fields omitted).
3855
3861
  */
3856
3862
  get: operations["getAppShell"];
3857
3863
  put?: never;
@@ -7879,8 +7885,11 @@ export interface components {
7879
7885
  /** Format: date-time */
7880
7886
  createdAt: string;
7881
7887
  route?: string;
7882
- /** @enum {string} */
7883
- severity?: "success" | "warning" | "destructive" | "muted" | "neutral";
7888
+ /**
7889
+ * @description Stored on the notification row at fan-out. `destructive` is the only critical severity.
7890
+ * @enum {string}
7891
+ */
7892
+ severity: "success" | "warning" | "destructive" | "muted" | "neutral";
7884
7893
  triggeredBy?: string | null;
7885
7894
  };
7886
7895
  NotificationListDto: {
@@ -7888,7 +7897,10 @@ export interface components {
7888
7897
  total: number;
7889
7898
  };
7890
7899
  NotificationUnreadCountDto: {
7900
+ /** @description Unread rows after the type-preference filter and routine-title exclusion. Not capped. */
7891
7901
  count: number;
7902
+ /** @description True when at least one of those unread rows has severity `destructive`. */
7903
+ hasUnreadCritical: boolean;
7892
7904
  };
7893
7905
  EffectiveTaskRowDto: {
7894
7906
  id: string;
@@ -20579,6 +20591,10 @@ export interface operations {
20579
20591
  query?: {
20580
20592
  limit?: number;
20581
20593
  offset?: number;
20594
+ /** @description `all` returns every severity. `needs_action` returns only `warning` and `destructive`. Omitted is `all`. */
20595
+ view?: "all" | "needs_action";
20596
+ /** @description Omit to include read and unread rows. `true` is unread only. `false` is read only. */
20597
+ unread?: boolean;
20582
20598
  };
20583
20599
  header?: never;
20584
20600
  path: {
@@ -20597,6 +20613,15 @@ export interface operations {
20597
20613
  "application/json": components["schemas"]["NotificationListDto"];
20598
20614
  };
20599
20615
  };
20616
+ /** @description Invalid `view` or `unread` */
20617
+ 400: {
20618
+ headers: {
20619
+ [name: string]: unknown;
20620
+ };
20621
+ content: {
20622
+ "application/json": components["schemas"]["ErrorMessageDto"];
20623
+ };
20624
+ };
20600
20625
  401: components["responses"]["Unauthorized"];
20601
20626
  };
20602
20627
  };