Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3d9d391", "specHash": "5183b65", "version": "4.1.0" }
{ "engineHash": "3d9d391", "specHash": "31c41d5", "version": "4.1.0" }
4 changes: 0 additions & 4 deletions box_sdk_gen/managers/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ def create_ai_extract_structured(
*,
metadata_template: Optional[CreateAiExtractStructuredMetadataTemplate] = None,
fields: Optional[List[CreateAiExtractStructuredFields]] = None,
include_confidence_score: Optional[bool] = None,
ai_agent: Optional[AiExtractStructuredAgent] = None,
extra_headers: Optional[Dict[str, Optional[str]]] = None
) -> AiExtractStructuredResponse:
Expand All @@ -451,8 +450,6 @@ def create_ai_extract_structured(
:param fields: The fields to be extracted from the provided items.
For your request to work, you must provide either `metadata_template` or `fields`, but not both., defaults to None
:type fields: Optional[List[CreateAiExtractStructuredFields]], optional
:param include_confidence_score: A flag to indicate whether confidence scores for every extracted field should be returned., defaults to None
:type include_confidence_score: Optional[bool], optional
:param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
:type extra_headers: Optional[Dict[str, Optional[str]]], optional
"""
Expand All @@ -462,7 +459,6 @@ def create_ai_extract_structured(
'items': items,
'metadata_template': metadata_template,
'fields': fields,
'include_confidence_score': include_confidence_score,
'ai_agent': ai_agent,
}
headers_map: Dict[str, str] = prepare_params({**extra_headers})
Expand Down
2 changes: 1 addition & 1 deletion box_sdk_gen/managers/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def transfer_owned_folder(
"""
Move all of the items (files, folders and workflows) owned by a user into

another user's account
another user's account.


Only the root folder (`0`) can be transferred.
Expand Down
12 changes: 10 additions & 2 deletions box_sdk_gen/managers/user_collaborations.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ def update_collaboration_by_id(
Only an owner or co-owners can invite collaborators with a `can_view_path` of
`true`. Only an owner can update `can_view_path` on existing collaborations.

`can_view_path` can only be used for folder collaborations., defaults to None
`can_view_path` can only be used for folder collaborations.

When you delete a folder with `can_view_path=true`, collaborators may still see the parent path.
For instructions on how to remove this, see
[Even though a folder invited via can_view_path is deleted, the path remains displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed)., defaults to None
:type can_view_path: Optional[bool], optional
:param extra_headers: Extra headers that will be included in the HTTP request., defaults to None
:type extra_headers: Optional[Dict[str, Optional[str]]], optional
Expand Down Expand Up @@ -384,7 +388,11 @@ def create_collaboration(
Only an owner or co-owners can invite collaborators with a `can_view_path` of
`true`. Only an owner can update `can_view_path` on existing collaborations.

`can_view_path` can only be used for folder collaborations., defaults to None
`can_view_path` can only be used for folder collaborations.

When you delete a folder with `can_view_path=true`, collaborators may still see the parent path.
For instructions on how to remove this, see
[Even though a folder invited via can_view_path is deleted, the path remains displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed)., defaults to None
:type can_view_path: Optional[bool], optional
:param expires_at: Set the expiration date for the collaboration. At this date, the
collaboration will be automatically removed from the item.
Expand Down
4 changes: 0 additions & 4 deletions box_sdk_gen/schemas/ai_extract_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def __init__(
*,
metadata_template: Optional[AiExtractStructuredMetadataTemplateField] = None,
fields: Optional[List[AiExtractStructuredFieldsField]] = None,
include_confidence_score: Optional[bool] = None,
ai_agent: Optional[AiExtractStructuredAgent] = None,
**kwargs
):
Expand All @@ -127,12 +126,9 @@ def __init__(
:param fields: The fields to be extracted from the provided items.
For your request to work, you must provide either `metadata_template` or `fields`, but not both., defaults to None
:type fields: Optional[List[AiExtractStructuredFieldsField]], optional
:param include_confidence_score: A flag to indicate whether confidence scores for every extracted field should be returned., defaults to None
:type include_confidence_score: Optional[bool], optional
"""
super().__init__(**kwargs)
self.items = items
self.metadata_template = metadata_template
self.fields = fields
self.include_confidence_score = include_confidence_score
self.ai_agent = ai_agent
4 changes: 0 additions & 4 deletions box_sdk_gen/schemas/ai_extract_structured_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def __init__(
created_at: DateTime,
*,
completion_reason: Optional[str] = None,
confidence_score: Optional[Dict] = None,
ai_agent_info: Optional[AiAgentInfo] = None,
**kwargs
):
Expand All @@ -27,12 +26,9 @@ def __init__(
:type created_at: DateTime
:param completion_reason: The reason the response finishes., defaults to None
:type completion_reason: Optional[str], optional
:param confidence_score: The confidence score numeric values for each extracted field as a JSON dictionary. This can be empty if no field could be extracted., defaults to None
:type confidence_score: Optional[Dict], optional
"""
super().__init__(**kwargs)
self.answer = answer
self.created_at = created_at
self.completion_reason = completion_reason
self.confidence_score = confidence_score
self.ai_agent_info = ai_agent_info
2 changes: 0 additions & 2 deletions docs/box_sdk_gen/ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ client.ai.create_ai_extract_structured([AiItemBase(id=file.id)], fields=[CreateA
- The metadata template containing the fields to extract. For your request to work, you must provide either `metadata_template` or `fields`, but not both.
- fields `Optional[List[CreateAiExtractStructuredFields]]`
- The fields to be extracted from the provided items. For your request to work, you must provide either `metadata_template` or `fields`, but not both.
- include_confidence_score `Optional[bool]`
- A flag to indicate whether confidence scores for every extracted field should be returned.
- ai_agent `Optional[AiExtractStructuredAgent]`
- extra_headers `Optional[Dict[str, Optional[str]]]`
- Extra headers that will be included in the HTTP request.
Expand Down
2 changes: 1 addition & 1 deletion docs/box_sdk_gen/transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Transfer owned folders

Move all of the items (files, folders and workflows) owned by a user into
another user's account
another user's account.

Only the root folder (`0`) can be transferred.

Expand Down
4 changes: 2 additions & 2 deletions docs/box_sdk_gen/user_collaborations.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ client.user_collaborations.update_collaboration_by_id(collaboration_id, role=Upd
- expires_at `Optional[DateTime]`
- Update the expiration date for the collaboration. At this date, the collaboration will be automatically removed from the item. This feature will only work if the **Automatically remove invited collaborators: Allow folder owners to extend the expiry date** setting has been enabled in the **Enterprise Settings** of the **Admin Console**. When the setting is not enabled, collaborations can not have an expiry date and a value for this field will be result in an error. Additionally, a collaboration can only be given an expiration if it was created after the **Automatically remove invited collaborator** setting was enabled.
- can_view_path `Optional[bool]`
- Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's **All Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled to 1,000 per user. Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only an owner can update `can_view_path` on existing collaborations. `can_view_path` can only be used for folder collaborations.
- Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's **All Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled to 1,000 per user. Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only an owner can update `can_view_path` on existing collaborations. `can_view_path` can only be used for folder collaborations. When you delete a folder with `can_view_path=true`, collaborators may still see the parent path. For instructions on how to remove this, see [Even though a folder invited via can_view_path is deleted, the path remains displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed).
- extra_headers `Optional[Dict[str, Optional[str]]]`
- Extra headers that will be included in the HTTP request.

Expand Down Expand Up @@ -144,7 +144,7 @@ client.user_collaborations.create_collaboration(CreateCollaborationItem(type=Cre
- is_access_only `Optional[bool]`
- If set to `true`, collaborators have access to shared items, but such items won't be visible in the All Files list. Additionally, collaborators won't see the path to the root folder for the shared item.
- can_view_path `Optional[bool]`
- Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's **All Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled to 1,000 per user. Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only an owner can update `can_view_path` on existing collaborations. `can_view_path` can only be used for folder collaborations.
- Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's **All Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled to 1,000 per user. Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only an owner can update `can_view_path` on existing collaborations. `can_view_path` can only be used for folder collaborations. When you delete a folder with `can_view_path=true`, collaborators may still see the parent path. For instructions on how to remove this, see [Even though a folder invited via can_view_path is deleted, the path remains displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed).
- expires_at `Optional[DateTime]`
- Set the expiration date for the collaboration. At this date, the collaboration will be automatically removed from the item. This feature will only work if the **Automatically remove invited collaborators: Allow folder owners to extend the expiry date** setting has been enabled in the **Enterprise Settings** of the **Admin Console**. When the setting is not enabled, collaborations can not have an expiry date and a value for this field will be result in an error.
- fields `Optional[List[str]]`
Expand Down