@thinkai/tai-api-contract 2.211.0 → 2.212.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 +351 -10
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +298 -18
- package/package.json +1 -1
- package/src/generated/openapi.ts +351 -10
|
@@ -950,12 +950,12 @@ export interface paths {
|
|
|
950
950
|
};
|
|
951
951
|
/**
|
|
952
952
|
* Get enterprise SAML SSO configuration
|
|
953
|
-
* @description Returns per-workspace enterprise SSO
|
|
953
|
+
* @description Returns per-workspace enterprise SSO status (`pending` / `active` / …), domains, join policy, and optional IdP metadata URL. Member-level read. Does not return IdP metadata XML. `ssoProviderId` is present only after platform Apply.
|
|
954
954
|
*/
|
|
955
955
|
get: operations["getWorkspaceEnterpriseSso"];
|
|
956
956
|
/**
|
|
957
|
-
*
|
|
958
|
-
* @description
|
|
957
|
+
* Submit or update a pending enterprise SSO request
|
|
958
|
+
* @description Workspace **admin** submits Okta or Entra IdP details (`metadataUrl`, domains, join policy). Sets `status=pending`, `enabled=false`, and clears `ssoProviderId`. Platform admins register the IdP via `POST /admin/enterprise-sso/{workspaceId}/apply`. Domains must be unique across pending and active workspaces (`409 sso_domain_conflict`). Rejected when SSO is already active (`409 enterprise_sso_already_active`).
|
|
959
959
|
*/
|
|
960
960
|
put: operations["putWorkspaceEnterpriseSso"];
|
|
961
961
|
post?: never;
|
|
@@ -965,6 +965,66 @@ export interface paths {
|
|
|
965
965
|
patch?: never;
|
|
966
966
|
trace?: never;
|
|
967
967
|
};
|
|
968
|
+
"/admin/enterprise-sso/pending": {
|
|
969
|
+
parameters: {
|
|
970
|
+
query?: never;
|
|
971
|
+
header?: never;
|
|
972
|
+
path?: never;
|
|
973
|
+
cookie?: never;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* List pending enterprise SSO requests
|
|
977
|
+
* @description Platform admin only. Returns workspaces with `status=pending`.
|
|
978
|
+
*/
|
|
979
|
+
get: operations["listAdminEnterpriseSsoPending"];
|
|
980
|
+
put?: never;
|
|
981
|
+
post?: never;
|
|
982
|
+
delete?: never;
|
|
983
|
+
options?: never;
|
|
984
|
+
head?: never;
|
|
985
|
+
patch?: never;
|
|
986
|
+
trace?: never;
|
|
987
|
+
};
|
|
988
|
+
"/admin/enterprise-sso/{workspaceId}/apply": {
|
|
989
|
+
parameters: {
|
|
990
|
+
query?: never;
|
|
991
|
+
header?: never;
|
|
992
|
+
path?: never;
|
|
993
|
+
cookie?: never;
|
|
994
|
+
};
|
|
995
|
+
get?: never;
|
|
996
|
+
put?: never;
|
|
997
|
+
/**
|
|
998
|
+
* Apply a pending enterprise SSO request
|
|
999
|
+
* @description Platform admin only. Creates a SAML SSO provider on ThinkAI Auth from the workspace pending `metadataUrl` and domains, then sets `status=active` and `enabled=true`. `dedicatedScope` defaults to true when `idpType` is `entra`.
|
|
1000
|
+
*/
|
|
1001
|
+
post: operations["postAdminEnterpriseSsoApply"];
|
|
1002
|
+
delete?: never;
|
|
1003
|
+
options?: never;
|
|
1004
|
+
head?: never;
|
|
1005
|
+
patch?: never;
|
|
1006
|
+
trace?: never;
|
|
1007
|
+
};
|
|
1008
|
+
"/admin/enterprise-sso/{workspaceId}/reject": {
|
|
1009
|
+
parameters: {
|
|
1010
|
+
query?: never;
|
|
1011
|
+
header?: never;
|
|
1012
|
+
path?: never;
|
|
1013
|
+
cookie?: never;
|
|
1014
|
+
};
|
|
1015
|
+
get?: never;
|
|
1016
|
+
put?: never;
|
|
1017
|
+
/**
|
|
1018
|
+
* Reject a pending enterprise SSO request
|
|
1019
|
+
* @description Platform admin only. Sets `status=rejected` and optional `rejectReason`.
|
|
1020
|
+
*/
|
|
1021
|
+
post: operations["postAdminEnterpriseSsoReject"];
|
|
1022
|
+
delete?: never;
|
|
1023
|
+
options?: never;
|
|
1024
|
+
head?: never;
|
|
1025
|
+
patch?: never;
|
|
1026
|
+
trace?: never;
|
|
1027
|
+
};
|
|
968
1028
|
"/workspaces/{workspaceId}/productivity-targets": {
|
|
969
1029
|
parameters: {
|
|
970
1030
|
query?: never;
|
|
@@ -3905,6 +3965,26 @@ export interface paths {
|
|
|
3905
3965
|
patch?: never;
|
|
3906
3966
|
trace?: never;
|
|
3907
3967
|
};
|
|
3968
|
+
"/workspaces/{workspaceId}/code-chat/knowledge-jobs/{jobId}/cancel": {
|
|
3969
|
+
parameters: {
|
|
3970
|
+
query?: never;
|
|
3971
|
+
header?: never;
|
|
3972
|
+
path?: never;
|
|
3973
|
+
cookie?: never;
|
|
3974
|
+
};
|
|
3975
|
+
get?: never;
|
|
3976
|
+
put?: never;
|
|
3977
|
+
/**
|
|
3978
|
+
* Cancel a queued or running knowledge job
|
|
3979
|
+
* @description Any workspace member when Engineering Context Graph is on. Clears the worker lease so in-flight work stops at the next ownership check. Restores the index to ready when a usable graph already exists (`graph_json` and `node_count > 0`); otherwise marks the index failed with "Cancelled by user". Authz matches other CodeChat member routes (Code Intelligence enabled); unlike continue, no execution key is required.
|
|
3980
|
+
*/
|
|
3981
|
+
post: operations["cancelCodeChatKnowledgeJob"];
|
|
3982
|
+
delete?: never;
|
|
3983
|
+
options?: never;
|
|
3984
|
+
head?: never;
|
|
3985
|
+
patch?: never;
|
|
3986
|
+
trace?: never;
|
|
3987
|
+
};
|
|
3908
3988
|
"/workspaces/{workspaceId}/code-chat/readiness": {
|
|
3909
3989
|
parameters: {
|
|
3910
3990
|
query?: never;
|
|
@@ -6737,11 +6817,16 @@ export interface components {
|
|
|
6737
6817
|
};
|
|
6738
6818
|
};
|
|
6739
6819
|
WorkspaceSsoConfigDto: {
|
|
6740
|
-
/**
|
|
6820
|
+
/**
|
|
6821
|
+
* @description Lifecycle of the SSO binding. Sign-in (`/auth/sso-lookup`) is available only when `status` is `active` and `enabled` is true with a provider id.
|
|
6822
|
+
* @enum {string}
|
|
6823
|
+
*/
|
|
6824
|
+
status: "pending" | "active" | "rejected" | "disabled";
|
|
6825
|
+
/** @description When true with `status=active`, enterprise SAML SSO is live for the listed domains. */
|
|
6741
6826
|
enabled: boolean;
|
|
6742
6827
|
/**
|
|
6743
6828
|
* Format: uuid
|
|
6744
|
-
* @description
|
|
6829
|
+
* @description ThinkAI Auth SSO provider id set by platform Apply (null while pending).
|
|
6745
6830
|
*/
|
|
6746
6831
|
ssoProviderId: string | null;
|
|
6747
6832
|
/**
|
|
@@ -6757,13 +6842,77 @@ export interface components {
|
|
|
6757
6842
|
*/
|
|
6758
6843
|
joinPolicy: "invite_only" | "domain_auto_join";
|
|
6759
6844
|
/**
|
|
6760
|
-
* @description
|
|
6845
|
+
* @description IdP label (Okta / Microsoft Entra; `saml` is legacy).
|
|
6761
6846
|
* @enum {string|null}
|
|
6762
6847
|
*/
|
|
6763
6848
|
idpType?: "okta" | "entra" | "saml" | null;
|
|
6764
|
-
/**
|
|
6849
|
+
/**
|
|
6850
|
+
* Format: uri
|
|
6851
|
+
* @description HTTPS IdP SAML metadata URL from the customer IdP admin.
|
|
6852
|
+
*/
|
|
6853
|
+
metadataUrl?: string | null;
|
|
6854
|
+
/** @description Optional ops label; not the IdP metadata URL. */
|
|
6855
|
+
metadataRef?: string | null;
|
|
6856
|
+
/** @description Present when `status` is `rejected`. */
|
|
6857
|
+
rejectReason?: string | null;
|
|
6858
|
+
};
|
|
6859
|
+
WorkspaceSsoRequestDto: {
|
|
6860
|
+
/**
|
|
6861
|
+
* @description Which company IdP the workspace is connecting.
|
|
6862
|
+
* @enum {string}
|
|
6863
|
+
*/
|
|
6864
|
+
idpType: "okta" | "entra";
|
|
6865
|
+
/**
|
|
6866
|
+
* Format: uri
|
|
6867
|
+
* @description HTTPS Identity Provider metadata URL from Okta or Entra.
|
|
6868
|
+
*/
|
|
6869
|
+
metadataUrl: string;
|
|
6870
|
+
/**
|
|
6871
|
+
* @description Work email domains that should use this IdP.
|
|
6872
|
+
* @example [
|
|
6873
|
+
* "acme.com"
|
|
6874
|
+
* ]
|
|
6875
|
+
*/
|
|
6876
|
+
domains: string[];
|
|
6877
|
+
/** @enum {string} */
|
|
6878
|
+
joinPolicy: "invite_only" | "domain_auto_join";
|
|
6879
|
+
/** @description Optional internal ops label (not the metadata URL). */
|
|
6880
|
+
metadataRef?: string | null;
|
|
6881
|
+
};
|
|
6882
|
+
AdminEnterpriseSsoPendingListDto: {
|
|
6883
|
+
items: components["schemas"]["AdminEnterpriseSsoPendingItemDto"][];
|
|
6884
|
+
};
|
|
6885
|
+
AdminEnterpriseSsoPendingItemDto: {
|
|
6886
|
+
/** Format: uuid */
|
|
6887
|
+
workspaceId: string;
|
|
6888
|
+
workspaceSlug: string;
|
|
6889
|
+
workspaceName: string;
|
|
6890
|
+
/** Format: date-time */
|
|
6891
|
+
submittedAt: string;
|
|
6892
|
+
/** @enum {string|null} */
|
|
6893
|
+
idpType?: "okta" | "entra" | "saml" | null;
|
|
6894
|
+
domains: string[];
|
|
6895
|
+
metadataUrl?: string | null;
|
|
6896
|
+
/** @enum {string} */
|
|
6897
|
+
joinPolicy: "invite_only" | "domain_auto_join";
|
|
6765
6898
|
metadataRef?: string | null;
|
|
6766
6899
|
};
|
|
6900
|
+
AdminEnterpriseSsoApplyRequestDto: {
|
|
6901
|
+
/** @description When true, Auth may allocate a dedicated ACS (recommended for Entra). Defaults to true for Entra and false for Okta when omitted. */
|
|
6902
|
+
dedicatedScope?: boolean;
|
|
6903
|
+
};
|
|
6904
|
+
AdminEnterpriseSsoApplyResponseDto: {
|
|
6905
|
+
/** Format: uuid */
|
|
6906
|
+
workspaceId: string;
|
|
6907
|
+
/** Format: uuid */
|
|
6908
|
+
ssoProviderId: string;
|
|
6909
|
+
/** @enum {string} */
|
|
6910
|
+
status: "active";
|
|
6911
|
+
dedicatedScope: boolean;
|
|
6912
|
+
};
|
|
6913
|
+
AdminEnterpriseSsoRejectRequestDto: {
|
|
6914
|
+
reason?: string;
|
|
6915
|
+
};
|
|
6767
6916
|
AuthSsoLookupDto: {
|
|
6768
6917
|
available: boolean;
|
|
6769
6918
|
domain: string;
|
|
@@ -13705,6 +13854,12 @@ export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigD
|
|
|
13705
13854
|
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13706
13855
|
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13707
13856
|
export type WorkspaceSsoConfigDto = components['schemas']['WorkspaceSsoConfigDto'];
|
|
13857
|
+
export type WorkspaceSsoRequestDto = components['schemas']['WorkspaceSsoRequestDto'];
|
|
13858
|
+
export type AdminEnterpriseSsoPendingListDto = components['schemas']['AdminEnterpriseSsoPendingListDto'];
|
|
13859
|
+
export type AdminEnterpriseSsoPendingItemDto = components['schemas']['AdminEnterpriseSsoPendingItemDto'];
|
|
13860
|
+
export type AdminEnterpriseSsoApplyRequestDto = components['schemas']['AdminEnterpriseSsoApplyRequestDto'];
|
|
13861
|
+
export type AdminEnterpriseSsoApplyResponseDto = components['schemas']['AdminEnterpriseSsoApplyResponseDto'];
|
|
13862
|
+
export type AdminEnterpriseSsoRejectRequestDto = components['schemas']['AdminEnterpriseSsoRejectRequestDto'];
|
|
13708
13863
|
export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
|
|
13709
13864
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13710
13865
|
export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
|
|
@@ -17262,11 +17417,11 @@ export interface operations {
|
|
|
17262
17417
|
};
|
|
17263
17418
|
requestBody: {
|
|
17264
17419
|
content: {
|
|
17265
|
-
"application/json": components["schemas"]["
|
|
17420
|
+
"application/json": components["schemas"]["WorkspaceSsoRequestDto"];
|
|
17266
17421
|
};
|
|
17267
17422
|
};
|
|
17268
17423
|
responses: {
|
|
17269
|
-
/** @description
|
|
17424
|
+
/** @description Pending request persisted */
|
|
17270
17425
|
204: {
|
|
17271
17426
|
headers: {
|
|
17272
17427
|
[name: string]: unknown;
|
|
@@ -17301,7 +17456,137 @@ export interface operations {
|
|
|
17301
17456
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17302
17457
|
};
|
|
17303
17458
|
};
|
|
17304
|
-
/** @description
|
|
17459
|
+
/** @description Domain conflict or SSO already active */
|
|
17460
|
+
409: {
|
|
17461
|
+
headers: {
|
|
17462
|
+
[name: string]: unknown;
|
|
17463
|
+
};
|
|
17464
|
+
content: {
|
|
17465
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17466
|
+
};
|
|
17467
|
+
};
|
|
17468
|
+
};
|
|
17469
|
+
};
|
|
17470
|
+
listAdminEnterpriseSsoPending: {
|
|
17471
|
+
parameters: {
|
|
17472
|
+
query?: never;
|
|
17473
|
+
header?: never;
|
|
17474
|
+
path?: never;
|
|
17475
|
+
cookie?: never;
|
|
17476
|
+
};
|
|
17477
|
+
requestBody?: never;
|
|
17478
|
+
responses: {
|
|
17479
|
+
/** @description Pending queue */
|
|
17480
|
+
200: {
|
|
17481
|
+
headers: {
|
|
17482
|
+
[name: string]: unknown;
|
|
17483
|
+
};
|
|
17484
|
+
content: {
|
|
17485
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoPendingListDto"];
|
|
17486
|
+
};
|
|
17487
|
+
};
|
|
17488
|
+
401: components["responses"]["Unauthorized"];
|
|
17489
|
+
403: components["responses"]["Forbidden"];
|
|
17490
|
+
};
|
|
17491
|
+
};
|
|
17492
|
+
postAdminEnterpriseSsoApply: {
|
|
17493
|
+
parameters: {
|
|
17494
|
+
query?: never;
|
|
17495
|
+
header?: never;
|
|
17496
|
+
path: {
|
|
17497
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17498
|
+
};
|
|
17499
|
+
cookie?: never;
|
|
17500
|
+
};
|
|
17501
|
+
requestBody?: {
|
|
17502
|
+
content: {
|
|
17503
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoApplyRequestDto"];
|
|
17504
|
+
};
|
|
17505
|
+
};
|
|
17506
|
+
responses: {
|
|
17507
|
+
/** @description Provider created and workspace activated */
|
|
17508
|
+
200: {
|
|
17509
|
+
headers: {
|
|
17510
|
+
[name: string]: unknown;
|
|
17511
|
+
};
|
|
17512
|
+
content: {
|
|
17513
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoApplyResponseDto"];
|
|
17514
|
+
};
|
|
17515
|
+
};
|
|
17516
|
+
/** @description Invalid pending payload */
|
|
17517
|
+
400: {
|
|
17518
|
+
headers: {
|
|
17519
|
+
[name: string]: unknown;
|
|
17520
|
+
};
|
|
17521
|
+
content: {
|
|
17522
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17523
|
+
};
|
|
17524
|
+
};
|
|
17525
|
+
401: components["responses"]["Unauthorized"];
|
|
17526
|
+
403: components["responses"]["Forbidden"];
|
|
17527
|
+
/** @description Workspace not found */
|
|
17528
|
+
404: {
|
|
17529
|
+
headers: {
|
|
17530
|
+
[name: string]: unknown;
|
|
17531
|
+
};
|
|
17532
|
+
content: {
|
|
17533
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17534
|
+
};
|
|
17535
|
+
};
|
|
17536
|
+
/** @description Not pending */
|
|
17537
|
+
409: {
|
|
17538
|
+
headers: {
|
|
17539
|
+
[name: string]: unknown;
|
|
17540
|
+
};
|
|
17541
|
+
content: {
|
|
17542
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17543
|
+
};
|
|
17544
|
+
};
|
|
17545
|
+
/** @description ThinkAI Auth rejected provider create */
|
|
17546
|
+
502: {
|
|
17547
|
+
headers: {
|
|
17548
|
+
[name: string]: unknown;
|
|
17549
|
+
};
|
|
17550
|
+
content: {
|
|
17551
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17552
|
+
};
|
|
17553
|
+
};
|
|
17554
|
+
};
|
|
17555
|
+
};
|
|
17556
|
+
postAdminEnterpriseSsoReject: {
|
|
17557
|
+
parameters: {
|
|
17558
|
+
query?: never;
|
|
17559
|
+
header?: never;
|
|
17560
|
+
path: {
|
|
17561
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17562
|
+
};
|
|
17563
|
+
cookie?: never;
|
|
17564
|
+
};
|
|
17565
|
+
requestBody?: {
|
|
17566
|
+
content: {
|
|
17567
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoRejectRequestDto"];
|
|
17568
|
+
};
|
|
17569
|
+
};
|
|
17570
|
+
responses: {
|
|
17571
|
+
/** @description Rejected */
|
|
17572
|
+
204: {
|
|
17573
|
+
headers: {
|
|
17574
|
+
[name: string]: unknown;
|
|
17575
|
+
};
|
|
17576
|
+
content?: never;
|
|
17577
|
+
};
|
|
17578
|
+
401: components["responses"]["Unauthorized"];
|
|
17579
|
+
403: components["responses"]["Forbidden"];
|
|
17580
|
+
/** @description Workspace not found */
|
|
17581
|
+
404: {
|
|
17582
|
+
headers: {
|
|
17583
|
+
[name: string]: unknown;
|
|
17584
|
+
};
|
|
17585
|
+
content: {
|
|
17586
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17587
|
+
};
|
|
17588
|
+
};
|
|
17589
|
+
/** @description Not pending */
|
|
17305
17590
|
409: {
|
|
17306
17591
|
headers: {
|
|
17307
17592
|
[name: string]: unknown;
|
|
@@ -25148,6 +25433,62 @@ export interface operations {
|
|
|
25148
25433
|
};
|
|
25149
25434
|
};
|
|
25150
25435
|
};
|
|
25436
|
+
cancelCodeChatKnowledgeJob: {
|
|
25437
|
+
parameters: {
|
|
25438
|
+
query?: never;
|
|
25439
|
+
header?: never;
|
|
25440
|
+
path: {
|
|
25441
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
25442
|
+
/** @description Active knowledge job id (`tai_workspace_code_knowledge_jobs.id`). */
|
|
25443
|
+
jobId: string;
|
|
25444
|
+
};
|
|
25445
|
+
cookie?: never;
|
|
25446
|
+
};
|
|
25447
|
+
requestBody?: never;
|
|
25448
|
+
responses: {
|
|
25449
|
+
/** @description Job cancelled */
|
|
25450
|
+
200: {
|
|
25451
|
+
headers: {
|
|
25452
|
+
[name: string]: unknown;
|
|
25453
|
+
};
|
|
25454
|
+
content: {
|
|
25455
|
+
"application/json": {
|
|
25456
|
+
job: components["schemas"]["CodeKnowledgeJobDto"];
|
|
25457
|
+
};
|
|
25458
|
+
};
|
|
25459
|
+
};
|
|
25460
|
+
401: components["responses"]["Unauthorized"];
|
|
25461
|
+
/** @description Engineering Context Graph is off */
|
|
25462
|
+
403: {
|
|
25463
|
+
headers: {
|
|
25464
|
+
[name: string]: unknown;
|
|
25465
|
+
};
|
|
25466
|
+
content: {
|
|
25467
|
+
/**
|
|
25468
|
+
* @example {
|
|
25469
|
+
* "error": "Code Intelligence is disabled for this workspace",
|
|
25470
|
+
* "code": "code_intelligence_disabled"
|
|
25471
|
+
* }
|
|
25472
|
+
*/
|
|
25473
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25474
|
+
};
|
|
25475
|
+
};
|
|
25476
|
+
/** @description No active knowledge job to cancel */
|
|
25477
|
+
404: {
|
|
25478
|
+
headers: {
|
|
25479
|
+
[name: string]: unknown;
|
|
25480
|
+
};
|
|
25481
|
+
content: {
|
|
25482
|
+
/**
|
|
25483
|
+
* @example {
|
|
25484
|
+
* "error": "No active knowledge job to cancel"
|
|
25485
|
+
* }
|
|
25486
|
+
*/
|
|
25487
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25488
|
+
};
|
|
25489
|
+
};
|
|
25490
|
+
};
|
|
25491
|
+
};
|
|
25151
25492
|
getCodeChatReadiness: {
|
|
25152
25493
|
parameters: {
|
|
25153
25494
|
query?: never;
|