@thinkai/tai-api-contract 2.54.0 → 2.56.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.
@@ -399,6 +399,26 @@ export interface paths {
399
399
  patch?: never;
400
400
  trace?: never;
401
401
  };
402
+ "/workspaces/{workspaceId}/org-chart/members/me": {
403
+ parameters: {
404
+ query?: never;
405
+ header?: never;
406
+ path?: never;
407
+ cookie?: never;
408
+ };
409
+ get?: never;
410
+ put?: never;
411
+ post?: never;
412
+ delete?: never;
413
+ options?: never;
414
+ head?: never;
415
+ /**
416
+ * Update current user's org chart member row
417
+ * @description Updates the signed-in user's row in the workspace org chart snapshot (`thinkai_org_structure`), matched by work email. Any workspace member may update their own row; workspace editor role is not required.
418
+ */
419
+ patch: operations["patchMyOrgChartMember"];
420
+ trace?: never;
421
+ };
402
422
  "/workspaces/{workspaceId}/config": {
403
423
  parameters: {
404
424
  query?: never;
@@ -1658,6 +1678,26 @@ export interface paths {
1658
1678
  patch?: never;
1659
1679
  trace?: never;
1660
1680
  };
1681
+ "/workspaces/{workspaceId}/agentic-foundation/repo-scope": {
1682
+ parameters: {
1683
+ query?: never;
1684
+ header?: never;
1685
+ path?: never;
1686
+ cookie?: never;
1687
+ };
1688
+ get?: never;
1689
+ /**
1690
+ * Update Agentic Foundation repository scope
1691
+ * @description Bulk include/exclude materialized repos from Agentic Foundation by toggling the existing `user_removed` archive state. Excluded repos remain integrated for productivity metrics. Only workspace admins may call this endpoint. Partial failures are reported per repo.
1692
+ */
1693
+ put: operations["putAgenticFoundationRepoScope"];
1694
+ post?: never;
1695
+ delete?: never;
1696
+ options?: never;
1697
+ head?: never;
1698
+ patch?: never;
1699
+ trace?: never;
1700
+ };
1661
1701
  "/workspaces/{workspaceId}/agentic-foundation/dashboard": {
1662
1702
  parameters: {
1663
1703
  query?: never;
@@ -2586,6 +2626,16 @@ export interface components {
2586
2626
  /** @description Bitbucket account UUID (e.g. "{aeefb6b0-...}") to attribute merged PRs and reviews to this person in productivity ingest. Preferred over bitbucketNickname — Bitbucket PR payloads expose a stable uuid but not nickname. Resolves to the same person_id (email) as githubUsername. */
2587
2627
  bitbucketUuid?: string;
2588
2628
  };
2629
+ UpdateMyOrgChartMemberBodyDto: {
2630
+ name?: string;
2631
+ title?: string;
2632
+ department?: string;
2633
+ team?: string;
2634
+ location?: string;
2635
+ githubUsername?: string;
2636
+ bitbucketNickname?: string;
2637
+ bitbucketUuid?: string;
2638
+ };
2589
2639
  OrgChartImportResultDto: {
2590
2640
  persons: components["schemas"]["OrgChartPersonDto"][];
2591
2641
  errors: string[];
@@ -4639,10 +4689,10 @@ export interface components {
4639
4689
  */
4640
4690
  archivedAt?: string | null;
4641
4691
  /**
4642
- * @description Why the repo was archived. Only present when `archivedAt` is set.
4692
+ * @description Why the repo was archived. `user_removed` means excluded from Agentic Foundation scope only. Only present when `archivedAt` is set.
4643
4693
  * @enum {string|null}
4644
4694
  */
4645
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
4695
+ archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
4646
4696
  /**
4647
4697
  * @description Whether the repo can be analyzed (#44/#729). Language support no longer makes a repo `ineligible` — a missing v1-supported stack is surfaced via `warnings` and the repo stays analyzable. It becomes `ineligible` when the most recent scan hit a hard size/file-count limit (e.g. code-size or file-count exceeded): the repo is then restricted here too so this surface matches the GitHub connect list's size gate after the scan. Null until the first sync/scan computes it.
4648
4698
  * @enum {string|null}
@@ -4697,7 +4747,7 @@ export interface components {
4697
4747
  /** Format: date-time */
4698
4748
  archivedAt?: string | null;
4699
4749
  /** @enum {string|null} */
4700
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
4750
+ archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
4701
4751
  /**
4702
4752
  * @description See RepoReadinessScoreDto.eligibilityStatus. Language support is advisory (#729) and surfaced via `warnings`.
4703
4753
  * @enum {string|null}
@@ -5223,6 +5273,34 @@ export interface components {
5223
5273
  */
5224
5274
  runId?: string | null;
5225
5275
  };
5276
+ PutAgenticFoundationRepoScopeChangeDto: {
5277
+ /** Format: uuid */
5278
+ repoId: string;
5279
+ /** @description `true` to include in Agentic Foundation scope (unarchive user_removed). `false` to exclude (soft-archive with archived_reason user_removed). */
5280
+ included: boolean;
5281
+ };
5282
+ PutAgenticFoundationRepoScopeBodyDto: {
5283
+ changes: components["schemas"]["PutAgenticFoundationRepoScopeChangeDto"][];
5284
+ };
5285
+ PutAgenticFoundationRepoScopeAppliedDto: {
5286
+ /** Format: uuid */
5287
+ repoId: string;
5288
+ /** @enum {string} */
5289
+ status: "Active" | "Inactive";
5290
+ /** Format: uuid */
5291
+ runId?: string | null;
5292
+ };
5293
+ PutAgenticFoundationRepoScopeFailureDto: {
5294
+ /** Format: uuid */
5295
+ repoId: string;
5296
+ /** @enum {string} */
5297
+ code: "not_found" | "scan_in_progress" | "not_archived" | "already_active" | "system_archived" | "forbidden";
5298
+ message: string;
5299
+ };
5300
+ PutAgenticFoundationRepoScopeResponseDto: {
5301
+ applied: components["schemas"]["PutAgenticFoundationRepoScopeAppliedDto"][];
5302
+ failures: components["schemas"]["PutAgenticFoundationRepoScopeFailureDto"][];
5303
+ };
5226
5304
  /**
5227
5305
  * @description Type of workspace lifecycle event.
5228
5306
  * @enum {string}
@@ -5549,6 +5627,7 @@ export type OrgChartTreeNodeDto = components['schemas']['OrgChartTreeNodeDto'];
5549
5627
  export type ScoringOrgChartDto = components['schemas']['ScoringOrgChartDto'];
5550
5628
  export type OrgChartDto = components['schemas']['OrgChartDto'];
5551
5629
  export type OrgChartPersonDto = components['schemas']['OrgChartPersonDto'];
5630
+ export type UpdateMyOrgChartMemberBodyDto = components['schemas']['UpdateMyOrgChartMemberBodyDto'];
5552
5631
  export type OrgChartImportResultDto = components['schemas']['OrgChartImportResultDto'];
5553
5632
  export type OrgChartSaveResultDto = components['schemas']['OrgChartSaveResultDto'];
5554
5633
  export type OrgStructureSourceBodyDto = components['schemas']['OrgStructureSourceBodyDto'];
@@ -5785,6 +5864,11 @@ export type YourAiJourneyAiSpendWeekDto = components['schemas']['YourAiJourneyAi
5785
5864
  export type YourAiJourneyAiSpendDto = components['schemas']['YourAiJourneyAiSpendDto'];
5786
5865
  export type PatchRepoArchiveBodyDto = components['schemas']['PatchRepoArchiveBodyDto'];
5787
5866
  export type PatchRepoArchiveResponseDto = components['schemas']['PatchRepoArchiveResponseDto'];
5867
+ export type PutAgenticFoundationRepoScopeChangeDto = components['schemas']['PutAgenticFoundationRepoScopeChangeDto'];
5868
+ export type PutAgenticFoundationRepoScopeBodyDto = components['schemas']['PutAgenticFoundationRepoScopeBodyDto'];
5869
+ export type PutAgenticFoundationRepoScopeAppliedDto = components['schemas']['PutAgenticFoundationRepoScopeAppliedDto'];
5870
+ export type PutAgenticFoundationRepoScopeFailureDto = components['schemas']['PutAgenticFoundationRepoScopeFailureDto'];
5871
+ export type PutAgenticFoundationRepoScopeResponseDto = components['schemas']['PutAgenticFoundationRepoScopeResponseDto'];
5788
5872
  export type ActivityLogEventTypeDto = components['schemas']['ActivityLogEventTypeDto'];
5789
5873
  export type ActivityLogActorDto = components['schemas']['ActivityLogActorDto'];
5790
5874
  export type ActivityLogEntryDto = components['schemas']['ActivityLogEntryDto'];
@@ -6988,6 +7072,52 @@ export interface operations {
6988
7072
  403: components["responses"]["Forbidden"];
6989
7073
  };
6990
7074
  };
7075
+ patchMyOrgChartMember: {
7076
+ parameters: {
7077
+ query?: never;
7078
+ header?: never;
7079
+ path: {
7080
+ workspaceId: components["parameters"]["WorkspaceId"];
7081
+ };
7082
+ cookie?: never;
7083
+ };
7084
+ requestBody: {
7085
+ content: {
7086
+ "application/json": components["schemas"]["UpdateMyOrgChartMemberBodyDto"];
7087
+ };
7088
+ };
7089
+ responses: {
7090
+ /** @description Updated org chart member row */
7091
+ 200: {
7092
+ headers: {
7093
+ [name: string]: unknown;
7094
+ };
7095
+ content: {
7096
+ "application/json": components["schemas"]["OrgChartPersonDto"];
7097
+ };
7098
+ };
7099
+ /** @description Invalid request body */
7100
+ 400: {
7101
+ headers: {
7102
+ [name: string]: unknown;
7103
+ };
7104
+ content: {
7105
+ "application/json": components["schemas"]["ErrorMessageDto"];
7106
+ };
7107
+ };
7108
+ 401: components["responses"]["Unauthorized"];
7109
+ 403: components["responses"]["Forbidden"];
7110
+ /** @description Org chart not found (no persisted chart for the workspace), or the caller's email is not present in the org chart roster. */
7111
+ 404: {
7112
+ headers: {
7113
+ [name: string]: unknown;
7114
+ };
7115
+ content: {
7116
+ "application/json": components["schemas"]["ErrorMessageDto"];
7117
+ };
7118
+ };
7119
+ };
7120
+ };
6991
7121
  getWorkspaceConfig: {
6992
7122
  parameters: {
6993
7123
  query?: never;
@@ -10239,6 +10369,66 @@ export interface operations {
10239
10369
  };
10240
10370
  };
10241
10371
  };
10372
+ putAgenticFoundationRepoScope: {
10373
+ parameters: {
10374
+ query?: never;
10375
+ header?: never;
10376
+ path: {
10377
+ workspaceId: components["parameters"]["WorkspaceId"];
10378
+ };
10379
+ cookie?: never;
10380
+ };
10381
+ requestBody: {
10382
+ content: {
10383
+ /**
10384
+ * @example {
10385
+ * "changes": [
10386
+ * {
10387
+ * "repoId": "00000000-0000-0000-0000-000000000101",
10388
+ * "included": false
10389
+ * },
10390
+ * {
10391
+ * "repoId": "00000000-0000-0000-0000-000000000102",
10392
+ * "included": true
10393
+ * }
10394
+ * ]
10395
+ * }
10396
+ */
10397
+ "application/json": components["schemas"]["PutAgenticFoundationRepoScopeBodyDto"];
10398
+ };
10399
+ };
10400
+ responses: {
10401
+ /** @description Scope changes applied (possibly with per-repo failures) */
10402
+ 200: {
10403
+ headers: {
10404
+ [name: string]: unknown;
10405
+ };
10406
+ content: {
10407
+ "application/json": components["schemas"]["PutAgenticFoundationRepoScopeResponseDto"];
10408
+ };
10409
+ };
10410
+ /** @description Invalid request body */
10411
+ 400: {
10412
+ headers: {
10413
+ [name: string]: unknown;
10414
+ };
10415
+ content: {
10416
+ "application/json": components["schemas"]["ErrorMessageDto"];
10417
+ };
10418
+ };
10419
+ 401: components["responses"]["Unauthorized"];
10420
+ 403: components["responses"]["Forbidden"];
10421
+ /** @description Workspace does not exist */
10422
+ 404: {
10423
+ headers: {
10424
+ [name: string]: unknown;
10425
+ };
10426
+ content: {
10427
+ "application/json": components["schemas"]["ErrorMessageDto"];
10428
+ };
10429
+ };
10430
+ };
10431
+ };
10242
10432
  getAgenticFoundationDashboard: {
10243
10433
  parameters: {
10244
10434
  query?: never;