@thinkai/tai-api-contract 2.233.0 → 2.235.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 +267 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +59 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +296 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +267 -0
- package/src/index.ts +65 -0
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -6056,6 +6056,54 @@ export interface paths {
|
|
|
6056
6056
|
patch?: never;
|
|
6057
6057
|
trace?: never;
|
|
6058
6058
|
};
|
|
6059
|
+
"/workspaces/{workspaceId}/hris/roster": {
|
|
6060
|
+
parameters: {
|
|
6061
|
+
query?: never;
|
|
6062
|
+
header?: never;
|
|
6063
|
+
path?: never;
|
|
6064
|
+
cookie?: never;
|
|
6065
|
+
};
|
|
6066
|
+
/**
|
|
6067
|
+
* List HRIS roster people
|
|
6068
|
+
* @description Returns the merge-safe HRIS roster (provider fields + user overlay + sync presence) for a provider. Lazy-bootstraps from `hris_spa_org_chart` when the roster blob is empty. Requires workspace membership.
|
|
6069
|
+
*/
|
|
6070
|
+
get: operations["getHrisRoster"];
|
|
6071
|
+
put?: never;
|
|
6072
|
+
post?: never;
|
|
6073
|
+
delete?: never;
|
|
6074
|
+
options?: never;
|
|
6075
|
+
head?: never;
|
|
6076
|
+
/**
|
|
6077
|
+
* Patch HRIS roster overlay fields
|
|
6078
|
+
* @description Updates user overlay fields and/or presence actions (dismiss new, archive missing) by employeeId. Rematerializes the effective org chart when structure source is HRIS. Does not request a productivity remount. Requires workspace editor.
|
|
6079
|
+
*/
|
|
6080
|
+
patch: operations["patchHrisRoster"];
|
|
6081
|
+
trace?: never;
|
|
6082
|
+
};
|
|
6083
|
+
"/workspaces/{workspaceId}/hris/roster.csv": {
|
|
6084
|
+
parameters: {
|
|
6085
|
+
query?: never;
|
|
6086
|
+
header?: never;
|
|
6087
|
+
path?: never;
|
|
6088
|
+
cookie?: never;
|
|
6089
|
+
};
|
|
6090
|
+
/**
|
|
6091
|
+
* Download HRIS roster as CSV
|
|
6092
|
+
* @description Exports effective roster rows (provider + overlay) as CSV using org-chart column headers. Requires workspace membership.
|
|
6093
|
+
*/
|
|
6094
|
+
get: operations["downloadHrisRosterCsv"];
|
|
6095
|
+
put?: never;
|
|
6096
|
+
/**
|
|
6097
|
+
* Import HRIS roster overlay CSV
|
|
6098
|
+
* @description Parses CSV (org-chart headers) and merges overlay columns onto existing roster rows by employee_id (then email). Requires workspace editor.
|
|
6099
|
+
*/
|
|
6100
|
+
post: operations["importHrisRosterCsv"];
|
|
6101
|
+
delete?: never;
|
|
6102
|
+
options?: never;
|
|
6103
|
+
head?: never;
|
|
6104
|
+
patch?: never;
|
|
6105
|
+
trace?: never;
|
|
6106
|
+
};
|
|
6059
6107
|
"/workspaces/{workspaceId}/evals/packs": {
|
|
6060
6108
|
parameters: {
|
|
6061
6109
|
query?: never;
|
|
@@ -12681,6 +12729,10 @@ export interface components {
|
|
|
12681
12729
|
error?: string;
|
|
12682
12730
|
/** @description Per-provider sync outcomes when one or more HRIS sources are configured. */
|
|
12683
12731
|
providers?: components["schemas"]["HrisProviderSyncResultDto"][];
|
|
12732
|
+
/** @description Sum of per-provider rosterAdded when status = ok or partial. */
|
|
12733
|
+
rosterAdded?: number;
|
|
12734
|
+
rosterUpdated?: number;
|
|
12735
|
+
rosterMissingFromSync?: number;
|
|
12684
12736
|
};
|
|
12685
12737
|
HrisProviderSyncResultDto: {
|
|
12686
12738
|
/** @description HRIS provider identifier (personio, zenhr, …). */
|
|
@@ -12691,6 +12743,75 @@ export interface components {
|
|
|
12691
12743
|
absenceCount?: number;
|
|
12692
12744
|
durationMs?: number;
|
|
12693
12745
|
error?: string;
|
|
12746
|
+
/** @description People newly inserted into the HRIS roster on this sync. */
|
|
12747
|
+
rosterAdded?: number;
|
|
12748
|
+
/** @description Existing roster people whose provider fields were refreshed. */
|
|
12749
|
+
rosterUpdated?: number;
|
|
12750
|
+
/** @description Roster people not present in this sync response (leavers / inactive). */
|
|
12751
|
+
rosterMissingFromSync?: number;
|
|
12752
|
+
};
|
|
12753
|
+
/** @enum {string} */
|
|
12754
|
+
HrisRosterSyncPresenceDto: "active" | "new" | "missing_from_sync" | "archived";
|
|
12755
|
+
HrisRosterPersonDto: {
|
|
12756
|
+
employeeId: string;
|
|
12757
|
+
email: string;
|
|
12758
|
+
name: string;
|
|
12759
|
+
title?: string;
|
|
12760
|
+
department?: string;
|
|
12761
|
+
/** @description Engineering team. When empty, department may be used as provisional team. */
|
|
12762
|
+
team?: string;
|
|
12763
|
+
managerId?: string;
|
|
12764
|
+
location?: string;
|
|
12765
|
+
githubUsername?: string;
|
|
12766
|
+
bitbucketNickname?: string;
|
|
12767
|
+
bitbucketUuid?: string;
|
|
12768
|
+
gitlabUsername?: string;
|
|
12769
|
+
alternateEmails?: string;
|
|
12770
|
+
/** @description When true, this person has no VCS identity by design (for example sales) and must not count as a missing-handle attribution gap. Handle fields stay empty; do not store n/a as a username. */
|
|
12771
|
+
vcsNotApplicable?: boolean;
|
|
12772
|
+
syncPresence: components["schemas"]["HrisRosterSyncPresenceDto"];
|
|
12773
|
+
/** @description Which layer supplied each non-empty field on the effective row. */
|
|
12774
|
+
fieldSources?: {
|
|
12775
|
+
[key: string]: "provider" | "overlay";
|
|
12776
|
+
};
|
|
12777
|
+
/** @description Canonical required field keys that are still blank on the effective row. */
|
|
12778
|
+
incompleteFields: string[];
|
|
12779
|
+
};
|
|
12780
|
+
HrisRosterDto: {
|
|
12781
|
+
provider: string;
|
|
12782
|
+
/** Format: date-time */
|
|
12783
|
+
updatedAt: string | null;
|
|
12784
|
+
people: components["schemas"]["HrisRosterPersonDto"][];
|
|
12785
|
+
};
|
|
12786
|
+
HrisRosterPersonPatchDto: {
|
|
12787
|
+
employeeId: string;
|
|
12788
|
+
overlay?: {
|
|
12789
|
+
name?: string;
|
|
12790
|
+
email?: string;
|
|
12791
|
+
title?: string;
|
|
12792
|
+
department?: string;
|
|
12793
|
+
team?: string;
|
|
12794
|
+
managerId?: string;
|
|
12795
|
+
location?: string;
|
|
12796
|
+
githubUsername?: string;
|
|
12797
|
+
bitbucketNickname?: string;
|
|
12798
|
+
bitbucketUuid?: string;
|
|
12799
|
+
gitlabUsername?: string;
|
|
12800
|
+
alternateEmails?: string;
|
|
12801
|
+
};
|
|
12802
|
+
/** @description Set true to mark no VCS identity (clears VCS overlay handles). Set false to clear the opt-out. Typing n/a or none into a VCS overlay field is treated as true. */
|
|
12803
|
+
vcsNotApplicable?: boolean;
|
|
12804
|
+
/** @description Clear syncPresence=new without archiving. */
|
|
12805
|
+
dismissNew?: boolean;
|
|
12806
|
+
/** @description Archive a missing_from_sync (or any) row. */
|
|
12807
|
+
archive?: boolean;
|
|
12808
|
+
};
|
|
12809
|
+
HrisRosterPatchDto: {
|
|
12810
|
+
people: components["schemas"]["HrisRosterPersonPatchDto"][];
|
|
12811
|
+
};
|
|
12812
|
+
HrisRosterCsvImportDto: {
|
|
12813
|
+
/** @description Full CSV text with org-chart headers. */
|
|
12814
|
+
csv: string;
|
|
12694
12815
|
};
|
|
12695
12816
|
ActivityLogPageDto: components["schemas"]["PageMetaDto"] & {
|
|
12696
12817
|
items: components["schemas"]["ActivityLogEntryDto"][];
|
|
@@ -15686,6 +15807,12 @@ export type ZenHrBranchSelectionDto = components['schemas']['ZenHrBranchSelectio
|
|
|
15686
15807
|
export type ZenHrBranchSelectionResultDto = components['schemas']['ZenHrBranchSelectionResultDto'];
|
|
15687
15808
|
export type HrisTriggerSyncResultDto = components['schemas']['HrisTriggerSyncResultDto'];
|
|
15688
15809
|
export type HrisProviderSyncResultDto = components['schemas']['HrisProviderSyncResultDto'];
|
|
15810
|
+
export type HrisRosterSyncPresenceDto = components['schemas']['HrisRosterSyncPresenceDto'];
|
|
15811
|
+
export type HrisRosterPersonDto = components['schemas']['HrisRosterPersonDto'];
|
|
15812
|
+
export type HrisRosterDto = components['schemas']['HrisRosterDto'];
|
|
15813
|
+
export type HrisRosterPersonPatchDto = components['schemas']['HrisRosterPersonPatchDto'];
|
|
15814
|
+
export type HrisRosterPatchDto = components['schemas']['HrisRosterPatchDto'];
|
|
15815
|
+
export type HrisRosterCsvImportDto = components['schemas']['HrisRosterCsvImportDto'];
|
|
15689
15816
|
export type ActivityLogPageDto = components['schemas']['ActivityLogPageDto'];
|
|
15690
15817
|
export type AutomationCostOperationDto = components['schemas']['AutomationCostOperationDto'];
|
|
15691
15818
|
export type AutomationCostSummaryRowDto = components['schemas']['AutomationCostSummaryRowDto'];
|
|
@@ -31941,6 +32068,146 @@ export interface operations {
|
|
|
31941
32068
|
};
|
|
31942
32069
|
};
|
|
31943
32070
|
};
|
|
32071
|
+
getHrisRoster: {
|
|
32072
|
+
parameters: {
|
|
32073
|
+
query: {
|
|
32074
|
+
/** @description HRIS provider whose roster to return. */
|
|
32075
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32076
|
+
};
|
|
32077
|
+
header?: never;
|
|
32078
|
+
path: {
|
|
32079
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32080
|
+
};
|
|
32081
|
+
cookie?: never;
|
|
32082
|
+
};
|
|
32083
|
+
requestBody?: never;
|
|
32084
|
+
responses: {
|
|
32085
|
+
/** @description Roster document */
|
|
32086
|
+
200: {
|
|
32087
|
+
headers: {
|
|
32088
|
+
[name: string]: unknown;
|
|
32089
|
+
};
|
|
32090
|
+
content: {
|
|
32091
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32092
|
+
};
|
|
32093
|
+
};
|
|
32094
|
+
/** @description Missing or invalid provider */
|
|
32095
|
+
400: {
|
|
32096
|
+
headers: {
|
|
32097
|
+
[name: string]: unknown;
|
|
32098
|
+
};
|
|
32099
|
+
content: {
|
|
32100
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32101
|
+
};
|
|
32102
|
+
};
|
|
32103
|
+
401: components["responses"]["Unauthorized"];
|
|
32104
|
+
403: components["responses"]["Forbidden"];
|
|
32105
|
+
};
|
|
32106
|
+
};
|
|
32107
|
+
patchHrisRoster: {
|
|
32108
|
+
parameters: {
|
|
32109
|
+
query: {
|
|
32110
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32111
|
+
};
|
|
32112
|
+
header?: never;
|
|
32113
|
+
path: {
|
|
32114
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32115
|
+
};
|
|
32116
|
+
cookie?: never;
|
|
32117
|
+
};
|
|
32118
|
+
requestBody: {
|
|
32119
|
+
content: {
|
|
32120
|
+
"application/json": components["schemas"]["HrisRosterPatchDto"];
|
|
32121
|
+
};
|
|
32122
|
+
};
|
|
32123
|
+
responses: {
|
|
32124
|
+
/** @description Updated roster */
|
|
32125
|
+
200: {
|
|
32126
|
+
headers: {
|
|
32127
|
+
[name: string]: unknown;
|
|
32128
|
+
};
|
|
32129
|
+
content: {
|
|
32130
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32131
|
+
};
|
|
32132
|
+
};
|
|
32133
|
+
/** @description Invalid body */
|
|
32134
|
+
400: {
|
|
32135
|
+
headers: {
|
|
32136
|
+
[name: string]: unknown;
|
|
32137
|
+
};
|
|
32138
|
+
content: {
|
|
32139
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32140
|
+
};
|
|
32141
|
+
};
|
|
32142
|
+
401: components["responses"]["Unauthorized"];
|
|
32143
|
+
403: components["responses"]["Forbidden"];
|
|
32144
|
+
};
|
|
32145
|
+
};
|
|
32146
|
+
downloadHrisRosterCsv: {
|
|
32147
|
+
parameters: {
|
|
32148
|
+
query: {
|
|
32149
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32150
|
+
};
|
|
32151
|
+
header?: never;
|
|
32152
|
+
path: {
|
|
32153
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32154
|
+
};
|
|
32155
|
+
cookie?: never;
|
|
32156
|
+
};
|
|
32157
|
+
requestBody?: never;
|
|
32158
|
+
responses: {
|
|
32159
|
+
/** @description CSV file */
|
|
32160
|
+
200: {
|
|
32161
|
+
headers: {
|
|
32162
|
+
[name: string]: unknown;
|
|
32163
|
+
};
|
|
32164
|
+
content: {
|
|
32165
|
+
"text/csv": string;
|
|
32166
|
+
};
|
|
32167
|
+
};
|
|
32168
|
+
401: components["responses"]["Unauthorized"];
|
|
32169
|
+
403: components["responses"]["Forbidden"];
|
|
32170
|
+
};
|
|
32171
|
+
};
|
|
32172
|
+
importHrisRosterCsv: {
|
|
32173
|
+
parameters: {
|
|
32174
|
+
query: {
|
|
32175
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32176
|
+
};
|
|
32177
|
+
header?: never;
|
|
32178
|
+
path: {
|
|
32179
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32180
|
+
};
|
|
32181
|
+
cookie?: never;
|
|
32182
|
+
};
|
|
32183
|
+
requestBody: {
|
|
32184
|
+
content: {
|
|
32185
|
+
"application/json": components["schemas"]["HrisRosterCsvImportDto"];
|
|
32186
|
+
};
|
|
32187
|
+
};
|
|
32188
|
+
responses: {
|
|
32189
|
+
/** @description Updated roster after import */
|
|
32190
|
+
200: {
|
|
32191
|
+
headers: {
|
|
32192
|
+
[name: string]: unknown;
|
|
32193
|
+
};
|
|
32194
|
+
content: {
|
|
32195
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32196
|
+
};
|
|
32197
|
+
};
|
|
32198
|
+
/** @description Invalid CSV */
|
|
32199
|
+
400: {
|
|
32200
|
+
headers: {
|
|
32201
|
+
[name: string]: unknown;
|
|
32202
|
+
};
|
|
32203
|
+
content: {
|
|
32204
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32205
|
+
};
|
|
32206
|
+
};
|
|
32207
|
+
401: components["responses"]["Unauthorized"];
|
|
32208
|
+
403: components["responses"]["Forbidden"];
|
|
32209
|
+
};
|
|
32210
|
+
};
|
|
31944
32211
|
listEvalPacks: {
|
|
31945
32212
|
parameters: {
|
|
31946
32213
|
query?: never;
|
package/src/index.ts
CHANGED
|
@@ -1820,6 +1820,9 @@ export interface HrisProviderSyncResultDto {
|
|
|
1820
1820
|
absenceCount?: number;
|
|
1821
1821
|
durationMs?: number;
|
|
1822
1822
|
error?: string;
|
|
1823
|
+
rosterAdded?: number;
|
|
1824
|
+
rosterUpdated?: number;
|
|
1825
|
+
rosterMissingFromSync?: number;
|
|
1823
1826
|
}
|
|
1824
1827
|
|
|
1825
1828
|
/** Response body for POST /workspaces/:id/connectors/zenhr/reconnect. */
|
|
@@ -1847,6 +1850,68 @@ export interface HrisTriggerSyncResultDto {
|
|
|
1847
1850
|
error?: string;
|
|
1848
1851
|
/** Per-provider results when one or more HRIS sources are configured. */
|
|
1849
1852
|
providers?: HrisProviderSyncResultDto[];
|
|
1853
|
+
rosterAdded?: number;
|
|
1854
|
+
rosterUpdated?: number;
|
|
1855
|
+
rosterMissingFromSync?: number;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
export type HrisRosterSyncPresenceDto = "active" | "new" | "missing_from_sync" | "archived";
|
|
1859
|
+
|
|
1860
|
+
export interface HrisRosterPersonDto {
|
|
1861
|
+
employeeId: string;
|
|
1862
|
+
email: string;
|
|
1863
|
+
name: string;
|
|
1864
|
+
title?: string;
|
|
1865
|
+
department?: string;
|
|
1866
|
+
team?: string;
|
|
1867
|
+
managerId?: string;
|
|
1868
|
+
location?: string;
|
|
1869
|
+
githubUsername?: string;
|
|
1870
|
+
bitbucketNickname?: string;
|
|
1871
|
+
bitbucketUuid?: string;
|
|
1872
|
+
gitlabUsername?: string;
|
|
1873
|
+
alternateEmails?: string;
|
|
1874
|
+
/** Opt-out: no VCS identity; excluded from missing-handle attribution gaps. */
|
|
1875
|
+
vcsNotApplicable?: boolean;
|
|
1876
|
+
syncPresence: HrisRosterSyncPresenceDto;
|
|
1877
|
+
fieldSources?: Record<string, "provider" | "overlay">;
|
|
1878
|
+
incompleteFields: string[];
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export interface HrisRosterDto {
|
|
1882
|
+
provider: string;
|
|
1883
|
+
updatedAt: string | null;
|
|
1884
|
+
people: HrisRosterPersonDto[];
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export interface HrisRosterPersonPatchDto {
|
|
1888
|
+
employeeId: string;
|
|
1889
|
+
overlay?: {
|
|
1890
|
+
name?: string;
|
|
1891
|
+
email?: string;
|
|
1892
|
+
title?: string;
|
|
1893
|
+
department?: string;
|
|
1894
|
+
team?: string;
|
|
1895
|
+
managerId?: string;
|
|
1896
|
+
location?: string;
|
|
1897
|
+
githubUsername?: string;
|
|
1898
|
+
bitbucketNickname?: string;
|
|
1899
|
+
bitbucketUuid?: string;
|
|
1900
|
+
gitlabUsername?: string;
|
|
1901
|
+
alternateEmails?: string;
|
|
1902
|
+
};
|
|
1903
|
+
/** true = no VCS identity (clears handles); false = clear the opt-out. */
|
|
1904
|
+
vcsNotApplicable?: boolean;
|
|
1905
|
+
dismissNew?: boolean;
|
|
1906
|
+
archive?: boolean;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
export interface HrisRosterPatchDto {
|
|
1910
|
+
people: HrisRosterPersonPatchDto[];
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
export interface HrisRosterCsvImportDto {
|
|
1914
|
+
csv: string;
|
|
1850
1915
|
}
|
|
1851
1916
|
|
|
1852
1917
|
/** Weekly bucket in GET .../connectors/ai-tool/:provider/summary */
|