@epilot/message-client 1.23.0 → 1.24.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={330:function(e,s,r){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var a=t(r(466));s.default=a.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"updateMessage","responses":{}}},"/outlook/connect":{"get":{"operationId":"connectOutlook","responses":{}}},"/outlook/connection/status":{"get":{"operationId":"getOutlookConnectionStatus","responses":{}}},"/outlook/connection/disconnect":{"post":{"operationId":"disconnectOutlook","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/outlook/shared-mailboxes/connect":{"post":{"operationId":"connectSharedMailbox","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/outlook/oauth/callback":{"get":{"operationId":"outlookOAuthCallback","parameters":[{"name":"code","in":"query","required":false},{"name":"state","in":"query","required":true},{"name":"session_state","in":"query","required":false},{"name":"error","in":"query","required":false},{"name":"error_description","in":"query","required":false},{"name":"error_subcode","in":"query","required":false},{"name":"client_info","in":"query","required":false},{"name":"error_uri","in":"query","required":false},{"name":"admin_consent","in":"query","required":false},{"name":"tenant","in":"query","required":false}],"responses":{}}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages:search":{"post":{"operationId":"searchMessages","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/messages/{id}/read":{"post":{"operationId":"markReadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/unread/{actor}":{"get":{"operationId":"getUnread","parameters":[{"name":"actor","in":"path","required":true},{"in":"query","name":"email_filter"}],"responses":{}}},"/v2/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/message/threads:search":{"post":{"operationId":"searchThreadsV2","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:searchIds":{"post":{"operationId":"searchIds","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads":{"put":{"operationId":"updateThread","responses":{}}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:move":{"post":{"operationId":"moveThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:markAsDone":{"post":{"operationId":"markThreadAsDone","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsOpen":{"post":{"operationId":"markThreadAsOpen","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/timeline":{"get":{"operationId":"getThreadTimeline","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/bulk:read":{"post":{"operationId":"threadBulkActionsRead","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unread":{"post":{"operationId":"threadBulkActionsUnread","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:favorite":{"post":{"operationId":"threadBulkActionsFavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unfavorite":{"post":{"operationId":"threadBulkActionsUnfavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:trash":{"post":{"operationId":"threadBulkActionsTrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:untrash":{"post":{"operationId":"threadBulkActionsUntrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:delete":{"post":{"operationId":"threadBulkActionsDelete","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:done":{"post":{"operationId":"threadBulkActionsDone","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:open":{"post":{"operationId":"threadBulkActionsOpen","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/read":{"post":{"operationId":"markReadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unassign":{"post":{"operationId":"unassignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:pin":{"post":{"operationId":"pinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"unpinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft","responses":{}}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}}},"components":{"responses":{"NotFound":{"content":{"application/json":{}}},"Conflict":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"BadRequest":{"content":{"application/json":{}}},"Forbidden":{"content":{"application/json":{}}}}},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},s={},r=function r(t){var a=s[t];if(void 0!==a)return a.exports;var o=s[t]={exports:{}};return e[t].call(o.exports,o,o.exports,r),o.exports}(330),t=exports;for(var a in r)t[a]=r[a];r.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={330:function(e,s,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var t=a(r(466));s.default=t.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"updateMessage","responses":{}}},"/outlook/connect":{"get":{"operationId":"connectOutlook","responses":{}}},"/outlook/connection/status":{"get":{"operationId":"getOutlookConnectionStatus","responses":{}}},"/outlook/connection/disconnect":{"post":{"operationId":"disconnectOutlook","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/outlook/shared-mailboxes/connect":{"post":{"operationId":"connectSharedMailbox","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/outlook/shared-mailboxes/mappings":{"get":{"operationId":"getSharedMailboxMappings","responses":{}}},"/outlook/shared-mailboxes/mappings/{shared_inbox_id}":{"get":{"operationId":"getSharedMailboxMappingById","parameters":[{"name":"shared_inbox_id","in":"path","required":true}],"responses":{}}},"/outlook/oauth/callback":{"get":{"operationId":"outlookOAuthCallback","parameters":[{"name":"code","in":"query","required":false},{"name":"state","in":"query","required":true},{"name":"session_state","in":"query","required":false},{"name":"error","in":"query","required":false},{"name":"error_description","in":"query","required":false},{"name":"error_subcode","in":"query","required":false},{"name":"client_info","in":"query","required":false},{"name":"error_uri","in":"query","required":false},{"name":"admin_consent","in":"query","required":false},{"name":"tenant","in":"query","required":false}],"responses":{}}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages:search":{"post":{"operationId":"searchMessages","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/messages/{id}/read":{"post":{"operationId":"markReadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/messages/unread/{actor}":{"get":{"operationId":"getUnread","parameters":[{"name":"actor","in":"path","required":true},{"in":"query","name":"email_filter"}],"responses":{}}},"/v2/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessageV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/message/threads:search":{"post":{"operationId":"searchThreadsV2","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads:searchIds":{"post":{"operationId":"searchIds","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads":{"put":{"operationId":"updateThread","responses":{}}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:move":{"post":{"operationId":"moveThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:markAsDone":{"post":{"operationId":"markThreadAsDone","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}:markAsOpen":{"post":{"operationId":"markThreadAsOpen","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/timeline":{"get":{"operationId":"getThreadTimeline","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/threads/bulk:read":{"post":{"operationId":"threadBulkActionsRead","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unread":{"post":{"operationId":"threadBulkActionsUnread","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:favorite":{"post":{"operationId":"threadBulkActionsFavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:unfavorite":{"post":{"operationId":"threadBulkActionsUnfavorite","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:trash":{"post":{"operationId":"threadBulkActionsTrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:untrash":{"post":{"operationId":"threadBulkActionsUntrash","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:delete":{"post":{"operationId":"threadBulkActionsDelete","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:done":{"post":{"operationId":"threadBulkActionsDone","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/bulk:open":{"post":{"operationId":"threadBulkActionsOpen","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/read":{"post":{"operationId":"markReadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v2/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThreadV2","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/unassign":{"post":{"operationId":"unassignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/message/threads/{id}:pin":{"post":{"operationId":"pinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"unpinThread","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft","responses":{}}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}}},"components":{"responses":{"NotFound":{"content":{"application/json":{}}},"Conflict":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"BadRequest":{"content":{"application/json":{}}},"Forbidden":{"content":{"application/json":{}}}}},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},s={},r=function r(a){var t=s[a];if(void 0!==t)return t.exports;var o=s[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(330),a=exports;for(var t in r)a[t]=r[t];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
@@ -62,6 +62,25 @@
62
62
  "responses": {}
63
63
  }
64
64
  },
65
+ "/outlook/shared-mailboxes/mappings": {
66
+ "get": {
67
+ "operationId": "getSharedMailboxMappings",
68
+ "responses": {}
69
+ }
70
+ },
71
+ "/outlook/shared-mailboxes/mappings/{shared_inbox_id}": {
72
+ "get": {
73
+ "operationId": "getSharedMailboxMappingById",
74
+ "parameters": [
75
+ {
76
+ "name": "shared_inbox_id",
77
+ "in": "path",
78
+ "required": true
79
+ }
80
+ ],
81
+ "responses": {}
82
+ }
83
+ },
65
84
  "/outlook/oauth/callback": {
66
85
  "get": {
67
86
  "operationId": "outlookOAuthCallback",
package/dist/openapi.d.ts CHANGED
@@ -583,6 +583,41 @@ declare namespace Components {
583
583
  sort?: string;
584
584
  highlight?: any;
585
585
  }
586
+ /**
587
+ * Mapping between a shared inbox and its Outlook shared mailbox.
588
+ * This tracks which provider/tenant provisions each shared mailbox.
589
+ *
590
+ */
591
+ export interface SharedMailboxMapping {
592
+ /**
593
+ * The email-settings shared inbox entity ID
594
+ */
595
+ shared_inbox_id: string;
596
+ /**
597
+ * The Outlook shared mailbox email address
598
+ */
599
+ outlook_email: string; // email
600
+ /**
601
+ * Azure AD Tenant ID that provisions this mailbox
602
+ */
603
+ tenant_id: string;
604
+ /**
605
+ * Provider type (for future extensibility)
606
+ */
607
+ provider: "outlook";
608
+ /**
609
+ * Display name from Outlook
610
+ */
611
+ display_name?: string;
612
+ /**
613
+ * When the mailbox was connected
614
+ */
615
+ connected_at: string; // date-time
616
+ /**
617
+ * User who connected this mailbox
618
+ */
619
+ connected_by_user_id?: string;
620
+ }
586
621
  /**
587
622
  * Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
588
623
  */
@@ -784,11 +819,18 @@ declare namespace Paths {
784
819
  * The Outlook shared mailbox email address
785
820
  */
786
821
  outlook_email?: string; // email
822
+ /**
823
+ * Azure AD Tenant ID that provisions this mailbox
824
+ */
825
+ tenant_id?: string;
826
+ /**
827
+ * The provider type
828
+ */
829
+ provider?: "outlook";
787
830
  /**
788
831
  * Display name of the shared mailbox
789
832
  */
790
833
  display_name?: string;
791
- message?: string;
792
834
  }
793
835
  export interface $400 {
794
836
  }
@@ -986,6 +1028,10 @@ declare namespace Paths {
986
1028
  * The tenant ID that was disconnected
987
1029
  */
988
1030
  tenant_id?: string;
1031
+ /**
1032
+ * List of shared inbox IDs that were affected by the disconnection
1033
+ */
1034
+ affected_shared_inboxes?: string[];
989
1035
  }
990
1036
  export interface $400 {
991
1037
  }
@@ -1393,6 +1439,48 @@ declare namespace Paths {
1393
1439
  }
1394
1440
  }
1395
1441
  }
1442
+ namespace GetSharedMailboxMappingById {
1443
+ namespace Parameters {
1444
+ export type SharedInboxId = string;
1445
+ }
1446
+ export interface PathParameters {
1447
+ shared_inbox_id: Parameters.SharedInboxId;
1448
+ }
1449
+ namespace Responses {
1450
+ export type $200 = /**
1451
+ * Mapping between a shared inbox and its Outlook shared mailbox.
1452
+ * This tracks which provider/tenant provisions each shared mailbox.
1453
+ *
1454
+ */
1455
+ Components.Schemas.SharedMailboxMapping;
1456
+ export interface $400 {
1457
+ }
1458
+ export interface $404 {
1459
+ }
1460
+ export interface $500 {
1461
+ }
1462
+ }
1463
+ }
1464
+ namespace GetSharedMailboxMappings {
1465
+ namespace Responses {
1466
+ export interface $200 {
1467
+ mappings: /**
1468
+ * Mapping between a shared inbox and its Outlook shared mailbox.
1469
+ * This tracks which provider/tenant provisions each shared mailbox.
1470
+ *
1471
+ */
1472
+ Components.Schemas.SharedMailboxMapping[];
1473
+ /**
1474
+ * Number of mappings
1475
+ */
1476
+ count: number;
1477
+ }
1478
+ export interface $400 {
1479
+ }
1480
+ export interface $500 {
1481
+ }
1482
+ }
1483
+ }
1396
1484
  namespace GetThreadTimeline {
1397
1485
  namespace Parameters {
1398
1486
  export type Id = string;
@@ -2693,6 +2781,31 @@ export interface OperationMethods {
2693
2781
  data?: Paths.ConnectSharedMailbox.RequestBody,
2694
2782
  config?: AxiosRequestConfig
2695
2783
  ): OperationResponse<Paths.ConnectSharedMailbox.Responses.$201>
2784
+ /**
2785
+ * getSharedMailboxMappings - Get Shared Mailbox Mappings
2786
+ *
2787
+ * Returns all shared mailbox mappings for the organization.
2788
+ * Useful to determine which shared inboxes are connected to Outlook
2789
+ * and which tenant provisions each one.
2790
+ *
2791
+ */
2792
+ 'getSharedMailboxMappings'(
2793
+ parameters?: Parameters<UnknownParamsObject> | null,
2794
+ data?: any,
2795
+ config?: AxiosRequestConfig
2796
+ ): OperationResponse<Paths.GetSharedMailboxMappings.Responses.$200>
2797
+ /**
2798
+ * getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
2799
+ *
2800
+ * Returns the mapping for a specific shared inbox.
2801
+ * Useful to check if a specific inbox is connected to Outlook.
2802
+ *
2803
+ */
2804
+ 'getSharedMailboxMappingById'(
2805
+ parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
2806
+ data?: any,
2807
+ config?: AxiosRequestConfig
2808
+ ): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
2696
2809
  /**
2697
2810
  * outlookOAuthCallback - Outlook OAuth callback
2698
2811
  *
@@ -3231,6 +3344,35 @@ export interface PathsDictionary {
3231
3344
  config?: AxiosRequestConfig
3232
3345
  ): OperationResponse<Paths.ConnectSharedMailbox.Responses.$201>
3233
3346
  }
3347
+ ['/outlook/shared-mailboxes/mappings']: {
3348
+ /**
3349
+ * getSharedMailboxMappings - Get Shared Mailbox Mappings
3350
+ *
3351
+ * Returns all shared mailbox mappings for the organization.
3352
+ * Useful to determine which shared inboxes are connected to Outlook
3353
+ * and which tenant provisions each one.
3354
+ *
3355
+ */
3356
+ 'get'(
3357
+ parameters?: Parameters<UnknownParamsObject> | null,
3358
+ data?: any,
3359
+ config?: AxiosRequestConfig
3360
+ ): OperationResponse<Paths.GetSharedMailboxMappings.Responses.$200>
3361
+ }
3362
+ ['/outlook/shared-mailboxes/mappings/{shared_inbox_id}']: {
3363
+ /**
3364
+ * getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
3365
+ *
3366
+ * Returns the mapping for a specific shared inbox.
3367
+ * Useful to check if a specific inbox is connected to Outlook.
3368
+ *
3369
+ */
3370
+ 'get'(
3371
+ parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
3372
+ data?: any,
3373
+ config?: AxiosRequestConfig
3374
+ ): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
3375
+ }
3234
3376
  ['/outlook/oauth/callback']: {
3235
3377
  /**
3236
3378
  * outlookOAuthCallback - Outlook OAuth callback
@@ -3790,6 +3932,7 @@ export type ReadingScope = Components.Schemas.ReadingScope;
3790
3932
  export type SearchIDParams = Components.Schemas.SearchIDParams;
3791
3933
  export type SearchParams = Components.Schemas.SearchParams;
3792
3934
  export type SearchParamsV2 = Components.Schemas.SearchParamsV2;
3935
+ export type SharedMailboxMapping = Components.Schemas.SharedMailboxMapping;
3793
3936
  export type Thread = Components.Schemas.Thread;
3794
3937
  export type ThreadDoneEvent = Components.Schemas.ThreadDoneEvent;
3795
3938
  export type ThreadOpenEvent = Components.Schemas.ThreadOpenEvent;
package/dist/openapi.json CHANGED
@@ -313,6 +313,13 @@
313
313
  "tenant_id": {
314
314
  "type": "string",
315
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"
316
323
  }
317
324
  }
318
325
  }
@@ -415,12 +422,20 @@
415
422
  "format": "email",
416
423
  "description": "The Outlook shared mailbox email address"
417
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
+ },
418
436
  "display_name": {
419
437
  "type": "string",
420
438
  "description": "Display name of the shared mailbox"
421
- },
422
- "message": {
423
- "type": "string"
424
439
  }
425
440
  }
426
441
  }
@@ -442,6 +457,92 @@
442
457
  }
443
458
  }
444
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
+ },
445
546
  "/outlook/oauth/callback": {
446
547
  "get": {
447
548
  "operationId": "outlookOAuthCallback",
@@ -2974,6 +3075,52 @@
2974
3075
  "!account.*._files",
2975
3076
  "**._product"
2976
3077
  ]
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
+ }
2977
3124
  }
2978
3125
  }
2979
3126
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",