@epilot/email-settings-client 0.13.0-rc.2 → 1.0.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={390:function(e,s,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var t=n(o(466));s.default=t.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v2/email-settings/email-addresses/epilot:provision":{"put":{"operationId":"provisionEpilotEmailAddress","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses/primary":{"post":{"operationId":"setEmailAddressPrimary","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses/{id}":{"get":{"operationId":"getEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"responses":{}},"delete":{"operationId":"deleteEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"responses":{}},"put":{"operationId":"updateEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses":{"get":{"operationId":"listEmailAddresses","responses":{}},"post":{"operationId":"addEmailAddress","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/shared-inboxes/{id}":{"get":{"operationId":"getSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"}],"responses":{}},"delete":{"operationId":"deleteSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"},{"name":"successorInboxId","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/shared-inboxes":{"get":{"operationId":"listSharedInboxes","responses":{}},"post":{"operationId":"addSharedInbox","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/inbox-buckets":{"get":{"operationId":"listInboxBuckets","responses":{}}},"/v2/outlook/connect":{"get":{"operationId":"connectOutlook","responses":{}}},"/v2/outlook/connection/status":{"get":{"operationId":"getOutlookConnectionStatus","responses":{}}},"/v2/outlook/connection:resolve":{"get":{"operationId":"resolveOutlookConnection","parameters":[{"name":"email","in":"query","required":true}],"responses":{}}},"/v2/outlook/connection/disconnect":{"post":{"operationId":"disconnectOutlook","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/outlook/shared-mailboxes/connect":{"post":{"operationId":"connectSharedMailbox","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/outlook/shared-mailboxes/mappings":{"get":{"operationId":"getSharedMailboxMappings","responses":{}}},"/v2/outlook/shared-mailboxes/mappings/{shared_inbox_id}":{"get":{"operationId":"getSharedMailboxMappingById","parameters":[{"name":"shared_inbox_id","in":"path","required":true}],"responses":{}}},"/v2/outlook/test-webhook":{"get":{"operationId":"testWebhookGet","parameters":[{"name":"validationToken","in":"query","required":false}],"responses":{}},"post":{"operationId":"testWebhookPost","parameters":[{"name":"validationToken","in":"query","required":false},{"name":"debugMessages","in":"query","required":false}],"requestBody":{"required":false,"content":{"application/json":{},"plain/text":{}}},"responses":{}}},"/v2/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/email-settings":{"get":{"operationId":"getSettings","parameters":[{"name":"type","in":"query","required":true},{"name":"id","in":"query"}],"responses":{}},"post":{"operationId":"addSetting","requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSetting","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/{id}":{"post":{"operationId":"updateSetting","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain":{"post":{"operationId":"addDomain","requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteDomain","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain/name-servers:verify":{"post":{"operationId":"verifyNameServers","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain:verify":{"post":{"operationId":"verifyDomain","requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"ListInboxBucketsSuccessResponse":{"content":{"application/json":{}}},"ProvisionEpilotEmailAddressSuccessResponse":{"content":{"application/json":{}}},"SetEmailAddressPrimarySuccessResponse":{"content":{"application/json":{}}},"CreateEmailAddressSuccessResponse":{"content":{"application/json":{}}},"UpdateEmailAddressSuccessResponse":{"content":{"application/json":{}}},"GetEmailAddressSuccessResponse":{"content":{"application/json":{}}},"ListEmailAddressesSuccessResponse":{"content":{"application/json":{}}},"NoContent":{},"CreateSharedInboxSuccessResponse":{"content":{"application/json":{}}},"UpdateSharedInboxSuccessResponse":{"content":{"application/json":{}}},"GetSharedInboxSuccessResponse":{"content":{"application/json":{}}},"ListSharedInboxesSuccessResponse":{"content":{"application/json":{}}},"BadRequest":{"content":{"application/json":{}}},"Forbidden":{"content":{"application/json":{}}},"NotFound":{"content":{"application/json":{}}},"Conflict":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}}},"parameters":{"EmailAddressId":{"name":"id","in":"path","required":true},"SharedInboxId":{"name":"id","in":"path","required":true}}},"servers":[{"url":"https://email-settings.sls.epilot.io"}]}')}},s={},o=function o(n){var t=s[n];if(void 0!==t)return t.exports;var r=s[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}(390),n=exports;for(var t in o)n[t]=o[t];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={330:function(e,o,s){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0});var n=t(s(466));o.default=n.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v2/email-settings/email-addresses/epilot:provision":{"put":{"operationId":"provisionEpilotEmailAddress","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses/primary":{"post":{"operationId":"setEmailAddressPrimary","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses/{id}":{"get":{"operationId":"getEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"responses":{}},"delete":{"operationId":"deleteEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"responses":{}},"put":{"operationId":"updateEmailAddress","parameters":[{"$ref":"#/components/parameters/EmailAddressId"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/email-addresses":{"get":{"operationId":"listEmailAddresses","responses":{}},"post":{"operationId":"addEmailAddress","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/shared-inboxes/{id}":{"get":{"operationId":"getSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"}],"responses":{}},"delete":{"operationId":"deleteSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"},{"name":"successorInboxId","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateSharedInbox","parameters":[{"$ref":"#/components/parameters/SharedInboxId"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/shared-inboxes":{"get":{"operationId":"listSharedInboxes","responses":{}},"post":{"operationId":"addSharedInbox","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/email-settings/inbox-buckets":{"get":{"operationId":"listInboxBuckets","responses":{}}},"/v2/outlook/connect":{"get":{"operationId":"connectOutlook","responses":{}}},"/v2/outlook/connection/status":{"get":{"operationId":"getOutlookConnectionStatus","responses":{}}},"/v2/outlook/connection:resolve":{"get":{"operationId":"resolveOutlookConnection","parameters":[{"name":"email","in":"query","required":true}],"responses":{}}},"/v2/outlook/connection/disconnect":{"post":{"operationId":"disconnectOutlook","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/outlook/mailbox/connect":{"post":{"operationId":"connectOutlookMailbox","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/outlook/mailbox/mappings":{"get":{"operationId":"getConnectedOutlookEmails","responses":{}}},"/v2/outlook/test-webhook":{"get":{"operationId":"testWebhookGet","parameters":[{"name":"validationToken","in":"query","required":false}],"responses":{}},"post":{"operationId":"testWebhookPost","parameters":[{"name":"validationToken","in":"query","required":false},{"name":"debugMessages","in":"query","required":false}],"requestBody":{"required":false,"content":{"application/json":{},"plain/text":{}}},"responses":{}}},"/v2/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/email-settings":{"get":{"operationId":"getSettings","parameters":[{"name":"type","in":"query","required":true},{"name":"id","in":"query"}],"responses":{}},"post":{"operationId":"addSetting","requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteSetting","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/{id}":{"post":{"operationId":"updateSetting","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain":{"post":{"operationId":"addDomain","requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteDomain","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain/name-servers:verify":{"post":{"operationId":"verifyNameServers","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/email-settings/domain:verify":{"post":{"operationId":"verifyDomain","requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"ListInboxBucketsSuccessResponse":{"content":{"application/json":{}}},"ProvisionEpilotEmailAddressSuccessResponse":{"content":{"application/json":{}}},"SetEmailAddressPrimarySuccessResponse":{"content":{"application/json":{}}},"CreateEmailAddressSuccessResponse":{"content":{"application/json":{}}},"UpdateEmailAddressSuccessResponse":{"content":{"application/json":{}}},"GetEmailAddressSuccessResponse":{"content":{"application/json":{}}},"ListEmailAddressesSuccessResponse":{"content":{"application/json":{}}},"NoContent":{},"CreateSharedInboxSuccessResponse":{"content":{"application/json":{}}},"UpdateSharedInboxSuccessResponse":{"content":{"application/json":{}}},"GetSharedInboxSuccessResponse":{"content":{"application/json":{}}},"ListSharedInboxesSuccessResponse":{"content":{"application/json":{}}},"BadRequest":{"content":{"application/json":{}}},"Forbidden":{"content":{"application/json":{}}},"NotFound":{"content":{"application/json":{}}},"Conflict":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}}},"parameters":{"EmailAddressId":{"name":"id","in":"path","required":true},"SharedInboxId":{"name":"id","in":"path","required":true}}},"servers":[{"url":"https://email-settings.sls.epilot.io"}]}')}},o={},s=function s(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t].call(r.exports,r,r.exports,s),r.exports}(330),t=exports;for(var n in s)t[n]=s[n];s.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
package/dist/openapi.d.ts CHANGED
@@ -38,6 +38,33 @@ declare namespace Components {
38
38
  export type UpdateSharedInboxSuccessResponse = Schemas.SharedInboxResponse;
39
39
  }
