@thinkai/tai-api-contract 2.166.0 → 2.167.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 +111 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +89 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +111 -1
|
@@ -24,6 +24,27 @@ export interface paths {
|
|
|
24
24
|
patch?: never;
|
|
25
25
|
trace?: never;
|
|
26
26
|
};
|
|
27
|
+
"/admin/users/{userId}/assessment-order": {
|
|
28
|
+
parameters: {
|
|
29
|
+
query?: never;
|
|
30
|
+
header?: never;
|
|
31
|
+
path?: never;
|
|
32
|
+
cookie?: never;
|
|
33
|
+
};
|
|
34
|
+
get?: never;
|
|
35
|
+
/**
|
|
36
|
+
* Authorize one extra assessment workspace
|
|
37
|
+
* @description Sets `tai_users.assessment_order_authorized`. When true, that account may create one workspace beyond the default single-workspace limit. The flag stays set until an operator clears it. Buyers cannot set it on `POST /workspaces`.
|
|
38
|
+
* **Authorization:** Bearer JWT required. Caller email must appear in `PLATFORM_ADMIN_EMAILS`. All other callers receive `403 Forbidden`.
|
|
39
|
+
*/
|
|
40
|
+
put: operations["adminSetAssessmentOrder"];
|
|
41
|
+
post?: never;
|
|
42
|
+
delete?: never;
|
|
43
|
+
options?: never;
|
|
44
|
+
head?: never;
|
|
45
|
+
patch?: never;
|
|
46
|
+
trace?: never;
|
|
47
|
+
};
|
|
27
48
|
"/admin/readiness/token-usage": {
|
|
28
49
|
parameters: {
|
|
29
50
|
query?: never;
|
|
@@ -11722,6 +11743,95 @@ export interface operations {
|
|
|
11722
11743
|
};
|
|
11723
11744
|
};
|
|
11724
11745
|
};
|
|
11746
|
+
adminSetAssessmentOrder: {
|
|
11747
|
+
parameters: {
|
|
11748
|
+
query?: never;
|
|
11749
|
+
header?: never;
|
|
11750
|
+
path: {
|
|
11751
|
+
/** @description `tai_users.id` of the account to authorize. */
|
|
11752
|
+
userId: string;
|
|
11753
|
+
};
|
|
11754
|
+
cookie?: never;
|
|
11755
|
+
};
|
|
11756
|
+
requestBody: {
|
|
11757
|
+
content: {
|
|
11758
|
+
"application/json": {
|
|
11759
|
+
authorized: boolean;
|
|
11760
|
+
};
|
|
11761
|
+
};
|
|
11762
|
+
};
|
|
11763
|
+
responses: {
|
|
11764
|
+
/** @description Authorization flag stored. */
|
|
11765
|
+
204: {
|
|
11766
|
+
headers: {
|
|
11767
|
+
[name: string]: unknown;
|
|
11768
|
+
};
|
|
11769
|
+
content?: never;
|
|
11770
|
+
};
|
|
11771
|
+
/** @description Invalid UUID or `authorized` is not a boolean. */
|
|
11772
|
+
400: {
|
|
11773
|
+
headers: {
|
|
11774
|
+
[name: string]: unknown;
|
|
11775
|
+
};
|
|
11776
|
+
content: {
|
|
11777
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11778
|
+
};
|
|
11779
|
+
};
|
|
11780
|
+
/** @description Missing or invalid JWT. */
|
|
11781
|
+
401: {
|
|
11782
|
+
headers: {
|
|
11783
|
+
[name: string]: unknown;
|
|
11784
|
+
};
|
|
11785
|
+
content: {
|
|
11786
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11787
|
+
};
|
|
11788
|
+
};
|
|
11789
|
+
/** @description Caller is not a platform admin. */
|
|
11790
|
+
403: {
|
|
11791
|
+
headers: {
|
|
11792
|
+
[name: string]: unknown;
|
|
11793
|
+
};
|
|
11794
|
+
content: {
|
|
11795
|
+
/**
|
|
11796
|
+
* @example {
|
|
11797
|
+
* "error": "Forbidden",
|
|
11798
|
+
* "code": "forbidden"
|
|
11799
|
+
* }
|
|
11800
|
+
*/
|
|
11801
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11802
|
+
};
|
|
11803
|
+
};
|
|
11804
|
+
/** @description User not found. */
|
|
11805
|
+
404: {
|
|
11806
|
+
headers: {
|
|
11807
|
+
[name: string]: unknown;
|
|
11808
|
+
};
|
|
11809
|
+
content: {
|
|
11810
|
+
/**
|
|
11811
|
+
* @example {
|
|
11812
|
+
* "error": "User not found",
|
|
11813
|
+
* "code": "user_not_found"
|
|
11814
|
+
* }
|
|
11815
|
+
*/
|
|
11816
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11817
|
+
};
|
|
11818
|
+
};
|
|
11819
|
+
/** @description Workspace store cannot persist the flag. */
|
|
11820
|
+
503: {
|
|
11821
|
+
headers: {
|
|
11822
|
+
[name: string]: unknown;
|
|
11823
|
+
};
|
|
11824
|
+
content: {
|
|
11825
|
+
/**
|
|
11826
|
+
* @example {
|
|
11827
|
+
* "error": "Service unavailable"
|
|
11828
|
+
* }
|
|
11829
|
+
*/
|
|
11830
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11831
|
+
};
|
|
11832
|
+
};
|
|
11833
|
+
};
|
|
11834
|
+
};
|
|
11725
11835
|
adminListReadinessTokenUsage: {
|
|
11726
11836
|
parameters: {
|
|
11727
11837
|
query?: {
|
|
@@ -12586,7 +12696,7 @@ export interface operations {
|
|
|
12586
12696
|
};
|
|
12587
12697
|
};
|
|
12588
12698
|
401: components["responses"]["Unauthorized"];
|
|
12589
|
-
/** @description Conflict creating workspace
|
|
12699
|
+
/** @description Conflict creating workspace. Stable cases: verified-email identity conflict, duplicate workspace name/slug, or `workspace_limit_reached` when the caller already has a workspace. An operator-authorized account (`PUT /admin/users/{userId}/assessment-order`) may create exactly one extra workspace; a third workspace still returns `workspace_limit_reached`. A buyer body field cannot grant that exception. */
|
|
12590
12700
|
409: {
|
|
12591
12701
|
headers: {
|
|
12592
12702
|
[name: string]: unknown;
|