@thinkai/tai-api-contract 2.211.1 → 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 +275 -10
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +246 -18
- package/package.json +1 -1
- package/src/generated/openapi.ts +275 -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;
|
|
@@ -6757,11 +6817,16 @@ export interface components {
|
|
|
6757
6817
|
};
|
|
6758
6818
|
};
|
|
6759
6819
|
WorkspaceSsoConfigDto: {
|
|
6760
|
-
/**
|
|
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. */
|
|
6761
6826
|
enabled: boolean;
|
|
6762
6827
|
/**
|
|
6763
6828
|
* Format: uuid
|
|
6764
|
-
* @description
|
|
6829
|
+
* @description ThinkAI Auth SSO provider id set by platform Apply (null while pending).
|
|
6765
6830
|
*/
|
|
6766
6831
|
ssoProviderId: string | null;
|
|
6767
6832
|
/**
|
|
@@ -6777,13 +6842,77 @@ export interface components {
|
|
|
6777
6842
|
*/
|
|
6778
6843
|
joinPolicy: "invite_only" | "domain_auto_join";
|
|
6779
6844
|
/**
|
|
6780
|
-
* @description
|
|
6845
|
+
* @description IdP label (Okta / Microsoft Entra; `saml` is legacy).
|
|
6781
6846
|
* @enum {string|null}
|
|
6782
6847
|
*/
|
|
6783
6848
|
idpType?: "okta" | "entra" | "saml" | null;
|
|
6784
|
-
/**
|
|
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). */
|
|
6785
6880
|
metadataRef?: string | null;
|
|
6786
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";
|
|
6898
|
+
metadataRef?: string | null;
|
|
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
|
+
};
|
|
6787
6916
|
AuthSsoLookupDto: {
|
|
6788
6917
|
available: boolean;
|
|
6789
6918
|
domain: string;
|
|
@@ -13725,6 +13854,12 @@ export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigD
|
|
|
13725
13854
|
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13726
13855
|
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13727
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'];
|
|
13728
13863
|
export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
|
|
13729
13864
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13730
13865
|
export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
|
|
@@ -17282,11 +17417,11 @@ export interface operations {
|
|
|
17282
17417
|
};
|
|
17283
17418
|
requestBody: {
|
|
17284
17419
|
content: {
|
|
17285
|
-
"application/json": components["schemas"]["
|
|
17420
|
+
"application/json": components["schemas"]["WorkspaceSsoRequestDto"];
|
|
17286
17421
|
};
|
|
17287
17422
|
};
|
|
17288
17423
|
responses: {
|
|
17289
|
-
/** @description
|
|
17424
|
+
/** @description Pending request persisted */
|
|
17290
17425
|
204: {
|
|
17291
17426
|
headers: {
|
|
17292
17427
|
[name: string]: unknown;
|
|
@@ -17321,7 +17456,137 @@ export interface operations {
|
|
|
17321
17456
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17322
17457
|
};
|
|
17323
17458
|
};
|
|
17324
|
-
/** @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 */
|
|
17325
17590
|
409: {
|
|
17326
17591
|
headers: {
|
|
17327
17592
|
[name: string]: unknown;
|