40
40
  namespace Schemas {
41
+ /**
42
+ * Mapping between an Outlook email and its Outlook Connection.
43
+ * This tracks which provider/tenant provisions each Outlook email.
44
+ *
45
+ */
46
+ export interface ConnectedOutlookEmail {
47
+ /**
48
+ * The Outlook shared mailbox email address
49
+ */
50
+ outlook_email: string; // email
51
+ /**
52
+ * Azure AD Tenant ID that provisions this mailbox
53
+ */
54
+ tenant_id?: string;
55
+ /**
56
+ * Provider type (for future extensibility)
57
+ */
58
+ provider?: "outlook";
59
+ /**
60
+ * When the mailbox was connected
61
+ */
62
+ connected_at?: string; // date-time
63
+ /**
64
+ * User who connected this mailbox
65
+ */
66
+ connected_by_user_id?: string;
67
+ }
41
68
  export interface CreateEmailAddressPayload {
42
69
  address: string;
43
70
  name?: string;
@@ -181,41 +208,6 @@ declare namespace Components {
181
208
  description?: string;
182
209
  bucket_id: string;
183
210
  }
184
- /**
185
- * Mapping between a shared inbox and its Outlook shared mailbox.
186
- * This tracks which provider/tenant provisions each shared mailbox.
187
- *
188
- */
189
- export interface SharedMailboxMapping {
190
- /**
191
- * The email-settings shared inbox entity ID
192
- */
193
- shared_inbox_id: string;
194
- /**
195
- * The Outlook shared mailbox email address
196
- */
197
- outlook_email: string; // email
198
- /**
199
- * Azure AD Tenant ID that provisions this mailbox
200
- */
201
- tenant_id: string;
202
- /**
203
- * Provider type (for future extensibility)
204
- */
205
- provider: "outlook";
206
- /**
207
- * Display name from Outlook
208
- */
209
- display_name?: string;
210
- /**
211
- * When the mailbox was connected
212
- */
213
- connected_at: string; // date-time
214
- /**
215
- * User who connected this mailbox
216
- */
217
- connected_by_user_id?: string;
218
- }
219
211
  /**
220
212
  * Setting that allows to add a signature.
221
213
  */
@@ -290,57 +282,28 @@ declare namespace Paths {
290
282
  }
291
283
  }
292
284
  }
