Skip to content
Closed
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": "0eab570", "specHash": "7f8494a", "version": "5.20.0" }
{ "engineHash": "6772894", "specHash": "7cec401", "version": "5.20.0" }
1 change: 1 addition & 0 deletions docs/sdkgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ General explanations of the available functionality and examples of how to use
the SDK are available by topic:

* [Ai](ai.md)
* [Aisessions](aisessions.md)
* [Aistudio](aistudio.md)
* [Appitemassociations](appitemassociations.md)
* [Archives](archives.md)
Expand Down
74 changes: 74 additions & 0 deletions docs/sdkgen/aisessions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# AiSessionsManager


- [List AI sessions](#list-ai-sessions)
- [Delete AI session](#delete-ai-session)

## List AI sessions

Returns a marker-paginated list of the AI sessions that the authenticated
user can read and that were created through the Box public API. Entries are
ordered by `sort` and `direction`, defaulting to `updated_at` descending so
the most recently active session appears first.

The access token must have both the `ai.readwrite` and `root_readwrite`
scopes.

A page may contain fewer than `limit` entries while further pages remain.
Treat a non-null `next_marker` as the only signal that more results exist.

This operation is performed by calling function `getAiSessionsV2026R0`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/v2026.0/get-ai-sessions/).

*Currently we don't have an example for calling `getAiSessionsV2026R0` in integration tests*

### Arguments

- queryParams `GetAiSessionsV2026R0QueryParams`
- Query parameters of getAiSessionsV2026R0 method
- headers `GetAiSessionsV2026R0Headers`
- Headers of getAiSessionsV2026R0 method


### Returns

This function returns a value of type `AiSessionsV2026R0`.

Returns a paginated list of AI sessions.


## Delete AI session

Deletes an AI session created through the Box public API, together with its
agent tasks. The session's agent-generated files and uploaded files are
moved to the trash. Files attached as sources from elsewhere in Box are not
affected. Deleting a session does not stop a running task or notify the
agent.

The access token must have both the `ai.readwrite` and `root_readwrite`
scopes.

This operation is performed by calling function `deleteAiSessionByIdV2026R0`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/v2026.0/delete-ai-sessions-id/).

*Currently we don't have an example for calling `deleteAiSessionByIdV2026R0` in integration tests*

### Arguments

- aiSessionId `String`
- The unique identifier of the AI session. This is the same value returned as `id` by the list endpoint and used as the A2A `contextId`. Example: "23489723"
- headers `DeleteAiSessionByIdV2026R0Headers`
- Headers of deleteAiSessionByIdV2026R0 method


### Returns

This function returns a value of type `void`.

Returns an empty response when the AI session was successfully deleted.


2 changes: 2 additions & 0 deletions docs/sdkgen/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ This method allows you to make any HTTP request to the Box API. It will automati
network configuration settings from the client.
The method accepts a `FetchOptions` object as an argument and returns a `FetchResponse` object.

For request bodies that cannot be safely replayed, such as a JWT assertion with a one-time `jti`, `FetchOptions` also accepts `dataFactory`. `dataFactory.create()` is called on the first attempt when `data` is not set and on each retry so each retry can send a fresh body.

## JSON request

The following example demonstrates how to make a custom POST request to create a new folder in the root folder.
Expand Down
Loading
Loading