@thinkai/tai-api-contract 2.211.1 → 2.213.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 +290 -10
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +279 -18
- package/package.json +1 -1
- package/src/generated/openapi.ts +290 -10
- package/src/index.ts +12 -0
|
@@ -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). */
|
|
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";
|
|
6785
6898
|
metadataRef?: string | null;
|
|
6786
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;
|
|
@@ -11107,6 +11236,18 @@ export interface components {
|
|
|
11107
11236
|
depthScan: components["schemas"]["IngestCoverageProductivityDepthScanDto"];
|
|
11108
11237
|
weekReconcile: components["schemas"]["IngestCoverageProductivityWeekReconcileDto"];
|
|
11109
11238
|
};
|
|
11239
|
+
/** @description Post-ingest ship-weight scoring progress for org-ledger GitHub PRs. Additive to Backfill complete, Source verified, and Data trust — does not change pipeline status. Aligns with Home Ship weight BACKFILLING (pendingCount > 0). */
|
|
11240
|
+
IngestCoverageShipWeightScoringDto: {
|
|
11241
|
+
/**
|
|
11242
|
+
* @description up_to_date when no GitHub ledger PRs in the window lack shipWeight; in_progress when pendingCount > 0.
|
|
11243
|
+
* @enum {string}
|
|
11244
|
+
*/
|
|
11245
|
+
status: "up_to_date" | "in_progress";
|
|
11246
|
+
/** @description Distinct org-ledger GitHub merged PRs in the window still missing shipWeight. */
|
|
11247
|
+
pendingCount: number;
|
|
11248
|
+
/** @description Inclusive calendar-day window ending today (UTC), matching Home ship-weight KPIs (30). */
|
|
11249
|
+
windowDays: number;
|
|
11250
|
+
};
|
|
11110
11251
|
IngestCoverageProductivityDetailDto: {
|
|
11111
11252
|
/** @enum {string|null} */
|
|
11112
11253
|
phase?: "recent" | "historical" | "complete" | null;
|
|
@@ -11118,6 +11259,8 @@ export interface components {
|
|
|
11118
11259
|
repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
|
|
11119
11260
|
/** @description Latest depth-scan and week-reconcile summary from stored activity rows. Null when neither event exists. The coverage GET does not run a scan. */
|
|
11120
11261
|
selfHeal?: components["schemas"]["IngestCoverageProductivitySelfHealDto"] | null;
|
|
11262
|
+
/** @description Org-ledger ship-weight scoring for the Home-aligned window. Null when metrics cannot be loaded. Separate from productivity backfill phase / Backfill complete. */
|
|
11263
|
+
shipWeightScoring?: components["schemas"]["IngestCoverageShipWeightScoringDto"] | null;
|
|
11121
11264
|
/**
|
|
11122
11265
|
* @description Whether the latest depth-scan sample counts as source-verified. unverified when phase is not complete or no depth scan has completed. stale when phase is complete and the scan is at least 7 days old. insufficient_sample when a fresh scan has no usable GitHub merge count. below_target when that fresh minimum capture is under 90. verified when it is 90 or higher. Other pipeline kinds omit this field.
|
|
11123
11266
|
* @enum {string}
|
|
@@ -13725,6 +13868,12 @@ export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigD
|
|
|
13725
13868
|
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13726
13869
|
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13727
13870
|
export type WorkspaceSsoConfigDto = components['schemas']['WorkspaceSsoConfigDto'];
|
|
13871
|
+
export type WorkspaceSsoRequestDto = components['schemas']['WorkspaceSsoRequestDto'];
|
|
13872
|
+
export type AdminEnterpriseSsoPendingListDto = components['schemas']['AdminEnterpriseSsoPendingListDto'];
|
|
13873
|
+
export type AdminEnterpriseSsoPendingItemDto = components['schemas']['AdminEnterpriseSsoPendingItemDto'];
|
|
13874
|
+
export type AdminEnterpriseSsoApplyRequestDto = components['schemas']['AdminEnterpriseSsoApplyRequestDto'];
|
|
13875
|
+
export type AdminEnterpriseSsoApplyResponseDto = components['schemas']['AdminEnterpriseSsoApplyResponseDto'];
|
|
13876
|
+
export type AdminEnterpriseSsoRejectRequestDto = components['schemas']['AdminEnterpriseSsoRejectRequestDto'];
|
|
13728
13877
|
export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
|
|
13729
13878
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13730
13879
|
export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
|
|
@@ -14089,6 +14238,7 @@ export type ProductivityDualVcsCutoverPatchDto = components['schemas']['Producti
|
|
|
14089
14238
|
export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
|
|
14090
14239
|
export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
|
|
14091
14240
|
export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
|
|
14241
|
+
export type IngestCoverageShipWeightScoringDto = components['schemas']['IngestCoverageShipWeightScoringDto'];
|
|
14092
14242
|
export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
|
|
14093
14243
|
export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
|
|
14094
14244
|
export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
|
|
@@ -17282,11 +17432,11 @@ export interface operations {
|
|
|
17282
17432
|
};
|
|
17283
17433
|
requestBody: {
|
|
17284
17434
|
content: {
|
|
17285
|
-
"application/json": components["schemas"]["
|
|
17435
|
+
"application/json": components["schemas"]["WorkspaceSsoRequestDto"];
|
|
17286
17436
|
};
|
|
17287
17437
|
};
|
|
17288
17438
|
responses: {
|
|
17289
|
-
/** @description
|
|
17439
|
+
/** @description Pending request persisted */
|
|
17290
17440
|
204: {
|
|
17291
17441
|
headers: {
|
|
17292
17442
|
[name: string]: unknown;
|
|
@@ -17321,7 +17471,137 @@ export interface operations {
|
|
|
17321
17471
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17322
17472
|
};
|
|
17323
17473
|
};
|
|
17324
|
-
/** @description
|
|
17474
|
+
/** @description Domain conflict or SSO already active */
|
|
17475
|
+
409: {
|
|
17476
|
+
headers: {
|
|
17477
|
+
[name: string]: unknown;
|
|
17478
|
+
};
|
|
17479
|
+
content: {
|
|
17480
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17481
|
+
};
|
|
17482
|
+
};
|
|
17483
|
+
};
|
|
17484
|
+
};
|
|
17485
|
+
listAdminEnterpriseSsoPending: {
|
|
17486
|
+
parameters: {
|
|
17487
|
+
query?: never;
|
|
17488
|
+
header?: never;
|
|
17489
|
+
path?: never;
|
|
17490
|
+
cookie?: never;
|
|
17491
|
+
};
|
|
17492
|
+
requestBody?: never;
|
|
17493
|
+
responses: {
|
|
17494
|
+
/** @description Pending queue */
|
|
17495
|
+
200: {
|
|
17496
|
+
headers: {
|
|
17497
|
+
[name: string]: unknown;
|
|
17498
|
+
};
|
|
17499
|
+
content: {
|
|
17500
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoPendingListDto"];
|
|
17501
|
+
};
|
|
17502
|
+
};
|
|
17503
|
+
401: components["responses"]["Unauthorized"];
|
|
17504
|
+
403: components["responses"]["Forbidden"];
|
|
17505
|
+
};
|
|
17506
|
+
};
|
|
17507
|
+
postAdminEnterpriseSsoApply: {
|
|
17508
|
+
parameters: {
|
|
17509
|
+
query?: never;
|
|
17510
|
+
header?: never;
|
|
17511
|
+
path: {
|
|
17512
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17513
|
+
};
|
|
17514
|
+
cookie?: never;
|
|
17515
|
+
};
|
|
17516
|
+
requestBody?: {
|
|
17517
|
+
content: {
|
|
17518
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoApplyRequestDto"];
|
|
17519
|
+
};
|
|
17520
|
+
};
|
|
17521
|
+
responses: {
|
|
17522
|
+
/** @description Provider created and workspace activated */
|
|
17523
|
+
200: {
|
|
17524
|
+
headers: {
|
|
17525
|
+
[name: string]: unknown;
|
|
17526
|
+
};
|
|
17527
|
+
content: {
|
|
17528
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoApplyResponseDto"];
|
|
17529
|
+
};
|
|
17530
|
+
};
|
|
17531
|
+
/** @description Invalid pending payload */
|
|
17532
|
+
400: {
|
|
17533
|
+
headers: {
|
|
17534
|
+
[name: string]: unknown;
|
|
17535
|
+
};
|
|
17536
|
+
content: {
|
|
17537
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17538
|
+
};
|
|
17539
|
+
};
|
|
17540
|
+
401: components["responses"]["Unauthorized"];
|
|
17541
|
+
403: components["responses"]["Forbidden"];
|
|
17542
|
+
/** @description Workspace not found */
|
|
17543
|
+
404: {
|
|
17544
|
+
headers: {
|
|
17545
|
+
[name: string]: unknown;
|
|
17546
|
+
};
|
|
17547
|
+
content: {
|
|
17548
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17549
|
+
};
|
|
17550
|
+
};
|
|
17551
|
+
/** @description Not pending */
|
|
17552
|
+
409: {
|
|
17553
|
+
headers: {
|
|
17554
|
+
[name: string]: unknown;
|
|
17555
|
+
};
|
|
17556
|
+
content: {
|
|
17557
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17558
|
+
};
|
|
17559
|
+
};
|
|
17560
|
+
/** @description ThinkAI Auth rejected provider create */
|
|
17561
|
+
502: {
|
|
17562
|
+
headers: {
|
|
17563
|
+
[name: string]: unknown;
|
|
17564
|
+
};
|
|
17565
|
+
content: {
|
|
17566
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17567
|
+
};
|
|
17568
|
+
};
|
|
17569
|
+
};
|
|
17570
|
+
};
|
|
17571
|
+
postAdminEnterpriseSsoReject: {
|
|
17572
|
+
parameters: {
|
|
17573
|
+
query?: never;
|
|
17574
|
+
header?: never;
|
|
17575
|
+
path: {
|
|
17576
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17577
|
+
};
|
|
17578
|
+
cookie?: never;
|
|
17579
|
+
};
|
|
17580
|
+
requestBody?: {
|
|
17581
|
+
content: {
|
|
17582
|
+
"application/json": components["schemas"]["AdminEnterpriseSsoRejectRequestDto"];
|
|
17583
|
+
};
|
|
17584
|
+
};
|
|
17585
|
+
responses: {
|
|
17586
|
+
/** @description Rejected */
|
|
17587
|
+
204: {
|
|
17588
|
+
headers: {
|
|
17589
|
+
[name: string]: unknown;
|
|
17590
|
+
};
|
|
17591
|
+
content?: never;
|
|
17592
|
+
};
|
|
17593
|
+
401: components["responses"]["Unauthorized"];
|
|
17594
|
+
403: components["responses"]["Forbidden"];
|
|
17595
|
+
/** @description Workspace not found */
|
|
17596
|
+
404: {
|
|
17597
|
+
headers: {
|
|
17598
|
+
[name: string]: unknown;
|
|
17599
|
+
};
|
|
17600
|
+
content: {
|
|
17601
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17602
|
+
};
|
|
17603
|
+
};
|
|
17604
|
+
/** @description Not pending */
|
|
17325
17605
|
409: {
|
|
17326
17606
|
headers: {
|
|
17327
17607
|
[name: string]: unknown;
|