@thinkai/tai-api-contract 2.231.2 → 2.234.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 +398 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +471 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +398 -0
- package/src/index.ts +61 -0
package/src/generated/openapi.ts
CHANGED
|
@@ -4528,6 +4528,26 @@ export interface paths {
|
|
|
4528
4528
|
patch?: never;
|
|
4529
4529
|
trace?: never;
|
|
4530
4530
|
};
|
|
4531
|
+
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}/arch-doc": {
|
|
4532
|
+
parameters: {
|
|
4533
|
+
query?: never;
|
|
4534
|
+
header?: never;
|
|
4535
|
+
path?: never;
|
|
4536
|
+
cookie?: never;
|
|
4537
|
+
};
|
|
4538
|
+
/**
|
|
4539
|
+
* Architecture document (.arch.md) for one repository index
|
|
4540
|
+
* @description The standard-shaped architecture document the last scan stored, beside how the document step ended. It is written during indexing from the code, and is the only architecture artifact: the short fields Ask searches are read out of it. Read-only; never calls a model. A repository scanned without documents returns status `missing` and a plain-words next step.
|
|
4541
|
+
*/
|
|
4542
|
+
get: operations["getCodeChatArchDoc"];
|
|
4543
|
+
put?: never;
|
|
4544
|
+
post?: never;
|
|
4545
|
+
delete?: never;
|
|
4546
|
+
options?: never;
|
|
4547
|
+
head?: never;
|
|
4548
|
+
patch?: never;
|
|
4549
|
+
trace?: never;
|
|
4550
|
+
};
|
|
4531
4551
|
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}/wiki-config": {
|
|
4532
4552
|
parameters: {
|
|
4533
4553
|
query?: never;
|
|
@@ -6036,6 +6056,54 @@ export interface paths {
|
|
|
6036
6056
|
patch?: never;
|
|
6037
6057
|
trace?: never;
|
|
6038
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
|
+
};
|
|
6039
6107
|
"/workspaces/{workspaceId}/evals/packs": {
|
|
6040
6108
|
parameters: {
|
|
6041
6109
|
query?: never;
|
|
@@ -7522,6 +7590,29 @@ export interface components {
|
|
|
7522
7590
|
reason: components["schemas"]["AgentExecutionSkipReasonDto"];
|
|
7523
7591
|
}[];
|
|
7524
7592
|
};
|
|
7593
|
+
/** @description Model ids for one Code Intelligence task. A model id left out uses the platform default for the task (or, for `ask_explore`, the `ask_synthesize` pick). `useWorkspaceModel: true` runs the workspace-wide `cursorModel` / `claudeModel` instead and cannot be combined with a model id. */
|
|
7594
|
+
CodeIntelligenceTaskModelDto: {
|
|
7595
|
+
/** @description When true, the task runs the workspace-wide model instead of the platform default. */
|
|
7596
|
+
useWorkspaceModel?: boolean | null;
|
|
7597
|
+
cursorModel?: string | null;
|
|
7598
|
+
claudeModel?: string | null;
|
|
7599
|
+
};
|
|
7600
|
+
/** @description Platform default model ids per Code Intelligence task. */
|
|
7601
|
+
CodeIntelligenceTaskModelDefaultsDto: {
|
|
7602
|
+
index_bulk: components["schemas"]["CodeIntelligenceTaskModelDefaultDto"];
|
|
7603
|
+
ask_synthesize: components["schemas"]["CodeIntelligenceTaskModelDefaultDto"];
|
|
7604
|
+
ask_explore: components["schemas"]["CodeIntelligenceTaskModelDefaultDto"];
|
|
7605
|
+
};
|
|
7606
|
+
CodeIntelligenceTaskModelDefaultDto: {
|
|
7607
|
+
cursorModel: string;
|
|
7608
|
+
claudeModel: string;
|
|
7609
|
+
};
|
|
7610
|
+
/** @description Per-task model routing for Code Intelligence (ECG use cases). `index_bulk` is high-volume index-time work (rule-card describe, wiki outline and enrich). `ask_synthesize` writes the Ask answer. `ask_explore` is the Explore planner and inherits `ask_synthesize` when its cell is empty. A task with no cell runs the platform default for that task (see `codeIntelligenceTaskModelDefaults` on the workspace configuration). Set `useWorkspaceModel` on a task to run the workspace-wide `cursorModel` / `claudeModel` instead. Null clears every per-task model. Unknown task keys are rejected. */
|
|
7611
|
+
CodeIntelligenceModelsByTaskDto: {
|
|
7612
|
+
index_bulk?: components["schemas"]["CodeIntelligenceTaskModelDto"];
|
|
7613
|
+
ask_synthesize?: components["schemas"]["CodeIntelligenceTaskModelDto"];
|
|
7614
|
+
ask_explore?: components["schemas"]["CodeIntelligenceTaskModelDto"];
|
|
7615
|
+
} | null;
|
|
7525
7616
|
/** @description Partial update for Code Intelligence workspace settings (admin-only). */
|
|
7526
7617
|
PutCodeIntelligenceSettingsDto: {
|
|
7527
7618
|
enabled?: boolean;
|
|
@@ -7530,6 +7621,7 @@ export interface components {
|
|
|
7530
7621
|
provider?: components["schemas"]["AgentExecutionProviderDto"] | null;
|
|
7531
7622
|
cursorModel?: string | null;
|
|
7532
7623
|
claudeModel?: string | null;
|
|
7624
|
+
modelsByTask?: components["schemas"]["CodeIntelligenceModelsByTaskDto"] | null;
|
|
7533
7625
|
/** @description When false, turning Engineering Context Graph on and the cadence tick do not enqueue index jobs. Stored graphs, wiki pages, and agent.md stay. Defaults to true. */
|
|
7534
7626
|
indexingEnabled?: boolean;
|
|
7535
7627
|
/**
|
|
@@ -7658,6 +7750,10 @@ export interface components {
|
|
|
7658
7750
|
codeIntelligenceCursorModel?: string | null;
|
|
7659
7751
|
/** @description Optional Claude model override for Code Intelligence (null/empty → env default). */
|
|
7660
7752
|
codeIntelligenceClaudeModel?: string | null;
|
|
7753
|
+
/** @description Per-task model routing (`index_bulk`, `ask_synthesize`, `ask_explore`). Null when every task runs its platform default. */
|
|
7754
|
+
codeIntelligenceModelsByTask?: components["schemas"]["CodeIntelligenceModelsByTaskDto"] | null;
|
|
7755
|
+
/** @description The model each task runs when it has no cell of its own (the platform default), per provider. The screen reads this so it never states a model the server does not use. */
|
|
7756
|
+
readonly codeIntelligenceTaskModelDefaults?: components["schemas"]["CodeIntelligenceTaskModelDefaultsDto"];
|
|
7661
7757
|
/** @description When false, enable-enqueue and the cadence tick do not start an index wave. Defaults to true. */
|
|
7662
7758
|
codeIntelligenceIndexingEnabled?: boolean;
|
|
7663
7759
|
/**
|
|
@@ -12633,6 +12729,10 @@ export interface components {
|
|
|
12633
12729
|
error?: string;
|
|
12634
12730
|
/** @description Per-provider sync outcomes when one or more HRIS sources are configured. */
|
|
12635
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;
|
|
12636
12736
|
};
|
|
12637
12737
|
HrisProviderSyncResultDto: {
|
|
12638
12738
|
/** @description HRIS provider identifier (personio, zenhr, …). */
|
|
@@ -12643,6 +12743,71 @@ export interface components {
|
|
|
12643
12743
|
absenceCount?: number;
|
|
12644
12744
|
durationMs?: number;
|
|
12645
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
|
+
syncPresence: components["schemas"]["HrisRosterSyncPresenceDto"];
|
|
12771
|
+
/** @description Which layer supplied each non-empty field on the effective row. */
|
|
12772
|
+
fieldSources?: {
|
|
12773
|
+
[key: string]: "provider" | "overlay";
|
|
12774
|
+
};
|
|
12775
|
+
/** @description Canonical required field keys that are still blank on the effective row. */
|
|
12776
|
+
incompleteFields: string[];
|
|
12777
|
+
};
|
|
12778
|
+
HrisRosterDto: {
|
|
12779
|
+
provider: string;
|
|
12780
|
+
/** Format: date-time */
|
|
12781
|
+
updatedAt: string | null;
|
|
12782
|
+
people: components["schemas"]["HrisRosterPersonDto"][];
|
|
12783
|
+
};
|
|
12784
|
+
HrisRosterPersonPatchDto: {
|
|
12785
|
+
employeeId: string;
|
|
12786
|
+
overlay?: {
|
|
12787
|
+
name?: string;
|
|
12788
|
+
email?: string;
|
|
12789
|
+
title?: string;
|
|
12790
|
+
department?: string;
|
|
12791
|
+
team?: string;
|
|
12792
|
+
managerId?: string;
|
|
12793
|
+
location?: string;
|
|
12794
|
+
githubUsername?: string;
|
|
12795
|
+
bitbucketNickname?: string;
|
|
12796
|
+
bitbucketUuid?: string;
|
|
12797
|
+
gitlabUsername?: string;
|
|
12798
|
+
alternateEmails?: string;
|
|
12799
|
+
};
|
|
12800
|
+
/** @description Clear syncPresence=new without archiving. */
|
|
12801
|
+
dismissNew?: boolean;
|
|
12802
|
+
/** @description Archive a missing_from_sync (or any) row. */
|
|
12803
|
+
archive?: boolean;
|
|
12804
|
+
};
|
|
12805
|
+
HrisRosterPatchDto: {
|
|
12806
|
+
people: components["schemas"]["HrisRosterPersonPatchDto"][];
|
|
12807
|
+
};
|
|
12808
|
+
HrisRosterCsvImportDto: {
|
|
12809
|
+
/** @description Full CSV text with org-chart headers. */
|
|
12810
|
+
csv: string;
|
|
12646
12811
|
};
|
|
12647
12812
|
ActivityLogPageDto: components["schemas"]["PageMetaDto"] & {
|
|
12648
12813
|
items: components["schemas"]["ActivityLogEntryDto"][];
|
|
@@ -13290,6 +13455,48 @@ export interface components {
|
|
|
13290
13455
|
updatedAt: string;
|
|
13291
13456
|
/** @description True when the indexed graph stores durable code excerpts (required for useful chat answers). */
|
|
13292
13457
|
hasCodeExcerpts?: boolean;
|
|
13458
|
+
/** @description How the decision-line card step ended on the last scan. Null when no card step has reported for this index (scanned before cards existed, or by an older worker). */
|
|
13459
|
+
ruleCards?: components["schemas"]["CodeChatIndexRuleCardsDto"] | null;
|
|
13460
|
+
/** @description How the architecture document step ended on the last scan. Null when no document step has reported for this index (documents off, or scanned by an older worker). */
|
|
13461
|
+
archDoc?: components["schemas"]["CodeChatIndexArchDocDto"] | null;
|
|
13462
|
+
};
|
|
13463
|
+
CodeChatIndexRuleCardsDto: {
|
|
13464
|
+
/**
|
|
13465
|
+
* @description ready: every card was embedded. partial: some cards have no description or were not embedded; the rest are searchable. failed: the step errored and cards from the last good scan are kept. skipped: the step did not run (turned off, or no model or embeddings key).
|
|
13466
|
+
* @enum {string}
|
|
13467
|
+
*/
|
|
13468
|
+
status: "ready" | "partial" | "failed" | "skipped";
|
|
13469
|
+
/** @description Plain-words explanation and next step. Null when status is ready with cards written. */
|
|
13470
|
+
reason: string | null;
|
|
13471
|
+
/** @description Decision lines found in this repository. */
|
|
13472
|
+
cards: number;
|
|
13473
|
+
/** Format: date-time */
|
|
13474
|
+
updatedAt: string | null;
|
|
13475
|
+
};
|
|
13476
|
+
CodeChatIndexArchDocDto: {
|
|
13477
|
+
/**
|
|
13478
|
+
* @description ready: document stored for this commit. failed: the step errored and the earlier document is kept. skipped: the step did not run (no model key, or too little code).
|
|
13479
|
+
* @enum {string}
|
|
13480
|
+
*/
|
|
13481
|
+
status: "ready" | "failed" | "skipped";
|
|
13482
|
+
/** @description Plain-words explanation and next step. */
|
|
13483
|
+
reason: string | null;
|
|
13484
|
+
/** Format: date-time */
|
|
13485
|
+
updatedAt: string | null;
|
|
13486
|
+
};
|
|
13487
|
+
CodeChatArchDocViewDto: {
|
|
13488
|
+
/**
|
|
13489
|
+
* @description missing means no step has reported and nothing is stored.
|
|
13490
|
+
* @enum {string}
|
|
13491
|
+
*/
|
|
13492
|
+
status: "ready" | "failed" | "skipped" | "missing";
|
|
13493
|
+
reason: string | null;
|
|
13494
|
+
/** Format: date-time */
|
|
13495
|
+
updatedAt: string | null;
|
|
13496
|
+
/** @description The document was written for an earlier commit than the index now holds. */
|
|
13497
|
+
stale: boolean;
|
|
13498
|
+
/** @description The `.arch.md` file content. Standard headings, in the same order for every repository. */
|
|
13499
|
+
markdown: string | null;
|
|
13293
13500
|
};
|
|
13294
13501
|
CodeChatIndexLastChangeDto: {
|
|
13295
13502
|
priorCommitSha: string;
|
|
@@ -13322,6 +13529,13 @@ export interface components {
|
|
|
13322
13529
|
phase?: "cloning" | "indexing" | "track_a" | "track_b" | "completing" | null;
|
|
13323
13530
|
/** @description Human-readable detail (e.g. enriching · page 3/8 · how-it-works). */
|
|
13324
13531
|
phaseDetail?: string | null;
|
|
13532
|
+
/** @description The steps this scan runs, in order, with each step's status. Only planned steps appear (for example decision lines and the architecture document only when enabled, wiki only when the scan writes pages). Null for jobs queued before this field existed. */
|
|
13533
|
+
steps?: {
|
|
13534
|
+
/** @enum {string} */
|
|
13535
|
+
key: "acquire" | "extract" | "model" | "decision_lines" | "arch_doc" | "wiki";
|
|
13536
|
+
/** @enum {string} */
|
|
13537
|
+
status: "planned" | "running" | "done" | "skipped" | "failed";
|
|
13538
|
+
}[] | null;
|
|
13325
13539
|
/** Format: date-time */
|
|
13326
13540
|
phaseUpdatedAt?: string | null;
|
|
13327
13541
|
trackAStatus?: components["schemas"]["CodeKnowledgeTrackStatus"];
|
|
@@ -15149,6 +15363,10 @@ export type AgentExecutionProviderDto = components['schemas']['AgentExecutionPro
|
|
|
15149
15363
|
export type PutAgentExecutionProvidersDto = components['schemas']['PutAgentExecutionProvidersDto'];
|
|
15150
15364
|
export type AgentExecutionSkipReasonDto = components['schemas']['AgentExecutionSkipReasonDto'];
|
|
15151
15365
|
export type AgentExecutionFallbackDto = components['schemas']['AgentExecutionFallbackDto'];
|
|
15366
|
+
export type CodeIntelligenceTaskModelDto = components['schemas']['CodeIntelligenceTaskModelDto'];
|
|
15367
|
+
export type CodeIntelligenceTaskModelDefaultsDto = components['schemas']['CodeIntelligenceTaskModelDefaultsDto'];
|
|
15368
|
+
export type CodeIntelligenceTaskModelDefaultDto = components['schemas']['CodeIntelligenceTaskModelDefaultDto'];
|
|
15369
|
+
export type CodeIntelligenceModelsByTaskDto = components['schemas']['CodeIntelligenceModelsByTaskDto'];
|
|
15152
15370
|
export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntelligenceSettingsDto'];
|
|
15153
15371
|
export type CodeWikiGuidanceTopicDto = components['schemas']['CodeWikiGuidanceTopicDto'];
|
|
15154
15372
|
export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntelligenceAgentMdDto'];
|
|
@@ -15585,6 +15803,12 @@ export type ZenHrBranchSelectionDto = components['schemas']['ZenHrBranchSelectio
|
|
|
15585
15803
|
export type ZenHrBranchSelectionResultDto = components['schemas']['ZenHrBranchSelectionResultDto'];
|
|
15586
15804
|
export type HrisTriggerSyncResultDto = components['schemas']['HrisTriggerSyncResultDto'];
|
|
15587
15805
|
export type HrisProviderSyncResultDto = components['schemas']['HrisProviderSyncResultDto'];
|
|
15806
|
+
export type HrisRosterSyncPresenceDto = components['schemas']['HrisRosterSyncPresenceDto'];
|
|
15807
|
+
export type HrisRosterPersonDto = components['schemas']['HrisRosterPersonDto'];
|
|
15808
|
+
export type HrisRosterDto = components['schemas']['HrisRosterDto'];
|
|
15809
|
+
export type HrisRosterPersonPatchDto = components['schemas']['HrisRosterPersonPatchDto'];
|
|
15810
|
+
export type HrisRosterPatchDto = components['schemas']['HrisRosterPatchDto'];
|
|
15811
|
+
export type HrisRosterCsvImportDto = components['schemas']['HrisRosterCsvImportDto'];
|
|
15588
15812
|
export type ActivityLogPageDto = components['schemas']['ActivityLogPageDto'];
|
|
15589
15813
|
export type AutomationCostOperationDto = components['schemas']['AutomationCostOperationDto'];
|
|
15590
15814
|
export type AutomationCostSummaryRowDto = components['schemas']['AutomationCostSummaryRowDto'];
|
|
@@ -15668,6 +15892,9 @@ export type InsightsRecommendationsPageBundleResponse = components['schemas']['I
|
|
|
15668
15892
|
export type CodeChatIndexStatus = components['schemas']['CodeChatIndexStatus'];
|
|
15669
15893
|
export type CodeChatIndexer = components['schemas']['CodeChatIndexer'];
|
|
15670
15894
|
export type CodeChatIndexDto = components['schemas']['CodeChatIndexDto'];
|
|
15895
|
+
export type CodeChatIndexRuleCardsDto = components['schemas']['CodeChatIndexRuleCardsDto'];
|
|
15896
|
+
export type CodeChatIndexArchDocDto = components['schemas']['CodeChatIndexArchDocDto'];
|
|
15897
|
+
export type CodeChatArchDocViewDto = components['schemas']['CodeChatArchDocViewDto'];
|
|
15671
15898
|
export type CodeChatIndexLastChangeDto = components['schemas']['CodeChatIndexLastChangeDto'];
|
|
15672
15899
|
export type CodeKnowledgeJobDto = components['schemas']['CodeKnowledgeJobDto'];
|
|
15673
15900
|
export type CodeKnowledgeTrackStatus = components['schemas']['CodeKnowledgeTrackStatus'];
|
|
@@ -28313,6 +28540,37 @@ export interface operations {
|
|
|
28313
28540
|
};
|
|
28314
28541
|
};
|
|
28315
28542
|
};
|
|
28543
|
+
getCodeChatArchDoc: {
|
|
28544
|
+
parameters: {
|
|
28545
|
+
query?: never;
|
|
28546
|
+
header?: never;
|
|
28547
|
+
path: {
|
|
28548
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
28549
|
+
indexId: string;
|
|
28550
|
+
};
|
|
28551
|
+
cookie?: never;
|
|
28552
|
+
};
|
|
28553
|
+
requestBody?: never;
|
|
28554
|
+
responses: {
|
|
28555
|
+
/** @description Document and step outcome */
|
|
28556
|
+
200: {
|
|
28557
|
+
headers: {
|
|
28558
|
+
[name: string]: unknown;
|
|
28559
|
+
};
|
|
28560
|
+
content: {
|
|
28561
|
+
"application/json": components["schemas"]["CodeChatArchDocViewDto"];
|
|
28562
|
+
};
|
|
28563
|
+
};
|
|
28564
|
+
401: components["responses"]["Unauthorized"];
|
|
28565
|
+
/** @description Index not found */
|
|
28566
|
+
404: {
|
|
28567
|
+
headers: {
|
|
28568
|
+
[name: string]: unknown;
|
|
28569
|
+
};
|
|
28570
|
+
content?: never;
|
|
28571
|
+
};
|
|
28572
|
+
};
|
|
28573
|
+
};
|
|
28316
28574
|
getCodeChatEffectiveWikiConfig: {
|
|
28317
28575
|
parameters: {
|
|
28318
28576
|
query?: never;
|
|
@@ -31806,6 +32064,146 @@ export interface operations {
|
|
|
31806
32064
|
};
|
|
31807
32065
|
};
|
|
31808
32066
|
};
|
|
32067
|
+
getHrisRoster: {
|
|
32068
|
+
parameters: {
|
|
32069
|
+
query: {
|
|
32070
|
+
/** @description HRIS provider whose roster to return. */
|
|
32071
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32072
|
+
};
|
|
32073
|
+
header?: never;
|
|
32074
|
+
path: {
|
|
32075
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32076
|
+
};
|
|
32077
|
+
cookie?: never;
|
|
32078
|
+
};
|
|
32079
|
+
requestBody?: never;
|
|
32080
|
+
responses: {
|
|
32081
|
+
/** @description Roster document */
|
|
32082
|
+
200: {
|
|
32083
|
+
headers: {
|
|
32084
|
+
[name: string]: unknown;
|
|
32085
|
+
};
|
|
32086
|
+
content: {
|
|
32087
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32088
|
+
};
|
|
32089
|
+
};
|
|
32090
|
+
/** @description Missing or invalid provider */
|
|
32091
|
+
400: {
|
|
32092
|
+
headers: {
|
|
32093
|
+
[name: string]: unknown;
|
|
32094
|
+
};
|
|
32095
|
+
content: {
|
|
32096
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32097
|
+
};
|
|
32098
|
+
};
|
|
32099
|
+
401: components["responses"]["Unauthorized"];
|
|
32100
|
+
403: components["responses"]["Forbidden"];
|
|
32101
|
+
};
|
|
32102
|
+
};
|
|
32103
|
+
patchHrisRoster: {
|
|
32104
|
+
parameters: {
|
|
32105
|
+
query: {
|
|
32106
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32107
|
+
};
|
|
32108
|
+
header?: never;
|
|
32109
|
+
path: {
|
|
32110
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32111
|
+
};
|
|
32112
|
+
cookie?: never;
|
|
32113
|
+
};
|
|
32114
|
+
requestBody: {
|
|
32115
|
+
content: {
|
|
32116
|
+
"application/json": components["schemas"]["HrisRosterPatchDto"];
|
|
32117
|
+
};
|
|
32118
|
+
};
|
|
32119
|
+
responses: {
|
|
32120
|
+
/** @description Updated roster */
|
|
32121
|
+
200: {
|
|
32122
|
+
headers: {
|
|
32123
|
+
[name: string]: unknown;
|
|
32124
|
+
};
|
|
32125
|
+
content: {
|
|
32126
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32127
|
+
};
|
|
32128
|
+
};
|
|
32129
|
+
/** @description Invalid body */
|
|
32130
|
+
400: {
|
|
32131
|
+
headers: {
|
|
32132
|
+
[name: string]: unknown;
|
|
32133
|
+
};
|
|
32134
|
+
content: {
|
|
32135
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32136
|
+
};
|
|
32137
|
+
};
|
|
32138
|
+
401: components["responses"]["Unauthorized"];
|
|
32139
|
+
403: components["responses"]["Forbidden"];
|
|
32140
|
+
};
|
|
32141
|
+
};
|
|
32142
|
+
downloadHrisRosterCsv: {
|
|
32143
|
+
parameters: {
|
|
32144
|
+
query: {
|
|
32145
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32146
|
+
};
|
|
32147
|
+
header?: never;
|
|
32148
|
+
path: {
|
|
32149
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32150
|
+
};
|
|
32151
|
+
cookie?: never;
|
|
32152
|
+
};
|
|
32153
|
+
requestBody?: never;
|
|
32154
|
+
responses: {
|
|
32155
|
+
/** @description CSV file */
|
|
32156
|
+
200: {
|
|
32157
|
+
headers: {
|
|
32158
|
+
[name: string]: unknown;
|
|
32159
|
+
};
|
|
32160
|
+
content: {
|
|
32161
|
+
"text/csv": string;
|
|
32162
|
+
};
|
|
32163
|
+
};
|
|
32164
|
+
401: components["responses"]["Unauthorized"];
|
|
32165
|
+
403: components["responses"]["Forbidden"];
|
|
32166
|
+
};
|
|
32167
|
+
};
|
|
32168
|
+
importHrisRosterCsv: {
|
|
32169
|
+
parameters: {
|
|
32170
|
+
query: {
|
|
32171
|
+
provider: "hibob" | "personio" | "zenhr" | "zelt";
|
|
32172
|
+
};
|
|
32173
|
+
header?: never;
|
|
32174
|
+
path: {
|
|
32175
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
32176
|
+
};
|
|
32177
|
+
cookie?: never;
|
|
32178
|
+
};
|
|
32179
|
+
requestBody: {
|
|
32180
|
+
content: {
|
|
32181
|
+
"application/json": components["schemas"]["HrisRosterCsvImportDto"];
|
|
32182
|
+
};
|
|
32183
|
+
};
|
|
32184
|
+
responses: {
|
|
32185
|
+
/** @description Updated roster after import */
|
|
32186
|
+
200: {
|
|
32187
|
+
headers: {
|
|
32188
|
+
[name: string]: unknown;
|
|
32189
|
+
};
|
|
32190
|
+
content: {
|
|
32191
|
+
"application/json": components["schemas"]["HrisRosterDto"];
|
|
32192
|
+
};
|
|
32193
|
+
};
|
|
32194
|
+
/** @description Invalid CSV */
|
|
32195
|
+
400: {
|
|
32196
|
+
headers: {
|
|
32197
|
+
[name: string]: unknown;
|
|
32198
|
+
};
|
|
32199
|
+
content: {
|
|
32200
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32201
|
+
};
|
|
32202
|
+
};
|
|
32203
|
+
401: components["responses"]["Unauthorized"];
|
|
32204
|
+
403: components["responses"]["Forbidden"];
|
|
32205
|
+
};
|
|
32206
|
+
};
|
|
31809
32207
|
listEvalPacks: {
|
|
31810
32208
|
parameters: {
|
|
31811
32209
|
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,64 @@ 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
|
+
syncPresence: HrisRosterSyncPresenceDto;
|
|
1875
|
+
fieldSources?: Record<string, "provider" | "overlay">;
|
|
1876
|
+
incompleteFields: string[];
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export interface HrisRosterDto {
|
|
1880
|
+
provider: string;
|
|
1881
|
+
updatedAt: string | null;
|
|
1882
|
+
people: HrisRosterPersonDto[];
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
export interface HrisRosterPersonPatchDto {
|
|
1886
|
+
employeeId: string;
|
|
1887
|
+
overlay?: {
|
|
1888
|
+
name?: string;
|
|
1889
|
+
email?: string;
|
|
1890
|
+
title?: string;
|
|
1891
|
+
department?: string;
|
|
1892
|
+
team?: string;
|
|
1893
|
+
managerId?: string;
|
|
1894
|
+
location?: string;
|
|
1895
|
+
githubUsername?: string;
|
|
1896
|
+
bitbucketNickname?: string;
|
|
1897
|
+
bitbucketUuid?: string;
|
|
1898
|
+
gitlabUsername?: string;
|
|
1899
|
+
alternateEmails?: string;
|
|
1900
|
+
};
|
|
1901
|
+
dismissNew?: boolean;
|
|
1902
|
+
archive?: boolean;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
export interface HrisRosterPatchDto {
|
|
1906
|
+
people: HrisRosterPersonPatchDto[];
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
export interface HrisRosterCsvImportDto {
|
|
1910
|
+
csv: string;
|
|
1850
1911
|
}
|
|
1851
1912
|
|
|
1852
1913
|
/** Weekly bucket in GET .../connectors/ai-tool/:provider/summary */
|