@thinkai/tai-api-contract 2.208.0 → 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 +219 -11
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +175 -12
- package/package.json +1 -1
- package/src/generated/openapi.ts +219 -11
|
@@ -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;
|
|
@@ -4051,7 +4095,7 @@ export interface paths {
|
|
|
4051
4095
|
put?: never;
|
|
4052
4096
|
/**
|
|
4053
4097
|
* Generate a workspace-scoped PRD draft
|
|
4054
|
-
* @description Builds a PRD draft from ready
|
|
4098
|
+
* @description Builds a PRD draft from ready indexes (required) plus optional wiki pages and platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is optional — scan at least one repository first. Upserts one workspace knowledge page (`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base.
|
|
4055
4099
|
*/
|
|
4056
4100
|
post: operations["generatePrdDraft"];
|
|
4057
4101
|
delete?: never;
|
|
@@ -4071,7 +4115,7 @@ export interface paths {
|
|
|
4071
4115
|
put?: never;
|
|
4072
4116
|
/**
|
|
4073
4117
|
* Generate a workspace-scoped RFC draft
|
|
4074
|
-
* @description Same grounding as PRD generate (ready
|
|
4118
|
+
* @description Same grounding as PRD generate (ready indexes required; wiki optional; platform evidence when available). Upserts `rfc-<slug>` / `rfc-draft` without replacing the KB.
|
|
4075
4119
|
*/
|
|
4076
4120
|
post: operations["generateRfcDraft"];
|
|
4077
4121
|
delete?: never;
|
|
@@ -4091,7 +4135,7 @@ export interface paths {
|
|
|
4091
4135
|
put?: never;
|
|
4092
4136
|
/**
|
|
4093
4137
|
* Generate a workspace-scoped ADR draft
|
|
4094
|
-
* @description Same grounding as PRD generate (ready
|
|
4138
|
+
* @description Same grounding as PRD generate (ready indexes required; wiki optional; platform evidence when available). Upserts `adr-<slug>` / `adr-draft` without replacing the KB.
|
|
4095
4139
|
*/
|
|
4096
4140
|
post: operations["generateAdrDraft"];
|
|
4097
4141
|
delete?: 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;
|
|
@@ -24392,7 +24600,7 @@ export interface operations {
|
|
|
24392
24600
|
content: {
|
|
24393
24601
|
/**
|
|
24394
24602
|
* @example {
|
|
24395
|
-
* "error": "No ready
|
|
24603
|
+
* "error": "No ready index is available to write the workspace agent file.",
|
|
24396
24604
|
* "code": "agent_md_not_ready"
|
|
24397
24605
|
* }
|
|
24398
24606
|
*/
|
|
@@ -25240,7 +25448,7 @@ export interface operations {
|
|
|
25240
25448
|
};
|
|
25241
25449
|
content?: never;
|
|
25242
25450
|
};
|
|
25243
|
-
/** @description No ready
|
|
25451
|
+
/** @description No ready index in scope */
|
|
25244
25452
|
409: {
|
|
25245
25453
|
headers: {
|
|
25246
25454
|
[name: string]: unknown;
|
|
@@ -25311,7 +25519,7 @@ export interface operations {
|
|
|
25311
25519
|
};
|
|
25312
25520
|
content?: never;
|
|
25313
25521
|
};
|
|
25314
|
-
/** @description No ready
|
|
25522
|
+
/** @description No ready index in scope */
|
|
25315
25523
|
409: {
|
|
25316
25524
|
headers: {
|
|
25317
25525
|
[name: string]: unknown;
|
|
@@ -25359,7 +25567,7 @@ export interface operations {
|
|
|
25359
25567
|
};
|
|
25360
25568
|
content?: never;
|
|
25361
25569
|
};
|
|
25362
|
-
/** @description No ready
|
|
25570
|
+
/** @description No ready index in scope */
|
|
25363
25571
|
409: {
|
|
25364
25572
|
headers: {
|
|
25365
25573
|
[name: string]: unknown;
|
|
@@ -25407,7 +25615,7 @@ export interface operations {
|
|
|
25407
25615
|
};
|
|
25408
25616
|
content?: never;
|
|
25409
25617
|
};
|
|
25410
|
-
/** @description No ready
|
|
25618
|
+
/** @description No ready index in scope */
|
|
25411
25619
|
409: {
|
|
25412
25620
|
headers: {
|
|
25413
25621
|
[name: string]: unknown;
|
|
@@ -25643,7 +25851,7 @@ export interface operations {
|
|
|
25643
25851
|
content?: never;
|
|
25644
25852
|
};
|
|
25645
25853
|
401: components["responses"]["Unauthorized"];
|
|
25646
|
-
/** @description
|
|
25854
|
+
/** @description Index not found */
|
|
25647
25855
|
404: {
|
|
25648
25856
|
headers: {
|
|
25649
25857
|
[name: string]: unknown;
|
|
@@ -25713,7 +25921,7 @@ export interface operations {
|
|
|
25713
25921
|
};
|
|
25714
25922
|
};
|
|
25715
25923
|
401: components["responses"]["Unauthorized"];
|
|
25716
|
-
/** @description
|
|
25924
|
+
/** @description Index not ready */
|
|
25717
25925
|
409: {
|
|
25718
25926
|
headers: {
|
|
25719
25927
|
[name: string]: unknown;
|
|
@@ -25768,7 +25976,7 @@ export interface operations {
|
|
|
25768
25976
|
};
|
|
25769
25977
|
};
|
|
25770
25978
|
401: components["responses"]["Unauthorized"];
|
|
25771
|
-
/** @description
|
|
25979
|
+
/** @description Index not ready */
|
|
25772
25980
|
404: {
|
|
25773
25981
|
headers: {
|
|
25774
25982
|
[name: string]: unknown;
|