@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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.211.1
4
+ version: 2.212.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}/...`.
@@ -2893,8 +2893,9 @@ paths:
2893
2893
  tags: [Workspace]
2894
2894
  summary: Get enterprise SAML SSO configuration
2895
2895
  description: >
2896
- Returns per-workspace enterprise SSO binding (`ssoProviderId`, domains, join policy).
2897
- Member-level read. Does not return IdP metadata XML.
2896
+ Returns per-workspace enterprise SSO status (`pending` / `active` / …), domains,
2897
+ join policy, and optional IdP metadata URL. Member-level read. Does not return
2898
+ IdP metadata XML. `ssoProviderId` is present only after platform Apply.
2898
2899
  operationId: getWorkspaceEnterpriseSso
2899
2900
  parameters:
2900
2901
  - $ref: "#/components/parameters/WorkspaceId"
@@ -2917,13 +2918,14 @@ paths:
2917
2918
  $ref: "#/components/schemas/ErrorMessageDto"
2918
2919
  put:
2919
2920
  tags: [Workspace]
2920
- summary: Set enterprise SAML SSO configuration
2921
- description: >
2922
- Full-replace workspace enterprise SSO config. Bind a Supabase `sso_provider_id`
2923
- (from `supabase sso add` for Okta or Entra) and one or more email domains.
2924
- `joinPolicy: domain_auto_join` grants viewer membership on first `GET /me/workspaces`
2925
- after SSO login when the JWT email domain matches. Requires workspace **admin**.
2926
- Domains must be unique across enabled workspaces (`409 sso_domain_conflict`).
2921
+ summary: Submit or update a pending enterprise SSO request
2922
+ description: >
2923
+ Workspace **admin** submits Okta or Entra IdP details (`metadataUrl`, domains,
2924
+ join policy). Sets `status=pending`, `enabled=false`, and clears `ssoProviderId`.
2925
+ Platform admins register the IdP via `POST /admin/enterprise-sso/{workspaceId}/apply`.
2926
+ Domains must be unique across pending and active workspaces
2927
+ (`409 sso_domain_conflict`). Rejected when SSO is already active
2928
+ (`409 enterprise_sso_already_active`).
2927
2929
  operationId: putWorkspaceEnterpriseSso
2928
2930
  parameters:
2929
2931
  - $ref: "#/components/parameters/WorkspaceId"
@@ -2932,10 +2934,10 @@ paths:
2932
2934
  content:
2933
2935
  application/json:
2934
2936
  schema:
2935
- $ref: "#/components/schemas/WorkspaceSsoConfigDto"
2937
+ $ref: "#/components/schemas/WorkspaceSsoRequestDto"
2936
2938
  responses:
2937
2939
  "204":
2938
- description: Config persisted
2940
+ description: Pending request persisted
2939
2941
  "400":
2940
2942
  description: Invalid payload
2941
2943
  content:
@@ -2957,7 +2959,7 @@ paths:
2957
2959
  schema:
2958
2960
  $ref: "#/components/schemas/ErrorMessageDto"
2959
2961
  "409":
2960
- description: Email domain already bound to another workspace
2962
+ description: Domain conflict or SSO already active
2961
2963
  content:
2962
2964
  application/json:
2963
2965
  schema:
@@ -2968,6 +2970,111 @@ paths:
2968
2970
  error: Email domain acme.com is already bound to another workspace.
2969
2971
  code: sso_domain_conflict
2970
2972
 
2973
+ /admin/enterprise-sso/pending:
2974
+ get:
2975
+ tags: [PlatformAdmin]
2976
+ summary: List pending enterprise SSO requests
2977
+ description: Platform admin only. Returns workspaces with `status=pending`.
2978
+ operationId: listAdminEnterpriseSsoPending
2979
+ responses:
2980
+ "200":
2981
+ description: Pending queue
2982
+ content:
2983
+ application/json:
2984
+ schema:
2985
+ $ref: "#/components/schemas/AdminEnterpriseSsoPendingListDto"
2986
+ "401":
2987
+ $ref: "#/components/responses/Unauthorized"
2988
+ "403":
2989
+ $ref: "#/components/responses/Forbidden"
2990
+
2991
+ /admin/enterprise-sso/{workspaceId}/apply:
2992
+ post:
2993
+ tags: [PlatformAdmin]
2994
+ summary: Apply a pending enterprise SSO request
2995
+ description: >
2996
+ Platform admin only. Creates a SAML SSO provider on ThinkAI Auth from the
2997
+ workspace pending `metadataUrl` and domains, then sets `status=active` and
2998
+ `enabled=true`. `dedicatedScope` defaults to true when `idpType` is `entra`.
2999
+ operationId: postAdminEnterpriseSsoApply
3000
+ parameters:
3001
+ - $ref: "#/components/parameters/WorkspaceId"
3002
+ requestBody:
3003
+ required: false
3004
+ content:
3005
+ application/json:
3006
+ schema:
3007
+ $ref: "#/components/schemas/AdminEnterpriseSsoApplyRequestDto"
3008
+ responses:
3009
+ "200":
3010
+ description: Provider created and workspace activated
3011
+ content:
3012
+ application/json:
3013
+ schema:
3014
+ $ref: "#/components/schemas/AdminEnterpriseSsoApplyResponseDto"
3015
+ "400":
3016
+ description: Invalid pending payload
3017
+ content:
3018
+ application/json:
3019
+ schema:
3020
+ $ref: "#/components/schemas/ErrorMessageDto"
3021
+ "401":
3022
+ $ref: "#/components/responses/Unauthorized"
3023
+ "403":
3024
+ $ref: "#/components/responses/Forbidden"
3025
+ "404":
3026
+ description: Workspace not found
3027
+ content:
3028
+ application/json:
3029
+ schema:
3030
+ $ref: "#/components/schemas/ErrorMessageDto"
3031
+ "409":
3032
+ description: Not pending
3033
+ content:
3034
+ application/json:
3035
+ schema:
3036
+ $ref: "#/components/schemas/ErrorMessageDto"
3037
+ "502":
3038
+ description: ThinkAI Auth rejected provider create
3039
+ content:
3040
+ application/json:
3041
+ schema:
3042
+ $ref: "#/components/schemas/ErrorMessageDto"
3043
+
3044
+ /admin/enterprise-sso/{workspaceId}/reject:
3045
+ post:
3046
+ tags: [PlatformAdmin]
3047
+ summary: Reject a pending enterprise SSO request
3048
+ description: Platform admin only. Sets `status=rejected` and optional `rejectReason`.
3049
+ operationId: postAdminEnterpriseSsoReject
3050
+ parameters:
3051
+ - $ref: "#/components/parameters/WorkspaceId"
3052
+ requestBody:
3053
+ required: false
3054
+ content:
3055
+ application/json:
3056
+ schema:
3057
+ $ref: "#/components/schemas/AdminEnterpriseSsoRejectRequestDto"
3058
+ responses:
3059
+ "204":
3060
+ description: Rejected
3061
+ "401":
3062
+ $ref: "#/components/responses/Unauthorized"
3063
+ "403":
3064
+ $ref: "#/components/responses/Forbidden"
3065
+ "404":
3066
+ description: Workspace not found
3067
+ content:
3068
+ application/json:
3069
+ schema:
3070
+ $ref: "#/components/schemas/ErrorMessageDto"
3071
+ "409":
3072
+ description: Not pending
3073
+ content:
3074
+ application/json:
3075
+ schema:
3076
+ $ref: "#/components/schemas/ErrorMessageDto"
3077
+
2971
3078
  /workspaces/{workspaceId}/productivity-targets:
2972
3079
  get:
2973
3080
  tags: [Workspace]
@@ -17427,16 +17534,22 @@ components:
17427
17534
 
17428
17535
  WorkspaceSsoConfigDto:
17429
17536
  type: object
17430
- required: [enabled, ssoProviderId, domains, joinPolicy]
17537
+ required: [status, enabled, ssoProviderId, domains, joinPolicy]
17431
17538
  properties:
17539
+ status:
17540
+ type: string
17541
+ enum: [pending, active, rejected, disabled]
17542
+ description: >
17543
+ Lifecycle of the SSO binding. Sign-in (`/auth/sso-lookup`) is available only
17544
+ when `status` is `active` and `enabled` is true with a provider id.
17432
17545
  enabled:
17433
17546
  type: boolean
17434
- description: When true, enterprise SAML SSO is active for the listed domains.
17547
+ description: When true with `status=active`, enterprise SAML SSO is live for the listed domains.
17435
17548
  ssoProviderId:
17436
17549
  type: string
17437
17550
  format: uuid
17438
17551
  nullable: true
17439
- description: Supabase Auth SSO provider id from `supabase sso add` / dashboard.
17552
+ description: ThinkAI Auth SSO provider id set by platform Apply (null while pending).
17440
17553
  domains:
17441
17554
  type: array
17442
17555
  items:
@@ -17453,12 +17566,127 @@ components:
17453
17566
  type: string
17454
17567
  enum: [okta, entra, saml]
17455
17568
  nullable: true
17456
- description: Optional label for UI / ops (Okta, Microsoft Entra, or generic SAML).
17569
+ description: IdP label (Okta / Microsoft Entra; `saml` is legacy).
17570
+ metadataUrl:
17571
+ type: string
17572
+ format: uri
17573
+ nullable: true
17574
+ description: HTTPS IdP SAML metadata URL from the customer IdP admin.
17457
17575
  metadataRef:
17458
17576
  type: string
17459
17577
  nullable: true
17460
17578
  maxLength: 256
17461
- description: Ops-only label or URL reference; never raw SAML metadata XML.
17579
+ description: Optional ops label; not the IdP metadata URL.
17580
+ rejectReason:
17581
+ type: string
17582
+ nullable: true
17583
+ maxLength: 500
17584
+ description: Present when `status` is `rejected`.
17585
+
17586
+ WorkspaceSsoRequestDto:
17587
+ type: object
17588
+ required: [idpType, metadataUrl, domains, joinPolicy]
17589
+ additionalProperties: false
17590
+ properties:
17591
+ idpType:
17592
+ type: string
17593
+ enum: [okta, entra]
17594
+ description: Which company IdP the workspace is connecting.
17595
+ metadataUrl:
17596
+ type: string
17597
+ format: uri
17598
+ description: HTTPS Identity Provider metadata URL from Okta or Entra.
17599
+ domains:
17600
+ type: array
17601
+ items:
17602
+ type: string
17603
+ minItems: 1
17604
+ maxItems: 50
17605
+ description: Work email domains that should use this IdP.
17606
+ example: [acme.com]
17607
+ joinPolicy:
17608
+ type: string
17609
+ enum: [invite_only, domain_auto_join]
17610
+ metadataRef:
17611
+ type: string
17612
+ nullable: true
17613
+ maxLength: 256
17614
+ description: Optional internal ops label (not the metadata URL).
17615
+
17616
+ AdminEnterpriseSsoPendingListDto:
17617
+ type: object
17618
+ required: [items]
17619
+ properties:
17620
+ items:
17621
+ type: array
17622
+ items:
17623
+ $ref: "#/components/schemas/AdminEnterpriseSsoPendingItemDto"
17624
+
17625
+ AdminEnterpriseSsoPendingItemDto:
17626
+ type: object
17627
+ required: [workspaceId, workspaceSlug, workspaceName, submittedAt, domains, joinPolicy]
17628
+ properties:
17629
+ workspaceId:
17630
+ type: string
17631
+ format: uuid
17632
+ workspaceSlug:
17633
+ type: string
17634
+ workspaceName:
17635
+ type: string
17636
+ submittedAt:
17637
+ type: string
17638
+ format: date-time
17639
+ idpType:
17640
+ type: string
17641
+ enum: [okta, entra, saml]
17642
+ nullable: true
17643
+ domains:
17644
+ type: array
17645
+ items:
17646
+ type: string
17647
+ metadataUrl:
17648
+ type: string
17649
+ nullable: true
17650
+ joinPolicy:
17651
+ type: string
17652
+ enum: [invite_only, domain_auto_join]
17653
+ metadataRef:
17654
+ type: string
17655
+ nullable: true
17656
+
17657
+ AdminEnterpriseSsoApplyRequestDto:
17658
+ type: object
17659
+ additionalProperties: false
17660
+ properties:
17661
+ dedicatedScope:
17662
+ type: boolean
17663
+ description: >
17664
+ When true, Auth may allocate a dedicated ACS (recommended for Entra).
17665
+ Defaults to true for Entra and false for Okta when omitted.
17666
+
17667
+ AdminEnterpriseSsoApplyResponseDto:
17668
+ type: object
17669
+ required: [workspaceId, ssoProviderId, status, dedicatedScope]
17670
+ properties:
17671
+ workspaceId:
17672
+ type: string
17673
+ format: uuid
17674
+ ssoProviderId:
17675
+ type: string
17676
+ format: uuid
17677
+ status:
17678
+ type: string
17679
+ enum: [active]
17680
+ dedicatedScope:
17681
+ type: boolean
17682
+
17683
+ AdminEnterpriseSsoRejectRequestDto:
17684
+ type: object
17685
+ additionalProperties: false
17686
+ properties:
17687
+ reason:
17688
+ type: string
17689
+ maxLength: 500
17462
17690
 
17463
17691
  AuthSsoLookupDto:
17464
17692
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.211.1",
3
+ "version": "2.212.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -951,12 +951,12 @@ export interface paths {
951
951
  };
952
952
  /**
953
953
  * Get enterprise SAML SSO configuration
954
- * @description Returns per-workspace enterprise SSO binding (`ssoProviderId`, domains, join policy). Member-level read. Does not return IdP metadata XML.
954
+ * @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.
955
955
  */
956
956
  get: operations["getWorkspaceEnterpriseSso"];
957
957
  /**
958
- * Set enterprise SAML SSO configuration
959
- * @description Full-replace workspace enterprise SSO config. Bind a Supabase `sso_provider_id` (from `supabase sso add` for Okta or Entra) and one or more email domains. `joinPolicy: domain_auto_join` grants viewer membership on first `GET /me/workspaces` after SSO login when the JWT email domain matches. Requires workspace **admin**. Domains must be unique across enabled workspaces (`409 sso_domain_conflict`).
958
+ * Submit or update a pending enterprise SSO request
959
+ * @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`).
960
960
  */
