@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.
@@ -6055,6 +6055,54 @@ export interface paths {
6055
6055
  patch?: never;
6056
6056
  trace?: never;
6057
6057
  };
6058
+ "/workspaces/{workspaceId}/hris/roster": {
6059
+ parameters: {
6060
+ query?: never;
6061
+ header?: never;
6062
+ path?: never;
6063
+ cookie?: never;
6064
+ };
6065
+ /**
6066
+ * List HRIS roster people
6067
+ * @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.
6068
+ */
6069
+ get: operations["getHrisRoster"];
6070
+ put?: never;
6071
+ post?: never;
6072
+ delete?: never;
6073
+ options?: never;
6074
+ head?: never;
6075
+ /**
6076
+ * Patch HRIS roster overlay fields
6077
+ * @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.
6078
+ */
6079
+ patch: operations["patchHrisRoster"];
6080
+ trace?: never;
6081
+ };
6082
+ "/workspaces/{workspaceId}/hris/roster.csv": {
6083
+ parameters: {
6084
+ query?: never;
6085
+ header?: never;
6086
+ path?: never;
6087
+ cookie?: never;
6088
+ };
6089
+ /**
6090
+ * Download HRIS roster as CSV
6091
+ * @description Exports effective roster rows (provider + overlay) as CSV using org-chart column headers. Requires workspace membership.
6092
+ */
6093
+ get: operations["downloadHrisRosterCsv"];
6094
+ put?: never;
6095
+ /**
6096
+ * Import HRIS roster overlay CSV
6097
+ * @description Parses CSV (org-chart headers) and merges overlay columns onto existing roster rows by employee_id (then email). Requires workspace editor.
6098
+ */
6099
+ post: operations["importHrisRosterCsv"];
6100
+ delete?: never;
6101
+ options?: never;
6102
+ head?: never;
6103
+ patch?: never;
6104
+ trace?: never;
6105
+ };
6058
6106
  "/workspaces/{workspaceId}/evals/packs": {
6059
6107
  parameters: {
6060
6108
  query?: never;
@@ -12680,6 +12728,10 @@ export interface components {
12680
12728
  error?: string;
12681
12729
  /** @description Per-provider sync outcomes when one or more HRIS sources are configured. */
12682
12730
  providers?: components["schemas"]["HrisProviderSyncResultDto"][];
12731
+ /** @description Sum of per-provider rosterAdded when status = ok or partial. */
12732
+ rosterAdded?: number;
12733
+ rosterUpdated?: number;
12734
+ rosterMissingFromSync?: number;
12683
12735
  };
12684
12736
  HrisProviderSyncResultDto: {
12685
12737
  /** @description HRIS provider identifier (personio, zenhr, …). */
@@ -12690,6 +12742,75 @@ export interface components {
12690
12742
  absenceCount?: number;
12691
12743
  durationMs?: number;
12692
12744
  error?: string;
12745
+ /** @description People newly inserted into the HRIS roster on this sync. */
12746
+ rosterAdded?: number;
12747
+ /** @description Existing roster people whose provider fields were refreshed. */
12748
+ rosterUpdated?: number;
12749
+ /** @description Roster people not present in this sync response (leavers / inactive). */
12750
+ rosterMissingFromSync?: number;
12751
+ };
12752
+ /** @enum {string} */
12753
+ HrisRosterSyncPresenceDto: "active" | "new" | "missing_from_sync" | "archived";
12754
+ HrisRosterPersonDto: {
12755
+ employeeId: string;
12756
+ email: string;
12757
+ name: string;
12758
+ title?: string;
12759
+ department?: string;
12760
+ /** @description Engineering team. When empty, department may be used as provisional team. */
12761
+ team?: string;
12762
+ managerId?: string;
12763
+ location?: string;
12764
+ githubUsername?: string;
12765
+ bitbucketNickname?: string;
12766
+ bitbucketUuid?: string;
12767
+ gitlabUsername?: string;
12768
+ alternateEmails?: string;
12769
+ /** @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. */
12770
+ vcsNotApplicable?: boolean;
12771
+ syncPresence: components["schemas"]["HrisRosterSyncPresenceDto"];
12772
+ /** @description Which layer supplied each non-empty field on the effective row. */
12773
+ fieldSources?: {
12774
+ [key: string]: "provider" | "overlay";
12775
+ };
12776
+ /** @description Canonical required field keys that are still blank on the effective row. */
12777
+ incompleteFields: string[];
12778
+ };
12779
+ HrisRosterDto: {
12780
+ provider: string;
12781
+ /** Format: date-time */
12782
+ updatedAt: string | null;
12783
+ people: components["schemas"]["HrisRosterPersonDto"][];
12784
+ };
12785
+ HrisRosterPersonPatchDto: {
12786
+ employeeId: string;
12787
+ overlay?: {
12788
+ name?: string;
12789
+ email?: string;
12790
+ title?: string;
12791
+ department?: string;
12792
+ team?: string;
12793
+ managerId?: string;
12794
+ location?: string;
12795
+ githubUsername?: string;
12796
+ bitbucketNickname?: string;
12797
+ bitbucketUuid?: string;
12798
+ gitlabUsername?: string;
12799
+ alternateEmails?: string;
12800
+ };
12801
+ /** @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. */
12802
+ vcsNotApplicable?: boolean;
12803
+ /** @description Clear syncPresence=new without archiving. */
12804
+ dismissNew?: boolean;
12805
+ /** @description Archive a missing_from_sync (or any) row. */
12806
+ archive?: boolean;
12807
+ };
12808
+ HrisRosterPatchDto: {
12809
+ people: components["schemas"]["HrisRosterPersonPatchDto"][];
12810
+ };
12811
+ HrisRosterCsvImportDto: {
12812
+ /** @description Full CSV text with org-chart headers. */
12813
+ csv: string;
12693
12814
  };
12694
12815
  ActivityLogPageDto: components["schemas"]["PageMetaDto"] & {
12695
12816
  items: components["schemas"]["ActivityLogEntryDto"][];
@@ -15685,6 +15806,12 @@ export type ZenHrBranchSelectionDto = components['schemas']['ZenHrBranchSelectio
15685
15806
  export type ZenHrBranchSelectionResultDto = components['schemas']['ZenHrBranchSelectionResultDto'];
15686
15807
  export type HrisTriggerSyncResultDto = components['schemas']['HrisTriggerSyncResultDto'];
15687
15808
  export type HrisProviderSyncResultDto = components['schemas']['HrisProviderSyncResultDto'];
15809
+ export type HrisRosterSyncPresenceDto = components['schemas']['HrisRosterSyncPresenceDto'];
15810
+ export type HrisRosterPersonDto = components['schemas']['HrisRosterPersonDto'];
15811
+ export type HrisRosterDto = components['schemas']['HrisRosterDto'];
15812
+ export type HrisRosterPersonPatchDto = components['schemas']['HrisRosterPersonPatchDto'];
15813
+ export type HrisRosterPatchDto = components['schemas']['HrisRosterPatchDto'];
15814
+ export type HrisRosterCsvImportDto = components['schemas']['HrisRosterCsvImportDto'];
15688
15815
  export type ActivityLogPageDto = components['schemas']['ActivityLogPageDto'];
15689
15816
  export type AutomationCostOperationDto = components['schemas']['AutomationCostOperationDto'];
15690
15817
  export type AutomationCostSummaryRowDto = components['schemas']['AutomationCostSummaryRowDto'];
@@ -31940,6 +32067,146 @@ export interface operations {
31940
32067
  };
31941
32068
  };
31942
32069
  };
32070
+ getHrisRoster: {
32071
+ parameters: {
32072
+ query: {
32073
+ /** @description HRIS provider whose roster to return. */
32074
+ provider: "hibob" | "personio" | "zenhr" | "zelt";
32075
+ };
32076
+ header?: never;
32077
+ path: {
32078
+ workspaceId: components["parameters"]["WorkspaceId"];
32079
+ };
32080
+ cookie?: never;
32081
+ };
32082
+ requestBody?: never;
32083
+ responses: {
32084
+ /** @description Roster document */
32085
+ 200: {
32086
+ headers: {
32087
+ [name: string]: unknown;
32088
+ };
32089
+ content: {
32090
+ "application/json": components["schemas"]["HrisRosterDto"];
32091
+ };
32092
+ };
32093
+ /** @description Missing or invalid provider */
32094
+ 400: {
32095
+ headers: {
32096
+ [name: string]: unknown;
32097
+ };
32098
+ content: {
32099
+ "application/json": components["schemas"]["ErrorMessageDto"];
32100
+ };
32101
+ };
32102
+ 401: components["responses"]["Unauthorized"];
32103
+ 403: components["responses"]["Forbidden"];
32104
+ };
32105
+ };
32106
+ patchHrisRoster: {
32107
+ parameters: {
32108
+ query: {
32109
+ provider: "hibob" | "personio" | "zenhr" | "zelt";
32110
+ };
32111
+ header?: never;
32112
+ path: {
32113
+ workspaceId: components["parameters"]["WorkspaceId"];
32114
+ };
32115
+ cookie?: never;
32116
+ };
32117
+ requestBody: {
32118
+ content: {
32119
+ "application/json": components["schemas"]["HrisRosterPatchDto"];
32120
+ };
32121
+ };
32122
+ responses: {
32123
+ /** @description Updated roster */
32124
+ 200: {
32125
+ headers: {
32126
+ [name: string]: unknown;
32127
+ };
32128
+ content: {
32129
+ "application/json": components["schemas"]["HrisRosterDto"];
32130
+ };
32131
+ };
32132
+ /** @description Invalid body */
32133
+ 400: {
32134
+ headers: {
32135
+ [name: string]: unknown;
32136
+ };
32137
+ content: {
32138
+ "application/json": components["schemas"]["ErrorMessageDto"];
32139
+ };
32140
+ };
32141
+ 401: components["responses"]["Unauthorized"];
32142
+ 403: components["responses"]["Forbidden"];
32143
+ };
32144
+ };
32145
+ downloadHrisRosterCsv: {
32146
+ parameters: {
32147
+ query: {
32148
+ provider: "hibob" | "personio" | "zenhr" | "zelt";
32149
+ };
32150
+ header?: never;
32151
+ path: {
32152
+ workspaceId: components["parameters"]["WorkspaceId"];
32153
+ };
32154
+ cookie?: never;
32155
+ };
32156
+ requestBody?: never;
32157
+ responses: {
32158
+ /** @description CSV file */
32159
+ 200: {
32160
+ headers: {
32161
+ [name: string]: unknown;
32162
+ };
32163
+ content: {
32164
+ "text/csv": string;
32165
+ };
32166
+ };
32167
+ 401: components["responses"]["Unauthorized"];
32168
+ 403: components["responses"]["Forbidden"];
32169
+ };
32170
+ };
32171
+ importHrisRosterCsv: {
32172
+ parameters: {
32173
+ query: {
32174
+ provider: "hibob" | "personio" | "zenhr" | "zelt";
32175
+ };
32176
+ header?: never;
32177
+ path: {
32178
+ workspaceId: components["parameters"]["WorkspaceId"];
32179
+ };
32180
+ cookie?: never;
32181
+ };
32182
+ requestBody: {
32183
+ content: {
32184
+ "application/json": components["schemas"]["HrisRosterCsvImportDto"];
32185
+ };
32186
+ };
32187
+ responses: {
32188
+ /** @description Updated roster after import */
32189
+ 200: {
32190
+ headers: {
32191
+ [name: string]: unknown;
32192
+ };
32193
+ content: {
32194
+ "application/json": components["schemas"]["HrisRosterDto"];
32195
+ };
32196
+ };
32197
+ /** @description Invalid CSV */
32198
+ 400: {
32199
+ headers: {
32200
+ [name: string]: unknown;
32201
+ };
32202
+ content: {
32203
+ "application/json": components["schemas"]["ErrorMessageDto"];
32204
+ };
32205
+ };
32206
+ 401: components["responses"]["Unauthorized"];
32207
+ 403: components["responses"]["Forbidden"];
32208
+ };
32209
+ };
31943
32210
  listEvalPacks: {
31944
32211
  parameters: {
31945
32212
  query?: never;