@zimbra/api-client 93.0.0 → 95.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +1 -4
- package/.husky/prepare-commit-msg +0 -3
- package/dist/schema.graphql +14 -2
- package/dist/src/batch-client/index.d.ts +3 -3
- package/dist/src/batch-client/types.d.ts +2 -1
- package/dist/src/schema/generated-schema-types.d.ts +14 -2
- package/dist/zm-api-js-client.esm.js +44 -31
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +3 -3
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +5 -5
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +61 -139
- package/package.json +3 -4
- package/src/batch-client/index.ts +40 -26
- package/src/batch-client/types.ts +2 -1
- package/src/schema/generated-schema-types.ts +15 -2
- package/src/schema/schema.graphql +14 -2
package/.husky/pre-commit
CHANGED
package/dist/schema.graphql
CHANGED
|
@@ -343,6 +343,7 @@ type AuthResponse {
|
|
|
343
343
|
session: Session
|
|
344
344
|
skin: [Skin]
|
|
345
345
|
csrfToken: CsrfToken
|
|
346
|
+
resetPassword: ResetPassword
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
type ScratchCodeType {
|
|
@@ -388,6 +389,10 @@ type TrustedDevicesEnabled {
|
|
|
388
389
|
_content: Boolean
|
|
389
390
|
}
|
|
390
391
|
|
|
392
|
+
type ResetPassword {
|
|
393
|
+
_content: Boolean
|
|
394
|
+
}
|
|
395
|
+
|
|
391
396
|
type Session {
|
|
392
397
|
id: ID
|
|
393
398
|
_content: String
|
|
@@ -1449,6 +1454,7 @@ type AccountZimletConfigInfo {
|
|
|
1449
1454
|
type AccountInfoAttrs {
|
|
1450
1455
|
displayName: String
|
|
1451
1456
|
zimbraBrandingFolderName: String
|
|
1457
|
+
zimbraDataSourceMaxNumEntries: Int
|
|
1452
1458
|
zimbraDomainTrialConvertAtExpiration: Boolean
|
|
1453
1459
|
zimbraDomainTrialExpirationDate: String
|
|
1454
1460
|
zimbraDumpsterEnabled: Boolean
|
|
@@ -1534,7 +1540,11 @@ type AccountInfoAttrs {
|
|
|
1534
1540
|
zimbraFeatureExportFolderEnabled: Boolean
|
|
1535
1541
|
zimbraFeatureGroupCalendarEnabled: Boolean
|
|
1536
1542
|
zimbraFeatureDistributionListExpandMembersEnabled: Boolean
|
|
1543
|
+
zimbraFeatureMailRecallEnabled: Boolean
|
|
1544
|
+
zimbraFeatureMailRecallTime: Int
|
|
1537
1545
|
zimbraFeatureDistributionListFolderEnabled: Boolean
|
|
1546
|
+
zimbraFeatureBasicOneToOneChatEnabled: Boolean
|
|
1547
|
+
zimbraFeatureAdvancedChatEnabled: Boolean
|
|
1538
1548
|
}
|
|
1539
1549
|
|
|
1540
1550
|
type AccountCos {
|
|
@@ -2111,6 +2121,7 @@ type MailboxMetadataAttrs {
|
|
|
2111
2121
|
zimbraPrefUndoSendEnabled: Boolean
|
|
2112
2122
|
zimbraPrefUndoSendTimeout: Int
|
|
2113
2123
|
archivedFolder: String
|
|
2124
|
+
showSendAndArchive: String
|
|
2114
2125
|
privacyOverlayPrefs_showOverlay: Boolean
|
|
2115
2126
|
privacyOverlayPrefs_timeOut: Int
|
|
2116
2127
|
zimbraPrefSMIMEDefaultSetting: String
|
|
@@ -2146,6 +2157,7 @@ input MailboxMetadataSectionAttrsInput {
|
|
|
2146
2157
|
zimbraPrefUndoSendEnabled: Boolean
|
|
2147
2158
|
zimbraPrefUndoSendTimeout: Int
|
|
2148
2159
|
archivedFolder: String
|
|
2160
|
+
showSendAndArchive: String
|
|
2149
2161
|
privacyOverlayPrefs_showOverlay: Boolean
|
|
2150
2162
|
privacyOverlayPrefs_timeOut: Int
|
|
2151
2163
|
zimbraPrefSMIMEDefaultSetting: String
|
|
@@ -3089,7 +3101,6 @@ input EnableTwoFactorAuthInput {
|
|
|
3089
3101
|
twoFactorCode: String
|
|
3090
3102
|
authToken: String
|
|
3091
3103
|
csrfTokenSecured: Boolean!
|
|
3092
|
-
ignoreSameSite: Boolean
|
|
3093
3104
|
}
|
|
3094
3105
|
|
|
3095
3106
|
input SendTwoFactorAuthCodeInput {
|
|
@@ -3685,6 +3696,8 @@ type Mutation {
|
|
|
3685
3696
|
loginNewPassword: String!
|
|
3686
3697
|
password: String!
|
|
3687
3698
|
username: String!
|
|
3699
|
+
authToken: String
|
|
3700
|
+
csrfToken: String
|
|
3688
3701
|
): AuthResponse
|
|
3689
3702
|
modifyProfileImage(
|
|
3690
3703
|
content: String
|
|
@@ -3771,7 +3784,6 @@ type Mutation {
|
|
|
3771
3784
|
twoFactorCode: String
|
|
3772
3785
|
deviceTrusted: Boolean
|
|
3773
3786
|
csrfTokenSecured: Boolean!
|
|
3774
|
-
ignoreSameSite: Boolean
|
|
3775
3787
|
): AuthResponse
|
|
3776
3788
|
enableTwoFactorAuth(
|
|
3777
3789
|
options: EnableTwoFactorAuthInput!
|
|
@@ -32,7 +32,7 @@ export declare class ZimbraBatchClient {
|
|
|
32
32
|
cancelPendingRemoteWipeSync: (deviceId: String) => Promise<any>;
|
|
33
33
|
cancelTask: ({ inviteId }: any) => Promise<boolean>;
|
|
34
34
|
changeFolderColor: ({ id, color }: FolderActionChangeColorInput) => Promise<boolean>;
|
|
35
|
-
changePassword: ({ loginNewPassword, password, username, dryRun }: ChangePasswordOptions) => Promise<any>;
|
|
35
|
+
changePassword: ({ loginNewPassword, password, username, dryRun, authToken, csrfToken }: ChangePasswordOptions) => Promise<any>;
|
|
36
36
|
checkCalendar: ({ id, value }: FolderActionCheckCalendarInput) => Promise<boolean>;
|
|
37
37
|
clientInfo: ({ by, domain }: any) => Promise<any>;
|
|
38
38
|
contactAction: (options: ActionOptions) => Promise<boolean>;
|
|
@@ -73,7 +73,7 @@ export declare class ZimbraBatchClient {
|
|
|
73
73
|
content: any;
|
|
74
74
|
isSecure: any;
|
|
75
75
|
}>;
|
|
76
|
-
enableTwoFactorAuth: ({ name, email, method, password, authToken, twoFactorCode, csrfTokenSecured
|
|
76
|
+
enableTwoFactorAuth: ({ name, email, method, password, authToken, twoFactorCode, csrfTokenSecured }: EnableTwoFactorAuthInput) => Promise<any>;
|
|
77
77
|
endSessionBeaconRequest: (options: JsonRequestOptions) => void;
|
|
78
78
|
folderAction: (options: ActionOptions) => Promise<boolean>;
|
|
79
79
|
forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
|
|
@@ -129,7 +129,7 @@ export declare class ZimbraBatchClient {
|
|
|
129
129
|
itemAction: (options: ActionOptions) => Promise<boolean>;
|
|
130
130
|
jsonRequest: (options: JsonRequestOptions) => Promise<any>;
|
|
131
131
|
listDocumentRevisions: ({ id, version, count }: any) => Promise<any>;
|
|
132
|
-
login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured
|
|
132
|
+
login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured }: LoginOptions) => Promise<any>;
|
|
133
133
|
logout: () => Promise<boolean>;
|
|
134
134
|
messageAction: (options: ActionOptions) => Promise<boolean>;
|
|
135
135
|
modifyAppointment: (accountName: string, appointment: CalendarItemInput) => Promise<any>;
|
|
@@ -191,6 +191,8 @@ export interface ShareInfoOptions {
|
|
|
191
191
|
owner?: Owner;
|
|
192
192
|
}
|
|
193
193
|
export interface ChangePasswordOptions {
|
|
194
|
+
authToken: string;
|
|
195
|
+
csrfToken: string;
|
|
194
196
|
dryRun: boolean;
|
|
195
197
|
loginNewPassword: string;
|
|
196
198
|
password: string;
|
|
@@ -203,7 +205,6 @@ export interface ModifyProfileImageOptions {
|
|
|
203
205
|
export interface LoginOptions {
|
|
204
206
|
csrfTokenSecured: boolean;
|
|
205
207
|
deviceTrusted?: boolean;
|
|
206
|
-
ignoreSameSite?: boolean;
|
|
207
208
|
password: string;
|
|
208
209
|
persistAuthTokenCookie?: boolean;
|
|
209
210
|
recoveryCode?: string;
|
|
@@ -105,15 +105,18 @@ export type AccountInfoAttrs = {
|
|
|
105
105
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
106
106
|
zimbraBlockEmailSendFromImapPop?: Maybe<Scalars['Boolean']['output']>;
|
|
107
107
|
zimbraBrandingFolderName?: Maybe<Scalars['String']['output']>;
|
|
108
|
+
zimbraDataSourceMaxNumEntries?: Maybe<Scalars['Int']['output']>;
|
|
108
109
|
zimbraDomainTrialConvertAtExpiration?: Maybe<Scalars['Boolean']['output']>;
|
|
109
110
|
zimbraDomainTrialExpirationDate?: Maybe<Scalars['String']['output']>;
|
|
110
111
|
zimbraDumpsterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
111
112
|
zimbraExternalSharingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
112
113
|
zimbraFeatureAdminMailEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
113
114
|
zimbraFeatureAdminPreferencesEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
115
|
+
zimbraFeatureAdvancedChatEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
114
116
|
zimbraFeatureAllowUsernameInPassword?: Maybe<Scalars['Boolean']['output']>;
|
|
115
117
|
zimbraFeatureAntispamEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
116
118
|
zimbraFeatureAppSpecificPasswordsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
119
|
+
zimbraFeatureBasicOneToOneChatEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
117
120
|
zimbraFeatureBriefcasesEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
118
121
|
zimbraFeatureCalendarEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
119
122
|
zimbraFeatureChangePasswordEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -135,6 +138,8 @@ export type AccountInfoAttrs = {
|
|
|
135
138
|
zimbraFeatureMailForwardingEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
136
139
|
zimbraFeatureMailForwardingInFiltersEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
137
140
|
zimbraFeatureMailPriorityEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
141
|
+
zimbraFeatureMailRecallEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
142
|
+
zimbraFeatureMailRecallTime?: Maybe<Scalars['Int']['output']>;
|
|
138
143
|
zimbraFeatureMailSendLaterEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
139
144
|
zimbraFeatureManageZimlets?: Maybe<Scalars['Boolean']['output']>;
|
|
140
145
|
zimbraFeatureMobileSyncEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -376,6 +381,7 @@ export type AuthResponse = {
|
|
|
376
381
|
authToken?: Maybe<Array<Maybe<AuthToken>>>;
|
|
377
382
|
csrfToken?: Maybe<CsrfToken>;
|
|
378
383
|
lifetime?: Maybe<Scalars['Float']['output']>;
|
|
384
|
+
resetPassword?: Maybe<ResetPassword>;
|
|
379
385
|
session?: Maybe<Session>;
|
|
380
386
|
skin?: Maybe<Array<Maybe<Skin>>>;
|
|
381
387
|
trustedDevicesEnabled?: Maybe<TrustedDevicesEnabled>;
|
|
@@ -1395,7 +1401,6 @@ export type EnableTwoFactorAuthInput = {
|
|
|
1395
1401
|
authToken?: InputMaybe<Scalars['String']['input']>;
|
|
1396
1402
|
csrfTokenSecured: Scalars['Boolean']['input'];
|
|
1397
1403
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
1398
|
-
ignoreSameSite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1399
1404
|
method: Scalars['String']['input'];
|
|
1400
1405
|
name: Scalars['String']['input'];
|
|
1401
1406
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2162,6 +2167,7 @@ export type MailboxMetadataAttrs = {
|
|
|
2162
2167
|
archivedFolder?: Maybe<Scalars['String']['output']>;
|
|
2163
2168
|
privacyOverlayPrefs_showOverlay?: Maybe<Scalars['Boolean']['output']>;
|
|
2164
2169
|
privacyOverlayPrefs_timeOut?: Maybe<Scalars['Int']['output']>;
|
|
2170
|
+
showSendAndArchive?: Maybe<Scalars['String']['output']>;
|
|
2165
2171
|
zimbraPrefColorMode?: Maybe<Scalars['String']['output']>;
|
|
2166
2172
|
zimbraPrefContactSourceFolderID?: Maybe<Scalars['String']['output']>;
|
|
2167
2173
|
zimbraPrefCustomFolderTreeOpen?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2192,6 +2198,7 @@ export type MailboxMetadataSectionAttrsInput = {
|
|
|
2192
2198
|
archivedFolder?: InputMaybe<Scalars['String']['input']>;
|
|
2193
2199
|
privacyOverlayPrefs_showOverlay?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2194
2200
|
privacyOverlayPrefs_timeOut?: InputMaybe<Scalars['Int']['input']>;
|
|
2201
|
+
showSendAndArchive?: InputMaybe<Scalars['String']['input']>;
|
|
2195
2202
|
zimbraPrefColorMode?: InputMaybe<Scalars['String']['input']>;
|
|
2196
2203
|
zimbraPrefContactSourceFolderID?: InputMaybe<Scalars['String']['input']>;
|
|
2197
2204
|
zimbraPrefCustomFolderTreeOpen?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -2531,6 +2538,8 @@ export type MutationChangeFolderColorArgs = {
|
|
|
2531
2538
|
id: Scalars['ID']['input'];
|
|
2532
2539
|
};
|
|
2533
2540
|
export type MutationChangePasswordArgs = {
|
|
2541
|
+
authToken?: InputMaybe<Scalars['String']['input']>;
|
|
2542
|
+
csrfToken?: InputMaybe<Scalars['String']['input']>;
|
|
2534
2543
|
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2535
2544
|
loginNewPassword: Scalars['String']['input'];
|
|
2536
2545
|
password: Scalars['String']['input'];
|
|
@@ -2673,7 +2682,6 @@ export type MutationItemActionArgs = {
|
|
|
2673
2682
|
export type MutationLoginArgs = {
|
|
2674
2683
|
csrfTokenSecured: Scalars['Boolean']['input'];
|
|
2675
2684
|
deviceTrusted?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2676
|
-
ignoreSameSite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2677
2685
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
2678
2686
|
persistAuthTokenCookie?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2679
2687
|
recoveryCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3492,6 +3500,10 @@ export type ReplyActionInput = {
|
|
|
3492
3500
|
content?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3493
3501
|
index?: InputMaybe<Scalars['Int']['input']>;
|
|
3494
3502
|
};
|
|
3503
|
+
export type ResetPassword = {
|
|
3504
|
+
__typename?: 'ResetPassword';
|
|
3505
|
+
_content?: Maybe<Scalars['Boolean']['output']>;
|
|
3506
|
+
};
|
|
3495
3507
|
export type ResetPasswordResponse = {
|
|
3496
3508
|
__typename?: 'ResetPasswordResponse';
|
|
3497
3509
|
attrs?: Maybe<ResetPasswordResponseAttributes>;
|