@thinkai/tai-api-contract 2.51.1 → 2.53.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 +56 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +47 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +56 -1
- package/src/index.ts +12 -0
|
@@ -2056,6 +2056,23 @@ export interface paths {
|
|
|
2056
2056
|
patch?: never;
|
|
2057
2057
|
trace?: never;
|
|
2058
2058
|
};
|
|
2059
|
+
"/workspaces/{workspaceId}/notifications/unread-count": {
|
|
2060
|
+
parameters: {
|
|
2061
|
+
query?: never;
|
|
2062
|
+
header?: never;
|
|
2063
|
+
path?: never;
|
|
2064
|
+
cookie?: never;
|
|
2065
|
+
};
|
|
2066
|
+
/** Unread notification count */
|
|
2067
|
+
get: operations["getNotificationUnreadCount"];
|
|
2068
|
+
put?: never;
|
|
2069
|
+
post?: never;
|
|
2070
|
+
delete?: never;
|
|
2071
|
+
options?: never;
|
|
2072
|
+
head?: never;
|
|
2073
|
+
patch?: never;
|
|
2074
|
+
trace?: never;
|
|
2075
|
+
};
|
|
2059
2076
|
"/workspaces/{workspaceId}/notifications/{id}/read": {
|
|
2060
2077
|
parameters: {
|
|
2061
2078
|
query?: never;
|
|
@@ -2814,6 +2831,14 @@ export interface components {
|
|
|
2814
2831
|
mergedPrCount: number;
|
|
2815
2832
|
/** @description GitHub Actions CI build failures on this day from `ciFailureRuns` ledger when CI ingest is enabled. */
|
|
2816
2833
|
ciFailuresCount?: number;
|
|
2834
|
+
/** @description Mean hours from PR creation to first review for PRs merged on this day. */
|
|
2835
|
+
avgReviewWaitHours?: number;
|
|
2836
|
+
/** @description Mean hours from first review to first approval for PRs merged on this day. */
|
|
2837
|
+
avgApprovalHours?: number;
|
|
2838
|
+
/** @description Mean hours from PR creation to merge for PRs merged on this day. */
|
|
2839
|
+
avgTimeToMergeHours?: number;
|
|
2840
|
+
/** @description Mean additions plus deletions per merged PR on this day. */
|
|
2841
|
+
avgPrSizeLines?: number;
|
|
2817
2842
|
};
|
|
2818
2843
|
ProductivityInsightsAggregatedTeamWeekDto: {
|
|
2819
2844
|
/** Format: date-time */
|
|
@@ -4775,11 +4800,17 @@ export interface components {
|
|
|
4775
4800
|
/** Format: date-time */
|
|
4776
4801
|
createdAt: string;
|
|
4777
4802
|
route?: string;
|
|
4803
|
+
/** @enum {string} */
|
|
4804
|
+
severity?: "success" | "warning" | "destructive" | "muted" | "neutral";
|
|
4805
|
+
triggeredBy?: string | null;
|
|
4778
4806
|
};
|
|
4779
4807
|
NotificationListDto: {
|
|
4780
4808
|
items: components["schemas"]["NotificationDto"][];
|
|
4781
4809
|
total: number;
|
|
4782
4810
|
};
|
|
4811
|
+
NotificationUnreadCountDto: {
|
|
4812
|
+
count: number;
|
|
4813
|
+
};
|
|
4783
4814
|
EffectiveTaskRowDto: {
|
|
4784
4815
|
id: string;
|
|
4785
4816
|
name: string;
|
|
@@ -5041,7 +5072,7 @@ export interface components {
|
|
|
5041
5072
|
* @description Type of workspace lifecycle event.
|
|
5042
5073
|
* @enum {string}
|
|
5043
5074
|
*/
|
|
5044
|
-
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped";
|
|
5075
|
+
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped";
|
|
5045
5076
|
ActivityLogActorDto: {
|
|
5046
5077
|
/** Format: uuid */
|
|
5047
5078
|
userId: string;
|
|
@@ -5562,6 +5593,7 @@ export type ProjectDto = components['schemas']['ProjectDto'];
|
|
|
5562
5593
|
export type ProjectPatchDto = components['schemas']['ProjectPatchDto'];
|
|
5563
5594
|
export type NotificationDto = components['schemas']['NotificationDto'];
|
|
5564
5595
|
export type NotificationListDto = components['schemas']['NotificationListDto'];
|
|
5596
|
+
export type NotificationUnreadCountDto = components['schemas']['NotificationUnreadCountDto'];
|
|
5565
5597
|
export type EffectiveTaskRowDto = components['schemas']['EffectiveTaskRowDto'];
|
|
5566
5598
|
export type EffectivePhaseTasksBlockDto = components['schemas']['EffectivePhaseTasksBlockDto'];
|
|
5567
5599
|
export type AiStrategyRecommendBodyDto = components['schemas']['AiStrategyRecommendBodyDto'];
|
|
@@ -11046,6 +11078,29 @@ export interface operations {
|
|
|
11046
11078
|
401: components["responses"]["Unauthorized"];
|
|
11047
11079
|
};
|
|
11048
11080
|
};
|
|
11081
|
+
getNotificationUnreadCount: {
|
|
11082
|
+
parameters: {
|
|
11083
|
+
query?: never;
|
|
11084
|
+
header?: never;
|
|
11085
|
+
path: {
|
|
11086
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
11087
|
+
};
|
|
11088
|
+
cookie?: never;
|
|
11089
|
+
};
|
|
11090
|
+
requestBody?: never;
|
|
11091
|
+
responses: {
|
|
11092
|
+
/** @description Unread count for the current user in this workspace (respecting notification preferences) */
|
|
11093
|
+
200: {
|
|
11094
|
+
headers: {
|
|
11095
|
+
[name: string]: unknown;
|
|
11096
|
+
};
|
|
11097
|
+
content: {
|
|
11098
|
+
"application/json": components["schemas"]["NotificationUnreadCountDto"];
|
|
11099
|
+
};
|
|
11100
|
+
};
|
|
11101
|
+
401: components["responses"]["Unauthorized"];
|
|
11102
|
+
};
|
|
11103
|
+
};
|
|
11049
11104
|
postNotificationRead: {
|
|
11050
11105
|
parameters: {
|
|
11051
11106
|
query?: never;
|