@thinkai/tai-api-contract 2.182.0 → 2.183.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.
@@ -77,7 +77,7 @@ export interface paths {
77
77
  put?: never;
78
78
  /**
79
79
  * Evaluate assessment preflight from server-loaded evidence
80
- * @description Loads repository scope, readiness scan age, and window coverage for one workspace. Client fields for scope, scans, windows, and engineer counts are ignored, so an unscanned source cannot be marked fresh. The five-business-day clock uses Monday–Friday in America/New_York and is stored on the first passing result. A later blocker does not clear it. Active-engineer counts stay unloaded until stored activity can be counted.
80
+ * @description Loads repository scope, readiness scan age, and window coverage for one workspace. Client fields for scope, scans, windows, and engineer counts are ignored, so an unscanned source cannot be marked fresh. The five-business-day clock uses Monday–Friday in America/New_York and is stored on the first passing result. A later blocker does not clear it. The active-engineer count is loaded from stored commit authors and merged pull requests in the 90-day baseline window (bots and identities not on the org chart excluded). It stays unloaded until commit ingest covers the whole window for every non-archived repository.
81
81
  * **Authorization:** Bearer JWT required. Caller email must appear in `PLATFORM_ADMIN_EMAILS`.
82
82
  */
83
83
  post: operations["runLiveAssessmentPreflight"];
@@ -129,6 +129,56 @@ export interface paths {
129
129
  patch?: never;
130
130
  trace?: never;
131
131
  };
132
+ "/workspaces/{workspaceId}/assessment-manifest/validate": {
133
+ parameters: {
134
+ query?: never;
135
+ header?: never;
136
+ path?: never;
137
+ cookie?: never;
138
+ };
139
+ get?: never;
140
+ put?: never;
141
+ /**
142
+ * Validate this workspace's assessment manifest
143
+ * @description Runs the same fail-closed manifest check as `runAssessmentManifestValidation` for the workspace in the path. The server ignores `manifest.validation` and `manifest.watermark` from the client. `buyerDeliverable` is true only when the result is validated and `shareMode` is internal. An external share-safe result can be validated and is never the buyer file. Unset or exceeded tolerances fail. No numeric tolerance is assumed. GitLab and Bitbucket fixtures are not part of this operation.
144
+ * `workspaceId` and `expectedWorkspaceId` in the body must equal the path workspace. A body that names another workspace is rejected. Comparing two workspaces stays on `runAssessmentManifestValidation`.
145
+ * **Authorization:** Bearer JWT required. Caller must be a workspace admin, or a platform admin who is a member of this workspace. Members who are not workspace admins receive 403. Non-members of an existing workspace receive 403. Unknown workspaces receive 404.
146
+ */
147
+ post: operations["validateWorkspaceAssessmentManifest"];
148
+ delete?: never;
149
+ options?: never;
150
+ head?: never;
151
+ patch?: never;
152
+ trace?: never;
153
+ };
154
+ "/workspaces/{workspaceId}/assessment-manifest/build": {
155
+ parameters: {
156
+ query?: never;
157
+ header?: never;
158
+ path?: never;
159
+ cookie?: never;
160
+ };
161
+ get?: never;
162
+ put?: never;
163
+ /**
164
+ * Build and validate this workspace's assessment manifest from stored evidence
165
+ * @description The client sends only the offer, share mode, the render status of each selected section, and the matched-period ROI chapter it printed. The server fills scope, excluded repositories, windows, sources with freshness, consent, `expectedRepositoryIds`, `soldWindowComplete`, `premiumAiAssessable`, and tolerances from stored data, then runs the same fail-closed check as `validateWorkspaceAssessmentManifest`.
166
+ *
167
+ * Scope is the non-archived workspace repositories. Above 50 repositories or 500 active engineers fails (custom quote). For the premium offer, repositories without merged pull requests in both matched windows are listed in `excluded` and left out of scope. Baseline windows: `pre` is null, `post` is the 90 calendar days ending yesterday (America/New_York), and `transitionDays` is 0. Premium windows come from the confirmed rollout day. Freshness: source control 24 hours, AI usage 7 days, readiness scans 30 days. Aggregate-use consent is reported as stored; no row is `unset`.
168
+ *
169
+ * `premiumAiAssessable` needs fresh Cursor, Claude, or Copilot usage in the post window and complete matched-period evidence. A live ROI refusal for incomplete data blocks validation (`rollout_unset`, `window_missing`, `ship_weight_incomplete`, `active_engineers_unknown`, `confounder_inputs_missing`, `normalization_unset`, `output_unit_mismatch`). A refusal that is a legitimate result does not (`non_positive_output`, `confounder`, `missing_cost`, `non_usd_cost`, `cost_not_attributable`); the report prints "not assessable" with no figure. The premium `roi` tolerance is `unset` when the ROI section did not render or `roi` is missing, `exceeded` when the printed chapter differs from the server result (USD figures within the dictionary money tolerance), and `within` otherwise. Named-person sections always fail.
170
+ *
171
+ * Send `result.contentHash` with the PDF to `storeAssessmentReport`, which rebuilds the manifest and stores only when it is still a validated internal buyer file with the same hash.
172
+ *
173
+ * **Authorization:** Bearer JWT required. Caller must be a workspace admin, or a platform admin who is a member of this workspace. Members who are not workspace admins receive 403. Non-members of an existing workspace receive 403. Unknown workspaces receive 404.
174
+ */
175
+ post: operations["buildWorkspaceAssessmentManifest"];
176
+ delete?: never;
177
+ options?: never;
178
+ head?: never;
179
+ patch?: never;
180
+ trace?: never;
181
+ };
132
182
  "/admin/readiness/token-usage": {
133
183
  parameters: {
134
184
  query?: never;
@@ -2524,6 +2574,50 @@ export interface paths {
2524
2574
  patch?: never;
2525
2575
  trace?: never;
2526
2576
  };
2577
+ "/workspaces/{workspaceId}/assessment-rollout": {
2578
+ parameters: {
2579
+ query?: never;
2580
+ header?: never;
2581
+ path?: never;
2582
+ cookie?: never;
2583
+ };
2584
+ /**
2585
+ * Read the customer-confirmed assessment rollout day
2586
+ * @description Returns the AI rollout day the customer confirmed for the Agentic AI ROI assessment, interpreted at 00:00 America/New_York, plus who set it and when. This is the only rollout source for the matched pre and post windows. `rolloutDay` is null until an admin sets it. Any workspace member may read it.
2587
+ */
2588
+ get: operations["getWorkspaceAssessmentRollout"];
2589
+ /**
2590
+ * Set the customer-confirmed assessment rollout day
2591
+ * @description Workspace admins, or platform admins who are workspace members, set the rollout day. The day must be a real calendar date that has already started in America/New_York. Each save records the caller and time and writes one `workspace.assessment_rollout.changed` activity-log row.
2592
+ */
2593
+ put: operations["putWorkspaceAssessmentRollout"];
2594
+ post?: never;
2595
+ delete?: never;
2596
+ options?: never;
2597
+ head?: never;
2598
+ patch?: never;
2599
+ trace?: never;
2600
+ };
2601
+ "/workspaces/{workspaceId}/assessment-roi": {
2602
+ parameters: {
2603
+ query?: never;
2604
+ header?: never;
2605
+ path?: never;
2606
+ cookie?: never;
2607
+ };
2608
+ /**
2609
+ * Read the matched-period ROI from stored evidence
2610
+ * @description Derives the 90-day pre window, the 14-day transition, and the 90-day post window from the confirmed rollout day, then loads calendar-day coverage, merged pull request Ship Weight per window, and recorded USD AI spend for the post window. The figure is USD cost per incremental normalized Ship Weight (per active engineer and Mon–Fri America/New_York working day). Fails closed: `status` is `not_assessable` with a `reason` when a window is incomplete, cost is missing, non-USD, or not attributable by day, Ship Weight is unscored, active engineers are not countable, incremental output is not positive, or a confounder is flagged or cannot be checked. Cost is never estimated. Any workspace member may read it.
2611
+ */
2612
+ get: operations["getWorkspaceAssessmentRoi"];
2613
+ put?: never;
2614
+ post?: never;
2615
+ delete?: never;
2616
+ options?: never;
2617
+ head?: never;
2618
+ patch?: never;
2619
+ trace?: never;
2620
+ };
2527
2621
  "/workspaces/{workspaceId}/aggregate-use-consent": {
2528
2622
  parameters: {
2529
2623
  query?: never;
@@ -2568,6 +2662,130 @@ export interface paths {
2568
2662
  patch?: never;
2569
2663
  trace?: never;
2570
2664
  };
2665
+ "/workspaces/{workspaceId}/assessment-reports": {
2666
+ parameters: {
2667
+ query?: never;
2668
+ header?: never;
2669
+ path?: never;
2670
+ cookie?: never;
2671
+ };
2672
+ /**
2673
+ * List stored assessment reports and their secure links
2674
+ * @description Workspace admin (or platform admin who is a workspace member). Lists stored buyer PDFs (metadata only, never bytes) with every secure link grant. Link tokens and token hashes are never returned. A hidden report stays listed: `hidden_restorable` until `restoreUntil`, then `restore_window_ended`. The restore window is restore capability, not erasure. Responses carry `Cache-Control: no-store`.
2675
+ */
2676
+ get: operations["listAssessmentReports"];
2677
+ put?: never;
2678
+ /**
2679
+ * Store a validated buyer PDF for secure delivery
2680
+ * @description Workspace admin (or platform admin who is a workspace member). The client never supplies evidence: the server rebuilds the manifest from stored data with the same builder as `buildWorkspaceAssessmentManifest`, using only `build` (offer, share mode, section status, printed ROI), and stores the PDF only when `buyerDeliverable` is true (validated and internal) and the rebuilt `contentHash` equals the one sent. An external share-safe file is never stored here. The PDF is encrypted with AES-256-GCM and kept in Postgres with its sha256; it is limited to 10 MiB. Records `report.assessment_stored` without report content.
2681
+ */
2682
+ post: operations["storeAssessmentReport"];
2683
+ delete?: never;
2684
+ options?: never;
2685
+ head?: never;
2686
+ patch?: never;
2687
+ trace?: never;
2688
+ };
2689
+ "/workspaces/{workspaceId}/assessment-reports/{reportId}/links": {
2690
+ parameters: {
2691
+ query?: never;
2692
+ header?: never;
2693
+ path?: never;
2694
+ cookie?: never;
2695
+ };
2696
+ get?: never;
2697
+ put?: never;
2698
+ /**
2699
+ * Create a secure link and email it to a workspace member
2700
+ * @description Workspace admin (or platform admin who is a workspace member). Creates one link grant for a current workspace member and emails them the link only: generic text and `{siteUrl}/reports/secure?t=<opaque token>`. The email carries no PDF attachment, report name, metrics, repository, or person names. Only the sha256 of the token is stored and the token is never returned. Expiry defaults to 14 days and can be shorter. When SMTP is not configured the grant still stands and `email` says why it was skipped. Hidden reports cannot be shared (`409 report_hidden`).
2701
+ */
2702
+ post: operations["createAssessmentReportLink"];
2703
+ delete?: never;
2704
+ options?: never;
2705
+ head?: never;
2706
+ patch?: never;
2707
+ trace?: never;
2708
+ };
2709
+ "/workspaces/{workspaceId}/assessment-reports/{reportId}/links/{grantId}/revoke": {
2710
+ parameters: {
2711
+ query?: never;
2712
+ header?: never;
2713
+ path?: never;
2714
+ cookie?: never;
2715
+ };
2716
+ get?: never;
2717
+ put?: never;
2718
+ /**
2719
+ * Revoke a secure link
2720
+ * @description Workspace admin (or platform admin who is a workspace member). The link stops working immediately. Idempotent: revoking again keeps the first `revokedAt`. Revoking a link does not affect a file the recipient already downloaded. Records `report.assessment_link_revoked`.
2721
+ */
2722
+ post: operations["revokeAssessmentReportLink"];
2723
+ delete?: never;
2724
+ options?: never;
2725
+ head?: never;
2726
+ patch?: never;
2727
+ trace?: never;
2728
+ };
2729
+ "/workspaces/{workspaceId}/assessment-reports/{reportId}/hide": {
2730
+ parameters: {
2731
+ query?: never;
2732
+ header?: never;
2733
+ path?: never;
2734
+ cookie?: never;
2735
+ };
2736
+ get?: never;
2737
+ put?: never;
2738
+ /**
2739
+ * Hide a stored report
2740
+ * @description Workspace admin (or platform admin who is a workspace member). Same semantics as workspace delete: the report is hidden immediately and every link stops downloading. It can be restored for 30 days (`restoreUntil`). That window is restore capability, not erasure; no backup purge date is promised, and a file the buyer already downloaded stays with them. Idempotent. Records `report.assessment_hidden`.
2741
+ */
2742
+ post: operations["hideAssessmentReport"];
2743
+ delete?: never;
2744
+ options?: never;
2745
+ head?: never;
2746
+ patch?: never;
2747
+ trace?: never;
2748
+ };
2749
+ "/workspaces/{workspaceId}/assessment-reports/{reportId}/restore": {
2750
+ parameters: {
2751
+ query?: never;
2752
+ header?: never;
2753
+ path?: never;
2754
+ cookie?: never;
2755
+ };
2756
+ get?: never;
2757
+ put?: never;
2758
+ /**
2759
+ * Restore a hidden report within the 30-day window
2760
+ * @description Workspace admin (or platform admin who is a workspace member). Allowed only before `restoreUntil`; afterwards it fails with `409 restore_window_ended`. Links that were not revoked or expired work again after restore. Records `report.assessment_restored`.
2761
+ */
2762
+ post: operations["restoreAssessmentReport"];
2763
+ delete?: never;
2764
+ options?: never;
2765
+ head?: never;
2766
+ patch?: never;
2767
+ trace?: never;
2768
+ };
2769
+ "/assessment-reports/secure": {
2770
+ parameters: {
2771
+ query?: never;
2772
+ header?: never;
2773
+ path?: never;
2774
+ cookie?: never;
2775
+ };
2776
+ /**
2777
+ * Download a stored report through a secure link
2778
+ * @description Bearer JWT required. The caller must be the link recipient and a current member of the report's workspace. Access follows `decideReportAccess`: `leaked_token`, `removed_member`, and `wrong_workspace` answer 403; `expired` and `revoked` answer 410; `invalid_grant` answers 404. A hidden report answers `410 report_hidden`. Every response carries `Cache-Control: no-store`. Records `report.assessment_downloaded` without report content.
2779
+ */
2780
+ get: operations["downloadAssessmentReport"];
2781
+ put?: never;
2782
+ post?: never;
2783
+ delete?: never;
2784
+ options?: never;
2785
+ head?: never;
2786
+ patch?: never;
2787
+ trace?: never;
2788
+ };
2571
2789
  "/workspaces/{workspaceId}/activity": {
2572
2790
  parameters: {
2573
2791
  query?: never;
@@ -4286,7 +4504,7 @@ export interface paths {
4286
4504
  put?: never;
4287
4505
  /**
4288
4506
  * Import org chart from Supabase storage path
4289
- * @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`. Required columns: employee_id, name, email, title, department, team, manager_id, location. Optional: github_username (GitHub login for productivity ingest), bitbucket_nickname, bitbucket_uuid, alternate_emails (comma-separated alternate work emails for AI tool spend attribution). Saving the SPA snapshot also materializes a scoring `org_chart` tree for team/person metrics when import members are present. Parse-only responses may include duplicateEmailWarnings, identityEmailPreview (cross-check against connected AI tool seat rosters), and importWarnings when roster preview is unavailable.
4507
+ * @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`. Required columns: employee_id, name, email, title, department, team, manager_id, location. Optional: github_username (GitHub login for productivity ingest), bitbucket_nickname, bitbucket_uuid, gitlab_username (GitLab.com or self-managed username), alternate_emails (comma-separated alternate work emails for AI tool spend attribution). Saving the SPA snapshot also materializes a scoring `org_chart` tree for team/person metrics when import members are present. Parse-only responses may include duplicateEmailWarnings, identityEmailPreview (cross-check against connected AI tool seat rosters), and importWarnings when roster preview is unavailable.
4290
4508
  */
4291
4509
  post: operations["postOrgChartImport"];
4292
4510
  delete?: never;
@@ -4743,6 +4961,46 @@ export interface paths {
4743
4961
  patch?: never;
4744
4962
  trace?: never;
4745
4963
  };
4964
+ "/workspaces/{workspaceId}/sources/discover": {
4965
+ parameters: {
4966
+ query?: never;
4967
+ header?: never;
4968
+ path?: never;
4969
+ cookie?: never;
4970
+ };
4971
+ get?: never;
4972
+ put?: never;
4973
+ /**
4974
+ * List repositories a GitLab or Bitbucket source can read (does not persist)
4975
+ * @description Lists projects (GitLab.com, self-managed GitLab) or repositories (Bitbucket Cloud, Bitbucket Data Center) for repository selection. Nothing is stored. Self-managed and Data Center `baseUrl` must be `https`, public, and without credentials; private, loopback, and link-local hosts are rejected before any request. `env:` token references are rejected for self-hosted providers and never resolved from the request for cloud providers. A blank or `***` token reuses the stored source with the same provider, host, and account, and requires the editor or admin role. The list covers the whole account (group or workspace/project key), not only `projects`/`repos`. `repoCap` is the standard repository cap (50); ingest refuses to auto-select more than that. Tokens are never returned.
4976
+ */
4977
+ post: operations["postWorkspaceVcsRepoDiscovery"];
4978
+ delete?: never;
4979
+ options?: never;
4980
+ head?: never;
4981
+ patch?: never;
4982
+ trace?: never;
4983
+ };
4984
+ "/workspaces/{workspaceId}/vcs-provider-coverage": {
4985
+ parameters: {
4986
+ query?: never;
4987
+ header?: never;
4988
+ path?: never;
4989
+ cookie?: never;
4990
+ };
4991
+ /**
4992
+ * GitLab and Bitbucket Data Coverage freshness (server-computed)
4993
+ * @description One row per configured GitLab or Bitbucket source. Freshness is computed on the server from batch-written sync rows and succeeded readiness runs; no request field can mark a row fresh. Git is fresh when the last complete ingest finished within `gitFreshnessHours` (24) and no error was recorded after it. A readiness scan is fresh within `readinessScanFreshnessDays` (30, America/New_York calendar days); `scansFresh` requires every in-scope repository to have a fresh scan. A source with an invalid base URL or missing account is `misconfigured`. Requires workspace membership.
4994
+ */
4995
+ get: operations["getWorkspaceVcsProviderCoverage"];
4996
+ put?: never;
4997
+ post?: never;
4998
+ delete?: never;
4999
+ options?: never;
5000
+ head?: never;
5001
+ patch?: never;
5002
+ trace?: never;
5003
+ };
4746
5004
  "/workspaces/{workspaceId}/ingest/productivity/repos/{slug}/retry": {
4747
5005
  parameters: {
4748
5006
  query?: never;
@@ -5067,6 +5325,81 @@ export interface paths {
5067
5325
  export type webhooks = Record<string, never>;
5068
5326
  export interface components {
5069
5327
  schemas: {
5328
+ /** @description Body of runAssessmentManifestValidation; buildWorkspaceAssessmentManifest returns the server-built object as `validation`. */
5329
+ AssessmentManifestValidationBodyDto: {
5330
+ manifest: {
5331
+ /** @enum {string} */
5332
+ offerId: "engineering_readiness_baseline" | "agentic_ai_roi";
5333
+ dictionaryVersion: string;
5334
+ /** @enum {string} */
5335
+ validation: "validated" | "not_validated";
5336
+ /** @enum {string} */
5337
+ shareMode: "internal" | "external";
5338
+ /** @enum {string|null} */
5339
+ watermark: "NOT VALIDATED" | "SAMPLE · SYNTHETIC DATA" | null;
5340
+ scope: {
5341
+ repositories: {
5342
+ id: string;
5343
+ name: string;
5344
+ }[];
5345
+ excluded: {
5346
+ id: string;
5347
+ name: string;
5348
+ reason: string;
5349
+ }[];
5350
+ };
5351
+ windows: {
5352
+ pre: {
5353
+ start: string;
5354
+ end: string;
5355
+ } | null;
5356
+ post: {
5357
+ start: string;
5358
+ end: string;
5359
+ } | null;
5360
+ transitionDays: number;
5361
+ };
5362
+ sources: {
5363
+ provider: string;
5364
+ status: string;
5365
+ freshAt: string | null;
5366
+ }[];
5367
+ consent: {
5368
+ /** @enum {string} */
5369
+ aggregateUse: "opt_in" | "opt_out" | "unset";
5370
+ recordedAt: string | null;
5371
+ };
5372
+ sections: {
5373
+ id: string;
5374
+ /** @enum {string} */
5375
+ status: "ok" | "failed" | "omitted";
5376
+ reason?: string;
5377
+ }[];
5378
+ };
5379
+ workspaceId: string;
5380
+ expectedWorkspaceId: string;
5381
+ expectedRepositoryIds: string[];
5382
+ soldWindowComplete: boolean;
5383
+ premiumAiAssessable: boolean;
5384
+ namedPersonSectionIds: string[];
5385
+ tolerances: {
5386
+ id: string;
5387
+ /** @enum {string} */
5388
+ status: "unset" | "exceeded" | "within";
5389
+ }[];
5390
+ };
5391
+ AssessmentManifestValidationResultDto: {
5392
+ buyerDeliverable: boolean;
5393
+ /** @enum {string} */
5394
+ validation: "validated" | "not_validated";
5395
+ /** @enum {string|null} */
5396
+ watermark: "NOT VALIDATED" | null;
5397
+ reasons: {
5398
+ code: string;
5399
+ message: string;
5400
+ }[];
5401
+ contentHash: string;
5402
+ };
5070
5403
  TeamsInstallUrlDto: {
5071
5404
  /** Format: uri */
5072
5405
  url: string;
@@ -5232,6 +5565,8 @@ export interface components {
5232
5565
  bitbucketNickname?: string;
5233
5566
  /** @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. */
5234
5567
  bitbucketUuid?: string;
5568
+ /** @description GitLab username (no @; GitLab.com or self-managed) to map merged merge requests and commits to this person in productivity ingest and the assessment active-engineer count. Stored lowercased. Resolves to the same person_id (email) as githubUsername. */
5569
+ gitlabUsername?: string;
5235
5570
  /** @description Optional comma-separated work emails that map to the same person for AI tool spend/usage (mirrors multi-login github_username). Primary email remains canonical person_id. */
5236
5571
  alternateEmails?: string;
5237
5572
  };
@@ -5262,6 +5597,7 @@ export interface components {
5262
5597
  githubUsername?: string;
5263
5598
  bitbucketNickname?: string;
5264
5599
  bitbucketUuid?: string;
5600
+ gitlabUsername?: string;
5265
5601
  /** @description Comma-separated alternate work emails for AI tool attribution. */
5266
5602
  alternateEmails?: string;
5267
5603
  };
@@ -7791,10 +8127,88 @@ export interface components {
7791
8127
  * @enum {string}
7792
8128
  */
7793
8129
  ReadinessDimensionId: "ai-agent-readiness" | "token-efficiency" | "repo-hygiene" | "stack-quality" | "tests-qa" | "observability" | "api-contracts" | "platform-governance" | "delivery";
8130
+ /**
8131
+ * @description `bitbucket_server` is Bitbucket Data Center. Self-hosted providers (`gitlab_self_managed`, `bitbucket_server`) always carry `hostBaseUrl`.
8132
+ * @enum {string}
8133
+ */
8134
+ ExternalVcsProviderDto: "gitlab_cloud" | "gitlab_self_managed" | "bitbucket_cloud" | "bitbucket_server";
8135
+ /** @description GitLab or Bitbucket tenant source entry. GitLab: optional `group` (full path) and `projects` (`group/sub/project`). Bitbucket: `workspace` (Cloud workspace or Data Center project key) and optional `repos` (repository slugs). `deployment` selects self-hosted; it then requires `baseUrl`. */
8136
+ GitVcsSourceDto: {
8137
+ /** @enum {string} */
8138
+ type: "gitlab" | "bitbucket";
8139
+ /** @enum {string} */
8140
+ deployment?: "cloud" | "self_managed" | "data_center";
8141
+ baseUrl?: string;
8142
+ group?: string;
8143
+ projects?: string[];
8144
+ workspace?: string;
8145
+ repos?: string[];
8146
+ /** @description Personal / project / HTTP access token, or `***` to reuse the stored token. */
8147
+ token?: string;
8148
+ } & {
8149
+ [key: string]: unknown;
8150
+ };
8151
+ VcsDiscoveredRepoDto: {
8152
+ /** @description `group/sub/project` (GitLab) or `workspace/repo` / `PROJECT/repo` (Bitbucket) */
8153
+ slug: string;
8154
+ name: string;
8155
+ defaultBranch: string | null;
8156
+ webUrl: string | null;
8157
+ };
8158
+ VcsRepoDiscoveryResponseDto: {
8159
+ provider: components["schemas"]["ExternalVcsProviderDto"];
8160
+ hostBaseUrl: string | null;
8161
+ /** @description GitLab group path (empty = token membership), Bitbucket workspace, or project key */
8162
+ account: string;
8163
+ /** @description True when the provider page limit was reached; the list is incomplete. */
8164
+ truncated: boolean;
8165
+ repoCap: number;
8166
+ repositories: components["schemas"]["VcsDiscoveredRepoDto"][];
8167
+ };
8168
+ VcsProviderCoverageRowDto: {
8169
+ provider: components["schemas"]["ExternalVcsProviderDto"];
8170
+ hostBaseUrl: string | null;
8171
+ account: string;
8172
+ selfHosted: boolean;
8173
+ /** @enum {string} */
8174
+ state: "fresh" | "stale" | "never_synced" | "error" | "misconfigured";
8175
+ /** @description Server-computed; true only when `state` is `fresh`. */
8176
+ isFresh: boolean;
8177
+ /** Format: date-time */
8178
+ lastIngestSuccessAt: string | null;
8179
+ lastErrorKind: string | null;
8180
+ /** Format: date-time */
8181
+ lastDiscoveryAt: string | null;
8182
+ discoveredRepoCount: number | null;
8183
+ /** @description Milliseconds past the Git freshness limit when `state` is `stale`. */
8184
+ staleForMs: number | null;
8185
+ /** @description In-scope repositories stored for this source. */
8186
+ repoCount: number;
8187
+ scannedRepoCount: number;
8188
+ freshScanRepoCount: number;
8189
+ scansFresh: boolean;
8190
+ /**
8191
+ * Format: date-time
8192
+ * @description Earliest merge time reached by the assessment merged-request history backfill for this source; null when no backfill window has been written.
8193
+ */
8194
+ mergedHistorySince: string | null;
8195
+ /**
8196
+ * Format: date-time
8197
+ * @description Instant from which every in-scope repository of this source has contiguous default-branch commit-author coverage (latest per-repo coverage start); null when any repository has no coverage.
8198
+ */
8199
+ commitHistorySince: string | null;
8200
+ };
8201
+ VcsProviderCoverageDto: {
8202
+ /** Format: date-time */
8203
+ generatedAt: string;
8204
+ gitFreshnessHours: number;
8205
+ readinessScanFreshnessDays: number;
8206
+ sources: components["schemas"]["VcsProviderCoverageRowDto"][];
8207
+ };
7794
8208
  RepoProviderDto: {
7795
8209
  /** @enum {string} */
7796
- kind: "github" | "bitbucket_cloud" | "bitbucket_server";
7797
- /** @description owner/repo (GitHub), workspace/repo_slug (Bitbucket Cloud), or PROJECT_KEY/repo_slug (Bitbucket Server) */
8210
+ kind: "github" | "bitbucket_cloud" | "bitbucket_server" | "gitlab_cloud" | "gitlab_self_managed";
8211
+ /** @description owner/repo (GitHub), workspace/repo_slug (Bitbucket Cloud), PROJECT_KEY/repo_slug (Bitbucket Server / Data Center), or group/sub/project (GitLab) */
7798
8212
  slug: string;
7799
8213
  /**
7800
8214
  * Format: uri
@@ -7806,7 +8220,7 @@ export interface components {
7806
8220
  externalId?: string | null;
7807
8221
  /**
7808
8222
  * Format: uri
7809
- * @description Required for bitbucket_server (self-hosted); null for cloud providers
8223
+ * @description Required for bitbucket_server and gitlab_self_managed (self-hosted); null for cloud providers
7810
8224
  */
7811
8225
  hostBaseUrl?: string | null;
7812
8226
  };
@@ -9155,11 +9569,7 @@ export interface components {
9155
9569
  * @description Type of workspace lifecycle event.
9156
9570
  * @enum {string}
9157
9571
  */
9158
- ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "workspace.aggregate_use.changed";
9159
- UnsetAssessmentDecisionDto: {
9160
- /** @enum {string} */
9161
- status: "unset";
9162
- };
9572
+ ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed";
9163
9573
  /** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
9164
9574
  AggregateUseNoticeStatusDto: {
9165
9575
  /** @enum {string} */
@@ -9167,14 +9577,130 @@ export interface components {
9167
9577
  /** @description Present only when `status` is `approved`. Send it back on opt-in. */
9168
9578
  version?: string;
9169
9579
  };
9170
- AggregateUseConsentDto: {
9580
+ /**
9581
+ * @description Confounder-relevant named event from the assessment dictionary.
9582
+ * @enum {string}
9583
+ */
9584
+ AssessmentNamedEventDto: "major_release" | "migration" | "acquisition" | "policy_change";
9585
+ AssessmentRolloutDto: {
9171
9586
  /**
9172
- * @description Saved choice. `unset` means the workspace never chose and is treated as opted out.
9173
- * @enum {string}
9587
+ * Format: date
9588
+ * @description Confirmed rollout day (`YYYY-MM-DD`); null until set.
9174
9589
  */
9175
- aggregateUse: "opt_in" | "opt_out" | "unset";
9176
- /** @description True only for `opt_in`. Benchmark and marketing extraction must check this. */
9177
- effective: boolean;
9590
+ rolloutDay: string | null;
9591
+ /** @enum {string} */
9592
+ timezone: "America/New_York";
9593
+ /** @enum {string} */
9594
+ boundary: "midnight";
9595
+ /**
9596
+ * Format: date-time
9597
+ * @description UTC instant of 00:00 America/New_York on `rolloutDay`.
9598
+ */
9599
+ startsAt: string | null;
9600
+ setBy: {
9601
+ /** Format: uuid */
9602
+ userId: string;
9603
+ displayName: string | null;
9604
+ } | null;
9605
+ /** Format: date-time */
9606
+ setAt: string | null;
9607
+ /** @description Named events confirmed during either matched window. Null means the customer or operator has not confirmed yet, so the ROI confounder check reports `confounder_inputs_missing`. An empty array confirms none occurred. */
9608
+ namedEvents: components["schemas"]["AssessmentNamedEventDto"][] | null;
9609
+ namedEventsConfirmedBy: {
9610
+ /** Format: uuid */
9611
+ userId: string;
9612
+ displayName: string | null;
9613
+ } | null;
9614
+ /** Format: date-time */
9615
+ namedEventsConfirmedAt: string | null;
9616
+ };
9617
+ AssessmentRolloutPutDto: {
9618
+ /**
9619
+ * Format: date
9620
+ * @description Real calendar date, not after today in America/New_York.
9621
+ */
9622
+ rolloutDay: string;
9623
+ /** @description Omit to leave the stored named-event confirmation unchanged. Send an empty array to confirm no named event occurred during either matched window, or the events that did. */
9624
+ namedEvents?: components["schemas"]["AssessmentNamedEventDto"][];
9625
+ };
9626
+ /**
9627
+ * @description Why the matched-period ROI is not assessable. `cost_not_attributable` means a billing-cycle bill (GitHub Copilot) overlaps the post window and cannot be split by day. `active_engineers_unknown` means stored identities cannot yet be counted. `confounder_inputs_missing` means a named-event, headcount, or repository-scope check has no stored input.
9628
+ * @enum {string}
9629
+ */
9630
+ AssessmentRoiReasonDto: "rollout_unset" | "window_missing" | "missing_cost" | "non_usd_cost" | "cost_not_attributable" | "ship_weight_incomplete" | "active_engineers_unknown" | "non_positive_output" | "normalization_unset" | "confounder" | "confounder_inputs_missing" | "output_unit_mismatch";
9631
+ AssessmentRoiDayRangeDto: {
9632
+ /** Format: date */
9633
+ from: string;
9634
+ /** Format: date */
9635
+ to: string;
9636
+ };
9637
+ AssessmentRoiWindowDto: {
9638
+ /** Format: date */
9639
+ from: string;
9640
+ /** Format: date */
9641
+ to: string;
9642
+ /** @description Calendar days in the window (90). */
9643
+ requiredDays: number;
9644
+ /** @description Calendar days with stored evidence. */
9645
+ coveredDays: number;
9646
+ /** @description Every calendar day is covered and the window ended before today. */
9647
+ complete: boolean;
9648
+ /** @description Monday–Friday days in America/New_York. No holidays. */
9649
+ workingDays: number;
9650
+ activeEngineers: number | null;
9651
+ mergedPullRequests: number;
9652
+ /** @description Sum of stored Ship Weight for unique merged pull requests; null if any is unscored. */
9653
+ shipWeight: number | null;
9654
+ /** @description Ship Weight per active engineer per working day. */
9655
+ normalizedShipWeight: number | null;
9656
+ };
9657
+ AssessmentRoiDto: {
9658
+ dictionaryVersion: string;
9659
+ /** Format: date */
9660
+ rolloutDay: string | null;
9661
+ rolloutBoundary: {
9662
+ /** @enum {string} */
9663
+ timezone: "America/New_York";
9664
+ /** @enum {string} */
9665
+ boundary: "midnight";
9666
+ /** Format: date-time */
9667
+ startsAt: string | null;
9668
+ };
9669
+ windows: {
9670
+ pre: components["schemas"]["AssessmentRoiWindowDto"] | null;
9671
+ transition: components["schemas"]["AssessmentRoiDayRangeDto"] | null;
9672
+ post: components["schemas"]["AssessmentRoiWindowDto"] | null;
9673
+ };
9674
+ /** @description Recorded daily AI spend inside the post window. Never estimated. */
9675
+ cost: {
9676
+ amountUsd: number | null;
9677
+ /** @enum {string|null} */
9678
+ currency: "USD" | null;
9679
+ providers: string[];
9680
+ };
9681
+ confounders: {
9682
+ /** @description Null when no named-event input is stored. */
9683
+ namedEvent: boolean | null;
9684
+ headcountChangeRatio: number | null;
9685
+ /** @description Repositories with merged pull requests in only one window, over pre-window repositories. */
9686
+ repositoryScopeChangeRatio: number | null;
9687
+ };
9688
+ /** @enum {string} */
9689
+ status: "assessable" | "not_assessable";
9690
+ reason: components["schemas"]["AssessmentRoiReasonDto"] | null;
9691
+ incrementalNormalizedShipWeight: number | null;
9692
+ costPerIncrementalShipWeightUsd: number | null;
9693
+ /** @description Separate correlation. Never the sold ROI figure. */
9694
+ costPerMergedPullRequestUsd: number | null;
9695
+ };
9696
+ AggregateUseConsentDto: {
9697
+ /**
9698
+ * @description Saved choice. `unset` means the workspace never chose and is treated as opted out.
9699
+ * @enum {string}
9700
+ */
9701
+ aggregateUse: "opt_in" | "opt_out" | "unset";
9702
+ /** @description True only for `opt_in`. Benchmark and marketing extraction must check this. */
9703
+ effective: boolean;
9178
9704
  /** @description Notice version accepted with the current opt-in; null otherwise. */
9179
9705
  noticeVersion: string | null;
9180
9706
  /** @enum {string|null} */
@@ -9206,7 +9732,7 @@ export interface components {
9206
9732
  };
9207
9733
  AssessmentDictionaryDto: {
9208
9734
  /** @enum {string} */
9209
- version: "2026-10-20.1";
9735
+ version: "2026-10-24.1";
9210
9736
  /** @enum {integer} */
9211
9737
  periodDays: 90;
9212
9738
  /** @enum {integer} */
@@ -9284,8 +9810,22 @@ export interface components {
9284
9810
  costAssessableCurrency: "USD";
9285
9811
  };
9286
9812
  unresolved: {
9287
- baselinePrice: components["schemas"]["UnsetAssessmentDecisionDto"];
9288
- premiumPrice: components["schemas"]["UnsetAssessmentDecisionDto"];
9813
+ baselinePrice: {
9814
+ /** @enum {string} */
9815
+ status: "set";
9816
+ /** @enum {integer} */
9817
+ amountUsd: 4999;
9818
+ /** @enum {string} */
9819
+ taxes: "extra";
9820
+ };
9821
+ premiumPrice: {
9822
+ /** @enum {string} */
9823
+ status: "set";
9824
+ /** @enum {integer} */
9825
+ amountUsd: 9999;
9826
+ /** @enum {string} */
9827
+ taxes: "extra";
9828
+ };
9289
9829
  currency: {
9290
9830
  /** @enum {string} */
9291
9831
  status: "set";
@@ -9333,7 +9873,14 @@ export interface components {
9333
9873
  /** @enum {string} */
9334
9874
  holidays: "none";
9335
9875
  };
9336
- countryAllowList: components["schemas"]["UnsetAssessmentDecisionDto"];
9876
+ /** @description Owner decision without counsel acceptance; `counselAccepted` stays false. */
9877
+ countryAllowList: {
9878
+ /** @enum {string} */
9879
+ status: "set";
9880
+ countries: ("US" | "BH" | "KW" | "OM" | "QA" | "SA" | "AE")[];
9881
+ /** @enum {boolean} */
9882
+ counselAccepted: false;
9883
+ };
9337
9884
  };
9338
9885
  };
9339
9886
  /** @description Metadata for a successful Report Center PDF download. Secret-free; no table payloads. Recorded as `report.exported` on the workspace activity log. */
@@ -9360,6 +9907,126 @@ export interface components {
9360
9907
  providerIds?: string[];
9361
9908
  repoIds?: string[];
9362
9909
  };
9910
+ StoreAssessmentReportBodyDto: {
9911
+ /** @description The buyer PDF, base64-encoded. Must start with `%PDF-`; at most 10 MiB decoded. */
9912
+ pdfBase64: string;
9913
+ build: components["schemas"]["BuildAssessmentManifestBodyDto"];
9914
+ /** @description `result.contentHash` from the `buildWorkspaceAssessmentManifest` call the PDF was rendered from. The server rebuilds the manifest and rejects a different hash. */
9915
+ contentHash: string;
9916
+ };
9917
+ BuildAssessmentManifestBodyDto: {
9918
+ /** @enum {string} */
9919
+ offerId: "engineering_readiness_baseline" | "agentic_ai_roi";
9920
+ /** @enum {string} */
9921
+ shareMode: "internal" | "external";
9922
+ /** @description Every selected section with its render status. Ids are unique. */
9923
+ sections: {
9924
+ id: string;
9925
+ /** @enum {string} */
9926
+ status: "ok" | "failed" | "omitted";
9927
+ reason?: string;
9928
+ }[];
9929
+ /** @description The matched-period ROI chapter as printed, copied from the `getWorkspaceAssessmentRoi` result it rendered. Null or omitted when the chapter did not print one. */
9930
+ roi?: components["schemas"]["PrintedAssessmentRoiDto"] | null;
9931
+ };
9932
+ PrintedAssessmentRoiDto: {
9933
+ /** @enum {string} */
9934
+ status: "assessable" | "not_assessable";
9935
+ reason: string | null;
9936
+ incrementalNormalizedShipWeight: number | null;
9937
+ costPerIncrementalShipWeightUsd: number | null;
9938
+ costPerMergedPullRequestUsd: number | null;
9939
+ };
9940
+ BuildAssessmentManifestResponseDto: {
9941
+ validation: components["schemas"]["AssessmentManifestValidationBodyDto"];
9942
+ result: components["schemas"]["AssessmentManifestValidationResultDto"];
9943
+ };
9944
+ StoreAssessmentReportRejectedDto: {
9945
+ error: string;
9946
+ /** @enum {string} */
9947
+ code: "not_buyer_deliverable" | "manifest_changed";
9948
+ /** @enum {string} */
9949
+ validation?: "validated" | "not_validated";
9950
+ reasons?: {
9951
+ code: string;
9952
+ message: string;
9953
+ }[];
9954
+ };
9955
+ AssessmentReportLinkDto: {
9956
+ /** Format: uuid */
9957
+ id: string;
9958
+ /** Format: uuid */
9959
+ reportId: string;
9960
+ /** Format: uuid */
9961
+ recipientUserId: string;
9962
+ /** @description Null when the recipient is no longer a workspace member. */
9963
+ recipientEmail: string | null;
9964
+ recipientName: string | null;
9965
+ /** Format: date-time */
9966
+ expiresAt: string;
9967
+ /** Format: date-time */
9968
+ revokedAt: string | null;
9969
+ /** Format: date-time */
9970
+ createdAt: string;
9971
+ /** Format: date-time */
9972
+ lastAccessedAt: string | null;
9973
+ /** @enum {string} */
9974
+ status: "active" | "expired" | "revoked";
9975
+ };
9976
+ AssessmentReportDto: {
9977
+ /** Format: uuid */
9978
+ id: string;
9979
+ /** @enum {string} */
9980
+ offerId: "engineering_readiness_baseline" | "agentic_ai_roi";
9981
+ sizeBytes: number;
9982
+ /** @description sha256 of the plaintext PDF. */
9983
+ sha256: string;
9984
+ /** @description `contentHash` of the validated manifest. */
9985
+ manifestHash: string;
9986
+ /** Format: date-time */
9987
+ createdAt: string;
9988
+ /** Format: uuid */
9989
+ createdBy: string | null;
9990
+ /** Format: date-time */
9991
+ hiddenAt: string | null;
9992
+ /**
9993
+ * Format: date-time
9994
+ * @description End of the restore window. Not an erasure or backup purge date.
9995
+ */
9996
+ restoreUntil: string | null;
9997
+ /** @enum {string} */
9998
+ status: "available" | "hidden_restorable" | "restore_window_ended";
9999
+ links: components["schemas"]["AssessmentReportLinkDto"][];
10000
+ };
10001
+ AssessmentReportListDto: {
10002
+ /** @enum {integer} */
10003
+ restoreWindowDays: 30;
10004
+ /**
10005
+ * @description Default and maximum secure link lifetime in days.
10006
+ * @enum {integer}
10007
+ */
10008
+ secureLinkDays: 14;
10009
+ reports: components["schemas"]["AssessmentReportDto"][];
10010
+ };
10011
+ CreateAssessmentReportLinkBodyDto: {
10012
+ /**
10013
+ * Format: uuid
10014
+ * @description A current workspace member (`TeamMemberDto.id`).
10015
+ */
10016
+ recipientUserId: string;
10017
+ /** @default 14 */
10018
+ expiresInDays: number;
10019
+ };
10020
+ CreateAssessmentReportLinkResponseDto: {
10021
+ link: components["schemas"]["AssessmentReportLinkDto"];
10022
+ /** @enum {string} */
10023
+ email: "sent" | "skipped_missing_smtp" | "skipped_missing_base_url" | "failed";
10024
+ };
10025
+ AssessmentReportAccessErrorDto: {
10026
+ error: string;
10027
+ /** @enum {string} */
10028
+ code: "leaked_token" | "removed_member" | "wrong_workspace" | "expired" | "revoked" | "invalid_grant" | "report_hidden";
10029
+ };
9363
10030
  ReportCenterExportRecordResponseDto: {
9364
10031
  /** @enum {boolean} */
9365
10032
  ok: true;
@@ -11755,6 +12422,8 @@ export interface components {
11755
12422
  };
11756
12423
  parameters: {
11757
12424
  WorkspaceId: string;
12425
+ /** @description Stored assessment report id (`tai_workspace_assessment_reports.id`). */
12426
+ AssessmentReportId: string;
11758
12427
  /** @description Eval suite id (`tai_workspace_eval_suites.id`). */
11759
12428
  EvalSuiteId: string;
11760
12429
  /** @description Platform starter pack id (kebab-case), e.g. `pr-review`. Not a UUID. */
@@ -11844,6 +12513,8 @@ export interface components {
11844
12513
  headers: never;
11845
12514
  pathItems: never;
11846
12515
  }
12516
+ export type AssessmentManifestValidationBodyDto = components['schemas']['AssessmentManifestValidationBodyDto'];
12517
+ export type AssessmentManifestValidationResultDto = components['schemas']['AssessmentManifestValidationResultDto'];
11847
12518
  export type TeamsInstallUrlDto = components['schemas']['TeamsInstallUrlDto'];
11848
12519
  export type TeamsConnectionDto = components['schemas']['TeamsConnectionDto'];
11849
12520
  export type TeamsChannelBodyDto = components['schemas']['TeamsChannelBodyDto'];
@@ -12073,6 +12744,12 @@ export type NdaCompletionExternalDto = components['schemas']['NdaCompletionExter
12073
12744
  export type NdaExternalBodyDto = components['schemas']['NdaExternalBodyDto'];
12074
12745
  export type ReadinessDimensionDto = components['schemas']['ReadinessDimensionDto'];
12075
12746
  export type ReadinessDimensionId = components['schemas']['ReadinessDimensionId'];
12747
+ export type ExternalVcsProviderDto = components['schemas']['ExternalVcsProviderDto'];
12748
+ export type GitVcsSourceDto = components['schemas']['GitVcsSourceDto'];
12749
+ export type VcsDiscoveredRepoDto = components['schemas']['VcsDiscoveredRepoDto'];
12750
+ export type VcsRepoDiscoveryResponseDto = components['schemas']['VcsRepoDiscoveryResponseDto'];
12751
+ export type VcsProviderCoverageRowDto = components['schemas']['VcsProviderCoverageRowDto'];
12752
+ export type VcsProviderCoverageDto = components['schemas']['VcsProviderCoverageDto'];
12076
12753
  export type RepoProviderDto = components['schemas']['RepoProviderDto'];
12077
12754
  export type ReadinessAnalyzeBodyDto = components['schemas']['ReadinessAnalyzeBodyDto'];
12078
12755
  export type ReadinessInitializeResponseDto = components['schemas']['ReadinessInitializeResponseDto'];
@@ -12214,12 +12891,29 @@ export type PutAgenticFoundationRepoScopeAppliedDto = components['schemas']['Put
12214
12891
  export type PutAgenticFoundationRepoScopeFailureDto = components['schemas']['PutAgenticFoundationRepoScopeFailureDto'];
12215
12892
  export type PutAgenticFoundationRepoScopeResponseDto = components['schemas']['PutAgenticFoundationRepoScopeResponseDto'];
12216
12893
  export type ActivityLogEventTypeDto = components['schemas']['ActivityLogEventTypeDto'];
12217
- export type UnsetAssessmentDecisionDto = components['schemas']['UnsetAssessmentDecisionDto'];
12218
12894
  export type AggregateUseNoticeStatusDto = components['schemas']['AggregateUseNoticeStatusDto'];
12895
+ export type AssessmentNamedEventDto = components['schemas']['AssessmentNamedEventDto'];
12896
+ export type AssessmentRolloutDto = components['schemas']['AssessmentRolloutDto'];
12897
+ export type AssessmentRolloutPutDto = components['schemas']['AssessmentRolloutPutDto'];
12898
+ export type AssessmentRoiReasonDto = components['schemas']['AssessmentRoiReasonDto'];
12899
+ export type AssessmentRoiDayRangeDto = components['schemas']['AssessmentRoiDayRangeDto'];
12900
+ export type AssessmentRoiWindowDto = components['schemas']['AssessmentRoiWindowDto'];
12901
+ export type AssessmentRoiDto = components['schemas']['AssessmentRoiDto'];
12219
12902
  export type AggregateUseConsentDto = components['schemas']['AggregateUseConsentDto'];
12220
12903
  export type AggregateUseConsentPutDto = components['schemas']['AggregateUseConsentPutDto'];
12221
12904
  export type AssessmentDictionaryDto = components['schemas']['AssessmentDictionaryDto'];
12222
12905
  export type ReportCenterExportRecordBodyDto = components['schemas']['ReportCenterExportRecordBodyDto'];
12906
+ export type StoreAssessmentReportBodyDto = components['schemas']['StoreAssessmentReportBodyDto'];
12907
+ export type BuildAssessmentManifestBodyDto = components['schemas']['BuildAssessmentManifestBodyDto'];
12908
+ export type PrintedAssessmentRoiDto = components['schemas']['PrintedAssessmentRoiDto'];
12909
+ export type BuildAssessmentManifestResponseDto = components['schemas']['BuildAssessmentManifestResponseDto'];
12910
+ export type StoreAssessmentReportRejectedDto = components['schemas']['StoreAssessmentReportRejectedDto'];
12911
+ export type AssessmentReportLinkDto = components['schemas']['AssessmentReportLinkDto'];
12912
+ export type AssessmentReportDto = components['schemas']['AssessmentReportDto'];
12913
+ export type AssessmentReportListDto = components['schemas']['AssessmentReportListDto'];
12914
+ export type CreateAssessmentReportLinkBodyDto = components['schemas']['CreateAssessmentReportLinkBodyDto'];
12915
+ export type CreateAssessmentReportLinkResponseDto = components['schemas']['CreateAssessmentReportLinkResponseDto'];
12916
+ export type AssessmentReportAccessErrorDto = components['schemas']['AssessmentReportAccessErrorDto'];
12223
12917
  export type ReportCenterExportRecordResponseDto = components['schemas']['ReportCenterExportRecordResponseDto'];
12224
12918
  export type ActivityLogActorDto = components['schemas']['ActivityLogActorDto'];
12225
12919
  export type ActivityLogEntryDto = components['schemas']['ActivityLogEntryDto'];
@@ -12448,6 +13142,7 @@ export type ResponseUnauthorized = components['responses']['Unauthorized'];
12448
13142
  export type ResponseForbidden = components['responses']['Forbidden'];
12449
13143
  export type ResponseZenHrSyncInProgress = components['responses']['ZenHrSyncInProgress'];
12450
13144
  export type ParameterWorkspaceId = components['parameters']['WorkspaceId'];
13145
+ export type ParameterAssessmentReportId = components['parameters']['AssessmentReportId'];
12451
13146
  export type ParameterEvalSuiteId = components['parameters']['EvalSuiteId'];
12452
13147
  export type ParameterEvalPackId = components['parameters']['EvalPackId'];
12453
13148
  export type ParameterEvalRunId = components['parameters']['EvalRunId'];
@@ -12918,6 +13613,11 @@ export interface operations {
12918
13613
  label: string;
12919
13614
  href: string | null;
12920
13615
  } | null;
13616
+ /**
13617
+ * Format: date
13618
+ * @description America/New_York day the five-business-day clock started.
13619
+ */
13620
+ clockStartedOn: string | null;
12921
13621
  /** Format: date */
12922
13622
  dueDate: string | null;
12923
13623
  /** Format: date-time */
@@ -12961,68 +13661,7 @@ export interface operations {
12961
13661
  };
12962
13662
  requestBody: {
12963
13663
  content: {
12964
- "application/json": {
12965
- manifest: {
12966
- /** @enum {string} */
12967
- offerId: "engineering_readiness_baseline" | "agentic_ai_roi";
12968
- dictionaryVersion: string;
12969
- /** @enum {string} */
12970
- validation: "validated" | "not_validated";
12971
- /** @enum {string} */
12972
- shareMode: "internal" | "external";
12973
- /** @enum {string|null} */
12974
- watermark: "NOT VALIDATED" | "SAMPLE · SYNTHETIC DATA" | null;
12975
- scope: {
12976
- repositories: {
12977
- id: string;
12978
- name: string;
12979
- }[];
12980
- excluded: {
12981
- id: string;
12982
- name: string;
12983
- reason: string;
12984
- }[];
12985
- };
12986
- windows: {
12987
- pre: {
12988
- start: string;
12989
- end: string;
12990
- } | null;
12991
- post: {
12992
- start: string;
12993
- end: string;
12994
- } | null;
12995
- transitionDays: number;
12996
- };
12997
- sources: {
12998
- provider: string;
12999
- status: string;
13000
- freshAt: string | null;
13001
- }[];
13002
- consent: {
13003
- /** @enum {string} */
13004
- aggregateUse: "opt_in" | "opt_out" | "unset";
13005
- recordedAt: string | null;
13006
- };
13007
- sections: {
13008
- id: string;
13009
- /** @enum {string} */
13010
- status: "ok" | "failed" | "omitted";
13011
- reason?: string;
13012
- }[];
13013
- };
13014
- workspaceId: string;
13015
- expectedWorkspaceId: string;
13016
- expectedRepositoryIds: string[];
13017
- soldWindowComplete: boolean;
13018
- premiumAiAssessable: boolean;
13019
- namedPersonSectionIds: string[];
13020
- tolerances: {
13021
- id: string;
13022
- /** @enum {string} */
13023
- status: "unset" | "exceeded" | "within";
13024
- }[];
13025
- };
13664
+ "application/json": components["schemas"]["AssessmentManifestValidationBodyDto"];
13026
13665
  };
13027
13666
  };
13028
13667
  responses: {
@@ -13032,18 +13671,7 @@ export interface operations {
13032
13671
  [name: string]: unknown;
13033
13672
  };
13034
13673
  content: {
13035
- "application/json": {
13036
- buyerDeliverable: boolean;
13037
- /** @enum {string} */
13038
- validation: "validated" | "not_validated";
13039
- /** @enum {string|null} */
13040
- watermark: "NOT VALIDATED" | null;
13041
- reasons: {
13042
- code: string;
13043
- message: string;
13044
- }[];
13045
- contentHash: string;
13046
- };
13674
+ "application/json": components["schemas"]["AssessmentManifestValidationResultDto"];
13047
13675
  };
13048
13676
  };
13049
13677
  /** @description Body failed validation. */
@@ -13087,102 +13715,48 @@ export interface operations {
13087
13715
  };
13088
13716
  };
13089
13717
  };
13090
- adminListReadinessTokenUsage: {
13718
+ validateWorkspaceAssessmentManifest: {
13091
13719
  parameters: {
13092
- query?: {
13093
- /** @description Filter by workspace UUID. */
13094
- workspaceId?: string;
13095
- /** @description Filter by repository slug (e.g. `owner/repo`). */
13096
- providerSlug?: string;
13097
- /** @description Filter by operation type. */
13098
- operation?: "readiness_analysis" | "readiness_fix";
13099
- /** @description Include only rows created at or after this ISO-8601 timestamp. */
13100
- from?: string;
13101
- /** @description Include only rows created at or before this ISO-8601 timestamp. */
13102
- to?: string;
13103
- /** @description Maximum number of rows to return (default 200, max 1000). */
13104
- limit?: number;
13105
- };
13720
+ query?: never;
13106
13721
  header?: never;
13107
- path?: never;
13722
+ path: {
13723
+ workspaceId: components["parameters"]["WorkspaceId"];
13724
+ };
13108
13725
  cookie?: never;
13109
13726
  };
13110
- requestBody?: never;
13727
+ requestBody: {
13728
+ content: {
13729
+ "application/json": components["schemas"]["AssessmentManifestValidationBodyDto"];
13730
+ };
13731
+ };
13111
13732
  responses: {
13112
- /** @description Token usage rows, newest first. */
13733
+ /** @description Validation result. Client validation and watermark inputs are ignored. */
13113
13734
  200: {
13114
13735
  headers: {
13115
13736
  [name: string]: unknown;
13116
13737
  };
13117
13738
  content: {
13118
- "application/json": {
13119
- rows: components["schemas"]["ReadinessTokenUsageRowDto"][];
13120
- };
13121
- };
13122
- };
13123
- /** @description Missing or invalid JWT. */
13124
- 401: {
13125
- headers: {
13126
- [name: string]: unknown;
13127
- };
13128
- content: {
13129
- "application/json": components["schemas"]["ErrorMessageDto"];
13739
+ "application/json": components["schemas"]["AssessmentManifestValidationResultDto"];
13130
13740
  };
13131
13741
  };
13132
- /** @description Caller is not a platform admin. */
13133
- 403: {
13742
+ /** @description Body failed validation. */
13743
+ 400: {
13134
13744
  headers: {
13135
13745
  [name: string]: unknown;
13136
13746
  };
13137
13747
  content: {
13138
13748
  /**
13139
13749
  * @example {
13140
- * "error": "Forbidden",
13141
- * "code": "forbidden"
13750
+ * "error": "manifest.offerId is not a known assessment offer",
13751
+ * "code": "invalid_body"
13142
13752
  * }
13143
13753
  */
13144
13754
  "application/json": components["schemas"]["ErrorMessageDto"];
13145
13755
  };
13146
13756
  };
13147
- };
13148
- };
13149
- adminListReadinessTokenUsageByDimension: {
13150
- parameters: {
13151
- query?: {
13152
- /** @description Filter by workspace UUID. */
13153
- workspaceId?: string;
13154
- /** @description Filter by repository slug (e.g. `owner/repo`). */
13155
- providerSlug?: string;
13156
- /** @description Filter by operation type. */
13157
- operation?: "readiness_analysis" | "readiness_fix";
13158
- /** @description Filter by a specific readiness dimension ID. */
13159
- dimensionId?: string;
13160
- /** @description Include only rows whose last activity is at or after this ISO-8601 timestamp. */
13161
- from?: string;
13162
- /** @description Include only rows whose first activity is at or before this ISO-8601 timestamp. */
13163
- to?: string;
13164
- /** @description Maximum number of rows to return (default 200, max 500). */
13165
- limit?: number;
13166
- };
13167
- header?: never;
13168
- path?: never;
13169
- cookie?: never;
13170
- };
13171
- requestBody?: never;
13172
- responses: {
13173
- /** @description Token usage grouped by operation and dimension. */
13174
- 200: {
13175
- headers: {
13176
- [name: string]: unknown;
13177
- };
13178
- content: {
13179
- "application/json": {
13180
- rows: components["schemas"]["ReadinessTokenUsageByDimensionRowDto"][];
13181
- };
13182
- };
13183
- };
13184
- /** @description Missing or invalid JWT. */
13185
- 401: {
13757
+ 401: components["responses"]["Unauthorized"];
13758
+ /** @description Caller cannot validate this workspace. */
13759
+ 403: {
13186
13760
  headers: {
13187
13761
  [name: string]: unknown;
13188
13762
  };
@@ -13190,16 +13764,15 @@ export interface operations {
13190
13764
  "application/json": components["schemas"]["ErrorMessageDto"];
13191
13765
  };
13192
13766
  };
13193
- /** @description Caller is not a platform admin. */
13194
- 403: {
13767
+ /** @description Workspace does not exist. */
13768
+ 404: {
13195
13769
  headers: {
13196
13770
  [name: string]: unknown;
13197
13771
  };
13198
13772
  content: {
13199
13773
  /**
13200
13774
  * @example {
13201
- * "error": "Forbidden",
13202
- * "code": "forbidden"
13775
+ * "error": "Not found"
13203
13776
  * }
13204
13777
  */
13205
13778
  "application/json": components["schemas"]["ErrorMessageDto"];
@@ -13207,29 +13780,31 @@ export interface operations {
13207
13780
  };
13208
13781
  };
13209
13782
  };
13210
- submitPublicPrivacyRequest: {
13783
+ buildWorkspaceAssessmentManifest: {
13211
13784
  parameters: {
13212
13785
  query?: never;
13213
13786
  header?: never;
13214
- path?: never;
13787
+ path: {
13788
+ workspaceId: components["parameters"]["WorkspaceId"];
13789
+ };
13215
13790
  cookie?: never;
13216
13791
  };
13217
13792
  requestBody: {
13218
13793
  content: {
13219
- "application/json": components["schemas"]["CreatePrivacyRequestBodyDto"];
13794
+ "application/json": components["schemas"]["BuildAssessmentManifestBodyDto"];
13220
13795
  };
13221
13796
  };
13222
13797
  responses: {
13223
- /** @description Request accepted and queued for privacy ops. */
13224
- 201: {
13798
+ /** @description Server-built manifest body and its validation result. */
13799
+ 200: {
13225
13800
  headers: {
13226
13801
  [name: string]: unknown;
13227
13802
  };
13228
13803
  content: {
13229
- "application/json": components["schemas"]["CreatePrivacyRequestResultDto"];
13804
+ "application/json": components["schemas"]["BuildAssessmentManifestResponseDto"];
13230
13805
  };
13231
13806
  };
13232
- /** @description Missing or invalid email, unknown request type, or details too long. */
13807
+ /** @description Body failed validation. */
13233
13808
  400: {
13234
13809
  headers: {
13235
13810
  [name: string]: unknown;
@@ -13237,30 +13812,234 @@ export interface operations {
13237
13812
  content: {
13238
13813
  /**
13239
13814
  * @example {
13240
- * "error": "A valid email is required",
13241
- * "code": "invalid_email"
13815
+ * "error": "offerId is not a known assessment offer",
13816
+ * "code": "invalid_body"
13242
13817
  * }
13243
13818
  */
13244
13819
  "application/json": components["schemas"]["ErrorMessageDto"];
13245
13820
  };
13246
13821
  };
13247
- /** @description An open request for this email and type already exists. */
13248
- 409: {
13822
+ 401: components["responses"]["Unauthorized"];
13823
+ /** @description Caller cannot build this workspace's manifest. */
13824
+ 403: {
13249
13825
  headers: {
13250
13826
  [name: string]: unknown;
13251
13827
  };
13252
13828
  content: {
13253
13829
  /**
13254
13830
  * @example {
13255
- * "error": "An open request for this email already exists",
13256
- * "code": "duplicate_open_request"
13831
+ * "error": "Forbidden",
13832
+ * "code": "workspace_admin_required"
13257
13833
  * }
13258
13834
  */
13259
13835
  "application/json": components["schemas"]["ErrorMessageDto"];
13260
13836
  };
13261
13837
  };
13262
- /** @description Too many submissions from this client; retry later. */
13263
- 429: {
13838
+ /** @description Workspace does not exist. */
13839
+ 404: {
13840
+ headers: {
13841
+ [name: string]: unknown;
13842
+ };
13843
+ content: {
13844
+ /**
13845
+ * @example {
13846
+ * "error": "Not found"
13847
+ * }
13848
+ */
13849
+ "application/json": components["schemas"]["ErrorMessageDto"];
13850
+ };
13851
+ };
13852
+ /** @description Stored evidence could not be loaded (no database or a load failure). */
13853
+ 503: {
13854
+ headers: {
13855
+ [name: string]: unknown;
13856
+ };
13857
+ content: {
13858
+ /**
13859
+ * @example {
13860
+ * "error": "Service unavailable",
13861
+ * "code": "evidence_unavailable"
13862
+ * }
13863
+ */
13864
+ "application/json": components["schemas"]["ErrorMessageDto"];
13865
+ };
13866
+ };
13867
+ };
13868
+ };
13869
+ adminListReadinessTokenUsage: {
13870
+ parameters: {
13871
+ query?: {
13872
+ /** @description Filter by workspace UUID. */
13873
+ workspaceId?: string;
13874
+ /** @description Filter by repository slug (e.g. `owner/repo`). */
13875
+ providerSlug?: string;
13876
+ /** @description Filter by operation type. */
13877
+ operation?: "readiness_analysis" | "readiness_fix";
13878
+ /** @description Include only rows created at or after this ISO-8601 timestamp. */
13879
+ from?: string;
13880
+ /** @description Include only rows created at or before this ISO-8601 timestamp. */
13881
+ to?: string;
13882
+ /** @description Maximum number of rows to return (default 200, max 1000). */
13883
+ limit?: number;
13884
+ };
13885
+ header?: never;
13886
+ path?: never;
13887
+ cookie?: never;
13888
+ };
13889
+ requestBody?: never;
13890
+ responses: {
13891
+ /** @description Token usage rows, newest first. */
13892
+ 200: {
13893
+ headers: {
13894
+ [name: string]: unknown;
13895
+ };
13896
+ content: {
13897
+ "application/json": {
13898
+ rows: components["schemas"]["ReadinessTokenUsageRowDto"][];
13899
+ };
13900
+ };
13901
+ };
13902
+ /** @description Missing or invalid JWT. */
13903
+ 401: {
13904
+ headers: {
13905
+ [name: string]: unknown;
13906
+ };
13907
+ content: {
13908
+ "application/json": components["schemas"]["ErrorMessageDto"];
13909
+ };
13910
+ };
13911
+ /** @description Caller is not a platform admin. */
13912
+ 403: {
13913
+ headers: {
13914
+ [name: string]: unknown;
13915
+ };
13916
+ content: {
13917
+ /**
13918
+ * @example {
13919
+ * "error": "Forbidden",
13920
+ * "code": "forbidden"
13921
+ * }
13922
+ */
13923
+ "application/json": components["schemas"]["ErrorMessageDto"];
13924
+ };
13925
+ };
13926
+ };
13927
+ };
13928
+ adminListReadinessTokenUsageByDimension: {
13929
+ parameters: {
13930
+ query?: {
13931
+ /** @description Filter by workspace UUID. */
13932
+ workspaceId?: string;
13933
+ /** @description Filter by repository slug (e.g. `owner/repo`). */
13934
+ providerSlug?: string;
13935
+ /** @description Filter by operation type. */
13936
+ operation?: "readiness_analysis" | "readiness_fix";
13937
+ /** @description Filter by a specific readiness dimension ID. */
13938
+ dimensionId?: string;
13939
+ /** @description Include only rows whose last activity is at or after this ISO-8601 timestamp. */
13940
+ from?: string;
13941
+ /** @description Include only rows whose first activity is at or before this ISO-8601 timestamp. */
13942
+ to?: string;
13943
+ /** @description Maximum number of rows to return (default 200, max 500). */
13944
+ limit?: number;
13945
+ };
13946
+ header?: never;
13947
+ path?: never;
13948
+ cookie?: never;
13949
+ };
13950
+ requestBody?: never;
13951
+ responses: {
13952
+ /** @description Token usage grouped by operation and dimension. */
13953
+ 200: {
13954
+ headers: {
13955
+ [name: string]: unknown;
13956
+ };
13957
+ content: {
13958
+ "application/json": {
13959
+ rows: components["schemas"]["ReadinessTokenUsageByDimensionRowDto"][];
13960
+ };
13961
+ };
13962
+ };
13963
+ /** @description Missing or invalid JWT. */
13964
+ 401: {
13965
+ headers: {
13966
+ [name: string]: unknown;
13967
+ };
13968
+ content: {
13969
+ "application/json": components["schemas"]["ErrorMessageDto"];
13970
+ };
13971
+ };
13972
+ /** @description Caller is not a platform admin. */
13973
+ 403: {
13974
+ headers: {
13975
+ [name: string]: unknown;
13976
+ };
13977
+ content: {
13978
+ /**
13979
+ * @example {
13980
+ * "error": "Forbidden",
13981
+ * "code": "forbidden"
13982
+ * }
13983
+ */
13984
+ "application/json": components["schemas"]["ErrorMessageDto"];
13985
+ };
13986
+ };
13987
+ };
13988
+ };
13989
+ submitPublicPrivacyRequest: {
13990
+ parameters: {
13991
+ query?: never;
13992
+ header?: never;
13993
+ path?: never;
13994
+ cookie?: never;
13995
+ };
13996
+ requestBody: {
13997
+ content: {
13998
+ "application/json": components["schemas"]["CreatePrivacyRequestBodyDto"];
13999
+ };
14000
+ };
14001
+ responses: {
14002
+ /** @description Request accepted and queued for privacy ops. */
14003
+ 201: {
14004
+ headers: {
14005
+ [name: string]: unknown;
14006
+ };
14007
+ content: {
14008
+ "application/json": components["schemas"]["CreatePrivacyRequestResultDto"];
14009
+ };
14010
+ };
14011
+ /** @description Missing or invalid email, unknown request type, or details too long. */
14012
+ 400: {
14013
+ headers: {
14014
+ [name: string]: unknown;
14015
+ };
14016
+ content: {
14017
+ /**
14018
+ * @example {
14019
+ * "error": "A valid email is required",
14020
+ * "code": "invalid_email"
14021
+ * }
14022
+ */
14023
+ "application/json": components["schemas"]["ErrorMessageDto"];
14024
+ };
14025
+ };
14026
+ /** @description An open request for this email and type already exists. */
14027
+ 409: {
14028
+ headers: {
14029
+ [name: string]: unknown;
14030
+ };
14031
+ content: {
14032
+ /**
14033
+ * @example {
14034
+ * "error": "An open request for this email already exists",
14035
+ * "code": "duplicate_open_request"
14036
+ * }
14037
+ */
14038
+ "application/json": components["schemas"]["ErrorMessageDto"];
14039
+ };
14040
+ };
14041
+ /** @description Too many submissions from this client; retry later. */
14042
+ 429: {
13264
14043
  headers: {
13265
14044
  [name: string]: unknown;
13266
14045
  };
@@ -19263,22 +20042,544 @@ export interface operations {
19263
20042
  header?: never;
19264
20043
  path: {
19265
20044
  workspaceId: components["parameters"]["WorkspaceId"];
19266
- repoId: components["parameters"]["RepoId"];
20045
+ repoId: components["parameters"]["RepoId"];
20046
+ };
20047
+ cookie?: never;
20048
+ };
20049
+ requestBody?: never;
20050
+ responses: {
20051
+ /** @description Markdown file of readiness issues */
20052
+ 200: {
20053
+ headers: {
20054
+ [name: string]: unknown;
20055
+ };
20056
+ content: {
20057
+ "text/markdown": string;
20058
+ };
20059
+ };
20060
+ /** @description Malformed `repoId` or invalid query parameters */
20061
+ 400: {
20062
+ headers: {
20063
+ [name: string]: unknown;
20064
+ };
20065
+ content: {
20066
+ "application/json": components["schemas"]["ErrorMessageDto"];
20067
+ };
20068
+ };
20069
+ 401: components["responses"]["Unauthorized"];
20070
+ 403: components["responses"]["Forbidden"];
20071
+ /** @description Workspace or repository not found */
20072
+ 404: {
20073
+ headers: {
20074
+ [name: string]: unknown;
20075
+ };
20076
+ content: {
20077
+ "application/json": components["schemas"]["ErrorMessageDto"];
20078
+ };
20079
+ };
20080
+ };
20081
+ };
20082
+ listReadinessRepoRuns: {
20083
+ parameters: {
20084
+ query?: {
20085
+ limit?: number;
20086
+ order?: "asc" | "desc";
20087
+ /** @description Opaque cursor from a prior response `nextCursor` field. */
20088
+ cursor?: string;
20089
+ };
20090
+ header?: never;
20091
+ path: {
20092
+ workspaceId: components["parameters"]["WorkspaceId"];
20093
+ repoId: components["parameters"]["RepoId"];
20094
+ };
20095
+ cookie?: never;
20096
+ };
20097
+ requestBody?: never;
20098
+ responses: {
20099
+ /** @description Run history page */
20100
+ 200: {
20101
+ headers: {
20102
+ [name: string]: unknown;
20103
+ };
20104
+ content: {
20105
+ "application/json": components["schemas"]["ReadinessRepoRunListDto"];
20106
+ };
20107
+ };
20108
+ /** @description Invalid pagination query */
20109
+ 400: {
20110
+ headers: {
20111
+ [name: string]: unknown;
20112
+ };
20113
+ content: {
20114
+ "application/json": components["schemas"]["ErrorMessageDto"];
20115
+ };
20116
+ };
20117
+ 401: components["responses"]["Unauthorized"];
20118
+ 403: components["responses"]["Forbidden"];
20119
+ /** @description Workspace or repository not found */
20120
+ 404: {
20121
+ headers: {
20122
+ [name: string]: unknown;
20123
+ };
20124
+ content: {
20125
+ "application/json": components["schemas"]["ErrorMessageDto"];
20126
+ };
20127
+ };
20128
+ };
20129
+ };
20130
+ listReadinessAudit: {
20131
+ parameters: {
20132
+ query?: {
20133
+ limit?: number;
20134
+ offset?: number;
20135
+ order?: "asc" | "desc";
20136
+ /** @description Sort column for the activity feed. */
20137
+ sort?: "occurredAt" | "actorName" | "repoName" | "eventType" | "dimensionId";
20138
+ /** @description Case-insensitive match on actor name or email. */
20139
+ search?: string;
20140
+ eventType?: components["schemas"]["ReadinessAuditEventType"];
20141
+ dimensionId?: components["schemas"]["ReadinessDimensionId"];
20142
+ repoId?: string;
20143
+ /** @description ISO-8601 lower bound on `occurredAt` (inclusive). */
20144
+ since?: string;
20145
+ };
20146
+ header?: never;
20147
+ path: {
20148
+ workspaceId: components["parameters"]["WorkspaceId"];
20149
+ };
20150
+ cookie?: never;
20151
+ };
20152
+ requestBody?: never;
20153
+ responses: {
20154
+ /** @description Paginated audit entries */
20155
+ 200: {
20156
+ headers: {
20157
+ [name: string]: unknown;
20158
+ };
20159
+ content: {
20160
+ "application/json": components["schemas"]["ReadinessAuditListDto"];
20161
+ };
20162
+ };
20163
+ /** @description Invalid query */
20164
+ 400: {
20165
+ headers: {
20166
+ [name: string]: unknown;
20167
+ };
20168
+ content: {
20169
+ "application/json": components["schemas"]["ErrorMessageDto"];
20170
+ };
20171
+ };
20172
+ 401: components["responses"]["Unauthorized"];
20173
+ 403: components["responses"]["Forbidden"];
20174
+ /** @description Workspace does not exist */
20175
+ 404: {
20176
+ headers: {
20177
+ [name: string]: unknown;
20178
+ };
20179
+ content: {
20180
+ "application/json": components["schemas"]["ErrorMessageDto"];
20181
+ };
20182
+ };
20183
+ };
20184
+ };
20185
+ getAssessmentDictionary: {
20186
+ parameters: {
20187
+ query?: never;
20188
+ header?: never;
20189
+ path: {
20190
+ workspaceId: components["parameters"]["WorkspaceId"];
20191
+ };
20192
+ cookie?: never;
20193
+ };
20194
+ requestBody?: never;
20195
+ responses: {
20196
+ /** @description Current assessment dictionary */
20197
+ 200: {
20198
+ headers: {
20199
+ [name: string]: unknown;
20200
+ };
20201
+ content: {
20202
+ "application/json": components["schemas"]["AssessmentDictionaryDto"];
20203
+ };
20204
+ };
20205
+ 401: components["responses"]["Unauthorized"];
20206
+ 403: components["responses"]["Forbidden"];
20207
+ /** @description Workspace does not exist */
20208
+ 404: {
20209
+ headers: {
20210
+ [name: string]: unknown;
20211
+ };
20212
+ content: {
20213
+ "application/json": components["schemas"]["ErrorMessageDto"];
20214
+ };
20215
+ };
20216
+ };
20217
+ };
20218
+ getWorkspaceAssessmentRollout: {
20219
+ parameters: {
20220
+ query?: never;
20221
+ header?: never;
20222
+ path: {
20223
+ workspaceId: components["parameters"]["WorkspaceId"];
20224
+ };
20225
+ cookie?: never;
20226
+ };
20227
+ requestBody?: never;
20228
+ responses: {
20229
+ /** @description Current rollout day */
20230
+ 200: {
20231
+ headers: {
20232
+ [name: string]: unknown;
20233
+ };
20234
+ content: {
20235
+ "application/json": components["schemas"]["AssessmentRolloutDto"];
20236
+ };
20237
+ };
20238
+ 401: components["responses"]["Unauthorized"];
20239
+ 403: components["responses"]["Forbidden"];
20240
+ /** @description Workspace does not exist */
20241
+ 404: {
20242
+ headers: {
20243
+ [name: string]: unknown;
20244
+ };
20245
+ content: {
20246
+ "application/json": components["schemas"]["ErrorMessageDto"];
20247
+ };
20248
+ };
20249
+ /** @description Rollout storage is not configured */
20250
+ 503: {
20251
+ headers: {
20252
+ [name: string]: unknown;
20253
+ };
20254
+ content: {
20255
+ "application/json": components["schemas"]["ErrorMessageDto"];
20256
+ };
20257
+ };
20258
+ };
20259
+ };
20260
+ putWorkspaceAssessmentRollout: {
20261
+ parameters: {
20262
+ query?: never;
20263
+ header?: never;
20264
+ path: {
20265
+ workspaceId: components["parameters"]["WorkspaceId"];
20266
+ };
20267
+ cookie?: never;
20268
+ };
20269
+ requestBody: {
20270
+ content: {
20271
+ "application/json": components["schemas"]["AssessmentRolloutPutDto"];
20272
+ };
20273
+ };
20274
+ responses: {
20275
+ /** @description Saved rollout day */
20276
+ 200: {
20277
+ headers: {
20278
+ [name: string]: unknown;
20279
+ };
20280
+ content: {
20281
+ "application/json": components["schemas"]["AssessmentRolloutDto"];
20282
+ };
20283
+ };
20284
+ /** @description Invalid body, impossible date, or future day (`code`: `invalid_input`) */
20285
+ 400: {
20286
+ headers: {
20287
+ [name: string]: unknown;
20288
+ };
20289
+ content: {
20290
+ "application/json": components["schemas"]["ErrorMessageDto"];
20291
+ };
20292
+ };
20293
+ 401: components["responses"]["Unauthorized"];
20294
+ /** @description Caller is not a workspace admin (`code`: `workspace_admin_required`) */
20295
+ 403: {
20296
+ headers: {
20297
+ [name: string]: unknown;
20298
+ };
20299
+ content: {
20300
+ "application/json": components["schemas"]["ErrorMessageDto"];
20301
+ };
20302
+ };
20303
+ /** @description Workspace does not exist */
20304
+ 404: {
20305
+ headers: {
20306
+ [name: string]: unknown;
20307
+ };
20308
+ content: {
20309
+ "application/json": components["schemas"]["ErrorMessageDto"];
20310
+ };
20311
+ };
20312
+ /** @description Rollout storage is not configured */
20313
+ 503: {
20314
+ headers: {
20315
+ [name: string]: unknown;
20316
+ };
20317
+ content: {
20318
+ "application/json": components["schemas"]["ErrorMessageDto"];
20319
+ };
20320
+ };
20321
+ };
20322
+ };
20323
+ getWorkspaceAssessmentRoi: {
20324
+ parameters: {
20325
+ query?: never;
20326
+ header?: never;
20327
+ path: {
20328
+ workspaceId: components["parameters"]["WorkspaceId"];
20329
+ };
20330
+ cookie?: never;
20331
+ };
20332
+ requestBody?: never;
20333
+ responses: {
20334
+ /** @description Matched-period ROI result */
20335
+ 200: {
20336
+ headers: {
20337
+ [name: string]: unknown;
20338
+ };
20339
+ content: {
20340
+ "application/json": components["schemas"]["AssessmentRoiDto"];
20341
+ };
20342
+ };
20343
+ 401: components["responses"]["Unauthorized"];
20344
+ 403: components["responses"]["Forbidden"];
20345
+ /** @description Workspace does not exist */
20346
+ 404: {
20347
+ headers: {
20348
+ [name: string]: unknown;
20349
+ };
20350
+ content: {
20351
+ "application/json": components["schemas"]["ErrorMessageDto"];
20352
+ };
20353
+ };
20354
+ /** @description Evidence storage is not configured or could not be read */
20355
+ 503: {
20356
+ headers: {
20357
+ [name: string]: unknown;
20358
+ };
20359
+ content: {
20360
+ "application/json": components["schemas"]["ErrorMessageDto"];
20361
+ };
20362
+ };
20363
+ };
20364
+ };
20365
+ getAggregateUseConsent: {
20366
+ parameters: {
20367
+ query?: never;
20368
+ header?: never;
20369
+ path: {
20370
+ workspaceId: components["parameters"]["WorkspaceId"];
20371
+ };
20372
+ cookie?: never;
20373
+ };
20374
+ requestBody?: never;
20375
+ responses: {
20376
+ /** @description Current permission and the sentence reports must print */
20377
+ 200: {
20378
+ headers: {
20379
+ [name: string]: unknown;
20380
+ };
20381
+ content: {
20382
+ "application/json": components["schemas"]["AggregateUseConsentDto"];
20383
+ };
20384
+ };
20385
+ 401: components["responses"]["Unauthorized"];
20386
+ 403: components["responses"]["Forbidden"];
20387
+ /** @description Workspace does not exist */
20388
+ 404: {
20389
+ headers: {
20390
+ [name: string]: unknown;
20391
+ };
20392
+ content: {
20393
+ "application/json": components["schemas"]["ErrorMessageDto"];
20394
+ };
20395
+ };
20396
+ };
20397
+ };
20398
+ putAggregateUseConsent: {
20399
+ parameters: {
20400
+ query?: never;
20401
+ header?: never;
20402
+ path: {
20403
+ workspaceId: components["parameters"]["WorkspaceId"];
20404
+ };
20405
+ cookie?: never;
20406
+ };
20407
+ requestBody: {
20408
+ content: {
20409
+ "application/json": components["schemas"]["AggregateUseConsentPutDto"];
20410
+ };
20411
+ };
20412
+ responses: {
20413
+ /** @description Saved permission */
20414
+ 200: {
20415
+ headers: {
20416
+ [name: string]: unknown;
20417
+ };
20418
+ content: {
20419
+ "application/json": components["schemas"]["AggregateUseConsentDto"];
20420
+ };
20421
+ };
20422
+ /** @description Invalid body (`code`: `invalid_input`) */
20423
+ 400: {
20424
+ headers: {
20425
+ [name: string]: unknown;
20426
+ };
20427
+ content: {
20428
+ "application/json": components["schemas"]["ErrorMessageDto"];
20429
+ };
20430
+ };
20431
+ 401: components["responses"]["Unauthorized"];
20432
+ /** @description Caller is not a workspace admin (`code`: `workspace_admin_required`) */
20433
+ 403: {
20434
+ headers: {
20435
+ [name: string]: unknown;
20436
+ };
20437
+ content: {
20438
+ "application/json": components["schemas"]["ErrorMessageDto"];
20439
+ };
20440
+ };
20441
+ /** @description Workspace does not exist */
20442
+ 404: {
20443
+ headers: {
20444
+ [name: string]: unknown;
20445
+ };
20446
+ content: {
20447
+ "application/json": components["schemas"]["ErrorMessageDto"];
20448
+ };
20449
+ };
20450
+ /** @description Opt-in refused because no notice is approved (`aggregate_use_notice_unapproved`) or the submitted notice version is not current (`aggregate_use_notice_stale`). */
20451
+ 409: {
20452
+ headers: {
20453
+ [name: string]: unknown;
20454
+ };
20455
+ content: {
20456
+ "application/json": components["schemas"]["ErrorMessageDto"];
20457
+ };
20458
+ };
20459
+ };
20460
+ };
20461
+ recordReportCenterExport: {
20462
+ parameters: {
20463
+ query?: never;
20464
+ header?: never;
20465
+ path: {
20466
+ workspaceId: components["parameters"]["WorkspaceId"];
20467
+ };
20468
+ cookie?: never;
20469
+ };
20470
+ requestBody: {
20471
+ content: {
20472
+ "application/json": components["schemas"]["ReportCenterExportRecordBodyDto"];
20473
+ };
20474
+ };
20475
+ responses: {
20476
+ /** @description Export recorded */
20477
+ 201: {
20478
+ headers: {
20479
+ [name: string]: unknown;
20480
+ };
20481
+ content: {
20482
+ "application/json": components["schemas"]["ReportCenterExportRecordResponseDto"];
20483
+ };
20484
+ };
20485
+ /** @description Invalid body */
20486
+ 400: {
20487
+ headers: {
20488
+ [name: string]: unknown;
20489
+ };
20490
+ content: {
20491
+ "application/json": components["schemas"]["ErrorMessageDto"];
20492
+ };
20493
+ };
20494
+ 401: components["responses"]["Unauthorized"];
20495
+ 403: components["responses"]["Forbidden"];
20496
+ /** @description Workspace does not exist */
20497
+ 404: {
20498
+ headers: {
20499
+ [name: string]: unknown;
20500
+ };
20501
+ content: {
20502
+ "application/json": components["schemas"]["ErrorMessageDto"];
20503
+ };
20504
+ };
20505
+ /** @description Activity log is not supported by this backend build */
20506
+ 501: {
20507
+ headers: {
20508
+ [name: string]: unknown;
20509
+ };
20510
+ content: {
20511
+ "application/json": components["schemas"]["ErrorMessageDto"];
20512
+ };
20513
+ };
20514
+ };
20515
+ };
20516
+ listAssessmentReports: {
20517
+ parameters: {
20518
+ query?: never;
20519
+ header?: never;
20520
+ path: {
20521
+ workspaceId: components["parameters"]["WorkspaceId"];
20522
+ };
20523
+ cookie?: never;
20524
+ };
20525
+ requestBody?: never;
20526
+ responses: {
20527
+ /** @description Stored reports, newest first */
20528
+ 200: {
20529
+ headers: {
20530
+ [name: string]: unknown;
20531
+ };
20532
+ content: {
20533
+ "application/json": components["schemas"]["AssessmentReportListDto"];
20534
+ };
20535
+ };
20536
+ 401: components["responses"]["Unauthorized"];
20537
+ 403: components["responses"]["Forbidden"];
20538
+ /** @description Workspace does not exist */
20539
+ 404: {
20540
+ headers: {
20541
+ [name: string]: unknown;
20542
+ };
20543
+ content: {
20544
+ "application/json": components["schemas"]["ErrorMessageDto"];
20545
+ };
20546
+ };
20547
+ /** @description Stored reports are not supported by this backend build (no database) */
20548
+ 501: {
20549
+ headers: {
20550
+ [name: string]: unknown;
20551
+ };
20552
+ content: {
20553
+ "application/json": components["schemas"]["ErrorMessageDto"];
20554
+ };
20555
+ };
20556
+ };
20557
+ };
20558
+ storeAssessmentReport: {
20559
+ parameters: {
20560
+ query?: never;
20561
+ header?: never;
20562
+ path: {
20563
+ workspaceId: components["parameters"]["WorkspaceId"];
19267
20564
  };
19268
20565
  cookie?: never;
19269
20566
  };
19270
- requestBody?: never;
20567
+ requestBody: {
20568
+ content: {
20569
+ "application/json": components["schemas"]["StoreAssessmentReportBodyDto"];
20570
+ };
20571
+ };
19271
20572
  responses: {
19272
- /** @description Markdown file of readiness issues */
19273
- 200: {
20573
+ /** @description Report stored */
20574
+ 201: {
19274
20575
  headers: {
19275
20576
  [name: string]: unknown;
19276
20577
  };
19277
20578
  content: {
19278
- "text/markdown": string;
20579
+ "application/json": components["schemas"]["AssessmentReportDto"];
19279
20580
  };
19280
20581
  };
19281
- /** @description Malformed `repoId` or invalid query parameters */
20582
+ /** @description Body is not valid, or the file is not a PDF or is too large */
19282
20583
  400: {
19283
20584
  headers: {
19284
20585
  [name: string]: unknown;
@@ -19289,7 +20590,7 @@ export interface operations {
19289
20590
  };
19290
20591
  401: components["responses"]["Unauthorized"];
19291
20592
  403: components["responses"]["Forbidden"];
19292
- /** @description Workspace or repository not found */
20593
+ /** @description Workspace does not exist */
19293
20594
  404: {
19294
20595
  headers: {
19295
20596
  [name: string]: unknown;
@@ -19298,36 +20599,17 @@ export interface operations {
19298
20599
  "application/json": components["schemas"]["ErrorMessageDto"];
19299
20600
  };
19300
20601
  };
19301
- };
19302
- };
19303
- listReadinessRepoRuns: {
19304
- parameters: {
19305
- query?: {
19306
- limit?: number;
19307
- order?: "asc" | "desc";
19308
- /** @description Opaque cursor from a prior response `nextCursor` field. */
19309
- cursor?: string;
19310
- };
19311
- header?: never;
19312
- path: {
19313
- workspaceId: components["parameters"]["WorkspaceId"];
19314
- repoId: components["parameters"]["RepoId"];
19315
- };
19316
- cookie?: never;
19317
- };
19318
- requestBody?: never;
19319
- responses: {
19320
- /** @description Run history page */
19321
- 200: {
20602
+ /** @description `not_buyer_deliverable` (the rebuilt manifest did not validate as an internal buyer file; includes `reasons`) or `manifest_changed` (stored evidence changed since the PDF was built, so `contentHash` differs; export again). */
20603
+ 422: {
19322
20604
  headers: {
19323
20605
  [name: string]: unknown;
19324
20606
  };
19325
20607
  content: {
19326
- "application/json": components["schemas"]["ReadinessRepoRunListDto"];
20608
+ "application/json": components["schemas"]["StoreAssessmentReportRejectedDto"];
19327
20609
  };
19328
20610
  };
19329
- /** @description Invalid pagination query */
19330
- 400: {
20611
+ /** @description Stored reports are not supported by this backend build (no database) */
20612
+ 501: {
19331
20613
  headers: {
19332
20614
  [name: string]: unknown;
19333
20615
  };
@@ -19335,10 +20617,8 @@ export interface operations {
19335
20617
  "application/json": components["schemas"]["ErrorMessageDto"];
19336
20618
  };
19337
20619
  };
19338
- 401: components["responses"]["Unauthorized"];
19339
- 403: components["responses"]["Forbidden"];
19340
- /** @description Workspace or repository not found */
19341
- 404: {
20620
+ /** @description Stored evidence could not be loaded to rebuild the manifest. */
20621
+ 503: {
19342
20622
  headers: {
19343
20623
  [name: string]: unknown;
19344
20624
  };
@@ -19348,40 +20628,33 @@ export interface operations {
19348
20628
  };
19349
20629
  };
19350
20630
  };
19351
- listReadinessAudit: {
20631
+ createAssessmentReportLink: {
19352
20632
  parameters: {
19353
- query?: {
19354
- limit?: number;
19355
- offset?: number;
19356
- order?: "asc" | "desc";
19357
- /** @description Sort column for the activity feed. */
19358
- sort?: "occurredAt" | "actorName" | "repoName" | "eventType" | "dimensionId";
19359
- /** @description Case-insensitive match on actor name or email. */
19360
- search?: string;
19361
- eventType?: components["schemas"]["ReadinessAuditEventType"];
19362
- dimensionId?: components["schemas"]["ReadinessDimensionId"];
19363
- repoId?: string;
19364
- /** @description ISO-8601 lower bound on `occurredAt` (inclusive). */
19365
- since?: string;
19366
- };
20633
+ query?: never;
19367
20634
  header?: never;
19368
20635
  path: {
19369
20636
  workspaceId: components["parameters"]["WorkspaceId"];
20637
+ /** @description Stored assessment report id (`tai_workspace_assessment_reports.id`). */
20638
+ reportId: components["parameters"]["AssessmentReportId"];
19370
20639
  };
19371
20640
  cookie?: never;
19372
20641
  };
19373
- requestBody?: never;
20642
+ requestBody: {
20643
+ content: {
20644
+ "application/json": components["schemas"]["CreateAssessmentReportLinkBodyDto"];
20645
+ };
20646
+ };
19374
20647
  responses: {
19375
- /** @description Paginated audit entries */
19376
- 200: {
20648
+ /** @description Link created */
20649
+ 201: {
19377
20650
  headers: {
19378
20651
  [name: string]: unknown;
19379
20652
  };
19380
20653
  content: {
19381
- "application/json": components["schemas"]["ReadinessAuditListDto"];
20654
+ "application/json": components["schemas"]["CreateAssessmentReportLinkResponseDto"];
19382
20655
  };
19383
20656
  };
19384
- /** @description Invalid query */
20657
+ /** @description Body is not valid */
19385
20658
  400: {
19386
20659
  headers: {
19387
20660
  [name: string]: unknown;
@@ -19392,7 +20665,7 @@ export interface operations {
19392
20665
  };
19393
20666
  401: components["responses"]["Unauthorized"];
19394
20667
  403: components["responses"]["Forbidden"];
19395
- /** @description Workspace does not exist */
20668
+ /** @description Workspace or report not found (`report_not_found`) */
19396
20669
  404: {
19397
20670
  headers: {
19398
20671
  [name: string]: unknown;
@@ -19401,31 +20674,61 @@ export interface operations {
19401
20674
  "application/json": components["schemas"]["ErrorMessageDto"];
19402
20675
  };
19403
20676
  };
20677
+ /** @description The report is hidden (`report_hidden`) */
20678
+ 409: {
20679
+ headers: {
20680
+ [name: string]: unknown;
20681
+ };
20682
+ content: {
20683
+ "application/json": components["schemas"]["ErrorMessageDto"];
20684
+ };
20685
+ };
20686
+ /** @description The recipient is not a current workspace member (`recipient_not_member`) */
20687
+ 422: {
20688
+ headers: {
20689
+ [name: string]: unknown;
20690
+ };
20691
+ content: {
20692
+ "application/json": components["schemas"]["ErrorMessageDto"];
20693
+ };
20694
+ };
20695
+ /** @description Stored reports or member listing are not supported by this backend build */
20696
+ 501: {
20697
+ headers: {
20698
+ [name: string]: unknown;
20699
+ };
20700
+ content: {
20701
+ "application/json": components["schemas"]["ErrorMessageDto"];
20702
+ };
20703
+ };
19404
20704
  };
19405
20705
  };
19406
- getAssessmentDictionary: {
20706
+ revokeAssessmentReportLink: {
19407
20707
  parameters: {
19408
20708
  query?: never;
19409
20709
  header?: never;
19410
20710
  path: {
19411
20711
  workspaceId: components["parameters"]["WorkspaceId"];
20712
+ /** @description Stored assessment report id (`tai_workspace_assessment_reports.id`). */
20713
+ reportId: components["parameters"]["AssessmentReportId"];
20714
+ grantId: string;
19412
20715
  };
19413
20716
  cookie?: never;
19414
20717
  };
19415
20718
  requestBody?: never;
19416
20719
  responses: {
19417
- /** @description Current assessment dictionary */
20720
+ /** @description Revoked link */
19418
20721
  200: {
19419
20722
  headers: {
19420
20723
  [name: string]: unknown;
19421
20724
  };
19422
20725
  content: {
19423
- "application/json": components["schemas"]["AssessmentDictionaryDto"];
20726
+ "application/json": components["schemas"]["AssessmentReportLinkDto"];
19424
20727
  };
19425
20728
  };
19426
20729
  401: components["responses"]["Unauthorized"];
19427
20730
  403: components["responses"]["Forbidden"];
19428
- /** @description Workspace does not exist */
20731
+ /** @description Workspace, report, or link not found */
19429
20732
  404: {
19430
20733
  headers: {
19431
20734
  [name: string]: unknown;
@@ -19434,31 +20737,42 @@ export interface operations {
19434
20737
  "application/json": components["schemas"]["ErrorMessageDto"];
19435
20738
  };
19436
20739
  };
20740
+ /** @description Stored reports are not supported by this backend build (no database) */
20741
+ 501: {
20742
+ headers: {
20743
+ [name: string]: unknown;
20744
+ };
20745
+ content: {
20746
+ "application/json": components["schemas"]["ErrorMessageDto"];
20747
+ };
20748
+ };
19437
20749
  };
19438
20750
  };
19439
- getAggregateUseConsent: {
20751
+ hideAssessmentReport: {
19440
20752
  parameters: {
19441
20753
  query?: never;
19442
20754
  header?: never;
19443
20755
  path: {
19444
20756
  workspaceId: components["parameters"]["WorkspaceId"];
20757
+ /** @description Stored assessment report id (`tai_workspace_assessment_reports.id`). */
20758
+ reportId: components["parameters"]["AssessmentReportId"];
19445
20759
  };
19446
20760
  cookie?: never;
19447
20761
  };
19448
20762
  requestBody?: never;
19449
20763
  responses: {
19450
- /** @description Current permission and the sentence reports must print */
20764
+ /** @description Hidden report (`links` is empty in this response; list again for links) */
19451
20765
  200: {
19452
20766
  headers: {
19453
20767
  [name: string]: unknown;
19454
20768
  };
19455
20769
  content: {
19456
- "application/json": components["schemas"]["AggregateUseConsentDto"];
20770
+ "application/json": components["schemas"]["AssessmentReportDto"];
19457
20771
  };
19458
20772
  };
19459
20773
  401: components["responses"]["Unauthorized"];
19460
20774
  403: components["responses"]["Forbidden"];
19461
- /** @description Workspace does not exist */
20775
+ /** @description Workspace or report not found */
19462
20776
  404: {
19463
20777
  headers: {
19464
20778
  [name: string]: unknown;
@@ -19467,44 +20781,43 @@ export interface operations {
19467
20781
  "application/json": components["schemas"]["ErrorMessageDto"];
19468
20782
  };
19469
20783
  };
20784
+ /** @description Stored reports are not supported by this backend build (no database) */
20785
+ 501: {
20786
+ headers: {
20787
+ [name: string]: unknown;
20788
+ };
20789
+ content: {
20790
+ "application/json": components["schemas"]["ErrorMessageDto"];
20791
+ };
20792
+ };
19470
20793
  };
19471
20794
  };
19472
- putAggregateUseConsent: {
20795
+ restoreAssessmentReport: {
19473
20796
  parameters: {
19474
20797
  query?: never;
19475
20798
  header?: never;
19476
20799
  path: {
19477
20800
  workspaceId: components["parameters"]["WorkspaceId"];
20801
+ /** @description Stored assessment report id (`tai_workspace_assessment_reports.id`). */
20802
+ reportId: components["parameters"]["AssessmentReportId"];
19478
20803
  };
19479
20804
  cookie?: never;
19480
20805
  };
19481
- requestBody: {
19482
- content: {
19483
- "application/json": components["schemas"]["AggregateUseConsentPutDto"];
19484
- };
19485
- };
20806
+ requestBody?: never;
19486
20807
  responses: {
19487
- /** @description Saved permission */
20808
+ /** @description Restored report (`links` is empty in this response; list again for links) */
19488
20809
  200: {
19489
20810
  headers: {
19490
20811
  [name: string]: unknown;
19491
20812
  };
19492
20813
  content: {
19493
- "application/json": components["schemas"]["AggregateUseConsentDto"];
19494
- };
19495
- };
19496
- /** @description Invalid body (`code`: `invalid_input`) */
19497
- 400: {
19498
- headers: {
19499
- [name: string]: unknown;
19500
- };
19501
- content: {
19502
- "application/json": components["schemas"]["ErrorMessageDto"];
20814
+ "application/json": components["schemas"]["AssessmentReportDto"];
19503
20815
  };
19504
20816
  };
19505
20817
  401: components["responses"]["Unauthorized"];
19506
- /** @description Caller is not a workspace admin (`code`: `workspace_admin_required`) */
19507
- 403: {
20818
+ 403: components["responses"]["Forbidden"];
20819
+ /** @description Workspace or report not found */
20820
+ 404: {
19508
20821
  headers: {
19509
20822
  [name: string]: unknown;
19510
20823
  };
@@ -19512,8 +20825,8 @@ export interface operations {
19512
20825
  "application/json": components["schemas"]["ErrorMessageDto"];
19513
20826
  };
19514
20827
  };
19515
- /** @description Workspace does not exist */
19516
- 404: {
20828
+ /** @description `not_hidden` or `restore_window_ended` */
20829
+ 409: {
19517
20830
  headers: {
19518
20831
  [name: string]: unknown;
19519
20832
  };
@@ -19521,8 +20834,8 @@ export interface operations {
19521
20834
  "application/json": components["schemas"]["ErrorMessageDto"];
19522
20835
  };
19523
20836
  };
19524
- /** @description Opt-in refused because no notice is approved (`aggregate_use_notice_unapproved`) or the submitted notice version is not current (`aggregate_use_notice_stale`). */
19525
- 409: {
20837
+ /** @description Stored reports are not supported by this backend build (no database) */
20838
+ 501: {
19526
20839
  headers: {
19527
20840
  [name: string]: unknown;
19528
20841
  };
@@ -19532,43 +20845,58 @@ export interface operations {
19532
20845
  };
19533
20846
  };
19534
20847
  };
19535
- recordReportCenterExport: {
20848
+ downloadAssessmentReport: {
19536
20849
  parameters: {
19537
- query?: never;
19538
- header?: never;
19539
- path: {
19540
- workspaceId: components["parameters"]["WorkspaceId"];
20850
+ query: {
20851
+ /** @description Opaque link token from the email (`secureLinkQuery`). */
20852
+ t: string;
19541
20853
  };
20854
+ header?: never;
20855
+ path?: never;
19542
20856
  cookie?: never;
19543
20857
  };
19544
- requestBody: {
19545
- content: {
19546
- "application/json": components["schemas"]["ReportCenterExportRecordBodyDto"];
19547
- };
19548
- };
20858
+ requestBody?: never;
19549
20859
  responses: {
19550
- /** @description Export recorded */
19551
- 201: {
20860
+ /** @description The decrypted PDF */
20861
+ 200: {
19552
20862
  headers: {
20863
+ "Cache-Control"?: "no-store";
19553
20864
  [name: string]: unknown;
19554
20865
  };
19555
20866
  content: {
19556
- "application/json": components["schemas"]["ReportCenterExportRecordResponseDto"];
20867
+ "application/pdf": string;
19557
20868
  };
19558
20869
  };
19559
- /** @description Invalid body */
19560
- 400: {
20870
+ 401: components["responses"]["Unauthorized"];
20871
+ /** @description `leaked_token`, `removed_member`, or `wrong_workspace` */
20872
+ 403: {
19561
20873
  headers: {
19562
20874
  [name: string]: unknown;
19563
20875
  };
19564
20876
  content: {
19565
- "application/json": components["schemas"]["ErrorMessageDto"];
20877
+ "application/json": components["schemas"]["AssessmentReportAccessErrorDto"];
19566
20878
  };
19567
20879
  };
19568
- 401: components["responses"]["Unauthorized"];
19569
- 403: components["responses"]["Forbidden"];
19570
- /** @description Workspace does not exist */
20880
+ /** @description `invalid_grant` */
19571
20881
  404: {
20882
+ headers: {
20883
+ [name: string]: unknown;
20884
+ };
20885
+ content: {
20886
+ "application/json": components["schemas"]["AssessmentReportAccessErrorDto"];
20887
+ };
20888
+ };
20889
+ /** @description `expired`, `revoked`, or `report_hidden` */
20890
+ 410: {
20891
+ headers: {
20892
+ [name: string]: unknown;
20893
+ };
20894
+ content: {
20895
+ "application/json": components["schemas"]["AssessmentReportAccessErrorDto"];
20896
+ };
20897
+ };
20898
+ /** @description The stored report could not be decrypted (`report_unreadable`) */
20899
+ 500: {
19572
20900
  headers: {
19573
20901
  [name: string]: unknown;
19574
20902
  };
@@ -19576,7 +20904,7 @@ export interface operations {
19576
20904
  "application/json": components["schemas"]["ErrorMessageDto"];
19577
20905
  };
19578
20906
  };
19579
- /** @description Activity log is not supported by this backend build */
20907
+ /** @description Stored reports are not supported by this backend build (no database) */
19580
20908
  501: {
19581
20909
  headers: {
19582
20910
  [name: string]: unknown;
@@ -24954,6 +26282,83 @@ export interface operations {
24954
26282
  403: components["responses"]["Forbidden"];
24955
26283
  };
24956
26284
  };
26285
+ postWorkspaceVcsRepoDiscovery: {
26286
+ parameters: {
26287
+ query?: never;
26288
+ header?: never;
26289
+ path: {
26290
+ workspaceId: components["parameters"]["WorkspaceId"];
26291
+ };
26292
+ cookie?: never;
26293
+ };
26294
+ requestBody: {
26295
+ content: {
26296
+ "application/json": components["schemas"]["GitVcsSourceDto"];
26297
+ };
26298
+ };
26299
+ responses: {
26300
+ /** @description Repositories the source can read */
26301
+ 200: {
26302
+ headers: {
26303
+ [name: string]: unknown;
26304
+ };
26305
+ content: {
26306
+ "application/json": components["schemas"]["VcsRepoDiscoveryResponseDto"];
26307
+ };
26308
+ };
26309
+ /** @description Invalid source (`error` is a code such as `base_url_required`, `base_url_invalid`, `base_url_not_https`, `base_url_has_credentials`, `base_url_has_path`, `base_url_host_blocked`, `env_ref_not_allowed`, `account_missing`, `token_missing`, `unsupported_type`). */
26310
+ 400: {
26311
+ headers: {
26312
+ [name: string]: unknown;
26313
+ };
26314
+ content: {
26315
+ "application/json": components["schemas"]["ErrorMessageDto"];
26316
+ };
26317
+ };
26318
+ 401: components["responses"]["Unauthorized"];
26319
+ 403: components["responses"]["Forbidden"];
26320
+ /** @description The provider rejected or failed the listing (`error` is `unauthorized`, `forbidden`, `not_found`, `rate_limited`, or `discovery_failed`). */
26321
+ 502: {
26322
+ headers: {
26323
+ [name: string]: unknown;
26324
+ };
26325
+ content: {
26326
+ "application/json": components["schemas"]["ErrorMessageDto"];
26327
+ };
26328
+ };
26329
+ };
26330
+ };
26331
+ getWorkspaceVcsProviderCoverage: {
26332
+ parameters: {
26333
+ query?: never;
26334
+ header?: never;
26335
+ path: {
26336
+ workspaceId: components["parameters"]["WorkspaceId"];
26337
+ };
26338
+ cookie?: never;
26339
+ };
26340
+ requestBody?: never;
26341
+ responses: {
26342
+ /** @description Server-computed provider coverage */
26343
+ 200: {
26344
+ headers: {
26345
+ [name: string]: unknown;
26346
+ };
26347
+ content: {
26348
+ "application/json": components["schemas"]["VcsProviderCoverageDto"];
26349
+ };
26350
+ };
26351
+ 401: components["responses"]["Unauthorized"];
26352
+ 403: components["responses"]["Forbidden"];
26353
+ /** @description Store does not support provider coverage */
26354
+ 501: {
26355
+ headers: {
26356
+ [name: string]: unknown;
26357
+ };
26358
+ content?: never;
26359
+ };
26360
+ };
26361
+ };
24957
26362
  retryWorkspaceProductivityRepo: {
24958
26363
  parameters: {
24959
26364
  query?: never;