@epilot/sdk 2.14.6 → 2.15.1
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/definitions/email-settings-runtime.json +1 -1
- package/definitions/email-settings.json +853 -16
- package/definitions/metering-runtime.json +1 -1
- package/definitions/metering.json +134 -7
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +8 -8
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +2 -2
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +8 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +2 -2
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-BEPK4SMV.cjs → chunk-3SG23C54.cjs} +4 -4
- package/dist/chunk-KHKNOPEX.js +14 -0
- package/dist/chunk-LE4OZS7T.js +14 -0
- package/dist/{chunk-YTG6MIEJ.js → chunk-TGKYRQMO.js} +4 -4
- package/dist/chunk-XNC4FWS2.cjs +14 -0
- package/dist/chunk-YNJPE3SS.cjs +14 -0
- package/dist/email-settings-ECSU7KWC.js +7 -0
- package/dist/email-settings-RHMYC2KT.cjs +7 -0
- package/dist/{email-settings-runtime-BXRZV4M5.js → email-settings-runtime-4BT72ADN.js} +1 -1
- package/dist/{email-settings-runtime-FWJQBQBK.cjs → email-settings-runtime-J7JLYDMU.cjs} +2 -2
- package/dist/{email-settings.d-UJ0C3jPI.d.cts → email-settings.d-CR4lORuR.d.cts} +721 -2
- package/dist/{email-settings.d-UJ0C3jPI.d.ts → email-settings.d-CR4lORuR.d.ts} +721 -2
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/metering-COO4BTOC.js +7 -0
- package/dist/metering-FJI2AU7Q.cjs +7 -0
- package/dist/{metering-runtime-7DPUSUYS.js → metering-runtime-HQ5F6R5M.js} +1 -1
- package/dist/{metering-runtime-VXOK3WJZ.cjs → metering-runtime-LSBYAJ6Z.cjs} +2 -2
- package/dist/{metering.d-DoC7rUbS.d.cts → metering.d-DomHYl06.d.cts} +133 -10
- package/dist/{metering.d-DoC7rUbS.d.ts → metering.d-DomHYl06.d.ts} +133 -10
- package/docs/email-settings.md +584 -1
- package/docs/metering.md +73 -21
- package/package.json +1 -1
- package/dist/chunk-2KZBLHTS.cjs +0 -14
- package/dist/chunk-K2F255B3.js +0 -14
- package/dist/chunk-KCPVNRDL.js +0 -14
- package/dist/chunk-YI5YGTAH.cjs +0 -14
- package/dist/email-settings-YJ4X5VFU.cjs +0 -7
- package/dist/email-settings-YUK3DXFJ.js +0 -7
- package/dist/metering-3K36TQ5Z.cjs +0 -7
- package/dist/metering-7T6NJRHT.js +0 -7
|
@@ -34,6 +34,43 @@ declare namespace Components {
|
|
|
34
34
|
export type UpdateSharedInboxSuccessResponse = /* Shared inbox configuration with all associated metadata. */ Schemas.SharedInboxResponse;
|
|
35
35
|
}
|
|
36
36
|
namespace Schemas {
|
|
37
|
+
export interface CalendarAdminConsentStatus {
|
|
38
|
+
/**
|
|
39
|
+
* True when the tenant admin has consented to epilot's Microsoft 365
|
|
40
|
+
* app, so users in this organization can connect personal calendars.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
admin_consented: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Microsoft admin-consent URL for an administrator to open. Present
|
|
46
|
+
* only when `admin_consented` is false.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
admin_consent_url?: string; // uri
|
|
50
|
+
}
|
|
51
|
+
export interface CalendarConnectionInfo {
|
|
52
|
+
/**
|
|
53
|
+
* Azure AD Object ID of the connected user
|
|
54
|
+
*/
|
|
55
|
+
user_id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Microsoft Azure AD tenant ID
|
|
58
|
+
*/
|
|
59
|
+
tenant_id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Token health for this calendar connection
|
|
62
|
+
*/
|
|
63
|
+
status: "connected" | "expired";
|
|
64
|
+
/**
|
|
65
|
+
* Granted permission scopes on the user's token
|
|
66
|
+
*/
|
|
67
|
+
scopes?: string[];
|
|
68
|
+
connected_by_display_name?: string;
|
|
69
|
+
connected_by_email?: string; // email
|
|
70
|
+
connected_at?: string; // date-time
|
|
71
|
+
updated_at?: string; // date-time
|
|
72
|
+
expires_at?: string; // date-time
|
|
73
|
+
}
|
|
37
74
|
/**
|
|
38
75
|
* Feature flags selecting which Microsoft Graph scopes to request.
|
|
39
76
|
* At least one flag must be true. Passing a superset of previously
|
|
@@ -49,6 +86,47 @@ declare namespace Components {
|
|
|
49
86
|
* Request 'calendar' specific scopes.
|
|
50
87
|
*/
|
|
51
88
|
calendar?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Optional same-origin frontend path to redirect to after the OAuth
|
|
91
|
+
* round-trip. Must start with a single "/" — protocol-relative
|
|
92
|
+
* and absolute URLs are rejected.
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
return_to?: string; // ^/[^/\\].*$
|
|
96
|
+
}
|
|
97
|
+
export interface ConnectSmtpSenderRequest {
|
|
98
|
+
/**
|
|
99
|
+
* Address to send from. Must be one the SMTP server accepts as a From.
|
|
100
|
+
*/
|
|
101
|
+
email: string; // email
|
|
102
|
+
/**
|
|
103
|
+
* SMTP connection to send through
|
|
104
|
+
*/
|
|
105
|
+
connection_id: string;
|
|
106
|
+
/**
|
|
107
|
+
* Sender name shown on outgoing messages.
|
|
108
|
+
*/
|
|
109
|
+
name?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Email address, or a `{{ env.your_key }}` template resolving to one.
|
|
112
|
+
*/
|
|
113
|
+
reply_to_email?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Shared inbox to associate with the address. Defaults to the default shared inbox.
|
|
116
|
+
*/
|
|
117
|
+
shared_inbox_id?: string;
|
|
118
|
+
/**
|
|
119
|
+
* User IDs for which this address should be available by default.
|
|
120
|
+
*/
|
|
121
|
+
user_ids?: string[];
|
|
122
|
+
/**
|
|
123
|
+
* Group IDs for which this address should be available by default.
|
|
124
|
+
*/
|
|
125
|
+
group_ids?: string[];
|
|
126
|
+
/**
|
|
127
|
+
* Default signature ID to use for this address.
|
|
128
|
+
*/
|
|
129
|
+
default_signature_id?: string;
|
|
52
130
|
}
|
|
53
131
|
/**
|
|
54
132
|
* Mapping between an Outlook email and its Outlook Connection.
|
|
@@ -160,6 +238,21 @@ declare namespace Components {
|
|
|
160
238
|
*/
|
|
161
239
|
description?: string;
|
|
162
240
|
}
|
|
241
|
+
export interface CreateSmtpConnectionRequest {
|
|
242
|
+
smtp_host: string;
|
|
243
|
+
smtp_port: number;
|
|
244
|
+
smtp_secure: "tls" | "starttls";
|
|
245
|
+
smtp_username: string;
|
|
246
|
+
/**
|
|
247
|
+
* May contain `{{ env.your_key }}` templates referencing the organization's
|
|
248
|
+
* environment variables (including secrets), resolved at send time. Stored as
|
|
249
|
+
* entered, so the settings UI edits the template rather than a resolved value.
|
|
250
|
+
*
|
|
251
|
+
* example:
|
|
252
|
+
* {{ env.smtp_password }}
|
|
253
|
+
*/
|
|
254
|
+
smtp_password: string;
|
|
255
|
+
}
|
|
163
256
|
/**
|
|
164
257
|
* Custom email domain configuration.
|
|
165
258
|
*/
|
|
@@ -331,6 +424,36 @@ declare namespace Components {
|
|
|
331
424
|
}
|
|
332
425
|
export type MailboxSyncStatuses = "RUNNING" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "FAILED" | "CANCELLED";
|
|
333
426
|
export type MailboxSyncTimeframePeriods = "5m" | "1w" | "2w" | "1m";
|
|
427
|
+
/**
|
|
428
|
+
* Per-user calendar connection metadata, or null when the caller has
|
|
429
|
+
* not connected their personal calendar yet.
|
|
430
|
+
*
|
|
431
|
+
*/
|
|
432
|
+
export interface MyCalendarConnectionResponse {
|
|
433
|
+
connection?: {
|
|
434
|
+
/**
|
|
435
|
+
* Azure AD Object ID of the connected user
|
|
436
|
+
*/
|
|
437
|
+
user_id: string;
|
|
438
|
+
/**
|
|
439
|
+
* Microsoft Azure AD tenant ID
|
|
440
|
+
*/
|
|
441
|
+
tenant_id: string;
|
|
442
|
+
/**
|
|
443
|
+
* Token health for this calendar connection
|
|
444
|
+
*/
|
|
445
|
+
status: "connected" | "expired";
|
|
446
|
+
/**
|
|
447
|
+
* Granted permission scopes on the user's token
|
|
448
|
+
*/
|
|
449
|
+
scopes?: string[];
|
|
450
|
+
connected_by_display_name?: string;
|
|
451
|
+
connected_by_email?: string; // email
|
|
452
|
+
connected_at?: string; // date-time
|
|
453
|
+
updated_at?: string; // date-time
|
|
454
|
+
expires_at?: string; // date-time
|
|
455
|
+
} | null;
|
|
456
|
+
}
|
|
334
457
|
export interface OutlookConnectionError {
|
|
335
458
|
/**
|
|
336
459
|
* Error code or message from the OAuth flow.
|
|
@@ -664,6 +787,83 @@ declare namespace Components {
|
|
|
664
787
|
* Setting that allows to add a signature.
|
|
665
788
|
*/
|
|
666
789
|
export type SignatureSetting = "signature";
|
|
790
|
+
export interface SmtpConnection {
|
|
791
|
+
/**
|
|
792
|
+
* Stable identifier for this SMTP connection
|
|
793
|
+
*/
|
|
794
|
+
connection_id: string;
|
|
795
|
+
/**
|
|
796
|
+
* Hostname of the SMTP server (e.g. smtp.mailgun.org)
|
|
797
|
+
*/
|
|
798
|
+
smtp_host: string;
|
|
799
|
+
/**
|
|
800
|
+
* SMTP port (typically 587 for STARTTLS or 465 for TLS)
|
|
801
|
+
*/
|
|
802
|
+
smtp_port: number;
|
|
803
|
+
/**
|
|
804
|
+
* Connection security mode. Plaintext SMTP is not offered: it would put the
|
|
805
|
+
* SMTP password on the wire in the clear.
|
|
806
|
+
* - tls: Implicit TLS (port 465)
|
|
807
|
+
* - starttls: STARTTLS upgrade (port 587)
|
|
808
|
+
*
|
|
809
|
+
*/
|
|
810
|
+
smtp_secure: "tls" | "starttls";
|
|
811
|
+
/**
|
|
812
|
+
* SMTP auth username
|
|
813
|
+
*/
|
|
814
|
+
smtp_username: string;
|
|
815
|
+
/**
|
|
816
|
+
* Only returned when the stored value is exactly one `{{ env.your_key }}`
|
|
817
|
+
* reference, which names a secret rather than being one — that lets the
|
|
818
|
+
* settings UI edit the reference without dropping it. A literal password, or a
|
|
819
|
+
* partly templated one, is omitted entirely: submit an update without this
|
|
820
|
+
* field to keep the stored value.
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
823
|
+
smtp_password?: string;
|
|
824
|
+
connected_by_display_name?: string;
|
|
825
|
+
connected_by_email?: string; // email
|
|
826
|
+
connected_by_user_id?: string;
|
|
827
|
+
connected_at?: string; // date-time
|
|
828
|
+
updated_at?: string; // date-time
|
|
829
|
+
last_tested_at?: string; // date-time
|
|
830
|
+
last_test_status?: "ok" | "auth_failed" | "tls_failed" | "host_unreachable" | "timeout" | "secret_missing" | "unknown";
|
|
831
|
+
/**
|
|
832
|
+
* Latest test error message, if any
|
|
833
|
+
*/
|
|
834
|
+
last_test_error?: string;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* An address allowed to send through a custom SMTP connection. Mirrors an Outlook
|
|
838
|
+
* mailbox: the address, its display name and its assignees live on the shared
|
|
839
|
+
* email-address record, while this row binds it to a set of SMTP credentials.
|
|
840
|
+
*
|
|
841
|
+
*/
|
|
842
|
+
export interface SmtpSender {
|
|
843
|
+
/**
|
|
844
|
+
* The sender address. Stored lower-cased.
|
|
845
|
+
*/
|
|
846
|
+
email: string; // email
|
|
847
|
+
/**
|
|
848
|
+
* SMTP connection this address sends through
|
|
849
|
+
*/
|
|
850
|
+
connection_id: string;
|
|
851
|
+
/**
|
|
852
|
+
* Default Reply-To for messages from this address. Custom SMTP is send-only, so
|
|
853
|
+
* point this at a mailbox someone actually monitors. May contain a
|
|
854
|
+
* `{{ env.your_key }}` template, so this is not constrained to `format: email`.
|
|
855
|
+
* A per-message Reply-To still wins.
|
|
856
|
+
*
|
|
857
|
+
*/
|
|
858
|
+
reply_to_email?: string;
|
|
859
|
+
connected_at?: string; // date-time
|
|
860
|
+
connected_by_user_id?: string;
|
|
861
|
+
}
|
|
862
|
+
export interface SmtpTestResult {
|
|
863
|
+
status: "ok" | "auth_failed" | "tls_failed" | "host_unreachable" | "timeout" | "secret_missing" | "unknown";
|
|
864
|
+
error?: string;
|
|
865
|
+
tested_at: string; // date-time
|
|
866
|
+
}
|
|
667
867
|
/**
|
|
668
868
|
* Request payload for updating an email address configuration.
|
|
669
869
|
* All fields are optional; only provided fields will be updated.
|
|
@@ -746,6 +946,16 @@ declare namespace Components {
|
|
|
746
946
|
*/
|
|
747
947
|
description?: string;
|
|
748
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* Partial update; omitted fields keep their existing values.
|
|
951
|
+
*/
|
|
952
|
+
export interface UpdateSmtpConnectionRequest {
|
|
953
|
+
smtp_host?: string;
|
|
954
|
+
smtp_port?: number;
|
|
955
|
+
smtp_secure?: "tls" | "starttls";
|
|
956
|
+
smtp_username?: string;
|
|
957
|
+
smtp_password?: string;
|
|
958
|
+
}
|
|
749
959
|
/**
|
|
750
960
|
* - Setting that specifies a list of addresses exempt from being flagged as duplicate emails.
|
|
751
961
|
* - An email will be flagged as a duplicate if it has the same content and is sent to the same recipient within the time frame specified in the RestrictDuplicatesWithinSetting.
|
|
@@ -838,6 +1048,22 @@ declare namespace Paths {
|
|
|
838
1048
|
* Shared inbox ID to associate with the mailbox. Defaults to the default shared inbox.
|
|
839
1049
|
*/
|
|
840
1050
|
shared_inbox_id?: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* Sender name to use for the Outlook mailbox email address.
|
|
1053
|
+
*/
|
|
1054
|
+
name?: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* User IDs for which this email address should be available by default.
|
|
1057
|
+
*/
|
|
1058
|
+
user_ids?: string[];
|
|
1059
|
+
/**
|
|
1060
|
+
* Group IDs for which this email address should be available by default.
|
|
1061
|
+
*/
|
|
1062
|
+
group_ids?: string[];
|
|
1063
|
+
/**
|
|
1064
|
+
* Default signature ID to use for this Outlook mailbox email address.
|
|
1065
|
+
*/
|
|
1066
|
+
default_signature_id?: string;
|
|
841
1067
|
/**
|
|
842
1068
|
* Optional timeframe for initial mailbox sync. When provided, triggers an automatic
|
|
843
1069
|
* mailbox sync after connecting the mailbox, syncing emails from the specified period.
|
|
@@ -873,6 +1099,40 @@ declare namespace Paths {
|
|
|
873
1099
|
}
|
|
874
1100
|
}
|
|
875
1101
|
}
|
|
1102
|
+
namespace ConnectSmtpSender {
|
|
1103
|
+
export type RequestBody = Components.Schemas.ConnectSmtpSenderRequest;
|
|
1104
|
+
namespace Responses {
|
|
1105
|
+
export interface $201 {
|
|
1106
|
+
email_address: /* Email address configuration with all associated metadata. */ Components.Schemas.EmailAddressResponse;
|
|
1107
|
+
sender: /**
|
|
1108
|
+
* An address allowed to send through a custom SMTP connection. Mirrors an Outlook
|
|
1109
|
+
* mailbox: the address, its display name and its assignees live on the shared
|
|
1110
|
+
* email-address record, while this row binds it to a set of SMTP credentials.
|
|
1111
|
+
*
|
|
1112
|
+
*/
|
|
1113
|
+
Components.Schemas.SmtpSender;
|
|
1114
|
+
}
|
|
1115
|
+
export interface $400 {
|
|
1116
|
+
}
|
|
1117
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1118
|
+
export interface $404 {
|
|
1119
|
+
}
|
|
1120
|
+
export interface $409 {
|
|
1121
|
+
}
|
|
1122
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
namespace CreateSmtpConnection {
|
|
1126
|
+
export type RequestBody = Components.Schemas.CreateSmtpConnectionRequest;
|
|
1127
|
+
namespace Responses {
|
|
1128
|
+
export type $201 = Components.Schemas.SmtpConnection;
|
|
1129
|
+
export interface $400 {
|
|
1130
|
+
}
|
|
1131
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1132
|
+
export type $409 = Components.Responses.Conflict;
|
|
1133
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
876
1136
|
namespace DeleteDomain {
|
|
877
1137
|
export type RequestBody = /* Custom email domain configuration. */ Components.Schemas.Domain;
|
|
878
1138
|
namespace Responses {
|
|
@@ -940,6 +1200,16 @@ declare namespace Paths {
|
|
|
940
1200
|
export type $500 = Components.Responses.InternalServerError;
|
|
941
1201
|
}
|
|
942
1202
|
}
|
|
1203
|
+
namespace DeleteSmtpConnection {
|
|
1204
|
+
namespace Responses {
|
|
1205
|
+
export interface $200 {
|
|
1206
|
+
success?: boolean;
|
|
1207
|
+
connection_id?: string;
|
|
1208
|
+
}
|
|
1209
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1210
|
+
export type $404 = Components.Responses.NotFound;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
943
1213
|
namespace DisconnectMsTeams {
|
|
944
1214
|
namespace Responses {
|
|
945
1215
|
export interface $200 {
|
|
@@ -947,6 +1217,16 @@ declare namespace Paths {
|
|
|
947
1217
|
}
|
|
948
1218
|
}
|
|
949
1219
|
}
|
|
1220
|
+
namespace DisconnectMyCalendar {
|
|
1221
|
+
namespace Responses {
|
|
1222
|
+
export interface $204 {
|
|
1223
|
+
}
|
|
1224
|
+
export interface $404 {
|
|
1225
|
+
}
|
|
1226
|
+
export interface $500 {
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
950
1230
|
namespace DisconnectOutlook {
|
|
951
1231
|
export interface RequestBody {
|
|
952
1232
|
/**
|
|
@@ -995,6 +1275,26 @@ declare namespace Paths {
|
|
|
995
1275
|
}
|
|
996
1276
|
}
|
|
997
1277
|
}
|
|
1278
|
+
namespace DisconnectSmtpSender {
|
|
1279
|
+
namespace Responses {
|
|
1280
|
+
export interface $200 {
|
|
1281
|
+
success: boolean;
|
|
1282
|
+
email: string; // email
|
|
1283
|
+
}
|
|
1284
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1285
|
+
export type $404 = Components.Responses.NotFound;
|
|
1286
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
namespace GetCalendarAdminConsentStatus {
|
|
1290
|
+
namespace Responses {
|
|
1291
|
+
export type $200 = Components.Schemas.CalendarAdminConsentStatus;
|
|
1292
|
+
export interface $401 {
|
|
1293
|
+
}
|
|
1294
|
+
export interface $500 {
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
998
1298
|
namespace GetConnectedOutlookEmails {
|
|
999
1299
|
namespace Responses {
|
|
1000
1300
|
export interface $200 {
|
|
@@ -1069,6 +1369,20 @@ declare namespace Paths {
|
|
|
1069
1369
|
}
|
|
1070
1370
|
}
|
|
1071
1371
|
}
|
|
1372
|
+
namespace GetMyCalendarConnection {
|
|
1373
|
+
namespace Responses {
|
|
1374
|
+
export type $200 = /**
|
|
1375
|
+
* Per-user calendar connection metadata, or null when the caller has
|
|
1376
|
+
* not connected their personal calendar yet.
|
|
1377
|
+
*
|
|
1378
|
+
*/
|
|
1379
|
+
Components.Schemas.MyCalendarConnectionResponse;
|
|
1380
|
+
export interface $401 {
|
|
1381
|
+
}
|
|
1382
|
+
export interface $500 {
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1072
1386
|
namespace GetOutlookConnectionStatus {
|
|
1073
1387
|
namespace Responses {
|
|
1074
1388
|
export interface $200 {
|
|
@@ -1120,6 +1434,13 @@ declare namespace Paths {
|
|
|
1120
1434
|
export type $500 = Components.Responses.InternalServerError;
|
|
1121
1435
|
}
|
|
1122
1436
|
}
|
|
1437
|
+
namespace GetSmtpConnection {
|
|
1438
|
+
namespace Responses {
|
|
1439
|
+
export type $200 = Components.Schemas.SmtpConnection;
|
|
1440
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1441
|
+
export type $404 = Components.Responses.NotFound;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1123
1444
|
namespace ListEmailAddresses {
|
|
1124
1445
|
namespace Responses {
|
|
1125
1446
|
export type $200 = Components.Responses.ListEmailAddressesSuccessResponse;
|
|
@@ -1141,10 +1462,36 @@ declare namespace Paths {
|
|
|
1141
1462
|
export type $500 = Components.Responses.InternalServerError;
|
|
1142
1463
|
}
|
|
1143
1464
|
}
|
|
1465
|
+
namespace ListSmtpConnections {
|
|
1466
|
+
namespace Responses {
|
|
1467
|
+
export interface $200 {
|
|
1468
|
+
connections: Components.Schemas.SmtpConnection[];
|
|
1469
|
+
has_connections: boolean;
|
|
1470
|
+
}
|
|
1471
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1472
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
namespace ListSmtpSenders {
|
|
1476
|
+
namespace Responses {
|
|
1477
|
+
export interface $200 {
|
|
1478
|
+
senders: /**
|
|
1479
|
+
* An address allowed to send through a custom SMTP connection. Mirrors an Outlook
|
|
1480
|
+
* mailbox: the address, its display name and its assignees live on the shared
|
|
1481
|
+
* email-address record, while this row binds it to a set of SMTP credentials.
|
|
1482
|
+
*
|
|
1483
|
+
*/
|
|
1484
|
+
Components.Schemas.SmtpSender[];
|
|
1485
|
+
}
|
|
1486
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1487
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1144
1490
|
namespace OutlookOAuthCallback {
|
|
1145
1491
|
namespace Parameters {
|
|
1146
1492
|
export type AdminConsent = string;
|
|
1147
1493
|
export type ClientInfo = string;
|
|
1494
|
+
export type Clientdata = string;
|
|
1148
1495
|
export type Code = string;
|
|
1149
1496
|
export type Error = string;
|
|
1150
1497
|
export type ErrorDescription = string;
|
|
@@ -1165,6 +1512,7 @@ declare namespace Paths {
|
|
|
1165
1512
|
error_uri?: Parameters.ErrorUri;
|
|
1166
1513
|
admin_consent?: Parameters.AdminConsent;
|
|
1167
1514
|
tenant?: Parameters.Tenant;
|
|
1515
|
+
clientdata?: Parameters.Clientdata;
|
|
1168
1516
|
}
|
|
1169
1517
|
namespace Responses {
|
|
1170
1518
|
export interface $200 {
|
|
@@ -1249,7 +1597,7 @@ declare namespace Paths {
|
|
|
1249
1597
|
* - 1m: 1 month
|
|
1250
1598
|
*
|
|
1251
1599
|
*/
|
|
1252
|
-
timeframe:
|
|
1600
|
+
timeframe: "5m" | "1w" | "2w" | "1m";
|
|
1253
1601
|
}
|
|
1254
1602
|
namespace Responses {
|
|
1255
1603
|
export interface $202 {
|
|
@@ -1270,6 +1618,13 @@ declare namespace Paths {
|
|
|
1270
1618
|
}
|
|
1271
1619
|
}
|
|
1272
1620
|
}
|
|
1621
|
+
namespace TestSmtpConnection {
|
|
1622
|
+
namespace Responses {
|
|
1623
|
+
export type $200 = Components.Schemas.SmtpTestResult;
|
|
1624
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1625
|
+
export type $404 = Components.Responses.NotFound;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1273
1628
|
namespace UpdateEmailAddress {
|
|
1274
1629
|
namespace Parameters {
|
|
1275
1630
|
export type Id = string;
|
|
@@ -1346,6 +1701,41 @@ declare namespace Paths {
|
|
|
1346
1701
|
export type $500 = Components.Responses.InternalServerError;
|
|
1347
1702
|
}
|
|
1348
1703
|
}
|
|
1704
|
+
namespace UpdateSmtpConnection {
|
|
1705
|
+
export type RequestBody = /* Partial update; omitted fields keep their existing values. */ Components.Schemas.UpdateSmtpConnectionRequest;
|
|
1706
|
+
namespace Responses {
|
|
1707
|
+
export type $200 = Components.Schemas.SmtpConnection;
|
|
1708
|
+
export interface $400 {
|
|
1709
|
+
}
|
|
1710
|
+
export type $403 = Components.Responses.Forbidden;
|
|
1711
|
+
export type $404 = Components.Responses.NotFound;
|
|
1712
|
+
export type $409 = Components.Responses.Conflict;
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
namespace V2SmtpConnections$ConnectionId {
|
|
1716
|
+
namespace Parameters {
|
|
1717
|
+
export type ConnectionId = string;
|
|
1718
|
+
}
|
|
1719
|
+
export interface PathParameters {
|
|
1720
|
+
connectionId: Parameters.ConnectionId;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
namespace V2SmtpConnections$ConnectionIdTest {
|
|
1724
|
+
namespace Parameters {
|
|
1725
|
+
export type ConnectionId = string;
|
|
1726
|
+
}
|
|
1727
|
+
export interface PathParameters {
|
|
1728
|
+
connectionId: Parameters.ConnectionId;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
namespace V2SmtpSenders$Email {
|
|
1732
|
+
namespace Parameters {
|
|
1733
|
+
export type Email = string; // email
|
|
1734
|
+
}
|
|
1735
|
+
export interface PathParameters {
|
|
1736
|
+
email: Parameters.Email /* email */;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1349
1739
|
namespace VerifyDnsRecords {
|
|
1350
1740
|
export type RequestBody = /* Custom email domain configuration. */ Components.Schemas.Domain;
|
|
1351
1741
|
namespace Responses {
|
|
@@ -1601,6 +1991,54 @@ interface OperationMethods {
|
|
|
1601
1991
|
data?: any,
|
|
1602
1992
|
config?: AxiosRequestConfig
|
|
1603
1993
|
): OperationResponse<Paths.GetOutlookConnectionStatus.Responses.$200>
|
|
1994
|
+
/**
|
|
1995
|
+
* getCalendarAdminConsentStatus - getCalendarAdminConsentStatus
|
|
1996
|
+
*
|
|
1997
|
+
* Reports whether the caller's organization can connect personal Outlook
|
|
1998
|
+
* calendars.
|
|
1999
|
+
*
|
|
2000
|
+
* Connecting a personal calendar requires the tenant admin to have
|
|
2001
|
+
* consented to epilot's Microsoft 365 app. That consent is tenant-wide,
|
|
2002
|
+
* one-time, and granted for the full scope set (mail + calendar), so the
|
|
2003
|
+
* org-level Outlook connection set up during onboarding is the gate.
|
|
2004
|
+
*
|
|
2005
|
+
* When consent is missing the response includes `admin_consent_url` for
|
|
2006
|
+
* the admin to open, and the UI should ask the user to involve their IT
|
|
2007
|
+
* instead of starting an OAuth flow that would fail.
|
|
2008
|
+
*
|
|
2009
|
+
*/
|
|
2010
|
+
'getCalendarAdminConsentStatus'(
|
|
2011
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2012
|
+
data?: any,
|
|
2013
|
+
config?: AxiosRequestConfig
|
|
2014
|
+
): OperationResponse<Paths.GetCalendarAdminConsentStatus.Responses.$200>
|
|
2015
|
+
/**
|
|
2016
|
+
* getMyCalendarConnection - getMyCalendarConnection
|
|
2017
|
+
*
|
|
2018
|
+
* Returns the calling user's personal Outlook calendar connection,
|
|
2019
|
+
* or null when the user hasn't connected yet.
|
|
2020
|
+
*
|
|
2021
|
+
* Per-user calendar connections are distinct from the org-level
|
|
2022
|
+
* shared-mailbox connection (`/v2/outlook/connection/status`): each
|
|
2023
|
+
* user connects their own delegated token because reading user A's
|
|
2024
|
+
* calendar requires user A's consent.
|
|
2025
|
+
*
|
|
2026
|
+
*/
|
|
2027
|
+
'getMyCalendarConnection'(
|
|
2028
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2029
|
+
data?: any,
|
|
2030
|
+
config?: AxiosRequestConfig
|
|
2031
|
+
): OperationResponse<Paths.GetMyCalendarConnection.Responses.$200>
|
|
2032
|
+
/**
|
|
2033
|
+
* disconnectMyCalendar - disconnectMyCalendar
|
|
2034
|
+
*
|
|
2035
|
+
* Removes the calling user's personal calendar connection.
|
|
2036
|
+
*/
|
|
2037
|
+
'disconnectMyCalendar'(
|
|
2038
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2039
|
+
data?: any,
|
|
2040
|
+
config?: AxiosRequestConfig
|
|
2041
|
+
): OperationResponse<Paths.DisconnectMyCalendar.Responses.$204>
|
|
1604
2042
|
/**
|
|
1605
2043
|
* disconnectOutlook - disconnectOutlook
|
|
1606
2044
|
*
|
|
@@ -1722,6 +2160,111 @@ interface OperationMethods {
|
|
|
1722
2160
|
data?: any,
|
|
1723
2161
|
config?: AxiosRequestConfig
|
|
1724
2162
|
): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
|
|
2163
|
+
/**
|
|
2164
|
+
* listSmtpConnections - listSmtpConnections
|
|
2165
|
+
*
|
|
2166
|
+
* Returns all custom SMTP connections configured for the organization.
|
|
2167
|
+
* Passwords are never returned.
|
|
2168
|
+
*
|
|
2169
|
+
*/
|
|
2170
|
+
'listSmtpConnections'(
|
|
2171
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2172
|
+
data?: any,
|
|
2173
|
+
config?: AxiosRequestConfig
|
|
2174
|
+
): OperationResponse<Paths.ListSmtpConnections.Responses.$200>
|
|
2175
|
+
/**
|
|
2176
|
+
* createSmtpConnection - createSmtpConnection
|
|
2177
|
+
*
|
|
2178
|
+
* Creates a new custom SMTP connection. Runs a live verify against the SMTP server
|
|
2179
|
+
* before persisting; on failure the request is rejected and nothing is saved.
|
|
2180
|
+
* The password is encrypted via KMS before being written to DynamoDB.
|
|
2181
|
+
*
|
|
2182
|
+
*/
|
|
2183
|
+
'createSmtpConnection'(
|
|
2184
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2185
|
+
data?: Paths.CreateSmtpConnection.RequestBody,
|
|
2186
|
+
config?: AxiosRequestConfig
|
|
2187
|
+
): OperationResponse<Paths.CreateSmtpConnection.Responses.$201>
|
|
2188
|
+
/**
|
|
2189
|
+
* getSmtpConnection - getSmtpConnection
|
|
2190
|
+
*
|
|
2191
|
+
* Returns a single custom SMTP connection by id. The password is never returned.
|
|
2192
|
+
*/
|
|
2193
|
+
'getSmtpConnection'(
|
|
2194
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2195
|
+
data?: any,
|
|
2196
|
+
config?: AxiosRequestConfig
|
|
2197
|
+
): OperationResponse<Paths.GetSmtpConnection.Responses.$200>
|
|
2198
|
+
/**
|
|
2199
|
+
* updateSmtpConnection - updateSmtpConnection
|
|
2200
|
+
*
|
|
2201
|
+
* Partial update; omitted fields keep their existing values. The merged
|
|
2202
|
+
* configuration is verified against the SMTP server before persisting.
|
|
2203
|
+
*
|
|
2204
|
+
*/
|
|
2205
|
+
'updateSmtpConnection'(
|
|
2206
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2207
|
+
data?: Paths.UpdateSmtpConnection.RequestBody,
|
|
2208
|
+
config?: AxiosRequestConfig
|
|
2209
|
+
): OperationResponse<Paths.UpdateSmtpConnection.Responses.$200>
|
|
2210
|
+
/**
|
|
2211
|
+
* deleteSmtpConnection - deleteSmtpConnection
|
|
2212
|
+
*
|
|
2213
|
+
* Deletes a custom SMTP connection. Messages already sent are unaffected.
|
|
2214
|
+
*/
|
|
2215
|
+
'deleteSmtpConnection'(
|
|
2216
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2217
|
+
data?: any,
|
|
2218
|
+
config?: AxiosRequestConfig
|
|
2219
|
+
): OperationResponse<Paths.DeleteSmtpConnection.Responses.$200>
|
|
2220
|
+
/**
|
|
2221
|
+
* testSmtpConnection - testSmtpConnection
|
|
2222
|
+
*
|
|
2223
|
+
* Re-runs a live SMTP verify against the saved configuration (EHLO + AUTH + NOOP + QUIT)
|
|
2224
|
+
* and updates `last_test_status` / `last_tested_at` on the connection.
|
|
2225
|
+
*
|
|
2226
|
+
*/
|
|
2227
|
+
'testSmtpConnection'(
|
|
2228
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionIdTest.PathParameters> | null,
|
|
2229
|
+
data?: any,
|
|
2230
|
+
config?: AxiosRequestConfig
|
|
2231
|
+
): OperationResponse<Paths.TestSmtpConnection.Responses.$200>
|
|
2232
|
+
/**
|
|
2233
|
+
* listSmtpSenders - listSmtpSenders
|
|
2234
|
+
*
|
|
2235
|
+
* Returns every address registered to send through a custom SMTP connection.
|
|
2236
|
+
*/
|
|
2237
|
+
'listSmtpSenders'(
|
|
2238
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2239
|
+
data?: any,
|
|
2240
|
+
config?: AxiosRequestConfig
|
|
2241
|
+
): OperationResponse<Paths.ListSmtpSenders.Responses.$200>
|
|
2242
|
+
/**
|
|
2243
|
+
* connectSmtpSender - connectSmtpSender
|
|
2244
|
+
*
|
|
2245
|
+
* Registers an address as a sender on a custom SMTP connection:
|
|
2246
|
+
* 1. Creates the email address so it can be picked in the composer
|
|
2247
|
+
* 2. Binds it to the connection, so outgoing mail from it is routed there
|
|
2248
|
+
* The SMTP server still has the final say on which From addresses it accepts.
|
|
2249
|
+
*
|
|
2250
|
+
*/
|
|
2251
|
+
'connectSmtpSender'(
|
|
2252
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2253
|
+
data?: Paths.ConnectSmtpSender.RequestBody,
|
|
2254
|
+
config?: AxiosRequestConfig
|
|
2255
|
+
): OperationResponse<Paths.ConnectSmtpSender.Responses.$201>
|
|
2256
|
+
/**
|
|
2257
|
+
* disconnectSmtpSender - disconnectSmtpSender
|
|
2258
|
+
*
|
|
2259
|
+
* Removes a sender address: deletes the email address and its binding to the SMTP
|
|
2260
|
+
* connection. The connection itself and messages already sent are unaffected.
|
|
2261
|
+
*
|
|
2262
|
+
*/
|
|
2263
|
+
'disconnectSmtpSender'(
|
|
2264
|
+
parameters?: Parameters<Paths.V2SmtpSenders$Email.PathParameters> | null,
|
|
2265
|
+
data?: any,
|
|
2266
|
+
config?: AxiosRequestConfig
|
|
2267
|
+
): OperationResponse<Paths.DisconnectSmtpSender.Responses.$200>
|
|
1725
2268
|
/**
|
|
1726
2269
|
* outlookOAuthCallback - outlookOAuthCallback
|
|
1727
2270
|
*
|
|
@@ -2147,6 +2690,58 @@ interface PathsDictionary {
|
|
|
2147
2690
|
config?: AxiosRequestConfig
|
|
2148
2691
|
): OperationResponse<Paths.GetOutlookConnectionStatus.Responses.$200>
|
|
2149
2692
|
}
|
|
2693
|
+
['/v2/outlook/calendar/admin-consent-status']: {
|
|
2694
|
+
/**
|
|
2695
|
+
* getCalendarAdminConsentStatus - getCalendarAdminConsentStatus
|
|
2696
|
+
*
|
|
2697
|
+
* Reports whether the caller's organization can connect personal Outlook
|
|
2698
|
+
* calendars.
|
|
2699
|
+
*
|
|
2700
|
+
* Connecting a personal calendar requires the tenant admin to have
|
|
2701
|
+
* consented to epilot's Microsoft 365 app. That consent is tenant-wide,
|
|
2702
|
+
* one-time, and granted for the full scope set (mail + calendar), so the
|
|
2703
|
+
* org-level Outlook connection set up during onboarding is the gate.
|
|
2704
|
+
*
|
|
2705
|
+
* When consent is missing the response includes `admin_consent_url` for
|
|
2706
|
+
* the admin to open, and the UI should ask the user to involve their IT
|
|
2707
|
+
* instead of starting an OAuth flow that would fail.
|
|
2708
|
+
*
|
|
2709
|
+
*/
|
|
2710
|
+
'get'(
|
|
2711
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2712
|
+
data?: any,
|
|
2713
|
+
config?: AxiosRequestConfig
|
|
2714
|
+
): OperationResponse<Paths.GetCalendarAdminConsentStatus.Responses.$200>
|
|
2715
|
+
}
|
|
2716
|
+
['/v2/outlook/calendar/me']: {
|
|
2717
|
+
/**
|
|
2718
|
+
* getMyCalendarConnection - getMyCalendarConnection
|
|
2719
|
+
*
|
|
2720
|
+
* Returns the calling user's personal Outlook calendar connection,
|
|
2721
|
+
* or null when the user hasn't connected yet.
|
|
2722
|
+
*
|
|
2723
|
+
* Per-user calendar connections are distinct from the org-level
|
|
2724
|
+
* shared-mailbox connection (`/v2/outlook/connection/status`): each
|
|
2725
|
+
* user connects their own delegated token because reading user A's
|
|
2726
|
+
* calendar requires user A's consent.
|
|
2727
|
+
*
|
|
2728
|
+
*/
|
|
2729
|
+
'get'(
|
|
2730
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2731
|
+
data?: any,
|
|
2732
|
+
config?: AxiosRequestConfig
|
|
2733
|
+
): OperationResponse<Paths.GetMyCalendarConnection.Responses.$200>
|
|
2734
|
+
/**
|
|
2735
|
+
* disconnectMyCalendar - disconnectMyCalendar
|
|
2736
|
+
*
|
|
2737
|
+
* Removes the calling user's personal calendar connection.
|
|
2738
|
+
*/
|
|
2739
|
+
'delete'(
|
|
2740
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2741
|
+
data?: any,
|
|
2742
|
+
config?: AxiosRequestConfig
|
|
2743
|
+
): OperationResponse<Paths.DisconnectMyCalendar.Responses.$204>
|
|
2744
|
+
}
|
|
2150
2745
|
['/v2/outlook/connection/disconnect']: {
|
|
2151
2746
|
/**
|
|
2152
2747
|
* disconnectOutlook - disconnectOutlook
|
|
@@ -2288,6 +2883,121 @@ interface PathsDictionary {
|
|
|
2288
2883
|
config?: AxiosRequestConfig
|
|
2289
2884
|
): OperationResponse<Paths.GetConnectedOutlookEmails.Responses.$200>
|
|
2290
2885
|
}
|
|
2886
|
+
['/v2/smtp/connections']: {
|
|
2887
|
+
/**
|
|
2888
|
+
* listSmtpConnections - listSmtpConnections
|
|
2889
|
+
*
|
|
2890
|
+
* Returns all custom SMTP connections configured for the organization.
|
|
2891
|
+
* Passwords are never returned.
|
|
2892
|
+
*
|
|
2893
|
+
*/
|
|
2894
|
+
'get'(
|
|
2895
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2896
|
+
data?: any,
|
|
2897
|
+
config?: AxiosRequestConfig
|
|
2898
|
+
): OperationResponse<Paths.ListSmtpConnections.Responses.$200>
|
|
2899
|
+
/**
|
|
2900
|
+
* createSmtpConnection - createSmtpConnection
|
|
2901
|
+
*
|
|
2902
|
+
* Creates a new custom SMTP connection. Runs a live verify against the SMTP server
|
|
2903
|
+
* before persisting; on failure the request is rejected and nothing is saved.
|
|
2904
|
+
* The password is encrypted via KMS before being written to DynamoDB.
|
|
2905
|
+
*
|
|
2906
|
+
*/
|
|
2907
|
+
'post'(
|
|
2908
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2909
|
+
data?: Paths.CreateSmtpConnection.RequestBody,
|
|
2910
|
+
config?: AxiosRequestConfig
|
|
2911
|
+
): OperationResponse<Paths.CreateSmtpConnection.Responses.$201>
|
|
2912
|
+
}
|
|
2913
|
+
['/v2/smtp/connections/{connectionId}']: {
|
|
2914
|
+
/**
|
|
2915
|
+
* getSmtpConnection - getSmtpConnection
|
|
2916
|
+
*
|
|
2917
|
+
* Returns a single custom SMTP connection by id. The password is never returned.
|
|
2918
|
+
*/
|
|
2919
|
+
'get'(
|
|
2920
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2921
|
+
data?: any,
|
|
2922
|
+
config?: AxiosRequestConfig
|
|
2923
|
+
): OperationResponse<Paths.GetSmtpConnection.Responses.$200>
|
|
2924
|
+
/**
|
|
2925
|
+
* updateSmtpConnection - updateSmtpConnection
|
|
2926
|
+
*
|
|
2927
|
+
* Partial update; omitted fields keep their existing values. The merged
|
|
2928
|
+
* configuration is verified against the SMTP server before persisting.
|
|
2929
|
+
*
|
|
2930
|
+
*/
|
|
2931
|
+
'put'(
|
|
2932
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2933
|
+
data?: Paths.UpdateSmtpConnection.RequestBody,
|
|
2934
|
+
config?: AxiosRequestConfig
|
|
2935
|
+
): OperationResponse<Paths.UpdateSmtpConnection.Responses.$200>
|
|
2936
|
+
/**
|
|
2937
|
+
* deleteSmtpConnection - deleteSmtpConnection
|
|
2938
|
+
*
|
|
2939
|
+
* Deletes a custom SMTP connection. Messages already sent are unaffected.
|
|
2940
|
+
*/
|
|
2941
|
+
'delete'(
|
|
2942
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionId.PathParameters> | null,
|
|
2943
|
+
data?: any,
|
|
2944
|
+
config?: AxiosRequestConfig
|
|
2945
|
+
): OperationResponse<Paths.DeleteSmtpConnection.Responses.$200>
|
|
2946
|
+
}
|
|
2947
|
+
['/v2/smtp/connections/{connectionId}/test']: {
|
|
2948
|
+
/**
|
|
2949
|
+
* testSmtpConnection - testSmtpConnection
|
|
2950
|
+
*
|
|
2951
|
+
* Re-runs a live SMTP verify against the saved configuration (EHLO + AUTH + NOOP + QUIT)
|
|
2952
|
+
* and updates `last_test_status` / `last_tested_at` on the connection.
|
|
2953
|
+
*
|
|
2954
|
+
*/
|
|
2955
|
+
'post'(
|
|
2956
|
+
parameters?: Parameters<Paths.V2SmtpConnections$ConnectionIdTest.PathParameters> | null,
|
|
2957
|
+
data?: any,
|
|
2958
|
+
config?: AxiosRequestConfig
|
|
2959
|
+
): OperationResponse<Paths.TestSmtpConnection.Responses.$200>
|
|
2960
|
+
}
|
|
2961
|
+
['/v2/smtp/senders']: {
|
|
2962
|
+
/**
|
|
2963
|
+
* listSmtpSenders - listSmtpSenders
|
|
2964
|
+
*
|
|
2965
|
+
* Returns every address registered to send through a custom SMTP connection.
|
|
2966
|
+
*/
|
|
2967
|
+
'get'(
|
|
2968
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2969
|
+
data?: any,
|
|
2970
|
+
config?: AxiosRequestConfig
|
|
2971
|
+
): OperationResponse<Paths.ListSmtpSenders.Responses.$200>
|
|
2972
|
+
/**
|
|
2973
|
+
* connectSmtpSender - connectSmtpSender
|
|
2974
|
+
*
|
|
2975
|
+
* Registers an address as a sender on a custom SMTP connection:
|
|
2976
|
+
* 1. Creates the email address so it can be picked in the composer
|
|
2977
|
+
* 2. Binds it to the connection, so outgoing mail from it is routed there
|
|
2978
|
+
* The SMTP server still has the final say on which From addresses it accepts.
|
|
2979
|
+
*
|
|
2980
|
+
*/
|
|
2981
|
+
'post'(
|
|
2982
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2983
|
+
data?: Paths.ConnectSmtpSender.RequestBody,
|
|
2984
|
+
config?: AxiosRequestConfig
|
|
2985
|
+
): OperationResponse<Paths.ConnectSmtpSender.Responses.$201>
|
|
2986
|
+
}
|
|
2987
|
+
['/v2/smtp/senders/{email}']: {
|
|
2988
|
+
/**
|
|
2989
|
+
* disconnectSmtpSender - disconnectSmtpSender
|
|
2990
|
+
*
|
|
2991
|
+
* Removes a sender address: deletes the email address and its binding to the SMTP
|
|
2992
|
+
* connection. The connection itself and messages already sent are unaffected.
|
|
2993
|
+
*
|
|
2994
|
+
*/
|
|
2995
|
+
'delete'(
|
|
2996
|
+
parameters?: Parameters<Paths.V2SmtpSenders$Email.PathParameters> | null,
|
|
2997
|
+
data?: any,
|
|
2998
|
+
config?: AxiosRequestConfig
|
|
2999
|
+
): OperationResponse<Paths.DisconnectSmtpSender.Responses.$200>
|
|
3000
|
+
}
|
|
2291
3001
|
['/v2/outlook/oauth/callback']: {
|
|
2292
3002
|
/**
|
|
2293
3003
|
* outlookOAuthCallback - outlookOAuthCallback
|
|
@@ -2484,10 +3194,14 @@ interface PathsDictionary {
|
|
|
2484
3194
|
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
2485
3195
|
|
|
2486
3196
|
|
|
3197
|
+
type CalendarAdminConsentStatus = Components.Schemas.CalendarAdminConsentStatus;
|
|
3198
|
+
type CalendarConnectionInfo = Components.Schemas.CalendarConnectionInfo;
|
|
2487
3199
|
type ConnectOutlookRequest = Components.Schemas.ConnectOutlookRequest;
|
|
3200
|
+
type ConnectSmtpSenderRequest = Components.Schemas.ConnectSmtpSenderRequest;
|
|
2488
3201
|
type ConnectedOutlookEmail = Components.Schemas.ConnectedOutlookEmail;
|
|
2489
3202
|
type CreateEmailAddressPayload = Components.Schemas.CreateEmailAddressPayload;
|
|
2490
3203
|
type CreateSharedInboxPayload = Components.Schemas.CreateSharedInboxPayload;
|
|
3204
|
+
type CreateSmtpConnectionRequest = Components.Schemas.CreateSmtpConnectionRequest;
|
|
2491
3205
|
type Domain = Components.Schemas.Domain;
|
|
2492
3206
|
type EmailAddressResponse = Components.Schemas.EmailAddressResponse;
|
|
2493
3207
|
type EmailAddressSetting = Components.Schemas.EmailAddressSetting;
|
|
@@ -2498,6 +3212,7 @@ type MailboxSyncFolderStatuses = Components.Schemas.MailboxSyncFolderStatuses;
|
|
|
2498
3212
|
type MailboxSyncStatus = Components.Schemas.MailboxSyncStatus;
|
|
2499
3213
|
type MailboxSyncStatuses = Components.Schemas.MailboxSyncStatuses;
|
|
2500
3214
|
type MailboxSyncTimeframePeriods = Components.Schemas.MailboxSyncTimeframePeriods;
|
|
3215
|
+
type MyCalendarConnectionResponse = Components.Schemas.MyCalendarConnectionResponse;
|
|
2501
3216
|
type OutlookConnectionError = Components.Schemas.OutlookConnectionError;
|
|
2502
3217
|
type OutlookConnectionStatus = Components.Schemas.OutlookConnectionStatus;
|
|
2503
3218
|
type ProvisionEpilotEmailAddressPayload = Components.Schemas.ProvisionEpilotEmailAddressPayload;
|
|
@@ -2509,8 +3224,12 @@ type SettingType = Components.Schemas.SettingType;
|
|
|
2509
3224
|
type SettingsResponse = Components.Schemas.SettingsResponse;
|
|
2510
3225
|
type SharedInboxResponse = Components.Schemas.SharedInboxResponse;
|
|
2511
3226
|
type SignatureSetting = Components.Schemas.SignatureSetting;
|
|
3227
|
+
type SmtpConnection = Components.Schemas.SmtpConnection;
|
|
3228
|
+
type SmtpSender = Components.Schemas.SmtpSender;
|
|
3229
|
+
type SmtpTestResult = Components.Schemas.SmtpTestResult;
|
|
2512
3230
|
type UpdateEmailAddressPayload = Components.Schemas.UpdateEmailAddressPayload;
|
|
2513
3231
|
type UpdateSharedInboxPayload = Components.Schemas.UpdateSharedInboxPayload;
|
|
3232
|
+
type UpdateSmtpConnectionRequest = Components.Schemas.UpdateSmtpConnectionRequest;
|
|
2514
3233
|
type WhitelistEmailAddressSetting = Components.Schemas.WhitelistEmailAddressSetting;
|
|
2515
3234
|
|
|
2516
|
-
export { type Client as C, type Domain as D, type EmailAddressResponse as E, type InboxBucketResponse as I, type MailboxSyncFolderStatuses as M, type OperationMethods as O, Paths as P, type RestrictDuplicatesWithinSetting as R, type SetEmailAddressPrimaryPayload as S, type UpdateEmailAddressPayload as U, type WhitelistEmailAddressSetting as W, Components as a, type PathsDictionary as b, type
|
|
3235
|
+
export { type SmtpConnection as A, type SmtpSender as B, type Client as C, type Domain as D, type EmailAddressResponse as E, type SmtpTestResult as F, type UpdateSharedInboxPayload as G, type UpdateSmtpConnectionRequest as H, type InboxBucketResponse as I, type MailboxSyncFolderStatuses as M, type OperationMethods as O, Paths as P, type RestrictDuplicatesWithinSetting as R, type SetEmailAddressPrimaryPayload as S, type UpdateEmailAddressPayload as U, type WhitelistEmailAddressSetting as W, Components as a, type PathsDictionary as b, type CalendarAdminConsentStatus as c, type CalendarConnectionInfo as d, type ConnectOutlookRequest as e, type ConnectSmtpSenderRequest as f, type ConnectedOutlookEmail as g, type CreateEmailAddressPayload as h, type CreateSharedInboxPayload as i, type CreateSmtpConnectionRequest as j, type EmailAddressSetting as k, type EmailDomainSetting as l, type ErrorResponse as m, type MailboxSyncStatus as n, type MailboxSyncStatuses as o, type MailboxSyncTimeframePeriods as p, type MyCalendarConnectionResponse as q, type OutlookConnectionError as r, type OutlookConnectionStatus as s, type ProvisionEpilotEmailAddressPayload as t, type Setting as u, type SettingMeta as v, type SettingType as w, type SettingsResponse as x, type SharedInboxResponse as y, type SignatureSetting as z };
|