@zimbra/api-client 93.0.0 → 94.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 +7 -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 +7 -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 +1 -1
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/batch-client/index.ts +40 -26
- package/src/batch-client/types.ts +2 -1
- package/src/schema/generated-schema-types.ts +8 -2
- package/src/schema/schema.graphql +7 -2
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
|
|
@@ -3089,7 +3094,6 @@ input EnableTwoFactorAuthInput {
|
|
|
3089
3094
|
twoFactorCode: String
|
|
3090
3095
|
authToken: String
|
|
3091
3096
|
csrfTokenSecured: Boolean!
|
|
3092
|
-
ignoreSameSite: Boolean
|
|
3093
3097
|
}
|
|
3094
3098
|
|
|
3095
3099
|
input SendTwoFactorAuthCodeInput {
|
|
@@ -3685,6 +3689,8 @@ type Mutation {
|
|
|
3685
3689
|
loginNewPassword: String!
|
|
3686
3690
|
password: String!
|
|
3687
3691
|
username: String!
|
|
3692
|
+
authToken: String
|
|
3693
|
+
csrfToken: String
|
|
3688
3694
|
): AuthResponse
|
|
3689
3695
|
modifyProfileImage(
|
|
3690
3696
|
content: String
|
|
@@ -3771,7 +3777,6 @@ type Mutation {
|
|
|
3771
3777
|
twoFactorCode: String
|
|
3772
3778
|
deviceTrusted: Boolean
|
|
3773
3779
|
csrfTokenSecured: Boolean!
|
|
3774
|
-
ignoreSameSite: Boolean
|
|
3775
3780
|
): AuthResponse
|
|
3776
3781
|
enableTwoFactorAuth(
|
|
3777
3782
|
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;
|
|
@@ -376,6 +376,7 @@ export type AuthResponse = {
|
|
|
376
376
|
authToken?: Maybe<Array<Maybe<AuthToken>>>;
|
|
377
377
|
csrfToken?: Maybe<CsrfToken>;
|
|
378
378
|
lifetime?: Maybe<Scalars['Float']['output']>;
|
|
379
|
+
resetPassword?: Maybe<ResetPassword>;
|
|
379
380
|
session?: Maybe<Session>;
|
|
380
381
|
skin?: Maybe<Array<Maybe<Skin>>>;
|
|
381
382
|
trustedDevicesEnabled?: Maybe<TrustedDevicesEnabled>;
|
|
@@ -1395,7 +1396,6 @@ export type EnableTwoFactorAuthInput = {
|
|
|
1395
1396
|
authToken?: InputMaybe<Scalars['String']['input']>;
|
|
1396
1397
|
csrfTokenSecured: Scalars['Boolean']['input'];
|
|
1397
1398
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
1398
|
-
ignoreSameSite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1399
1399
|
method: Scalars['String']['input'];
|
|
1400
1400
|
name: Scalars['String']['input'];
|
|
1401
1401
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2531,6 +2531,8 @@ export type MutationChangeFolderColorArgs = {
|
|
|
2531
2531
|
id: Scalars['ID']['input'];
|
|
2532
2532
|
};
|
|
2533
2533
|
export type MutationChangePasswordArgs = {
|
|
2534
|
+
authToken?: InputMaybe<Scalars['String']['input']>;
|
|
2535
|
+
csrfToken?: InputMaybe<Scalars['String']['input']>;
|
|
2534
2536
|
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2535
2537
|
loginNewPassword: Scalars['String']['input'];
|
|
2536
2538
|
password: Scalars['String']['input'];
|
|
@@ -2673,7 +2675,6 @@ export type MutationItemActionArgs = {
|
|
|
2673
2675
|
export type MutationLoginArgs = {
|
|
2674
2676
|
csrfTokenSecured: Scalars['Boolean']['input'];
|
|
2675
2677
|
deviceTrusted?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2676
|
-
ignoreSameSite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2677
2678
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
2678
2679
|
persistAuthTokenCookie?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2679
2680
|
recoveryCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3492,6 +3493,10 @@ export type ReplyActionInput = {
|
|
|
3492
3493
|
content?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3493
3494
|
index?: InputMaybe<Scalars['Int']['input']>;
|
|
3494
3495
|
};
|
|
3496
|
+
export type ResetPassword = {
|
|
3497
|
+
__typename?: 'ResetPassword';
|
|
3498
|
+
_content?: Maybe<Scalars['Boolean']['output']>;
|
|
3499
|
+
};
|
|
3495
3500
|
export type ResetPasswordResponse = {
|
|
3496
3501
|
__typename?: 'ResetPasswordResponse';
|
|
3497
3502
|
attrs?: Maybe<ResetPasswordResponseAttributes>;
|