Skip to content
Merged
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "7146a71", "specHash": "7eec0db", "version": "10.13.0" }
{ "engineHash": "7146a71", "specHash": "86fcc6c", "version": "10.13.0" }
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions src/managers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ export interface UpdateUserByIdRequestBody {
/**
* Whether the user is required to reset their password. */
readonly isPasswordResetRequired?: boolean;
/**
* Whether collaborators can access content owned by the user when
* the user is inactive. This setting preserves existing
* collaborator access and does not grant new permissions. */
readonly isCollaboratedContentAvailableWhenOwnerInactive?: boolean;
/**
* The user's account status. */
readonly status?: UpdateUserByIdRequestBodyStatusField;
Expand Down Expand Up @@ -1375,6 +1380,8 @@ export function serializeUpdateUserByIdRequestBody(
['is_exempt_from_device_limits']: val.isExemptFromDeviceLimits,
['is_exempt_from_login_verification']: val.isExemptFromLoginVerification,
['is_password_reset_required']: val.isPasswordResetRequired,
['is_collaborated_content_available_when_owner_inactive']:
val.isCollaboratedContentAvailableWhenOwnerInactive,
['status']:
val.status == void 0
? val.status
Expand Down Expand Up @@ -1555,6 +1562,19 @@ export function deserializeUpdateUserByIdRequestBody(
val.is_password_reset_required == void 0
? void 0
: val.is_password_reset_required;
if (
!(val.is_collaborated_content_available_when_owner_inactive == void 0) &&
!sdIsBoolean(val.is_collaborated_content_available_when_owner_inactive)
) {
throw new BoxSdkError({
message:
'Expecting boolean for "is_collaborated_content_available_when_owner_inactive" of type "UpdateUserByIdRequestBody"',
});
}
const isCollaboratedContentAvailableWhenOwnerInactive: undefined | boolean =
val.is_collaborated_content_available_when_owner_inactive == void 0
? void 0
: val.is_collaborated_content_available_when_owner_inactive;
const status: undefined | UpdateUserByIdRequestBodyStatusField =
val.status == void 0
? void 0
Expand Down Expand Up @@ -1603,6 +1623,8 @@ export function deserializeUpdateUserByIdRequestBody(
isExemptFromDeviceLimits: isExemptFromDeviceLimits,
isExemptFromLoginVerification: isExemptFromLoginVerification,
isPasswordResetRequired: isPasswordResetRequired,
isCollaboratedContentAvailableWhenOwnerInactive:
isCollaboratedContentAvailableWhenOwnerInactive,
status: status,
spaceAmount: spaceAmount,
notificationEmail: notificationEmail,
Expand Down
22 changes: 22 additions & 0 deletions src/schemas/userFull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class UserFull extends User {
readonly isExternalCollabRestricted?: boolean;
readonly isExemptFromDeviceLimits?: boolean;
readonly isExemptFromLoginVerification?: boolean;
readonly isCollaboratedContentAvailableWhenOwnerInactive?: boolean;
readonly enterprise?: UserFullEnterpriseField;
readonly myTags?: readonly string[];
readonly hostname?: string;
Expand Down Expand Up @@ -80,6 +81,10 @@ export class UserFull extends User {
if (fields.isExemptFromLoginVerification !== undefined) {
this.isExemptFromLoginVerification = fields.isExemptFromLoginVerification;
}
if (fields.isCollaboratedContentAvailableWhenOwnerInactive !== undefined) {
this.isCollaboratedContentAvailableWhenOwnerInactive =
fields.isCollaboratedContentAvailableWhenOwnerInactive;
}
if (fields.enterprise !== undefined) {
this.enterprise = fields.enterprise;
}
Expand Down Expand Up @@ -195,6 +200,8 @@ export function serializeUserFull(val: UserFull): SerializedData {
['is_external_collab_restricted']: val.isExternalCollabRestricted,
['is_exempt_from_device_limits']: val.isExemptFromDeviceLimits,
['is_exempt_from_login_verification']: val.isExemptFromLoginVerification,
['is_collaborated_content_available_when_owner_inactive']:
val.isCollaboratedContentAvailableWhenOwnerInactive,
['enterprise']:
val.enterprise == void 0
? val.enterprise
Expand Down Expand Up @@ -287,6 +294,19 @@ export function deserializeUserFull(val: SerializedData): UserFull {
val.is_exempt_from_login_verification == void 0
? void 0
: val.is_exempt_from_login_verification;
if (
!(val.is_collaborated_content_available_when_owner_inactive == void 0) &&
!sdIsBoolean(val.is_collaborated_content_available_when_owner_inactive)
) {
throw new BoxSdkError({
message:
'Expecting boolean for "is_collaborated_content_available_when_owner_inactive" of type "UserFull"',
});
}
const isCollaboratedContentAvailableWhenOwnerInactive: undefined | boolean =
val.is_collaborated_content_available_when_owner_inactive == void 0
? void 0
: val.is_collaborated_content_available_when_owner_inactive;
const enterprise: undefined | UserFullEnterpriseField =
val.enterprise == void 0
? void 0
Expand Down Expand Up @@ -458,6 +478,8 @@ export function deserializeUserFull(val: SerializedData): UserFull {
isExternalCollabRestricted: isExternalCollabRestricted,
isExemptFromDeviceLimits: isExemptFromDeviceLimits,
isExemptFromLoginVerification: isExemptFromLoginVerification,
isCollaboratedContentAvailableWhenOwnerInactive:
isCollaboratedContentAvailableWhenOwnerInactive,
enterprise: enterprise,
myTags: myTags,
hostname: hostname,
Expand Down
Loading