@thinkai/tai-api-contract 2.257.0 → 2.259.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.
@@ -485,66 +485,6 @@ export interface paths {
485
485
  patch?: never;
486
486
  trace?: never;
487
487
  };
488
- "/admin/design-adoption": {
489
- parameters: {
490
- query?: never;
491
- header?: never;
492
- path?: never;
493
- cookie?: never;
494
- };
495
- /**
496
- * Design adoption totals, reasons, and people
497
- * @description Platform admins only. Who is on the new design, who went back to classic, and who never chose. `totals.onNew`, `totals.backOnClassic`, `totals.neverChose`, and `totals.choseClassic` sum to `totals.totalPeople`. `reasons` counts one reason per person currently back on classic (tried the new design, saved choice is now `v1`), using the latest switch to classic. `reason: null` is no reason given. `people` is one row per active account (email, workspace, current design, since, switch count, last reason). Notes are not included. `workspaceId` and `design` filter the people list only; totals and reasons stay global. Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
498
- */
499
- get: operations["adminGetDesignAdoption"];
500
- put?: never;
501
- post?: never;
502
- delete?: never;
503
- options?: never;
504
- head?: never;
505
- patch?: never;
506
- trace?: never;
507
- };
508
- "/admin/design-adoption.csv": {
509
- parameters: {
510
- query?: never;
511
- header?: never;
512
- path?: never;
513
- cookie?: never;
514
- };
515
- /**
516
- * Design adoption people list as CSV
517
- * @description Platform admins only. The people list from `GET /admin/design-adoption` as an RFC 4180 CSV file. Accepts the same `workspaceId` and `design` filters. `limit` and `offset` are ignored. Columns are `email,workspace,design,since,switches,lastReason`. Notes are not included. At most 50000 matching rows. `Content-Disposition` is `attachment`. Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
518
- */
519
- get: operations["adminExportDesignAdoptionCsv"];
520
- put?: never;
521
- post?: never;
522
- delete?: never;
523
- options?: never;
524
- head?: never;
525
- patch?: never;
526
- trace?: never;
527
- };
528
- "/admin/design-adoption/people/{userId}": {
529
- parameters: {
530
- query?: never;
531
- header?: never;
532
- path?: never;
533
- cookie?: never;
534
- };
535
- /**
536
- * One person's design switches, including notes
537
- * @description Platform admins only. The same summary fields as a people-list row, plus that person's switch events. `note` is present only here (optional, at most 500 characters). Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
538
- */
539
- get: operations["adminGetDesignAdoptionPerson"];
540
- put?: never;
541
- post?: never;
542
- delete?: never;
543
- options?: never;
544
- head?: never;
545
- patch?: never;
546
- trace?: never;
547
- };
548
488
  "/admin/jobs-session": {
549
489
  parameters: {
550
490
  query?: never;
@@ -11927,76 +11867,6 @@ export interface components {
11927
11867
  /** @description App path the person was on. Query strings are not stored. */
11928
11868
  route?: string;
11929
11869
  };
11930
- /** @description People counts partition active accounts: `onNew + backOnClassic + neverChose + choseClassic = totalPeople`. Workspace counts ignore the people-list filters. */
11931
- DesignAdoptionTotalsDto: {
11932
- /** @description Saved design is the new design (`v2`). */
11933
- onNew: number;
11934
- /** @description Tried the new design and the saved design is now classic (`v1`). */
11935
- backOnClassic: number;
11936
- /** @description No saved design choice. */
11937
- neverChose: number;
11938
- /** @description Saved classic (`v1`) without ever switching to the new design. */
11939
- choseClassic: number;
11940
- /** @description Active accounts. */
11941
- totalPeople: number;
11942
- /** @description Active workspaces with at least one active member, where every active member is on the new design. */
11943
- workspacesFullyOnNew: number;
11944
- /** @description Active workspaces, including those with no members. */
11945
- totalWorkspaces: number;
11946
- };
11947
- DesignAdoptionReasonCountDto: {
11948
- /** @description `null` means no reason was given on the latest switch back to classic. */
11949
- reason: components["schemas"]["DesignSwitchReason"] | null;
11950
- count: number;
11951
- };
11952
- /** @description One active account. Notes are not included. `workspaceId` is the earliest active membership, or the filtered workspace when `workspaceId` is set on the query. */
11953
- DesignAdoptionPersonDto: {
11954
- /** Format: uuid */
11955
- userId: string;
11956
- email: string;
11957
- /** Format: uuid */
11958
- workspaceId: string | null;
11959
- workspaceName: string | null;
11960
- /** @description `null` means the person has not chosen a design. */
11961
- design: components["schemas"]["DesignVersion"] | null;
11962
- /**
11963
- * Format: date-time
11964
- * @description When the saved design last changed. `null` when none is saved.
11965
- */
11966
- since: string | null;
11967
- switchCount: number;
11968
- /** @description Reason on the latest switch event. `null` when there is none. */
11969
- lastReason: components["schemas"]["DesignSwitchReason"] | null;
11970
- };
11971
- DesignAdoptionPeoplePageDto: {
11972
- items: components["schemas"]["DesignAdoptionPersonDto"][];
11973
- /** @description Matching people before paging. */
11974
- total: number;
11975
- limit: number;
11976
- offset: number;
11977
- };
11978
- DesignAdoptionDto: {
11979
- totals: components["schemas"]["DesignAdoptionTotalsDto"];
11980
- /** @description One row per switch reason, in a stable order, then `reason: null` for no reason given. Counts sum to `totals.backOnClassic`. */
11981
- reasons: components["schemas"]["DesignAdoptionReasonCountDto"][];
11982
- people: components["schemas"]["DesignAdoptionPeoplePageDto"];
11983
- };
11984
- DesignAdoptionSwitchEventDto: {
11985
- /** Format: uuid */
11986
- id: string;
11987
- /** Format: date-time */
11988
- createdAt: string;
11989
- fromVersion: components["schemas"]["DesignVersion"] | null;
11990
- toVersion: components["schemas"]["DesignVersion"];
11991
- reason: components["schemas"]["DesignSwitchReason"] | null;
11992
- /** @description Optional note. Present only on this per-person read. */
11993
- note: string | null;
11994
- route: string | null;
11995
- };
11996
- DesignAdoptionPersonDetailDto: components["schemas"]["DesignAdoptionPersonDto"] & {
11997
- /** @description Newest switch first. Includes notes. */
11998
- events: components["schemas"]["DesignAdoptionSwitchEventDto"][];
11999
- };
12000
11870
  /** @description Body for `PUT /me/preferences`. `notificationChannels` may be omitted to keep stored cells. `designVersion` and `designVersionChangedAt` are not accepted; the stored design choice is kept. Use `PUT /me/design-version` to change it. */
12001
11871
  PutPreferencesBodyDto: {
12002
11872
  theme: components["schemas"]["ThemePreference"];
@@ -13327,6 +13197,10 @@ export interface components {
13327
13197
  provider: string;
13328
13198
  /** Format: date-time */
13329
13199
  updatedAt: string | null;
13200
+ /** @description Roster columns the HRIS returns. Read-only: a changed value arrives on the next sync and a blank stays blank. PATCH and CSV import ignore these columns. */
13201
+ providerColumns: string[];
13202
+ /** @description Roster columns the HRIS does not return. Only these accept user input (overlay). */
13203
+ overlayColumns: string[];
13330
13204
  people: components["schemas"]["HrisRosterPersonDto"][];
13331
13205
  };
13332
13206
  HrisRosterPersonPatchDto: {
@@ -16576,13 +16450,6 @@ export type PreferencesDto = components['schemas']['PreferencesDto'];
16576
16450
  export type DesignVersion = components['schemas']['DesignVersion'];
16577
16451
  export type DesignSwitchReason = components['schemas']['DesignSwitchReason'];
16578
16452
  export type PutDesignVersionBodyDto = components['schemas']['PutDesignVersionBodyDto'];
16579
- export type DesignAdoptionTotalsDto = components['schemas']['DesignAdoptionTotalsDto'];
16580
- export type DesignAdoptionReasonCountDto = components['schemas']['DesignAdoptionReasonCountDto'];
16581
- export type DesignAdoptionPersonDto = components['schemas']['DesignAdoptionPersonDto'];
16582
- export type DesignAdoptionPeoplePageDto = components['schemas']['DesignAdoptionPeoplePageDto'];
16583
- export type DesignAdoptionDto = components['schemas']['DesignAdoptionDto'];
16584
- export type DesignAdoptionSwitchEventDto = components['schemas']['DesignAdoptionSwitchEventDto'];
16585
- export type DesignAdoptionPersonDetailDto = components['schemas']['DesignAdoptionPersonDetailDto'];
16586
16453
  export type PutPreferencesBodyDto = components['schemas']['PutPreferencesBodyDto'];
16587
16454
  export type NotificationChannelRequiredErrorDto = components['schemas']['NotificationChannelRequiredErrorDto'];
16588
16455
  export type ValidationIssueDto = components['schemas']['ValidationIssueDto'];
@@ -18683,221 +18550,6 @@ export interface operations {
18683
18550
  };
18684
18551
  };
18685
18552
  };
18686
- adminGetDesignAdoption: {
18687
- parameters: {
18688
- query?: {
18689
- /** @description Keep people who are active members of this workspace. */
18690
- workspaceId?: string;
18691
- /** @description Current saved design. `v2` is the new design, `v1` is classic (including people who never tried the new design), `none` is no saved choice. */
18692
- design?: "v1" | "v2" | "none";
18693
- /** @description Page size (default 50, max 200). */
18694
- limit?: number;
18695
- /** @description Number of matching people to skip. */
18696
- offset?: number;
18697
- };
18698
- header?: never;
18699
- path?: never;
18700
- cookie?: never;
18701
- };
18702
- requestBody?: never;
18703
- responses: {
18704
- /** @description Adoption totals, switch-back reasons, and one page of people. */
18705
- 200: {
18706
- headers: {
18707
- [name: string]: unknown;
18708
- };
18709
- content: {
18710
- "application/json": components["schemas"]["DesignAdoptionDto"];
18711
- };
18712
- };
18713
- /** @description Invalid workspaceId, design, limit, or offset. */
18714
- 400: {
18715
- headers: {
18716
- [name: string]: unknown;
18717
- };
18718
- content: {
18719
- /**
18720
- * @example {
18721
- * "error": "design must be v1, v2, or none",
18722
- * "code": "invalid_query"
18723
- * }
18724
- */
18725
- "application/json": components["schemas"]["ErrorMessageDto"];
18726
- };
18727
- };
18728
- 401: components["responses"]["Unauthorized"];
18729
- /** @description Caller is not a platform admin. */
18730
- 403: {
18731
- headers: {
18732
- [name: string]: unknown;
18733
- };
18734
- content: {
18735
- /**
18736
- * @example {
18737
- * "error": "Forbidden",
18738
- * "code": "forbidden"
18739
- * }
18740
- */
18741
- "application/json": components["schemas"]["ErrorMessageDto"];
18742
- };
18743
- };
18744
- /** @description Design adoption store is unavailable. */
18745
- 503: {
18746
- headers: {
18747
- [name: string]: unknown;
18748
- };
18749
- content: {
18750
- /**
18751
- * @example {
18752
- * "error": "Design adoption is unavailable",
18753
- * "code": "design_adoption_unavailable"
18754
- * }
18755
- */
18756
- "application/json": components["schemas"]["ErrorMessageDto"];
18757
- };
18758
- };
18759
- };
18760
- };
18761
- adminExportDesignAdoptionCsv: {
18762
- parameters: {
18763
- query?: {
18764
- workspaceId?: string;
18765
- design?: "v1" | "v2" | "none";
18766
- };
18767
- header?: never;
18768
- path?: never;
18769
- cookie?: never;
18770
- };
18771
- requestBody?: never;
18772
- responses: {
18773
- /** @description CSV file of matching people. */
18774
- 200: {
18775
- headers: {
18776
- [name: string]: unknown;
18777
- };
18778
- content: {
18779
- "text/csv": string;
18780
- };
18781
- };
18782
- /** @description Invalid workspaceId or design. */
18783
- 400: {
18784
- headers: {
18785
- [name: string]: unknown;
18786
- };
18787
- content: {
18788
- /**
18789
- * @example {
18790
- * "error": "workspaceId must be a uuid",
18791
- * "code": "invalid_query"
18792
- * }
18793
- */
18794
- "application/json": components["schemas"]["ErrorMessageDto"];
18795
- };
18796
- };
18797
- 401: components["responses"]["Unauthorized"];
18798
- /** @description Caller is not a platform admin. */
18799
- 403: {
18800
- headers: {
18801
- [name: string]: unknown;
18802
- };
18803
- content: {
18804
- /**
18805
- * @example {
18806
- * "error": "Forbidden",
18807
- * "code": "forbidden"
18808
- * }
18809
- */
18810
- "application/json": components["schemas"]["ErrorMessageDto"];
18811
- };
18812
- };
18813
- /** @description Design adoption store is unavailable. */
18814
- 503: {
18815
- headers: {
18816
- [name: string]: unknown;
18817
- };
18818
- content: {
18819
- "application/json": components["schemas"]["ErrorMessageDto"];
18820
- };
18821
- };
18822
- };
18823
- };
18824
- adminGetDesignAdoptionPerson: {
18825
- parameters: {
18826
- query?: never;
18827
- header?: never;
18828
- path: {
18829
- userId: string;
18830
- };
18831
- cookie?: never;
18832
- };
18833
- requestBody?: never;
18834
- responses: {
18835
- /** @description One person and their switch events. */
18836
- 200: {
18837
- headers: {
18838
- [name: string]: unknown;
18839
- };
18840
- content: {
18841
- "application/json": components["schemas"]["DesignAdoptionPersonDetailDto"];
18842
- };
18843
- };
18844
- /** @description userId is not a uuid. */
18845
- 400: {
18846
- headers: {
18847
- [name: string]: unknown;
18848
- };
18849
- content: {
18850
- /**
18851
- * @example {
18852
- * "error": "Invalid user ID format",
18853
- * "code": "invalid_user_id"
18854
- * }
18855
- */
18856
- "application/json": components["schemas"]["ErrorMessageDto"];
18857
- };
18858
- };
18859
- 401: components["responses"]["Unauthorized"];
18860
- /** @description Caller is not a platform admin. */
18861
- 403: {
18862
- headers: {
18863
- [name: string]: unknown;
18864
- };
18865
- content: {
18866
- /**
18867
- * @example {
18868
- * "error": "Forbidden",
18869
- * "code": "forbidden"
18870
- * }
18871
- */
18872
- "application/json": components["schemas"]["ErrorMessageDto"];
18873
- };
18874
- };
18875
- /** @description No active user with that id. */
18876
- 404: {
18877
- headers: {
18878
- [name: string]: unknown;
18879
- };
18880
- content: {
18881
- /**
18882
- * @example {
18883
- * "error": "User not found",
18884
- * "code": "user_not_found"
18885
- * }
18886
- */
18887
- "application/json": components["schemas"]["ErrorMessageDto"];
18888
- };
18889
- };
18890
- /** @description Design adoption store is unavailable. */
18891
- 503: {
18892
- headers: {
18893
- [name: string]: unknown;
18894
- };
18895
- content: {
18896
- "application/json": components["schemas"]["ErrorMessageDto"];
18897
- };
18898
- };
18899
- };
18900
- };
18901
18553
  adminCreateJobsSession: {
18902
18554
  parameters: {
18903
18555
  query?: never;