@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
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.259.0
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -1847,213 +1847,6 @@ paths:
|
|
|
1847
1847
|
schema:
|
|
1848
1848
|
$ref: "#/components/schemas/PlatformBannerViewDto"
|
|
1849
1849
|
|
|
1850
|
-
/admin/design-adoption:
|
|
1851
|
-
get:
|
|
1852
|
-
tags: [PlatformAdmin]
|
|
1853
|
-
summary: Design adoption totals, reasons, and people
|
|
1854
|
-
operationId: adminGetDesignAdoption
|
|
1855
|
-
description: >
|
|
1856
|
-
Platform admins only. Who is on the new design, who went back to classic, and who
|
|
1857
|
-
never chose. `totals.onNew`, `totals.backOnClassic`, `totals.neverChose`, and
|
|
1858
|
-
`totals.choseClassic` sum to `totals.totalPeople`. `reasons` counts one reason per
|
|
1859
|
-
person currently back on classic (tried the new design, saved choice is now `v1`),
|
|
1860
|
-
using the latest switch to classic. `reason: null` is no reason given.
|
|
1861
|
-
`people` is one row per active account (email, workspace, current design, since,
|
|
1862
|
-
switch count, last reason). Notes are not included. `workspaceId` and `design`
|
|
1863
|
-
filter the people list only; totals and reasons stay global.
|
|
1864
|
-
Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
|
|
1865
|
-
parameters:
|
|
1866
|
-
- name: workspaceId
|
|
1867
|
-
in: query
|
|
1868
|
-
required: false
|
|
1869
|
-
schema:
|
|
1870
|
-
type: string
|
|
1871
|
-
format: uuid
|
|
1872
|
-
description: Keep people who are active members of this workspace.
|
|
1873
|
-
- name: design
|
|
1874
|
-
in: query
|
|
1875
|
-
required: false
|
|
1876
|
-
schema:
|
|
1877
|
-
type: string
|
|
1878
|
-
enum: [v1, v2, none]
|
|
1879
|
-
description: >
|
|
1880
|
-
Current saved design. `v2` is the new design, `v1` is classic (including
|
|
1881
|
-
people who never tried the new design), `none` is no saved choice.
|
|
1882
|
-
- name: limit
|
|
1883
|
-
in: query
|
|
1884
|
-
required: false
|
|
1885
|
-
schema:
|
|
1886
|
-
type: integer
|
|
1887
|
-
minimum: 1
|
|
1888
|
-
maximum: 200
|
|
1889
|
-
default: 50
|
|
1890
|
-
description: Page size (default 50, max 200).
|
|
1891
|
-
- name: offset
|
|
1892
|
-
in: query
|
|
1893
|
-
required: false
|
|
1894
|
-
schema:
|
|
1895
|
-
type: integer
|
|
1896
|
-
minimum: 0
|
|
1897
|
-
default: 0
|
|
1898
|
-
description: Number of matching people to skip.
|
|
1899
|
-
responses:
|
|
1900
|
-
"200":
|
|
1901
|
-
description: Adoption totals, switch-back reasons, and one page of people.
|
|
1902
|
-
content:
|
|
1903
|
-
application/json:
|
|
1904
|
-
schema:
|
|
1905
|
-
$ref: "#/components/schemas/DesignAdoptionDto"
|
|
1906
|
-
"400":
|
|
1907
|
-
description: Invalid workspaceId, design, limit, or offset.
|
|
1908
|
-
content:
|
|
1909
|
-
application/json:
|
|
1910
|
-
schema:
|
|
1911
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1912
|
-
example:
|
|
1913
|
-
error: design must be v1, v2, or none
|
|
1914
|
-
code: invalid_query
|
|
1915
|
-
"401":
|
|
1916
|
-
$ref: "#/components/responses/Unauthorized"
|
|
1917
|
-
"403":
|
|
1918
|
-
description: Caller is not a platform admin.
|
|
1919
|
-
content:
|
|
1920
|
-
application/json:
|
|
1921
|
-
schema:
|
|
1922
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1923
|
-
example:
|
|
1924
|
-
error: Forbidden
|
|
1925
|
-
code: forbidden
|
|
1926
|
-
"503":
|
|
1927
|
-
description: Design adoption store is unavailable.
|
|
1928
|
-
content:
|
|
1929
|
-
application/json:
|
|
1930
|
-
schema:
|
|
1931
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1932
|
-
example:
|
|
1933
|
-
error: Design adoption is unavailable
|
|
1934
|
-
code: design_adoption_unavailable
|
|
1935
|
-
|
|
1936
|
-
/admin/design-adoption.csv:
|
|
1937
|
-
get:
|
|
1938
|
-
tags: [PlatformAdmin]
|
|
1939
|
-
summary: Design adoption people list as CSV
|
|
1940
|
-
operationId: adminExportDesignAdoptionCsv
|
|
1941
|
-
description: >
|
|
1942
|
-
Platform admins only. The people list from `GET /admin/design-adoption` as an
|
|
1943
|
-
RFC 4180 CSV file. Accepts the same `workspaceId` and `design` filters.
|
|
1944
|
-
`limit` and `offset` are ignored. Columns are
|
|
1945
|
-
`email,workspace,design,since,switches,lastReason`. Notes are not included.
|
|
1946
|
-
At most 50000 matching rows. `Content-Disposition` is `attachment`.
|
|
1947
|
-
Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
|
|
1948
|
-
parameters:
|
|
1949
|
-
- name: workspaceId
|
|
1950
|
-
in: query
|
|
1951
|
-
required: false
|
|
1952
|
-
schema:
|
|
1953
|
-
type: string
|
|
1954
|
-
format: uuid
|
|
1955
|
-
- name: design
|
|
1956
|
-
in: query
|
|
1957
|
-
required: false
|
|
1958
|
-
schema:
|
|
1959
|
-
type: string
|
|
1960
|
-
enum: [v1, v2, none]
|
|
1961
|
-
responses:
|
|
1962
|
-
"200":
|
|
1963
|
-
description: CSV file of matching people.
|
|
1964
|
-
content:
|
|
1965
|
-
text/csv:
|
|
1966
|
-
schema:
|
|
1967
|
-
type: string
|
|
1968
|
-
example: |
|
|
1969
|
-
email,workspace,design,since,switches,lastReason
|
|
1970
|
-
ada@example.com,All New,v2,2026-11-03T00:00:00.000Z,1,
|
|
1971
|
-
"400":
|
|
1972
|
-
description: Invalid workspaceId or design.
|
|
1973
|
-
content:
|
|
1974
|
-
application/json:
|
|
1975
|
-
schema:
|
|
1976
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1977
|
-
example:
|
|
1978
|
-
error: workspaceId must be a uuid
|
|
1979
|
-
code: invalid_query
|
|
1980
|
-
"401":
|
|
1981
|
-
$ref: "#/components/responses/Unauthorized"
|
|
1982
|
-
"403":
|
|
1983
|
-
description: Caller is not a platform admin.
|
|
1984
|
-
content:
|
|
1985
|
-
application/json:
|
|
1986
|
-
schema:
|
|
1987
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1988
|
-
example:
|
|
1989
|
-
error: Forbidden
|
|
1990
|
-
code: forbidden
|
|
1991
|
-
"503":
|
|
1992
|
-
description: Design adoption store is unavailable.
|
|
1993
|
-
content:
|
|
1994
|
-
application/json:
|
|
1995
|
-
schema:
|
|
1996
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
1997
|
-
|
|
1998
|
-
/admin/design-adoption/people/{userId}:
|
|
1999
|
-
get:
|
|
2000
|
-
tags: [PlatformAdmin]
|
|
2001
|
-
summary: One person's design switches, including notes
|
|
2002
|
-
operationId: adminGetDesignAdoptionPerson
|
|
2003
|
-
description: >
|
|
2004
|
-
Platform admins only. The same summary fields as a people-list row, plus that
|
|
2005
|
-
person's switch events. `note` is present only here (optional, at most 500
|
|
2006
|
-
characters). Requires a Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
|
|
2007
|
-
parameters:
|
|
2008
|
-
- name: userId
|
|
2009
|
-
in: path
|
|
2010
|
-
required: true
|
|
2011
|
-
schema:
|
|
2012
|
-
type: string
|
|
2013
|
-
format: uuid
|
|
2014
|
-
responses:
|
|
2015
|
-
"200":
|
|
2016
|
-
description: One person and their switch events.
|
|
2017
|
-
content:
|
|
2018
|
-
application/json:
|
|
2019
|
-
schema:
|
|
2020
|
-
$ref: "#/components/schemas/DesignAdoptionPersonDetailDto"
|
|
2021
|
-
"400":
|
|
2022
|
-
description: userId is not a uuid.
|
|
2023
|
-
content:
|
|
2024
|
-
application/json:
|
|
2025
|
-
schema:
|
|
2026
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
2027
|
-
example:
|
|
2028
|
-
error: Invalid user ID format
|
|
2029
|
-
code: invalid_user_id
|
|
2030
|
-
"401":
|
|
2031
|
-
$ref: "#/components/responses/Unauthorized"
|
|
2032
|
-
"403":
|
|
2033
|
-
description: Caller is not a platform admin.
|
|
2034
|
-
content:
|
|
2035
|
-
application/json:
|
|
2036
|
-
schema:
|
|
2037
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
2038
|
-
example:
|
|
2039
|
-
error: Forbidden
|
|
2040
|
-
code: forbidden
|
|
2041
|
-
"404":
|
|
2042
|
-
description: No active user with that id.
|
|
2043
|
-
content:
|
|
2044
|
-
application/json:
|
|
2045
|
-
schema:
|
|
2046
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
2047
|
-
example:
|
|
2048
|
-
error: User not found
|
|
2049
|
-
code: user_not_found
|
|
2050
|
-
"503":
|
|
2051
|
-
description: Design adoption store is unavailable.
|
|
2052
|
-
content:
|
|
2053
|
-
application/json:
|
|
2054
|
-
schema:
|
|
2055
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
2056
|
-
|
|
2057
1850
|
/admin/jobs-session:
|
|
2058
1851
|
post:
|
|
2059
1852
|
tags: [PlatformAdmin]
|
|
@@ -29155,189 +28948,6 @@ components:
|
|
|
29155
28948
|
maxLength: 200
|
|
29156
28949
|
description: App path the person was on. Query strings are not stored.
|
|
29157
28950
|
|
|
29158
|
-
DesignAdoptionTotalsDto:
|
|
29159
|
-
type: object
|
|
29160
|
-
additionalProperties: false
|
|
29161
|
-
required:
|
|
29162
|
-
[
|
|
29163
|
-
onNew,
|
|
29164
|
-
backOnClassic,
|
|
29165
|
-
neverChose,
|
|
29166
|
-
choseClassic,
|
|
29167
|
-
totalPeople,
|
|
29168
|
-
workspacesFullyOnNew,
|
|
29169
|
-
totalWorkspaces,
|
|
29170
|
-
]
|
|
29171
|
-
description: >
|
|
29172
|
-
People counts partition active accounts:
|
|
29173
|
-
`onNew + backOnClassic + neverChose + choseClassic = totalPeople`.
|
|
29174
|
-
Workspace counts ignore the people-list filters.
|
|
29175
|
-
properties:
|
|
29176
|
-
onNew:
|
|
29177
|
-
type: integer
|
|
29178
|
-
minimum: 0
|
|
29179
|
-
description: Saved design is the new design (`v2`).
|
|
29180
|
-
backOnClassic:
|
|
29181
|
-
type: integer
|
|
29182
|
-
minimum: 0
|
|
29183
|
-
description: Tried the new design and the saved design is now classic (`v1`).
|
|
29184
|
-
neverChose:
|
|
29185
|
-
type: integer
|
|
29186
|
-
minimum: 0
|
|
29187
|
-
description: No saved design choice.
|
|
29188
|
-
choseClassic:
|
|
29189
|
-
type: integer
|
|
29190
|
-
minimum: 0
|
|
29191
|
-
description: Saved classic (`v1`) without ever switching to the new design.
|
|
29192
|
-
totalPeople:
|
|
29193
|
-
type: integer
|
|
29194
|
-
minimum: 0
|
|
29195
|
-
description: Active accounts.
|
|
29196
|
-
workspacesFullyOnNew:
|
|
29197
|
-
type: integer
|
|
29198
|
-
minimum: 0
|
|
29199
|
-
description: >
|
|
29200
|
-
Active workspaces with at least one active member, where every active member
|
|
29201
|
-
is on the new design.
|
|
29202
|
-
totalWorkspaces:
|
|
29203
|
-
type: integer
|
|
29204
|
-
minimum: 0
|
|
29205
|
-
description: Active workspaces, including those with no members.
|
|
29206
|
-
|
|
29207
|
-
DesignAdoptionReasonCountDto:
|
|
29208
|
-
type: object
|
|
29209
|
-
additionalProperties: false
|
|
29210
|
-
required: [reason, count]
|
|
29211
|
-
properties:
|
|
29212
|
-
reason:
|
|
29213
|
-
allOf:
|
|
29214
|
-
- $ref: "#/components/schemas/DesignSwitchReason"
|
|
29215
|
-
nullable: true
|
|
29216
|
-
description: "`null` means no reason was given on the latest switch back to classic."
|
|
29217
|
-
count:
|
|
29218
|
-
type: integer
|
|
29219
|
-
minimum: 0
|
|
29220
|
-
|
|
29221
|
-
DesignAdoptionPersonDto:
|
|
29222
|
-
type: object
|
|
29223
|
-
additionalProperties: false
|
|
29224
|
-
required: [userId, email, workspaceId, workspaceName, design, since, switchCount, lastReason]
|
|
29225
|
-
description: >
|
|
29226
|
-
One active account. Notes are not included. `workspaceId` is the earliest active
|
|
29227
|
-
membership, or the filtered workspace when `workspaceId` is set on the query.
|
|
29228
|
-
properties:
|
|
29229
|
-
userId:
|
|
29230
|
-
type: string
|
|
29231
|
-
format: uuid
|
|
29232
|
-
email:
|
|
29233
|
-
type: string
|
|
29234
|
-
workspaceId:
|
|
29235
|
-
type: string
|
|
29236
|
-
format: uuid
|
|
29237
|
-
nullable: true
|
|
29238
|
-
workspaceName:
|
|
29239
|
-
type: string
|
|
29240
|
-
nullable: true
|
|
29241
|
-
design:
|
|
29242
|
-
allOf:
|
|
29243
|
-
- $ref: "#/components/schemas/DesignVersion"
|
|
29244
|
-
nullable: true
|
|
29245
|
-
description: "`null` means the person has not chosen a design."
|
|
29246
|
-
since:
|
|
29247
|
-
type: string
|
|
29248
|
-
format: date-time
|
|
29249
|
-
nullable: true
|
|
29250
|
-
description: When the saved design last changed. `null` when none is saved.
|
|
29251
|
-
switchCount:
|
|
29252
|
-
type: integer
|
|
29253
|
-
minimum: 0
|
|
29254
|
-
lastReason:
|
|
29255
|
-
allOf:
|
|
29256
|
-
- $ref: "#/components/schemas/DesignSwitchReason"
|
|
29257
|
-
nullable: true
|
|
29258
|
-
description: Reason on the latest switch event. `null` when there is none.
|
|
29259
|
-
|
|
29260
|
-
DesignAdoptionPeoplePageDto:
|
|
29261
|
-
type: object
|
|
29262
|
-
additionalProperties: false
|
|
29263
|
-
required: [items, total, limit, offset]
|
|
29264
|
-
properties:
|
|
29265
|
-
items:
|
|
29266
|
-
type: array
|
|
29267
|
-
items:
|
|
29268
|
-
$ref: "#/components/schemas/DesignAdoptionPersonDto"
|
|
29269
|
-
total:
|
|
29270
|
-
type: integer
|
|
29271
|
-
minimum: 0
|
|
29272
|
-
description: Matching people before paging.
|
|
29273
|
-
limit:
|
|
29274
|
-
type: integer
|
|
29275
|
-
minimum: 1
|
|
29276
|
-
offset:
|
|
29277
|
-
type: integer
|
|
29278
|
-
minimum: 0
|
|
29279
|
-
|
|
29280
|
-
DesignAdoptionDto:
|
|
29281
|
-
type: object
|
|
29282
|
-
additionalProperties: false
|
|
29283
|
-
required: [totals, reasons, people]
|
|
29284
|
-
properties:
|
|
29285
|
-
totals:
|
|
29286
|
-
$ref: "#/components/schemas/DesignAdoptionTotalsDto"
|
|
29287
|
-
reasons:
|
|
29288
|
-
type: array
|
|
29289
|
-
description: >
|
|
29290
|
-
One row per switch reason, in a stable order, then `reason: null` for no
|
|
29291
|
-
reason given. Counts sum to `totals.backOnClassic`.
|
|
29292
|
-
items:
|
|
29293
|
-
$ref: "#/components/schemas/DesignAdoptionReasonCountDto"
|
|
29294
|
-
people:
|
|
29295
|
-
$ref: "#/components/schemas/DesignAdoptionPeoplePageDto"
|
|
29296
|
-
|
|
29297
|
-
DesignAdoptionSwitchEventDto:
|
|
29298
|
-
type: object
|
|
29299
|
-
additionalProperties: false
|
|
29300
|
-
required: [id, createdAt, fromVersion, toVersion, reason, note, route]
|
|
29301
|
-
properties:
|
|
29302
|
-
id:
|
|
29303
|
-
type: string
|
|
29304
|
-
format: uuid
|
|
29305
|
-
createdAt:
|
|
29306
|
-
type: string
|
|
29307
|
-
format: date-time
|
|
29308
|
-
fromVersion:
|
|
29309
|
-
allOf:
|
|
29310
|
-
- $ref: "#/components/schemas/DesignVersion"
|
|
29311
|
-
nullable: true
|
|
29312
|
-
toVersion:
|
|
29313
|
-
$ref: "#/components/schemas/DesignVersion"
|
|
29314
|
-
reason:
|
|
29315
|
-
allOf:
|
|
29316
|
-
- $ref: "#/components/schemas/DesignSwitchReason"
|
|
29317
|
-
nullable: true
|
|
29318
|
-
note:
|
|
29319
|
-
type: string
|
|
29320
|
-
nullable: true
|
|
29321
|
-
maxLength: 500
|
|
29322
|
-
description: Optional note. Present only on this per-person read.
|
|
29323
|
-
route:
|
|
29324
|
-
type: string
|
|
29325
|
-
nullable: true
|
|
29326
|
-
maxLength: 200
|
|
29327
|
-
|
|
29328
|
-
DesignAdoptionPersonDetailDto:
|
|
29329
|
-
allOf:
|
|
29330
|
-
- $ref: "#/components/schemas/DesignAdoptionPersonDto"
|
|
29331
|
-
- type: object
|
|
29332
|
-
additionalProperties: false
|
|
29333
|
-
required: [events]
|
|
29334
|
-
properties:
|
|
29335
|
-
events:
|
|
29336
|
-
type: array
|
|
29337
|
-
description: Newest switch first. Includes notes.
|
|
29338
|
-
items:
|
|
29339
|
-
$ref: "#/components/schemas/DesignAdoptionSwitchEventDto"
|
|
29340
|
-
|
|
29341
28951
|
PutPreferencesBodyDto:
|
|
29342
28952
|
type: object
|
|
29343
28953
|
additionalProperties: false
|
|
@@ -136,21 +136,6 @@
|
|
|
136
136
|
"method": "GET",
|
|
137
137
|
"path": "/platform/banner"
|
|
138
138
|
},
|
|
139
|
-
"adminGetDesignAdoption": {
|
|
140
|
-
"status": "implemented",
|
|
141
|
-
"method": "GET",
|
|
142
|
-
"path": "/admin/design-adoption"
|
|
143
|
-
},
|
|
144
|
-
"adminExportDesignAdoptionCsv": {
|
|
145
|
-
"status": "implemented",
|
|
146
|
-
"method": "GET",
|
|
147
|
-
"path": "/admin/design-adoption.csv"
|
|
148
|
-
},
|
|
149
|
-
"adminGetDesignAdoptionPerson": {
|
|
150
|
-
"status": "implemented",
|
|
151
|
-
"method": "GET",
|
|
152
|
-
"path": "/admin/design-adoption/people/{userId}"
|
|
153
|
-
},
|
|
154
139
|
"adminCreateJobsSession": {
|
|
155
140
|
"status": "implemented",
|
|
156
141
|
"method": "POST",
|