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