@zimbra/api-client 89.0.0 → 90.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/dist/schema.graphql +145 -8
- package/dist/src/batch-client/index.d.ts +8 -4
- package/dist/src/normalize/entities.d.ts +2 -0
- package/dist/src/schema/generated-schema-types.d.ts +143 -1
- package/dist/zm-api-js-client.esm.js +726 -486
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +5 -10
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +6 -11
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +265 -155
- package/package.json +2 -2
- package/src/batch-client/index.ts +112 -20
- package/src/normalize/entities.ts +12 -0
- package/src/schema/generated-schema-types.ts +172 -1
- package/src/schema/schema.graphql +145 -8
- package/src/schema/schema.ts +12 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "90.0.0",
|
|
5
5
|
"description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
|
|
6
6
|
"main": "dist/zm-api-js-client.js",
|
|
7
7
|
"source": "index.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@apollo/client": "3.4.16",
|
|
48
|
-
"@graphql-tools/schema": "^
|
|
48
|
+
"@graphql-tools/schema": "^10.0.3",
|
|
49
49
|
"dataloader": "^2.2.2",
|
|
50
50
|
"graphql": "^15.8.0",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
CreateMountpointRequest,
|
|
23
23
|
CreateSignatureRequest,
|
|
24
24
|
DiscoverRightsResponse,
|
|
25
|
+
DLActionEntity,
|
|
25
26
|
DlGroupMember,
|
|
26
27
|
DocumentActionData,
|
|
27
28
|
Filter,
|
|
@@ -67,6 +68,7 @@ import {
|
|
|
67
68
|
CreateTagInput,
|
|
68
69
|
DeleteAppointmentInput,
|
|
69
70
|
DeleteIdentityInput,
|
|
71
|
+
DistributionListActionInput,
|
|
70
72
|
EnableTwoFactorAuthInput,
|
|
71
73
|
ExternalAccountAddInput,
|
|
72
74
|
ExternalAccountImportInput,
|
|
@@ -87,6 +89,7 @@ import {
|
|
|
87
89
|
SaveSMimeCertInputUpload,
|
|
88
90
|
SearchFolderInput,
|
|
89
91
|
SendMessageInput,
|
|
92
|
+
SendTwoFactorAuthCodeInput,
|
|
90
93
|
ShareNotificationInput,
|
|
91
94
|
SignatureInput,
|
|
92
95
|
WhiteBlackListInput,
|
|
@@ -333,30 +336,37 @@ export class ZimbraBatchClient {
|
|
|
333
336
|
body: {
|
|
334
337
|
sections: 'mbox,attrs,zimlets,props'
|
|
335
338
|
}
|
|
336
|
-
}).then(res =>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
339
|
+
}).then(res => {
|
|
340
|
+
const {
|
|
341
|
+
zimbraMailAlias,
|
|
342
|
+
zimbraTwoFactorAuthMethodAllowed,
|
|
343
|
+
zimbraTwoFactorAuthMethodEnabled
|
|
344
|
+
} = res?.attrs?._attrs || {};
|
|
345
|
+
return {
|
|
346
|
+
...res,
|
|
347
|
+
attrs: {
|
|
348
|
+
...mapValuesDeep(res?.attrs?._attrs, coerceStringToBoolean),
|
|
349
|
+
zimbraMailAlias: [].concat(zimbraMailAlias || []),
|
|
350
|
+
zimbraTwoFactorAuthMethodAllowed: [].concat(zimbraTwoFactorAuthMethodAllowed || []),
|
|
351
|
+
zimbraTwoFactorAuthMethodEnabled: [].concat(zimbraTwoFactorAuthMethodEnabled || [])
|
|
352
|
+
},
|
|
353
|
+
...(res?.license?.attr && {
|
|
354
|
+
license: {
|
|
355
|
+
status: res.license.status,
|
|
356
|
+
attr: mapValuesDeep(res.license.attr, coerceStringToBoolean)
|
|
357
|
+
}
|
|
358
|
+
}),
|
|
359
|
+
zimlets: {
|
|
360
|
+
zimlet: res?.zimlets?.zimlet?.map(({ zimlet, zimletContext, zimletConfig }: any) => ({
|
|
352
361
|
zimlet,
|
|
353
362
|
zimletContext,
|
|
354
363
|
...(zimletConfig && {
|
|
355
364
|
zimletConfig: normalize(ZimletConfigEntity)(zimletConfig)
|
|
356
365
|
})
|
|
357
366
|
}))
|
|
358
|
-
|
|
359
|
-
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
});
|
|
360
370
|
|
|
361
371
|
public accountOnlyRemoteWipeSync = (deviceId: String) =>
|
|
362
372
|
this.jsonRequest({
|
|
@@ -757,10 +767,15 @@ export class ZimbraBatchClient {
|
|
|
757
767
|
singleRequest: true
|
|
758
768
|
}).then(Boolean);
|
|
759
769
|
|
|
760
|
-
public disableTwoFactorAuth = () =>
|
|
770
|
+
public disableTwoFactorAuth = (method: string) =>
|
|
761
771
|
this.jsonRequest({
|
|
762
772
|
name: 'DisableTwoFactorAuth',
|
|
763
773
|
namespace: Namespace.Account,
|
|
774
|
+
body: {
|
|
775
|
+
method: {
|
|
776
|
+
_content: method
|
|
777
|
+
}
|
|
778
|
+
},
|
|
764
779
|
singleRequest: true
|
|
765
780
|
}).then(Boolean);
|
|
766
781
|
|
|
@@ -783,6 +798,16 @@ export class ZimbraBatchClient {
|
|
|
783
798
|
singleRequest: true
|
|
784
799
|
}).then(Boolean);
|
|
785
800
|
|
|
801
|
+
public distributionListAction = ({ action, dl }: DistributionListActionInput) =>
|
|
802
|
+
this.jsonRequest({
|
|
803
|
+
name: 'DistributionListAction',
|
|
804
|
+
body: {
|
|
805
|
+
action: denormalize(DLActionEntity)(action),
|
|
806
|
+
dl
|
|
807
|
+
},
|
|
808
|
+
namespace: Namespace.Account
|
|
809
|
+
}).then(Boolean);
|
|
810
|
+
|
|
786
811
|
public documentAction = (options: ActionOptions) =>
|
|
787
812
|
this.documentActionResponse(ActionType.document, options);
|
|
788
813
|
|
|
@@ -826,6 +851,8 @@ export class ZimbraBatchClient {
|
|
|
826
851
|
|
|
827
852
|
public enableTwoFactorAuth = ({
|
|
828
853
|
name,
|
|
854
|
+
email,
|
|
855
|
+
method,
|
|
829
856
|
password,
|
|
830
857
|
authToken,
|
|
831
858
|
twoFactorCode,
|
|
@@ -838,6 +865,16 @@ export class ZimbraBatchClient {
|
|
|
838
865
|
name: {
|
|
839
866
|
_content: name
|
|
840
867
|
},
|
|
868
|
+
...(email && {
|
|
869
|
+
email: {
|
|
870
|
+
_content: email
|
|
871
|
+
}
|
|
872
|
+
}),
|
|
873
|
+
...(method && {
|
|
874
|
+
method: {
|
|
875
|
+
_content: method
|
|
876
|
+
}
|
|
877
|
+
}),
|
|
841
878
|
...(password && {
|
|
842
879
|
password: {
|
|
843
880
|
_content: password
|
|
@@ -1044,6 +1081,20 @@ export class ZimbraBatchClient {
|
|
|
1044
1081
|
namespace: Namespace.Sync
|
|
1045
1082
|
}).then(res => get(res, 'device') || []);
|
|
1046
1083
|
|
|
1084
|
+
public getDistributionList = (dl: String, needOwners: Boolean, needRights: String, by: String) =>
|
|
1085
|
+
this.jsonRequest({
|
|
1086
|
+
name: 'GetDistributionList',
|
|
1087
|
+
body: {
|
|
1088
|
+
dl: {
|
|
1089
|
+
by,
|
|
1090
|
+
_content: dl
|
|
1091
|
+
},
|
|
1092
|
+
needOwners,
|
|
1093
|
+
needRights
|
|
1094
|
+
},
|
|
1095
|
+
namespace: Namespace.Account
|
|
1096
|
+
});
|
|
1097
|
+
|
|
1047
1098
|
public getDistributionListMembers = (limit: String, offset: String, dl: String) =>
|
|
1048
1099
|
this.jsonRequest({
|
|
1049
1100
|
name: 'GetDistributionListMembers',
|
|
@@ -1451,7 +1502,19 @@ export class ZimbraBatchClient {
|
|
|
1451
1502
|
...(deviceTrusted && { deviceTrusted })
|
|
1452
1503
|
},
|
|
1453
1504
|
namespace: Namespace.Account
|
|
1454
|
-
}).then(res =>
|
|
1505
|
+
}).then(res => {
|
|
1506
|
+
const zimbraTwoFactorAuthMethodAllowed = (
|
|
1507
|
+
res?.zimbraTwoFactorAuthMethodAllowed?.method || []
|
|
1508
|
+
).map((m: any) => m._content);
|
|
1509
|
+
const zimbraTwoFactorAuthMethodEnabled = (
|
|
1510
|
+
res?.zimbraTwoFactorAuthMethodEnabled?.method || []
|
|
1511
|
+
).map((m: any) => m._content);
|
|
1512
|
+
return {
|
|
1513
|
+
...mapValuesDeep(res, coerceStringToBoolean),
|
|
1514
|
+
...(zimbraTwoFactorAuthMethodAllowed && { zimbraTwoFactorAuthMethodAllowed }),
|
|
1515
|
+
...(zimbraTwoFactorAuthMethodEnabled && { zimbraTwoFactorAuthMethodEnabled })
|
|
1516
|
+
};
|
|
1517
|
+
});
|
|
1455
1518
|
|
|
1456
1519
|
public logout = () =>
|
|
1457
1520
|
this.jsonRequest({
|
|
@@ -1855,6 +1918,22 @@ export class ZimbraBatchClient {
|
|
|
1855
1918
|
singleRequest: true
|
|
1856
1919
|
}).then(Boolean);
|
|
1857
1920
|
|
|
1921
|
+
public sendTwoFactorAuthCode = ({ action, authToken }: SendTwoFactorAuthCodeInput) => {
|
|
1922
|
+
return this.jsonRequest({
|
|
1923
|
+
name: 'SendTwoFactorAuthCode',
|
|
1924
|
+
namespace: Namespace.Account,
|
|
1925
|
+
body: {
|
|
1926
|
+
action: {
|
|
1927
|
+
_content: action
|
|
1928
|
+
},
|
|
1929
|
+
authToken: {
|
|
1930
|
+
_content: authToken
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1933
|
+
singleRequest: true
|
|
1934
|
+
});
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1858
1937
|
public setCsrfToken = (csrfToken: string) => {
|
|
1859
1938
|
this.csrfToken = csrfToken;
|
|
1860
1939
|
};
|
|
@@ -1899,6 +1978,19 @@ export class ZimbraBatchClient {
|
|
|
1899
1978
|
singleRequest: true
|
|
1900
1979
|
}).then(Boolean);
|
|
1901
1980
|
|
|
1981
|
+
public subscribeDistributionList = (op: String, by: String, dl: String) =>
|
|
1982
|
+
this.jsonRequest({
|
|
1983
|
+
name: 'SubscribeDistributionList',
|
|
1984
|
+
body: {
|
|
1985
|
+
dl: {
|
|
1986
|
+
by,
|
|
1987
|
+
_content: dl
|
|
1988
|
+
},
|
|
1989
|
+
op
|
|
1990
|
+
},
|
|
1991
|
+
namespace: Namespace.Account
|
|
1992
|
+
}).then(res => res.status || '');
|
|
1993
|
+
|
|
1902
1994
|
public taskFolders = () =>
|
|
1903
1995
|
this.jsonRequest({
|
|
1904
1996
|
name: 'GetFolder',
|
|
@@ -243,6 +243,7 @@ const commonMailItemFields = {
|
|
|
243
243
|
inv: ['invitations', InviteInfo],
|
|
244
244
|
mp: ['mimeParts', MimePart],
|
|
245
245
|
shr: 'share',
|
|
246
|
+
dlSubs: 'subscribe',
|
|
246
247
|
su: 'subject',
|
|
247
248
|
origid: 'origId',
|
|
248
249
|
attach: ['attachments', AttachmentsInfo],
|
|
@@ -775,3 +776,14 @@ export const ActionData = new Entity({
|
|
|
775
776
|
export const DocumentActionData = new Entity({
|
|
776
777
|
action: ['action', ActionData]
|
|
777
778
|
});
|
|
779
|
+
|
|
780
|
+
export const DLActionAttrEntity = new Entity({
|
|
781
|
+
n: 'attributeName',
|
|
782
|
+
_content: 'content'
|
|
783
|
+
});
|
|
784
|
+
|
|
785
|
+
export const DLActionEntity = new Entity({
|
|
786
|
+
op: 'operation',
|
|
787
|
+
a: ['attributes', DLActionAttrEntity],
|
|
788
|
+
dlm: 'distributionListMembers'
|
|
789
|
+
});
|
|
@@ -166,6 +166,8 @@ export type AccountInfoAttrs = {
|
|
|
166
166
|
zimbraTrialConvertAtExpiration?: Maybe<Scalars['Boolean']['output']>;
|
|
167
167
|
zimbraTrialExpirationDate?: Maybe<Scalars['String']['output']>;
|
|
168
168
|
zimbraTwoFactorAuthEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
169
|
+
zimbraTwoFactorAuthMethodAllowed?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
170
|
+
zimbraTwoFactorAuthMethodEnabled?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
169
171
|
};
|
|
170
172
|
|
|
171
173
|
export enum AccountType {
|
|
@@ -385,6 +387,10 @@ export type AuthResponse = {
|
|
|
385
387
|
skin?: Maybe<Array<Maybe<Skin>>>;
|
|
386
388
|
trustedDevicesEnabled?: Maybe<TrustedDevicesEnabled>;
|
|
387
389
|
twoFactorAuthRequired?: Maybe<TwoFactorAuthRequired>;
|
|
390
|
+
zimbraPrefPasswordRecoveryAddress?: Maybe<StringContent>;
|
|
391
|
+
zimbraPrefPrimaryTwoFactorAuthMethod?: Maybe<StringContent>;
|
|
392
|
+
zimbraTwoFactorAuthMethodAllowed?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
393
|
+
zimbraTwoFactorAuthMethodEnabled?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
388
394
|
};
|
|
389
395
|
|
|
390
396
|
export type AuthToken = {
|
|
@@ -868,6 +874,7 @@ export type Contact = {
|
|
|
868
874
|
fileAsStr?: Maybe<Scalars['String']['output']>;
|
|
869
875
|
folderId?: Maybe<Scalars['ID']['output']>;
|
|
870
876
|
id: Scalars['ID']['output'];
|
|
877
|
+
isOwner?: Maybe<Scalars['Boolean']['output']>;
|
|
871
878
|
memberOf?: Maybe<Scalars['String']['output']>;
|
|
872
879
|
members?: Maybe<Array<Maybe<ContactListMember>>>;
|
|
873
880
|
revision?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1103,6 +1110,7 @@ export type Conversation = MailItem & {
|
|
|
1103
1110
|
size?: Maybe<Scalars['Float']['output']>;
|
|
1104
1111
|
sortField?: Maybe<Scalars['String']['output']>;
|
|
1105
1112
|
subject?: Maybe<Scalars['String']['output']>;
|
|
1113
|
+
subscribe?: Maybe<Array<Maybe<DlSubscribe>>>;
|
|
1106
1114
|
tagNames?: Maybe<Scalars['String']['output']>;
|
|
1107
1115
|
tags?: Maybe<Scalars['String']['output']>;
|
|
1108
1116
|
unread?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1205,14 +1213,99 @@ export type CustomMetadataMeta = {
|
|
|
1205
1213
|
section?: Maybe<Scalars['String']['output']>;
|
|
1206
1214
|
};
|
|
1207
1215
|
|
|
1216
|
+
export type Dl = {
|
|
1217
|
+
__typename?: 'DL';
|
|
1218
|
+
dl?: Maybe<Array<Maybe<DlDetails>>>;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
export type DlActionAttrInput = {
|
|
1222
|
+
attributeName?: InputMaybe<Scalars['String']['input']>;
|
|
1223
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
export type DlActionGranteeInput = {
|
|
1227
|
+
_content?: InputMaybe<Scalars['String']['input']>;
|
|
1228
|
+
by?: InputMaybe<Scalars['String']['input']>;
|
|
1229
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
export type DlActionInput = {
|
|
1233
|
+
attributes?: InputMaybe<Array<InputMaybe<DlActionAttrInput>>>;
|
|
1234
|
+
distributionListMembers?: InputMaybe<Array<InputMaybe<MethodInput>>>;
|
|
1235
|
+
operation?: InputMaybe<Scalars['String']['input']>;
|
|
1236
|
+
owner?: InputMaybe<Array<InputMaybe<DlActionGranteeInput>>>;
|
|
1237
|
+
right?: InputMaybe<DlActionRightInput>;
|
|
1238
|
+
subsReq?: InputMaybe<SubRequestInput>;
|
|
1239
|
+
};
|
|
1240
|
+
|
|
1241
|
+
export type DlActionRightInput = {
|
|
1242
|
+
grantee?: InputMaybe<Array<InputMaybe<DlActionGranteeInput>>>;
|
|
1243
|
+
right?: InputMaybe<Scalars['String']['input']>;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
export type DlAttributes = {
|
|
1247
|
+
__typename?: 'DLAttributes';
|
|
1248
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
1249
|
+
displayName?: Maybe<Scalars['String']['output']>;
|
|
1250
|
+
mail?: Maybe<Scalars['String']['output']>;
|
|
1251
|
+
zimbraDistributionListSubscriptionPolicy?: Maybe<Scalars['String']['output']>;
|
|
1252
|
+
zimbraDistributionListUnsubscriptionPolicy?: Maybe<Scalars['String']['output']>;
|
|
1253
|
+
zimbraHideInGal?: Maybe<Scalars['String']['output']>;
|
|
1254
|
+
zimbraMailAlias?: Maybe<Scalars['String']['output']>;
|
|
1255
|
+
zimbraMailStatus?: Maybe<Scalars['String']['output']>;
|
|
1256
|
+
zimbraNotes?: Maybe<Scalars['String']['output']>;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1208
1259
|
export type DlDetails = {
|
|
1209
1260
|
__typename?: 'DLDetails';
|
|
1261
|
+
_attrs?: Maybe<DlAttributes>;
|
|
1262
|
+
dynamic?: Maybe<Scalars['Boolean']['output']>;
|
|
1263
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1264
|
+
isMember?: Maybe<Scalars['Boolean']['output']>;
|
|
1265
|
+
isOwner?: Maybe<Scalars['Boolean']['output']>;
|
|
1266
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
1267
|
+
owners?: Maybe<Array<Maybe<DlOwners>>>;
|
|
1268
|
+
rights?: Maybe<Array<Maybe<DlRights>>>;
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
export type DlGrantee = {
|
|
1272
|
+
__typename?: 'DLGrantee';
|
|
1273
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
1274
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
1275
|
+
type?: Maybe<Scalars['String']['output']>;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
export type DlMembersDetails = {
|
|
1279
|
+
__typename?: 'DLMembersDetails';
|
|
1210
1280
|
dlGroupMember?: Maybe<Array<Maybe<DlGroupMember>>>;
|
|
1211
1281
|
dlm?: Maybe<Array<Maybe<Dlm>>>;
|
|
1212
1282
|
more?: Maybe<Scalars['Boolean']['output']>;
|
|
1213
1283
|
total?: Maybe<Scalars['Int']['output']>;
|
|
1214
1284
|
};
|
|
1215
1285
|
|
|
1286
|
+
export type DlOwner = {
|
|
1287
|
+
__typename?: 'DLOwner';
|
|
1288
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1289
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
1290
|
+
type?: Maybe<Scalars['String']['output']>;
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
export type DlOwners = {
|
|
1294
|
+
__typename?: 'DLOwners';
|
|
1295
|
+
owner?: Maybe<Array<Maybe<DlOwner>>>;
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
export type DlRight = {
|
|
1299
|
+
__typename?: 'DLRight';
|
|
1300
|
+
grantee?: Maybe<Array<Maybe<DlGrantee>>>;
|
|
1301
|
+
right?: Maybe<Scalars['String']['output']>;
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
export type DlRights = {
|
|
1305
|
+
__typename?: 'DLRights';
|
|
1306
|
+
right?: Maybe<Array<Maybe<DlRight>>>;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1216
1309
|
export type Dls = {
|
|
1217
1310
|
__typename?: 'DLS';
|
|
1218
1311
|
_attrs?: Maybe<DlsAttrs>;
|
|
@@ -1237,6 +1330,16 @@ export type DlsDetails = {
|
|
|
1237
1330
|
dls?: Maybe<Array<Maybe<Dls>>>;
|
|
1238
1331
|
};
|
|
1239
1332
|
|
|
1333
|
+
export type DlSelectorInput = {
|
|
1334
|
+
_content?: InputMaybe<Scalars['String']['input']>;
|
|
1335
|
+
by?: InputMaybe<Scalars['String']['input']>;
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
export type DlSubscribe = {
|
|
1339
|
+
__typename?: 'DLSubscribe';
|
|
1340
|
+
content?: Maybe<Scalars['String']['output']>;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1240
1343
|
export type DataSource = {
|
|
1241
1344
|
__typename?: 'DataSource';
|
|
1242
1345
|
connectionType?: Maybe<Scalars['String']['output']>;
|
|
@@ -1326,6 +1429,11 @@ export type DismissInput = {
|
|
|
1326
1429
|
id: Scalars['ID']['input'];
|
|
1327
1430
|
};
|
|
1328
1431
|
|
|
1432
|
+
export type DistributionListActionInput = {
|
|
1433
|
+
action?: InputMaybe<DlActionInput>;
|
|
1434
|
+
dl?: InputMaybe<DlSelectorInput>;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1329
1437
|
export type DlAttrs = {
|
|
1330
1438
|
__typename?: 'DlAttrs';
|
|
1331
1439
|
commonName?: Maybe<Scalars['String']['output']>;
|
|
@@ -1414,7 +1522,9 @@ export type EmailAddressInput = {
|
|
|
1414
1522
|
export type EnableTwoFactorAuthInput = {
|
|
1415
1523
|
authToken?: InputMaybe<Scalars['String']['input']>;
|
|
1416
1524
|
csrfTokenSecured: Scalars['Boolean']['input'];
|
|
1525
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
1417
1526
|
ignoreSameSite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1527
|
+
method: Scalars['String']['input'];
|
|
1418
1528
|
name: Scalars['String']['input'];
|
|
1419
1529
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
1420
1530
|
twoFactorCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2235,6 +2345,7 @@ export type MailItem = {
|
|
|
2235
2345
|
size?: Maybe<Scalars['Float']['output']>;
|
|
2236
2346
|
sortField?: Maybe<Scalars['String']['output']>;
|
|
2237
2347
|
subject?: Maybe<Scalars['String']['output']>;
|
|
2348
|
+
subscribe?: Maybe<Array<Maybe<DlSubscribe>>>;
|
|
2238
2349
|
tagNames?: Maybe<Scalars['String']['output']>;
|
|
2239
2350
|
tags?: Maybe<Scalars['String']['output']>;
|
|
2240
2351
|
};
|
|
@@ -2358,6 +2469,7 @@ export type MessageInfo = MailItem & {
|
|
|
2358
2469
|
size?: Maybe<Scalars['Float']['output']>;
|
|
2359
2470
|
sortField?: Maybe<Scalars['String']['output']>;
|
|
2360
2471
|
subject?: Maybe<Scalars['String']['output']>;
|
|
2472
|
+
subscribe?: Maybe<Array<Maybe<DlSubscribe>>>;
|
|
2361
2473
|
tagNames?: Maybe<Scalars['String']['output']>;
|
|
2362
2474
|
tags?: Maybe<Scalars['String']['output']>;
|
|
2363
2475
|
text?: Maybe<Scalars['String']['output']>;
|
|
@@ -2486,6 +2598,7 @@ export type MsgWithGroupInfo = MailItem & {
|
|
|
2486
2598
|
size?: Maybe<Scalars['Float']['output']>;
|
|
2487
2599
|
sortField?: Maybe<Scalars['String']['output']>;
|
|
2488
2600
|
subject?: Maybe<Scalars['String']['output']>;
|
|
2601
|
+
subscribe?: Maybe<Array<Maybe<DlSubscribe>>>;
|
|
2489
2602
|
tagNames?: Maybe<Scalars['String']['output']>;
|
|
2490
2603
|
tags?: Maybe<Scalars['String']['output']>;
|
|
2491
2604
|
};
|
|
@@ -2529,6 +2642,7 @@ export type Mutation = {
|
|
|
2529
2642
|
deleteSignature?: Maybe<Scalars['Boolean']['output']>;
|
|
2530
2643
|
disableTwoFactorAuth?: Maybe<Scalars['Boolean']['output']>;
|
|
2531
2644
|
dismissCalendarItem?: Maybe<Scalars['Boolean']['output']>;
|
|
2645
|
+
distributionListAction?: Maybe<Scalars['Boolean']['output']>;
|
|
2532
2646
|
documentAction?: Maybe<DocumentActionData>;
|
|
2533
2647
|
enableTwoFactorAuth?: Maybe<EnableTwoFactorAuthResponse>;
|
|
2534
2648
|
folderAction?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -2578,10 +2692,12 @@ export type Mutation = {
|
|
|
2578
2692
|
sendInviteReply?: Maybe<InviteReplyResponse>;
|
|
2579
2693
|
sendMessage?: Maybe<SendMessageResponse>;
|
|
2580
2694
|
sendShareNotification?: Maybe<Scalars['Boolean']['output']>;
|
|
2695
|
+
sendTwoFactorAuthCode?: Maybe<SendTwoFactorAuthCodeResponse>;
|
|
2581
2696
|
setCustomMetadata?: Maybe<Scalars['Boolean']['output']>;
|
|
2582
2697
|
setMailboxMetadata?: Maybe<Scalars['Boolean']['output']>;
|
|
2583
2698
|
setRecoveryAccount?: Maybe<Scalars['Boolean']['output']>;
|
|
2584
2699
|
snoozeCalendarItem?: Maybe<Scalars['Boolean']['output']>;
|
|
2700
|
+
subscribeDistributionList?: Maybe<Scalars['String']['output']>;
|
|
2585
2701
|
tagAction?: Maybe<Scalars['Boolean']['output']>;
|
|
2586
2702
|
testExternalAccount?: Maybe<ExternalAccountTestResponse>;
|
|
2587
2703
|
uploadMessage?: Maybe<Scalars['String']['output']>;
|
|
@@ -2804,12 +2920,22 @@ export type MutationDeleteSignatureArgs = {
|
|
|
2804
2920
|
};
|
|
2805
2921
|
|
|
2806
2922
|
|
|
2923
|
+
export type MutationDisableTwoFactorAuthArgs = {
|
|
2924
|
+
method: Scalars['String']['input'];
|
|
2925
|
+
};
|
|
2926
|
+
|
|
2927
|
+
|
|
2807
2928
|
export type MutationDismissCalendarItemArgs = {
|
|
2808
2929
|
appointment?: InputMaybe<Array<InputMaybe<DismissInput>>>;
|
|
2809
2930
|
task?: InputMaybe<DismissInput>;
|
|
2810
2931
|
};
|
|
2811
2932
|
|
|
2812
2933
|
|
|
2934
|
+
export type MutationDistributionListActionArgs = {
|
|
2935
|
+
dlActions: DistributionListActionInput;
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
|
|
2813
2939
|
export type MutationDocumentActionArgs = {
|
|
2814
2940
|
action: FolderActionInput;
|
|
2815
2941
|
};
|
|
@@ -3072,6 +3198,11 @@ export type MutationSendShareNotificationArgs = {
|
|
|
3072
3198
|
};
|
|
3073
3199
|
|
|
3074
3200
|
|
|
3201
|
+
export type MutationSendTwoFactorAuthCodeArgs = {
|
|
3202
|
+
options: SendTwoFactorAuthCodeInput;
|
|
3203
|
+
};
|
|
3204
|
+
|
|
3205
|
+
|
|
3075
3206
|
export type MutationSetCustomMetadataArgs = {
|
|
3076
3207
|
customMetaData: CustomMetadataInput;
|
|
3077
3208
|
};
|
|
@@ -3097,6 +3228,13 @@ export type MutationSnoozeCalendarItemArgs = {
|
|
|
3097
3228
|
};
|
|
3098
3229
|
|
|
3099
3230
|
|
|
3231
|
+
export type MutationSubscribeDistributionListArgs = {
|
|
3232
|
+
by?: InputMaybe<Scalars['String']['input']>;
|
|
3233
|
+
dl: Scalars['String']['input'];
|
|
3234
|
+
op: Scalars['String']['input'];
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3237
|
+
|
|
3100
3238
|
export type MutationTagActionArgs = {
|
|
3101
3239
|
action?: InputMaybe<FolderActionInput>;
|
|
3102
3240
|
};
|
|
@@ -3292,6 +3430,7 @@ export type Preferences = {
|
|
|
3292
3430
|
zimbraPrefDisplayExternalImages?: Maybe<Scalars['Boolean']['output']>;
|
|
3293
3431
|
zimbraPrefDisplayTimeInMailList?: Maybe<Scalars['Boolean']['output']>;
|
|
3294
3432
|
zimbraPrefExternalSendersType?: Maybe<ExternalSendersType>;
|
|
3433
|
+
zimbraPrefForwardReplyInOriginalFormat?: Maybe<Scalars['Boolean']['output']>;
|
|
3295
3434
|
zimbraPrefGroupMailBy?: Maybe<Scalars['String']['output']>;
|
|
3296
3435
|
zimbraPrefHtmlEditorDefaultFontColor?: Maybe<Scalars['String']['output']>;
|
|
3297
3436
|
zimbraPrefHtmlEditorDefaultFontFamily?: Maybe<Scalars['String']['output']>;
|
|
@@ -3318,6 +3457,7 @@ export type Preferences = {
|
|
|
3318
3457
|
zimbraPrefPasswordRecoveryAddress?: Maybe<Scalars['String']['output']>;
|
|
3319
3458
|
zimbraPrefPasswordRecoveryAddressStatus?: Maybe<PasswordRecoveryAddressStatus>;
|
|
3320
3459
|
zimbraPrefPowerPasteEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3460
|
+
zimbraPrefPrimaryTwoFactorAuthMethod?: Maybe<Scalars['String']['output']>;
|
|
3321
3461
|
zimbraPrefReadingPaneEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
3322
3462
|
zimbraPrefReadingPaneLocation?: Maybe<ReadingPaneLocation>;
|
|
3323
3463
|
zimbraPrefSaveToSent?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -3354,6 +3494,7 @@ export type PreferencesInput = {
|
|
|
3354
3494
|
zimbraPrefDisplayExternalImages?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3355
3495
|
zimbraPrefDisplayTimeInMailList?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3356
3496
|
zimbraPrefExternalSendersType?: InputMaybe<ExternalSendersType>;
|
|
3497
|
+
zimbraPrefForwardReplyInOriginalFormat?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3357
3498
|
zimbraPrefGroupMailBy?: InputMaybe<Scalars['String']['input']>;
|
|
3358
3499
|
zimbraPrefHtmlEditorDefaultFontColor?: InputMaybe<Scalars['String']['input']>;
|
|
3359
3500
|
zimbraPrefHtmlEditorDefaultFontFamily?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3378,6 +3519,7 @@ export type PreferencesInput = {
|
|
|
3378
3519
|
zimbraPrefOutOfOfficeSuppressExternalReply?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3379
3520
|
zimbraPrefOutOfOfficeUntilDate?: InputMaybe<Scalars['String']['input']>;
|
|
3380
3521
|
zimbraPrefPowerPasteEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3522
|
+
zimbraPrefPrimaryTwoFactorAuthMethod?: InputMaybe<Scalars['String']['input']>;
|
|
3381
3523
|
zimbraPrefReadingPaneEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3382
3524
|
zimbraPrefReadingPaneLocation?: InputMaybe<ReadingPaneLocation>;
|
|
3383
3525
|
zimbraPrefSaveToSent?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -3443,7 +3585,8 @@ export type Query = {
|
|
|
3443
3585
|
getCustomMetadata?: Maybe<CustomMetadata>;
|
|
3444
3586
|
getDataSources: DataSources;
|
|
3445
3587
|
getDeviceStatus?: Maybe<Array<Maybe<Device>>>;
|
|
3446
|
-
|
|
3588
|
+
getDistributionList?: Maybe<Dl>;
|
|
3589
|
+
getDistributionListMembers?: Maybe<DlMembersDetails>;
|
|
3447
3590
|
getDocumentShareURL?: Maybe<GetDocumentShareUrlResponse>;
|
|
3448
3591
|
getFilterRules?: Maybe<Array<Maybe<Filter>>>;
|
|
3449
3592
|
getFolder?: Maybe<Folder>;
|
|
@@ -3585,6 +3728,14 @@ export type QueryGetCustomMetadataArgs = {
|
|
|
3585
3728
|
};
|
|
3586
3729
|
|
|
3587
3730
|
|
|
3731
|
+
export type QueryGetDistributionListArgs = {
|
|
3732
|
+
by?: InputMaybe<Scalars['String']['input']>;
|
|
3733
|
+
dl?: InputMaybe<Scalars['String']['input']>;
|
|
3734
|
+
needOwners?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3735
|
+
needRights?: InputMaybe<Scalars['String']['input']>;
|
|
3736
|
+
};
|
|
3737
|
+
|
|
3738
|
+
|
|
3588
3739
|
export type QueryGetDistributionListMembersArgs = {
|
|
3589
3740
|
dl?: InputMaybe<Scalars['String']['input']>;
|
|
3590
3741
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4068,6 +4219,16 @@ export type SendMessageResponse = {
|
|
|
4068
4219
|
message?: Maybe<Array<Maybe<MsgWithGroupInfo>>>;
|
|
4069
4220
|
};
|
|
4070
4221
|
|
|
4222
|
+
export type SendTwoFactorAuthCodeInput = {
|
|
4223
|
+
action: Scalars['String']['input'];
|
|
4224
|
+
authToken: Scalars['String']['input'];
|
|
4225
|
+
};
|
|
4226
|
+
|
|
4227
|
+
export type SendTwoFactorAuthCodeResponse = {
|
|
4228
|
+
__typename?: 'SendTwoFactorAuthCodeResponse';
|
|
4229
|
+
status?: Maybe<Array<Maybe<StringContent>>>;
|
|
4230
|
+
};
|
|
4231
|
+
|
|
4071
4232
|
export type Session = {
|
|
4072
4233
|
__typename?: 'Session';
|
|
4073
4234
|
_content?: Maybe<Scalars['String']['output']>;
|
|
@@ -4291,6 +4452,16 @@ export type StringContent = {
|
|
|
4291
4452
|
_content?: Maybe<Scalars['String']['output']>;
|
|
4292
4453
|
};
|
|
4293
4454
|
|
|
4455
|
+
export type SubRequestInput = {
|
|
4456
|
+
_content?: InputMaybe<Scalars['String']['input']>;
|
|
4457
|
+
op?: InputMaybe<Scalars['String']['input']>;
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
export type SubscribeDistributionList = {
|
|
4461
|
+
__typename?: 'SubscribeDistributionList';
|
|
4462
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
4463
|
+
};
|
|
4464
|
+
|
|
4294
4465
|
export type Tag = {
|
|
4295
4466
|
__typename?: 'Tag';
|
|
4296
4467
|
color?: Maybe<Scalars['Int']['output']>;
|