From 4bb4fd2ef1a3473d4d36d1437df25503663b59bc Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 3 Dec 2026 06:36:01 -0800 Subject: [PATCH 1/2] docs: (CENTURION-947)Fix documentation (invites public API) (box/box-openapi#633) --- .codegen.json | 2 +- box_sdk_gen/managers/invites.py | 6 ------ docs/invites.md | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.codegen.json b/.codegen.json index 20d5c2db..95c8b2a7 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8b17929", "specHash": "338aabc", "version": "10.21.0" } +{ "engineHash": "8b17929", "specHash": "9c01006", "version": "10.21.0" } diff --git a/box_sdk_gen/managers/invites.py b/box_sdk_gen/managers/invites.py index 83765518..96149c98 100644 --- a/box_sdk_gen/managers/invites.py +++ b/box_sdk_gen/managers/invites.py @@ -109,12 +109,6 @@ def create_invite( domains. Availability depends on the enterprise's plan. - - This method requires the "Manage An Enterprise" scope enabled for - - - the application, which can be enabled within the developer console. - :param enterprise: The enterprise to invite the user to. :type enterprise: CreateInviteEnterprise :param actionable_by: The user to invite. diff --git a/docs/invites.md b/docs/invites.md index 57047419..b0068a35 100644 --- a/docs/invites.md +++ b/docs/invites.md @@ -18,9 +18,6 @@ accept the invitation and is added to the enterprise automatically after is a free user whose email domain matches one of the enterprise's domains. Availability depends on the enterprise's plan. -This method requires the "Manage An Enterprise" scope enabled for -the application, which can be enabled within the developer console. - This operation is performed by calling function `create_invite`. See the endpoint docs at From 5530ae092be4ea00817172505e599cc17d83cde9 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 3 Dec 2026 08:39:27 -0800 Subject: [PATCH 2/2] docs: (DDOC-1969) - Fix OTP and password endpoint inaccuracies (box/box-openapi#634) --- .codegen.json | 2 +- box_sdk_gen/schemas/file.py | 24 ++++++++++++------------ box_sdk_gen/schemas/folder.py | 24 ++++++++++++------------ box_sdk_gen/schemas/web_link.py | 24 ++++++++++++------------ 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.codegen.json b/.codegen.json index 95c8b2a7..1dfc821c 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8b17929", "specHash": "9c01006", "version": "10.21.0" } +{ "engineHash": "8b17929", "specHash": "d21130e", "version": "10.21.0" } diff --git a/box_sdk_gen/schemas/file.py b/box_sdk_gen/schemas/file.py index fc0e636f..d4e86bdf 100644 --- a/box_sdk_gen/schemas/file.py +++ b/box_sdk_gen/schemas/file.py @@ -128,6 +128,7 @@ class FileSharedLinkField(BaseObject): def __init__( self, url: str, + access: FileSharedLinkAccessField, effective_access: FileSharedLinkEffectiveAccessField, effective_permission: FileSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -138,7 +139,6 @@ def __init__( download_url: Optional[str] = None, vanity_url: Optional[str] = None, vanity_name: Optional[str] = None, - access: Optional[FileSharedLinkAccessField] = None, unshared_at: Optional[DateTime] = None, permissions: Optional[FileSharedLinkPermissionsField] = None, **kwargs @@ -152,6 +152,16 @@ def __init__( This URL will continue to work even when a custom `vanity_url` has been set for this shared link. :type url: str + :param access: The access level for this shared link. + + * `open` - provides access to this item to anyone with this link + * `company` - only provides access to this item to people the same company + * `collaborators` - only provides access to this item to people who are + collaborators on this item + + If this field is omitted when creating the shared link, the access level + will be set to the default access level specified by the enterprise admin. + :type access: FileSharedLinkAccessField :param effective_access: The effective access level for the shared link. This can be a more restrictive access level than the value in the `access` field when the enterprise settings restrict the allowed access levels. @@ -179,16 +189,6 @@ def __init__( :type vanity_url: Optional[str], optional :param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None :type vanity_name: Optional[str], optional - :param access: The access level for this shared link. - - * `open` - provides access to this item to anyone with this link - * `company` - only provides access to this item to people the same company - * `collaborators` - only provides access to this item to people who are - collaborators on this item - - If this field is omitted when creating the shared link, the access level - will be set to the default access level specified by the enterprise admin., defaults to None - :type access: Optional[FileSharedLinkAccessField], optional :param unshared_at: The date and time when this link will be unshared. This field can only be set by users with paid accounts., defaults to None :type unshared_at: Optional[DateTime], optional @@ -199,6 +199,7 @@ def __init__( """ super().__init__(**kwargs) self.url = url + self.access = access self.effective_access = effective_access self.effective_permission = effective_permission self.is_password_enabled = is_password_enabled @@ -208,7 +209,6 @@ def __init__( self.download_url = download_url self.vanity_url = vanity_url self.vanity_name = vanity_name - self.access = access self.unshared_at = unshared_at self.permissions = permissions diff --git a/box_sdk_gen/schemas/folder.py b/box_sdk_gen/schemas/folder.py index d9099621..b42c0efb 100644 --- a/box_sdk_gen/schemas/folder.py +++ b/box_sdk_gen/schemas/folder.py @@ -126,6 +126,7 @@ class FolderSharedLinkField(BaseObject): def __init__( self, url: str, + access: FolderSharedLinkAccessField, effective_access: FolderSharedLinkEffectiveAccessField, effective_permission: FolderSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -136,7 +137,6 @@ def __init__( download_url: Optional[str] = None, vanity_url: Optional[str] = None, vanity_name: Optional[str] = None, - access: Optional[FolderSharedLinkAccessField] = None, unshared_at: Optional[DateTime] = None, permissions: Optional[FolderSharedLinkPermissionsField] = None, **kwargs @@ -150,6 +150,16 @@ def __init__( This URL will continue to work even when a custom `vanity_url` has been set for this shared link. :type url: str + :param access: The access level for this shared link. + + * `open` - provides access to this item to anyone with this link + * `company` - only provides access to this item to people the same company + * `collaborators` - only provides access to this item to people who are + collaborators on this item + + If this field is omitted when creating the shared link, the access level + will be set to the default access level specified by the enterprise admin. + :type access: FolderSharedLinkAccessField :param effective_access: The effective access level for the shared link. This can be a more restrictive access level than the value in the `access` field when the enterprise settings restrict the allowed access levels. @@ -177,16 +187,6 @@ def __init__( :type vanity_url: Optional[str], optional :param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None :type vanity_name: Optional[str], optional - :param access: The access level for this shared link. - - * `open` - provides access to this item to anyone with this link - * `company` - only provides access to this item to people the same company - * `collaborators` - only provides access to this item to people who are - collaborators on this item - - If this field is omitted when creating the shared link, the access level - will be set to the default access level specified by the enterprise admin., defaults to None - :type access: Optional[FolderSharedLinkAccessField], optional :param unshared_at: The date and time when this link will be unshared. This field can only be set by users with paid accounts., defaults to None :type unshared_at: Optional[DateTime], optional @@ -197,6 +197,7 @@ def __init__( """ super().__init__(**kwargs) self.url = url + self.access = access self.effective_access = effective_access self.effective_permission = effective_permission self.is_password_enabled = is_password_enabled @@ -206,7 +207,6 @@ def __init__( self.download_url = download_url self.vanity_url = vanity_url self.vanity_name = vanity_name - self.access = access self.unshared_at = unshared_at self.permissions = permissions diff --git a/box_sdk_gen/schemas/web_link.py b/box_sdk_gen/schemas/web_link.py index c165908e..b0dda54e 100644 --- a/box_sdk_gen/schemas/web_link.py +++ b/box_sdk_gen/schemas/web_link.py @@ -128,6 +128,7 @@ class WebLinkSharedLinkField(BaseObject): def __init__( self, url: str, + access: WebLinkSharedLinkAccessField, effective_access: WebLinkSharedLinkEffectiveAccessField, effective_permission: WebLinkSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -138,7 +139,6 @@ def __init__( download_url: Optional[str] = None, vanity_url: Optional[str] = None, vanity_name: Optional[str] = None, - access: Optional[WebLinkSharedLinkAccessField] = None, unshared_at: Optional[DateTime] = None, permissions: Optional[WebLinkSharedLinkPermissionsField] = None, **kwargs @@ -152,6 +152,16 @@ def __init__( This URL will continue to work even when a custom `vanity_url` has been set for this shared link. :type url: str + :param access: The access level for this shared link. + + * `open` - provides access to this item to anyone with this link + * `company` - only provides access to this item to people the same company + * `collaborators` - only provides access to this item to people who are + collaborators on this item + + If this field is omitted when creating the shared link, the access level + will be set to the default access level specified by the enterprise admin. + :type access: WebLinkSharedLinkAccessField :param effective_access: The effective access level for the shared link. This can be a more restrictive access level than the value in the `access` field when the enterprise settings restrict the allowed access levels. @@ -179,16 +189,6 @@ def __init__( :type vanity_url: Optional[str], optional :param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None :type vanity_name: Optional[str], optional - :param access: The access level for this shared link. - - * `open` - provides access to this item to anyone with this link - * `company` - only provides access to this item to people the same company - * `collaborators` - only provides access to this item to people who are - collaborators on this item - - If this field is omitted when creating the shared link, the access level - will be set to the default access level specified by the enterprise admin., defaults to None - :type access: Optional[WebLinkSharedLinkAccessField], optional :param unshared_at: The date and time when this link will be unshared. This field can only be set by users with paid accounts., defaults to None :type unshared_at: Optional[DateTime], optional @@ -199,6 +199,7 @@ def __init__( """ super().__init__(**kwargs) self.url = url + self.access = access self.effective_access = effective_access self.effective_permission = effective_permission self.is_password_enabled = is_password_enabled @@ -208,7 +209,6 @@ def __init__( self.download_url = download_url self.vanity_url = vanity_url self.vanity_name = vanity_name - self.access = access self.unshared_at = unshared_at self.permissions = permissions