@thinkai/tai-api-contract 2.151.0 → 2.152.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 +163 -4
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +128 -6
- package/package.json +4 -4
- package/src/generated/openapi.ts +163 -4
|
@@ -3715,7 +3715,7 @@ export interface paths {
|
|
|
3715
3715
|
put?: never;
|
|
3716
3716
|
/**
|
|
3717
3717
|
* Apply a Message Center email unsubscribe (public)
|
|
3718
|
-
* @description **Unauthenticated.** Sets that category's email cell to `off` when the category allows off. A status token leaves status email unchanged. Redirects `303` to `{spa}/
|
|
3718
|
+
* @description **Unauthenticated.** Sets that category's email cell to `off` when the category allows off. A status token leaves status email unchanged. Redirects `303` to `{spa}/workspace/preferences`. An unknown or expired token is `400` HTML and does not change preferences.
|
|
3719
3719
|
*/
|
|
3720
3720
|
post: operations["postNotificationEmailUnsubscribe"];
|
|
3721
3721
|
delete?: never;
|
|
@@ -3753,7 +3753,7 @@ export interface paths {
|
|
|
3753
3753
|
};
|
|
3754
3754
|
/**
|
|
3755
3755
|
* Slack OAuth callback
|
|
3756
|
-
* @description Browser return from Slack. The provider redirect does not include the API bearer token. `state` was issued by `getSlackInstallUrl` to a signed-in admin and is single-use. The bot token is stored encrypted only when that user is still a workspace admin. Success redirects to `{spa}/
|
|
3756
|
+
* @description Browser return from Slack. The provider redirect does not include the API bearer token. `state` was issued by `getSlackInstallUrl` to a signed-in admin and is single-use. The bot token is stored encrypted only when that user is still a workspace admin. Success redirects to `{spa}/workspace/preferences?chat=slack`. Failures redirect to the same page with `slack=error`. The token is never in the redirect.
|
|
3757
3757
|
*/
|
|
3758
3758
|
get: operations["getSlackOauthCallback"];
|
|
3759
3759
|
put?: never;
|
|
@@ -3808,6 +3808,30 @@ export interface paths {
|
|
|
3808
3808
|
patch?: never;
|
|
3809
3809
|
trace?: never;
|
|
3810
3810
|
};
|
|
3811
|
+
"/workspaces/{workspaceId}/notification-preferences": {
|
|
3812
|
+
parameters: {
|
|
3813
|
+
query?: never;
|
|
3814
|
+
header?: never;
|
|
3815
|
+
path?: never;
|
|
3816
|
+
cookie?: never;
|
|
3817
|
+
};
|
|
3818
|
+
/**
|
|
3819
|
+
* Member notification preferences for this workspace
|
|
3820
|
+
* @description In-app Message Center switches and email, Slack, and Teams cells for the current member in this workspace. Missing stored values use the same defaults as account preferences (`email.status` is `digest`; other channel cells are `off`).
|
|
3821
|
+
*/
|
|
3822
|
+
get: operations["getWorkspaceNotificationPreferences"];
|
|
3823
|
+
/**
|
|
3824
|
+
* Save member notification preferences for this workspace
|
|
3825
|
+
* @description Replaces the in-app switches. `notificationChannels` may be omitted to keep stored cells. `email.status` = `off` is `400` `notification_channel_required`. Account `PUT /me/preferences` no longer changes the inbox or delivery.
|
|
3826
|
+
*/
|
|
3827
|
+
put: operations["putWorkspaceNotificationPreferences"];
|
|
3828
|
+
post?: never;
|
|
3829
|
+
delete?: never;
|
|
3830
|
+
options?: never;
|
|
3831
|
+
head?: never;
|
|
3832
|
+
patch?: never;
|
|
3833
|
+
trace?: never;
|
|
3834
|
+
};
|
|
3811
3835
|
"/workspaces/{workspaceId}/notifications": {
|
|
3812
3836
|
parameters: {
|
|
3813
3837
|
query?: never;
|
|
@@ -3848,6 +3872,26 @@ export interface paths {
|
|
|
3848
3872
|
patch?: never;
|
|
3849
3873
|
trace?: never;
|
|
3850
3874
|
};
|
|
3875
|
+
"/workspaces/{workspaceId}/notifications/read": {
|
|
3876
|
+
parameters: {
|
|
3877
|
+
query?: never;
|
|
3878
|
+
header?: never;
|
|
3879
|
+
path?: never;
|
|
3880
|
+
cookie?: never;
|
|
3881
|
+
};
|
|
3882
|
+
get?: never;
|
|
3883
|
+
put?: never;
|
|
3884
|
+
/**
|
|
3885
|
+
* Mark selected notifications read
|
|
3886
|
+
* @description Marks only the given ids read for the current member in this workspace. Ids that are missing or belong to someone else are ignored. `ids` is 1 to 100 uuids.
|
|
3887
|
+
*/
|
|
3888
|
+
post: operations["postNotificationsRead"];
|
|
3889
|
+
delete?: never;
|
|
3890
|
+
options?: never;
|
|
3891
|
+
head?: never;
|
|
3892
|
+
patch?: never;
|
|
3893
|
+
trace?: never;
|
|
3894
|
+
};
|
|
3851
3895
|
"/workspaces/{workspaceId}/notifications/{id}/read": {
|
|
3852
3896
|
parameters: {
|
|
3853
3897
|
query?: never;
|
|
@@ -4235,7 +4279,7 @@ export interface paths {
|
|
|
4235
4279
|
};
|
|
4236
4280
|
/**
|
|
4237
4281
|
* Finish Teams Microsoft sign-in
|
|
4238
|
-
* @description Public redirect target. The one-time state was minted by a signed-in admin and still requires that user to be a workspace admin. Stores the bot token encrypted and redirects to `{spa}/
|
|
4282
|
+
* @description Public redirect target. The one-time state was minted by a signed-in admin and still requires that user to be a workspace admin. Stores the bot token encrypted and redirects to `{spa}/workspace/preferences?chat=teams`.
|
|
4239
4283
|
*/
|
|
4240
4284
|
get: operations["getTeamsIntegrationCallback"];
|
|
4241
4285
|
put?: never;
|
|
@@ -8216,6 +8260,19 @@ export interface components {
|
|
|
8216
8260
|
activity: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8217
8261
|
system: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8218
8262
|
};
|
|
8263
|
+
/** @description Message Center switches and delivery cells for one member in one workspace. */
|
|
8264
|
+
WorkspaceNotificationPreferencesDto: {
|
|
8265
|
+
notifications: components["schemas"]["NotificationPreferencesDto"];
|
|
8266
|
+
notificationChannels: components["schemas"]["NotificationChannelsDto"];
|
|
8267
|
+
};
|
|
8268
|
+
/** @description Body for `PUT /workspaces/{workspaceId}/notification-preferences`. Omit `notificationChannels` to keep stored cells. */
|
|
8269
|
+
PutWorkspaceNotificationPreferencesBodyDto: {
|
|
8270
|
+
notifications: components["schemas"]["NotificationPreferencesDto"];
|
|
8271
|
+
notificationChannels?: components["schemas"]["PutNotificationChannelsDto"];
|
|
8272
|
+
};
|
|
8273
|
+
NotificationReadIdsBodyDto: {
|
|
8274
|
+
ids: string[];
|
|
8275
|
+
};
|
|
8219
8276
|
/** @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. */
|
|
8220
8277
|
NotificationChannelsDto: {
|
|
8221
8278
|
email: components["schemas"]["NotificationEmailChannelsDto"];
|
|
@@ -11025,6 +11082,9 @@ export type NotificationEmailDeliveryMode = components['schemas']['NotificationE
|
|
|
11025
11082
|
export type NotificationChatDeliveryMode = components['schemas']['NotificationChatDeliveryMode'];
|
|
11026
11083
|
export type NotificationEmailChannelsDto = components['schemas']['NotificationEmailChannelsDto'];
|
|
11027
11084
|
export type NotificationChatChannelsDto = components['schemas']['NotificationChatChannelsDto'];
|
|
11085
|
+
export type WorkspaceNotificationPreferencesDto = components['schemas']['WorkspaceNotificationPreferencesDto'];
|
|
11086
|
+
export type PutWorkspaceNotificationPreferencesBodyDto = components['schemas']['PutWorkspaceNotificationPreferencesBodyDto'];
|
|
11087
|
+
export type NotificationReadIdsBodyDto = components['schemas']['NotificationReadIdsBodyDto'];
|
|
11028
11088
|
export type NotificationChannelsDto = components['schemas']['NotificationChannelsDto'];
|
|
11029
11089
|
export type SlackInstallUrlDto = components['schemas']['SlackInstallUrlDto'];
|
|
11030
11090
|
export type SlackIntegrationStatusDto = components['schemas']['SlackIntegrationStatusDto'];
|
|
@@ -20957,7 +21017,7 @@ export interface operations {
|
|
|
20957
21017
|
/** @description Preference updated, or left unchanged for status email. */
|
|
20958
21018
|
303: {
|
|
20959
21019
|
headers: {
|
|
20960
|
-
/** @description `{spa}/
|
|
21020
|
+
/** @description `{spa}/workspace/preferences` */
|
|
20961
21021
|
Location?: string;
|
|
20962
21022
|
[name: string]: unknown;
|
|
20963
21023
|
};
|
|
@@ -21242,6 +21302,71 @@ export interface operations {
|
|
|
21242
21302
|
};
|
|
21243
21303
|
};
|
|
21244
21304
|
};
|
|
21305
|
+
getWorkspaceNotificationPreferences: {
|
|
21306
|
+
parameters: {
|
|
21307
|
+
query?: never;
|
|
21308
|
+
header?: never;
|
|
21309
|
+
path: {
|
|
21310
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21311
|
+
};
|
|
21312
|
+
cookie?: never;
|
|
21313
|
+
};
|
|
21314
|
+
requestBody?: never;
|
|
21315
|
+
responses: {
|
|
21316
|
+
/** @description Preferences for this member in this workspace */
|
|
21317
|
+
200: {
|
|
21318
|
+
headers: {
|
|
21319
|
+
[name: string]: unknown;
|
|
21320
|
+
};
|
|
21321
|
+
content: {
|
|
21322
|
+
"application/json": components["schemas"]["WorkspaceNotificationPreferencesDto"];
|
|
21323
|
+
};
|
|
21324
|
+
};
|
|
21325
|
+
401: components["responses"]["Unauthorized"];
|
|
21326
|
+
};
|
|
21327
|
+
};
|
|
21328
|
+
putWorkspaceNotificationPreferences: {
|
|
21329
|
+
parameters: {
|
|
21330
|
+
query?: never;
|
|
21331
|
+
header?: never;
|
|
21332
|
+
path: {
|
|
21333
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21334
|
+
};
|
|
21335
|
+
cookie?: never;
|
|
21336
|
+
};
|
|
21337
|
+
requestBody: {
|
|
21338
|
+
content: {
|
|
21339
|
+
"application/json": components["schemas"]["PutWorkspaceNotificationPreferencesBodyDto"];
|
|
21340
|
+
};
|
|
21341
|
+
};
|
|
21342
|
+
responses: {
|
|
21343
|
+
/** @description Saved preferences */
|
|
21344
|
+
200: {
|
|
21345
|
+
headers: {
|
|
21346
|
+
[name: string]: unknown;
|
|
21347
|
+
};
|
|
21348
|
+
content: {
|
|
21349
|
+
"application/json": components["schemas"]["WorkspaceNotificationPreferencesDto"];
|
|
21350
|
+
};
|
|
21351
|
+
};
|
|
21352
|
+
/** @description Invalid body, or status email set to off */
|
|
21353
|
+
400: {
|
|
21354
|
+
headers: {
|
|
21355
|
+
[name: string]: unknown;
|
|
21356
|
+
};
|
|
21357
|
+
content: {
|
|
21358
|
+
/**
|
|
21359
|
+
* @example {
|
|
21360
|
+
* "error": "Status email cannot be turned off",
|
|
21361
|
+
* "code": "notification_channel_required"
|
|
21362
|
+
* }
|
|
21363
|
+
*/
|
|
21364
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21365
|
+
};
|
|
21366
|
+
};
|
|
21367
|
+
401: components["responses"]["Unauthorized"];
|
|
21368
|
+
};
|
|
21369
|
+
};
|
|
21245
21370
|
listNotifications: {
|
|
21246
21371
|
parameters: {
|
|
21247
21372
|
query?: {
|
|
@@ -21304,6 +21429,40 @@ export interface operations {
|
|
|
21304
21429
|
401: components["responses"]["Unauthorized"];
|
|
21305
21430
|
};
|
|
21306
21431
|
};
|
|
21432
|
+
postNotificationsRead: {
|
|
21433
|
+
parameters: {
|
|
21434
|
+
query?: never;
|
|
21435
|
+
header?: never;
|
|
21436
|
+
path: {
|
|
21437
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21438
|
+
};
|
|
21439
|
+
cookie?: never;
|
|
21440
|
+
};
|
|
21441
|
+
requestBody: {
|
|
21442
|
+
content: {
|
|
21443
|
+
"application/json": components["schemas"]["NotificationReadIdsBodyDto"];
|
|
21444
|
+
};
|
|
21445
|
+
};
|
|
21446
|
+
responses: {
|
|
21447
|
+
/** @description Updated */
|
|
21448
|
+
204: {
|
|
21449
|
+
headers: {
|
|
21450
|
+
[name: string]: unknown;
|
|
21451
|
+
};
|
|
21452
|
+
content?: never;
|
|
21453
|
+
};
|
|
21454
|
+
/** @description Invalid ids */
|
|
21455
|
+
400: {
|
|
21456
|
+
headers: {
|
|
21457
|
+
[name: string]: unknown;
|
|
21458
|
+
};
|
|
21459
|
+
content: {
|
|
21460
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21461
|
+
};
|
|
21462
|
+
};
|
|
21463
|
+
401: components["responses"]["Unauthorized"];
|
|
21464
|
+
};
|
|
21465
|
+
};
|
|
21307
21466
|
postNotificationRead: {
|
|
21308
21467
|
parameters: {
|
|
21309
21468
|
query?: never;
|