@thinkai/tai-api-contract 2.208.1 → 2.209.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 +208 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +164 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +208 -0
|
@@ -921,6 +921,50 @@ export interface paths {
|
|
|
921
921
|
patch?: never;
|
|
922
922
|
trace?: never;
|
|
923
923
|
};
|
|
924
|
+
"/auth/sso-lookup": {
|
|
925
|
+
parameters: {
|
|
926
|
+
query?: never;
|
|
927
|
+
header?: never;
|
|
928
|
+
path?: never;
|
|
929
|
+
cookie?: never;
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* Look up enterprise SSO availability by email domain
|
|
933
|
+
* @description Unauthenticated. Returns whether a workspace has enabled enterprise SAML SSO for the given email domain. Does not return `ssoProviderId`; the SPA calls `supabase.auth.signInWithSSO({ domain })` after a positive lookup.
|
|
934
|
+
*/
|
|
935
|
+
get: operations["getAuthSsoLookup"];
|
|
936
|
+
put?: never;
|
|
937
|
+
post?: never;
|
|
938
|
+
delete?: never;
|
|
939
|
+
options?: never;
|
|
940
|
+
head?: never;
|
|
941
|
+
patch?: never;
|
|
942
|
+
trace?: never;
|
|
943
|
+
};
|
|
944
|
+
"/workspaces/{workspaceId}/enterprise-sso": {
|
|
945
|
+
parameters: {
|
|
946
|
+
query?: never;
|
|
947
|
+
header?: never;
|
|
948
|
+
path?: never;
|
|
949
|
+
cookie?: never;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Get enterprise SAML SSO configuration
|
|
953
|
+
* @description Returns per-workspace enterprise SSO binding (`ssoProviderId`, domains, join policy). Member-level read. Does not return IdP metadata XML.
|
|
954
|
+
*/
|
|
955
|
+
get: operations["getWorkspaceEnterpriseSso"];
|
|
956
|
+
/**
|
|
957
|
+
* Set enterprise SAML SSO configuration
|
|
958
|
+
* @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`).
|
|
959
|
+
*/
|
|
960
|
+
put: operations["putWorkspaceEnterpriseSso"];
|
|
961
|
+
post?: never;
|
|
962
|
+
delete?: never;
|
|
963
|
+
options?: never;
|
|
964
|
+
head?: never;
|
|
965
|
+
patch?: never;
|
|
966
|
+
trace?: never;
|
|
967
|
+
};
|
|
924
968
|
"/workspaces/{workspaceId}/productivity-targets": {
|
|
925
969
|
parameters: {
|
|
926
970
|
query?: never;
|
|
@@ -6601,6 +6645,42 @@ export interface components {
|
|
|
6601
6645
|
[key: string]: components["schemas"]["AiModelPolicyPersonOverrideDto"];
|
|
6602
6646
|
};
|
|
6603
6647
|
};
|
|
6648
|
+
WorkspaceSsoConfigDto: {
|
|
6649
|
+
/** @description When true, enterprise SAML SSO is active for the listed domains. */
|
|
6650
|
+
enabled: boolean;
|
|
6651
|
+
/**
|
|
6652
|
+
* Format: uuid
|
|
6653
|
+
* @description Supabase Auth SSO provider id from `supabase sso add` / dashboard.
|
|
6654
|
+
*/
|
|
6655
|
+
ssoProviderId: string | null;
|
|
6656
|
+
/**
|
|
6657
|
+
* @description Email domains that route to this IdP (lowercase, no `@`).
|
|
6658
|
+
* @example [
|
|
6659
|
+
* "acme.com"
|
|
6660
|
+
* ]
|
|
6661
|
+
*/
|
|
6662
|
+
domains: string[];
|
|
6663
|
+
/**
|
|
6664
|
+
* @description `invite_only` keeps #536 invitation membership. `domain_auto_join` adds a viewer membership on first authenticated workspace list when the email domain matches.
|
|
6665
|
+
* @enum {string}
|
|
6666
|
+
*/
|
|
6667
|
+
joinPolicy: "invite_only" | "domain_auto_join";
|
|
6668
|
+
/**
|
|
6669
|
+
* @description Optional label for UI / ops (Okta, Microsoft Entra, or generic SAML).
|
|
6670
|
+
* @enum {string|null}
|
|
6671
|
+
*/
|
|
6672
|
+
idpType?: "okta" | "entra" | "saml" | null;
|
|
6673
|
+
/** @description Ops-only label or URL reference; never raw SAML metadata XML. */
|
|
6674
|
+
metadataRef?: string | null;
|
|
6675
|
+
};
|
|
6676
|
+
AuthSsoLookupDto: {
|
|
6677
|
+
available: boolean;
|
|
6678
|
+
domain: string;
|
|
6679
|
+
/** @description Present when available is true. */
|
|
6680
|
+
workspaceSlug?: string;
|
|
6681
|
+
/** @enum {string|null} */
|
|
6682
|
+
idpType?: "okta" | "entra" | "saml" | null;
|
|
6683
|
+
};
|
|
6604
6684
|
/** @description Optional weekly per-engineer targets for Productivity Insights. Omitted or null fields mean no target for that metric. Additional properties are rejected. */
|
|
6605
6685
|
ProductivityTargetsDto: {
|
|
6606
6686
|
/** @description Floor — meet or exceed this many merged PRs per engineer per week. */
|
|
@@ -13456,6 +13536,8 @@ export type DeliveryTopologyDto = components['schemas']['DeliveryTopologyDto'];
|
|
|
13456
13536
|
export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigDto'];
|
|
13457
13537
|
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13458
13538
|
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13539
|
+
export type WorkspaceSsoConfigDto = components['schemas']['WorkspaceSsoConfigDto'];
|
|
13540
|
+
export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
|
|
13459
13541
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13460
13542
|
export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
|
|
13461
13543
|
export type DimensionTargetsRepoOverrideDto = components['schemas']['DimensionTargetsRepoOverrideDto'];
|
|
@@ -16930,6 +17012,132 @@ export interface operations {
|
|
|
16930
17012
|
};
|
|
16931
17013
|
};
|
|
16932
17014
|
};
|
|
17015
|
+
getAuthSsoLookup: {
|
|
17016
|
+
parameters: {
|
|
17017
|
+
query: {
|
|
17018
|
+
/** @description Email domain (without `@`) */
|
|
17019
|
+
domain: string;
|
|
17020
|
+
};
|
|
17021
|
+
header?: never;
|
|
17022
|
+
path?: never;
|
|
17023
|
+
cookie?: never;
|
|
17024
|
+
};
|
|
17025
|
+
requestBody?: never;
|
|
17026
|
+
responses: {
|
|
17027
|
+
/** @description Lookup result */
|
|
17028
|
+
200: {
|
|
17029
|
+
headers: {
|
|
17030
|
+
[name: string]: unknown;
|
|
17031
|
+
};
|
|
17032
|
+
content: {
|
|
17033
|
+
"application/json": components["schemas"]["AuthSsoLookupDto"];
|
|
17034
|
+
};
|
|
17035
|
+
};
|
|
17036
|
+
/** @description Invalid domain */
|
|
17037
|
+
400: {
|
|
17038
|
+
headers: {
|
|
17039
|
+
[name: string]: unknown;
|
|
17040
|
+
};
|
|
17041
|
+
content: {
|
|
17042
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17043
|
+
};
|
|
17044
|
+
};
|
|
17045
|
+
};
|
|
17046
|
+
};
|
|
17047
|
+
getWorkspaceEnterpriseSso: {
|
|
17048
|
+
parameters: {
|
|
17049
|
+
query?: never;
|
|
17050
|
+
header?: never;
|
|
17051
|
+
path: {
|
|
17052
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17053
|
+
};
|
|
17054
|
+
cookie?: never;
|
|
17055
|
+
};
|
|
17056
|
+
requestBody?: never;
|
|
17057
|
+
responses: {
|
|
17058
|
+
/** @description Current SSO config (defaults when unset) */
|
|
17059
|
+
200: {
|
|
17060
|
+
headers: {
|
|
17061
|
+
[name: string]: unknown;
|
|
17062
|
+
};
|
|
17063
|
+
content: {
|
|
17064
|
+
"application/json": components["schemas"]["WorkspaceSsoConfigDto"];
|
|
17065
|
+
};
|
|
17066
|
+
};
|
|
17067
|
+
401: components["responses"]["Unauthorized"];
|
|
17068
|
+
403: components["responses"]["Forbidden"];
|
|
17069
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
17070
|
+
404: {
|
|
17071
|
+
headers: {
|
|
17072
|
+
[name: string]: unknown;
|
|
17073
|
+
};
|
|
17074
|
+
content: {
|
|
17075
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17076
|
+
};
|
|
17077
|
+
};
|
|
17078
|
+
};
|
|
17079
|
+
};
|
|
17080
|
+
putWorkspaceEnterpriseSso: {
|
|
17081
|
+
parameters: {
|
|
17082
|
+
query?: never;
|
|
17083
|
+
header?: never;
|
|
17084
|
+
path: {
|
|
17085
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17086
|
+
};
|
|
17087
|
+
cookie?: never;
|
|
17088
|
+
};
|
|
17089
|
+
requestBody: {
|
|
17090
|
+
content: {
|
|
17091
|
+
"application/json": components["schemas"]["WorkspaceSsoConfigDto"];
|
|
17092
|
+
};
|
|
17093
|
+
};
|
|
17094
|
+
responses: {
|
|
17095
|
+
/** @description Config persisted */
|
|
17096
|
+
204: {
|
|
17097
|
+
headers: {
|
|
17098
|
+
[name: string]: unknown;
|
|
17099
|
+
};
|
|
17100
|
+
content?: never;
|
|
17101
|
+
};
|
|
17102
|
+
/** @description Invalid payload */
|
|
17103
|
+
400: {
|
|
17104
|
+
headers: {
|
|
17105
|
+
[name: string]: unknown;
|
|
17106
|
+
};
|
|
17107
|
+
content: {
|
|
17108
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17109
|
+
};
|
|
17110
|
+
};
|
|
17111
|
+
401: components["responses"]["Unauthorized"];
|
|
17112
|
+
/** @description Forbidden — workspace admin required */
|
|
17113
|
+
403: {
|
|
17114
|
+
headers: {
|
|
17115
|
+
[name: string]: unknown;
|
|
17116
|
+
};
|
|
17117
|
+
content: {
|
|
17118
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17119
|
+
};
|
|
17120
|
+
};
|
|
17121
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
17122
|
+
404: {
|
|
17123
|
+
headers: {
|
|
17124
|
+
[name: string]: unknown;
|
|
17125
|
+
};
|
|
17126
|
+
content: {
|
|
17127
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17128
|
+
};
|
|
17129
|
+
};
|
|
17130
|
+
/** @description Email domain already bound to another workspace */
|
|
17131
|
+
409: {
|
|
17132
|
+
headers: {
|
|
17133
|
+
[name: string]: unknown;
|
|
17134
|
+
};
|
|
17135
|
+
content: {
|
|
17136
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17137
|
+
};
|
|
17138
|
+
};
|
|
17139
|
+
};
|
|
17140
|
+
};
|
|
16933
17141
|
getWorkspaceProductivityTargets: {
|
|
16934
17142
|
parameters: {
|
|
16935
17143
|
query?: never;
|