@thinkai/tai-api-contract 2.61.0-pr.901.b553abc8 → 2.62.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.
- package/dist/generated/openapi.d.ts +65 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +50 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +65 -0
- package/src/index.ts +8 -0
|
@@ -2505,6 +2505,26 @@ export interface paths {
|
|
|
2505
2505
|
patch?: never;
|
|
2506
2506
|
trace?: never;
|
|
2507
2507
|
};
|
|
2508
|
+
"/workspaces/{workspaceId}/your-ai-journey/hero": {
|
|
2509
|
+
parameters: {
|
|
2510
|
+
query?: never;
|
|
2511
|
+
header?: never;
|
|
2512
|
+
path?: never;
|
|
2513
|
+
cookie?: never;
|
|
2514
|
+
};
|
|
2515
|
+
/**
|
|
2516
|
+
* First-paint hero payload for the /dashboard page
|
|
2517
|
+
* @description Returns analytics and productivity in one response so the dashboard hero can paint with a single RTT (auth + membership checked once). Nested payloads match the dedicated analytics and productivity routes and reuse those routes' 60s caches (there is no separate hero-level cache). `generatedAt` on the hero envelope and both nested payloads is set to the same assembly timestamp.
|
|
2518
|
+
*/
|
|
2519
|
+
get: operations["getYourAiJourneyHero"];
|
|
2520
|
+
put?: never;
|
|
2521
|
+
post?: never;
|
|
2522
|
+
delete?: never;
|
|
2523
|
+
options?: never;
|
|
2524
|
+
head?: never;
|
|
2525
|
+
patch?: never;
|
|
2526
|
+
trace?: never;
|
|
2527
|
+
};
|
|
2508
2528
|
"/workspaces/{workspaceId}/your-ai-journey/analytics": {
|
|
2509
2529
|
parameters: {
|
|
2510
2530
|
query?: never;
|
|
@@ -5722,6 +5742,17 @@ export interface components {
|
|
|
5722
5742
|
totalFixedIssues: number;
|
|
5723
5743
|
};
|
|
5724
5744
|
};
|
|
5745
|
+
YourAiJourneyHeroDto: {
|
|
5746
|
+
/** Format: uuid */
|
|
5747
|
+
workspaceId: string;
|
|
5748
|
+
/**
|
|
5749
|
+
* Format: date-time
|
|
5750
|
+
* @description Assembly timestamp for this hero response; also written onto analytics.generatedAt and productivity.generatedAt so all three match.
|
|
5751
|
+
*/
|
|
5752
|
+
generatedAt: string;
|
|
5753
|
+
analytics: components["schemas"]["YourAiJourneyAnalyticsDto"];
|
|
5754
|
+
productivity: components["schemas"]["DashboardProductivityDto"];
|
|
5755
|
+
};
|
|
5725
5756
|
YourAiJourneyAnalyticsDto: {
|
|
5726
5757
|
/** Format: uuid */
|
|
5727
5758
|
workspaceId: string;
|
|
@@ -6435,6 +6466,7 @@ export type YourAiJourneyPrSignalsWeekDto = components['schemas']['YourAiJourney
|
|
|
6435
6466
|
export type YourAiJourneyPrSignalsDto = components['schemas']['YourAiJourneyPrSignalsDto'];
|
|
6436
6467
|
export type YourAiJourneyReadinessDimensionDto = components['schemas']['YourAiJourneyReadinessDimensionDto'];
|
|
6437
6468
|
export type YourAiJourneyReadinessAggregateDto = components['schemas']['YourAiJourneyReadinessAggregateDto'];
|
|
6469
|
+
export type YourAiJourneyHeroDto = components['schemas']['YourAiJourneyHeroDto'];
|
|
6438
6470
|
export type YourAiJourneyAnalyticsDto = components['schemas']['YourAiJourneyAnalyticsDto'];
|
|
6439
6471
|
export type YourAiJourneyAiSpendWeekDto = components['schemas']['YourAiJourneyAiSpendWeekDto'];
|
|
6440
6472
|
export type YourAiJourneyAiSpendDto = components['schemas']['YourAiJourneyAiSpendDto'];
|
|
@@ -13002,6 +13034,39 @@ export interface operations {
|
|
|
13002
13034
|
};
|
|
13003
13035
|
};
|
|
13004
13036
|
};
|
|
13037
|
+
getYourAiJourneyHero: {
|
|
13038
|
+
parameters: {
|
|
13039
|
+
query?: never;
|
|
13040
|
+
header?: never;
|
|
13041
|
+
path: {
|
|
13042
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
13043
|
+
};
|
|
13044
|
+
cookie?: never;
|
|
13045
|
+
};
|
|
13046
|
+
requestBody?: never;
|
|
13047
|
+
responses: {
|
|
13048
|
+
/** @description Hero bootstrap payload */
|
|
13049
|
+
200: {
|
|
13050
|
+
headers: {
|
|
13051
|
+
[name: string]: unknown;
|
|
13052
|
+
};
|
|
13053
|
+
content: {
|
|
13054
|
+
"application/json": components["schemas"]["YourAiJourneyHeroDto"];
|
|
13055
|
+
};
|
|
13056
|
+
};
|
|
13057
|
+
401: components["responses"]["Unauthorized"];
|
|
13058
|
+
403: components["responses"]["Forbidden"];
|
|
13059
|
+
/** @description Workspace does not exist */
|
|
13060
|
+
404: {
|
|
13061
|
+
headers: {
|
|
13062
|
+
[name: string]: unknown;
|
|
13063
|
+
};
|
|
13064
|
+
content: {
|
|
13065
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
13066
|
+
};
|
|
13067
|
+
};
|
|
13068
|
+
};
|
|
13069
|
+
};
|
|
13005
13070
|
getYourAiJourneyAnalytics: {
|
|
13006
13071
|
parameters: {
|
|
13007
13072
|
query?: never;
|