@thinkai/tai-api-contract 2.258.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"];
@@ -16581,13 +16451,6 @@ export type PreferencesDto = components['schemas']['PreferencesDto'];
16581
16451
  export type DesignVersion = components['schemas']['DesignVersion'];
16582
16452
  export type DesignSwitchReason = components['schemas']['DesignSwitchReason'];
16583
16453
  export type PutDesignVersionBodyDto = components['schemas']['PutDesignVersionBodyDto'];
16584
- export type DesignAdoptionTotalsDto = components['schemas']['DesignAdoptionTotalsDto'];
16585
- export type DesignAdoptionReasonCountDto = components['schemas']['DesignAdoptionReasonCountDto'];
16586
- export type DesignAdoptionPersonDto = components['schemas']['DesignAdoptionPersonDto'];
16587
- export type DesignAdoptionPeoplePageDto = components['schemas']['DesignAdoptionPeoplePageDto'];
16588
- export type DesignAdoptionDto = components['schemas']['DesignAdoptionDto'];
16589
- export type DesignAdoptionSwitchEventDto = components['schemas']['DesignAdoptionSwitchEventDto'];
16590
- export type DesignAdoptionPersonDetailDto = components['schemas']['DesignAdoptionPersonDetailDto'];
16591
16454
  export type PutPreferencesBodyDto = components['schemas']['PutPreferencesBodyDto'];
16592
16455
  export type NotificationChannelRequiredErrorDto = components['schemas']['NotificationChannelRequiredErrorDto'];
16593
16456
  export type ValidationIssueDto = components['schemas']['ValidationIssueDto'];
@@ -18688,221 +18551,6 @@ export interface operations {
18688
18551
  };
18689
18552
  };
18690
18553
  };
