@thinkai/tai-api-contract 2.108.0 → 2.110.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.
|
@@ -3357,7 +3357,7 @@ export interface paths {
|
|
|
3357
3357
|
put?: never;
|
|
3358
3358
|
/**
|
|
3359
3359
|
* Import org chart from Supabase storage path
|
|
3360
|
-
* @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`. Required columns: employee_id, name, email, title, department, team, manager_id, location. Optional: github_username (GitHub login for productivity ingest). Saving the SPA snapshot also materializes a scoring `org_chart` tree for team/person metrics when import members are present.
|
|
3360
|
+
* @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`. Required columns: employee_id, name, email, title, department, team, manager_id, location. Optional: github_username (GitHub login for productivity ingest), bitbucket_nickname, bitbucket_uuid, alternate_emails (comma-separated alternate work emails for AI tool spend attribution). Saving the SPA snapshot also materializes a scoring `org_chart` tree for team/person metrics when import members are present. Parse-only responses may include duplicateEmailWarnings, identityEmailPreview (cross-check against connected AI tool seat rosters), and importWarnings when roster preview is unavailable.
|
|
3361
3361
|
*/
|
|
3362
3362
|
post: operations["postOrgChartImport"];
|
|
3363
3363
|
delete?: never;
|
|
@@ -3904,6 +3904,26 @@ export interface components {
|
|
|
3904
3904
|
bitbucketNickname?: string;
|
|
3905
3905
|
/** @description Bitbucket account UUID (e.g. "{aeefb6b0-...}") to attribute merged PRs and reviews to this person in productivity ingest. Preferred over bitbucketNickname — Bitbucket PR payloads expose a stable uuid but not nickname. Resolves to the same person_id (email) as githubUsername. */
|
|
3906
3906
|
bitbucketUuid?: string;
|
|
3907
|
+
/** @description Optional comma-separated work emails that map to the same person for AI tool spend/usage (mirrors multi-login github_username). Primary email remains canonical person_id. */
|
|
3908
|
+
alternateEmails?: string;
|
|
3909
|
+
};
|
|
3910
|
+
OrgChartEmailOwnershipDto: {
|
|
3911
|
+
email: string;
|
|
3912
|
+
employeeId: string;
|
|
3913
|
+
name: string;
|
|
3914
|
+
isPrimary: boolean;
|
|
3915
|
+
};
|
|
3916
|
+
OrgChartEmailDuplicateDto: {
|
|
3917
|
+
email: string;
|
|
3918
|
+
owners: components["schemas"]["OrgChartEmailOwnershipDto"][];
|
|
3919
|
+
};
|
|
3920
|
+
OrgChartIdentityEmailPreviewDto: {
|
|
3921
|
+
employeeId: string;
|
|
3922
|
+
name: string;
|
|
3923
|
+
primaryEmail: string;
|
|
3924
|
+
alternateEmails: string[];
|
|
3925
|
+
rosterMatches: string[];
|
|
3926
|
+
warnings: string[];
|
|
3907
3927
|
};
|
|
3908
3928
|
UpdateMyOrgChartMemberBodyDto: {
|
|
3909
3929
|
name?: string;
|
|
@@ -3914,12 +3934,20 @@ export interface components {
|
|
|
3914
3934
|
githubUsername?: string;
|
|
3915
3935
|
bitbucketNickname?: string;
|
|
3916
3936
|
bitbucketUuid?: string;
|
|
3937
|
+
/** @description Comma-separated alternate work emails for AI tool attribution. */
|
|
3938
|
+
alternateEmails?: string;
|
|
3917
3939
|
};
|
|
3918
3940
|
OrgChartImportResultDto: {
|
|
3919
3941
|
persons: components["schemas"]["OrgChartPersonDto"][];
|
|
3920
3942
|
errors: string[];
|
|
3921
3943
|
/** @description Parse-only preview of identity rows that would not match HRIS persons */
|
|
3922
3944
|
unmatchedPreview?: components["schemas"]["OrgChartUnmatchedIdentitySampleDto"][];
|
|
3945
|
+
/** @description Emails claimed by more than one org-chart row (primary or alternate) */
|
|
3946
|
+
duplicateEmailWarnings?: components["schemas"]["OrgChartEmailDuplicateDto"][];
|
|
3947
|
+
/** @description Cross-check of primary and alternate emails against connected AI tool seat rosters */
|
|
3948
|
+
identityEmailPreview?: components["schemas"]["OrgChartIdentityEmailPreviewDto"][];
|
|
3949
|
+
/** @description Non-fatal import advisories (for example when AI tool roster preview could not be loaded) */
|
|
3950
|
+
importWarnings?: string[];
|
|
3923
3951
|
};
|
|
3924
3952
|
OrgChartSaveResultDto: {
|
|
3925
3953
|
ok: boolean;
|
|
@@ -7051,6 +7079,11 @@ export interface components {
|
|
|
7051
7079
|
timezone: string;
|
|
7052
7080
|
dataRefreshInterval: components["schemas"]["DataRefreshInterval"];
|
|
7053
7081
|
notifications: components["schemas"]["NotificationPreferencesDto"];
|
|
7082
|
+
/**
|
|
7083
|
+
* @description When true, show the ThinkAI Buddy mascot. Default and missing stored values are false (opt-in only).
|
|
7084
|
+
* @default false
|
|
7085
|
+
*/
|
|
7086
|
+
buddyEnabled: boolean;
|
|
7054
7087
|
};
|
|
7055
7088
|
ValidationIssueDto: {
|
|
7056
7089
|
path: (string | number)[];
|
|
@@ -8569,6 +8602,9 @@ export type OrgChartTreeNodeDto = components['schemas']['OrgChartTreeNodeDto'];
|
|
|
8569
8602
|
export type ScoringOrgChartDto = components['schemas']['ScoringOrgChartDto'];
|
|
8570
8603
|
export type OrgChartDto = components['schemas']['OrgChartDto'];
|
|
8571
8604
|
export type OrgChartPersonDto = components['schemas']['OrgChartPersonDto'];
|
|
8605
|
+
export type OrgChartEmailOwnershipDto = components['schemas']['OrgChartEmailOwnershipDto'];
|
|
8606
|
+
export type OrgChartEmailDuplicateDto = components['schemas']['OrgChartEmailDuplicateDto'];
|
|
8607
|
+
export type OrgChartIdentityEmailPreviewDto = components['schemas']['OrgChartIdentityEmailPreviewDto'];
|
|
8572
8608
|
export type UpdateMyOrgChartMemberBodyDto = components['schemas']['UpdateMyOrgChartMemberBodyDto'];
|
|
8573
8609
|
export type OrgChartImportResultDto = components['schemas']['OrgChartImportResultDto'];
|
|
8574
8610
|
export type OrgChartSaveResultDto = components['schemas']['OrgChartSaveResultDto'];
|