@internxt/sdk 1.16.2 → 1.16.4
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/mail/index.d.ts +8 -1
- package/dist/mail/index.js +9 -0
- package/dist/mail/types.d.ts +7 -0
- package/dist/schema.d.ts +3211 -3005
- package/package.json +3 -3
package/dist/mail/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiSecurity, ApiUrl, AppDetails } from '../shared';
|
|
2
|
-
import { MailboxResponse, EmailListResponse, EmailResponse, EmailCreatedResponse, SendEmailRequest, DraftEmailRequest, UpdateEmailRequest, ListEmailsQuery, EmailDomainsResponse, SetupMailAccountPayload, SearchFiltersQuery, MailAccountKeysResponse, EncryptedKeystore, KeystoreType, RecipientWithPublicKey, HybridEncryptedEmail, EmailPublicParameters, PwdProtectedEmail } from './types';
|
|
2
|
+
import { MailboxResponse, EmailListResponse, EmailResponse, EmailCreatedResponse, SendEmailRequest, DraftEmailRequest, UpdateEmailRequest, ListEmailsQuery, EmailDomainsResponse, SetupMailAccountPayload, SearchFiltersQuery, MailAccountKeysResponse, MailAccountResponse, EncryptedKeystore, KeystoreType, RecipientWithPublicKey, HybridEncryptedEmail, EmailPublicParameters, PwdProtectedEmail } from './types';
|
|
3
3
|
export declare class MailApi {
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly appDetails;
|
|
@@ -100,6 +100,13 @@ export declare class MailApi {
|
|
|
100
100
|
* @returns The list of active domains - `ActiveDomainsResponse`
|
|
101
101
|
*/
|
|
102
102
|
getActiveDomains(): Promise<EmailDomainsResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the current mail account for the authenticated user, including its
|
|
105
|
+
* state, default address, and (when suspended) the scheduled deletion time.
|
|
106
|
+
*
|
|
107
|
+
* @returns The mail account details — `MailAccountResponse`
|
|
108
|
+
*/
|
|
109
|
+
getMailAccount(): Promise<MailAccountResponse>;
|
|
103
110
|
/**
|
|
104
111
|
* Sets up a mail account for the user
|
|
105
112
|
*
|
package/dist/mail/index.js
CHANGED
|
@@ -137,6 +137,15 @@ class MailApi {
|
|
|
137
137
|
getActiveDomains() {
|
|
138
138
|
return this.client.get('/email/domains', this.headers());
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns the current mail account for the authenticated user, including its
|
|
142
|
+
* state, default address, and (when suspended) the scheduled deletion time.
|
|
143
|
+
*
|
|
144
|
+
* @returns The mail account details — `MailAccountResponse`
|
|
145
|
+
*/
|
|
146
|
+
getMailAccount() {
|
|
147
|
+
return this.client.get('/users/me/mail-account', this.headers());
|
|
148
|
+
}
|
|
140
149
|
/**
|
|
141
150
|
* Sets up a mail account for the user
|
|
142
151
|
*
|
package/dist/mail/types.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ export type MailAccountKeysResponse = {
|
|
|
28
28
|
encryptionPrivateKey: string;
|
|
29
29
|
recoveryPrivateKey: string;
|
|
30
30
|
};
|
|
31
|
+
export type MailAccountResponse = {
|
|
32
|
+
id: string;
|
|
33
|
+
defaultAddress: string;
|
|
34
|
+
status: 'active' | 'suspended';
|
|
35
|
+
suspendedAt?: string;
|
|
36
|
+
deletionAt?: string;
|
|
37
|
+
};
|
|
31
38
|
export type EncryptedKeystore = {
|
|
32
39
|
userEmail: string;
|
|
33
40
|
type: KeystoreType;
|