@thinkai/tai-api-contract 2.147.1 → 2.149.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/openapi.d.ts +127 -10
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +231 -10
- package/package.json +1 -1
- package/src/generated/openapi.ts +127 -10
|
@@ -3707,7 +3707,10 @@ export interface paths {
|
|
|
3707
3707
|
path?: never;
|
|
3708
3708
|
cookie?: never;
|
|
3709
3709
|
};
|
|
3710
|
-
/**
|
|
3710
|
+
/**
|
|
3711
|
+
* Paginated notifications
|
|
3712
|
+
* @description Inbox for the current user in this workspace. Applies the same notification-type preference filter and routine-title exclusion as the unread badge. `view` defaults to `all` so a client that omits it still receives success rows. Severity is the stored column and is not recomputed per request.
|
|
3713
|
+
*/
|
|
3711
3714
|
get: operations["listNotifications"];
|
|
3712
3715
|
put?: never;
|
|
3713
3716
|
post?: never;
|
|
@@ -3724,7 +3727,10 @@ export interface paths {
|
|
|
3724
3727
|
path?: never;
|
|
3725
3728
|
cookie?: never;
|
|
3726
3729
|
};
|
|
3727
|
-
/**
|
|
3730
|
+
/**
|
|
3731
|
+
* Unread notification count
|
|
3732
|
+
* @description Unread rows for the current user in this workspace after the notification-type preference filter and the routine-title exclusion. `count` is not capped. `hasUnreadCritical` is true when at least one of those rows has severity `destructive`.
|
|
3733
|
+
*/
|
|
3728
3734
|
get: operations["getNotificationUnreadCount"];
|
|
3729
3735
|
put?: never;
|
|
3730
3736
|
post?: never;
|
|
@@ -3813,9 +3819,15 @@ export interface paths {
|
|
|
3813
3819
|
path?: never;
|
|
3814
3820
|
cookie?: never;
|
|
3815
3821
|
};
|
|
3816
|
-
/**
|
|
3822
|
+
/**
|
|
3823
|
+
* Get preferences for current user
|
|
3824
|
+
* @description Returns saved preferences, including `notificationChannels`. An empty or missing profile returns defaults (`email.status` is `digest`; every other channel cell is `off`).
|
|
3825
|
+
*/
|
|
3817
3826
|
get: operations["getMyPreferences"];
|
|
3818
|
-
/**
|
|
3827
|
+
/**
|
|
3828
|
+
* Upsert preferences
|
|
3829
|
+
* @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.
|
|
3830
|
+
*/
|
|
3819
3831
|
put: operations["putMyPreferences"];
|
|
3820
3832
|
post?: never;
|
|
3821
3833
|
delete?: never;
|
|
@@ -3851,7 +3863,7 @@ export interface paths {
|
|
|
3851
3863
|
};
|
|
3852
3864
|
/**
|
|
3853
3865
|
* App chrome bootstrap payload
|
|
3854
|
-
* @description Returns the authenticated user's profile, workspace list, and preferences in one response. When `workspaceId` is provided and resolves to a workspace the caller belongs to, also returns platform banner, unread notification count, journey progress, and connectors snapshot. Invalid, unknown, or non-member `workspaceId` values do not produce 403/404 — the response is still 200 with only `me`, `workspaces`, and `preferences` (workspace-scoped fields omitted).
|
|
3866
|
+
* @description Returns the authenticated user's profile, workspace list, and preferences (including `notificationChannels`) in one response. When `workspaceId` is provided and resolves to a workspace the caller belongs to, also returns platform banner, unread notification count (`count` and `hasUnreadCritical`), journey progress, and connectors snapshot. Invalid, unknown, or non-member `workspaceId` values do not produce 403/404 — the response is still 200 with only `me`, `workspaces`, and `preferences` (workspace-scoped fields omitted).
|
|
3855
3867
|
*/
|
|
3856
3868
|
get: operations["getAppShell"];
|
|
3857
3869
|
put?: never;
|
|
@@ -7879,8 +7891,11 @@ export interface components {
|
|
|
7879
7891
|
/** Format: date-time */
|
|
7880
7892
|
createdAt: string;
|
|
7881
7893
|
route?: string;
|
|
7882
|
-
/**
|
|
7883
|
-
|
|
7894
|
+
/**
|
|
7895
|
+
* @description Stored on the notification row at fan-out. `destructive` is the only critical severity.
|
|
7896
|
+
* @enum {string}
|
|
7897
|
+
*/
|
|
7898
|
+
severity: "success" | "warning" | "destructive" | "muted" | "neutral";
|
|
7884
7899
|
triggeredBy?: string | null;
|
|
7885
7900
|
};
|
|
7886
7901
|
NotificationListDto: {
|
|
@@ -7888,7 +7903,10 @@ export interface components {
|
|
|
7888
7903
|
total: number;
|
|
7889
7904
|
};
|
|
7890
7905
|
NotificationUnreadCountDto: {
|
|
7906
|
+
/** @description Unread rows after the type-preference filter and routine-title exclusion. Not capped. */
|
|
7891
7907
|
count: number;
|
|
7908
|
+
/** @description True when at least one of those unread rows has severity `destructive`. */
|
|
7909
|
+
hasUnreadCritical: boolean;
|
|
7892
7910
|
};
|
|
7893
7911
|
EffectiveTaskRowDto: {
|
|
7894
7912
|
id: string;
|
|
@@ -7966,6 +7984,59 @@ export interface components {
|
|
|
7966
7984
|
/** @description System / platform announcements. */
|
|
7967
7985
|
system: boolean;
|
|
7968
7986
|
};
|
|
7987
|
+
/**
|
|
7988
|
+
* @description Status email delivery. `digest` (default) is the weekly mail. `immediate` sends as events arrive. `off` is not allowed.
|
|
7989
|
+
* @enum {string}
|
|
7990
|
+
*/
|
|
7991
|
+
NotificationEmailStatusMode: "immediate" | "digest";
|
|
7992
|
+
/**
|
|
7993
|
+
* @description Email delivery for comment, activity, or system. Default `off`. `immediate` sends as events arrive. `digest` is the weekly mail.
|
|
7994
|
+
* @enum {string}
|
|
7995
|
+
*/
|
|
7996
|
+
NotificationEmailDeliveryMode: "off" | "immediate" | "digest";
|
|
7997
|
+
/**
|
|
7998
|
+
* @description Slack or Teams delivery for one category. Default `off` until that member changes the cell. `dm` is a direct message. `channel` posts to the workspace channel an admin saved. Connecting chat does not turn cells on.
|
|
7999
|
+
* @enum {string}
|
|
8000
|
+
*/
|
|
8001
|
+
NotificationChatDeliveryMode: "off" | "dm" | "channel";
|
|
8002
|
+
NotificationEmailChannelsDto: {
|
|
8003
|
+
status: components["schemas"]["NotificationEmailStatusMode"];
|
|
8004
|
+
comment: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8005
|
+
activity: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8006
|
+
system: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8007
|
+
};
|
|
8008
|
+
NotificationChatChannelsDto: {
|
|
8009
|
+
status: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8010
|
+
comment: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8011
|
+
activity: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8012
|
+
system: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8013
|
+
};
|
|
8014
|
+
/** @description Delivery cells beside the in-app Message Center switches. Defaults: `email.status` is `digest`; every other cell is `off`. Inbox rows whose type is `integration` use the `status` cell. */
|
|
8015
|
+
NotificationChannelsDto: {
|
|
8016
|
+
email: components["schemas"]["NotificationEmailChannelsDto"];
|
|
8017
|
+
slack: components["schemas"]["NotificationChatChannelsDto"];
|
|
8018
|
+
teams: components["schemas"]["NotificationChatChannelsDto"];
|
|
8019
|
+
};
|
|
8020
|
+
/** @description Partial email cells. Omitted keys are filled with defaults on save (`status` = `digest`, other keys = `off`). */
|
|
8021
|
+
PutNotificationEmailChannelsDto: {
|
|
8022
|
+
status?: components["schemas"]["NotificationEmailStatusMode"];
|
|
8023
|
+
comment?: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8024
|
+
activity?: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8025
|
+
system?: components["schemas"]["NotificationEmailDeliveryMode"];
|
|
8026
|
+
};
|
|
8027
|
+
/** @description Partial chat cells. Omitted keys default to `off` on save. */
|
|
8028
|
+
PutNotificationChatChannelsDto: {
|
|
8029
|
+
status?: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8030
|
+
comment?: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8031
|
+
activity?: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8032
|
+
system?: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8033
|
+
};
|
|
8034
|
+
/** @description Replaces stored channel cells when present on `PUT /me/preferences`. Omitted `email`, `slack`, or `teams` objects are filled with defaults. */
|
|
8035
|
+
PutNotificationChannelsDto: {
|
|
8036
|
+
email?: components["schemas"]["PutNotificationEmailChannelsDto"];
|
|
8037
|
+
slack?: components["schemas"]["PutNotificationChatChannelsDto"];
|
|
8038
|
+
teams?: components["schemas"]["PutNotificationChatChannelsDto"];
|
|
8039
|
+
};
|
|
7969
8040
|
PreferencesDto: {
|
|
7970
8041
|
theme: components["schemas"]["ThemePreference"];
|
|
7971
8042
|
sidebarCollapsed: boolean;
|
|
@@ -7978,6 +8049,28 @@ export interface components {
|
|
|
7978
8049
|
* @default false
|
|
7979
8050
|
*/
|
|
7980
8051
|
buddyEnabled: boolean;
|
|
8052
|
+
notificationChannels: components["schemas"]["NotificationChannelsDto"];
|
|
8053
|
+
};
|
|
8054
|
+
/** @description Body for `PUT /me/preferences`. `notificationChannels` may be omitted to keep stored cells. */
|
|
8055
|
+
PutPreferencesBodyDto: {
|
|
8056
|
+
theme: components["schemas"]["ThemePreference"];
|
|
8057
|
+
sidebarCollapsed: boolean;
|
|
8058
|
+
/** @description IANA timezone name */
|
|
8059
|
+
timezone: string;
|
|
8060
|
+
dataRefreshInterval: components["schemas"]["DataRefreshInterval"];
|
|
8061
|
+
notifications: components["schemas"]["NotificationPreferencesDto"];
|
|
8062
|
+
/**
|
|
8063
|
+
* @description When true, show the ThinkAI Buddy mascot. Default and missing stored values are false (opt-in only).
|
|
8064
|
+
* @default false
|
|
8065
|
+
*/
|
|
8066
|
+
buddyEnabled: boolean;
|
|
8067
|
+
notificationChannels?: components["schemas"]["PutNotificationChannelsDto"];
|
|
8068
|
+
};
|
|
8069
|
+
NotificationChannelRequiredErrorDto: {
|
|
8070
|
+
/** @description Status email cannot be turned off. */
|
|
8071
|
+
error: string;
|
|
8072
|
+
/** @enum {string} */
|
|
8073
|
+
code: "notification_channel_required";
|
|
7981
8074
|
};
|
|
7982
8075
|
ValidationIssueDto: {
|
|
7983
8076
|
path: (string | number)[];
|
|
@@ -10707,7 +10800,18 @@ export type JourneyProgressUpdateDto = components['schemas']['JourneyProgressUpd
|
|
|
10707
10800
|
export type ThemePreference = components['schemas']['ThemePreference'];
|
|
10708
10801
|
export type DataRefreshInterval = components['schemas']['DataRefreshInterval'];
|
|
10709
10802
|
export type NotificationPreferencesDto = components['schemas']['NotificationPreferencesDto'];
|
|
10803
|
+
export type NotificationEmailStatusMode = components['schemas']['NotificationEmailStatusMode'];
|
|
10804
|
+
export type NotificationEmailDeliveryMode = components['schemas']['NotificationEmailDeliveryMode'];
|
|
10805
|
+
export type NotificationChatDeliveryMode = components['schemas']['NotificationChatDeliveryMode'];
|
|
10806
|
+
export type NotificationEmailChannelsDto = components['schemas']['NotificationEmailChannelsDto'];
|
|
10807
|
+
export type NotificationChatChannelsDto = components['schemas']['NotificationChatChannelsDto'];
|
|
10808
|
+
export type NotificationChannelsDto = components['schemas']['NotificationChannelsDto'];
|
|
10809
|
+
export type PutNotificationEmailChannelsDto = components['schemas']['PutNotificationEmailChannelsDto'];
|
|
10810
|
+
export type PutNotificationChatChannelsDto = components['schemas']['PutNotificationChatChannelsDto'];
|
|
10811
|
+
export type PutNotificationChannelsDto = components['schemas']['PutNotificationChannelsDto'];
|
|
10710
10812
|
export type PreferencesDto = components['schemas']['PreferencesDto'];
|
|
10813
|
+
export type PutPreferencesBodyDto = components['schemas']['PutPreferencesBodyDto'];
|
|
10814
|
+
export type NotificationChannelRequiredErrorDto = components['schemas']['NotificationChannelRequiredErrorDto'];
|
|
10711
10815
|
export type ValidationIssueDto = components['schemas']['ValidationIssueDto'];
|
|
10712
10816
|
export type PreferencesValidationErrorDto = components['schemas']['PreferencesValidationErrorDto'];
|
|
10713
10817
|
export type ConsentCategoriesDto = components['schemas']['ConsentCategoriesDto'];
|
|
@@ -20579,6 +20683,10 @@ export interface operations {
|
|
|
20579
20683
|
query?: {
|
|
20580
20684
|
limit?: number;
|
|
20581
20685
|
offset?: number;
|
|
20686
|
+
/** @description `all` returns every severity. `needs_action` returns only `warning` and `destructive`. Omitted is `all`. */
|
|
20687
|
+
view?: "all" | "needs_action";
|
|
20688
|
+
/** @description Omit to include read and unread rows. `true` is unread only. `false` is read only. */
|
|
20689
|
+
unread?: boolean;
|
|
20582
20690
|
};
|
|
20583
20691
|
header?: never;
|
|
20584
20692
|
path: {
|
|
@@ -20597,6 +20705,15 @@ export interface operations {
|
|
|
20597
20705
|
"application/json": components["schemas"]["NotificationListDto"];
|
|
20598
20706
|
};
|
|
20599
20707
|
};
|
|
20708
|
+
/** @description Invalid `view` or `unread` */
|
|
20709
|
+
400: {
|
|
20710
|
+
headers: {
|
|
20711
|
+
[name: string]: unknown;
|
|
20712
|
+
};
|
|
20713
|
+
content: {
|
|
20714
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
20715
|
+
};
|
|
20716
|
+
};
|
|
20600
20717
|
401: components["responses"]["Unauthorized"];
|
|
20601
20718
|
};
|
|
20602
20719
|
};
|
|
@@ -20811,7 +20928,7 @@ export interface operations {
|
|
|
20811
20928
|
};
|
|
20812
20929
|
requestBody: {
|
|
20813
20930
|
content: {
|
|
20814
|
-
"application/json": components["schemas"]["
|
|
20931
|
+
"application/json": components["schemas"]["PutPreferencesBodyDto"];
|
|
20815
20932
|
};
|
|
20816
20933
|
};
|
|
20817
20934
|
responses: {
|
|
@@ -20824,13 +20941,13 @@ export interface operations {
|
|
|
20824
20941
|
"application/json": components["schemas"]["PreferencesDto"];
|
|
20825
20942
|
};
|
|
20826
20943
|
};
|
|
20827
|
-
/** @description Validation failed */
|
|
20944
|
+
/** @description Validation failed, or Status email was set to off (`code` `notification_channel_required`). */
|
|
20828
20945
|
400: {
|
|
20829
20946
|
headers: {
|
|
20830
20947
|
[name: string]: unknown;
|
|
20831
20948
|
};
|
|
20832
20949
|
content: {
|
|
20833
|
-
"application/json": components["schemas"]["PreferencesValidationErrorDto"];
|
|
20950
|
+
"application/json": components["schemas"]["PreferencesValidationErrorDto"] | components["schemas"]["NotificationChannelRequiredErrorDto"];
|
|
20834
20951
|
};
|
|
20835
20952
|
};
|
|
20836
20953
|
401: components["responses"]["Unauthorized"];
|