@thinkai/tai-api-contract 2.163.0 → 2.164.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.163.0
4
+ version: 2.164.0
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -1039,7 +1039,6 @@ paths:
1039
1039
  email: new.member@example.com
1040
1040
  role: editor
1041
1041
  status: pending
1042
- invitedByName: Dana Admin
1043
1042
  expiresAt: "2026-08-01T12:00:00.000Z"
1044
1043
  createdAt: "2026-07-25T12:00:00.000Z"
1045
1044
  alreadyMember:
@@ -11918,7 +11917,10 @@ components:
11918
11917
 
11919
11918
  WorkspaceInvitationDto:
11920
11919
  type: object
11921
- description: Workspace invitation as seen by an authenticated admin or invitee.
11920
+ description: >
11921
+ Workspace invitation as seen by an authenticated admin or invitee.
11922
+ Inviter identity is omitted from this DTO (mailer uses store rows; public
11923
+ preview exposes `invitedByName` on `WorkspaceInvitationPreviewDto` only).
11922
11924
  required: [id, workspaceId, workspaceName, email, role, status, expiresAt, createdAt]
11923
11925
  properties:
11924
11926
  id:
@@ -11937,12 +11939,6 @@ components:
11937
11939
  enum: [admin, editor, viewer]
11938
11940
  status:
11939
11941
  $ref: "#/components/schemas/WorkspaceInvitationStatusDto"
11940
- invitedByName:
11941
- type: string
11942
- nullable: true
11943
- invitedByEmail:
11944
- type: string
11945
- nullable: true
11946
11942
  expiresAt:
11947
11943
  type: string
11948
11944
  format: date-time
@@ -15725,18 +15721,15 @@ components:
15725
15721
 
15726
15722
  MeProfileDto:
15727
15723
  type: object
15728
- required: [id, email, name, roles]
15724
+ required: [id, email, name]
15729
15725
  properties:
15730
15726
  id:
15731
15727
  type: string
15728
+ description: Authenticated subject id (JWT `sub`).
15732
15729
  email:
15733
15730
  type: string
15734
15731
  name:
15735
15732
  type: string
15736
- roles:
15737
- type: array
15738
- items:
15739
- type: string
15740
15733
  defaultWorkspaceId:
15741
15734
  type: string
15742
15735
  nullable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.163.0",
3
+ "version": "2.164.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -4748,7 +4748,7 @@ export interface components {
4748
4748
  * @enum {string}
4749
4749
  */
4750
4750
  WorkspaceInvitationStatusDto: "pending" | "accepted" | "expired" | "revoked" | "rejected";
4751
- /** @description Workspace invitation as seen by an authenticated admin or invitee. */
4751
+ /** @description Workspace invitation as seen by an authenticated admin or invitee. Inviter identity is omitted from this DTO (mailer uses store rows; public preview exposes `invitedByName` on `WorkspaceInvitationPreviewDto` only). */
4752
4752
  WorkspaceInvitationDto: {
4753
4753
  /** Format: uuid */
4754
4754
  id: string;
@@ -4760,8 +4760,6 @@ export interface components {
4760
4760
  /** @enum {string} */
4761
4761
  role: "admin" | "editor" | "viewer";
4762
4762
  status: components["schemas"]["WorkspaceInvitationStatusDto"];
4763
- invitedByName?: string | null;
4764
- invitedByEmail?: string | null;
4765
4763
  /** Format: date-time */
4766
4764
  expiresAt: string;
4767
4765
  /** Format: date-time */
@@ -6552,10 +6550,10 @@ export interface components {
6552
6550
  heatmap: components["schemas"]["AiToolMemberHeatmapDayDto"][];
6553
6551
  };
6554
6552
  MeProfileDto: {
6553
+ /** @description Authenticated subject id (JWT `sub`). */
6555
6554
  id: string;
6556
6555
  email: string;
6557
6556
  name: string;
6558
- roles: string[];
6559
6557
  defaultWorkspaceId?: string | null;
6560
6558
  /** @description True when the caller's email is on the `PLATFORM_ADMIN_EMAILS` allowlist. Lets the frontend gate platform-admin surfaces (e.g. the privacy-request queue) without duplicating the allowlist client-side. */
6561
6559
  isPlatformAdmin?: boolean;