@epilot/email-settings-client 0.12.0 → 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.
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +133 -166
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={330:function(e,s
|
|
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;
|
|
@@ -92,9 +119,26 @@ declare namespace Components {
|
|
|
92
119
|
id: string;
|
|
93
120
|
inbox_id: string;
|
|
94
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Outlook connection config stored in DynamoDB
|
|
124
|
+
*/
|
|
125
|
+
export interface OutlookConnectionConfig {
|
|
126
|
+
connected_at?: string; // date-time
|
|
127
|
+
connected_by_user_id?: string;
|
|
128
|
+
display_name?: string;
|
|
129
|
+
email_address?: string; // email
|
|
130
|
+
outlook_email?: string; // email
|
|
131
|
+
provider?: string;
|
|
132
|
+
shared_inbox_id?: string;
|
|
133
|
+
tenant_id?: string;
|
|
134
|
+
}
|
|
95
135
|
export interface ProvisionEpilotEmailAddressPayload {
|
|
96
136
|
address: string;
|
|
97
137
|
}
|
|
138
|
+
export interface ResolveOutlookConnectionResponse {
|
|
139
|
+
resolved: boolean;
|
|
140
|
+
connection?: /* Outlook connection config stored in DynamoDB */ OutlookConnectionConfig;
|
|
141
|
+
}
|
|
98
142
|
/**
|
|
99
143
|
* - Restrict duplicates within:
|
|
100
144
|
* * 10s
|
|
@@ -164,41 +208,6 @@ declare namespace Components {
|
|
|
164
208
|
description?: string;
|
|
165
209
|
bucket_id: string;
|
|
166
210
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Mapping between a shared inbox and its Outlook shared mailbox.
|
|
169
|
-
* This tracks which provider/tenant provisions each shared mailbox.
|
|
170
|
-
*
|
|
171
|
-
*/
|
|
172
|
-
export interface SharedMailboxMapping {
|
|
173
|
-
/**
|
|
174
|
-
* The email-settings shared inbox entity ID
|
|
175
|
-
*/
|
|
176
|
-
shared_inbox_id: string;
|
|
177
|
-
/**
|
|
178
|
-
* The Outlook shared mailbox email address
|
|
179
|
-
*/
|
|
180
|
-
outlook_email: string; // email
|
|
181
|
-
/**
|
|
182
|
-
* Azure AD Tenant ID that provisions this mailbox
|
|
183
|
-
*/
|
|
184
|
-
tenant_id: string;
|
|
185
|
-
/**
|
|
186
|
-
* Provider type (for future extensibility)
|
|
187
|
-
*/
|
|
188
|
-
provider: "outlook";
|
|
189
|
-
/**
|
|
190
|
-
* Display name from Outlook
|
|
191
|
-
*/
|
|
192
|
-
display_name?: string;
|
|
193
|
-
/**
|
|
194
|
-
* When the mailbox was connected
|
|
195
|
-
*/
|
|
196
|
-
connected_at: string; // date-time
|
|
197
|
-
/**
|
|
198
|
-
* User who connected this mailbox
|
|
199
|
-
*/
|
|
200
|
-
connected_by_user_id?: string;
|
|
201
|
-
}
|
|
202
211
|
/**
|
|
203
212
|
* Setting that allows to add a signature.
|
|
204
213
|
*/
|
|
@@ -273,57 +282,28 @@ declare namespace Paths {
|
|
|
273
282
|
}
|
|
274
283
|
}
|
|
275
284
|
}
|
|
276
|
-
namespace
|
|
285
|
+
namespace ConnectOutlookMailbox {
|
|
277
286
|
export interface RequestBody {
|
|
278
287
|
/**
|
|
279
|
-
* Email address of the Outlook
|
|
288
|
+
* Email address of the Outlook mailbox to connect
|
|
280
289
|
*/
|
|
281
290
|
email: string; // email
|
|
282
|
-
/**
|
|
283
|
-
* Display name for the shared inbox (defaults to mailbox display name)
|
|
284
|
-
*/
|
|
285
|
-
name?: string;
|
|
286
|
-
/**
|
|
287
|
-
* Color for the shared inbox (hex code, defaults to green)
|
|
288
|
-
*/
|
|
289
|
-
color?: string;
|
|
290
|
-
/**
|
|
291
|
-
* User IDs to assign to this shared inbox
|
|
292
|
-
*/
|
|
293
|
-
assignees?: string[];
|
|
294
|
-
/**
|
|
295
|
-
* Description for the shared inbox
|
|
296
|
-
*/
|
|
297
|
-
description?: string;
|
|
298
291
|
}
|
|
299
292
|
namespace Responses {
|
|
300
293
|
export interface $201 {
|
|
294
|
+
email_address: Components.Schemas.EmailAddressResponse;
|
|
301
295
|
/**
|
|
302
|
-
* The
|
|
303
|
-
*/
|
|
304
|
-
shared_inbox?: {
|
|
305
|
-
id?: string;
|
|
306
|
-
name?: string;
|
|
307
|
-
color?: string;
|
|
308
|
-
assignees?: string[];
|
|
309
|
-
description?: string;
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* The Outlook shared mailbox email address
|
|
296
|
+
* The email of the connected mailbox
|
|
313
297
|
*/
|
|
314
|
-
outlook_email
|
|
298
|
+
outlook_email: string; // email
|
|
315
299
|
/**
|
|
316
300
|
* Azure AD Tenant ID that provisions this mailbox
|
|
317
301
|
*/
|
|
318
|
-
tenant_id
|
|
302
|
+
tenant_id: string;
|
|
319
303
|
/**
|
|
320
304
|
* The provider type
|
|
321
305
|
*/
|
|
322
|
-
provider
|
|
323
|
-
/**
|
|
324
|
-
* Display name of the shared mailbox
|
|
325
|
-
*/
|
|
326
|
-
display_name?: string;
|
|
306
|
+
provider: "outlook";
|
|
327
307
|
}
|
|
328
308
|
export interface $400 {
|
|
329
309
|
}
|
|
@@ -426,6 +406,26 @@ declare namespace Paths {
|
|
|
426
406
|
}
|
|
427
407
|
}
|
|
428
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
|
+
}
|
|
429
429
|
namespace GetEmailAddress {
|
|
430
430
|
namespace Parameters {
|
|
431
431
|
export type Id = string;
|
|
@@ -543,48 +543,6 @@ declare namespace Paths {
|
|
|
543
543
|
export type $500 = Components.Responses.InternalServerError;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
namespace GetSharedMailboxMappingById {
|
|
547
|
-
namespace Parameters {
|
|
548
|
-
export type SharedInboxId = string;
|
|
549
|
-
}
|
|
550
|
-
export interface PathParameters {
|
|
551
|
-
shared_inbox_id: Parameters.SharedInboxId;
|
|
552
|
-
}
|
|
553
|
-
namespace Responses {
|
|
554
|
-
export type $200 = /**
|
|
555
|
-
* Mapping between a shared inbox and its Outlook shared mailbox.
|
|
556
|
-
* This tracks which provider/tenant provisions each shared mailbox.
|
|
557
|
-
*
|
|
558
|
-
*/
|
|
559
|
-
Components.Schemas.SharedMailboxMapping;
|
|
560
|
-
export interface $400 {
|
|
561
|
-
}
|
|
562
|
-
export interface $404 {
|
|
563
|
-
}
|
|
564
|
-
export interface $500 {
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
namespace GetSharedMailboxMappings {
|
|
569
|
-
namespace Responses {
|
|
570
|
-
export interface $200 {
|
|
571
|
-
mappings: /**
|
|
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
|
-
/**
|
|
578
|
-
* Number of mappings
|
|
579
|
-
*/
|
|
580
|
-
count: number;
|
|
581
|
-
}
|
|
582
|
-
export interface $400 {
|
|
583
|
-
}
|
|
584
|
-
export interface $500 {
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
546
|
namespace ListEmailAddresses {
|
|
589
547
|
namespace Responses {
|
|
590
548
|
export type $200 = Components.Responses.ListEmailAddressesSuccessResponse;
|
|
@@ -648,6 +606,19 @@ declare namespace Paths {
|
|
|
648
606
|
export type $500 = Components.Responses.InternalServerError;
|
|
649
607
|
}
|
|
650
608
|
}
|
|
609
|
+
namespace ResolveOutlookConnection {
|
|
610
|
+
namespace Parameters {
|
|
611
|
+
export type Email = string; // email
|
|
612
|
+
}
|
|
613
|
+
export interface QueryParameters {
|
|
614
|
+
email: Parameters.Email /* email */;
|
|
615
|
+
}
|
|
616
|
+
namespace Responses {
|
|
617
|
+
export type $200 = Components.Schemas.ResolveOutlookConnectionResponse;
|
|
618
|
+
export type $400 = Components.Responses.BadRequest;
|
|
619
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
651
622
|
namespace SetEmailAddressPrimary {
|
|
652
623
|
export type RequestBody = Components.Schemas.SetEmailAddressPrimaryPayload;
|
|
653
624
|
namespace Responses {
|
|
@@ -930,6 +901,16 @@ export interface OperationMethods {
|
|
|
930
901
|
data?: any,
|
|
931
902
|
config?: AxiosRequestConfig
|
|
932
903
|
): OperationResponse<Paths.GetOutlookConnectionStatus.Responses.$200>
|
|
904
|
+
/**
|
|
905
|
+
* resolveOutlookConnection - Resolve Outlook Connection
|
|
906
|
+
*
|
|
907
|
+
* Resolves the Outlook connection for the provided filter parameters.
|
|
908
|
+
*/
|
|
909
|
+
'resolveOutlookConnection'(
|
|
910
|
+
parameters?: Parameters<Paths.ResolveOutlookConnection.QueryParameters> | null,
|
|
911
|
+
data?: any,
|
|
912
|
+
config?: AxiosRequestConfig
|
|
913
|
+
): OperationResponse<Paths.ResolveOutlookConnection.Responses.$200>
|
|
933
914
|
/**
|
|
934
915
|
* disconnectOutlook - Disconnect Outlook
|
|
935
916
|
*
|
|
@@ -943,43 +924,30 @@ export interface OperationMethods {
|
|
|
943
924
|
config?: AxiosRequestConfig
|
|
944
925
|
): OperationResponse<Paths.DisconnectOutlook.Responses.$200>
|
|
945
926
|
/**
|
|
946
|
-
*
|
|
927
|
+
* connectOutlookMailbox - Connect Outlook Mailbox
|
|
947
928
|
*
|
|
948
|
-
* Connects an Outlook
|
|
949
|
-
*
|
|
950
|
-
*
|
|
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
|
|
951
933
|
*
|
|
952
934
|
*/
|
|
953
|
-
'
|
|
935
|
+
'connectOutlookMailbox'(
|
|
954
936
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
955
|
-
data?: Paths.
|
|
937
|
+
data?: Paths.ConnectOutlookMailbox.RequestBody,
|
|
956
938
|
config?: AxiosRequestConfig
|
|
957
|
-
): OperationResponse<Paths.
|
|
939
|
+
): OperationResponse<Paths.ConnectOutlookMailbox.Responses.$201>
|
|
958
940
|
/**
|
|
959
|
-
*
|
|
941
|
+
* getConnectedOutlookEmails - Get Connected Outlook Emails
|
|
960
942
|
*
|
|
961
|
-
* Returns all
|
|
962
|
-
* Useful to determine which shared inboxes are connected to Outlook
|
|
963
|
-
* and which tenant provisions each one.
|
|
943
|
+
* Returns all Outlook email addresses connected to the organization.
|
|
964
944
|
*
|
|
965
945
|
*/
|
|
966
|
-
'
|
|
946
|
+
'getConnectedOutlookEmails'(
|
|
967
947
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
968
948
|
data?: any,
|
|
969
949
|
config?: AxiosRequestConfig
|
|
970
|
-
): OperationResponse<Paths.
|
|
971
|
-
/**
|
|
972
|
-
* getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
|
|
973
|
-
*
|
|
974
|
-
* Returns the mapping for a specific shared inbox.
|
|
975
|
-
* Useful to check if a specific inbox is connected to Outlook.
|
|
976
|
-
*
|
|
977
|
-
*/
|
|
978
|
-
'getSharedMailboxMappingById'(
|
|
979
|
-
parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
|
|
980
|
-
data?: any,
|
|
981
|
-
config?: AxiosRequestConfig
|
|
982
|
-
): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
|
|
950
|
+
): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
|
|
983
951
|
/**
|
|
984
952
|
* testWebhookGet - Test Webhook (GET)
|
|
985
953
|
*
|
|
@@ -1272,6 +1240,18 @@ export interface PathsDictionary {
|
|
|
1272
1240
|
config?: AxiosRequestConfig
|
|
1273
1241
|
): OperationResponse<Paths.GetOutlookConnectionStatus.Responses.$200>
|
|
1274
1242
|
}
|
|
1243
|
+
['/v2/outlook/connection:resolve']: {
|
|
1244
|
+
/**
|
|
1245
|
+
* resolveOutlookConnection - Resolve Outlook Connection
|
|
1246
|
+
*
|
|
1247
|
+
* Resolves the Outlook connection for the provided filter parameters.
|
|
1248
|
+
*/
|
|
1249
|
+
'get'(
|
|
1250
|
+
parameters?: Parameters<Paths.ResolveOutlookConnection.QueryParameters> | null,
|
|
1251
|
+
data?: any,
|
|
1252
|
+
config?: AxiosRequestConfig
|
|
1253
|
+
): OperationResponse<Paths.ResolveOutlookConnection.Responses.$200>
|
|
1254
|
+
}
|
|
1275
1255
|
['/v2/outlook/connection/disconnect']: {
|
|
1276
1256
|
/**
|
|
1277
1257
|
* disconnectOutlook - Disconnect Outlook
|
|
@@ -1286,49 +1266,34 @@ export interface PathsDictionary {
|
|
|
1286
1266
|
config?: AxiosRequestConfig
|
|
1287
1267
|
): OperationResponse<Paths.DisconnectOutlook.Responses.$200>
|
|
1288
1268
|
}
|
|
1289
|
-
['/v2/outlook/
|
|
1269
|
+
['/v2/outlook/mailbox/connect']: {
|
|
1290
1270
|
/**
|
|
1291
|
-
*
|
|
1271
|
+
* connectOutlookMailbox - Connect Outlook Mailbox
|
|
1292
1272
|
*
|
|
1293
|
-
* Connects an Outlook
|
|
1294
|
-
*
|
|
1295
|
-
*
|
|
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
|
|
1296
1277
|
*
|
|
1297
1278
|
*/
|
|
1298
1279
|
'post'(
|
|
1299
1280
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1300
|
-
data?: Paths.
|
|
1281
|
+
data?: Paths.ConnectOutlookMailbox.RequestBody,
|
|
1301
1282
|
config?: AxiosRequestConfig
|
|
1302
|
-
): OperationResponse<Paths.
|
|
1283
|
+
): OperationResponse<Paths.ConnectOutlookMailbox.Responses.$201>
|
|
1303
1284
|
}
|
|
1304
|
-
['/v2/outlook/
|
|
1285
|
+
['/v2/outlook/mailbox/mappings']: {
|
|
1305
1286
|
/**
|
|
1306
|
-
*
|
|
1287
|
+
* getConnectedOutlookEmails - Get Connected Outlook Emails
|
|
1307
1288
|
*
|
|
1308
|
-
* Returns all
|
|
1309
|
-
* Useful to determine which shared inboxes are connected to Outlook
|
|
1310
|
-
* and which tenant provisions each one.
|
|
1289
|
+
* Returns all Outlook email addresses connected to the organization.
|
|
1311
1290
|
*
|
|
1312
1291
|
*/
|
|
1313
1292
|
'get'(
|
|
1314
1293
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1315
1294
|
data?: any,
|
|
1316
1295
|
config?: AxiosRequestConfig
|
|
1317
|
-
): OperationResponse<Paths.
|
|
1318
|
-
}
|
|
1319
|
-
['/v2/outlook/shared-mailboxes/mappings/{shared_inbox_id}']: {
|
|
1320
|
-
/**
|
|
1321
|
-
* getSharedMailboxMappingById - Get Shared Mailbox Mapping by ID
|
|
1322
|
-
*
|
|
1323
|
-
* Returns the mapping for a specific shared inbox.
|
|
1324
|
-
* Useful to check if a specific inbox is connected to Outlook.
|
|
1325
|
-
*
|
|
1326
|
-
*/
|
|
1327
|
-
'get'(
|
|
1328
|
-
parameters?: Parameters<Paths.GetSharedMailboxMappingById.PathParameters> | null,
|
|
1329
|
-
data?: any,
|
|
1330
|
-
config?: AxiosRequestConfig
|
|
1331
|
-
): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
|
|
1296
|
+
): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
|
|
1332
1297
|
}
|
|
1333
1298
|
['/v2/outlook/test-webhook']: {
|
|
1334
1299
|
/**
|
|
@@ -1465,6 +1430,7 @@ export interface PathsDictionary {
|
|
|
1465
1430
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1466
1431
|
|
|
1467
1432
|
|
|
1433
|
+
export type ConnectedOutlookEmail = Components.Schemas.ConnectedOutlookEmail;
|
|
1468
1434
|
export type CreateEmailAddressPayload = Components.Schemas.CreateEmailAddressPayload;
|
|
1469
1435
|
export type CreateSharedInboxPayload = Components.Schemas.CreateSharedInboxPayload;
|
|
1470
1436
|
export type Domain = Components.Schemas.Domain;
|
|
@@ -1473,7 +1439,9 @@ export type EmailAddressSetting = Components.Schemas.EmailAddressSetting;
|
|
|
1473
1439
|
export type EmailDomainSetting = Components.Schemas.EmailDomainSetting;
|
|
1474
1440
|
export type ErrorResponse = Components.Schemas.ErrorResponse;
|
|
1475
1441
|
export type InboxBucketResponse = Components.Schemas.InboxBucketResponse;
|
|
1442
|
+
export type OutlookConnectionConfig = Components.Schemas.OutlookConnectionConfig;
|
|
1476
1443
|
export type ProvisionEpilotEmailAddressPayload = Components.Schemas.ProvisionEpilotEmailAddressPayload;
|
|
1444
|
+
export type ResolveOutlookConnectionResponse = Components.Schemas.ResolveOutlookConnectionResponse;
|
|
1477
1445
|
export type RestrictDuplicatesWithinSetting = Components.Schemas.RestrictDuplicatesWithinSetting;
|
|
1478
1446
|
export type SetEmailAddressPrimaryPayload = Components.Schemas.SetEmailAddressPrimaryPayload;
|
|
1479
1447
|
export type Setting = Components.Schemas.Setting;
|
|
@@ -1481,7 +1449,6 @@ export type SettingMeta = Components.Schemas.SettingMeta;
|
|
|
1481
1449
|
export type SettingType = Components.Schemas.SettingType;
|
|
1482
1450
|
export type SettingsResponse = Components.Schemas.SettingsResponse;
|
|
1483
1451
|
export type SharedInboxResponse = Components.Schemas.SharedInboxResponse;
|
|
1484
|
-
export type SharedMailboxMapping = Components.Schemas.SharedMailboxMapping;
|
|
1485
1452
|
export type SignatureSetting = Components.Schemas.SignatureSetting;
|
|
1486
1453
|
export type UpdateEmailAddressPayload = Components.Schemas.UpdateEmailAddressPayload;
|
|
1487
1454
|
export type UpdateSharedInboxPayload = Components.Schemas.UpdateSharedInboxPayload;
|