@thinkai/tai-api-contract 2.132.0 → 2.133.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 +92 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +114 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +92 -0
- package/src/index.ts +24 -0
|
@@ -4134,6 +4134,26 @@ export interface paths {
|
|
|
4134
4134
|
patch?: never;
|
|
4135
4135
|
trace?: never;
|
|
4136
4136
|
};
|
|
4137
|
+
"/workspaces/{workspaceId}/ingest-runs": {
|
|
4138
|
+
parameters: {
|
|
4139
|
+
query?: never;
|
|
4140
|
+
header?: never;
|
|
4141
|
+
path?: never;
|
|
4142
|
+
cookie?: never;
|
|
4143
|
+
};
|
|
4144
|
+
/**
|
|
4145
|
+
* List durable ingest runs
|
|
4146
|
+
* @description Newest-first history of ingest worker ticks that polled. Quiet skips (lock held, rate-limit deferral, and other non-poll skips) are omitted. This wave writes `productivity_github` only; other kinds return an empty list. Requires workspace membership. Does not include run history on ingest-coverage.
|
|
4147
|
+
*/
|
|
4148
|
+
get: operations["getWorkspaceIngestRuns"];
|
|
4149
|
+
put?: never;
|
|
4150
|
+
post?: never;
|
|
4151
|
+
delete?: never;
|
|
4152
|
+
options?: never;
|
|
4153
|
+
head?: never;
|
|
4154
|
+
patch?: never;
|
|
4155
|
+
trace?: never;
|
|
4156
|
+
};
|
|
4137
4157
|
"/workspaces/{workspaceId}/hris/status": {
|
|
4138
4158
|
parameters: {
|
|
4139
4159
|
query?: never;
|
|
@@ -8165,6 +8185,27 @@ export interface components {
|
|
|
8165
8185
|
/** Format: date-time */
|
|
8166
8186
|
generatedAt?: string;
|
|
8167
8187
|
};
|
|
8188
|
+
IngestRunDto: {
|
|
8189
|
+
/** Format: uuid */
|
|
8190
|
+
runId: string;
|
|
8191
|
+
/** @enum {string} */
|
|
8192
|
+
kind: "productivity_github" | "ai_usage" | "sdlc_github" | "monitoring" | "hris";
|
|
8193
|
+
/** Format: date-time */
|
|
8194
|
+
startedAt: string;
|
|
8195
|
+
/** Format: date-time */
|
|
8196
|
+
completedAt: string | null;
|
|
8197
|
+
/** @enum {string} */
|
|
8198
|
+
outcome: "in_progress" | "ok" | "partial" | "failed" | "cancelled";
|
|
8199
|
+
reposPolled: number | null;
|
|
8200
|
+
reposOk: number | null;
|
|
8201
|
+
reposFailed: number | null;
|
|
8202
|
+
errorSummary: string | null;
|
|
8203
|
+
/** @description ISO lastIngestAt after the cursor moved; null when it did not. */
|
|
8204
|
+
watermark: string | null;
|
|
8205
|
+
};
|
|
8206
|
+
IngestRunListDto: {
|
|
8207
|
+
runs: components["schemas"]["IngestRunDto"][];
|
|
8208
|
+
};
|
|
8168
8209
|
HrisSyncStatusDto: {
|
|
8169
8210
|
/** @description Provider identifier (e.g. 'personio', 'zenhr'). */
|
|
8170
8211
|
provider: string;
|
|
@@ -10349,6 +10390,8 @@ export type IngestCoverageSdlcDetailDto = components['schemas']['IngestCoverageS
|
|
|
10349
10390
|
export type IngestCoverageSyncDetailDto = components['schemas']['IngestCoverageSyncDetailDto'];
|
|
10350
10391
|
export type IngestCoveragePipelineDto = components['schemas']['IngestCoveragePipelineDto'];
|
|
10351
10392
|
export type IngestCoverageDto = components['schemas']['IngestCoverageDto'];
|
|
10393
|
+
export type IngestRunDto = components['schemas']['IngestRunDto'];
|
|
10394
|
+
export type IngestRunListDto = components['schemas']['IngestRunListDto'];
|
|
10352
10395
|
export type HrisSyncStatusDto = components['schemas']['HrisSyncStatusDto'];
|
|
10353
10396
|
export type HrisSyncStatusListDto = components['schemas']['HrisSyncStatusListDto'];
|
|
10354
10397
|
export type ZenHrReconnectResultDto = components['schemas']['ZenHrReconnectResultDto'];
|
|
@@ -20967,6 +21010,55 @@ export interface operations {
|
|
|
20967
21010
|
403: components["responses"]["Forbidden"];
|
|
20968
21011
|
};
|
|
20969
21012
|
};
|
|
21013
|
+
getWorkspaceIngestRuns: {
|
|
21014
|
+
parameters: {
|
|
21015
|
+
query?: {
|
|
21016
|
+
/** @description Coverage pipeline kind. Omit to list every kind stored for the workspace. */
|
|
21017
|
+
kind?: "productivity_github" | "ai_usage" | "sdlc_github" | "monitoring" | "hris";
|
|
21018
|
+
/** @description Page size. Default 20. Values above 100 are rejected. */
|
|
21019
|
+
limit?: number;
|
|
21020
|
+
};
|
|
21021
|
+
header?: never;
|
|
21022
|
+
path: {
|
|
21023
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21024
|
+
};
|
|
21025
|
+
cookie?: never;
|
|
21026
|
+
};
|
|
21027
|
+
requestBody?: never;
|
|
21028
|
+
responses: {
|
|
21029
|
+
/** @description Ingest runs, newest startedAt first */
|
|
21030
|
+
200: {
|
|
21031
|
+
headers: {
|
|
21032
|
+
[name: string]: unknown;
|
|
21033
|
+
};
|
|
21034
|
+
content: {
|
|
21035
|
+
/**
|
|
21036
|
+
* @example {
|
|
21037
|
+
* "runs": []
|
|
21038
|
+
* }
|
|
21039
|
+
*/
|
|
21040
|
+
"application/json": components["schemas"]["IngestRunListDto"];
|
|
21041
|
+
};
|
|
21042
|
+
};
|
|
21043
|
+
/** @description Invalid kind or limit */
|
|
21044
|
+
400: {
|
|
21045
|
+
headers: {
|
|
21046
|
+
[name: string]: unknown;
|
|
21047
|
+
};
|
|
21048
|
+
content: {
|
|
21049
|
+
/**
|
|
21050
|
+
* @example {
|
|
21051
|
+
* "error": "Invalid ingest-runs query",
|
|
21052
|
+
* "code": "invalid_query"
|
|
21053
|
+
* }
|
|
21054
|
+
*/
|
|
21055
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21056
|
+
};
|
|
21057
|
+
};
|
|
21058
|
+
401: components["responses"]["Unauthorized"];
|
|
21059
|
+
403: components["responses"]["Forbidden"];
|
|
21060
|
+
};
|
|
21061
|
+
};
|
|
20970
21062
|
getHrisSyncStatus: {
|
|
20971
21063
|
parameters: {
|
|
20972
21064
|
query?: never;
|