@thinkai/tai-api-contract 2.114.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 +129 -5
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +102 -12
- package/package.json +1 -1
- package/src/generated/openapi.ts +129 -5
|
@@ -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;
|
|
@@ -2789,7 +2813,7 @@ export interface paths {
|
|
|
2789
2813
|
get: operations["getWorkspaceRepoEligibility"];
|
|
2790
2814
|
/**
|
|
2791
2815
|
* Set per-workspace repo-sync eligibility overrides
|
|
2792
|
-
* @description Set (or clear, with an empty `overrides`) the per-workspace repo-sync eligibility overrides. **Platform admins** may set any value (raise caps, `0` = unlimited, include archived/forks). **Workspace admins** may only make the gate *more restrictive* than the platform defaults (lower caps, exclude archived/forks) — exceeding a platform limit returns `403` (`repo_eligibility_bound_exceeded`). Requires workspace admin or platform admin.
|
|
2816
|
+
* @description Set (or clear, with an empty `overrides`) the per-workspace repo-sync eligibility overrides. Omitted keys leave existing workspace overrides unchanged; `null` clears a single override back to the platform default. **Platform admins** may set any value (raise caps, `0` = unlimited, include archived/forks). **Workspace admins** may only make the gate *more restrictive* than the platform defaults (lower caps, exclude archived/forks) — exceeding a platform limit returns `403` (`repo_eligibility_bound_exceeded`). Requires workspace admin or platform admin.
|
|
2793
2817
|
*/
|
|
2794
2818
|
put: operations["putWorkspaceRepoEligibility"];
|
|
2795
2819
|
post?: 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;
|
|
@@ -16833,10 +16960,7 @@ export interface operations {
|
|
|
16833
16960
|
[name: string]: unknown;
|
|
16834
16961
|
};
|
|
16835
16962
|
content: {
|
|
16836
|
-
"application/json":
|
|
16837
|
-
overrides: components["schemas"]["RepoEligibilityOverridesDto"];
|
|
16838
|
-
effective: components["schemas"]["RepoEligibilityConfigDto"];
|
|
16839
|
-
};
|
|
16963
|
+
"application/json": components["schemas"]["WorkspaceRepoEligibilityDto"];
|
|
16840
16964
|
};
|
|
16841
16965
|
};
|
|
16842
16966
|
/** @description Invalid request body */
|