@epilot/message-client 1.24.0 → 1.25.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/definition.js +1 -1
- package/dist/openapi-runtime.json +19 -113
- package/dist/openapi.d.ts +36 -451
- package/dist/openapi.json +62 -580
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
{
|
|
24
24
|
"name": "Drafts"
|
|
25
25
|
},
|
|
26
|
-
{
|
|
27
|
-
"name": "M365 Integration"
|
|
28
|
-
},
|
|
29
26
|
{
|
|
30
27
|
"name": "message_schema",
|
|
31
28
|
"x-displayName": "Message",
|
|
@@ -130,536 +127,6 @@
|
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
},
|
|
133
|
-
"/outlook/connect": {
|
|
134
|
-
"get": {
|
|
135
|
-
"operationId": "connectOutlook",
|
|
136
|
-
"summary": "Connect Outlook",
|
|
137
|
-
"description": "Returns Microsoft authorization URL for Outlook OAuth.",
|
|
138
|
-
"tags": [
|
|
139
|
-
"M365 Integration"
|
|
140
|
-
],
|
|
141
|
-
"responses": {
|
|
142
|
-
"200": {
|
|
143
|
-
"description": "Authorization URL",
|
|
144
|
-
"content": {
|
|
145
|
-
"application/json": {
|
|
146
|
-
"schema": {
|
|
147
|
-
"type": "object",
|
|
148
|
-
"properties": {
|
|
149
|
-
"authorization_url": {
|
|
150
|
-
"type": "string"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"/outlook/connection/status": {
|
|
161
|
-
"get": {
|
|
162
|
-
"operationId": "getOutlookConnectionStatus",
|
|
163
|
-
"summary": "Get Outlook Connection Status",
|
|
164
|
-
"description": "Returns all Microsoft 365 / Outlook connections for the organization.\nSupports multiple connections (one per Azure AD tenant).\n\nEach connection includes an `action` field that tells the UI what button to show\nand what endpoint to call. All actions use GET /outlook/connect.\n",
|
|
165
|
-
"tags": [
|
|
166
|
-
"M365 Integration"
|
|
167
|
-
],
|
|
168
|
-
"responses": {
|
|
169
|
-
"200": {
|
|
170
|
-
"description": "Connection status retrieved successfully",
|
|
171
|
-
"content": {
|
|
172
|
-
"application/json": {
|
|
173
|
-
"schema": {
|
|
174
|
-
"type": "object",
|
|
175
|
-
"required": [
|
|
176
|
-
"connections",
|
|
177
|
-
"has_connections"
|
|
178
|
-
],
|
|
179
|
-
"properties": {
|
|
180
|
-
"connections": {
|
|
181
|
-
"type": "array",
|
|
182
|
-
"description": "List of Outlook connections (one per tenant)",
|
|
183
|
-
"items": {
|
|
184
|
-
"type": "object",
|
|
185
|
-
"required": [
|
|
186
|
-
"status",
|
|
187
|
-
"action",
|
|
188
|
-
"action_label",
|
|
189
|
-
"tenant_id"
|
|
190
|
-
],
|
|
191
|
-
"properties": {
|
|
192
|
-
"status": {
|
|
193
|
-
"type": "string",
|
|
194
|
-
"enum": [
|
|
195
|
-
"connected",
|
|
196
|
-
"expired",
|
|
197
|
-
"pending_auth"
|
|
198
|
-
],
|
|
199
|
-
"description": "Current connection status:\n- pending_auth: Admin consent granted, waiting for user OAuth\n- connected: Fully connected with valid tokens\n- expired: Tokens expired, need to re-authenticate\n"
|
|
200
|
-
},
|
|
201
|
-
"action": {
|
|
202
|
-
"type": "string",
|
|
203
|
-
"enum": [
|
|
204
|
-
"connect",
|
|
205
|
-
"authorize",
|
|
206
|
-
"reconnect",
|
|
207
|
-
"none"
|
|
208
|
-
],
|
|
209
|
-
"description": "Action for UI to take (all call GET /outlook/connect):\n- connect: No connection, initiate OAuth\n- authorize: Admin consent done, complete OAuth\n- reconnect: Re-authenticate expired session\n- none: Fully connected, no action needed\n"
|
|
210
|
-
},
|
|
211
|
-
"connected_by_display_name": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"description": "Display name of user who connected"
|
|
214
|
-
},
|
|
215
|
-
"connected_by_email": {
|
|
216
|
-
"type": "string",
|
|
217
|
-
"format": "email",
|
|
218
|
-
"description": "Email of the user who connected"
|
|
219
|
-
},
|
|
220
|
-
"connected_by_user_id": {
|
|
221
|
-
"type": "string",
|
|
222
|
-
"description": "Azure AD Object ID of user who connected"
|
|
223
|
-
},
|
|
224
|
-
"connected_at": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"format": "date-time",
|
|
227
|
-
"description": "When the connection was established"
|
|
228
|
-
},
|
|
229
|
-
"updated_at": {
|
|
230
|
-
"type": "string",
|
|
231
|
-
"format": "date-time",
|
|
232
|
-
"description": "When the connection was last updated"
|
|
233
|
-
},
|
|
234
|
-
"tenant_id": {
|
|
235
|
-
"type": "string",
|
|
236
|
-
"description": "Microsoft Azure AD tenant ID"
|
|
237
|
-
},
|
|
238
|
-
"scopes": {
|
|
239
|
-
"type": "array",
|
|
240
|
-
"items": {
|
|
241
|
-
"type": "string"
|
|
242
|
-
},
|
|
243
|
-
"description": "Granted permission scopes"
|
|
244
|
-
},
|
|
245
|
-
"expires_at": {
|
|
246
|
-
"type": "string",
|
|
247
|
-
"format": "date-time",
|
|
248
|
-
"description": "When the current access token expires"
|
|
249
|
-
},
|
|
250
|
-
"is_token_valid": {
|
|
251
|
-
"type": "boolean",
|
|
252
|
-
"description": "Whether the current token is still valid"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"has_connections": {
|
|
258
|
-
"type": "boolean",
|
|
259
|
-
"description": "Whether any connections exist"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
"400": {
|
|
267
|
-
"description": "Bad request - missing organization ID"
|
|
268
|
-
},
|
|
269
|
-
"500": {
|
|
270
|
-
"description": "Internal server error"
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
"/outlook/connection/disconnect": {
|
|
276
|
-
"post": {
|
|
277
|
-
"operationId": "disconnectOutlook",
|
|
278
|
-
"summary": "Disconnect Outlook",
|
|
279
|
-
"description": "Removes the Microsoft 365 / Outlook connection for a specific tenant.\nThis deletes the stored tokens and disconnects the integration.\n",
|
|
280
|
-
"tags": [
|
|
281
|
-
"M365 Integration"
|
|
282
|
-
],
|
|
283
|
-
"requestBody": {
|
|
284
|
-
"required": true,
|
|
285
|
-
"content": {
|
|
286
|
-
"application/json": {
|
|
287
|
-
"schema": {
|
|
288
|
-
"type": "object",
|
|
289
|
-
"required": [
|
|
290
|
-
"tenant_id"
|
|
291
|
-
],
|
|
292
|
-
"properties": {
|
|
293
|
-
"tenant_id": {
|
|
294
|
-
"type": "string",
|
|
295
|
-
"description": "Azure AD Tenant ID of the connection to disconnect"
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
"responses": {
|
|
303
|
-
"200": {
|
|
304
|
-
"description": "Successfully disconnected",
|
|
305
|
-
"content": {
|
|
306
|
-
"application/json": {
|
|
307
|
-
"schema": {
|
|
308
|
-
"type": "object",
|
|
309
|
-
"properties": {
|
|
310
|
-
"success": {
|
|
311
|
-
"type": "boolean"
|
|
312
|
-
},
|
|
313
|
-
"tenant_id": {
|
|
314
|
-
"type": "string",
|
|
315
|
-
"description": "The tenant ID that was disconnected"
|
|
316
|
-
},
|
|
317
|
-
"affected_shared_inboxes": {
|
|
318
|
-
"type": "array",
|
|
319
|
-
"items": {
|
|
320
|
-
"type": "string"
|
|
321
|
-
},
|
|
322
|
-
"description": "List of shared inbox IDs that were affected by the disconnection"
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"400": {
|
|
330
|
-
"description": "Bad request - missing tenant_id or organization ID"
|
|
331
|
-
},
|
|
332
|
-
"404": {
|
|
333
|
-
"description": "Connection not found"
|
|
334
|
-
},
|
|
335
|
-
"500": {
|
|
336
|
-
"description": "Internal server error"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"/outlook/shared-mailboxes/connect": {
|
|
342
|
-
"post": {
|
|
343
|
-
"operationId": "connectSharedMailbox",
|
|
344
|
-
"summary": "Connect Outlook Shared Mailbox",
|
|
345
|
-
"description": "Connects an Outlook shared mailbox as a shared inbox.\n1. Validates the user has access to the shared mailbox via Microsoft Graph API\n2. Creates a shared inbox entry in email-settings with the Outlook provider info\n",
|
|
346
|
-
"tags": [
|
|
347
|
-
"M365 Integration"
|
|
348
|
-
],
|
|
349
|
-
"requestBody": {
|
|
350
|
-
"required": true,
|
|
351
|
-
"content": {
|
|
352
|
-
"application/json": {
|
|
353
|
-
"schema": {
|
|
354
|
-
"type": "object",
|
|
355
|
-
"required": [
|
|
356
|
-
"email"
|
|
357
|
-
],
|
|
358
|
-
"properties": {
|
|
359
|
-
"email": {
|
|
360
|
-
"type": "string",
|
|
361
|
-
"format": "email",
|
|
362
|
-
"description": "Email address of the Outlook shared mailbox to connect"
|
|
363
|
-
},
|
|
364
|
-
"name": {
|
|
365
|
-
"type": "string",
|
|
366
|
-
"description": "Display name for the shared inbox (defaults to mailbox display name)"
|
|
367
|
-
},
|
|
368
|
-
"color": {
|
|
369
|
-
"type": "string",
|
|
370
|
-
"description": "Color for the shared inbox (hex code, defaults to green)"
|
|
371
|
-
},
|
|
372
|
-
"assignees": {
|
|
373
|
-
"type": "array",
|
|
374
|
-
"items": {
|
|
375
|
-
"type": "string"
|
|
376
|
-
},
|
|
377
|
-
"description": "User IDs to assign to this shared inbox"
|
|
378
|
-
},
|
|
379
|
-
"description": {
|
|
380
|
-
"type": "string",
|
|
381
|
-
"description": "Description for the shared inbox"
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"responses": {
|
|
389
|
-
"201": {
|
|
390
|
-
"description": "Shared mailbox connected successfully",
|
|
391
|
-
"content": {
|
|
392
|
-
"application/json": {
|
|
393
|
-
"schema": {
|
|
394
|
-
"type": "object",
|
|
395
|
-
"properties": {
|
|
396
|
-
"shared_inbox": {
|
|
397
|
-
"type": "object",
|
|
398
|
-
"description": "The created shared inbox from email-settings",
|
|
399
|
-
"properties": {
|
|
400
|
-
"id": {
|
|
401
|
-
"type": "string"
|
|
402
|
-
},
|
|
403
|
-
"name": {
|
|
404
|
-
"type": "string"
|
|
405
|
-
},
|
|
406
|
-
"color": {
|
|
407
|
-
"type": "string"
|
|
408
|
-
},
|
|
409
|
-
"assignees": {
|
|
410
|
-
"type": "array",
|
|
411
|
-
"items": {
|
|
412
|
-
"type": "string"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
"description": {
|
|
416
|
-
"type": "string"
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
"outlook_email": {
|
|
421
|
-
"type": "string",
|
|
422
|
-
"format": "email",
|
|
423
|
-
"description": "The Outlook shared mailbox email address"
|
|
424
|
-
},
|
|
425
|
-
"tenant_id": {
|
|
426
|
-
"type": "string",
|
|
427
|
-
"description": "Azure AD Tenant ID that provisions this mailbox"
|
|
428
|
-
},
|
|
429
|
-
"provider": {
|
|
430
|
-
"type": "string",
|
|
431
|
-
"enum": [
|
|
432
|
-
"outlook"
|
|
433
|
-
],
|
|
434
|
-
"description": "The provider type"
|
|
435
|
-
},
|
|
436
|
-
"display_name": {
|
|
437
|
-
"type": "string",
|
|
438
|
-
"description": "Display name of the shared mailbox"
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
"400": {
|
|
446
|
-
"description": "Bad request - missing email parameter"
|
|
447
|
-
},
|
|
448
|
-
"401": {
|
|
449
|
-
"description": "Not connected to Microsoft 365"
|
|
450
|
-
},
|
|
451
|
-
"403": {
|
|
452
|
-
"description": "Access denied - user does not have access to the shared mailbox"
|
|
453
|
-
},
|
|
454
|
-
"500": {
|
|
455
|
-
"description": "Internal server error"
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
"/outlook/shared-mailboxes/mappings": {
|
|
461
|
-
"get": {
|
|
462
|
-
"operationId": "getSharedMailboxMappings",
|
|
463
|
-
"summary": "Get Shared Mailbox Mappings",
|
|
464
|
-
"description": "Returns all shared mailbox mappings for the organization.\nUseful to determine which shared inboxes are connected to Outlook\nand which tenant provisions each one.\n",
|
|
465
|
-
"tags": [
|
|
466
|
-
"M365 Integration"
|
|
467
|
-
],
|
|
468
|
-
"responses": {
|
|
469
|
-
"200": {
|
|
470
|
-
"description": "Mappings retrieved successfully",
|
|
471
|
-
"content": {
|
|
472
|
-
"application/json": {
|
|
473
|
-
"schema": {
|
|
474
|
-
"type": "object",
|
|
475
|
-
"required": [
|
|
476
|
-
"mappings",
|
|
477
|
-
"count"
|
|
478
|
-
],
|
|
479
|
-
"properties": {
|
|
480
|
-
"mappings": {
|
|
481
|
-
"type": "array",
|
|
482
|
-
"items": {
|
|
483
|
-
"$ref": "#/components/schemas/SharedMailboxMapping"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
"count": {
|
|
487
|
-
"type": "integer",
|
|
488
|
-
"description": "Number of mappings"
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
"400": {
|
|
496
|
-
"description": "Bad request - missing organization ID"
|
|
497
|
-
},
|
|
498
|
-
"500": {
|
|
499
|
-
"description": "Internal server error"
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
"/outlook/shared-mailboxes/mappings/{shared_inbox_id}": {
|
|
505
|
-
"get": {
|
|
506
|
-
"operationId": "getSharedMailboxMappingById",
|
|
507
|
-
"summary": "Get Shared Mailbox Mapping by ID",
|
|
508
|
-
"description": "Returns the mapping for a specific shared inbox.\nUseful to check if a specific inbox is connected to Outlook.\n",
|
|
509
|
-
"tags": [
|
|
510
|
-
"M365 Integration"
|
|
511
|
-
],
|
|
512
|
-
"parameters": [
|
|
513
|
-
{
|
|
514
|
-
"name": "shared_inbox_id",
|
|
515
|
-
"in": "path",
|
|
516
|
-
"required": true,
|
|
517
|
-
"schema": {
|
|
518
|
-
"type": "string"
|
|
519
|
-
},
|
|
520
|
-
"description": "The shared inbox entity ID"
|
|
521
|
-
}
|
|
522
|
-
],
|
|
523
|
-
"responses": {
|
|
524
|
-
"200": {
|
|
525
|
-
"description": "Mapping retrieved successfully",
|
|
526
|
-
"content": {
|
|
527
|
-
"application/json": {
|
|
528
|
-
"schema": {
|
|
529
|
-
"$ref": "#/components/schemas/SharedMailboxMapping"
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"400": {
|
|
535
|
-
"description": "Bad request - missing organization ID or shared_inbox_id"
|
|
536
|
-
},
|
|
537
|
-
"404": {
|
|
538
|
-
"description": "Mapping not found"
|
|
539
|
-
},
|
|
540
|
-
"500": {
|
|
541
|
-
"description": "Internal server error"
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
"/outlook/oauth/callback": {
|
|
547
|
-
"get": {
|
|
548
|
-
"operationId": "outlookOAuthCallback",
|
|
549
|
-
"summary": "Outlook OAuth callback",
|
|
550
|
-
"description": "Exchanges authorization code for tokens and stores them.",
|
|
551
|
-
"tags": [
|
|
552
|
-
"M365 Integration"
|
|
553
|
-
],
|
|
554
|
-
"security": [],
|
|
555
|
-
"parameters": [
|
|
556
|
-
{
|
|
557
|
-
"name": "code",
|
|
558
|
-
"in": "query",
|
|
559
|
-
"required": false,
|
|
560
|
-
"schema": {
|
|
561
|
-
"type": "string"
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
"name": "state",
|
|
566
|
-
"in": "query",
|
|
567
|
-
"required": true,
|
|
568
|
-
"schema": {
|
|
569
|
-
"type": "string"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
"name": "session_state",
|
|
574
|
-
"in": "query",
|
|
575
|
-
"required": false,
|
|
576
|
-
"schema": {
|
|
577
|
-
"type": "string"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"name": "error",
|
|
582
|
-
"in": "query",
|
|
583
|
-
"required": false,
|
|
584
|
-
"schema": {
|
|
585
|
-
"type": "string"
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"name": "error_description",
|
|
590
|
-
"in": "query",
|
|
591
|
-
"required": false,
|
|
592
|
-
"schema": {
|
|
593
|
-
"type": "string"
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"name": "error_subcode",
|
|
598
|
-
"in": "query",
|
|
599
|
-
"required": false,
|
|
600
|
-
"schema": {
|
|
601
|
-
"type": "string"
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"name": "client_info",
|
|
606
|
-
"in": "query",
|
|
607
|
-
"required": false,
|
|
608
|
-
"schema": {
|
|
609
|
-
"type": "string"
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"name": "error_uri",
|
|
614
|
-
"in": "query",
|
|
615
|
-
"required": false,
|
|
616
|
-
"schema": {
|
|
617
|
-
"type": "string"
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "admin_consent",
|
|
622
|
-
"in": "query",
|
|
623
|
-
"required": false,
|
|
624
|
-
"schema": {
|
|
625
|
-
"type": "string"
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"name": "tenant",
|
|
630
|
-
"in": "query",
|
|
631
|
-
"required": false,
|
|
632
|
-
"schema": {
|
|
633
|
-
"type": "string"
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"responses": {
|
|
638
|
-
"200": {
|
|
639
|
-
"description": "Stored",
|
|
640
|
-
"content": {
|
|
641
|
-
"application/json": {
|
|
642
|
-
"schema": {
|
|
643
|
-
"type": "object",
|
|
644
|
-
"properties": {
|
|
645
|
-
"connected": {
|
|
646
|
-
"type": "boolean"
|
|
647
|
-
},
|
|
648
|
-
"expires_at": {
|
|
649
|
-
"type": "string",
|
|
650
|
-
"format": "date-time"
|
|
651
|
-
},
|
|
652
|
-
"scope": {
|
|
653
|
-
"type": "string"
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
130
|
"/v1/message/messages/{id}": {
|
|
664
131
|
"get": {
|
|
665
132
|
"operationId": "getMessage",
|
|
@@ -2071,6 +1538,67 @@
|
|
|
2071
1538
|
}
|
|
2072
1539
|
}
|
|
2073
1540
|
},
|
|
1541
|
+
"/v2/message/threads/{id}/assign:users": {
|
|
1542
|
+
"post": {
|
|
1543
|
+
"operationId": "assignUsersV2",
|
|
1544
|
+
"summary": "assignUsersV2",
|
|
1545
|
+
"description": "Assign users to thread.\n",
|
|
1546
|
+
"tags": [
|
|
1547
|
+
"Threads"
|
|
1548
|
+
],
|
|
1549
|
+
"parameters": [
|
|
1550
|
+
{
|
|
1551
|
+
"name": "id",
|
|
1552
|
+
"description": "Thread ID",
|
|
1553
|
+
"in": "path",
|
|
1554
|
+
"required": true,
|
|
1555
|
+
"schema": {
|
|
1556
|
+
"type": "string"
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"requestBody": {
|
|
1561
|
+
"required": true,
|
|
1562
|
+
"content": {
|
|
1563
|
+
"application/json": {
|
|
1564
|
+
"schema": {
|
|
1565
|
+
"type": "object",
|
|
1566
|
+
"required": [
|
|
1567
|
+
"add",
|
|
1568
|
+
"remove"
|
|
1569
|
+
],
|
|
1570
|
+
"properties": {
|
|
1571
|
+
"add": {
|
|
1572
|
+
"type": "array",
|
|
1573
|
+
"description": "User IDs of users to add to thread",
|
|
1574
|
+
"items": {
|
|
1575
|
+
"type": "string",
|
|
1576
|
+
"example": "206801"
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
"remove": {
|
|
1580
|
+
"type": "array",
|
|
1581
|
+
"description": "User IDs of users to remove from thread",
|
|
1582
|
+
"items": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"example": "206801"
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
"responses": {
|
|
1593
|
+
"204": {
|
|
1594
|
+
"description": "Success"
|
|
1595
|
+
},
|
|
1596
|
+
"403": {
|
|
1597
|
+
"description": "Forbidden"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
2074
1602
|
"/v1/message/threads/{id}:pin": {
|
|
2075
1603
|
"post": {
|
|
2076
1604
|
"operationId": "pinThread",
|
|
@@ -3012,7 +2540,7 @@
|
|
|
3012
2540
|
"timestamp": {
|
|
3013
2541
|
"type": "string",
|
|
3014
2542
|
"description": "Timestamp of the event",
|
|
3015
|
-
"example": "2024-01-01T00:00:
|
|
2543
|
+
"example": "2024-01-01T00:00:00.000Z"
|
|
3016
2544
|
}
|
|
3017
2545
|
}
|
|
3018
2546
|
},
|
|
@@ -3075,52 +2603,6 @@
|
|
|
3075
2603
|
"!account.*._files",
|
|
3076
2604
|
"**._product"
|
|
3077
2605
|
]
|
|
3078
|
-
},
|
|
3079
|
-
"SharedMailboxMapping": {
|
|
3080
|
-
"type": "object",
|
|
3081
|
-
"description": "Mapping between a shared inbox and its Outlook shared mailbox.\nThis tracks which provider/tenant provisions each shared mailbox.\n",
|
|
3082
|
-
"required": [
|
|
3083
|
-
"shared_inbox_id",
|
|
3084
|
-
"outlook_email",
|
|
3085
|
-
"tenant_id",
|
|
3086
|
-
"provider",
|
|
3087
|
-
"connected_at"
|
|
3088
|
-
],
|
|
3089
|
-
"properties": {
|
|
3090
|
-
"shared_inbox_id": {
|
|
3091
|
-
"type": "string",
|
|
3092
|
-
"description": "The email-settings shared inbox entity ID"
|
|
3093
|
-
},
|
|
3094
|
-
"outlook_email": {
|
|
3095
|
-
"type": "string",
|
|
3096
|
-
"format": "email",
|
|
3097
|
-
"description": "The Outlook shared mailbox email address"
|
|
3098
|
-
},
|
|
3099
|
-
"tenant_id": {
|
|
3100
|
-
"type": "string",
|
|
3101
|
-
"description": "Azure AD Tenant ID that provisions this mailbox"
|
|
3102
|
-
},
|
|
3103
|
-
"provider": {
|
|
3104
|
-
"type": "string",
|
|
3105
|
-
"enum": [
|
|
3106
|
-
"outlook"
|
|
3107
|
-
],
|
|
3108
|
-
"description": "Provider type (for future extensibility)"
|
|
3109
|
-
},
|
|
3110
|
-
"display_name": {
|
|
3111
|
-
"type": "string",
|
|
3112
|
-
"description": "Display name from Outlook"
|
|
3113
|
-
},
|
|
3114
|
-
"connected_at": {
|
|
3115
|
-
"type": "string",
|
|
3116
|
-
"format": "date-time",
|
|
3117
|
-
"description": "When the mailbox was connected"
|
|
3118
|
-
},
|
|
3119
|
-
"connected_by_user_id": {
|
|
3120
|
-
"type": "string",
|
|
3121
|
-
"description": "User who connected this mailbox"
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
2606
|
}
|
|
3125
2607
|
}
|
|
3126
2608
|
},
|