@thinkai/tai-api-contract 2.150.0 → 2.151.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 +404 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +263 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +404 -0
package/src/generated/openapi.ts
CHANGED
|
@@ -4207,6 +4207,90 @@ export interface paths {
|
|
|
4207
4207
|
patch?: never;
|
|
4208
4208
|
trace?: never;
|
|
4209
4209
|
};
|
|
4210
|
+
"/workspaces/{workspaceId}/integrations/teams/install-url": {
|
|
4211
|
+
parameters: {
|
|
4212
|
+
query?: never;
|
|
4213
|
+
header?: never;
|
|
4214
|
+
path?: never;
|
|
4215
|
+
cookie?: never;
|
|
4216
|
+
};
|
|
4217
|
+
/**
|
|
4218
|
+
* Microsoft sign-in URL for Teams notification delivery
|
|
4219
|
+
* @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`.
|
|
4220
|
+
*/
|
|
4221
|
+
get: operations["getWorkspaceTeamsInstallUrl"];
|
|
4222
|
+
put?: never;
|
|
4223
|
+
post?: never;
|
|
4224
|
+
delete?: never;
|
|
4225
|
+
options?: never;
|
|
4226
|
+
head?: never;
|
|
4227
|
+
patch?: never;
|
|
4228
|
+
trace?: never;
|
|
4229
|
+
};
|
|
4230
|
+
"/integrations/teams/callback": {
|
|
4231
|
+
parameters: {
|
|
4232
|
+
query?: never;
|
|
4233
|
+
header?: never;
|
|
4234
|
+
path?: never;
|
|
4235
|
+
cookie?: never;
|
|
4236
|
+
};
|
|
4237
|
+
/**
|
|
4238
|
+
* Finish Teams Microsoft sign-in
|
|
4239
|
+
* @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}/settings?tab=preferences&chat=teams`.
|
|
4240
|
+
*/
|
|
4241
|
+
get: operations["getTeamsIntegrationCallback"];
|
|
4242
|
+
put?: never;
|
|
4243
|
+
post?: never;
|
|
4244
|
+
delete?: never;
|
|
4245
|
+
options?: never;
|
|
4246
|
+
head?: never;
|
|
4247
|
+
patch?: never;
|
|
4248
|
+
trace?: never;
|
|
4249
|
+
};
|
|
4250
|
+
"/workspaces/{workspaceId}/integrations/teams": {
|
|
4251
|
+
parameters: {
|
|
4252
|
+
query?: never;
|
|
4253
|
+
header?: never;
|
|
4254
|
+
path?: never;
|
|
4255
|
+
cookie?: never;
|
|
4256
|
+
};
|
|
4257
|
+
/**
|
|
4258
|
+
* Teams connection status
|
|
4259
|
+
* @description Any workspace member. `{ connected, channelName }`. Never returns the bot token. `channelName` is null until an admin saves a channel.
|
|
4260
|
+
*/
|
|
4261
|
+
get: operations["getWorkspaceTeamsConnection"];
|
|
4262
|
+
put?: never;
|
|
4263
|
+
post?: never;
|
|
4264
|
+
/**
|
|
4265
|
+
* Disconnect Teams
|
|
4266
|
+
* @description Workspace **admin** only. Later Message Center posts do not go to Teams. Member chat cells stay unchanged.
|
|
4267
|
+
*/
|
|
4268
|
+
delete: operations["deleteWorkspaceTeamsConnection"];
|
|
4269
|
+
options?: never;
|
|
4270
|
+
head?: never;
|
|
4271
|
+
patch?: never;
|
|
4272
|
+
trace?: never;
|
|
4273
|
+
};
|
|
4274
|
+
"/workspaces/{workspaceId}/integrations/teams/channel": {
|
|
4275
|
+
parameters: {
|
|
4276
|
+
query?: never;
|
|
4277
|
+
header?: never;
|
|
4278
|
+
path?: never;
|
|
4279
|
+
cookie?: never;
|
|
4280
|
+
};
|
|
4281
|
+
get?: never;
|
|
4282
|
+
/**
|
|
4283
|
+
* Save the Teams channel for notification posts
|
|
4284
|
+
* @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`.
|
|
4285
|
+
*/
|
|
4286
|
+
put: operations["putWorkspaceTeamsChannel"];
|
|
4287
|
+
post?: never;
|
|
4288
|
+
delete?: never;
|
|
4289
|
+
options?: never;
|
|
4290
|
+
head?: never;
|
|
4291
|
+
patch?: never;
|
|
4292
|
+
trace?: never;
|
|
4293
|
+
};
|
|
4210
4294
|
"/workspaces/{workspaceId}/integrations/zelt/authorize-url": {
|
|
4211
4295
|
parameters: {
|
|
4212
4296
|
query?: never;
|
|
@@ -4471,6 +4555,19 @@ export interface paths {
|
|
|
4471
4555
|
export type webhooks = Record<string, never>;
|
|
4472
4556
|
export interface components {
|
|
4473
4557
|
schemas: {
|
|
4558
|
+
TeamsInstallUrlDto: {
|
|
4559
|
+
/** Format: uri */
|
|
4560
|
+
url: string;
|
|
4561
|
+
};
|
|
4562
|
+
TeamsConnectionDto: {
|
|
4563
|
+
/** @description True after an admin completes Microsoft sign-in. */
|
|
4564
|
+
connected: boolean;
|
|
4565
|
+
/** @description Selected channel display name. Null until an admin saves a channel. */
|
|
4566
|
+
channelName: string | null;
|
|
4567
|
+
};
|
|
4568
|
+
TeamsChannelBodyDto: {
|
|
4569
|
+
channelId: string;
|
|
4570
|
+
};
|
|
4474
4571
|
ErrorMessageDto: {
|
|
4475
4572
|
error: string;
|
|
4476
4573
|
/** @description Machine-readable error code when present (for example `last_admin`). */
|
|
@@ -10604,6 +10701,9 @@ export interface components {
|
|
|
10604
10701
|
headers: never;
|
|
10605
10702
|
pathItems: never;
|
|
10606
10703
|
}
|
|
10704
|
+
export type TeamsInstallUrlDto = components['schemas']['TeamsInstallUrlDto'];
|
|
10705
|
+
export type TeamsConnectionDto = components['schemas']['TeamsConnectionDto'];
|
|
10706
|
+
export type TeamsChannelBodyDto = components['schemas']['TeamsChannelBodyDto'];
|
|
10607
10707
|
export type ErrorMessageDto = components['schemas']['ErrorMessageDto'];
|
|
10608
10708
|
export type TeamMemberDto = components['schemas']['TeamMemberDto'];
|
|
10609
10709
|
export type TeamMemberListDto = components['schemas']['TeamMemberListDto'];
|
|
@@ -21977,6 +22077,310 @@ export interface operations {
|
|
|
21977
22077
|
403: components["responses"]["Forbidden"];
|
|
21978
22078
|
};
|
|
21979
22079
|
};
|
|
22080
|
+
getWorkspaceTeamsInstallUrl: {
|
|
22081
|
+
parameters: {
|
|
22082
|
+
query?: never;
|
|
22083
|
+
header?: never;
|
|
22084
|
+
path: {
|
|
22085
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22086
|
+
};
|
|
22087
|
+
cookie?: never;
|
|
22088
|
+
};
|
|
22089
|
+
requestBody?: never;
|
|
22090
|
+
responses: {
|
|
22091
|
+
/** @description Authorize URL */
|
|
22092
|
+
200: {
|
|
22093
|
+
headers: {
|
|
22094
|
+
[name: string]: unknown;
|
|
22095
|
+
};
|
|
22096
|
+
content: {
|
|
22097
|
+
/**
|
|
22098
|
+
* @example {
|
|
22099
|
+
* "url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=example&state=example-state"
|
|
22100
|
+
* }
|
|
22101
|
+
*/
|
|
22102
|
+
"application/json": components["schemas"]["TeamsInstallUrlDto"];
|
|
22103
|
+
};
|
|
22104
|
+
};
|
|
22105
|
+
401: components["responses"]["Unauthorized"];
|
|
22106
|
+
/** @description Editor or viewer */
|
|
22107
|
+
403: {
|
|
22108
|
+
headers: {
|
|
22109
|
+
[name: string]: unknown;
|
|
22110
|
+
};
|
|
22111
|
+
content: {
|
|
22112
|
+
/**
|
|
22113
|
+
* @example {
|
|
22114
|
+
* "error": "Forbidden",
|
|
22115
|
+
* "code": "workspace_admin_required"
|
|
22116
|
+
* }
|
|
22117
|
+
*/
|
|
22118
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22119
|
+
};
|
|
22120
|
+
};
|
|
22121
|
+
/** @description Workspace not found */
|
|
22122
|
+
404: {
|
|
22123
|
+
headers: {
|
|
22124
|
+
[name: string]: unknown;
|
|
22125
|
+
};
|
|
22126
|
+
content: {
|
|
22127
|
+
/**
|
|
22128
|
+
* @example {
|
|
22129
|
+
* "error": "Not found"
|
|
22130
|
+
* }
|
|
22131
|
+
*/
|
|
22132
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22133
|
+
};
|
|
22134
|
+
};
|
|
22135
|
+
/** @description Teams app credentials are not configured */
|
|
22136
|
+
503: {
|
|
22137
|
+
headers: {
|
|
22138
|
+
[name: string]: unknown;
|
|
22139
|
+
};
|
|
22140
|
+
content: {
|
|
22141
|
+
/**
|
|
22142
|
+
* @example {
|
|
22143
|
+
* "error": "Teams sign-in is not configured",
|
|
22144
|
+
* "code": "teams_not_configured"
|
|
22145
|
+
* }
|
|
22146
|
+
*/
|
|
22147
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22148
|
+
};
|
|
22149
|
+
};
|
|
22150
|
+
};
|
|
22151
|
+
};
|
|
22152
|
+
getTeamsIntegrationCallback: {
|
|
22153
|
+
parameters: {
|
|
22154
|
+
query: {
|
|
22155
|
+
code?: string;
|
|
22156
|
+
state: string;
|
|
22157
|
+
error?: string;
|
|
22158
|
+
};
|
|
22159
|
+
header?: never;
|
|
22160
|
+
path?: never;
|
|
22161
|
+
cookie?: never;
|
|
22162
|
+
};
|
|
22163
|
+
requestBody?: never;
|
|
22164
|
+
responses: {
|
|
22165
|
+
/** @description Redirect to Settings → Preferences */
|
|
22166
|
+
302: {
|
|
22167
|
+
headers: {
|
|
22168
|
+
Location?: string;
|
|
22169
|
+
[name: string]: unknown;
|
|
22170
|
+
};
|
|
22171
|
+
content?: never;
|
|
22172
|
+
};
|
|
22173
|
+
/** @description SPA origin is not configured */
|
|
22174
|
+
503: {
|
|
22175
|
+
headers: {
|
|
22176
|
+
[name: string]: unknown;
|
|
22177
|
+
};
|
|
22178
|
+
content: {
|
|
22179
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22180
|
+
};
|
|
22181
|
+
};
|
|
22182
|
+
};
|
|
22183
|
+
};
|
|
22184
|
+
getWorkspaceTeamsConnection: {
|
|
22185
|
+
parameters: {
|
|
22186
|
+
query?: never;
|
|
22187
|
+
header?: never;
|
|
22188
|
+
path: {
|
|
22189
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22190
|
+
};
|
|
22191
|
+
cookie?: never;
|
|
22192
|
+
};
|
|
22193
|
+
requestBody?: never;
|
|
22194
|
+
responses: {
|
|
22195
|
+
/** @description Connection status */
|
|
22196
|
+
200: {
|
|
22197
|
+
headers: {
|
|
22198
|
+
[name: string]: unknown;
|
|
22199
|
+
};
|
|
22200
|
+
content: {
|
|
22201
|
+
/**
|
|
22202
|
+
* @example {
|
|
22203
|
+
* "connected": true,
|
|
22204
|
+
* "channelName": "General"
|
|
22205
|
+
* }
|
|
22206
|
+
*/
|
|
22207
|
+
"application/json": components["schemas"]["TeamsConnectionDto"];
|
|
22208
|
+
};
|
|
22209
|
+
};
|
|
22210
|
+
401: components["responses"]["Unauthorized"];
|
|
22211
|
+
403: components["responses"]["Forbidden"];
|
|
22212
|
+
/** @description Workspace not found */
|
|
22213
|
+
404: {
|
|
22214
|
+
headers: {
|
|
22215
|
+
[name: string]: unknown;
|
|
22216
|
+
};
|
|
22217
|
+
content: {
|
|
22218
|
+
/**
|
|
22219
|
+
* @example {
|
|
22220
|
+
* "error": "Not found"
|
|
22221
|
+
* }
|
|
22222
|
+
*/
|
|
22223
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22224
|
+
};
|
|
22225
|
+
};
|
|
22226
|
+
};
|
|
22227
|
+
};
|
|
22228
|
+
deleteWorkspaceTeamsConnection: {
|
|
22229
|
+
parameters: {
|
|
22230
|
+
query?: never;
|
|
22231
|
+
header?: never;
|
|
22232
|
+
path: {
|
|
22233
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22234
|
+
};
|
|
22235
|
+
cookie?: never;
|
|
22236
|
+
};
|
|
22237
|
+
requestBody?: never;
|
|
22238
|
+
responses: {
|
|
22239
|
+
/** @description Disconnected */
|
|
22240
|
+
204: {
|
|
22241
|
+
headers: {
|
|
22242
|
+
[name: string]: unknown;
|
|
22243
|
+
};
|
|
22244
|
+
content?: never;
|
|
22245
|
+
};
|
|
22246
|
+
401: components["responses"]["Unauthorized"];
|
|
22247
|
+
/** @description Editor or viewer */
|
|
22248
|
+
403: {
|
|
22249
|
+
headers: {
|
|
22250
|
+
[name: string]: unknown;
|
|
22251
|
+
};
|
|
22252
|
+
content: {
|
|
22253
|
+
/**
|
|
22254
|
+
* @example {
|
|
22255
|
+
* "error": "Forbidden",
|
|
22256
|
+
* "code": "workspace_admin_required"
|
|
22257
|
+
* }
|
|
22258
|
+
*/
|
|
22259
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22260
|
+
};
|
|
22261
|
+
};
|
|
22262
|
+
/** @description Workspace not found */
|
|
22263
|
+
404: {
|
|
22264
|
+
headers: {
|
|
22265
|
+
[name: string]: unknown;
|
|
22266
|
+
};
|
|
22267
|
+
content: {
|
|
22268
|
+
/**
|
|
22269
|
+
* @example {
|
|
22270
|
+
* "error": "Not found"
|
|
22271
|
+
* }
|
|
22272
|
+
*/
|
|
22273
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22274
|
+
};
|
|
22275
|
+
};
|
|
22276
|
+
};
|
|
22277
|
+
};
|
|
22278
|
+
putWorkspaceTeamsChannel: {
|
|
22279
|
+
parameters: {
|
|
22280
|
+
query?: never;
|
|
22281
|
+
header?: never;
|
|
22282
|
+
path: {
|
|
22283
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
22284
|
+
};
|
|
22285
|
+
cookie?: never;
|
|
22286
|
+
};
|
|
22287
|
+
requestBody: {
|
|
22288
|
+
content: {
|
|
22289
|
+
/**
|
|
22290
|
+
* @example {
|
|
22291
|
+
* "channelId": "19:example@thread.tacv2"
|
|
22292
|
+
* }
|
|
22293
|
+
*/
|
|
22294
|
+
"application/json": components["schemas"]["TeamsChannelBodyDto"];
|
|
22295
|
+
};
|
|
22296
|
+
};
|
|
22297
|
+
responses: {
|
|
22298
|
+
/** @description Channel saved */
|
|
22299
|
+
200: {
|
|
22300
|
+
headers: {
|
|
22301
|
+
[name: string]: unknown;
|
|
22302
|
+
};
|
|
22303
|
+
content: {
|
|
22304
|
+
/**
|
|
22305
|
+
* @example {
|
|
22306
|
+
* "connected": true,
|
|
22307
|
+
* "channelName": "General"
|
|
22308
|
+
* }
|
|
22309
|
+
*/
|
|
22310
|
+
"application/json": components["schemas"]["TeamsConnectionDto"];
|
|
22311
|
+
};
|
|
22312
|
+
};
|
|
22313
|
+
/** @description Missing channelId, or the channel was not found */
|
|
22314
|
+
400: {
|
|
22315
|
+
headers: {
|
|
22316
|
+
[name: string]: unknown;
|
|
22317
|
+
};
|
|
22318
|
+
content: {
|
|
22319
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22320
|
+
};
|
|
22321
|
+
};
|
|
22322
|
+
401: components["responses"]["Unauthorized"];
|
|
22323
|
+
/** @description Editor or viewer */
|
|
22324
|
+
403: {
|
|
22325
|
+
headers: {
|
|
22326
|
+
[name: string]: unknown;
|
|
22327
|
+
};
|
|
22328
|
+
content: {
|
|
22329
|
+
/**
|
|
22330
|
+
* @example {
|
|
22331
|
+
* "error": "Forbidden",
|
|
22332
|
+
* "code": "workspace_admin_required"
|
|
22333
|
+
* }
|
|
22334
|
+
*/
|
|
22335
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22336
|
+
};
|
|
22337
|
+
};
|
|
22338
|
+
/** @description Workspace not found */
|
|
22339
|
+
404: {
|
|
22340
|
+
headers: {
|
|
22341
|
+
[name: string]: unknown;
|
|
22342
|
+
};
|
|
22343
|
+
content: {
|
|
22344
|
+
/**
|
|
22345
|
+
* @example {
|
|
22346
|
+
* "error": "Not found"
|
|
22347
|
+
* }
|
|
22348
|
+
*/
|
|
22349
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22350
|
+
};
|
|
22351
|
+
};
|
|
22352
|
+
/** @description Teams is not connected */
|
|
22353
|
+
409: {
|
|
22354
|
+
headers: {
|
|
22355
|
+
[name: string]: unknown;
|
|
22356
|
+
};
|
|
22357
|
+
content: {
|
|
22358
|
+
/**
|
|
22359
|
+
* @example {
|
|
22360
|
+
* "error": "Teams is not connected",
|
|
22361
|
+
* "code": "teams_not_connected"
|
|
22362
|
+
* }
|
|
22363
|
+
*/
|
|
22364
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22365
|
+
};
|
|
22366
|
+
};
|
|
22367
|
+
/** @description Microsoft Graph rejected the channel lookup */
|
|
22368
|
+
502: {
|
|
22369
|
+
headers: {
|
|
22370
|
+
[name: string]: unknown;
|
|
22371
|
+
};
|
|
22372
|
+
content: {
|
|
22373
|
+
/**
|
|
22374
|
+
* @example {
|
|
22375
|
+
* "error": "Teams channel lookup failed",
|
|
22376
|
+
* "code": "teams_graph_failed"
|
|
22377
|
+
* }
|
|
22378
|
+
*/
|
|
22379
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
22380
|
+
};
|
|
22381
|
+
};
|
|
22382
|
+
};
|
|
22383
|
+
};
|
|
21980
22384
|
postWorkspaceZeltAuthorizeUrl: {
|
|
21981
22385
|
parameters: {
|
|
21982
22386
|
query?: never;
|