@thinkai/tai-api-contract 2.150.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 +566 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +388 -4
- package/package.json +4 -4
- package/src/generated/openapi.ts +566 -3
|
@@ -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;
|
|
@@ -4206,6 +4250,90 @@ export interface paths {
|
|
|
4206
4250
|
patch?: never;
|
|
4207
4251
|
trace?: never;
|
|
4208
4252
|
};
|
|
4253
|
+
"/workspaces/{workspaceId}/integrations/teams/install-url": {
|
|
4254
|
+
parameters: {
|
|
4255
|
+
query?: never;
|
|
4256
|
+
header?: never;
|
|
4257
|
+
path?: never;
|
|
4258
|
+
cookie?: never;
|
|
4259
|
+
};
|
|
4260
|
+
/**
|
|
4261
|
+
* Microsoft sign-in URL for Teams notification delivery
|
|
4262
|
+
* @description Workspace **admin** only. Returns the Microsoft authorize URL. State carries the workspace and the signed-in admin. Editor or viewer is `403` `workspace_admin_required`.
|
|
4263
|
+
*/
|
|
4264
|
+
get: operations["getWorkspaceTeamsInstallUrl"];
|
|
4265
|
+
put?: never;
|
|
4266
|
+
post?: never;
|
|
4267
|
+
delete?: never;
|
|
4268
|
+
options?: never;
|
|
4269
|
+
head?: never;
|
|
4270
|
+
patch?: never;
|
|
4271
|
+
trace?: never;
|
|
4272
|
+
};
|
|
4273
|
+
"/integrations/teams/callback": {
|
|
4274
|
+
parameters: {
|
|
4275
|
+
query?: never;
|
|
4276
|
+
header?: never;
|
|
4277
|
+
path?: never;
|
|
4278
|
+
cookie?: never;
|
|
4279
|
+
};
|
|
4280
|
+
/**
|
|
4281
|
+
* Finish Teams Microsoft sign-in
|
|
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`.
|
|
4283
|
+
*/
|
|
4284
|
+
get: operations["getTeamsIntegrationCallback"];
|
|
4285
|
+
put?: never;
|
|
4286
|
+
post?: never;
|
|
4287
|
+
delete?: never;
|
|
4288
|
+
options?: never;
|
|
4289
|
+
head?: never;
|
|
4290
|
+
patch?: never;
|
|
4291
|
+
trace?: never;
|
|
4292
|
+
};
|
|
4293
|
+
"/workspaces/{workspaceId}/integrations/teams": {
|
|
4294
|
+
parameters: {
|
|
4295
|
+
query?: never;
|
|
4296
|
+
header?: never;
|
|
4297
|
+
path?: never;
|
|
4298
|
+
cookie?: never;
|
|
4299
|
+
};
|
|
4300
|
+
/**
|
|
4301
|
+
* Teams connection status
|
|
4302
|
+
* @description Any workspace member. `{ connected, channelName }`. Never returns the bot token. `channelName` is null until an admin saves a channel.
|
|
4303
|
+
*/
|
|
4304
|
+
get: operations["getWorkspaceTeamsConnection"];
|
|
4305
|
+
put?: never;
|
|
4306
|
+
post?: never;
|
|
4307
|
+
/**
|
|
4308
|
+
* Disconnect Teams
|
|
4309
|
+
* @description Workspace **admin** only. Later Message Center posts do not go to Teams. Member chat cells stay unchanged.
|
|
4310
|
+
*/
|
|
4311
|
+
delete: operations["deleteWorkspaceTeamsConnection"];
|
|
4312
|
+
options?: never;
|
|
4313
|
+
head?: never;
|
|
4314
|
+
patch?: never;
|
|
4315
|
+
trace?: never;
|
|
4316
|
+
};
|
|
4317
|
+
"/workspaces/{workspaceId}/integrations/teams/channel": {
|
|
4318
|
+
parameters: {
|
|
4319
|
+
query?: never;
|
|
4320
|
+
header?: never;
|
|
4321
|
+
path?: never;
|
|
4322
|
+
cookie?: never;
|
|
4323
|
+
};
|
|
4324
|
+
get?: never;
|
|
4325
|
+
/**
|
|
4326
|
+
* Save the Teams channel for notification posts
|
|
4327
|
+
* @description Workspace **admin** only. Body `{ channelId }`. The channel must be visible to the connected Microsoft account. Until a channel is saved, channel-mode delivery is skipped with `chat_channel_unset`.
|
|
4328
|
+
*/
|
|
4329
|
+
put: operations["putWorkspaceTeamsChannel"];
|
|
4330
|
+
post?: never;
|
|
4331
|
+
delete?: never;
|
|
4332
|
+
options?: never;
|
|
4333
|
+
head?: never;
|
|
4334
|
+
patch?: never;
|
|
4335
|
+
trace?: never;
|
|
4336
|
+
};
|
|
4209
4337
|
"/workspaces/{workspaceId}/integrations/zelt/authorize-url": {
|
|
4210
4338
|
parameters: {
|
|
4211
4339
|
query?: never;
|
|
@@ -4470,6 +4598,19 @@ export interface paths {
|
|
|
4470
4598
|
export type webhooks = Record<string, never>;
|
|
4471
4599
|
export interface components {
|
|
4472
4600
|
schemas: {
|
|
4601
|
+
TeamsInstallUrlDto: {
|
|
4602
|
+
/** Format: uri */
|
|
4603
|
+
url: string;
|
|
4604
|
+
};
|
|
4605
|
+
TeamsConnectionDto: {
|
|
4606
|
+
/** @description True after an admin completes Microsoft sign-in. */
|
|
4607
|
+
connected: boolean;
|
|
4608
|
+
/** @description Selected channel display name. Null until an admin saves a channel. */
|
|
4609
|
+
channelName: string | null;
|
|
4610
|
+
};
|
|
4611
|
+
TeamsChannelBodyDto: {
|
|
4612
|
+
channelId: string;
|
|
4613
|
+
};
|
|
4473
4614
|
ErrorMessageDto: {
|
|
4474
4615
|
error: string;
|
|
4475
4616
|
/** @description Machine-readable error code when present (for example `last_admin`). */
|
|
@@ -8119,6 +8260,19 @@ export interface components {
|
|
|
8119
8260
|
activity: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8120
8261
|
system: components["schemas"]["NotificationChatDeliveryMode"];
|
|
8121
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
|
+
};
|
|
8122
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. */
|
|
8123
8277
|
NotificationChannelsDto: {
|
|
8124
8278
|
email: components["schemas"]["NotificationEmailChannelsDto"];
|
|
@@ -10603,6 +10757,9 @@ export interface components {
|
|
|
10603
10757
|
headers: never;
|
|
10604
10758
|
pathItems: never;
|
|
10605
10759
|
}
|
|
10760
|
+
export type TeamsInstallUrlDto = components['schemas']['TeamsInstallUrlDto'];
|
|
10761
|
+
export type TeamsConnectionDto = components['schemas']['TeamsConnectionDto'];
|
|
10762
|
+
export type TeamsChannelBodyDto = components['schemas']['TeamsChannelBodyDto'];
|
|
10606
10763
|
export type ErrorMessageDto = components['schemas']['ErrorMessageDto'];
|
|
10607
10764
|
export type TeamMemberDto = components['schemas']['TeamMemberDto'];
|
|
10608
10765
|
export type TeamMemberListDto = components['schemas']['TeamMemberListDto'];
|
|
@@ -10925,6 +11082,9 @@ export type NotificationEmailDeliveryMode = components['schemas']['NotificationE
|
|
|
10925
11082
|
export type NotificationChatDeliveryMode = components['schemas']['NotificationChatDeliveryMode'];
|
|
10926
11083
|
export type NotificationEmailChannelsDto = components['schemas']['NotificationEmailChannelsDto'];
|
|
10927
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'];
|
|
10928
11088
|
export type NotificationChannelsDto = components['schemas']['NotificationChannelsDto'];
|
|
10929
11089
|
export type SlackInstallUrlDto = components['schemas']['SlackInstallUrlDto'];
|
|
10930
11090
|
export type SlackIntegrationStatusDto = components['schemas']['SlackIntegrationStatusDto'];
|
|
@@ -20857,7 +21017,7 @@ export interface operations {
|
|
|
20857
21017
|
/** @description Preference updated, or left unchanged for status email. */
|
|
20858
21018
|
303: {
|
|
20859
21019
|
headers: {
|
|
20860
|
-
/** @description `{spa}/
|
|
21020
|
+
/** @description `{spa}/workspace/preferences` */
|
|
20861
21021
|
Location?: string;
|
|
20862
21022
|
[name: string]: unknown;
|
|
20863
21023
|
};
|
|
@@ -21142,6 +21302,71 @@ export interface operations {
|
|
|
21142
21302
|
};
|
|
21143
21303
|
};
|
|
21144
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
|
+
};
|
|
21145
21370
|
listNotifications: {
|
|
21146
21371
|
parameters: {
|
|
21147
21372
|
query?: {
|
|
@@ -21204,6 +21429,40 @@ export interface operations {
|
|
|
21204
21429
|
401: components["responses"]["Unauthorized"];
|
|
21205
21430
|
};
|
|
21206
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
|
+
};
|
|
21207
21466
|
postNotificationRead: {
|
|
21208
21467
|
parameters: {
|
|
21209
21468
|
query?: never;
|
|
@@ -21976,6 +22235,310 @@ export interface operations {
|
|
|
21976
22235
|
403: components["responses"]["Forbidden"];
|
|
21977
22236
|
};
|
|
21978
22237
|
};
|
|
22238
|
+
getWorkspaceTeamsInstallUrl: {
|
|
22239
|
+
parameters: {
|
|
22240
|
+
query?: never;
|
|
22241
|
+
header?: never;
|
|
22242
|
+
path: {
|
|
22243
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22244
|
+
};
|
|
22245
|
+
cookie?: never;
|
|
22246
|
+
};
|
|
22247
|
+
requestBody?: never;
|
|
22248
|
+
responses: {
|
|
22249
|
+
/** @description Authorize URL */
|
|
22250
|
+
200: {
|
|
22251
|
+
headers: {
|
|
22252
|
+
[name: string]: unknown;
|
|
22253
|
+
};
|
|
22254
|
+
content: {
|
|
22255
|
+
/**
|
|
22256
|
+
* @example {
|
|
22257
|
+
* "url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=example&state=example-state"
|
|
22258
|
+
* }
|
|
22259
|
+
*/
|
|
22260
|
+
"application/json": components["schemas"]["TeamsInstallUrlDto"];
|
|
22261
|
+
};
|
|
22262
|
+
};
|
|
22263
|
+
401: components["responses"]["Unauthorized"];
|
|
22264
|
+
/** @description Editor or viewer */
|
|
22265
|
+
403: {
|
|
22266
|
+
headers: {
|
|
22267
|
+
[name: string]: unknown;
|
|
22268
|
+
};
|
|
22269
|
+
content: {
|
|
22270
|
+
/**
|
|
22271
|
+
* @example {
|
|
22272
|
+
* "error": "Forbidden",
|
|
22273
|
+
* "code": "workspace_admin_required"
|
|
22274
|
+
* }
|
|
22275
|
+
*/
|
|
22276
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22277
|
+
};
|
|
22278
|
+
};
|
|
22279
|
+
/** @description Workspace not found */
|
|
22280
|
+
404: {
|
|
22281
|
+
headers: {
|
|
22282
|
+
[name: string]: unknown;
|
|
22283
|
+
};
|
|
22284
|
+
content: {
|
|
22285
|
+
/**
|
|
22286
|
+
* @example {
|
|
22287
|
+
* "error": "Not found"
|
|
22288
|
+
* }
|
|
22289
|
+
*/
|
|
22290
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22291
|
+
};
|
|
22292
|
+
};
|
|
22293
|
+
/** @description Teams app credentials are not configured */
|
|
22294
|
+
503: {
|
|
22295
|
+
headers: {
|
|
22296
|
+
[name: string]: unknown;
|
|
22297
|
+
};
|
|
22298
|
+
content: {
|
|
22299
|
+
/**
|
|
22300
|
+
* @example {
|
|
22301
|
+
* "error": "Teams sign-in is not configured",
|
|
22302
|
+
* "code": "teams_not_configured"
|
|
22303
|
+
* }
|
|
22304
|
+
*/
|
|
22305
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22306
|
+
};
|
|
22307
|
+
};
|
|
22308
|
+
};
|
|
22309
|
+
};
|
|
22310
|
+
getTeamsIntegrationCallback: {
|
|
22311
|
+
parameters: {
|
|
22312
|
+
query: {
|
|
22313
|
+
code?: string;
|
|
22314
|
+
state: string;
|
|
22315
|
+
error?: string;
|
|
22316
|
+
};
|
|
22317
|
+
header?: never;
|
|
22318
|
+
path?: never;
|
|
22319
|
+
cookie?: never;
|
|
22320
|
+
};
|
|
22321
|
+
requestBody?: never;
|
|
22322
|
+
responses: {
|
|
22323
|
+
/** @description Redirect to Settings → Preferences */
|
|
22324
|
+
302: {
|
|
22325
|
+
headers: {
|
|
22326
|
+
Location?: string;
|
|
22327
|
+
[name: string]: unknown;
|
|
22328
|
+
};
|
|
22329
|
+
content?: never;
|
|
22330
|
+
};
|
|
22331
|
+
/** @description SPA origin is not configured */
|
|
22332
|
+
503: {
|
|
22333
|
+
headers: {
|
|
22334
|
+
[name: string]: unknown;
|
|
22335
|
+
};
|
|
22336
|
+
content: {
|
|
22337
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22338
|
+
};
|
|
22339
|
+
};
|
|
22340
|
+
};
|
|
22341
|
+
};
|
|
22342
|
+
getWorkspaceTeamsConnection: {
|
|
22343
|
+
parameters: {
|
|
22344
|
+
query?: never;
|
|
22345
|
+
header?: never;
|
|
22346
|
+
path: {
|
|
22347
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22348
|
+
};
|
|
22349
|
+
cookie?: never;
|
|
22350
|
+
};
|
|
22351
|
+
requestBody?: never;
|
|
22352
|
+
responses: {
|
|
22353
|
+
/** @description Connection status */
|
|
22354
|
+
200: {
|
|
22355
|
+
headers: {
|
|
22356
|
+
[name: string]: unknown;
|
|
22357
|
+
};
|
|
22358
|
+
content: {
|
|
22359
|
+
/**
|
|
22360
|
+
* @example {
|
|
22361
|
+
* "connected": true,
|
|
22362
|
+
* "channelName": "General"
|
|
22363
|
+
* }
|
|
22364
|
+
*/
|
|
22365
|
+
"application/json": components["schemas"]["TeamsConnectionDto"];
|
|
22366
|
+
};
|
|
22367
|
+
};
|
|
22368
|
+
401: components["responses"]["Unauthorized"];
|
|
22369
|
+
403: components["responses"]["Forbidden"];
|
|
22370
|
+
/** @description Workspace not found */
|
|
22371
|
+
404: {
|
|
22372
|
+
headers: {
|
|
22373
|
+
[name: string]: unknown;
|
|
22374
|
+
};
|
|
22375
|
+
content: {
|
|
22376
|
+
/**
|
|
22377
|
+
* @example {
|
|
22378
|
+
* "error": "Not found"
|
|
22379
|
+
* }
|
|
22380
|
+
*/
|
|
22381
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22382
|
+
};
|
|
22383
|
+
};
|
|
22384
|
+
};
|
|
22385
|
+
};
|
|
22386
|
+
deleteWorkspaceTeamsConnection: {
|
|
22387
|
+
parameters: {
|
|
22388
|
+
query?: never;
|
|
22389
|
+
header?: never;
|
|
22390
|
+
path: {
|
|
22391
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22392
|
+
};
|
|
22393
|
+
cookie?: never;
|
|
22394
|
+
};
|
|
22395
|
+
requestBody?: never;
|
|
22396
|
+
responses: {
|
|
22397
|
+
/** @description Disconnected */
|
|
22398
|
+
204: {
|
|
22399
|
+
headers: {
|
|
22400
|
+
[name: string]: unknown;
|
|
22401
|
+
};
|
|
22402
|
+
content?: never;
|
|
22403
|
+
};
|
|
22404
|
+
401: components["responses"]["Unauthorized"];
|
|
22405
|
+
/** @description Editor or viewer */
|
|
22406
|
+
403: {
|
|
22407
|
+
headers: {
|
|
22408
|
+
[name: string]: unknown;
|
|
22409
|
+
};
|
|
22410
|
+
content: {
|
|
22411
|
+
/**
|
|
22412
|
+
* @example {
|
|
22413
|
+
* "error": "Forbidden",
|
|
22414
|
+
* "code": "workspace_admin_required"
|
|
22415
|
+
* }
|
|
22416
|
+
*/
|
|
22417
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22418
|
+
};
|
|
22419
|
+
};
|
|
22420
|
+
/** @description Workspace not found */
|
|
22421
|
+
404: {
|
|
22422
|
+
headers: {
|
|
22423
|
+
[name: string]: unknown;
|
|
22424
|
+
};
|
|
22425
|
+
content: {
|
|
22426
|
+
/**
|
|
22427
|
+
* @example {
|
|
22428
|
+
* "error": "Not found"
|
|
22429
|
+
* }
|
|
22430
|
+
*/
|
|
22431
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22432
|
+
};
|
|
22433
|
+
};
|
|
22434
|
+
};
|
|
22435
|
+
};
|
|
22436
|
+
putWorkspaceTeamsChannel: {
|
|
22437
|
+
parameters: {
|
|
22438
|
+
query?: never;
|
|
22439
|
+
header?: never;
|
|
22440
|
+
path: {
|
|
22441
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22442
|
+
};
|
|
22443
|
+
cookie?: never;
|
|
22444
|
+
};
|
|
22445
|
+
requestBody: {
|
|
22446
|
+
content: {
|
|
22447
|
+
/**
|
|
22448
|
+
* @example {
|
|
22449
|
+
* "channelId": "19:example@thread.tacv2"
|
|
22450
|
+
* }
|
|
22451
|
+
*/
|
|
22452
|
+
"application/json": components["schemas"]["TeamsChannelBodyDto"];
|
|
22453
|
+
};
|
|
22454
|
+
};
|
|
22455
|
+
responses: {
|
|
22456
|
+
/** @description Channel saved */
|
|
22457
|
+
200: {
|
|
22458
|
+
headers: {
|
|
22459
|
+
[name: string]: unknown;
|
|
22460
|
+
};
|
|
22461
|
+
content: {
|
|
22462
|
+
/**
|
|
22463
|
+
* @example {
|
|
22464
|
+
* "connected": true,
|
|
22465
|
+
* "channelName": "General"
|
|
22466
|
+
* }
|
|
22467
|
+
*/
|
|
22468
|
+
"application/json": components["schemas"]["TeamsConnectionDto"];
|
|
22469
|
+
};
|
|
22470
|
+
};
|
|
22471
|
+
/** @description Missing channelId, or the channel was not found */
|
|
22472
|
+
400: {
|
|
22473
|
+
headers: {
|
|
22474
|
+
[name: string]: unknown;
|
|
22475
|
+
};
|
|
22476
|
+
content: {
|
|
22477
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22478
|
+
};
|
|
22479
|
+
};
|
|
22480
|
+
401: components["responses"]["Unauthorized"];
|
|
22481
|
+
/** @description Editor or viewer */
|
|
22482
|
+
403: {
|
|
22483
|
+
headers: {
|
|
22484
|
+
[name: string]: unknown;
|
|
22485
|
+
};
|
|
22486
|
+
content: {
|
|
22487
|
+
/**
|
|
22488
|
+
* @example {
|
|
22489
|
+
* "error": "Forbidden",
|
|
22490
|
+
* "code": "workspace_admin_required"
|
|
22491
|
+
* }
|
|
22492
|
+
*/
|
|
22493
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22494
|
+
};
|
|
22495
|
+
};
|
|
22496
|
+
/** @description Workspace not found */
|
|
22497
|
+
404: {
|
|
22498
|
+
headers: {
|
|
22499
|
+
[name: string]: unknown;
|
|
22500
|
+
};
|
|
22501
|
+
content: {
|
|
22502
|
+
/**
|
|
22503
|
+
* @example {
|
|
22504
|
+
* "error": "Not found"
|
|
22505
|
+
* }
|
|
22506
|
+
*/
|
|
22507
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22508
|
+
};
|
|
22509
|
+
};
|
|
22510
|
+
/** @description Teams is not connected */
|
|
22511
|
+
409: {
|
|
22512
|
+
headers: {
|
|
22513
|
+
[name: string]: unknown;
|
|
22514
|
+
};
|
|
22515
|
+
content: {
|
|
22516
|
+
/**
|
|
22517
|
+
* @example {
|
|
22518
|
+
* "error": "Teams is not connected",
|
|
22519
|
+
* "code": "teams_not_connected"
|
|
22520
|
+
* }
|
|
22521
|
+
*/
|
|
22522
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22523
|
+
};
|
|
22524
|
+
};
|
|
22525
|
+
/** @description Microsoft Graph rejected the channel lookup */
|
|
22526
|
+
502: {
|
|
22527
|
+
headers: {
|
|
22528
|
+
[name: string]: unknown;
|
|
22529
|
+
};
|
|
22530
|
+
content: {
|
|
22531
|
+
/**
|
|
22532
|
+
* @example {
|
|
22533
|
+
* "error": "Teams channel lookup failed",
|
|
22534
|
+
* "code": "teams_graph_failed"
|
|
22535
|
+
* }
|
|
22536
|
+
*/
|
|
22537
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22538
|
+
};
|
|
22539
|
+
};
|
|
22540
|
+
};
|
|
22541
|
+
};
|
|
21979
22542
|
postWorkspaceZeltAuthorizeUrl: {
|
|
21980
22543
|
parameters: {
|
|
21981
22544
|
query?: never;
|