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