@thinkai/tai-api-contract 2.115.0 → 2.116.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 +127 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +96 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +127 -0
|
@@ -581,6 +581,30 @@ export interface paths {
|
|
|
581
581
|
patch?: never;
|
|
582
582
|
trace?: never;
|
|
583
583
|
};
|
|
584
|
+
"/workspaces/{workspaceId}/ai-email-aliases": {
|
|
585
|
+
parameters: {
|
|
586
|
+
query?: never;
|
|
587
|
+
header?: never;
|
|
588
|
+
path?: never;
|
|
589
|
+
cookie?: never;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Get workspace email aliases for people not on the org chart
|
|
593
|
+
* @description Returns workspace-level mappings from alternate work emails to a canonical email (same behaviour as org-chart `alternate_emails`, without adding org-chart members). Empty `aliases` array when unset. Member-level read access.
|
|
594
|
+
*/
|
|
595
|
+
get: operations["getWorkspaceAiEmailAliases"];
|
|
596
|
+
/**
|
|
597
|
+
* Set workspace email aliases for people not on the org chart
|
|
598
|
+
* @description Full-replace workspace-level email alias mappings (e.g. `jane.doe.contractor@example.com` → `jane.doe@example.com`). Same effect as `alternate_emails` on an org row. Does not add org-chart members. `PUT { aliases: [] }` clears all aliases. Requires workspace **admin**.
|
|
599
|
+
*/
|
|
600
|
+
put: operations["putWorkspaceAiEmailAliases"];
|
|
601
|
+
post?: never;
|
|
602
|
+
delete?: never;
|
|
603
|
+
options?: never;
|
|
604
|
+
head?: never;
|
|
605
|
+
patch?: never;
|
|
606
|
+
trace?: never;
|
|
607
|
+
};
|
|
584
608
|
"/workspaces/{workspaceId}/productivity-targets": {
|
|
585
609
|
parameters: {
|
|
586
610
|
query?: never;
|
|
@@ -4551,6 +4575,22 @@ export interface components {
|
|
|
4551
4575
|
/** @description Ceiling — stay at or below this many CI failures per engineer per week. `0` is valid. */
|
|
4552
4576
|
ciFailuresPerEngineerPerWeek?: number | null;
|
|
4553
4577
|
};
|
|
4578
|
+
AiEmailAliasEntryDto: {
|
|
4579
|
+
/**
|
|
4580
|
+
* Format: email
|
|
4581
|
+
* @description Canonical identity for AI tool attribution (person_id target).
|
|
4582
|
+
*/
|
|
4583
|
+
canonicalEmail: string;
|
|
4584
|
+
/**
|
|
4585
|
+
* Format: email
|
|
4586
|
+
* @description Alternate Claude/Cursor login email mapped to canonicalEmail.
|
|
4587
|
+
*/
|
|
4588
|
+
aliasEmail: string;
|
|
4589
|
+
};
|
|
4590
|
+
AiEmailAliasesDto: {
|
|
4591
|
+
/** @description Workspace-level alias mappings (empty array when unset). */
|
|
4592
|
+
aliases: components["schemas"]["AiEmailAliasEntryDto"][];
|
|
4593
|
+
};
|
|
4554
4594
|
TestConnectionResponseDto: {
|
|
4555
4595
|
success: boolean;
|
|
4556
4596
|
/** @description Machine-readable failure code when success=false (e.g. invalid_token, zenhr_sync_in_progress when ZenHR OAuth refresh is contended). */
|
|
@@ -9078,6 +9118,8 @@ export type DeliveryRoleConfigDto = components['schemas']['DeliveryRoleConfigDto
|
|
|
9078
9118
|
export type RepoDeliveryOverrideDto = components['schemas']['RepoDeliveryOverrideDto'];
|
|
9079
9119
|
export type DeliveryTopologyDto = components['schemas']['DeliveryTopologyDto'];
|
|
9080
9120
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
9121
|
+
export type AiEmailAliasEntryDto = components['schemas']['AiEmailAliasEntryDto'];
|
|
9122
|
+
export type AiEmailAliasesDto = components['schemas']['AiEmailAliasesDto'];
|
|
9081
9123
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
9082
9124
|
export type CursorKeyUsageDto = components['schemas']['CursorKeyUsageDto'];
|
|
9083
9125
|
export type AiToolSeatDto = components['schemas']['AiToolSeatDto'];
|
|
@@ -11101,6 +11143,91 @@ export interface operations {
|
|
|
11101
11143
|
};
|
|
11102
11144
|
};
|
|
11103
11145
|
};
|
|
11146
|
+
getWorkspaceAiEmailAliases: {
|
|
11147
|
+
parameters: {
|
|
11148
|
+
query?: never;
|
|
11149
|
+
header?: never;
|
|
11150
|
+
path: {
|
|
11151
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
11152
|
+
};
|
|
11153
|
+
cookie?: never;
|
|
11154
|
+
};
|
|
11155
|
+
requestBody?: never;
|
|
11156
|
+
responses: {
|
|
11157
|
+
/** @description Current alias mappings (may be empty) */
|
|
11158
|
+
200: {
|
|
11159
|
+
headers: {
|
|
11160
|
+
[name: string]: unknown;
|
|
11161
|
+
};
|
|
11162
|
+
content: {
|
|
11163
|
+
"application/json": components["schemas"]["AiEmailAliasesDto"];
|
|
11164
|
+
};
|
|
11165
|
+
};
|
|
11166
|
+
401: components["responses"]["Unauthorized"];
|
|
11167
|
+
403: components["responses"]["Forbidden"];
|
|
11168
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
11169
|
+
404: {
|
|
11170
|
+
headers: {
|
|
11171
|
+
[name: string]: unknown;
|
|
11172
|
+
};
|
|
11173
|
+
content: {
|
|
11174
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11175
|
+
};
|
|
11176
|
+
};
|
|
11177
|
+
};
|
|
11178
|
+
};
|
|
11179
|
+
putWorkspaceAiEmailAliases: {
|
|
11180
|
+
parameters: {
|
|
11181
|
+
query?: never;
|
|
11182
|
+
header?: never;
|
|
11183
|
+
path: {
|
|
11184
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
11185
|
+
};
|
|
11186
|
+
cookie?: never;
|
|
11187
|
+
};
|
|
11188
|
+
requestBody: {
|
|
11189
|
+
content: {
|
|
11190
|
+
"application/json": components["schemas"]["AiEmailAliasesDto"];
|
|
11191
|
+
};
|
|
11192
|
+
};
|
|
11193
|
+
responses: {
|
|
11194
|
+
/** @description Aliases persisted (or cleared). */
|
|
11195
|
+
204: {
|
|
11196
|
+
headers: {
|
|
11197
|
+
[name: string]: unknown;
|
|
11198
|
+
};
|
|
11199
|
+
content?: never;
|
|
11200
|
+
};
|
|
11201
|
+
/** @description Invalid payload */
|
|
11202
|
+
400: {
|
|
11203
|
+
headers: {
|
|
11204
|
+
[name: string]: unknown;
|
|
11205
|
+
};
|
|
11206
|
+
content: {
|
|
11207
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11208
|
+
};
|
|
11209
|
+
};
|
|
11210
|
+
401: components["responses"]["Unauthorized"];
|
|
11211
|
+
/** @description Forbidden — workspace admin required */
|
|
11212
|
+
403: {
|
|
11213
|
+
headers: {
|
|
11214
|
+
[name: string]: unknown;
|
|
11215
|
+
};
|
|
11216
|
+
content: {
|
|
11217
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11218
|
+
};
|
|
11219
|
+
};
|
|
11220
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
11221
|
+
404: {
|
|
11222
|
+
headers: {
|
|
11223
|
+
[name: string]: unknown;
|
|
11224
|
+
};
|
|
11225
|
+
content: {
|
|
11226
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11227
|
+
};
|
|
11228
|
+
};
|
|
11229
|
+
};
|
|
11230
|
+
};
|
|
11104
11231
|
getWorkspaceProductivityTargets: {
|
|
11105
11232
|
parameters: {
|
|
11106
11233
|
query?: never;
|