@thinkai/tai-api-contract 2.227.1 → 2.228.1
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.
|
@@ -5330,12 +5330,12 @@ export interface paths {
|
|
|
5330
5330
|
};
|
|
5331
5331
|
/**
|
|
5332
5332
|
* Get preferences for current user
|
|
5333
|
-
* @description Returns saved preferences, including `notificationChannels
|
|
5333
|
+
* @description Returns saved preferences, including `notificationChannels` and `designVersion` (`null` when the person has never chosen). An empty or missing profile returns defaults (`email.status` is `digest`; every other channel cell is `off`; `designVersion` and `designVersionChangedAt` are `null`).
|
|
5334
5334
|
*/
|
|
5335
5335
|
get: operations["getMyPreferences"];
|
|
5336
5336
|
/**
|
|
5337
5337
|
* Upsert preferences
|
|
5338
|
-
* @description Replaces the saved preferences object. Omitting `notificationChannels` keeps the stored cells, or the defaults when none are stored. A body that includes `notificationChannels` replaces those cells; any missing key inside it uses the default (`email.status` = `digest`, every other cell = `off`). Setting `email.status` to `off` returns 400 `notification_channel_required`. In-app `notifications` booleans are independent of these cells.
|
|
5338
|
+
* @description Replaces the saved preferences object. Omitting `notificationChannels` keeps the stored cells, or the defaults when none are stored. A body that includes `notificationChannels` replaces those cells; any missing key inside it uses the default (`email.status` = `digest`, every other cell = `off`). Setting `email.status` to `off` returns 400 `notification_channel_required`. In-app `notifications` booleans are independent of these cells. `designVersion` and `designVersionChangedAt` are not accepted; the stored design choice is kept. Use `PUT /me/design-version` to change it.
|
|
5339
5339
|
*/
|
|
5340
5340
|
put: operations["putMyPreferences"];
|
|
5341
5341
|
post?: never;
|
|
@@ -5345,6 +5345,26 @@ export interface paths {
|
|
|
5345
5345
|
patch?: never;
|
|
5346
5346
|
trace?: never;
|
|
5347
5347
|
};
|
|
5348
|
+
"/me/design-version": {
|
|
5349
|
+
parameters: {
|
|
5350
|
+
query?: never;
|
|
5351
|
+
header?: never;
|
|
5352
|
+
path?: never;
|
|
5353
|
+
cookie?: never;
|
|
5354
|
+
};
|
|
5355
|
+
get?: never;
|
|
5356
|
+
/**
|
|
5357
|
+
* Save the current user's design version
|
|
5358
|
+
* @description Writes `designVersion` and `designVersionChangedAt` on the user's preferences. A change inserts a `tai_design_switch_events` row (user, workspace, from, to, reason, note, route, created_at). Repeating the same version does not insert a row. When `reason` is sent with the same version, it is copied onto the person's latest event if that event has no reason and is less than 24 hours old; an optional `note` on that call is stored when the event has none. `reason` is `missing` | `hard_to_find` | `hard_to_read` | `broken` | `prefer_classic`. `note` is optional free text, at most 500 characters. `route` is the app path (no query string), at most 200 characters. `PUT /me/preferences` cannot change this choice.
|
|
5359
|
+
*/
|
|
5360
|
+
put: operations["putMyDesignVersion"];
|
|
5361
|
+
post?: never;
|
|
5362
|
+
delete?: never;
|
|
5363
|
+
options?: never;
|
|
5364
|
+
head?: never;
|
|
5365
|
+
patch?: never;
|
|
5366
|
+
trace?: never;
|
|
5367
|
+
};
|
|
5348
5368
|
"/me/consent": {
|
|
5349
5369
|
parameters: {
|
|
5350
5370
|
query?: never;
|
|
@@ -9336,7 +9356,7 @@ export interface components {
|
|
|
9336
9356
|
subject: {
|
|
9337
9357
|
[key: string]: unknown;
|
|
9338
9358
|
};
|
|
9339
|
-
/** @description Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity, code chat). */
|
|
9359
|
+
/** @description Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity, code chat, design switch events). */
|
|
9340
9360
|
sections?: {
|
|
9341
9361
|
[key: string]: unknown;
|
|
9342
9362
|
};
|
|
@@ -11354,8 +11374,34 @@ export interface components {
|
|
|
11354
11374
|
*/
|
|
11355
11375
|
buddyEnabled: boolean;
|
|
11356
11376
|
notificationChannels: components["schemas"]["NotificationChannelsDto"];
|
|
11377
|
+
/** @description Saved design choice. `null` means the person has never chosen. Written only via `PUT /me/design-version`. */
|
|
11378
|
+
designVersion: components["schemas"]["DesignVersion"] | null;
|
|
11379
|
+
/**
|
|
11380
|
+
* Format: date-time
|
|
11381
|
+
* @description When `designVersion` last changed. `null` when never chosen.
|
|
11382
|
+
*/
|
|
11383
|
+
designVersionChangedAt: string | null;
|
|
11384
|
+
};
|
|
11385
|
+
/**
|
|
11386
|
+
* @description Classic (`v1`) or new (`v2`) design.
|
|
11387
|
+
* @enum {string}
|
|
11388
|
+
*/
|
|
11389
|
+
DesignVersion: "v1" | "v2";
|
|
11390
|
+
/**
|
|
11391
|
+
* @description Closed-set reason for leaving or declining the new design (DESIGN_SYSTEM.md § Design switch).
|
|
11392
|
+
* @enum {string}
|
|
11393
|
+
*/
|
|
11394
|
+
DesignSwitchReason: "missing" | "hard_to_find" | "hard_to_read" | "broken" | "prefer_classic";
|
|
11395
|
+
/** @description Body for `PUT /me/design-version`. Optional `note` is at most 500 characters. `route` is the app path (no query string), at most 200 characters. */
|
|
11396
|
+
PutDesignVersionBodyDto: {
|
|
11397
|
+
version: components["schemas"]["DesignVersion"];
|
|
11398
|
+
reason?: components["schemas"]["DesignSwitchReason"];
|
|
11399
|
+
/** @description Optional free-text feedback stored on the switch event. */
|
|
11400
|
+
note?: string;
|
|
11401
|
+
/** @description App path the person was on. Query strings are not stored. */
|
|
11402
|
+
route?: string;
|
|
11357
11403
|
};
|
|
11358
|
-
/** @description Body for `PUT /me/preferences`. `notificationChannels` may be omitted to keep stored cells. */
|
|
11404
|
+
/** @description Body for `PUT /me/preferences`. `notificationChannels` may be omitted to keep stored cells. `designVersion` and `designVersionChangedAt` are not accepted; the stored design choice is kept. Use `PUT /me/design-version` to change it. */
|
|
11359
11405
|
PutPreferencesBodyDto: {
|
|
11360
11406
|
theme: components["schemas"]["ThemePreference"];
|
|
11361
11407
|
sidebarCollapsed: boolean;
|
|
@@ -11624,7 +11670,7 @@ export interface components {
|
|
|
11624
11670
|
* @description Type of workspace lifecycle event.
|
|
11625
11671
|
* @enum {string}
|
|
11626
11672
|
*/
|
|
11627
|
-
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" | "readiness.agent_execution_fallback" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "rules_skills.soft_quality.override" | "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.backfill_completed" | "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.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.sentry.added" | "integrations.sentry.removed" | "integrations.sentry.sync_completed" | "integrations.sentry.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" | "config.strict_insights_on_trust.changed";
|
|
11673
|
+
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" | "readiness.agent_execution_fallback" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "rules_skills.soft_quality.override" | "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.backfill_completed" | "productivity.ingest.daily_failure_summary" | "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.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.sentry.added" | "integrations.sentry.removed" | "integrations.sentry.sync_completed" | "integrations.sentry.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" | "config.strict_insights_on_trust.changed";
|
|
11628
11674
|
/** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
|
|
11629
11675
|
AggregateUseNoticeStatusDto: {
|
|
11630
11676
|
/** @enum {string} */
|
|
@@ -15423,6 +15469,9 @@ export type PutNotificationEmailChannelsDto = components['schemas']['PutNotifica
|
|
|
15423
15469
|
export type PutNotificationChatChannelsDto = components['schemas']['PutNotificationChatChannelsDto'];
|
|
15424
15470
|
export type PutNotificationChannelsDto = components['schemas']['PutNotificationChannelsDto'];
|
|
15425
15471
|
export type PreferencesDto = components['schemas']['PreferencesDto'];
|
|
15472
|
+
export type DesignVersion = components['schemas']['DesignVersion'];
|
|
15473
|
+
export type DesignSwitchReason = components['schemas']['DesignSwitchReason'];
|
|
15474
|
+
export type PutDesignVersionBodyDto = components['schemas']['PutDesignVersionBodyDto'];
|
|
15426
15475
|
export type PutPreferencesBodyDto = components['schemas']['PutPreferencesBodyDto'];
|
|
15427
15476
|
export type NotificationChannelRequiredErrorDto = components['schemas']['NotificationChannelRequiredErrorDto'];
|
|
15428
15477
|
export type ValidationIssueDto = components['schemas']['ValidationIssueDto'];
|
|
@@ -30004,6 +30053,40 @@ export interface operations {
|
|
|
30004
30053
|
401: components["responses"]["Unauthorized"];
|
|
30005
30054
|
};
|
|
30006
30055
|
};
|
|
30056
|
+
putMyDesignVersion: {
|
|
30057
|
+
parameters: {
|
|
30058
|
+
query?: never;
|
|
30059
|
+
header?: never;
|
|
30060
|
+
path?: never;
|
|
30061
|
+
cookie?: never;
|
|
30062
|
+
};
|
|
30063
|
+
requestBody: {
|
|
30064
|
+
content: {
|
|
30065
|
+
"application/json": components["schemas"]["PutDesignVersionBodyDto"];
|
|
30066
|
+
};
|
|
30067
|
+
};
|
|
30068
|
+
responses: {
|
|
30069
|
+
/** @description Updated preferences including `designVersion` */
|
|
30070
|
+
200: {
|
|
30071
|
+
headers: {
|
|
30072
|
+
[name: string]: unknown;
|
|
30073
|
+
};
|
|
30074
|
+
content: {
|
|
30075
|
+
"application/json": components["schemas"]["PreferencesDto"];
|
|
30076
|
+
};
|
|
30077
|
+
};
|
|
30078
|
+
/** @description Validation failed (unknown fields, invalid version, reason, note, or route). */
|
|
30079
|
+
400: {
|
|
30080
|
+
headers: {
|
|
30081
|
+
[name: string]: unknown;
|
|
30082
|
+
};
|
|
30083
|
+
content: {
|
|
30084
|
+
"application/json": components["schemas"]["PreferencesValidationErrorDto"];
|
|
30085
|
+
};
|
|
30086
|
+
};
|
|
30087
|
+
401: components["responses"]["Unauthorized"];
|
|
30088
|
+
};
|
|
30089
|
+
};
|
|
30007
30090
|
getMyConsent: {
|
|
30008
30091
|
parameters: {
|
|
30009
30092
|
query?: never;
|