diff --git a/Box.V2/Config/Constants.cs b/Box.V2/Config/Constants.cs
index 8d4c97b78..a51531d9b 100644
--- a/Box.V2/Config/Constants.cs
+++ b/Box.V2/Config/Constants.cs
@@ -283,6 +283,569 @@ public static class ContentDispositionTypes
public const string Attachment = "attachment";
}
+ /*** stream of events that are logged from a Box Enterprise. ***/
+ public static class UserEventTypes
+ {
+ ///
+ /// A folder or file was created.
+ ///
+ public const string ItemCreate = "ITEM_CREATE";
+
+ ///
+ /// A folder of file was uploaded.
+ ///
+ public const string ItemUpload = "ITEM_UPLOAD";
+
+ ///
+ /// A comment was created on a folder, file, or other comment.
+ ///
+ public const string CommentCreate = "COMMENT_CREATE";
+
+ ///
+ /// A comment was deleted on folder, file, or other comment.
+ ///
+ public const string CommentDelete = "COMMENT_DELETE";
+
+ ///
+ /// A file or folder was downloaded.
+ ///
+ public const string ItemDownload = "ITEM_DOWNLOAD";
+
+ ///
+ /// a file was previewed.
+ ///
+ public const string ItemPreview = "ITEM_PREVIEW";
+
+ ///
+ /// A file or folder was moved.
+ ///
+ public const string ItemMove = "ITEM_MOVE";
+
+ ///
+ /// A file or folder was copied.
+ ///
+ public const string ItemCopy = "ITEM_COPY";
+
+ ///
+ /// A task was assigned.
+ ///
+ public const string TaskAssignmentCreate = "TASK_ASSIGNMENT_CREATE";
+
+ ///
+ /// A task was created.
+ ///
+ public const string TaskCreate = "TASK_CREATE";
+
+ ///
+ /// A file was locked.
+ ///
+ public const string LockCreate = "LOCK_CREATE";
+
+ ///
+ /// A file was unlocked. If a locked file is deleted, the source file will be null.
+ ///
+ public const string LockDestroy = "LOCK_DESTROY";
+
+ ///
+ /// A file or folder was marked as deleted.
+ ///
+ public const string ItemTrash = "ITEM_TRASH";
+
+ ///
+ /// A collaborator was added to a folder.
+ ///
+ public const string CollabAddCollaborator = "COLLAB_ADD_COLLABORATOR";
+
+ ///
+ /// A collaborator has their role changed.
+ ///
+ public const string CollabRoleChange = "COLLAB_ROLE_CHANGE";
+
+ ///
+ /// A collaborator was invited on a folder.
+ ///
+ public const string CollabInviteCollaborator = "COLLAB_INVITE_COLLABORATOR";
+
+ ///
+ /// A collaborator was removed from a folder.
+ ///
+ public const string CollabRemoveCollaborator = "COLLAB_REMOVE_COLLABORATOR";
+
+ ///
+ /// A folder was marked for sync.
+ ///
+ public const string ItemSync = "ITEM_SYNC";
+
+ ///
+ /// A folder was un-marked for sync.
+ ///
+ public const string ItemUnsync = "ITEM_UNSYNC";
+
+ ///
+ /// A file or folder was renamed.
+ ///
+ public const string ItemRename = "ITEM_RENAME";
+
+ ///
+ /// A file or folder was enabled for sharing.
+ ///
+ public const string ItemSharedCreate = "ITEM_SHARED_CREATE";
+
+ ///
+ /// A file or folder was disabled for sharing.
+ ///
+ public const string ItemSharedUnshare = "ITEM_SHARED_UNSHARE";
+
+ ///
+ /// A folder was shared.
+ ///
+ public const string ItemShared = "ITEM_SHARED";
+
+ ///
+ /// A previous version of a file was promoted to the current version.
+ ///
+ public const string ItemMakeCurrentVersion = "ITEM_MAKE_CURRENT_VERSION";
+
+ ///
+ /// A Tag was added to a file or folder.
+ ///
+ public const string TagItemCreate = "TAG_ITEM_CREATE";
+
+ ///
+ /// 2 factor authentication enabled by user.
+ ///
+ public const string EnableTwoFactorAuth = "ENABLE_TWO_FACTOR_AUTH";
+
+ ///
+ /// Free user accepts invitation to become a managed user.
+ ///
+ public const string MasterInviteAccept = "MASTER_INVITE_ACCEPT";
+
+ ///
+ /// Free user rejects invitation to become a managed user.
+ ///
+ public const string MasterInviteReject = "MASTER_INVITE_REJECT";
+
+ ///
+ /// Revoke Box access to account.
+ ///
+ public const string AccessGranted = "ACCESS_GRANTED";
+
+ ///
+ /// Added user to group.
+ ///
+ public const string GroupAddUser = "GROUP_ADD_USER";
+
+ ///
+ /// Removed user from group.
+ ///
+ public const string GroupRemoveUser = "GROUP_REMOVE_USER";
+ }
+
+ /*** The following events are defined only for the admin_logs stream_type ***/
+ public static class AdminEventTypes
+ {
+ ///
+ /// Added user to group.
+ ///
+ public const string GroupAddUser = "GROUP_ADD_USER";
+
+ ///
+ /// Created user.
+ ///
+ public const string NewUser = "NEW_USER";
+
+ ///
+ /// Created new group.
+ ///
+ public const string GroupCreation = "GROUP_CREATION";
+
+ ///
+ /// Deleted group.
+ ///
+ public const string GroupDeletion = "GROUP_DELETION";
+
+ ///
+ /// Deleted group.
+ ///
+ public const string DeleteUser = "DELETE_USER";
+
+ ///
+ /// Edited group.
+ ///
+ public const string GroupEdited = "GROUP_EDITED";
+
+ ///
+ /// Edited user.
+ ///
+ public const string EditUser = "EDIT_USER";
+
+ ///
+ /// Removed user from group.
+ ///
+ public const string GroupRemoveUser = "GROUP_REMOVE_USER";
+
+ ///
+ /// Admin login.
+ ///
+ public const string AdminLogin = "ADMIN_LOGIN";
+
+ ///
+ /// Added device association.
+ ///
+ public const string AddDeviceAssociation = "ADD_DEVICE_ASSOCIATION";
+
+ ///
+ /// Edit the permissions on a folder.
+ ///
+ public const string ChangeFolderPermission = "CHANGE_FOLDER_PERMISSION";
+
+ ///
+ /// Failed login.
+ ///
+ public const string FailedLogin = "FAILED_LOGIN";
+
+ ///
+ /// Login.
+ ///
+ public const string Login = "LOGIN";
+
+ ///
+ /// Removed device association.
+ ///
+ public const string RemoveDeviceAssociation = "REMOVE_DEVICE_ASSOCIATION";
+
+ ///
+ /// Agree to terms.
+ ///
+ public const string TermsOfServiceAgree = "TERMS_OF_SERVICE_AGREE";
+
+ ///
+ /// Rejected terms.
+ ///
+ public const string TermsOfServiceReject = "TERMS_OF_SERVICE_REJECT";
+
+ ///
+ /// Virus found on a file. Event is only received by enterprises that have opted in to be notified.
+ ///
+ public const string FileMarkedMalicious = "FILE_MARKED_MALICIOUS";
+
+ ///
+ /// Copied.
+ ///
+ public const string Copy = "COPY";
+
+ ///
+ /// Deleted.
+ ///
+ public const string Delete = "DELETE";
+
+ ///
+ /// Downloaded.
+ ///
+ public const string Download = "DOWNLOAD";
+
+ ///
+ /// Edited
+ ///
+ public const string Edit = "EDIT";
+
+ ///
+ /// Edited.
+ ///
+ public const string Lock = "LOCK";
+
+ ///
+ /// Moved.
+ ///
+ public const string Move = "MOVE";
+
+ ///
+ /// Previewed.
+ ///
+ public const string Preview = "PREVIEW";
+
+ ///
+ /// A file or folder name or description is changed.
+ ///
+ public const string Rename = "RENAME";
+
+ ///
+ /// Set file auto-delete.
+ ///
+ public const string StorageExpiration = "STORAGE_EXPIRATION";
+
+ ///
+ /// Undeleted.
+ ///
+ public const string Undelete = "UNDELETE";
+
+ ///
+ /// Unlocked.
+ ///
+ public const string Unlock = "UNLOCK";
+
+ ///
+ /// Uploaded.
+ ///
+ public const string Upload = "UPLOAD";
+
+ ///
+ /// Enabled shared links.
+ ///
+ public const string Share = "SHARE";
+
+ ///
+ /// Share links settings updated.
+ ///
+ public const string ItemSharedUpdate = "ITEM_SHARED_UPDATE";
+
+ ///
+ /// Extend shared link expiration.
+ ///
+ public const string UpdateShareExpiration = "UPDATE_SHARE_EXPIRATION";
+
+ ///
+ /// Set shared link expiration.
+ ///
+ public const string ShareExpiration = "SHARE_EXPIRATION";
+
+ ///
+ /// Unshared links.
+ ///
+ public const string Unshare = "UNSHARE";
+
+ ///
+ /// Accepted invites.
+ ///
+ public const string CollaborationAccept = "COLLABORATION_ACCEPT";
+
+ ///
+ /// Changed user roles.
+ ///
+ public const string CollaborationRoleChange = "COLLABORATION_ROLE_CHANGE";
+
+ ///
+ /// Extend collaborator expiration.
+ ///
+ public const string UpdateCollaborationExpiration = "UPDATE_COLLABORATION_EXPIRATION";
+
+ ///
+ /// Removed collaborators.
+ ///
+ public const string CollaborationRemove = "COLLABORATION_REMOVE";
+
+ ///
+ /// Invited.
+ ///
+ public const string CollaborationInvite = "COLLABORATION_INVITE";
+
+ ///
+ /// Set collaborator expiration.
+ ///
+ public const string CollaborationExpiration = "COLLABORATION_EXPIRATION";
+
+ ///
+ /// Synced folder.
+ ///
+ public const string ItemSync = "ITEM_SYNC";
+
+ ///
+ /// Un-synced folder.
+ ///
+ public const string ItemUnsync = "ITEM_UNSYNC";
+
+ ///
+ /// A user is logging in from a device we haven't see before.
+ ///
+ public const string AddLoginActivityDevice = "ADD_LOGIN_ACTIVITY_DEVICE";
+
+ ///
+ /// We invalidated a user session associated with an app.
+ ///
+ public const string RemoveLoginActivityDevice = "REMOVE_LOGIN_ACTIVITY_DEVICE";
+
+ ///
+ /// When an admin role changes for a user.
+ ///
+ public const string ChangeAdminRole = "CHANGE_ADMIN_ROLE";
+
+ ///
+ /// A collaborator violated an admin-set upload policy.
+ ///
+ public const string ContentWorkflowUploadPolicyViolation = "CONTENT_WORKFLOW_UPLOAD_POLICY_VIOLATION";
+
+ ///
+ /// Creation of metadata instance.
+ ///
+ public const string MetadataInstanceCreate = "METADATA_INSTANCE_CREATE";
+
+ ///
+ /// Update of metadata instance.
+ ///
+ public const string MetadataInstanceUpdate = "METADATA_INSTANCE_UPDATE";
+
+ ///
+ /// Deletion of metadata instance.
+ ///
+ public const string MetadataInstanceDelete = "METADATA_INSTANCE_DELETE";
+
+ ///
+ /// Update of a task assignment.
+ ///
+ public const string TaskAssignmentUpdate = "TASK_ASSIGNMENT_UPDATE";
+
+ ///
+ /// A task assignment is created.
+ ///
+ public const string TaskAssignmentCreate = "TASK_ASSIGNMENT_CREATE";
+
+ ///
+ /// A task assignment is deleted.
+ ///
+ public const string TaskAssignmentDelete = "TASK_ASSIGNMENT_DELETE";
+
+ ///
+ /// A task is created.
+ ///
+ public const string TaskCreate = "TASK_CREATE";
+
+ ///
+ /// A comment is created on a file.
+ ///
+ public const string CommentCreate = "COMMENT_CREATE";
+
+ ///
+ /// Retention is removed.
+ ///
+ public const string DateRetentionRemoveRetention = "DATA_RETENTION_REMOVE_RETENTION";
+
+ ///
+ /// Retention is created.
+ ///
+ public const string DataRetentionCreateRetention = "DATA_RETENTION_CREATE_RETENTION";
+
+ ///
+ /// A retention policy assignment is added.
+ ///
+ public const string RetentionPolicyAssignmentAdd = "RETENTION_POLICY_ASSIGNMENT_ADD";
+
+ ///
+ /// A legal hold assignment is created.
+ ///
+ public const string LegalHoldAssignmentCreate = "LEGAL_HOLD_ASSIGNMENT_CREATE";
+
+ ///
+ /// A legal hold assignment is deleted.
+ ///
+ public const string LegalHoldAssignmentDelete = "LEGAL_HOLD_ASSIGNMENT_CREATE";
+
+ ///
+ /// A legal hold policy is deleted.
+ ///
+ public const string LegalHoldPolicyDelete = "LEGAL_HOLD_POLICY_DELETE";
+
+ ///
+ /// There is a sharing policy violation.
+ ///
+ public const string ContentWorkflowSharingPolicyViolation = "CONTENT_WORKFLOW_SHARING_POLICY_VIOLATION";
+
+ ///
+ /// An application public key is added.
+ ///
+ public const string ApplicationPublicKeyAdded = "APPLICATION_PUBLIC_KEY_ADDED";
+
+ ///
+ /// An application public key is deleted.
+ ///
+ public const string ApplicationPublicKeyDeleted = "APPLICATION_PUBLIC_KEY_DELETED";
+
+ ///
+ /// A content policy is added.
+ ///
+ public const string ContentWorkflowPolicyAdd = "CONTENT_WORKFLOW_POLICY_ADD";
+
+ ///
+ /// An automation is added.
+ ///
+ public const string ContentWorkflowAutomationAdd = "CONTENT_WORKFLOW_AUTOMATION_ADD";
+
+ ///
+ /// An automation is deleted.
+ ///
+ public const string ContentWorkflowAutomationDelete = "CONTENT_WORKFLOW_AUTOMATION_DELETE";
+
+ ///
+ /// A user email alias is confirmed.
+ ///
+ public const string EmailAliasConfirm = "EMAIL_ALIAS_CONFIRM";
+
+ ///
+ /// A user email alias is removed.
+ ///
+ public const string EmailAliasRemove = "EMAIL_ALIAS_REMOVE";
+
+ ///
+ /// A watermark is added to a file.
+ ///
+ public const string WatermarkLabelCreate = "WATERMARK_LABEL_CREATE";
+
+ ///
+ /// A watermark is removed from a file.
+ ///
+ public const string WatermarkLabelDelete = "WATERMARK_LABEL_DELETE";
+
+ ///
+ /// A user has granted Box access to their account.
+ ///
+ public const string AccessGranted = "ACCESS_GRANTED";
+
+ ///
+ /// A user has revoked Box access to their account.
+ ///
+ public const string AccessRevoked = "ACCESS_REVOKED";
+
+ ///
+ /// Creation of metadata template instance.
+ ///
+ public const string MetadataTemplateCreate = "METADATA_TEMPLATE_CREATE";
+
+ ///
+ /// Update of metadata template instance.
+ ///
+ public const string MatadataTemplateUpdate = "METADATA_TEMPLATE_UPDATE";
+
+ ///
+ /// Deletion of metadata template instance.
+ ///
+ public const string MetadataTemplateDelete = "METADATA_TEMPLATE_DELETE";
+
+ ///
+ /// Item was opened.
+ ///
+ public const string ItemOpen = "ITEM_OPEN";
+
+ ///
+ /// Item was modified.
+ ///
+ public const string ItemModify = "ITEM_MODIFY";
+
+ ///
+ /// When a policy set the Admin console is triggered.
+ ///
+ public const string ContentWorkflowAbnormalDownloadActivity = "CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY";
+
+ ///
+ /// Folders were removed from a group in the admin console.
+ ///
+ public const string GroupRemoveItem = "GROUP_REMOVE_ITEM";
+
+ ///
+ /// Folders were added to a group in the Admin console.
+ ///
+ public const string GroupAddItem = "GROUP_ADD_ITEM";
+ }
+
/*** required direction for collaboration whitelists endpoint. Can only be one of value: inbound, outbound, or both ***/
public static class WhitelistDirections
{