@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
package/docs/email-settings.md
CHANGED
|
@@ -46,6 +46,9 @@ const { data } = await emailSettingsClient.provisionEpilotEmailAddress(...)
|
|
|
46
46
|
**O365 Outlook Connection**
|
|
47
47
|
- [`connectOutlook`](#connectoutlook)
|
|
48
48
|
- [`getOutlookConnectionStatus`](#getoutlookconnectionstatus)
|
|
49
|
+
- [`getCalendarAdminConsentStatus`](#getcalendaradminconsentstatus)
|
|
50
|
+
- [`getMyCalendarConnection`](#getmycalendarconnection)
|
|
51
|
+
- [`disconnectMyCalendar`](#disconnectmycalendar)
|
|
49
52
|
- [`disconnectOutlook`](#disconnectoutlook)
|
|
50
53
|
- [`connectOutlookMailbox`](#connectoutlookmailbox)
|
|
51
54
|
- [`disconnectOutlookMailbox`](#disconnectoutlookmailbox)
|
|
@@ -60,6 +63,17 @@ const { data } = await emailSettingsClient.provisionEpilotEmailAddress(...)
|
|
|
60
63
|
- [`disconnectMsTeams`](#disconnectmsteams)
|
|
61
64
|
- [`getMsTeamsStatus`](#getmsteamsstatus)
|
|
62
65
|
|
|
66
|
+
**Custom SMTP**
|
|
67
|
+
- [`listSmtpConnections`](#listsmtpconnections)
|
|
68
|
+
- [`createSmtpConnection`](#createsmtpconnection)
|
|
69
|
+
- [`getSmtpConnection`](#getsmtpconnection)
|
|
70
|
+
- [`updateSmtpConnection`](#updatesmtpconnection)
|
|
71
|
+
- [`deleteSmtpConnection`](#deletesmtpconnection)
|
|
72
|
+
- [`testSmtpConnection`](#testsmtpconnection)
|
|
73
|
+
- [`listSmtpSenders`](#listsmtpsenders)
|
|
74
|
+
- [`connectSmtpSender`](#connectsmtpsender)
|
|
75
|
+
- [`disconnectSmtpSender`](#disconnectsmtpsender)
|
|
76
|
+
|
|
63
77
|
**Settings**
|
|
64
78
|
- [`getSettings`](#getsettings)
|
|
65
79
|
- [`addSetting`](#addsetting)
|
|
@@ -94,7 +108,16 @@ const { data } = await emailSettingsClient.provisionEpilotEmailAddress(...)
|
|
|
94
108
|
- [`SettingsResponse`](#settingsresponse)
|
|
95
109
|
- [`ConnectedOutlookEmail`](#connectedoutlookemail)
|
|
96
110
|
- [`OutlookConnectionError`](#outlookconnectionerror)
|
|
111
|
+
- [`CalendarAdminConsentStatus`](#calendaradminconsentstatus)
|
|
112
|
+
- [`MyCalendarConnectionResponse`](#mycalendarconnectionresponse)
|
|
113
|
+
- [`CalendarConnectionInfo`](#calendarconnectioninfo)
|
|
97
114
|
- [`OutlookConnectionStatus`](#outlookconnectionstatus)
|
|
115
|
+
- [`SmtpConnection`](#smtpconnection)
|
|
116
|
+
- [`CreateSmtpConnectionRequest`](#createsmtpconnectionrequest)
|
|
117
|
+
- [`UpdateSmtpConnectionRequest`](#updatesmtpconnectionrequest)
|
|
118
|
+
- [`SmtpSender`](#smtpsender)
|
|
119
|
+
- [`ConnectSmtpSenderRequest`](#connectsmtpsenderrequest)
|
|
120
|
+
- [`SmtpTestResult`](#smtptestresult)
|
|
98
121
|
- [`SignatureSetting`](#signaturesetting)
|
|
99
122
|
- [`EmailDomainSetting`](#emaildomainsetting)
|
|
100
123
|
- [`EmailAddressSetting`](#emailaddresssetting)
|
|
@@ -573,7 +596,8 @@ const { data } = await client.connectOutlook(
|
|
|
573
596
|
null,
|
|
574
597
|
{
|
|
575
598
|
mail: true,
|
|
576
|
-
calendar: true
|
|
599
|
+
calendar: true,
|
|
600
|
+
return_to: 'string'
|
|
577
601
|
},
|
|
578
602
|
)
|
|
579
603
|
```
|
|
@@ -632,6 +656,77 @@ const { data } = await client.getOutlookConnectionStatus()
|
|
|
632
656
|
|
|
633
657
|
---
|
|
634
658
|
|
|
659
|
+
### `getCalendarAdminConsentStatus`
|
|
660
|
+
|
|
661
|
+
Reports whether the caller's organization can connect personal Outlook
|
|
662
|
+
calendars.
|
|
663
|
+
|
|
664
|
+
`GET /v2/outlook/calendar/admin-consent-status`
|
|
665
|
+
|
|
666
|
+
```ts
|
|
667
|
+
const { data } = await client.getCalendarAdminConsentStatus()
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
<details>
|
|
671
|
+
<summary>Response</summary>
|
|
672
|
+
|
|
673
|
+
```json
|
|
674
|
+
{
|
|
675
|
+
"admin_consented": true,
|
|
676
|
+
"admin_consent_url": "https://example.com/path"
|
|
677
|
+
}
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
</details>
|
|
681
|
+
|
|
682
|
+
---
|
|
683
|
+
|
|
684
|
+
### `getMyCalendarConnection`
|
|
685
|
+
|
|
686
|
+
Returns the calling user's personal Outlook calendar connection,
|
|
687
|
+
or null when the user hasn't connected yet.
|
|
688
|
+
|
|
689
|
+
`GET /v2/outlook/calendar/me`
|
|
690
|
+
|
|
691
|
+
```ts
|
|
692
|
+
const { data } = await client.getMyCalendarConnection()
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
<details>
|
|
696
|
+
<summary>Response</summary>
|
|
697
|
+
|
|
698
|
+
```json
|
|
699
|
+
{
|
|
700
|
+
"connection": {
|
|
701
|
+
"user_id": "string",
|
|
702
|
+
"tenant_id": "string",
|
|
703
|
+
"status": "connected",
|
|
704
|
+
"scopes": ["string"],
|
|
705
|
+
"connected_by_display_name": "string",
|
|
706
|
+
"connected_by_email": "user@example.com",
|
|
707
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
708
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
709
|
+
"expires_at": "1970-01-01T00:00:00.000Z"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
</details>
|
|
715
|
+
|
|
716
|
+
---
|
|
717
|
+
|
|
718
|
+
### `disconnectMyCalendar`
|
|
719
|
+
|
|
720
|
+
Removes the calling user's personal calendar connection.
|
|
721
|
+
|
|
722
|
+
`DELETE /v2/outlook/calendar/me`
|
|
723
|
+
|
|
724
|
+
```ts
|
|
725
|
+
const { data } = await client.disconnectMyCalendar()
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
---
|
|
729
|
+
|
|
635
730
|
### `disconnectOutlook`
|
|
636
731
|
|
|
637
732
|
Removes the Microsoft 365 / Outlook connection for a specific tenant.
|
|
@@ -751,6 +846,10 @@ const { data } = await client.connectOutlookMailbox(
|
|
|
751
846
|
{
|
|
752
847
|
email: 'user@example.com',
|
|
753
848
|
shared_inbox_id: 'default',
|
|
849
|
+
name: 'string',
|
|
850
|
+
user_ids: ['string'],
|
|
851
|
+
group_ids: ['string'],
|
|
852
|
+
default_signature_id: 'string',
|
|
754
853
|
mailboxSyncTimeframe: '5m'
|
|
755
854
|
},
|
|
756
855
|
)
|
|
@@ -926,6 +1025,352 @@ const { data } = await client.getConnectedOutlookEmails()
|
|
|
926
1025
|
|
|
927
1026
|
---
|
|
928
1027
|
|
|
1028
|
+
### `listSmtpConnections`
|
|
1029
|
+
|
|
1030
|
+
Returns all custom SMTP connections configured for the organization.
|
|
1031
|
+
Passwords are never returned.
|
|
1032
|
+
|
|
1033
|
+
`GET /v2/smtp/connections`
|
|
1034
|
+
|
|
1035
|
+
```ts
|
|
1036
|
+
const { data } = await client.listSmtpConnections()
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
<details>
|
|
1040
|
+
<summary>Response</summary>
|
|
1041
|
+
|
|
1042
|
+
```json
|
|
1043
|
+
{
|
|
1044
|
+
"connections": [
|
|
1045
|
+
{
|
|
1046
|
+
"connection_id": "string",
|
|
1047
|
+
"smtp_host": "string",
|
|
1048
|
+
"smtp_port": 0,
|
|
1049
|
+
"smtp_secure": "tls",
|
|
1050
|
+
"smtp_username": "string",
|
|
1051
|
+
"smtp_password": "string",
|
|
1052
|
+
"connected_by_display_name": "string",
|
|
1053
|
+
"connected_by_email": "user@example.com",
|
|
1054
|
+
"connected_by_user_id": "string",
|
|
1055
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1056
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
1057
|
+
"last_tested_at": "1970-01-01T00:00:00.000Z",
|
|
1058
|
+
"last_test_status": "ok",
|
|
1059
|
+
"last_test_error": "string"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"has_connections": true
|
|
1063
|
+
}
|
|
1064
|
+
```
|
|
1065
|
+
|
|
1066
|
+
</details>
|
|
1067
|
+
|
|
1068
|
+
---
|
|
1069
|
+
|
|
1070
|
+
### `createSmtpConnection`
|
|
1071
|
+
|
|
1072
|
+
Creates a new custom SMTP connection. Runs a live verify against the SMTP server
|
|
1073
|
+
before persisting; on failure the request is rejected and nothing is saved.
|
|
1074
|
+
The password is encrypted via KMS before be
|
|
1075
|
+
|
|
1076
|
+
`POST /v2/smtp/connections`
|
|
1077
|
+
|
|
1078
|
+
```ts
|
|
1079
|
+
const { data } = await client.createSmtpConnection(
|
|
1080
|
+
null,
|
|
1081
|
+
{
|
|
1082
|
+
smtp_host: 'string',
|
|
1083
|
+
smtp_port: 1,
|
|
1084
|
+
smtp_secure: 'tls',
|
|
1085
|
+
smtp_username: 'string',
|
|
1086
|
+
smtp_password: '{{ env.smtp_password }}'
|
|
1087
|
+
},
|
|
1088
|
+
)
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
<details>
|
|
1092
|
+
<summary>Response</summary>
|
|
1093
|
+
|
|
1094
|
+
```json
|
|
1095
|
+
{
|
|
1096
|
+
"connection_id": "string",
|
|
1097
|
+
"smtp_host": "string",
|
|
1098
|
+
"smtp_port": 0,
|
|
1099
|
+
"smtp_secure": "tls",
|
|
1100
|
+
"smtp_username": "string",
|
|
1101
|
+
"smtp_password": "string",
|
|
1102
|
+
"connected_by_display_name": "string",
|
|
1103
|
+
"connected_by_email": "user@example.com",
|
|
1104
|
+
"connected_by_user_id": "string",
|
|
1105
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1106
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
1107
|
+
"last_tested_at": "1970-01-01T00:00:00.000Z",
|
|
1108
|
+
"last_test_status": "ok",
|
|
1109
|
+
"last_test_error": "string"
|
|
1110
|
+
}
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
</details>
|
|
1114
|
+
|
|
1115
|
+
---
|
|
1116
|
+
|
|
1117
|
+
### `getSmtpConnection`
|
|
1118
|
+
|
|
1119
|
+
Returns a single custom SMTP connection by id. The password is never returned.
|
|
1120
|
+
|
|
1121
|
+
`GET /v2/smtp/connections/{connectionId}`
|
|
1122
|
+
|
|
1123
|
+
```ts
|
|
1124
|
+
const { data } = await client.getSmtpConnection({
|
|
1125
|
+
connectionId: 'example',
|
|
1126
|
+
})
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
<details>
|
|
1130
|
+
<summary>Response</summary>
|
|
1131
|
+
|
|
1132
|
+
```json
|
|
1133
|
+
{
|
|
1134
|
+
"connection_id": "string",
|
|
1135
|
+
"smtp_host": "string",
|
|
1136
|
+
"smtp_port": 0,
|
|
1137
|
+
"smtp_secure": "tls",
|
|
1138
|
+
"smtp_username": "string",
|
|
1139
|
+
"smtp_password": "string",
|
|
1140
|
+
"connected_by_display_name": "string",
|
|
1141
|
+
"connected_by_email": "user@example.com",
|
|
1142
|
+
"connected_by_user_id": "string",
|
|
1143
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1144
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
1145
|
+
"last_tested_at": "1970-01-01T00:00:00.000Z",
|
|
1146
|
+
"last_test_status": "ok",
|
|
1147
|
+
"last_test_error": "string"
|
|
1148
|
+
}
|
|
1149
|
+
```
|
|
1150
|
+
|
|
1151
|
+
</details>
|
|
1152
|
+
|
|
1153
|
+
---
|
|
1154
|
+
|
|
1155
|
+
### `updateSmtpConnection`
|
|
1156
|
+
|
|
1157
|
+
Partial update; omitted fields keep their existing values. The merged
|
|
1158
|
+
configuration is verified against the SMTP server before persisting.
|
|
1159
|
+
|
|
1160
|
+
`PUT /v2/smtp/connections/{connectionId}`
|
|
1161
|
+
|
|
1162
|
+
```ts
|
|
1163
|
+
const { data } = await client.updateSmtpConnection(
|
|
1164
|
+
{
|
|
1165
|
+
connectionId: 'example',
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
smtp_host: 'string',
|
|
1169
|
+
smtp_port: 1,
|
|
1170
|
+
smtp_secure: 'tls',
|
|
1171
|
+
smtp_username: 'string',
|
|
1172
|
+
smtp_password: 'string'
|
|
1173
|
+
},
|
|
1174
|
+
)
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
<details>
|
|
1178
|
+
<summary>Response</summary>
|
|
1179
|
+
|
|
1180
|
+
```json
|
|
1181
|
+
{
|
|
1182
|
+
"connection_id": "string",
|
|
1183
|
+
"smtp_host": "string",
|
|
1184
|
+
"smtp_port": 0,
|
|
1185
|
+
"smtp_secure": "tls",
|
|
1186
|
+
"smtp_username": "string",
|
|
1187
|
+
"smtp_password": "string",
|
|
1188
|
+
"connected_by_display_name": "string",
|
|
1189
|
+
"connected_by_email": "user@example.com",
|
|
1190
|
+
"connected_by_user_id": "string",
|
|
1191
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1192
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
1193
|
+
"last_tested_at": "1970-01-01T00:00:00.000Z",
|
|
1194
|
+
"last_test_status": "ok",
|
|
1195
|
+
"last_test_error": "string"
|
|
1196
|
+
}
|
|
1197
|
+
```
|
|
1198
|
+
|
|
1199
|
+
</details>
|
|
1200
|
+
|
|
1201
|
+
---
|
|
1202
|
+
|
|
1203
|
+
### `deleteSmtpConnection`
|
|
1204
|
+
|
|
1205
|
+
Deletes a custom SMTP connection. Messages already sent are unaffected.
|
|
1206
|
+
|
|
1207
|
+
`DELETE /v2/smtp/connections/{connectionId}`
|
|
1208
|
+
|
|
1209
|
+
```ts
|
|
1210
|
+
const { data } = await client.deleteSmtpConnection({
|
|
1211
|
+
connectionId: 'example',
|
|
1212
|
+
})
|
|
1213
|
+
```
|
|
1214
|
+
|
|
1215
|
+
<details>
|
|
1216
|
+
<summary>Response</summary>
|
|
1217
|
+
|
|
1218
|
+
```json
|
|
1219
|
+
{
|
|
1220
|
+
"success": true,
|
|
1221
|
+
"connection_id": "string"
|
|
1222
|
+
}
|
|
1223
|
+
```
|
|
1224
|
+
|
|
1225
|
+
</details>
|
|
1226
|
+
|
|
1227
|
+
---
|
|
1228
|
+
|
|
1229
|
+
### `testSmtpConnection`
|
|
1230
|
+
|
|
1231
|
+
Re-runs a live SMTP verify against the saved configuration (EHLO + AUTH + NOOP + QUIT)
|
|
1232
|
+
and updates `last_test_status` / `last_tested_at` on the connection.
|
|
1233
|
+
|
|
1234
|
+
`POST /v2/smtp/connections/{connectionId}/test`
|
|
1235
|
+
|
|
1236
|
+
```ts
|
|
1237
|
+
const { data } = await client.testSmtpConnection({
|
|
1238
|
+
connectionId: 'example',
|
|
1239
|
+
})
|
|
1240
|
+
```
|
|
1241
|
+
|
|
1242
|
+
<details>
|
|
1243
|
+
<summary>Response</summary>
|
|
1244
|
+
|
|
1245
|
+
```json
|
|
1246
|
+
{
|
|
1247
|
+
"status": "ok",
|
|
1248
|
+
"error": "string",
|
|
1249
|
+
"tested_at": "1970-01-01T00:00:00.000Z"
|
|
1250
|
+
}
|
|
1251
|
+
```
|
|
1252
|
+
|
|
1253
|
+
</details>
|
|
1254
|
+
|
|
1255
|
+
---
|
|
1256
|
+
|
|
1257
|
+
### `listSmtpSenders`
|
|
1258
|
+
|
|
1259
|
+
Returns every address registered to send through a custom SMTP connection.
|
|
1260
|
+
|
|
1261
|
+
`GET /v2/smtp/senders`
|
|
1262
|
+
|
|
1263
|
+
```ts
|
|
1264
|
+
const { data } = await client.listSmtpSenders()
|
|
1265
|
+
```
|
|
1266
|
+
|
|
1267
|
+
<details>
|
|
1268
|
+
<summary>Response</summary>
|
|
1269
|
+
|
|
1270
|
+
```json
|
|
1271
|
+
{
|
|
1272
|
+
"senders": [
|
|
1273
|
+
{
|
|
1274
|
+
"email": "user@example.com",
|
|
1275
|
+
"connection_id": "string",
|
|
1276
|
+
"reply_to_email": "string",
|
|
1277
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1278
|
+
"connected_by_user_id": "string"
|
|
1279
|
+
}
|
|
1280
|
+
]
|
|
1281
|
+
}
|
|
1282
|
+
```
|
|
1283
|
+
|
|
1284
|
+
</details>
|
|
1285
|
+
|
|
1286
|
+
---
|
|
1287
|
+
|
|
1288
|
+
### `connectSmtpSender`
|
|
1289
|
+
|
|
1290
|
+
Registers an address as a sender on a custom SMTP connection:
|
|
1291
|
+
1. Creates the email address so it can be picked in the composer
|
|
1292
|
+
2. Binds it to the connection, so outgoing mail from it is routed the
|
|
1293
|
+
|
|
1294
|
+
`POST /v2/smtp/senders`
|
|
1295
|
+
|
|
1296
|
+
```ts
|
|
1297
|
+
const { data } = await client.connectSmtpSender(
|
|
1298
|
+
null,
|
|
1299
|
+
{
|
|
1300
|
+
email: 'user@example.com',
|
|
1301
|
+
connection_id: 'string',
|
|
1302
|
+
name: 'string',
|
|
1303
|
+
reply_to_email: 'string',
|
|
1304
|
+
shared_inbox_id: 'default',
|
|
1305
|
+
user_ids: ['string'],
|
|
1306
|
+
group_ids: ['string'],
|
|
1307
|
+
default_signature_id: 'string'
|
|
1308
|
+
},
|
|
1309
|
+
)
|
|
1310
|
+
```
|
|
1311
|
+
|
|
1312
|
+
<details>
|
|
1313
|
+
<summary>Response</summary>
|
|
1314
|
+
|
|
1315
|
+
```json
|
|
1316
|
+
{
|
|
1317
|
+
"email_address": {
|
|
1318
|
+
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
|
|
1319
|
+
"created_at": "2024-01-15T10:30:00Z",
|
|
1320
|
+
"updated_at": "2024-01-20T14:45:00Z",
|
|
1321
|
+
"created_by": "user-123",
|
|
1322
|
+
"updated_by": "user-456",
|
|
1323
|
+
"address": "sales@yourcompany.com",
|
|
1324
|
+
"name": "Sales Team",
|
|
1325
|
+
"user_ids": ["user-123", "user-456"],
|
|
1326
|
+
"group_ids": ["group-789"],
|
|
1327
|
+
"default_signature_id": "sig-abc",
|
|
1328
|
+
"shared_inbox_id": "inbox-xyz",
|
|
1329
|
+
"is_active": true,
|
|
1330
|
+
"is_primary": false,
|
|
1331
|
+
"is_epilot_email_address": false
|
|
1332
|
+
},
|
|
1333
|
+
"sender": {
|
|
1334
|
+
"email": "user@example.com",
|
|
1335
|
+
"connection_id": "string",
|
|
1336
|
+
"reply_to_email": "string",
|
|
1337
|
+
"connected_at": "1970-01-01T00:00:00.000Z",
|
|
1338
|
+
"connected_by_user_id": "string"
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
```
|
|
1342
|
+
|
|
1343
|
+
</details>
|
|
1344
|
+
|
|
1345
|
+
---
|
|
1346
|
+
|
|
1347
|
+
### `disconnectSmtpSender`
|
|
1348
|
+
|
|
1349
|
+
Removes a sender address: deletes the email address and its binding to the SMTP
|
|
1350
|
+
connection. The connection itself and messages already sent are unaffected.
|
|
1351
|
+
|
|
1352
|
+
`DELETE /v2/smtp/senders/{email}`
|
|
1353
|
+
|
|
1354
|
+
```ts
|
|
1355
|
+
const { data } = await client.disconnectSmtpSender({
|
|
1356
|
+
email: 'example',
|
|
1357
|
+
})
|
|
1358
|
+
```
|
|
1359
|
+
|
|
1360
|
+
<details>
|
|
1361
|
+
<summary>Response</summary>
|
|
1362
|
+
|
|
1363
|
+
```json
|
|
1364
|
+
{
|
|
1365
|
+
"success": true,
|
|
1366
|
+
"email": "user@example.com"
|
|
1367
|
+
}
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1370
|
+
</details>
|
|
1371
|
+
|
|
1372
|
+
---
|
|
1373
|
+
|
|
929
1374
|
### `outlookOAuthCallback`
|
|
930
1375
|
|
|
931
1376
|
Exchanges authorization code for tokens and stores them.
|
|
@@ -944,6 +1389,7 @@ const { data } = await client.outlookOAuthCallback({
|
|
|
944
1389
|
error_uri: 'example',
|
|
945
1390
|
admin_consent: 'example',
|
|
946
1391
|
tenant: 'example',
|
|
1392
|
+
clientdata: 'example',
|
|
947
1393
|
})
|
|
948
1394
|
```
|
|
949
1395
|
|
|
@@ -1341,6 +1787,7 @@ granted features triggers incremental consent for the delta only.
|
|
|
1341
1787
|
type ConnectOutlookRequest = {
|
|
1342
1788
|
mail?: boolean
|
|
1343
1789
|
calendar?: boolean
|
|
1790
|
+
return_to?: string
|
|
1344
1791
|
}
|
|
1345
1792
|
```
|
|
1346
1793
|
|
|
@@ -1599,6 +2046,53 @@ type OutlookConnectionError = {
|
|
|
1599
2046
|
}
|
|
1600
2047
|
```
|
|
1601
2048
|
|
|
2049
|
+
### `CalendarAdminConsentStatus`
|
|
2050
|
+
|
|
2051
|
+
```ts
|
|
2052
|
+
type CalendarAdminConsentStatus = {
|
|
2053
|
+
admin_consented: boolean
|
|
2054
|
+
admin_consent_url?: string // uri
|
|
2055
|
+
}
|
|
2056
|
+
```
|
|
2057
|
+
|
|
2058
|
+
### `MyCalendarConnectionResponse`
|
|
2059
|
+
|
|
2060
|
+
Per-user calendar connection metadata, or null when the caller has
|
|
2061
|
+
not connected their personal calendar yet.
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
```ts
|
|
2065
|
+
type MyCalendarConnectionResponse = {
|
|
2066
|
+
connection?: {
|
|
2067
|
+
user_id: string
|
|
2068
|
+
tenant_id: string
|
|
2069
|
+
status: "connected" | "expired"
|
|
2070
|
+
scopes?: string[]
|
|
2071
|
+
connected_by_display_name?: string
|
|
2072
|
+
connected_by_email?: string // email
|
|
2073
|
+
connected_at?: string // date-time
|
|
2074
|
+
updated_at?: string // date-time
|
|
2075
|
+
expires_at?: string // date-time
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
```
|
|
2079
|
+
|
|
2080
|
+
### `CalendarConnectionInfo`
|
|
2081
|
+
|
|
2082
|
+
```ts
|
|
2083
|
+
type CalendarConnectionInfo = {
|
|
2084
|
+
user_id: string
|
|
2085
|
+
tenant_id: string
|
|
2086
|
+
status: "connected" | "expired"
|
|
2087
|
+
scopes?: string[]
|
|
2088
|
+
connected_by_display_name?: string
|
|
2089
|
+
connected_by_email?: string // email
|
|
2090
|
+
connected_at?: string // date-time
|
|
2091
|
+
updated_at?: string // date-time
|
|
2092
|
+
expires_at?: string // date-time
|
|
2093
|
+
}
|
|
2094
|
+
```
|
|
2095
|
+
|
|
1602
2096
|
### `OutlookConnectionStatus`
|
|
1603
2097
|
|
|
1604
2098
|
```ts
|
|
@@ -1618,6 +2112,95 @@ type OutlookConnectionStatus = {
|
|
|
1618
2112
|
}
|
|
1619
2113
|
```
|
|
1620
2114
|
|
|
2115
|
+
### `SmtpConnection`
|
|
2116
|
+
|
|
2117
|
+
```ts
|
|
2118
|
+
type SmtpConnection = {
|
|
2119
|
+
connection_id: string
|
|
2120
|
+
smtp_host: string
|
|
2121
|
+
smtp_port: number
|
|
2122
|
+
smtp_secure: "tls" | "starttls"
|
|
2123
|
+
smtp_username: string
|
|
2124
|
+
smtp_password?: string
|
|
2125
|
+
connected_by_display_name?: string
|
|
2126
|
+
connected_by_email?: string // email
|
|
2127
|
+
connected_by_user_id?: string
|
|
2128
|
+
connected_at?: string // date-time
|
|
2129
|
+
updated_at?: string // date-time
|
|
2130
|
+
last_tested_at?: string // date-time
|
|
2131
|
+
last_test_status?: "ok" | "auth_failed" | "tls_failed" | "host_unreachable" | "timeout" | "secret_missing" | "unknown"
|
|
2132
|
+
last_test_error?: string
|
|
2133
|
+
}
|
|
2134
|
+
```
|
|
2135
|
+
|
|
2136
|
+
### `CreateSmtpConnectionRequest`
|
|
2137
|
+
|
|
2138
|
+
```ts
|
|
2139
|
+
type CreateSmtpConnectionRequest = {
|
|
2140
|
+
smtp_host: string
|
|
2141
|
+
smtp_port: number
|
|
2142
|
+
smtp_secure: "tls" | "starttls"
|
|
2143
|
+
smtp_username: string
|
|
2144
|
+
smtp_password: string
|
|
2145
|
+
}
|
|
2146
|
+
```
|
|
2147
|
+
|
|
2148
|
+
### `UpdateSmtpConnectionRequest`
|
|
2149
|
+
|
|
2150
|
+
Partial update; omitted fields keep their existing values.
|
|
2151
|
+
|
|
2152
|
+
```ts
|
|
2153
|
+
type UpdateSmtpConnectionRequest = {
|
|
2154
|
+
smtp_host?: string
|
|
2155
|
+
smtp_port?: number
|
|
2156
|
+
smtp_secure?: "tls" | "starttls"
|
|
2157
|
+
smtp_username?: string
|
|
2158
|
+
smtp_password?: string
|
|
2159
|
+
}
|
|
2160
|
+
```
|
|
2161
|
+
|
|
2162
|
+
### `SmtpSender`
|
|
2163
|
+
|
|
2164
|
+
An address allowed to send through a custom SMTP connection. Mirrors an Outlook
|
|
2165
|
+
mailbox: the address, its display name and its assignees live on the shared
|
|
2166
|
+
email-address record, while this row binds it to a set of SMTP credentials.
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
```ts
|
|
2170
|
+
type SmtpSender = {
|
|
2171
|
+
email: string // email
|
|
2172
|
+
connection_id: string
|
|
2173
|
+
reply_to_email?: string
|
|
2174
|
+
connected_at?: string // date-time
|
|
2175
|
+
connected_by_user_id?: string
|
|
2176
|
+
}
|
|
2177
|
+
```
|
|
2178
|
+
|
|
2179
|
+
### `ConnectSmtpSenderRequest`
|
|
2180
|
+
|
|
2181
|
+
```ts
|
|
2182
|
+
type ConnectSmtpSenderRequest = {
|
|
2183
|
+
email: string // email
|
|
2184
|
+
connection_id: string
|
|
2185
|
+
name?: string
|
|
2186
|
+
reply_to_email?: string
|
|
2187
|
+
shared_inbox_id?: string
|
|
2188
|
+
user_ids?: string[]
|
|
2189
|
+
group_ids?: string[]
|
|
2190
|
+
default_signature_id?: string
|
|
2191
|
+
}
|
|
2192
|
+
```
|
|
2193
|
+
|
|
2194
|
+
### `SmtpTestResult`
|
|
2195
|
+
|
|
2196
|
+
```ts
|
|
2197
|
+
type SmtpTestResult = {
|
|
2198
|
+
status: "ok" | "auth_failed" | "tls_failed" | "host_unreachable" | "timeout" | "secret_missing" | "unknown"
|
|
2199
|
+
error?: string
|
|
2200
|
+
tested_at: string // date-time
|
|
2201
|
+
}
|
|
2202
|
+
```
|
|
2203
|
+
|
|
1621
2204
|
### `SignatureSetting`
|
|
1622
2205
|
|
|
1623
2206
|
Setting that allows to add a signature.
|