18691
- adminGetDesignAdoption: {
18692
- parameters: {
18693
- query?: {
18694
- /** @description Keep people who are active members of this workspace. */
18695
- workspaceId?: string;
18696
- /** @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. */
18697
- design?: "v1" | "v2" | "none";
18698
- /** @description Page size (default 50, max 200). */
18699
- limit?: number;
18700
- /** @description Number of matching people to skip. */
18701
- offset?: number;
18702
- };
18703
- header?: never;
18704
- path?: never;
18705
- cookie?: never;
18706
- };
18707
- requestBody?: never;
18708
- responses: {
18709
- /** @description Adoption totals, switch-back reasons, and one page of people. */
18710
- 200: {
18711
- headers: {
18712
- [name: string]: unknown;
18713
- };
18714
- content: {
18715
- "application/json": components["schemas"]["DesignAdoptionDto"];
18716
- };
18717
- };
18718
- /** @description Invalid workspaceId, design, limit, or offset. */
18719
- 400: {
18720
- headers: {
18721
- [name: string]: unknown;
18722
- };
18723
- content: {
18724
- /**
18725
- * @example {
18726
- * "error": "design must be v1, v2, or none",
18727
- * "code": "invalid_query"
18728
- * }
18729
- */
18730
- "application/json": components["schemas"]["ErrorMessageDto"];
18731
- };
18732
- };
18733
- 401: components["responses"]["Unauthorized"];
18734
- /** @description Caller is not a platform admin. */
18735
- 403: {
18736
- headers: {
18737
- [name: string]: unknown;
18738
- };
18739
- content: {
18740
- /**
18741
- * @example {
18742
- * "error": "Forbidden",
18743
- * "code": "forbidden"
18744
- * }
18745
- */
18746
- "application/json": components["schemas"]["ErrorMessageDto"];
18747
- };
18748
- };
18749
- /** @description Design adoption store is unavailable. */
18750
- 503: {
18751
- headers: {
18752
- [name: string]: unknown;
18753
- };
18754
- content: {
18755
- /**
18756
- * @example {
18757
- * "error": "Design adoption is unavailable",
18758
- * "code": "design_adoption_unavailable"
18759
- * }
18760
- */
18761
- "application/json": components["schemas"]["ErrorMessageDto"];
18762
- };
18763
- };
18764
- };
18765
- };
18766
- adminExportDesignAdoptionCsv: {
18767
- parameters: {
18768
- query?: {
18769
- workspaceId?: string;
18770
- design?: "v1" | "v2" | "none";
18771
- };
18772
- header?: never;
18773
- path?: never;
18774
- cookie?: never;
18775
- };
18776
- requestBody?: never;
18777
- responses: {
18778
- /** @description CSV file of matching people. */
18779
- 200: {
18780
- headers: {
18781
- [name: string]: unknown;
18782
- };
18783
- content: {
18784
- "text/csv": string;
18785
- };
18786
- };
18787
- /** @description Invalid workspaceId or design. */
18788
- 400: {
18789
- headers: {
18790
- [name: string]: unknown;
18791
- };
18792
- content: {
18793
- /**
18794
- * @example {
18795
- * "error": "workspaceId must be a uuid",
18796
- * "code": "invalid_query"
18797
- * }
18798
- */
18799
- "application/json": components["schemas"]["ErrorMessageDto"];
18800
- };
18801
- };
18802
- 401: components["responses"]["Unauthorized"];
18803
- /** @description Caller is not a platform admin. */
18804
- 403: {
18805
- headers: {
18806
- [name: string]: unknown;
18807
- };
18808
- content: {
18809
- /**
18810
- * @example {
18811
- * "error": "Forbidden",
18812
- * "code": "forbidden"
18813
- * }
18814
- */
18815
- "application/json": components["schemas"]["ErrorMessageDto"];
18816
- };
18817
- };
18818
- /** @description Design adoption store is unavailable. */
18819
- 503: {
18820
- headers: {
18821
- [name: string]: unknown;
18822
- };
18823
- content: {
18824
- "application/json": components["schemas"]["ErrorMessageDto"];
18825
- };
18826
- };
18827
- };
18828
- };
18829
- adminGetDesignAdoptionPerson: {
18830
- parameters: {
18831
- query?: never;
18832
- header?: never;
18833
- path: {
18834
- userId: string;
18835
- };
18836
- cookie?: never;
18837
- };
18838
- requestBody?: never;
18839
- responses: {
18840
- /** @description One person and their switch events. */
18841
- 200: {
18842
- headers: {
18843
- [name: string]: unknown;
18844
- };
18845
- content: {
18846
- "application/json": components["schemas"]["DesignAdoptionPersonDetailDto"];
18847
- };
18848
- };
18849
- /** @description userId is not a uuid. */
18850
- 400: {
18851
- headers: {
18852
- [name: string]: unknown;
18853
- };
18854
- content: {
18855
- /**
18856
- * @example {
18857
- * "error": "Invalid user ID format",
18858
- * "code": "invalid_user_id"
18859
- * }
18860
- */
18861
- "application/json": components["schemas"]["ErrorMessageDto"];
18862
- };
18863
- };
18864
- 401: components["responses"]["Unauthorized"];
18865
- /** @description Caller is not a platform admin. */
18866
- 403: {
18867
- headers: {
18868
- [name: string]: unknown;
18869
- };
18870
- content: {
18871
- /**
18872
- * @example {
18873
- * "error": "Forbidden",
18874
- * "code": "forbidden"
18875
- * }
18876
- */
18877
- "application/json": components["schemas"]["ErrorMessageDto"];
18878
- };
18879
- };
18880
- /** @description No active user with that id. */
18881
- 404: {
18882
- headers: {
18883
- [name: string]: unknown;
18884
- };
18885
- content: {
18886
- /**
18887
- * @example {
18888
- * "error": "User not found",
18889
- * "code": "user_not_found"
18890
- * }
18891
- */
18892
- "application/json": components["schemas"]["ErrorMessageDto"];
18893
- };
18894
- };
18895
- /** @description Design adoption store is unavailable. */
18896
- 503: {
18897
- headers: {
18898
- [name: string]: unknown;
18899
- };
18900
- content: {
18901
- "application/json": components["schemas"]["ErrorMessageDto"];
18902
- };
18903
- };
18904
- };
18905
- };
18906
18554
  adminCreateJobsSession: {
18907
18555
  parameters: {
18908
18556
  query?: never;