From 47f44e34be1c190df591cfc18560ffcdcab876e0 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Mon, 26 Jan 2026 05:20:49 -0800 Subject: [PATCH 1/3] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 66004b28..4f52dbc5 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3e11b6f", "specHash": "ad08e8c", "version": "10.3.0" } +{ "engineHash": "697b72d", "specHash": "ad08e8c", "version": "10.3.0" } From 38148ff3c4055a8eec16d95d2a614bf8989d34e8 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 27 Jan 2026 02:19:00 -0800 Subject: [PATCH 2/3] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 4f52dbc5..86a97024 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "697b72d", "specHash": "ad08e8c", "version": "10.3.0" } +{ "engineHash": "f9e2519", "specHash": "ad08e8c", "version": "10.3.0" } From 2c9d2382bd8e1300b2688a96527aa4b8af48082c Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 27 Jan 2026 03:50:32 -0800 Subject: [PATCH 3/3] fix: correct enum value for legal hold policy changes (box/box-openapi#581) --- .codegen.json | 2 +- .../managers/legal_hold_policy_assignments.py | 6 +++--- box_sdk_gen/schemas/legal_hold_policy.py | 12 ++++++++++-- docs/legal_hold_policy_assignments.md | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.codegen.json b/.codegen.json index 86a97024..3b7525ee 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "f9e2519", "specHash": "ad08e8c", "version": "10.3.0" } +{ "engineHash": "f9e2519", "specHash": "f8fb08c", "version": "10.3.0" } diff --git a/box_sdk_gen/managers/legal_hold_policy_assignments.py b/box_sdk_gen/managers/legal_hold_policy_assignments.py index 3e681272..2653ffd8 100644 --- a/box_sdk_gen/managers/legal_hold_policy_assignments.py +++ b/box_sdk_gen/managers/legal_hold_policy_assignments.py @@ -60,7 +60,7 @@ class CreateLegalHoldPolicyAssignmentAssignToTypeField(str, Enum): FOLDER = 'folder' USER = 'user' OWNERSHIP = 'ownership' - INTERACTION = 'interaction' + INTERACTIONS = 'interactions' class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject): @@ -70,7 +70,7 @@ class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject): 'folder', 'user', 'ownership', - 'interaction', + 'interactions', } def __init__( @@ -179,7 +179,7 @@ def create_legal_hold_policy_assignment( extra_headers: Optional[Dict[str, Optional[str]]] = None ) -> LegalHoldPolicyAssignment: """ - Assign a legal hold to a file, file version, folder, or user. + Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions. :param policy_id: The ID of the policy to assign. :type policy_id: str :param assign_to: The item to assign the policy to. diff --git a/box_sdk_gen/schemas/legal_hold_policy.py b/box_sdk_gen/schemas/legal_hold_policy.py index 5a91fa88..f3e85921 100644 --- a/box_sdk_gen/schemas/legal_hold_policy.py +++ b/box_sdk_gen/schemas/legal_hold_policy.py @@ -30,10 +30,12 @@ def __init__( folder: Optional[int] = None, file: Optional[int] = None, file_version: Optional[int] = None, + ownership: Optional[int] = None, + interactions: Optional[int] = None, **kwargs ): """ - :param user: The number of users this policy is applied to., defaults to None + :param user: The number of users this policy is applied to with the `access` type assignment., defaults to None :type user: Optional[int], optional :param folder: The number of folders this policy is applied to., defaults to None :type folder: Optional[int], optional @@ -41,12 +43,18 @@ def __init__( :type file: Optional[int], optional :param file_version: The number of file versions this policy is applied to., defaults to None :type file_version: Optional[int], optional + :param ownership: The number of users this policy is applied to with the `ownership` type assignment., defaults to None + :type ownership: Optional[int], optional + :param interactions: The number of users this policy is applied to with the `interactions` type assignment., defaults to None + :type interactions: Optional[int], optional """ super().__init__(**kwargs) self.user = user self.folder = folder self.file = file self.file_version = file_version + self.ownership = ownership + self.interactions = interactions class LegalHoldPolicy(LegalHoldPolicyMini): @@ -84,7 +92,7 @@ def __init__( of being released. * 'released' - the policy is no longer active., defaults to None :type status: Optional[LegalHoldPolicyStatusField], optional - :param assignment_counts: Counts of assignments within this a legal hold policy by item type., defaults to None + :param assignment_counts: Counts of assignments within a legal hold policy by item type., defaults to None :type assignment_counts: Optional[LegalHoldPolicyAssignmentCountsField], optional :param created_at: When the legal hold policy object was created., defaults to None :type created_at: Optional[DateTime], optional diff --git a/docs/legal_hold_policy_assignments.md b/docs/legal_hold_policy_assignments.md index cd14c2ae..c23119a4 100644 --- a/docs/legal_hold_policy_assignments.md +++ b/docs/legal_hold_policy_assignments.md @@ -48,7 +48,7 @@ Returns a list of legal hold policy assignments. ## Assign legal hold policy -Assign a legal hold to a file, file version, folder, or user. +Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions. This operation is performed by calling function `create_legal_hold_policy_assignment`.