961
961
  put: operations["putWorkspaceEnterpriseSso"];
962
962
  post?: never;
@@ -966,6 +966,66 @@ export interface paths {
966
966
  patch?: never;
967
967
  trace?: never;
968
968
  };
969
+ "/admin/enterprise-sso/pending": {
970
+ parameters: {
971
+ query?: never;
972
+ header?: never;
973
+ path?: never;
974
+ cookie?: never;
975
+ };
976
+ /**
977
+ * List pending enterprise SSO requests
978
+ * @description Platform admin only. Returns workspaces with `status=pending`.
979
+ */
980
+ get: operations["listAdminEnterpriseSsoPending"];
981
+ put?: never;
982
+ post?: never;
983
+ delete?: never;
984
+ options?: never;
985
+ head?: never;
986
+ patch?: never;
987
+ trace?: never;
988
+ };
989
+ "/admin/enterprise-sso/{workspaceId}/apply": {
990
+ parameters: {
991
+ query?: never;
992
+ header?: never;
993
+ path?: never;
994
+ cookie?: never;
995
+ };
996
+ get?: never;
997
+ put?: never;
998
+ /**
999
+ * Apply a pending enterprise SSO request
1000
+ * @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`.
1001
+ */
1002
+ post: operations["postAdminEnterpriseSsoApply"];
1003
+ delete?: never;
1004
+ options?: never;
1005
+ head?: never;
1006
+ patch?: never;
1007
+ trace?: never;
1008
+ };
1009
+ "/admin/enterprise-sso/{workspaceId}/reject": {
1010
+ parameters: {
1011
+ query?: never;
1012
+ header?: never;
1013
+ path?: never;
1014
+ cookie?: never;
1015
+ };
1016
+ get?: never;
1017
+ put?: never;
1018
+ /**
1019
+ * Reject a pending enterprise SSO request
1020
+ * @description Platform admin only. Sets `status=rejected` and optional `rejectReason`.
1021
+ */
1022
+ post: operations["postAdminEnterpriseSsoReject"];
1023
+ delete?: never;
1024
+ options?: never;
1025
+ head?: never;
1026
+ patch?: never;
1027
+ trace?: never;
1028
+ };
969
1029
  "/workspaces/{workspaceId}/productivity-targets": {
970
1030
  parameters: {
971
1031
  query?: never;
@@ -6758,11 +6818,16 @@ export interface components {
6758
6818
  };
6759
6819
  };
6760
6820
  WorkspaceSsoConfigDto: {
6761
- /** @description When true, enterprise SAML SSO is active for the listed domains. */
6821
+ /**
6822
+ * @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.
6823
+ * @enum {string}
6824
+ */
6825
+ status: "pending" | "active" | "rejected" | "disabled";
6826
+ /** @description When true with `status=active`, enterprise SAML SSO is live for the listed domains. */
6762
6827
  enabled: boolean;
6763
6828
  /**
6764
6829
  * Format: uuid
6765
- * @description Supabase Auth SSO provider id from `supabase sso add` / dashboard.
6830
+ * @description ThinkAI Auth SSO provider id set by platform Apply (null while pending).
6766
6831
  */
6767
6832
  ssoProviderId: string | null;
6768
6833
  /**
@@ -6778,13 +6843,77 @@ export interface components {
6778
6843
  */
6779
6844
  joinPolicy: "invite_only" | "domain_auto_join";
6780
6845
  /**
6781
- * @description Optional label for UI / ops (Okta, Microsoft Entra, or generic SAML).
6846
+ * @description IdP label (Okta / Microsoft Entra; `saml` is legacy).
6782
6847
  * @enum {string|null}
6783
6848
  */
6784
6849
  idpType?: "okta" | "entra" | "saml" | null;
6785
- /** @description Ops-only label or URL reference; never raw SAML metadata XML. */
6850
+ /**
6851
+ * Format: uri
6852
+ * @description HTTPS IdP SAML metadata URL from the customer IdP admin.
6853
+ */
6854
+ metadataUrl?: string | null;
6855
+ /** @description Optional ops label; not the IdP metadata URL. */
6856
+ metadataRef?: string | null;
6857
+ /** @description Present when `status` is `rejected`. */
6858
+ rejectReason?: string | null;
6859
+ };
6860
+ WorkspaceSsoRequestDto: {
6861
+ /**
6862
+ * @description Which company IdP the workspace is connecting.
6863
+ * @enum {string}
6864
+ */
6865
+ idpType: "okta" | "entra";
6866
+ /**
6867
+ * Format: uri
6868
+ * @description HTTPS Identity Provider metadata URL from Okta or Entra.
6869
+ */
6870
+ metadataUrl: string;
6871
+ /**
6872
+ * @description Work email domains that should use this IdP.
6873
+ * @example [
6874
+ * "acme.com"
6875
+ * ]
6876
+ */
6877
+ domains: string[];
6878
+ /** @enum {string} */
6879
+ joinPolicy: "invite_only" | "domain_auto_join";
6880
+ /** @description Optional internal ops label (not the metadata URL). */
6786
6881
  metadataRef?: string | null;
6787
6882
  };
6883
+ AdminEnterpriseSsoPendingListDto: {
6884
+ items: components["schemas"]["AdminEnterpriseSsoPendingItemDto"][];
6885
+ };
6886
+ AdminEnterpriseSsoPendingItemDto: {
6887
+ /** Format: uuid */
6888
+ workspaceId: string;
6889
+ workspaceSlug: string;
6890
+ workspaceName: string;
6891
+ /** Format: date-time */
6892
+ submittedAt: string;
6893
+ /** @enum {string|null} */
6894
+ idpType?: "okta" | "entra" | "saml" | null;
6895
+ domains: string[];
6896
+ metadataUrl?: string | null;
6897
+ /** @enum {string} */
6898
+ joinPolicy: "invite_only" | "domain_auto_join";
6899
+ metadataRef?: string | null;
6900
+ };
6901
+ AdminEnterpriseSsoApplyRequestDto: {
6902
+ /** @description When true, Auth may allocate a dedicated ACS (recommended for Entra). Defaults to true for Entra and false for Okta when omitted. */
6903
+ dedicatedScope?: boolean;
6904
+ };
6905
+ AdminEnterpriseSsoApplyResponseDto: {
6906
+ /** Format: uuid */
6907
+ workspaceId: string;
6908
+ /** Format: uuid */
6909
+ ssoProviderId: string;
6910
+ /** @enum {string} */
6911
+ status: "active";
6912
+ dedicatedScope: boolean;
6913
+ };
6914
+ AdminEnterpriseSsoRejectRequestDto: {
6915
+ reason?: string;
6916
+ };
6788
6917
  AuthSsoLookupDto: {
6789
6918
  available: boolean;
6790
6919
  domain: string;
@@ -13726,6 +13855,12 @@ export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigD
13726
13855
  export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
13727
13856
  export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
13728
13857
  export type WorkspaceSsoConfigDto = components['schemas']['WorkspaceSsoConfigDto'];
13858
+ export type WorkspaceSsoRequestDto = components['schemas']['WorkspaceSsoRequestDto'];
13859
+ export type AdminEnterpriseSsoPendingListDto = components['schemas']['AdminEnterpriseSsoPendingListDto'];
13860
+ export type AdminEnterpriseSsoPendingItemDto = components['schemas']['AdminEnterpriseSsoPendingItemDto'];
13861
+ export type AdminEnterpriseSsoApplyRequestDto = components['schemas']['AdminEnterpriseSsoApplyRequestDto'];
13862
+ export type AdminEnterpriseSsoApplyResponseDto = components['schemas']['AdminEnterpriseSsoApplyResponseDto'];
13863
+ export type AdminEnterpriseSsoRejectRequestDto = components['schemas']['AdminEnterpriseSsoRejectRequestDto'];
13729
13864
  export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
13730
13865
  export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
13731
13866
  export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
@@ -17283,11 +17418,11 @@ export interface operations {
17283
17418
  };
17284
17419
  requestBody: {
17285
17420
  content: {
17286
- "application/json": components["schemas"]["WorkspaceSsoConfigDto"];
17421
+ "application/json": components["schemas"]["WorkspaceSsoRequestDto"];
17287
17422
  };
17288
17423
  };
17289
17424
  responses: {
17290
- /** @description Config persisted */
17425
+ /** @description Pending request persisted */
17291
17426
  204: {
17292
17427
  headers: {
17293
17428
  [name: string]: unknown;
@@ -17322,7 +17457,137 @@ export interface operations {
17322
17457
  "application/json": components["schemas"]["ErrorMessageDto"];
17323
17458
  };
17324
17459
  };
17325
- /** @description Email domain already bound to another workspace */
17460
+ /** @description Domain conflict or SSO already active */
17461
+ 409: {
17462
+ headers: {
17463
+ [name: string]: unknown;
17464
+ };
17465
+ content: {
17466
+ "application/json": components["schemas"]["ErrorMessageDto"];
17467
+ };
17468
+ };
17469
+ };
17470
+ };
17471
+ listAdminEnterpriseSsoPending: {
17472
+ parameters: {
17473
+ query?: never;
17474
+ header?: never;
17475
+ path?: never;
17476
+ cookie?: never;
17477
+ };
17478
+ requestBody?: never;
17479
+ responses: {
17480
+ /** @description Pending queue */
17481
+ 200: {
17482
+ headers: {
17483
+ [name: string]: unknown;
17484
+ };
17485
+ content: {
17486
+ "application/json": components["schemas"]["AdminEnterpriseSsoPendingListDto"];
17487
+ };
17488
+ };
17489
+ 401: components["responses"]["Unauthorized"];
17490
+ 403: components["responses"]["Forbidden"];
17491
+ };
17492
+ };
17493
+ postAdminEnterpriseSsoApply: {
17494
+ parameters: {
17495
+ query?: never;
17496
+ header?: never;
17497
+ path: {
17498
+ workspaceId: components["parameters"]["WorkspaceId"];
17499
+ };
17500
+ cookie?: never;
17501
+ };
17502
+ requestBody?: {
17503
+ content: {
17504
+ "application/json": components["schemas"]["AdminEnterpriseSsoApplyRequestDto"];
17505
+ };
17506
+ };
17507
+ responses: {
17508
+ /** @description Provider created and workspace activated */
17509
+ 200: {
17510
+ headers: {
17511
+ [name: string]: unknown;
17512
+ };
17513
+ content: {
17514
+ "application/json": components["schemas"]["AdminEnterpriseSsoApplyResponseDto"];
17515
+ };
17516
+ };
17517
+ /** @description Invalid pending payload */
17518
+ 400: {
17519
+ headers: {
17520
+ [name: string]: unknown;
17521
+ };
17522
+ content: {
17523
+ "application/json": components["schemas"]["ErrorMessageDto"];
17524
+ };
17525
+ };
17526
+ 401: components["responses"]["Unauthorized"];
17527
+ 403: components["responses"]["Forbidden"];
17528
+ /** @description Workspace not found */
17529
+ 404: {
17530
+ headers: {
17531
+ [name: string]: unknown;
17532
+ };
17533
+ content: {
17534
+ "application/json": components["schemas"]["ErrorMessageDto"];
17535
+ };
17536
+ };
17537
+ /** @description Not pending */
17538
+ 409: {
17539
+ headers: {
17540
+ [name: string]: unknown;
17541
+ };
17542
+ content: {
17543
+ "application/json": components["schemas"]["ErrorMessageDto"];
17544
+ };
17545
+ };
17546
+ /** @description ThinkAI Auth rejected provider create */
17547
+ 502: {
17548
+ headers: {
17549
+ [name: string]: unknown;
17550
+ };
17551
+ content: {
17552
+ "application/json": components["schemas"]["ErrorMessageDto"];
17553
+ };
17554
+ };
17555
+ };
17556
+ };
17557
+ postAdminEnterpriseSsoReject: {
17558
+ parameters: {
17559
+ query?: never;
17560
+ header?: never;
17561
+ path: {
17562
+ workspaceId: components["parameters"]["WorkspaceId"];
17563
+ };
17564
+ cookie?: never;
17565
+ };
17566
+ requestBody?: {
17567
+ content: {
17568
+ "application/json": components["schemas"]["AdminEnterpriseSsoRejectRequestDto"];
17569
+ };
17570
+ };
17571
+ responses: {
17572
+ /** @description Rejected */
17573
+ 204: {
17574
+ headers: {
17575
+ [name: string]: unknown;
17576
+ };
17577
+ content?: never;
17578
+ };
17579
+ 401: components["responses"]["Unauthorized"];
17580
+ 403: components["responses"]["Forbidden"];
17581
+ /** @description Workspace not found */
17582
+ 404: {
17583
+ headers: {
17584
+ [name: string]: unknown;
17585
+ };
17586
+ content: {
17587
+ "application/json": components["schemas"]["ErrorMessageDto"];
17588
+ };
17589
+ };
17590
+ /** @description Not pending */
17326
17591
  409: {
17327
17592
  headers: {
17328
17593
  [name: string]: unknown;