@thinkai/tai-api-contract 2.236.0 → 2.237.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.236.0
4
+ version: 2.237.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}/...`.
@@ -27275,15 +27275,47 @@ components:
27275
27275
  type: string
27276
27276
  format: date-time
27277
27277
  description: When set, the banner is hidden after this instant (UTC).
27278
+ actions:
27279
+ type: array
27280
+ description: >
27281
+ Optional calls to action rendered next to the notice (for example
27282
+ "Add execution key"). Clients that do not know an action simply omit it.
27283
+ items:
27284
+ $ref: "#/components/schemas/PlatformBannerActionDto"
27285
+ details:
27286
+ type: string
27287
+ description: Optional longer explanation shown when the notice is expanded.
27288
+
27289
+ PlatformBannerActionDto:
27290
+ type: object
27291
+ required: [label, href]
27292
+ properties:
27293
+ label:
27294
+ type: string
27295
+ href:
27296
+ type: string
27297
+ description: In-app path (starts with `/`) or an absolute https URL.
27298
+ external:
27299
+ type: boolean
27300
+ description: True when `href` leaves the app and should open in a new tab.
27278
27301
 
27279
27302
  PlatformBannerViewDto:
27280
27303
  type: object
27281
- required: [banner]
27304
+ required: [banner, banners]
27282
27305
  properties:
27283
27306
  banner:
27284
27307
  allOf:
27285
27308
  - $ref: "#/components/schemas/PlatformBannerDto"
27286
27309
  nullable: true
27310
+ description: Most urgent active notice, equal to `banners[0]`. Kept for older clients.
27311
+ banners:
27312
+ type: array
27313
+ description: >
27314
+ Every notice active right now, most urgent first (global outage, global
27315
+ maintenance, workspace AI execution blocker, then other notices). A notice
27316
+ disappears from this list as soon as its condition ends.
27317
+ items:
27318
+ $ref: "#/components/schemas/PlatformBannerDto"
27287
27319
 
27288
27320
  PlatformBannerUpsertDto:
27289
27321
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.236.0",
3
+ "version": "2.237.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -11262,9 +11262,23 @@ export interface components {
11262
11262
  * @description When set, the banner is hidden after this instant (UTC).
11263
11263
  */
11264
11264
  endsAt?: string;
11265
+ /** @description Optional calls to action rendered next to the notice (for example "Add execution key"). Clients that do not know an action simply omit it. */
11266
+ actions?: components["schemas"]["PlatformBannerActionDto"][];
11267
+ /** @description Optional longer explanation shown when the notice is expanded. */
11268
+ details?: string;
11269
+ };
11270
+ PlatformBannerActionDto: {
11271
+ label: string;
11272
+ /** @description In-app path (starts with `/`) or an absolute https URL. */
11273
+ href: string;
11274
+ /** @description True when `href` leaves the app and should open in a new tab. */
11275
+ external?: boolean;
11265
11276
  };
11266
11277
  PlatformBannerViewDto: {
11278
+ /** @description Most urgent active notice, equal to `banners[0]`. Kept for older clients. */
11267
11279
  banner: components["schemas"]["PlatformBannerDto"] | null;
11280
+ /** @description Every notice active right now, most urgent first (global outage, global maintenance, workspace AI execution blocker, then other notices). A notice disappears from this list as soon as its condition ends. */
11281
+ banners: components["schemas"]["PlatformBannerDto"][];
11268
11282
  };
11269
11283
  PlatformBannerUpsertDto: {
11270
11284
  /** @description Pass null to clear the active database-managed banner. */
@@ -15671,6 +15685,7 @@ export type RulesSkillsCreateResponseDto = components['schemas']['RulesSkillsCre
15671
15685
  export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
15672
15686
  export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
15673
15687
  export type PlatformBannerDto = components['schemas']['PlatformBannerDto'];
15688
+ export type PlatformBannerActionDto = components['schemas']['PlatformBannerActionDto'];
15674
15689
  export type PlatformBannerViewDto = components['schemas']['PlatformBannerViewDto'];
15675
15690
  export type PlatformBannerUpsertDto = components['schemas']['PlatformBannerUpsertDto'];
15676
15691
  export type PlatformAdminBannerDto = components['schemas']['PlatformAdminBannerDto'];