@thinkai/tai-api-contract 2.242.0 → 2.243.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 +352 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +391 -1
- package/openapi/x-test-status-map.json +15 -0
- package/package.json +1 -1
- package/src/generated/openapi.ts +352 -0
|
@@ -485,6 +485,66 @@ 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
|
+
};
|
|
488
548
|
"/admin/jobs-session": {
|
|
489
549
|
parameters: {
|
|
490
550
|
query?: never;
|
|
@@ -11758,6 +11818,76 @@ export interface components {
|
|
|
11758
11818
|
/** @description App path the person was on. Query strings are not stored. */
|
|
11759
11819
|
route?: string;
|
|
11760
11820
|
};
|
|
11821
|
+
/** @description People counts partition active accounts: `onNew + backOnClassic + neverChose + choseClassic = totalPeople`. Workspace counts ignore the people-list filters. */
|
|
11822
|
+
DesignAdoptionTotalsDto: {
|
|
11823
|
+
/** @description Saved design is the new design (`v2`). */
|
|
11824
|
+
onNew: number;
|
|
11825
|
+
/** @description Tried the new design and the saved design is now classic (`v1`). */
|
|
11826
|
+
backOnClassic: number;
|
|
11827
|
+
/** @description No saved design choice. */
|
|
11828
|
+
neverChose: number;
|
|
11829
|
+
/** @description Saved classic (`v1`) without ever switching to the new design. */
|
|
11830
|
+
choseClassic: number;
|
|
11831
|
+
/** @description Active accounts. */
|
|
11832
|
+
totalPeople: number;
|
|
11833
|
+
/** @description Active workspaces with at least one active member, where every active member is on the new design. */
|
|
11834
|
+
workspacesFullyOnNew: number;
|
|
11835
|
+
/** @description Active workspaces, including those with no members. */
|
|
11836
|
+
totalWorkspaces: number;
|
|
11837
|
+
};
|
|
11838
|
+
DesignAdoptionReasonCountDto: {
|
|
11839
|
+
/** @description `null` means no reason was given on the latest switch back to classic. */
|
|
11840
|
+
reason: components["schemas"]["DesignSwitchReason"] | null;
|
|
11841
|
+
count: number;
|
|
11842
|
+
};
|
|
11843
|
+
/** @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. */
|
|
11844
|
+
DesignAdoptionPersonDto: {
|
|
11845
|
+
/** Format: uuid */
|
|
11846
|
+
userId: string;
|
|
11847
|
+
email: string;
|
|
11848
|
+
/** Format: uuid */
|
|
11849
|
+
workspaceId: string | null;
|
|
11850
|
+
workspaceName: string | null;
|
|
11851
|
+
/** @description `null` means the person has not chosen a design. */
|
|
11852
|
+
design: components["schemas"]["DesignVersion"] | null;
|
|
11853
|
+
/**
|
|
11854
|
+
* Format: date-time
|
|
11855
|
+
* @description When the saved design last changed. `null` when none is saved.
|
|
11856
|
+
*/
|
|
11857
|
+
since: string | null;
|
|
11858
|
+
switchCount: number;
|
|
11859
|
+
/** @description Reason on the latest switch event. `null` when there is none. */
|
|
11860
|
+
lastReason: components["schemas"]["DesignSwitchReason"] | null;
|
|
11861
|
+
};
|
|
11862
|
+
DesignAdoptionPeoplePageDto: {
|
|
11863
|
+
items: components["schemas"]["DesignAdoptionPersonDto"][];
|
|
11864
|
+
/** @description Matching people before paging. */
|
|
11865
|
+
total: number;
|
|
11866
|
+
limit: number;
|
|
11867
|
+
offset: number;
|
|
11868
|
+
};
|
|
11869
|
+
DesignAdoptionDto: {
|
|
11870
|
+
totals: components["schemas"]["DesignAdoptionTotalsDto"];
|
|
11871
|
+
/** @description One row per switch reason, in a stable order, then `reason: null` for no reason given. Counts sum to `totals.backOnClassic`. */
|
|
11872
|
+
reasons: components["schemas"]["DesignAdoptionReasonCountDto"][];
|
|
11873
|
+
people: components["schemas"]["DesignAdoptionPeoplePageDto"];
|
|
11874
|
+
};
|
|
11875
|
+
DesignAdoptionSwitchEventDto: {
|
|
11876
|
+
/** Format: uuid */
|
|
11877
|
+
id: string;
|
|
11878
|
+
/** Format: date-time */
|
|
11879
|
+
createdAt: string;
|
|
11880
|
+
fromVersion: components["schemas"]["DesignVersion"] | null;
|
|
11881
|
+
toVersion: components["schemas"]["DesignVersion"];
|
|
11882
|
+
reason: components["schemas"]["DesignSwitchReason"] | null;
|
|
11883
|
+
/** @description Optional note. Present only on this per-person read. */
|
|
11884
|
+
note: string | null;
|
|
11885
|
+
route: string | null;
|
|
11886
|
+
};
|
|
11887
|
+
DesignAdoptionPersonDetailDto: components["schemas"]["DesignAdoptionPersonDto"] & {
|
|
11888
|
+
/** @description Newest switch first. Includes notes. */
|
|
11889
|
+
events: components["schemas"]["DesignAdoptionSwitchEventDto"][];
|
|
11890
|
+
};
|
|
11761
11891
|
/** @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. */
|
|
11762
11892
|
PutPreferencesBodyDto: {
|
|
11763
11893
|
theme: components["schemas"]["ThemePreference"];
|
|
@@ -16204,6 +16334,13 @@ export type PreferencesDto = components['schemas']['PreferencesDto'];
|
|
|
16204
16334
|
export type DesignVersion = components['schemas']['DesignVersion'];
|
|
16205
16335
|
export type DesignSwitchReason = components['schemas']['DesignSwitchReason'];
|
|
16206
16336
|
export type PutDesignVersionBodyDto = components['schemas']['PutDesignVersionBodyDto'];
|
|
16337
|
+
export type DesignAdoptionTotalsDto = components['schemas']['DesignAdoptionTotalsDto'];
|
|
16338
|
+
export type DesignAdoptionReasonCountDto = components['schemas']['DesignAdoptionReasonCountDto'];
|
|
16339
|
+
export type DesignAdoptionPersonDto = components['schemas']['DesignAdoptionPersonDto'];
|
|
16340
|
+
export type DesignAdoptionPeoplePageDto = components['schemas']['DesignAdoptionPeoplePageDto'];
|
|
16341
|
+
export type DesignAdoptionDto = components['schemas']['DesignAdoptionDto'];
|
|
16342
|
+
export type DesignAdoptionSwitchEventDto = components['schemas']['DesignAdoptionSwitchEventDto'];
|
|
16343
|
+
export type DesignAdoptionPersonDetailDto = components['schemas']['DesignAdoptionPersonDetailDto'];
|
|
16207
16344
|
export type PutPreferencesBodyDto = components['schemas']['PutPreferencesBodyDto'];
|
|
16208
16345
|
export type NotificationChannelRequiredErrorDto = components['schemas']['NotificationChannelRequiredErrorDto'];
|
|
16209
16346
|
export type ValidationIssueDto = components['schemas']['ValidationIssueDto'];
|
|
@@ -18291,6 +18428,221 @@ export interface operations {
|
|
|
18291
18428
|
};
|
|
18292
18429
|
};
|
|
18293
18430
|
};
|
|
18431
|
+
adminGetDesignAdoption: {
|
|
18432
|
+
parameters: {
|
|
18433
|
+
query?: {
|
|
18434
|
+
/** @description Keep people who are active members of this workspace. */
|
|
18435
|
+
workspaceId?: string;
|
|
18436
|
+
/** @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. */
|
|
18437
|
+
design?: "v1" | "v2" | "none";
|
|
18438
|
+
/** @description Page size (default 50, max 200). */
|
|
18439
|
+
limit?: number;
|
|
18440
|
+
/** @description Number of matching people to skip. */
|
|
18441
|
+
offset?: number;
|
|
18442
|
+
};
|
|
18443
|
+
header?: never;
|
|
18444
|
+
path?: never;
|
|
18445
|
+
cookie?: never;
|
|
18446
|
+
};
|
|
18447
|
+
requestBody?: never;
|
|
18448
|
+
responses: {
|
|
18449
|
+
/** @description Adoption totals, switch-back reasons, and one page of people. */
|
|
18450
|
+
200: {
|
|
18451
|
+
headers: {
|
|
18452
|
+
[name: string]: unknown;
|
|
18453
|
+
};
|
|
18454
|
+
content: {
|
|
18455
|
+
"application/json": components["schemas"]["DesignAdoptionDto"];
|
|
18456
|
+
};
|
|
18457
|
+
};
|
|
18458
|
+
/** @description Invalid workspaceId, design, limit, or offset. */
|
|
18459
|
+
400: {
|
|
18460
|
+
headers: {
|
|
18461
|
+
[name: string]: unknown;
|
|
18462
|
+
};
|
|
18463
|
+
content: {
|
|
18464
|
+
/**
|
|
18465
|
+
* @example {
|
|
18466
|
+
* "error": "design must be v1, v2, or none",
|
|
18467
|
+
* "code": "invalid_query"
|
|
18468
|
+
* }
|
|
18469
|
+
*/
|
|
18470
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18471
|
+
};
|
|
18472
|
+
};
|
|
18473
|
+
401: components["responses"]["Unauthorized"];
|
|
18474
|
+
/** @description Caller is not a platform admin. */
|
|
18475
|
+
403: {
|
|
18476
|
+
headers: {
|
|
18477
|
+
[name: string]: unknown;
|
|
18478
|
+
};
|
|
18479
|
+
content: {
|
|
18480
|
+
/**
|
|
18481
|
+
* @example {
|
|
18482
|
+
* "error": "Forbidden",
|
|
18483
|
+
* "code": "forbidden"
|
|
18484
|
+
* }
|
|
18485
|
+
*/
|
|
18486
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18487
|
+
};
|
|
18488
|
+
};
|
|
18489
|
+
/** @description Design adoption store is unavailable. */
|
|
18490
|
+
503: {
|
|
18491
|
+
headers: {
|
|
18492
|
+
[name: string]: unknown;
|
|
18493
|
+
};
|
|
18494
|
+
content: {
|
|
18495
|
+
/**
|
|
18496
|
+
* @example {
|
|
18497
|
+
* "error": "Design adoption is unavailable",
|
|
18498
|
+
* "code": "design_adoption_unavailable"
|
|
18499
|
+
* }
|
|
18500
|
+
*/
|
|
18501
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18502
|
+
};
|
|
18503
|
+
};
|
|
18504
|
+
};
|
|
18505
|
+
};
|
|
18506
|
+
adminExportDesignAdoptionCsv: {
|
|
18507
|
+
parameters: {
|
|
18508
|
+
query?: {
|
|
18509
|
+
workspaceId?: string;
|
|
18510
|
+
design?: "v1" | "v2" | "none";
|
|
18511
|
+
};
|
|
18512
|
+
header?: never;
|
|
18513
|
+
path?: never;
|
|
18514
|
+
cookie?: never;
|
|
18515
|
+
};
|
|
18516
|
+
requestBody?: never;
|
|
18517
|
+
responses: {
|
|
18518
|
+
/** @description CSV file of matching people. */
|
|
18519
|
+
200: {
|
|
18520
|
+
headers: {
|
|
18521
|
+
[name: string]: unknown;
|
|
18522
|
+
};
|
|
18523
|
+
content: {
|
|
18524
|
+
"text/csv": string;
|
|
18525
|
+
};
|
|
18526
|
+
};
|
|
18527
|
+
/** @description Invalid workspaceId or design. */
|
|
18528
|
+
400: {
|
|
18529
|
+
headers: {
|
|
18530
|
+
[name: string]: unknown;
|
|
18531
|
+
};
|
|
18532
|
+
content: {
|
|
18533
|
+
/**
|
|
18534
|
+
* @example {
|
|
18535
|
+
* "error": "workspaceId must be a uuid",
|
|
18536
|
+
* "code": "invalid_query"
|
|
18537
|
+
* }
|
|
18538
|
+
*/
|
|
18539
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18540
|
+
};
|
|
18541
|
+
};
|
|
18542
|
+
401: components["responses"]["Unauthorized"];
|
|
18543
|
+
/** @description Caller is not a platform admin. */
|
|
18544
|
+
403: {
|
|
18545
|
+
headers: {
|
|
18546
|
+
[name: string]: unknown;
|
|
18547
|
+
};
|
|
18548
|
+
content: {
|
|
18549
|
+
/**
|
|
18550
|
+
* @example {
|
|
18551
|
+
* "error": "Forbidden",
|
|
18552
|
+
* "code": "forbidden"
|
|
18553
|
+
* }
|
|
18554
|
+
*/
|
|
18555
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18556
|
+
};
|
|
18557
|
+
};
|
|
18558
|
+
/** @description Design adoption store is unavailable. */
|
|
18559
|
+
503: {
|
|
18560
|
+
headers: {
|
|
18561
|
+
[name: string]: unknown;
|
|
18562
|
+
};
|
|
18563
|
+
content: {
|
|
18564
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18565
|
+
};
|
|
18566
|
+
};
|
|
18567
|
+
};
|
|
18568
|
+
};
|
|
18569
|
+
adminGetDesignAdoptionPerson: {
|
|
18570
|
+
parameters: {
|
|
18571
|
+
query?: never;
|
|
18572
|
+
header?: never;
|
|
18573
|
+
path: {
|
|
18574
|
+
userId: string;
|
|
18575
|
+
};
|
|
18576
|
+
cookie?: never;
|
|
18577
|
+
};
|
|
18578
|
+
requestBody?: never;
|
|
18579
|
+
responses: {
|
|
18580
|
+
/** @description One person and their switch events. */
|
|
18581
|
+
200: {
|
|
18582
|
+
headers: {
|
|
18583
|
+
[name: string]: unknown;
|
|
18584
|
+
};
|
|
18585
|
+
content: {
|
|
18586
|
+
"application/json": components["schemas"]["DesignAdoptionPersonDetailDto"];
|
|
18587
|
+
};
|
|
18588
|
+
};
|
|
18589
|
+
/** @description userId is not a uuid. */
|
|
18590
|
+
400: {
|
|
18591
|
+
headers: {
|
|
18592
|
+
[name: string]: unknown;
|
|
18593
|
+
};
|
|
18594
|
+
content: {
|
|
18595
|
+
/**
|
|
18596
|
+
* @example {
|
|
18597
|
+
* "error": "Invalid user ID format",
|
|
18598
|
+
* "code": "invalid_user_id"
|
|
18599
|
+
* }
|
|
18600
|
+
*/
|
|
18601
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18602
|
+
};
|
|
18603
|
+
};
|
|
18604
|
+
401: components["responses"]["Unauthorized"];
|
|
18605
|
+
/** @description Caller is not a platform admin. */
|
|
18606
|
+
403: {
|
|
18607
|
+
headers: {
|
|
18608
|
+
[name: string]: unknown;
|
|
18609
|
+
};
|
|
18610
|
+
content: {
|
|
18611
|
+
/**
|
|
18612
|
+
* @example {
|
|
18613
|
+
* "error": "Forbidden",
|
|
18614
|
+
* "code": "forbidden"
|
|
18615
|
+
* }
|
|
18616
|
+
*/
|
|
18617
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18618
|
+
};
|
|
18619
|
+
};
|
|
18620
|
+
/** @description No active user with that id. */
|
|
18621
|
+
404: {
|
|
18622
|
+
headers: {
|
|
18623
|
+
[name: string]: unknown;
|
|
18624
|
+
};
|
|
18625
|
+
content: {
|
|
18626
|
+
/**
|
|
18627
|
+
* @example {
|
|
18628
|
+
* "error": "User not found",
|
|
18629
|
+
* "code": "user_not_found"
|
|
18630
|
+
* }
|
|
18631
|
+
*/
|
|
18632
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18633
|
+
};
|
|
18634
|
+
};
|
|
18635
|
+
/** @description Design adoption store is unavailable. */
|
|
18636
|
+
503: {
|
|
18637
|
+
headers: {
|
|
18638
|
+
[name: string]: unknown;
|
|
18639
|
+
};
|
|
18640
|
+
content: {
|
|
18641
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18642
|
+
};
|
|
18643
|
+
};
|
|
18644
|
+
};
|
|
18645
|
+
};
|
|
18294
18646
|
adminCreateJobsSession: {
|
|
18295
18647
|
parameters: {
|
|
18296
18648
|
query?: never;
|