@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.
@@ -328,6 +328,10 @@ type AuthResponse {
328
328
  authToken: [AuthToken]
329
329
  twoFactorAuthRequired: TwoFactorAuthRequired
330
330
  trustedDevicesEnabled: TrustedDevicesEnabled
331
+ zimbraPrefPasswordRecoveryAddress: StringContent
332
+ zimbraPrefPrimaryTwoFactorAuthMethod: StringContent
333
+ zimbraTwoFactorAuthMethodAllowed: [String]
334
+ zimbraTwoFactorAuthMethodEnabled: [String]
331
335
  lifetime: Float
332
336
  session: Session
333
337
  skin: [Skin]
@@ -353,6 +357,10 @@ type EnableTwoFactorAuthResponse {
353
357
  csrfToken: [CsrfToken]
354
358
  }
355
359
 
360
+ type SendTwoFactorAuthCodeResponse {
361
+ status: [StringContent]
362
+ }
363
+
356
364
  type ProfileImageChangeResponse {
357
365
  itemId: ID
358
366
  }
@@ -464,6 +472,10 @@ type ShareNotification {
464
472
  content: String
465
473
  }
466
474
 
475
+ type DLSubscribe {
476
+ content: String
477
+ }
478
+
467
479
  type MessageAttributes {
468
480
  isEncrypted: Boolean
469
481
  isSigned: Boolean
@@ -488,6 +500,7 @@ interface MailItem {
488
500
  invitations: [InviteInfo] # inv
489
501
  sortField: String # sf, Sort field used for cursor-based pagination
490
502
  share: [ShareNotification] # shr
503
+ subscribe: [DLSubscribe] # dlSub
491
504
  replyType: String #rt
492
505
  }
493
506
 
@@ -538,6 +551,7 @@ type MessageInfo implements MailItem {
538
551
  attachments: [MimePart]
539
552
  inlineAttachments: [MimePart]
540
553
  share: [ShareNotification] # shr
554
+ subscribe: [DLSubscribe] # dlSub
541
555
  replyType: String #rt
542
556
  attributes: MessageAttributes
543
557
  isEncrypted: Boolean
@@ -571,6 +585,7 @@ type Conversation implements MailItem {
571
585
  numMessages: Float # n, Number of messages in this conversation
572
586
  unread: Float # u
573
587
  share: [ShareNotification] # shr
588
+ subscribe: [DLSubscribe] # dlSub
574
589
  replyType: String #rt
575
590
  meta: [CustomMetadataMeta]
576
591
  }
@@ -600,6 +615,7 @@ type MsgWithGroupInfo implements MailItem {
600
615
  invitations: [InviteInfo] # inv
601
616
  sortField: String # sf, Sort field used for cursor-based pagination
602
617
  share: [ShareNotification] # shr
618
+ subscribe: [DLSubscribe] # dlSub
603
619
  replyType: String #rt
604
620
  }
605
621
 
@@ -1192,7 +1208,7 @@ type DLSAttrs {
1192
1208
  zimbraHideInGal: String
1193
1209
  }
1194
1210
 
1195
- type DLS {
1211
+ type DLS {
1196
1212
  d: String
1197
1213
  dynamic: Boolean
1198
1214
  id: String
@@ -1201,18 +1217,74 @@ type DLSAttrs {
1201
1217
  name: String
1202
1218
  ref: String
1203
1219
  _attrs: DLSAttrs
1204
- }
1220
+ }
1205
1221
 
1206
- type DLSDetails {
1222
+ type DLSDetails {
1207
1223
  dls: [DLS]
1208
- }
1224
+ }
1225
+
1226
+ type DLOwner {
1227
+ id: String
1228
+ name: String
1229
+ type: String
1230
+ }
1231
+
1232
+ type DLOwners {
1233
+ owner: [DLOwner]
1234
+ }
1235
+
1236
+ type DLAttributes {
1237
+ description: String
1238
+ displayName: String
1239
+ mail: String
1240
+ zimbraDistributionListSubscriptionPolicy: String
1241
+ zimbraDistributionListUnsubscriptionPolicy: String
1242
+ zimbraHideInGal: String
1243
+ zimbraMailAlias: String
1244
+ zimbraMailStatus: String
1245
+ zimbraNotes: String
1246
+ }
1247
+
1248
+ type SubscribeDistributionList {
1249
+ status: String
1250
+ }
1251
+
1252
+ type DLGrantee {
1253
+ id: ID
1254
+ type: String
1255
+ name: String
1256
+ }
1257
+
1258
+ type DLRight {
1259
+ right: String
1260
+ grantee: [DLGrantee]
1261
+ }
1262
+
1263
+ type DLRights {
1264
+ right: [DLRight]
1265
+ }
1266
+
1267
+ type DLDetails {
1268
+ dynamic: Boolean
1269
+ id: String
1270
+ isMember: Boolean
1271
+ isOwner: Boolean
1272
+ name: String
1273
+ owners: [DLOwners]
1274
+ rights: [DLRights]
1275
+ _attrs: DLAttributes
1276
+ }
1277
+
1278
+ type DL {
1279
+ dl: [DLDetails]
1280
+ }
1209
1281
 
1210
- type DLDetails {
1282
+ type DLMembersDetails {
1211
1283
  dlm: [Dlm]
1212
1284
  dlGroupMember: [DlGroupMember]
1213
1285
  more: Boolean,
1214
1286
  total: Int
1215
- }
1287
+ }
1216
1288
 
1217
1289
  type HabGroup {
1218
1290
  name: String
@@ -1413,6 +1485,8 @@ type AccountInfoAttrs {
1413
1485
  zimbraFeatureZulipChatEnabled: Boolean
1414
1486
  zimbraFeatureDocumentEditingEnabled: Boolean
1415
1487
  zimbraTwoFactorAuthEnabled: Boolean
1488
+ zimbraTwoFactorAuthMethodAllowed: [String]
1489
+ zimbraTwoFactorAuthMethodEnabled: [String]
1416
1490
  zimbraFeatureTrustedDevicesEnabled: Boolean
1417
1491
  zimbraFeatureAntispamEnabled: Boolean
1418
1492
  zimbraFeatureAppSpecificPasswordsEnabled: Boolean
@@ -1547,6 +1621,7 @@ type Preferences {
1547
1621
  zimbraPrefCalendarAlwaysShowMiniCal: Boolean
1548
1622
  zimbraPrefComposeDirection: String
1549
1623
  zimbraPrefComposeFormat: Mode
1624
+ zimbraPrefForwardReplyInOriginalFormat: Boolean
1550
1625
  zimbraPrefHtmlEditorDefaultFontColor: String
1551
1626
  zimbraPrefHtmlEditorDefaultFontFamily: String
1552
1627
  zimbraPrefHtmlEditorDefaultFontSize: String
@@ -1595,6 +1670,7 @@ type Preferences {
1595
1670
  zimbraPrefTagTreeOpen: Boolean
1596
1671
  zimbraPrefPowerPasteEnabled: Boolean
1597
1672
  zimbraPrefDisplayTimeInMailList: Boolean
1673
+ zimbraPrefPrimaryTwoFactorAuthMethod: String
1598
1674
  }
1599
1675
 
1600
1676
  type GetAppointmentResponse {
@@ -1733,6 +1809,7 @@ type Contact {
1733
1809
  attributes: ContactAttributes
1734
1810
  members: [ContactListMember]
1735
1811
  certificate: [SmimeCert]
1812
+ isOwner: Boolean
1736
1813
  }
1737
1814
 
1738
1815
  type OtherContactAttribute {
@@ -2604,6 +2681,7 @@ input PreferencesInput {
2604
2681
  zimbraPrefCalendarAlwaysShowMiniCal: Boolean
2605
2682
  zimbraPrefComposeDirection: String
2606
2683
  zimbraPrefComposeFormat: Mode
2684
+ zimbraPrefForwardReplyInOriginalFormat: Boolean
2607
2685
  zimbraPrefExternalSendersType: ExternalSendersType
2608
2686
  zimbraPrefHtmlEditorDefaultFontColor: String
2609
2687
  zimbraPrefHtmlEditorDefaultFontFamily: String
@@ -2648,6 +2726,7 @@ input PreferencesInput {
2648
2726
  zimbraPrefTagTreeOpen: Boolean
2649
2727
  zimbraPrefPowerPasteEnabled: Boolean
2650
2728
  zimbraPrefDisplayTimeInMailList: Boolean
2729
+ zimbraPrefPrimaryTwoFactorAuthMethod: String
2651
2730
  }
2652
2731
 
2653
2732
  input ModifyIdentityInput {
@@ -2973,6 +3052,8 @@ input ExternalAccountModifyAttrsInput {
2973
3052
 
2974
3053
  input EnableTwoFactorAuthInput {
2975
3054
  name: String!
3055
+ method: String!
3056
+ email: String
2976
3057
  password: String
2977
3058
  twoFactorCode: String
2978
3059
  authToken: String
@@ -2980,6 +3061,11 @@ input EnableTwoFactorAuthInput {
2980
3061
  ignoreSameSite: Boolean
2981
3062
  }
2982
3063
 
3064
+ input SendTwoFactorAuthCodeInput {
3065
+ action: String!
3066
+ authToken: String!
3067
+ }
3068
+
2983
3069
  input ExternalAccountImportInput {
2984
3070
  accountType: AccountType
2985
3071
  id: ID!
@@ -3113,6 +3199,46 @@ input SaveDocumentInput {
3113
3199
  document: SaveDocumentInput
3114
3200
  }
3115
3201
 
3202
+ input DLActionAttrInput {
3203
+ attributeName: String
3204
+ content: String
3205
+ }
3206
+
3207
+ input DLActionGranteeInput {
3208
+ by: String
3209
+ type: String
3210
+ _content: String
3211
+ }
3212
+
3213
+ input DLActionRightInput {
3214
+ right: String
3215
+ grantee: [DLActionGranteeInput]
3216
+ }
3217
+
3218
+ input SubRequestInput {
3219
+ op: String
3220
+ _content: String
3221
+ }
3222
+
3223
+ input DLActionInput {
3224
+ operation: String
3225
+ attributes: [DLActionAttrInput]
3226
+ right: DLActionRightInput
3227
+ owner: [DLActionGranteeInput]
3228
+ subsReq: SubRequestInput
3229
+ distributionListMembers: [MethodInput]
3230
+ }
3231
+
3232
+ input DLSelectorInput {
3233
+ by: String
3234
+ _content: String
3235
+ }
3236
+
3237
+ input DistributionListActionInput {
3238
+ action: DLActionInput
3239
+ dl: DLSelectorInput
3240
+ }
3241
+
3116
3242
  type SaveDocument {
3117
3243
  id: ID
3118
3244
  version: Int
@@ -3393,11 +3519,17 @@ type Query {
3393
3519
  attrs: String
3394
3520
  ownerOf: Int
3395
3521
  ): DLSDetails
3522
+ getDistributionList(
3523
+ needOwners: Boolean
3524
+ needRights: String
3525
+ dl: String
3526
+ by: String
3527
+ ): DL
3396
3528
  getDistributionListMembers(
3397
3529
  limit: Int
3398
3530
  offset: Int
3399
3531
  dl: String
3400
- ): DLDetails
3532
+ ): DLMembersDetails
3401
3533
  getCustomMetadata(id: ID!, section: String): CustomMetadata
3402
3534
  getMailboxMetadata(section: String): MailboxMetadata
3403
3535
  getMessage(
@@ -3612,7 +3744,7 @@ type Mutation {
3612
3744
  enableTwoFactorAuth(
3613
3745
  options: EnableTwoFactorAuthInput!
3614
3746
  ): EnableTwoFactorAuthResponse
3615
- disableTwoFactorAuth: Boolean
3747
+ disableTwoFactorAuth(method: String!): Boolean
3616
3748
  messageAction(ids: [ID!]!, op: String!): Boolean
3617
3749
  modifyExternalAccount(
3618
3750
  id: ID!
@@ -3667,6 +3799,9 @@ type Mutation {
3667
3799
  sendDeliveryReport(messageId: ID!): Boolean
3668
3800
  sendInviteReply(inviteReply: InviteReplyInput!): InviteReplyResponse
3669
3801
  sendShareNotification(shareNotification: ShareNotificationInput!): Boolean
3802
+ sendTwoFactorAuthCode(
3803
+ options: SendTwoFactorAuthCodeInput!
3804
+ ): SendTwoFactorAuthCodeResponse
3670
3805
  setCustomMetadata(customMetaData: CustomMetadataInput!): Boolean
3671
3806
  setMailboxMetadata(
3672
3807
  section: String
@@ -3691,6 +3826,8 @@ type Mutation {
3691
3826
  cancelPendingAccountOnlyRemoteWipeSync(deviceId: String): Device
3692
3827
  remoteWipeSync(deviceId: String): Device
3693
3828
  cancelPendingRemoteWipeSync(deviceId: String): Device
3829
+ subscribeDistributionList(op: String!, by: String, dl: String!): String
3830
+ distributionListAction(dlActions: DistributionListActionInput!): Boolean
3694
3831
  }
3695
3832
 
3696
3833
  schema {
@@ -1,5 +1,5 @@
1
1
  import { JsonRequestOptions } from '../request/types';
2
- import { AddMsgInput, CalendarItemInput, CounterAppointmentInput, CreateContactInput, CreateIdentityInput, CreateMountpointInput, CreateTagInput, DeleteAppointmentInput, DeleteIdentityInput, EnableTwoFactorAuthInput, ExternalAccountAddInput, ExternalAccountImportInput, ExternalAccountTestInput, FilterInput, FolderActionChangeColorInput, FolderActionCheckCalendarInput, ForwardAppointmentInput, ForwardAppointmentInviteInput, GetRightsInput, GrantRightsInput, InviteReplyInput, ModifyContactInput, ModifyIdentityInput, PreferencesInput, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
2
+ import { AddMsgInput, CalendarItemInput, CounterAppointmentInput, CreateContactInput, CreateIdentityInput, CreateMountpointInput, CreateTagInput, DeleteAppointmentInput, DeleteIdentityInput, DistributionListActionInput, EnableTwoFactorAuthInput, ExternalAccountAddInput, ExternalAccountImportInput, ExternalAccountTestInput, FilterInput, FolderActionChangeColorInput, FolderActionCheckCalendarInput, ForwardAppointmentInput, ForwardAppointmentInviteInput, GetRightsInput, GrantRightsInput, InviteReplyInput, ModifyContactInput, ModifyIdentityInput, PreferencesInput, RevokeRightsInput, SaveSMimeCertInputUpload, SearchFolderInput, SendMessageInput, SendTwoFactorAuthCodeInput, ShareNotificationInput, SignatureInput, WhiteBlackListInput, ZimletPreferenceInput } from '../schema/generated-schema-types';
3
3
  import { ActionOptions, ActionType, ApplyFilterRulesOptions, AppointmentOptions, AutoCompleteGALOptions, AutoCompleteOptions, ChangePasswordOptions, CreateFolderOptions, CreateSearchFolderOptions, DiscoverRightOptions, ExternalAccountDeleteInput, ExternalAccountModifyInput, FreeBusyOptions, GetContactFrequencyOptions, GetContactOptions, GetConversationOptions, GetCustomMetadataOptions, GetDocumentShareURLOptions, GetFolderOptions, GetMailboxMetadataOptions, GetMessageOptions, GetSMimePublicCertsOptions, LoginOptions, ModifyProfileImageOptions, NoOpOptions, RecoverAccountOptions, RelatedContactsOptions, ResetPasswordOptions, SaveDocumentInput, SearchCalendarResourcesOptions, SearchOptions, SetRecoveryAccountOptions, ShareInfoOptions, WorkingHoursOptions, ZimbraClientOptions } from './types';
4
4
  import { Notifier } from './notifier';
5
5
  export declare class ZimbraBatchClient {
@@ -54,9 +54,10 @@ export declare class ZimbraBatchClient {
54
54
  deleteExternalAccount: ({ id }: ExternalAccountDeleteInput) => Promise<boolean>;
55
55
  deleteIdentity: (identity: DeleteIdentityInput) => Promise<boolean>;
56
56
  deleteSignature: (options: SignatureInput) => Promise<boolean>;
57
- disableTwoFactorAuth: () => Promise<boolean>;
57
+ disableTwoFactorAuth: (method: string) => Promise<boolean>;
58
58
  discoverRights: ({ right }: DiscoverRightOptions) => Promise<any>;
59
59
  dismissCalendarItem: (appointment: any, task: any) => Promise<boolean>;
60
+ distributionListAction: ({ action, dl }: DistributionListActionInput) => Promise<boolean>;
60
61
  documentAction: (options: ActionOptions) => Promise<any>;
61
62
  documentActionResponse: (type: ActionType, options: ActionOptions) => Promise<any>;
62
63
  downloadAttachment: ({ id, part }: any) => Promise<{
@@ -72,7 +73,7 @@ export declare class ZimbraBatchClient {
72
73
  content: any;
73
74
  isSecure: any;
74
75
  }>;
75
- enableTwoFactorAuth: ({ name, password, authToken, twoFactorCode, csrfTokenSecured, ignoreSameSite }: EnableTwoFactorAuthInput) => Promise<any>;
76
+ enableTwoFactorAuth: ({ name, email, method, password, authToken, twoFactorCode, csrfTokenSecured, ignoreSameSite }: EnableTwoFactorAuthInput) => Promise<any>;
76
77
  endSessionBeaconRequest: (options: JsonRequestOptions) => void;
77
78
  folderAction: (options: ActionOptions) => Promise<boolean>;
78
79
  forwardAppointment: (body: ForwardAppointmentInput) => Promise<boolean>;
@@ -93,6 +94,7 @@ export declare class ZimbraBatchClient {
93
94
  getCustomMetadata: ({ id, section }: GetCustomMetadataOptions) => Promise<{}>;
94
95
  getDataSources: () => Promise<{}>;
95
96
  getDeviceStatus: () => Promise<any>;
97
+ getDistributionList: (dl: String, needOwners: Boolean, needRights: String, by: String) => Promise<any>;
96
98
  getDistributionListMembers: (limit: String, offset: String, dl: String) => Promise<any>;
97
99
  getDocumentShareURL: (options: GetDocumentShareURLOptions) => Promise<any>;
98
100
  getFilterRules: () => Promise<any>;
@@ -127,7 +129,7 @@ export declare class ZimbraBatchClient {
127
129
  itemAction: (options: ActionOptions) => Promise<boolean>;
128
130
  jsonRequest: (options: JsonRequestOptions) => Promise<any>;
129
131
  listDocumentRevisions: ({ id, version, count }: any) => Promise<any>;
130
- login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured, ignoreSameSite }: LoginOptions) => Promise<{}>;
132
+ login: ({ username, password, recoveryCode, tokenType, persistAuthTokenCookie, twoFactorCode, deviceTrusted, csrfTokenSecured, ignoreSameSite }: LoginOptions) => Promise<any>;
131
133
  logout: () => Promise<boolean>;
132
134
  messageAction: (options: ActionOptions) => Promise<boolean>;
133
135
  modifyAppointment: (accountName: string, appointment: CalendarItemInput) => Promise<any>;
@@ -170,6 +172,7 @@ export declare class ZimbraBatchClient {
170
172
  sendInviteReply: (requestOptions: InviteReplyInput) => Promise<any>;
171
173
  sendMessage: (message: SendMessageInput, accountName: string, sign: Boolean, encrypt: Boolean) => Promise<any>;
172
174
  sendShareNotification: (body: ShareNotificationInput) => Promise<boolean>;
175
+ sendTwoFactorAuthCode: ({ action, authToken }: SendTwoFactorAuthCodeInput) => Promise<any>;
173
176
  setCsrfToken: (csrfToken: string) => void;
174
177
  setCustomMetadata: (variables: any) => Promise<boolean>;
175
178
  setJwtToken: (jwtToken: string) => void;
@@ -177,6 +180,7 @@ export declare class ZimbraBatchClient {
177
180
  setUserAgent: (userAgent: Object) => void;
178
181
  shareInfo: (options: ShareInfoOptions) => Promise<any>;
179
182
  snoozeCalendarItem: (appointment: any, task: any) => Promise<boolean>;
183
+ subscribeDistributionList: (op: String, by: String, dl: String) => Promise<any>;
180
184
  taskFolders: () => Promise<any>;
181
185
  testExternalAccount: ({ accountType, ...accountInfo }: ExternalAccountTestInput) => Promise<{}>;
182
186
  uploadMessage: (message: string) => any;
@@ -61,3 +61,5 @@ export declare const ZimletConfigHostEntity: Entity;
61
61
  export declare const ZimletConfigEntity: Entity;
62
62
  export declare const ActionData: Entity;
63
63
  export declare const DocumentActionData: Entity;
64
+ export declare const DLActionAttrEntity: Entity;
65
+ export declare const DLActionEntity: Entity;