@epilot/email-settings-client 0.11.0 → 0.12.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 +99 -0
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={330:function(e,s,o){var
|
|
1
|
+
(()=>{"use strict";var e={330:function(e,s,o){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0});var n=t(o(466));s.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/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(t){var n=s[t];if(void 0!==n)return n.exports;var r=s[t]={exports:{}};return e[t].call(r.exports,r,r.exports,o),r.exports}(330),t=exports;for(var n in o)t[n]=o[n];o.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -331,6 +331,8 @@ declare namespace Paths {
|
|
|
331
331
|
}
|
|
332
332
|
export interface $403 {
|
|
333
333
|
}
|
|
334
|
+
export interface $409 {
|
|
335
|
+
}
|
|
334
336
|
export interface $500 {
|
|
335
337
|
}
|
|
336
338
|
}
|
|
@@ -656,6 +658,49 @@ declare namespace Paths {
|
|
|
656
658
|
export type $500 = Components.Responses.InternalServerError;
|
|
657
659
|
}
|
|
658
660
|
}
|
|
661
|
+
namespace TestWebhookGet {
|
|
662
|
+
namespace Parameters {
|
|
663
|
+
export type ValidationToken = string;
|
|
664
|
+
}
|
|
665
|
+
export interface QueryParameters {
|
|
666
|
+
validationToken?: Parameters.ValidationToken;
|
|
667
|
+
}
|
|
668
|
+
namespace Responses {
|
|
669
|
+
export type $200 = string;
|
|
670
|
+
export interface $202 {
|
|
671
|
+
message?: string;
|
|
672
|
+
timestamp?: string; // date-time
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
namespace TestWebhookPost {
|
|
677
|
+
namespace Parameters {
|
|
678
|
+
export type DebugMessages = boolean;
|
|
679
|
+
export type ValidationToken = string;
|
|
680
|
+
}
|
|
681
|
+
export interface QueryParameters {
|
|
682
|
+
validationToken?: Parameters.ValidationToken;
|
|
683
|
+
debugMessages?: Parameters.DebugMessages;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Graph API notification payload
|
|
687
|
+
*/
|
|
688
|
+
export interface RequestBody {
|
|
689
|
+
value?: {
|
|
690
|
+
subscriptionId?: string;
|
|
691
|
+
changeType?: string;
|
|
692
|
+
resource?: string;
|
|
693
|
+
clientState?: string;
|
|
694
|
+
}[];
|
|
695
|
+
}
|
|
696
|
+
namespace Responses {
|
|
697
|
+
export type $200 = string;
|
|
698
|
+
export interface $202 {
|
|
699
|
+
message?: string;
|
|
700
|
+
timestamp?: string; // date-time
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
659
704
|
namespace UpdateEmailAddress {
|
|
660
705
|
namespace Parameters {
|
|
661
706
|
export type Id = string;
|
|
@@ -935,6 +980,32 @@ export interface OperationMethods {
|
|
|
935
980
|
data?: any,
|
|
936
981
|
config?: AxiosRequestConfig
|
|
937
982
|
): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
|
|
983
|
+
/**
|
|
984
|
+
* testWebhookGet - Test Webhook (GET)
|
|
985
|
+
*
|
|
986
|
+
* Test endpoint for debugging Graph API webhook notifications via ngrok.
|
|
987
|
+
* Handles Microsoft Graph subscription validation requests by returning the validationToken.
|
|
988
|
+
* This is a PUBLIC endpoint with no authentication.
|
|
989
|
+
*
|
|
990
|
+
*/
|
|
991
|
+
'testWebhookGet'(
|
|
992
|
+
parameters?: Parameters<Paths.TestWebhookGet.QueryParameters> | null,
|
|
993
|
+
data?: any,
|
|
994
|
+
config?: AxiosRequestConfig
|
|
995
|
+
): OperationResponse<Paths.TestWebhookGet.Responses.$200 | Paths.TestWebhookGet.Responses.$202>
|
|
996
|
+
/**
|
|
997
|
+
* testWebhookPost - Test Webhook (POST)
|
|
998
|
+
*
|
|
999
|
+
* Test endpoint for debugging Graph API webhook notifications via ngrok.
|
|
1000
|
+
* Logs all incoming webhook payloads for debugging purposes.
|
|
1001
|
+
* This is a PUBLIC endpoint with no authentication.
|
|
1002
|
+
*
|
|
1003
|
+
*/
|
|
1004
|
+
'testWebhookPost'(
|
|
1005
|
+
parameters?: Parameters<Paths.TestWebhookPost.QueryParameters> | null,
|
|
1006
|
+
data?: Paths.TestWebhookPost.RequestBody,
|
|
1007
|
+
config?: AxiosRequestConfig
|
|
1008
|
+
): OperationResponse<Paths.TestWebhookPost.Responses.$200 | Paths.TestWebhookPost.Responses.$202>
|
|
938
1009
|
/**
|
|
939
1010
|
* outlookOAuthCallback - Outlook OAuth callback
|
|
940
1011
|
*
|
|
@@ -1259,6 +1330,34 @@ export interface PathsDictionary {
|
|
|
1259
1330
|
config?: AxiosRequestConfig
|
|
1260
1331
|
): OperationResponse<Paths.GetSharedMailboxMappingById.Responses.$200>
|
|
1261
1332
|
}
|
|
1333
|
+
['/v2/outlook/test-webhook']: {
|
|
1334
|
+
/**
|
|
1335
|
+
* testWebhookGet - Test Webhook (GET)
|
|
1336
|
+
*
|
|
1337
|
+
* Test endpoint for debugging Graph API webhook notifications via ngrok.
|
|
1338
|
+
* Handles Microsoft Graph subscription validation requests by returning the validationToken.
|
|
1339
|
+
* This is a PUBLIC endpoint with no authentication.
|
|
1340
|
+
*
|
|
1341
|
+
*/
|
|
1342
|
+
'get'(
|
|
1343
|
+
parameters?: Parameters<Paths.TestWebhookGet.QueryParameters> | null,
|
|
1344
|
+
data?: any,
|
|
1345
|
+
config?: AxiosRequestConfig
|
|
1346
|
+
): OperationResponse<Paths.TestWebhookGet.Responses.$200 | Paths.TestWebhookGet.Responses.$202>
|
|
1347
|
+
/**
|
|
1348
|
+
* testWebhookPost - Test Webhook (POST)
|
|
1349
|
+
*
|
|
1350
|
+
* Test endpoint for debugging Graph API webhook notifications via ngrok.
|
|
1351
|
+
* Logs all incoming webhook payloads for debugging purposes.
|
|
1352
|
+
* This is a PUBLIC endpoint with no authentication.
|
|
1353
|
+
*
|
|
1354
|
+
*/
|
|
1355
|
+
'post'(
|
|
1356
|
+
parameters?: Parameters<Paths.TestWebhookPost.QueryParameters> | null,
|
|
1357
|
+
data?: Paths.TestWebhookPost.RequestBody,
|
|
1358
|
+
config?: AxiosRequestConfig
|
|
1359
|
+
): OperationResponse<Paths.TestWebhookPost.Responses.$200 | Paths.TestWebhookPost.Responses.$202>
|
|
1360
|
+
}
|
|
1262
1361
|
['/v2/outlook/oauth/callback']: {
|
|
1263
1362
|
/**
|
|
1264
1363
|
* outlookOAuthCallback - Outlook OAuth callback
|