293
- namespace ConnectSharedMailbox {
285
+ namespace ConnectOutlookMailbox {
294
286
  export interface RequestBody {
295
287
  /**
296
- * Email address of the Outlook shared mailbox to connect
288
+ * Email address of the Outlook mailbox to connect
297
289
  */
298
290
  email: string; // email
299
- /**
300
- * Display name for the shared inbox (defaults to mailbox display name)
301
- */
302
- name?: string;
303
- /**
304
- * Color for the shared inbox (hex code, defaults to green)
305
- */
306
- color?: string;
307
- /**
308
- * User IDs to assign to this shared inbox
309
- */
310
- assignees?: string[];
311
- /**
312
- * Description for the shared inbox
313
- */
314
- description?: string;
315
291
  }
316
292
  namespace Responses {
317
293
  export interface $201 {
294
+ email_address: Components.Schemas.EmailAddressResponse;
318
295
  /**
319
- * The created shared inbox from email-settings
296
+ * The email of the connected mailbox
320
297
  */
321
- shared_inbox?: {
322
- id?: string;
323
- name?: string;
324
- color?: string;
325
- assignees?: string[];
326
- description?: string;
327
- };
328
- /**
329
- * The Outlook shared mailbox email address
330
- */
331
- outlook_email?: string; // email
298
+ outlook_email: string; // email
332
299
  /**
333
300
  * Azure AD Tenant ID that provisions this mailbox
334
301
  */
335
- tenant_id?: string;
302
+ tenant_id: string;
336
303
  /**
337
304
  * The provider type
338
305
  */
339
- provider?: "outlook";
340
- /**
341
- * Display name of the shared mailbox
342
- */
343
- display_name?: string;
306
+ provider: "outlook";
344
307
  }
345
308
  export interface $400 {
346
309
  }
@@ -443,6 +406,26 @@ declare namespace Paths {
443
406
  }
444
407
  }
445
408
  }
409
+ namespace GetConnectedOutlookEmails {
410
+ namespace Responses {
411
+ export interface $200 {
412
+ outlook_emails: /**
413
+ * Mapping between an Outlook email and its Outlook Connection.
414
+ * This tracks which provider/tenant provisions each Outlook email.
415
+ *
416
+ */
417
+ Components.Schemas.ConnectedOutlookEmail[];
418
+ /**
419
+ * Number of Outlook emails
420
+ */
421
+ count: number;
422
+ }
423
+ export interface $400 {
424
+ }
425
+ export interface $500 {
426
+ }
427
+ }
428
+ }
446
429
  namespace GetEmailAddress {
447
430
  namespace Parameters {
448
431
  export type Id = string;
@@ -560,48 +543,6 @@ declare namespace Paths {
560
543
  export type $500 = Components.Responses.InternalServerError;
561
544
  }
562
545
  }
563
- namespace GetSharedMailboxMappingById {
564
- namespace Parameters {
565
- export type SharedInboxId = string;
566
- }
567
- export interface PathParameters {
568
- shared_inbox_id: Parameters.SharedInboxId;
569
- }
570
- namespace Responses {
571
- export type $200 = /**
572
- * Mapping between a shared inbox and its Outlook shared mailbox.
573
- * This tracks which provider/tenant provisions each shared mailbox.
574
- *
575
- */
576
- Components.Schemas.SharedMailboxMapping;
577
- export interface $400 {
578
- }
579
- export interface $404 {
580
- }
581
- export interface $500 {
582
- }
583
- }
584
- }
585
- namespace GetSharedMailboxMappings {
586
- namespace Responses {
587
- export interface $200 {
588
- mappings: /**
589
- * Mapping between a shared inbox and its Outlook shared mailbox.
590
- * This tracks which provider/tenant provisions each shared mailbox.
591
- *
592
- */
593
- Components.Schemas.SharedMailboxMapping[];
594
- /**
595
- * Number of mappings
596
- */
597
- count: number;
598
- }
599
- export interface $400 {
600
- }
601
- export interface $500 {
602
- }
603
- }
604
- }
605
546
  namespace ListEmailAddresses {
606
547
  namespace Responses {
607
548
  export type $200 = Components.Responses.ListEmailAddressesSuccessResponse;
@@ -983,43 +924,30 @@ export interface OperationMethods {
983
924
  config?: AxiosRequestConfig
984
925
  ): OperationResponse<Paths.DisconnectOutlook.Responses.$200>
985
926
  /**
986
- * connectSharedMailbox - Connect Outlook Shared Mailbox
927
+ * connectOutlookMailbox - Connect Outlook Mailbox
987
928
  *
988
- * Connects an Outlook shared mailbox as a shared inbox.
989
- * 1. Validates the user has access to the shared mailbox via Microsoft Graph API
990
- * 2. Creates a shared inbox entry in email-settings with the Outlook provider info
929
+ * Connects an Outlook mailbox:
930
+ * 1. Validates the user has access to the mailbox via Microsoft Graph API
931
+ * 2. Creates a mapping between the email address of the mailbox and the outlook connection
932
+ * 3. Enables the user to send emails as the mailbox's email address
991
933
  *
992
934
  */
993
- 'connectSharedMailbox'(
935
+ 'connectOutlookMailbox'(
994
936
  parameters?: Parameters<UnknownParamsObject> | null,
995
- data?: Paths.ConnectSharedMailbox.RequestBody,
937
+ data?: Paths.ConnectOutlookMailbox.RequestBody,
996
938
  config?: AxiosRequestConfig
997
- ): OperationResponse<Paths.ConnectSharedMailbox.Responses.$201>
939
+ ): OperationResponse<Paths.ConnectOutlookMailbox.Responses.$201>
998
940
  /**
999
- * getSharedMailboxMappings - Get Shared Mailbox Mappings
941
+ * getConnectedOutlookEmails - Get Connected Outlook Emails
1000
942
  *
1001
- * Returns all shared mailbox mappings for the organization.
1002
- * Useful to determine which shared inboxes are connected to Outlook
1003
- * and which tenant provisions each one.
943
+ * Returns all Outlook email addresses connected to the organization.
1004
944
  *
1005
945
  */
1006
- 'getSharedMailboxMappings'(
946
+ 'getConnectedOutlookEmails'(
1007
947
  parameters?: Parameters<UnknownParamsObject> | null,
1008
948
  data?: any,
1009
949
  config?: AxiosRequestConfig
1010
- ): OperationResponse<Paths.GetSharedMailboxMappings.Responses.$200>
1011
- /**
1012
- * getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
1013
- *
1014
- * Returns the mapping for a specific shared inbox.
1015
- * Useful to check if a specific inbox is connected to Outlook.
1016
- *
1017
- */
1018
- 'getSharedMailboxMappingById'(
1019
- parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
1020
- data?: any,
1021
- config?: AxiosRequestConfig
1022
- ): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
950
+ ): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
1023
951
  /**
1024
952
  * testWebhookGet - Test Webhook (GET)
1025
953
  *
@@ -1338,49 +1266,34 @@ export interface PathsDictionary {
1338
1266
  config?: AxiosRequestConfig
1339
1267
  ): OperationResponse<Paths.DisconnectOutlook.Responses.$200>
1340
1268
  }
1341
- ['/v2/outlook/shared-mailboxes/connect']: {
1269
+ ['/v2/outlook/mailbox/connect']: {
1342
1270
  /**
1343
- * connectSharedMailbox - Connect Outlook Shared Mailbox
1271
+ * connectOutlookMailbox - Connect Outlook Mailbox
1344
1272
  *
1345
- * Connects an Outlook shared mailbox as a shared inbox.
1346
- * 1. Validates the user has access to the shared mailbox via Microsoft Graph API
1347
- * 2. Creates a shared inbox entry in email-settings with the Outlook provider info
1273
+ * Connects an Outlook mailbox:
1274
+ * 1. Validates the user has access to the mailbox via Microsoft Graph API
1275
+ * 2. Creates a mapping between the email address of the mailbox and the outlook connection
1276
+ * 3. Enables the user to send emails as the mailbox's email address
1348
1277
  *
1349
1278
  */
1350
1279
  'post'(
1351
1280
  parameters?: Parameters<UnknownParamsObject> | null,
1352
- data?: Paths.ConnectSharedMailbox.RequestBody,
1281
+ data?: Paths.ConnectOutlookMailbox.RequestBody,
1353
1282
  config?: AxiosRequestConfig
1354
- ): OperationResponse<Paths.ConnectSharedMailbox.Responses.$201>
1283
+ ): OperationResponse<Paths.ConnectOutlookMailbox.Responses.$201>
1355
1284
  }
1356
- ['/v2/outlook/shared-mailboxes/mappings']: {
1285
+ ['/v2/outlook/mailbox/mappings']: {
1357
1286
  /**
1358
- * getSharedMailboxMappings - Get Shared Mailbox Mappings
1287
+ * getConnectedOutlookEmails - Get Connected Outlook Emails
1359
1288
  *
1360
- * Returns all shared mailbox mappings for the organization.
1361
- * Useful to determine which shared inboxes are connected to Outlook
1362
- * and which tenant provisions each one.
1289
+ * Returns all Outlook email addresses connected to the organization.
1363
1290
  *
1364
1291
  */
1365
1292
  'get'(
1366
1293
  parameters?: Parameters<UnknownParamsObject> | null,
1367
1294
  data?: any,
1368
1295
  config?: AxiosRequestConfig
1369
- ): OperationResponse<Paths.GetSharedMailboxMappings.Responses.$200>
1370
- }
1371
- ['/v2/outlook/shared-mailboxes/mappings/{shared_inbox_id}']: {
1372
- /**
1373
- * getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
1374
- *
1375
- * Returns the mapping for a specific shared inbox.
1376
- * Useful to check if a specific inbox is connected to Outlook.
1377
- *
1378
- */
1379
- 'get'(
1380
- parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
1381
- data?: any,
1382
- config?: AxiosRequestConfig
1383
- ): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
1296
+ ): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
1384
1297
  }
1385
1298
  ['/v2/outlook/test-webhook']: {
1386
1299
  /**
@@ -1517,6 +1430,7 @@ export interface PathsDictionary {
1517
1430
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1518
1431
 
1519
1432
 
1433
+ export type ConnectedOutlookEmail = Components.Schemas.ConnectedOutlookEmail;
1520
1434
  export type CreateEmailAddressPayload = Components.Schemas.CreateEmailAddressPayload;
1521
1435
  export type CreateSharedInboxPayload = Components.Schemas.CreateSharedInboxPayload;
1522
1436
  export type Domain = Components.Schemas.Domain;
@@ -1535,7 +1449,6 @@ export type SettingMeta = Components.Schemas.SettingMeta;
1535
1449
  export type SettingType = Components.Schemas.SettingType;
1536
1450
  export type SettingsResponse = Components.Schemas.SettingsResponse;
1537
1451
  export type SharedInboxResponse = Components.Schemas.SharedInboxResponse;
1538
- export type SharedMailboxMapping = Components.Schemas.SharedMailboxMapping;
1539
1452
  export type SignatureSetting = Components.Schemas.SignatureSetting;
1540
1453
  export type UpdateEmailAddressPayload = Components.Schemas.UpdateEmailAddressPayload;
1541
1454
  export type UpdateSharedInboxPayload = Components.Schemas.UpdateSharedInboxPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/email-settings-client",
3
- "version": "0.13.0-rc.2",
3
+ "version": "1.0.0",
4
4
  "description": "API Client for epilot Email Settings API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,6 @@
23
23
  "typescript": "tsc",
24
24
  "bundle-definition": "webpack",
25
25
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/email-settings.yaml",
26
- "openapi:local": "node ../../scripts/update-openapi.js /Users/manikandansubramanian/Workspace/email-settings/lambda/ApiHandlerFunction/openapi.yml",
27
26
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
28
27
  "build": "tsc && npm run build:patch && npm run bundle-definition",
29
28
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
@@ -72,4 +71,4 @@
72
71
  "webpack-cli": "^4.4.0"
73
72
  },
74
73
  "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
- }
74
+ }